recurly 4.8.0 → 4.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/.travis.yml +3 -1
- data/CHANGELOG.md +49 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client/operations.rb +46 -3
- data/lib/recurly/client.rb +12 -4
- data/lib/recurly/connection_pool.rb +11 -9
- data/lib/recurly/requests/account_create.rb +4 -0
- data/lib/recurly/requests/account_purchase.rb +4 -0
- data/lib/recurly/requests/account_update.rb +4 -0
- data/lib/recurly/requests/add_on_create.rb +2 -2
- data/lib/recurly/requests/add_on_pricing.rb +4 -0
- data/lib/recurly/requests/billing_info_create.rb +24 -0
- data/lib/recurly/requests/invoice_collect.rb +1 -1
- data/lib/recurly/requests/line_item_create.rb +6 -2
- data/lib/recurly/requests/plan_pricing.rb +4 -0
- data/lib/recurly/requests/pricing.rb +4 -0
- data/lib/recurly/requests/purchase_create.rb +1 -1
- data/lib/recurly/requests/subscription_change_create.rb +5 -1
- data/lib/recurly/requests/subscription_change_shipping_create.rb +8 -0
- data/lib/recurly/requests/subscription_create.rb +5 -1
- data/lib/recurly/requests/subscription_purchase.rb +4 -0
- data/lib/recurly/requests/subscription_update.rb +9 -1
- data/lib/recurly/resources/account.rb +4 -0
- data/lib/recurly/resources/account_invoice_template.rb +18 -0
- data/lib/recurly/resources/add_on_pricing.rb +4 -0
- data/lib/recurly/resources/invoice.rb +1 -1
- data/lib/recurly/resources/line_item.rb +7 -3
- data/lib/recurly/resources/plan_pricing.rb +4 -0
- data/lib/recurly/resources/pricing.rb +4 -0
- data/lib/recurly/resources/subscription.rb +16 -0
- data/lib/recurly/resources/subscription_change.rb +4 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +291 -21
- metadata +4 -3
@@ -34,6 +34,10 @@ module Recurly
|
|
34
34
|
# @return [Integer] 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.
|
35
35
|
define_attribute :avalara_transaction_type, Integer
|
36
36
|
|
37
|
+
# @!attribute bill_for_account_id
|
38
|
+
# @return [String] The UUID of the account responsible for originating the line item.
|
39
|
+
define_attribute :bill_for_account_id, String
|
40
|
+
|
37
41
|
# @!attribute created_at
|
38
42
|
# @return [DateTime] When the line item was created.
|
39
43
|
define_attribute :created_at, DateTime
|
@@ -63,7 +67,7 @@ module Recurly
|
|
63
67
|
define_attribute :end_date, DateTime
|
64
68
|
|
65
69
|
# @!attribute external_sku
|
66
|
-
# @return [String] Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices
|
70
|
+
# @return [String] Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices feature is enabled.
|
67
71
|
define_attribute :external_sku, String
|
68
72
|
|
69
73
|
# @!attribute id
|
@@ -79,11 +83,11 @@ module Recurly
|
|
79
83
|
define_attribute :invoice_number, String
|
80
84
|
|
81
85
|
# @!attribute item_code
|
82
|
-
# @return [String] Unique code to identify an item. Available when the Credit Invoices
|
86
|
+
# @return [String] Unique code to identify an item. Available when the Credit Invoices feature is enabled.
|
83
87
|
define_attribute :item_code, String
|
84
88
|
|
85
89
|
# @!attribute item_id
|
86
|
-
# @return [String] System-generated unique identifier for an item. Available when the Credit Invoices
|
90
|
+
# @return [String] System-generated unique identifier for an item. Available when the Credit Invoices feature is enabled.
|
87
91
|
define_attribute :item_id, String
|
88
92
|
|
89
93
|
# @!attribute legacy_category
|
@@ -14,6 +14,10 @@ module Recurly
|
|
14
14
|
# @return [Float] Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.
|
15
15
|
define_attribute :setup_fee, Float
|
16
16
|
|
17
|
+
# @!attribute tax_inclusive
|
18
|
+
# @return [Boolean] Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag.
|
19
|
+
define_attribute :tax_inclusive, :Boolean
|
20
|
+
|
17
21
|
# @!attribute unit_amount
|
18
22
|
# @return [Float] Unit price
|
19
23
|
define_attribute :unit_amount, Float
|
@@ -10,6 +10,10 @@ module Recurly
|
|
10
10
|
# @return [String] 3-letter ISO 4217 currency code.
|
11
11
|
define_attribute :currency, String
|
12
12
|
|
13
|
+
# @!attribute tax_inclusive
|
14
|
+
# @return [Boolean] Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag.
|
15
|
+
define_attribute :tax_inclusive, :Boolean
|
16
|
+
|
13
17
|
# @!attribute unit_amount
|
14
18
|
# @return [Float] Unit price
|
15
19
|
define_attribute :unit_amount, Float
|
@@ -86,6 +86,10 @@ module Recurly
|
|
86
86
|
# @return [DateTime] Expires at
|
87
87
|
define_attribute :expires_at, DateTime
|
88
88
|
|
89
|
+
# @!attribute gateway_code
|
90
|
+
# @return [String] If present, this subscription's transactions will use the payment gateway with this code.
|
91
|
+
define_attribute :gateway_code, String
|
92
|
+
|
89
93
|
# @!attribute id
|
90
94
|
# @return [String] Subscription ID
|
91
95
|
define_attribute :id, String
|
@@ -146,10 +150,22 @@ module Recurly
|
|
146
150
|
# @return [Float] Estimated total, before tax.
|
147
151
|
define_attribute :subtotal, Float
|
148
152
|
|
153
|
+
# @!attribute tax
|
154
|
+
# @return [Float] Estimated tax
|
155
|
+
define_attribute :tax, Float
|
156
|
+
|
157
|
+
# @!attribute tax_info
|
158
|
+
# @return [TaxInfo] Tax info
|
159
|
+
define_attribute :tax_info, :TaxInfo
|
160
|
+
|
149
161
|
# @!attribute terms_and_conditions
|
150
162
|
# @return [String] Terms and conditions
|
151
163
|
define_attribute :terms_and_conditions, String
|
152
164
|
|
165
|
+
# @!attribute total
|
166
|
+
# @return [Float] Estimated total
|
167
|
+
define_attribute :total, Float
|
168
|
+
|
153
169
|
# @!attribute total_billing_cycles
|
154
170
|
# @return [Integer] The number of cycles/billing periods in a term. When `remaining_billing_cycles=0`, if `auto_renew=true` the subscription will renew and a new term will begin, otherwise the subscription will expire.
|
155
171
|
define_attribute :total_billing_cycles, Integer
|
@@ -66,6 +66,10 @@ module Recurly
|
|
66
66
|
# @return [String] The ID of the subscription that is going to be changed.
|
67
67
|
define_attribute :subscription_id, String
|
68
68
|
|
69
|
+
# @!attribute tax_inclusive
|
70
|
+
# @return [Boolean] Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag.
|
71
|
+
define_attribute :tax_inclusive, :Boolean
|
72
|
+
|
69
73
|
# @!attribute unit_amount
|
70
74
|
# @return [Float] Unit amount
|
71
75
|
define_attribute :unit_amount, Float
|
data/lib/recurly/version.rb
CHANGED