Skip to content

Commit

Permalink
Generated Latest Changes for v2021-02-25
Browse files Browse the repository at this point in the history
  • Loading branch information
Recurly Integrations authored Aug 8, 2024
1 parent 6c29f47 commit 5207946
Show file tree
Hide file tree
Showing 14 changed files with 136 additions and 79 deletions.
2 changes: 1 addition & 1 deletion lib/recurly/requests/add_on_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class AddOnCreate < Request
define_attribute :revenue_schedule_type, String

# @!attribute tax_code
# @return [String] 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.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tier_type
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/requests/add_on_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class AddOnUpdate < Request
define_attribute :revenue_schedule_type, String

# @!attribute tax_code
# @return [String] 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.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tiers
Expand Down
6 changes: 5 additions & 1 deletion lib/recurly/requests/invoice_refund.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Requests
class InvoiceRefund < Request

# @!attribute amount
# @return [Float] 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.
# @return [Float] The amount to be refunded. The amount will be split between the line items. 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".
define_attribute :amount, Float

# @!attribute credit_customer_notes
Expand All @@ -22,6 +22,10 @@ class InvoiceRefund < Request
# @return [Array[LineItemRefund]] The line items to be refunded. This is required when `type=line_items`.
define_attribute :line_items, Array, { :item_type => :LineItemRefund }

# @!attribute percentage
# @return [Integer] 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".
define_attribute :percentage, Integer

# @!attribute refund_method
# @return [String] 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. - `credit_first` – Issues credit back to the account first, then refunds any remaining amount back to the transaction. Default value when Credit Invoices feature is not enabled. - `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.
define_attribute :refund_method, String
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/requests/item_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ItemCreate < Request
define_attribute :revenue_schedule_type, String

# @!attribute tax_code
# @return [String] 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`.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tax_exempt
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/requests/item_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ItemUpdate < Request
define_attribute :revenue_schedule_type, String

# @!attribute tax_code
# @return [String] 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`.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tax_exempt
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/requests/line_item_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class LineItemCreate < Request
define_attribute :start_date, DateTime

# @!attribute tax_code
# @return [String] 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`.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tax_exempt
Expand Down
12 changes: 10 additions & 2 deletions lib/recurly/requests/line_item_refund.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,28 @@ module Recurly
module Requests
class LineItemRefund < Request

# @!attribute amount
# @return [Float] 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.
define_attribute :amount, Float

# @!attribute id
# @return [String] Line item ID
define_attribute :id, String

# @!attribute percentage
# @return [Integer] 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.
define_attribute :percentage, Integer

# @!attribute prorate
# @return [Boolean] 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.
define_attribute :prorate, :Boolean

# @!attribute quantity
# @return [Integer] Line item quantity to be refunded.
# @return [Integer] 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.
define_attribute :quantity, Integer

# @!attribute quantity_decimal
# @return [String] 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.
# @return [String] 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.
define_attribute :quantity_decimal, String
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/requests/plan_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class PlanCreate < Request
define_attribute :setup_fee_revenue_schedule_type, String

# @!attribute tax_code
# @return [String] 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`.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tax_exempt
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/requests/plan_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class PlanUpdate < Request
define_attribute :setup_fee_revenue_schedule_type, String

# @!attribute tax_code
# @return [String] 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`.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tax_exempt
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/add_on.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class AddOn < Resource
define_attribute :state, String

# @!attribute tax_code
# @return [String] 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`.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tier_type
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Item < Resource
define_attribute :state, String

# @!attribute tax_code
# @return [String] 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`.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tax_exempt
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/line_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class LineItem < Resource
define_attribute :tax, Float

# @!attribute tax_code
# @return [String] 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`.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tax_exempt
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Plan < Resource
define_attribute :state, String

# @!attribute tax_code
# @return [String] 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`.
# @return [String] 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.
define_attribute :tax_code, String

# @!attribute tax_exempt
Expand Down
Loading

0 comments on commit 5207946

Please sign in to comment.