From f39f5d4a3208d3965171c6896b94e2dce242e7f6 Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Thu, 8 Aug 2024 17:48:20 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- Recurly/Constants.cs | 11 +- Recurly/Resources/AddOn.cs | 2 +- Recurly/Resources/AddOnCreate.cs | 2 +- Recurly/Resources/AddOnUpdate.cs | 2 +- Recurly/Resources/InvoiceRefund.cs | 8 +- Recurly/Resources/Item.cs | 2 +- Recurly/Resources/ItemCreate.cs | 2 +- Recurly/Resources/ItemUpdate.cs | 2 +- Recurly/Resources/LineItem.cs | 2 +- Recurly/Resources/LineItemCreate.cs | 2 +- Recurly/Resources/LineItemRefund.cs | 12 +- Recurly/Resources/Plan.cs | 2 +- Recurly/Resources/PlanCreate.cs | 2 +- Recurly/Resources/PlanUpdate.cs | 2 +- openapi/api.yaml | 175 +++++++++++++++++----------- 15 files changed, 147 insertions(+), 81 deletions(-) diff --git a/Recurly/Constants.cs b/Recurly/Constants.cs index e748dfb3..edf33e74 100644 --- a/Recurly/Constants.cs +++ b/Recurly/Constants.cs @@ -900,12 +900,15 @@ public enum InvoiceRefundType [EnumMember(Value = "amount")] Amount, + [EnumMember(Value = "percentage")] + Percentage, + [EnumMember(Value = "line_items")] LineItems, }; - public enum RefuneMethod + public enum RefundMethod { Undefined = 0, @@ -939,6 +942,9 @@ public enum ExternalPaymentMethod [EnumMember(Value = "apple_pay")] ApplePay, + [EnumMember(Value = "braintree_apple_pay")] + BraintreeApplePay, + [EnumMember(Value = "check")] Check, @@ -1458,6 +1464,9 @@ public enum PaymentMethod [EnumMember(Value = "bank_account_info")] BankAccountInfo, + [EnumMember(Value = "braintree_apple_pay")] + BraintreeApplePay, + [EnumMember(Value = "check")] Check, diff --git a/Recurly/Resources/AddOn.cs b/Recurly/Resources/AddOn.cs index 6f60c320..be865609 100644 --- a/Recurly/Resources/AddOn.cs +++ b/Recurly/Resources/AddOn.cs @@ -126,7 +126,7 @@ public class AddOn : Resource [JsonConverter(typeof(RecurlyStringEnumConverter))] public Constants.ActiveState? State { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/AddOnCreate.cs b/Recurly/Resources/AddOnCreate.cs index 5c6a2a4d..ff3b4ce5 100644 --- a/Recurly/Resources/AddOnCreate.cs +++ b/Recurly/Resources/AddOnCreate.cs @@ -123,7 +123,7 @@ public class AddOnCreate : Request [JsonConverter(typeof(RecurlyStringEnumConverter))] public Constants.RevenueScheduleType? RevenueScheduleType { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/AddOnUpdate.cs b/Recurly/Resources/AddOnUpdate.cs index e2b15e10..c3ec3a63 100644 --- a/Recurly/Resources/AddOnUpdate.cs +++ b/Recurly/Resources/AddOnUpdate.cs @@ -106,7 +106,7 @@ public class AddOnUpdate : Request [JsonConverter(typeof(RecurlyStringEnumConverter))] public Constants.RevenueScheduleType? RevenueScheduleType { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/InvoiceRefund.cs b/Recurly/Resources/InvoiceRefund.cs index f9e01e83..e2a0df73 100644 --- a/Recurly/Resources/InvoiceRefund.cs +++ b/Recurly/Resources/InvoiceRefund.cs @@ -17,7 +17,7 @@ public class InvoiceRefund : Request /// /// 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". /// [JsonProperty("amount")] public decimal? Amount { get; set; } @@ -47,6 +47,10 @@ public class InvoiceRefund : Request [JsonProperty("line_items")] public List LineItems { get; set; } + /// 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". + [JsonProperty("percentage")] + public int? Percentage { get; set; } + /// /// Indicates how the invoice should be refunded when both a credit and transaction are present on the invoice: /// - `transaction_first` – Refunds the transaction first, then any amount is issued as credit back to the account. Default value when Credit Invoices feature is enabled. @@ -56,7 +60,7 @@ public class InvoiceRefund : Request /// [JsonProperty("refund_method")] [JsonConverter(typeof(RecurlyStringEnumConverter))] - public Constants.RefuneMethod? RefundMethod { get; set; } + public Constants.RefundMethod? RefundMethod { get; set; } /// The type of refund. Amount and line items cannot both be specified in the request. [JsonProperty("type")] diff --git a/Recurly/Resources/Item.cs b/Recurly/Resources/Item.cs index c8169045..d121fc0c 100644 --- a/Recurly/Resources/Item.cs +++ b/Recurly/Resources/Item.cs @@ -101,7 +101,7 @@ public class Item : Resource [JsonConverter(typeof(RecurlyStringEnumConverter))] public Constants.ActiveState? State { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/ItemCreate.cs b/Recurly/Resources/ItemCreate.cs index e04d521f..71a8470c 100644 --- a/Recurly/Resources/ItemCreate.cs +++ b/Recurly/Resources/ItemCreate.cs @@ -80,7 +80,7 @@ public class ItemCreate : Request [JsonConverter(typeof(RecurlyStringEnumConverter))] public Constants.RevenueScheduleType? RevenueScheduleType { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/ItemUpdate.cs b/Recurly/Resources/ItemUpdate.cs index 3eec20f3..8c04ffc0 100644 --- a/Recurly/Resources/ItemUpdate.cs +++ b/Recurly/Resources/ItemUpdate.cs @@ -80,7 +80,7 @@ public class ItemUpdate : Request [JsonConverter(typeof(RecurlyStringEnumConverter))] public Constants.RevenueScheduleType? RevenueScheduleType { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/LineItem.cs b/Recurly/Resources/LineItem.cs index 02739cbe..738f4d73 100644 --- a/Recurly/Resources/LineItem.cs +++ b/Recurly/Resources/LineItem.cs @@ -232,7 +232,7 @@ public class LineItem : Resource [JsonProperty("tax")] public decimal? Tax { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/LineItemCreate.cs b/Recurly/Resources/LineItemCreate.cs index be70bc9c..3e98fa50 100644 --- a/Recurly/Resources/LineItemCreate.cs +++ b/Recurly/Resources/LineItemCreate.cs @@ -112,7 +112,7 @@ public class LineItemCreate : Request [JsonProperty("start_date")] public DateTime? StartDate { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/LineItemRefund.cs b/Recurly/Resources/LineItemRefund.cs index 226df5ec..4bdad04d 100644 --- a/Recurly/Resources/LineItemRefund.cs +++ b/Recurly/Resources/LineItemRefund.cs @@ -15,10 +15,18 @@ namespace Recurly.Resources public class LineItemRefund : Request { + /// 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. + [JsonProperty("amount")] + public decimal? Amount { get; set; } + /// Line item ID [JsonProperty("id")] public string Id { get; set; } + /// 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. + [JsonProperty("percentage")] + public int? Percentage { get; set; } + /// /// 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. @@ -26,11 +34,11 @@ public class LineItemRefund : Request [JsonProperty("prorate")] public bool? Prorate { get; set; } - /// 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. [JsonProperty("quantity")] public int? Quantity { get; set; } - /// 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. [JsonProperty("quantity_decimal")] public string QuantityDecimal { get; set; } diff --git a/Recurly/Resources/Plan.cs b/Recurly/Resources/Plan.cs index 14abf802..830d9977 100644 --- a/Recurly/Resources/Plan.cs +++ b/Recurly/Resources/Plan.cs @@ -124,7 +124,7 @@ public class Plan : Resource [JsonConverter(typeof(RecurlyStringEnumConverter))] public Constants.ActiveState? State { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/PlanCreate.cs b/Recurly/Resources/PlanCreate.cs index 5741c358..f8716f71 100644 --- a/Recurly/Resources/PlanCreate.cs +++ b/Recurly/Resources/PlanCreate.cs @@ -155,7 +155,7 @@ public class PlanCreate : Request [JsonConverter(typeof(RecurlyStringEnumConverter))] public Constants.RevenueScheduleType? SetupFeeRevenueScheduleType { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/Recurly/Resources/PlanUpdate.cs b/Recurly/Resources/PlanUpdate.cs index a0b5a8a5..34818397 100644 --- a/Recurly/Resources/PlanUpdate.cs +++ b/Recurly/Resources/PlanUpdate.cs @@ -137,7 +137,7 @@ public class PlanUpdate : Request [JsonConverter(typeof(RecurlyStringEnumConverter))] public Constants.RevenueScheduleType? SetupFeeRevenueScheduleType { get; set; } - /// 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. [JsonProperty("tax_code")] public string TaxCode { get; set; } diff --git a/openapi/api.yaml b/openapi/api.yaml index 5992ef44..5b14ea98 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