Skip to content

Commit 9401d16

Browse files
authored
Merge pull request #945 from recurly/v3-v2021-02-25-20108434005
Generated Latest Changes for v2021-02-25
2 parents 663fada + baff88a commit 9401d16

6 files changed

Lines changed: 42 additions & 0 deletions

File tree

lib/recurly/requests/gift_card_create.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class GiftCardCreate < Request
2222
# @return [String] The product code or SKU of the gift card product.
2323
define_attribute :product_code, String
2424

25+
# @!attribute tax_service_opt_out
26+
# @return [Boolean] Set to `true` to bypass sending the purchase to your configured tax service. Defaults to `false`.
27+
define_attribute :tax_service_opt_out, :Boolean
28+
2529
# @!attribute unit_amount
2630
# @return [Float] The amount of the gift card, which is the amount of the charge to the gifter account and the amount of credit that is applied to the recipient account upon successful redemption.
2731
define_attribute :unit_amount, Float

lib/recurly/requests/invoice_create.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ class InvoiceCreate < Request
5353
# @!attribute vat_reverse_charge_notes
5454
# @return [String] VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription.
5555
define_attribute :vat_reverse_charge_notes, String
56+
57+
# @!attribute vertex_transaction_type
58+
# @return [String] Used by Vertex for tax calculations. Possible values are sale, rental, lease.
59+
define_attribute :vertex_transaction_type, String
5660
end
5761
end
5862
end

lib/recurly/requests/line_item_create.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ class LineItemCreate < Request
109109
# @!attribute unit_amount
110110
# @return [Float] A positive or negative amount with `type=charge` will result in a positive `unit_amount`. A positive or negative amount with `type=credit` will result in a negative `unit_amount`. If `item_code`/`item_id` is present, `unit_amount` can be passed in, to override the `Item`'s `unit_amount`. If `item_code`/`item_id` is not present then `unit_amount` is required.
111111
define_attribute :unit_amount, Float
112+
113+
# @!attribute vertex_transaction_type
114+
# @return [String] Used by Vertex for tax calculations. Possible values are sale, rental, lease.
115+
define_attribute :vertex_transaction_type, String
112116
end
113117
end
114118
end

lib/recurly/requests/purchase_create.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ class PurchaseCreate < Request
9393
# @!attribute vat_reverse_charge_notes
9494
# @return [String] VAT reverse charge notes for cross border European tax settlement.
9595
define_attribute :vat_reverse_charge_notes, String
96+
97+
# @!attribute vertex_transaction_type
98+
# @return [String] Used by Vertex for tax calculations. Possible values are sale, rental, lease.
99+
define_attribute :vertex_transaction_type, String
96100
end
97101
end
98102
end

lib/recurly/resources/line_item.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ class LineItem < Resource
241241
# @!attribute uuid
242242
# @return [String] The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
243243
define_attribute :uuid, String
244+
245+
# @!attribute vertex_transaction_type
246+
# @return [String] Used by Vertex for tax calculations. Possible values are sale, rental, lease.
247+
define_attribute :vertex_transaction_type, String
244248
end
245249
end
246250
end

openapi/api.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20934,6 +20934,8 @@ components:
2093420934
will default to the VAT Reverse Charge Notes text specified on the Tax
2093520935
Settings page in your Recurly admin, unless custom notes were created
2093620936
with the original subscription.
20937+
vertex_transaction_type:
20938+
"$ref": "#/components/schemas/VertexTransactionTypeEnum"
2093720939
required:
2093820940
- currency
2093920941
InvoiceCollect:
@@ -21464,6 +21466,8 @@ components:
2146421466
Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types)
2146521467
for more available t/s types.
2146621468
minimum: 0
21469+
vertex_transaction_type:
21470+
"$ref": "#/components/schemas/VertexTransactionTypeEnum"
2146721471
tax_code:
2146821472
type: string
2146921473
maxLength: 50
@@ -21719,6 +21723,8 @@ components:
2171921723
for more available t/s types. If an `Item` is associated to the `LineItem`,
2172021724
then the `avalara_service_type` must be absent.
2172121725
minimum: 0
21726+
vertex_transaction_type:
21727+
"$ref": "#/components/schemas/VertexTransactionTypeEnum"
2172221728
tax_code:
2172321729
type: string
2172421730
maxLength: 50
@@ -25080,6 +25086,8 @@ components:
2508025086
type: string
2508125087
title: VAT reverse charge notes
2508225088
description: VAT reverse charge notes for cross border European tax settlement.
25089+
vertex_transaction_type:
25090+
"$ref": "#/components/schemas/VertexTransactionTypeEnum"
2508325091
credit_customer_notes:
2508425092
type: string
2508525093
title: Credit customer notes
@@ -26496,6 +26504,11 @@ components:
2649626504
type: string
2649726505
description: 3-letter ISO 4217 currency code.
2649826506
maxLength: 3
26507+
tax_service_opt_out:
26508+
title: Tax service opt-out
26509+
type: boolean
26510+
description: Set to `true` to bypass sending the purchase to your configured
26511+
tax service. Defaults to `false`.
2649926512
delivery:
2650026513
title: Delivery details
2650126514
description: The delivery details for the gift card.
@@ -26760,6 +26773,15 @@ components:
2676026773
enum:
2676126774
- charge
2676226775
- credit
26776+
VertexTransactionTypeEnum:
26777+
type: string
26778+
title: Vertex Transaction Type
26779+
description: Used by Vertex for tax calculations. Possible values are sale,
26780+
rental, lease.
26781+
enum:
26782+
- sale
26783+
- rental
26784+
- lease
2676326785
FilterTransactionTypeEnum:
2676426786
type: string
2676526787
enum:

0 commit comments

Comments
 (0)