From f4c9d0b09e60dc473060db9654e531de789ec799 Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Mon, 19 Aug 2024 21:57:22 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- add_on.go | 2 +- add_on_create.go | 2 +- add_on_update.go | 2 +- invoice_refund.go | 5 +- item.go | 2 +- item_create.go | 2 +- item_update.go | 2 +- line_item.go | 2 +- line_item_create.go | 2 +- line_item_refund.go | 10 ++- openapi/api.yaml | 175 ++++++++++++++++++++++++++++---------------- plan.go | 2 +- plan_create.go | 2 +- plan_update.go | 2 +- 14 files changed, 133 insertions(+), 79 deletions(-) diff --git a/add_on.go b/add_on.go index b63bd2d..9b1a8e7 100644 --- a/add_on.go +++ b/add_on.go @@ -73,7 +73,7 @@ type AddOn struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. 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) for more available t/s types. AvalaraServiceType int `json:"avalara_service_type,omitempty"` - // Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of the request then `tax_code` must be absent. TaxCode string `json:"tax_code,omitempty"` // Determines if the quantity field is displayed on the hosted pages for the add-on. diff --git a/add_on_create.go b/add_on_create.go index e2d9bf0..cd5c5f8 100644 --- a/add_on_create.go +++ b/add_on_create.go @@ -79,7 +79,7 @@ type AddOnCreate struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. 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) for more available t/s types. If an `Item` is associated to the `AddOn`, then the `avalara_service_type` must be absent. AvalaraServiceType *int `json:"avalara_service_type,omitempty"` - // Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. If `item_code`/`item_id` is part of the request then `tax_code` must be absent. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of the request then `tax_code` must be absent. TaxCode *string `json:"tax_code,omitempty"` // * If `item_code`/`item_id` is part of the request and the item diff --git a/add_on_update.go b/add_on_update.go index ff1e487..dd80e2b 100644 --- a/add_on_update.go +++ b/add_on_update.go @@ -56,7 +56,7 @@ type AddOnUpdate struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. 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) for more available t/s types. If an `Item` is associated to the `AddOn`, then the `avalara_service_type` must be absent. AvalaraServiceType *int `json:"avalara_service_type,omitempty"` - // Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. If an `Item` is associated to the `AddOn` then `tax code` must be absent. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. If an `Item` is associated to the `AddOn` then `tax_code` must be absent. TaxCode *string `json:"tax_code,omitempty"` // Determines if the quantity field is displayed on the hosted pages for the add-on. diff --git a/invoice_refund.go b/invoice_refund.go index 3442c0f..c918c96 100644 --- a/invoice_refund.go +++ b/invoice_refund.go @@ -12,9 +12,12 @@ type InvoiceRefund struct { Type *string `json:"type,omitempty"` // The amount to be refunded. The amount will be split between the line items. - // If no amount is specified, it will default to refunding the total refundable amount on the invoice. + // If `type` is "amount" and no amount is specified, it will default to refunding the total refundable amount on the invoice. Can only be present if `type` is "amount". Amount *float64 `json:"amount,omitempty"` + // The percentage of the remaining balance to be refunded. The percentage will be split between the line items. If `type` is "percentage" and no percentage is specified, it will default to refunding 100% of the refundable amount on the invoice. Can only be present if `type` is "percentage". + Percentage *int `json:"percentage,omitempty"` + // The line items to be refunded. This is required when `type=line_items`. LineItems []LineItemRefund `json:"line_items,omitempty"` diff --git a/item.go b/item.go index 6381def..7f74bed 100644 --- a/item.go +++ b/item.go @@ -61,7 +61,7 @@ type Item struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the item is taxed. 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) for more available t/s types. AvalaraServiceType int `json:"avalara_service_type,omitempty"` - // Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. TaxCode string `json:"tax_code,omitempty"` // `true` exempts tax on the item, `false` applies tax on the item. diff --git a/item_create.go b/item_create.go index 7df18fa..f8e223b 100644 --- a/item_create.go +++ b/item_create.go @@ -47,7 +47,7 @@ type ItemCreate struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the item is taxed. 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) for more available t/s types. AvalaraServiceType *int `json:"avalara_service_type,omitempty"` - // Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. TaxCode *string `json:"tax_code,omitempty"` // `true` exempts tax on the item, `false` applies tax on the item. diff --git a/item_update.go b/item_update.go index ac78ffe..8d236b1 100644 --- a/item_update.go +++ b/item_update.go @@ -47,7 +47,7 @@ type ItemUpdate struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the item is taxed. 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) for more available t/s types. AvalaraServiceType *int `json:"avalara_service_type,omitempty"` - // Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. TaxCode *string `json:"tax_code,omitempty"` // `true` exempts tax on the item, `false` applies tax on the item. diff --git a/line_item.go b/line_item.go index 9c618b0..95cbc04 100644 --- a/line_item.go +++ b/line_item.go @@ -152,7 +152,7 @@ type LineItem struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the line item is taxed. 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) for more available t/s types. AvalaraServiceType int `json:"avalara_service_type,omitempty"` - // Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. TaxCode string `json:"tax_code,omitempty"` // Only for merchants using Recurly's In-The-Box taxes. diff --git a/line_item_create.go b/line_item_create.go index 5ed0b67..f75a405 100644 --- a/line_item_create.go +++ b/line_item_create.go @@ -70,7 +70,7 @@ type LineItemCreate struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the line item is taxed. 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) for more available t/s types. If an `Item` is associated to the `LineItem`, then the `avalara_service_type` must be absent. AvalaraServiceType *int `json:"avalara_service_type,omitempty"` - // Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. TaxCode *string `json:"tax_code,omitempty"` // Optional field to track a product code or SKU for the line item. This can be used to later reporting on product purchases. For Vertex tax calculations, this field will be used as the Vertex `product` field. If `item_code`/`item_id` is part of the request then `product_code` must be absent. diff --git a/line_item_refund.go b/line_item_refund.go index 0ca6f6a..43382eb 100644 --- a/line_item_refund.go +++ b/line_item_refund.go @@ -11,12 +11,18 @@ type LineItemRefund struct { // Line item ID Id *string `json:"id,omitempty"` - // Line item quantity to be refunded. + // Line item quantity to be refunded. Must be less than or equal to the `quantity_remaining`. If `quantity_decimal`, `amount`, and `percentage` are not present, `quantity` is required. If `amount` or `percentage` is present, `quantity` must be absent. Quantity *int `json:"quantity,omitempty"` - // A floating-point alternative to Quantity. If this value is present, it will be used in place of Quantity for calculations, and Quantity will be the rounded integer value of this number. This field supports up to 9 decimal places. The Decimal Quantity feature must be enabled to utilize this field. + // Decimal quantity to refund. The `quantity_decimal` will be used to refund charges that has a NOT null quantity decimal. Must be less than or equal to the `quantity_decimal_remaining`. If `quantity`, `amount`, and `percentage` are not present, `quantity_decimal` is required. If `amount` or `percentage` is present, `quantity_decimal` must be absent. The Decimal Quantity feature must be enabled to utilize this field. QuantityDecimal *string `json:"quantity_decimal,omitempty"` + // The specific amount to be refunded from the adjustment. Must be less than or equal to the adjustment's remaining balance. If `quantity`, `quantity_decimal` and `percentage` are not present, `amount` is required. If `quantity`, `quantity_decimal`, or `percentage` is present, `amount` must be absent. + Amount *float64 `json:"amount,omitempty"` + + // The percentage of the adjustment's remaining balance to refund. If `quantity`, `quantity_decimal` and `amount_in_cents` are not present, `percentage` is required. If `quantity`, `quantity_decimal` or `amount_in_cents` is present, `percentage` must be absent. + Percentage *int `json:"percentage,omitempty"` + // Set to `true` if the line item should be prorated; set to `false` if not. // This can only be used on line items that have a start and end date. Prorate *bool `json:"prorate,omitempty"` diff --git a/openapi/api.yaml b/openapi/api.yaml index 5992ef4..5b14ea9 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -18148,11 +18148,14 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. - The tax code values are specific to each tax system. If you are using - Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of + the request then `tax_code` must be absent. display_quantity: type: boolean title: Display quantity? @@ -18367,14 +18370,14 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Optional field used by Avalara, Vertex, and Recurly's EU VAT - tax feature to determine taxation rules. If you have your own AvaTax or - Vertex account configured, use their tax codes to assign specific tax - rules. If you are using Recurly's EU VAT feature, you can use values of - `unknown`, `physical`, or `digital`. If `item_code`/`item_id` is part - of the request then `tax_code` must be absent. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of + the request then `tax_code` must be absent. currencies: type: array title: Add-on pricing @@ -18522,14 +18525,14 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Optional field used by Avalara, Vertex, and Recurly's EU VAT - tax feature to determine taxation rules. If you have your own AvaTax or - Vertex account configured, use their tax codes to assign specific tax - rules. If you are using Recurly's EU VAT feature, you can use values of - `unknown`, `physical`, or `digital`. If an `Item` is associated to the - `AddOn` then `tax code` must be absent. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. If an `Item` is associated to the + `AddOn` then `tax_code` must be absent. display_quantity: type: boolean title: Display quantity? @@ -19808,11 +19811,13 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. - The tax code values are specific to each tax system. If you are using - Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. tax_exempt: type: boolean title: Tax exempt? @@ -19916,11 +19921,13 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. - The tax code values are specific to each tax system. If you are using - Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. tax_exempt: type: boolean title: Tax exempt? @@ -20012,11 +20019,13 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. - The tax code values are specific to each tax system. If you are using - Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. tax_exempt: type: boolean title: Tax exempt? @@ -20466,7 +20475,16 @@ components: title: Amount description: | The amount to be refunded. The amount will be split between the line items. - If no amount is specified, it will default to refunding the total refundable amount on the invoice. + If `type` is "amount" and no amount is specified, it will default to refunding the total refundable amount on the invoice. Can only be present if `type` is "amount". + percentage: + type: integer + title: Percentage + description: The percentage of the remaining balance to be refunded. The + percentage will be split between the line items. If `type` is "percentage" + and no percentage is specified, it will default to refunding 100% of the + refundable amount on the invoice. Can only be present if `type` is "percentage". + minimum: 1 + maximum: 100 line_items: type: array title: Line items @@ -20482,7 +20500,7 @@ components: - `all_credit` – Issues credit to the account for the entire amount of the refund. Only available when the Credit Invoices feature is enabled. - `all_transaction` – Refunds the entire amount back to transactions, using transactions from previous invoices if necessary. Only available when the Credit Invoices feature is enabled. default: credit_first - "$ref": "#/components/schemas/RefuneMethodEnum" + "$ref": "#/components/schemas/RefundMethodEnum" credit_customer_notes: type: string title: Credit customer notes @@ -20873,11 +20891,13 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. - The tax code values are specific to each tax system. If you are using - Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. tax_info: "$ref": "#/components/schemas/TaxInfo" origin_tax_address_source: @@ -20951,15 +20971,35 @@ components: quantity: type: integer title: Quantity - description: Line item quantity to be refunded. + description: Line item quantity to be refunded. Must be less than or equal + to the `quantity_remaining`. If `quantity_decimal`, `amount`, and `percentage` + are not present, `quantity` is required. If `amount` or `percentage` is + present, `quantity` must be absent. quantity_decimal: type: string title: Quantity Decimal - description: A floating-point alternative to Quantity. If this value is - present, it will be used in place of Quantity for calculations, and Quantity - will be the rounded integer value of this number. This field supports - up to 9 decimal places. The Decimal Quantity feature must be enabled to - utilize this field. + description: Decimal quantity to refund. The `quantity_decimal` will be + used to refund charges that has a NOT null quantity decimal. Must be less + than or equal to the `quantity_decimal_remaining`. If `quantity`, `amount`, + and `percentage` are not present, `quantity_decimal` is required. If `amount` + or `percentage` is present, `quantity_decimal` must be absent. The Decimal + Quantity feature must be enabled to utilize this field. + amount: + type: number + format: float + description: The specific amount to be refunded from the adjustment. Must + be less than or equal to the adjustment's remaining balance. If `quantity`, + `quantity_decimal` and `percentage` are not present, `amount` is required. + If `quantity`, `quantity_decimal`, or `percentage` is present, `amount` + must be absent. + percentage: + type: integer + description: The percentage of the adjustment's remaining balance to refund. + If `quantity`, `quantity_decimal` and `amount_in_cents` are not present, + `percentage` is required. If `quantity`, `quantity_decimal` or `amount_in_cents` + is present, `percentage` must be absent. + minimum: 1 + maximum: 100 prorate: type: boolean title: Prorate @@ -21095,13 +21135,13 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Optional field used by Avalara, Vertex, and Recurly's EU VAT - tax feature to determine taxation rules. If you have your own AvaTax or - Vertex account configured, use their tax codes to assign specific tax - rules. If you are using Recurly's EU VAT feature, you can use values of - `unknown`, `physical`, or `digital`. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. product_code: type: string title: Product code @@ -21299,11 +21339,13 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. - The tax code values are specific to each tax system. If you are using - Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. tax_exempt: type: boolean title: Tax exempt? @@ -21512,13 +21554,13 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Optional field used by Avalara, Vertex, and Recurly's EU VAT - tax feature to determine taxation rules. If you have your own AvaTax or - Vertex account configured, use their tax codes to assign specific tax - rules. If you are using Recurly's EU VAT feature, you can use values of - `unknown`, `physical`, or `digital`. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. tax_exempt: type: boolean title: Tax exempt? @@ -21776,13 +21818,13 @@ components: minimum: 0 tax_code: type: string - title: Tax code - description: Optional field used by Avalara, Vertex, and Recurly's EU VAT - tax feature to determine taxation rules. If you have your own AvaTax or - Vertex account configured, use their tax codes to assign specific tax - rules. If you are using Recurly's EU VAT feature, you can use values of - `unknown`, `physical`, or `digital`. maxLength: 50 + title: Tax code + description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box + tax solution to determine taxation rules. You can pass in specific tax + codes using any of these tax integrations. For Recurly's In-the-Box tax + offering you can also choose to instead use simple values of `unknown`, + `physical`, or `digital` tax codes. tax_exempt: type: boolean title: Tax exempt? @@ -26231,8 +26273,9 @@ components: type: string enum: - amount + - percentage - line_items - RefuneMethodEnum: + RefundMethodEnum: type: string enum: - all_credit @@ -26246,6 +26289,7 @@ components: - ach - amazon - apple_pay + - braintree_apple_pay - check - credit_card - eft @@ -26439,6 +26483,7 @@ components: - amazon_billing_agreement - apple_pay - bank_account_info + - braintree_apple_pay - check - credit_card - eft diff --git a/plan.go b/plan.go index da588de..13a4011 100644 --- a/plan.go +++ b/plan.go @@ -81,7 +81,7 @@ type Plan struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the plan is taxed. 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) for more available t/s types. AvalaraServiceType int `json:"avalara_service_type,omitempty"` - // Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. TaxCode string `json:"tax_code,omitempty"` // `true` exempts tax on the plan, `false` applies tax on the plan. diff --git a/plan_create.go b/plan_create.go index c54a60f..821ea15 100644 --- a/plan_create.go +++ b/plan_create.go @@ -97,7 +97,7 @@ type PlanCreate struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the plan is taxed. 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) for more available t/s types. AvalaraServiceType *int `json:"avalara_service_type,omitempty"` - // Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. TaxCode *string `json:"tax_code,omitempty"` // `true` exempts tax on the plan, `false` applies tax on the plan. diff --git a/plan_update.go b/plan_update.go index d958b26..f35a762 100644 --- a/plan_update.go +++ b/plan_update.go @@ -89,7 +89,7 @@ type PlanUpdate struct { // Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the plan is taxed. 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) for more available t/s types. AvalaraServiceType *int `json:"avalara_service_type,omitempty"` - // Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. + // Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. TaxCode *string `json:"tax_code,omitempty"` // `true` exempts tax on the plan, `false` applies tax on the plan.