recurly 3.17.0 → 4.1.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/.changelog_config.yaml +11 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +97 -350
- data/GETTING_STARTED.md +20 -17
- data/lib/recurly/client.rb +45 -20
- data/lib/recurly/client/operations.rb +770 -549
- data/lib/recurly/errors.rb +5 -22
- data/lib/recurly/errors/api_errors.rb +3 -0
- data/lib/recurly/errors/network_errors.rb +1 -4
- data/lib/recurly/pager.rb +5 -15
- data/lib/recurly/requests/{account_acquisition_updatable.rb → account_acquisition_update.rb} +1 -1
- data/lib/recurly/requests/account_create.rb +2 -2
- data/lib/recurly/requests/account_purchase.rb +2 -2
- data/lib/recurly/requests/add_on_create.rb +4 -4
- data/lib/recurly/requests/add_on_pricing.rb +5 -1
- data/lib/recurly/requests/add_on_update.rb +4 -4
- data/lib/recurly/requests/address.rb +0 -8
- data/lib/recurly/requests/billing_info_create.rb +5 -25
- data/lib/recurly/requests/coupon_create.rb +1 -1
- data/lib/recurly/requests/coupon_redemption_create.rb +4 -0
- data/lib/recurly/requests/external_transaction.rb +1 -1
- data/lib/recurly/requests/{invoice_updatable.rb → invoice_update.rb} +1 -1
- data/lib/recurly/requests/line_item_create.rb +1 -1
- data/lib/recurly/requests/subscription_add_on_create.rb +6 -2
- data/lib/recurly/requests/subscription_add_on_tier.rb +5 -1
- data/lib/recurly/requests/subscription_add_on_update.rb +6 -2
- data/lib/recurly/requests/subscription_change_create.rb +1 -1
- data/lib/recurly/requests/subscription_create.rb +3 -3
- data/lib/recurly/requests/subscription_purchase.rb +1 -1
- data/lib/recurly/requests/tier.rb +7 -3
- data/lib/recurly/requests/tier_pricing.rb +22 -0
- data/lib/recurly/resources/add_on.rb +1 -1
- data/lib/recurly/resources/add_on_pricing.rb +5 -1
- data/lib/recurly/resources/address.rb +0 -8
- data/lib/recurly/resources/address_with_name.rb +46 -0
- data/lib/recurly/resources/billing_info.rb +4 -0
- data/lib/recurly/resources/coupon.rb +5 -17
- data/lib/recurly/resources/coupon_redemption.rb +4 -0
- data/lib/recurly/resources/invoice.rb +6 -2
- data/lib/recurly/resources/line_item.rb +4 -0
- data/lib/recurly/resources/plan.rb +1 -1
- data/lib/recurly/resources/subscription_add_on.rb +6 -2
- data/lib/recurly/resources/subscription_add_on_tier.rb +5 -1
- data/lib/recurly/resources/subscription_change.rb +0 -4
- data/lib/recurly/resources/tier.rb +7 -3
- data/lib/recurly/resources/tier_pricing.rb +22 -0
- data/lib/recurly/resources/transaction.rb +6 -2
- data/lib/recurly/resources/unique_coupon_code_params.rb +26 -0
- data/lib/recurly/resources/usage.rb +5 -1
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +1917 -1860
- data/scripts/build +2 -2
- data/scripts/format +2 -2
- data/scripts/prepare-release +43 -29
- data/scripts/release +5 -20
- metadata +13 -13
- data/.github_changelog_generator +0 -8
- data/lib/recurly/resources/line_item_list.rb +0 -26
- data/lib/recurly/resources/subscription_change_preview.rb +0 -78
- data/scripts/bump +0 -11
- data/scripts/changelog +0 -14
@@ -7,7 +7,7 @@ module Recurly
|
|
7
7
|
class SubscriptionChangeCreate < Request
|
8
8
|
|
9
9
|
# @!attribute add_ons
|
10
|
-
# @return [Array[SubscriptionAddOnUpdate]] If
|
10
|
+
# @return [Array[SubscriptionAddOnUpdate]] If you provide a value for this field it will replace any existing add-ons. So, when adding or modifying an add-on, you need to include the existing subscription add-ons. Unchanged add-ons can be included just using the subscription add-on''s ID: `{"id": "abc123"}`. If this value is omitted your existing add-ons will be unaffected. To remove all existing add-ons, this value should be an empty array.' If a subscription add-on's `code` is supplied without the `id`, `{"code": "def456"}`, the subscription add-on attributes will be set to the current values of the plan add-on unless provided in the request. - If an `id` is passed, any attributes not passed in will pull from the existing subscription add-on - If a `code` is passed, any attributes not passed in will pull from the current values of the plan add-on - Attributes passed in as part of the request will override either of the above scenarios
|
11
11
|
define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOnUpdate }
|
12
12
|
|
13
13
|
# @!attribute collection_method
|
@@ -26,9 +26,9 @@ module Recurly
|
|
26
26
|
# @return [String] Collection method
|
27
27
|
define_attribute :collection_method, String
|
28
28
|
|
29
|
-
# @!attribute
|
30
|
-
# @return [String]
|
31
|
-
define_attribute :
|
29
|
+
# @!attribute coupon_codes
|
30
|
+
# @return [Array[String]] A list of coupon_codes to be redeemed on the subscription or account during the purchase.
|
31
|
+
define_attribute :coupon_codes, Array, { :item_type => String }
|
32
32
|
|
33
33
|
# @!attribute credit_customer_notes
|
34
34
|
# @return [String] If there are pending credits on the account that will be invoiced during the subscription creation, these will be used as the Customer Notes on the credit invoice.
|
@@ -59,7 +59,7 @@ module Recurly
|
|
59
59
|
define_attribute :trial_ends_at, DateTime
|
60
60
|
|
61
61
|
# @!attribute unit_amount
|
62
|
-
# @return [Float] Override the unit amount of the subscription plan by setting this value
|
62
|
+
# @return [Float] Override the unit amount of the subscription plan by setting this value. If not provided, the subscription will inherit the price from the subscription plan for the provided currency.
|
63
63
|
define_attribute :unit_amount, Float
|
64
64
|
end
|
65
65
|
end
|
@@ -7,12 +7,16 @@ module Recurly
|
|
7
7
|
class Tier < Request
|
8
8
|
|
9
9
|
# @!attribute currencies
|
10
|
-
# @return [Array[
|
11
|
-
define_attribute :currencies, Array, { :item_type => :
|
10
|
+
# @return [Array[TierPricing]] Tier pricing
|
11
|
+
define_attribute :currencies, Array, { :item_type => :TierPricing }
|
12
12
|
|
13
13
|
# @!attribute ending_quantity
|
14
|
-
# @return [Integer] Ending quantity
|
14
|
+
# @return [Integer] Ending quantity for the tier. This represents a unit amount for unit-priced add ons, but for percentage type usage add ons, represents the site default currency in its minimum divisible unit.
|
15
15
|
define_attribute :ending_quantity, Integer
|
16
|
+
|
17
|
+
# @!attribute usage_percentage
|
18
|
+
# @return [String] Decimal usage percentage.
|
19
|
+
define_attribute :usage_percentage, String
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Requests
|
7
|
+
class TierPricing < Request
|
8
|
+
|
9
|
+
# @!attribute currency
|
10
|
+
# @return [String] 3-letter ISO 4217 currency code.
|
11
|
+
define_attribute :currency, String
|
12
|
+
|
13
|
+
# @!attribute unit_amount
|
14
|
+
# @return [Float] Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.
|
15
|
+
define_attribute :unit_amount, Float
|
16
|
+
|
17
|
+
# @!attribute unit_amount_decimal
|
18
|
+
# @return [String] Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
|
19
|
+
define_attribute :unit_amount_decimal, String
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -91,7 +91,7 @@ module Recurly
|
|
91
91
|
define_attribute :tax_code, String
|
92
92
|
|
93
93
|
# @!attribute tier_type
|
94
|
-
# @return [String] The
|
94
|
+
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
|
95
95
|
define_attribute :tier_type, String
|
96
96
|
|
97
97
|
# @!attribute tiers
|
@@ -11,8 +11,12 @@ module Recurly
|
|
11
11
|
define_attribute :currency, String
|
12
12
|
|
13
13
|
# @!attribute unit_amount
|
14
|
-
# @return [Float]
|
14
|
+
# @return [Float] Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.
|
15
15
|
define_attribute :unit_amount, Float
|
16
|
+
|
17
|
+
# @!attribute unit_amount_decimal
|
18
|
+
# @return [String] Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
|
19
|
+
define_attribute :unit_amount_decimal, String
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
@@ -14,14 +14,6 @@ module Recurly
|
|
14
14
|
# @return [String] Country, 2-letter ISO code.
|
15
15
|
define_attribute :country, String
|
16
16
|
|
17
|
-
# @!attribute first_name
|
18
|
-
# @return [String] First name
|
19
|
-
define_attribute :first_name, String
|
20
|
-
|
21
|
-
# @!attribute last_name
|
22
|
-
# @return [String] Last name
|
23
|
-
define_attribute :last_name, String
|
24
|
-
|
25
17
|
# @!attribute phone
|
26
18
|
# @return [String] Phone number
|
27
19
|
define_attribute :phone, String
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Resources
|
7
|
+
class AddressWithName < Resource
|
8
|
+
|
9
|
+
# @!attribute city
|
10
|
+
# @return [String] City
|
11
|
+
define_attribute :city, String
|
12
|
+
|
13
|
+
# @!attribute country
|
14
|
+
# @return [String] Country, 2-letter ISO code.
|
15
|
+
define_attribute :country, String
|
16
|
+
|
17
|
+
# @!attribute first_name
|
18
|
+
# @return [String] First name
|
19
|
+
define_attribute :first_name, String
|
20
|
+
|
21
|
+
# @!attribute last_name
|
22
|
+
# @return [String] Last name
|
23
|
+
define_attribute :last_name, String
|
24
|
+
|
25
|
+
# @!attribute phone
|
26
|
+
# @return [String] Phone number
|
27
|
+
define_attribute :phone, String
|
28
|
+
|
29
|
+
# @!attribute postal_code
|
30
|
+
# @return [String] Zip or postal code.
|
31
|
+
define_attribute :postal_code, String
|
32
|
+
|
33
|
+
# @!attribute region
|
34
|
+
# @return [String] State or province.
|
35
|
+
define_attribute :region, String
|
36
|
+
|
37
|
+
# @!attribute street1
|
38
|
+
# @return [String] Street 1
|
39
|
+
define_attribute :street1, String
|
40
|
+
|
41
|
+
# @!attribute street2
|
42
|
+
# @return [String] Street 2
|
43
|
+
define_attribute :street2, String
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -14,6 +14,10 @@ module Recurly
|
|
14
14
|
# @return [Address]
|
15
15
|
define_attribute :address, :Address
|
16
16
|
|
17
|
+
# @!attribute backup_payment_method
|
18
|
+
# @return [Boolean] The `backup_payment_method` indicator is used to designate a billing info as a backup on the account that will be tried if the billing info marked `primary_payment_method` fails.
|
19
|
+
define_attribute :backup_payment_method, :Boolean
|
20
|
+
|
17
21
|
# @!attribute company
|
18
22
|
# @return [String]
|
19
23
|
define_attribute :company, String
|
@@ -11,21 +11,13 @@ module Recurly
|
|
11
11
|
define_attribute :applies_to_all_items, :Boolean
|
12
12
|
|
13
13
|
# @!attribute applies_to_all_plans
|
14
|
-
# @return [Boolean] The coupon is valid for all plans if true. If false then `plans`
|
14
|
+
# @return [Boolean] The coupon is valid for all plans if true. If false then `plans` will list the applicable plans.
|
15
15
|
define_attribute :applies_to_all_plans, :Boolean
|
16
16
|
|
17
17
|
# @!attribute applies_to_non_plan_charges
|
18
18
|
# @return [Boolean] The coupon is valid for one-time, non-plan charges if true.
|
19
19
|
define_attribute :applies_to_non_plan_charges, :Boolean
|
20
20
|
|
21
|
-
# @!attribute bulk_coupon_code
|
22
|
-
# @return [String] The Coupon code of the parent Bulk Coupon
|
23
|
-
define_attribute :bulk_coupon_code, String
|
24
|
-
|
25
|
-
# @!attribute bulk_coupon_id
|
26
|
-
# @return [String] The Coupon ID of the parent Bulk Coupon
|
27
|
-
define_attribute :bulk_coupon_id, String
|
28
|
-
|
29
21
|
# @!attribute code
|
30
22
|
# @return [String] The code the customer enters to redeem the coupon.
|
31
23
|
define_attribute :code, String
|
@@ -94,18 +86,10 @@ module Recurly
|
|
94
86
|
# @return [Array[PlanMini]] A list of plans for which this coupon applies. This will be `null` if `applies_to_all_plans=true`.
|
95
87
|
define_attribute :plans, Array, { :item_type => :PlanMini }
|
96
88
|
|
97
|
-
# @!attribute plans_names
|
98
|
-
# @return [Array[String]] A list of plan names for which this coupon applies.
|
99
|
-
define_attribute :plans_names, Array, { :item_type => String }
|
100
|
-
|
101
89
|
# @!attribute redeem_by
|
102
90
|
# @return [DateTime] The date and time the coupon will expire and can no longer be redeemed. Time is always 11:59:59, the end-of-day Pacific time.
|
103
91
|
define_attribute :redeem_by, DateTime
|
104
92
|
|
105
|
-
# @!attribute redeemed_at
|
106
|
-
# @return [DateTime] The date and time the unique coupon code was redeemed. This is only present for bulk coupons.
|
107
|
-
define_attribute :redeemed_at, DateTime
|
108
|
-
|
109
93
|
# @!attribute redemption_resource
|
110
94
|
# @return [String] Whether the discount is for all eligible charges on the account, or only a specific subscription.
|
111
95
|
define_attribute :redemption_resource, String
|
@@ -126,6 +110,10 @@ module Recurly
|
|
126
110
|
# @return [String] On a bulk coupon, the template from which unique coupon codes are generated.
|
127
111
|
define_attribute :unique_code_template, String
|
128
112
|
|
113
|
+
# @!attribute unique_coupon_code
|
114
|
+
# @return [Hash] Will be populated when the Coupon being returned is a `UniqueCouponCode`.
|
115
|
+
define_attribute :unique_coupon_code, Hash
|
116
|
+
|
129
117
|
# @!attribute unique_coupon_codes_count
|
130
118
|
# @return [Integer] When this number reaches `max_redemptions` the coupon will no longer be redeemable.
|
131
119
|
define_attribute :unique_coupon_codes_count, Integer
|
@@ -42,6 +42,10 @@ module Recurly
|
|
42
42
|
# @return [String] Coupon Redemption state
|
43
43
|
define_attribute :state, String
|
44
44
|
|
45
|
+
# @!attribute subscription_id
|
46
|
+
# @return [String] Subscription ID
|
47
|
+
define_attribute :subscription_id, String
|
48
|
+
|
45
49
|
# @!attribute updated_at
|
46
50
|
# @return [DateTime] Last updated at
|
47
51
|
define_attribute :updated_at, DateTime
|
@@ -54,13 +54,17 @@ module Recurly
|
|
54
54
|
# @return [DateTime] Date invoice is due. This is the date the net terms are reached.
|
55
55
|
define_attribute :due_at, DateTime
|
56
56
|
|
57
|
+
# @!attribute has_more_line_items
|
58
|
+
# @return [Boolean] Identifies if the invoice has more line items than are returned in `line_items`. If `has_more_line_items` is `true`, then a request needs to be made to the `list_invoice_line_items` endpoint.
|
59
|
+
define_attribute :has_more_line_items, :Boolean
|
60
|
+
|
57
61
|
# @!attribute id
|
58
62
|
# @return [String] Invoice ID
|
59
63
|
define_attribute :id, String
|
60
64
|
|
61
65
|
# @!attribute line_items
|
62
|
-
# @return [
|
63
|
-
define_attribute :line_items, :
|
66
|
+
# @return [Array[LineItem]] Line Items
|
67
|
+
define_attribute :line_items, Array, { :item_type => :LineItem }
|
64
68
|
|
65
69
|
# @!attribute net_terms
|
66
70
|
# @return [Integer] Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.
|
@@ -186,6 +186,10 @@ module Recurly
|
|
186
186
|
# @return [Float] Positive amount for a charge, negative amount for a credit.
|
187
187
|
define_attribute :unit_amount, Float
|
188
188
|
|
189
|
+
# @!attribute unit_amount_decimal
|
190
|
+
# @return [String] Positive amount for a charge, negative amount for a credit.
|
191
|
+
define_attribute :unit_amount_decimal, String
|
192
|
+
|
189
193
|
# @!attribute updated_at
|
190
194
|
# @return [DateTime] When the line item was last changed.
|
191
195
|
define_attribute :updated_at, DateTime
|
@@ -103,7 +103,7 @@ module Recurly
|
|
103
103
|
define_attribute :trial_length, Integer
|
104
104
|
|
105
105
|
# @!attribute trial_requires_billing_info
|
106
|
-
# @return [Boolean] Allow free trial subscriptions to be created without billing info.
|
106
|
+
# @return [Boolean] Allow free trial subscriptions to be created without billing info. Should not be used if billing info is needed for initial invoice due to existing uninvoiced charges or setup fee.
|
107
107
|
define_attribute :trial_requires_billing_info, :Boolean
|
108
108
|
|
109
109
|
# @!attribute trial_unit
|
@@ -43,7 +43,7 @@ module Recurly
|
|
43
43
|
define_attribute :subscription_id, String
|
44
44
|
|
45
45
|
# @!attribute tier_type
|
46
|
-
# @return [String] The
|
46
|
+
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
|
47
47
|
define_attribute :tier_type, String
|
48
48
|
|
49
49
|
# @!attribute tiers
|
@@ -51,9 +51,13 @@ module Recurly
|
|
51
51
|
define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
|
52
52
|
|
53
53
|
# @!attribute unit_amount
|
54
|
-
# @return [Float]
|
54
|
+
# @return [Float] Supports up to 2 decimal places.
|
55
55
|
define_attribute :unit_amount, Float
|
56
56
|
|
57
|
+
# @!attribute unit_amount_decimal
|
58
|
+
# @return [String] Supports up to 9 decimal places.
|
59
|
+
define_attribute :unit_amount_decimal, String
|
60
|
+
|
57
61
|
# @!attribute updated_at
|
58
62
|
# @return [DateTime] Updated at
|
59
63
|
define_attribute :updated_at, DateTime
|
@@ -11,8 +11,12 @@ module Recurly
|
|
11
11
|
define_attribute :ending_quantity, Integer
|
12
12
|
|
13
13
|
# @!attribute unit_amount
|
14
|
-
# @return [Float]
|
14
|
+
# @return [Float] Allows up to 2 decimal places. Optionally, override the tiers' default unit amount.
|
15
15
|
define_attribute :unit_amount, Float
|
16
|
+
|
17
|
+
# @!attribute unit_amount_decimal
|
18
|
+
# @return [String] Allows up to 9 decimal places. Optionally, override tiers' default unit amount. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
|
19
|
+
define_attribute :unit_amount_decimal, String
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
@@ -54,10 +54,6 @@ module Recurly
|
|
54
54
|
# @return [String] Revenue schedule type
|
55
55
|
define_attribute :revenue_schedule_type, String
|
56
56
|
|
57
|
-
# @!attribute setup_fee_revenue_schedule_type
|
58
|
-
# @return [String] Setup fee revenue schedule type
|
59
|
-
define_attribute :setup_fee_revenue_schedule_type, String
|
60
|
-
|
61
57
|
# @!attribute shipping
|
62
58
|
# @return [SubscriptionShipping] Subscription shipping details
|
63
59
|
define_attribute :shipping, :SubscriptionShipping
|
@@ -7,12 +7,16 @@ module Recurly
|
|
7
7
|
class Tier < Resource
|
8
8
|
|
9
9
|
# @!attribute currencies
|
10
|
-
# @return [Array[
|
11
|
-
define_attribute :currencies, Array, { :item_type => :
|
10
|
+
# @return [Array[TierPricing]] Tier pricing
|
11
|
+
define_attribute :currencies, Array, { :item_type => :TierPricing }
|
12
12
|
|
13
13
|
# @!attribute ending_quantity
|
14
|
-
# @return [Integer] Ending quantity
|
14
|
+
# @return [Integer] Ending quantity for the tier. This represents a unit amount for unit-priced add ons, but for percentage type usage add ons, represents the site default currency in its minimum divisible unit.
|
15
15
|
define_attribute :ending_quantity, Integer
|
16
|
+
|
17
|
+
# @!attribute usage_percentage
|
18
|
+
# @return [String] Decimal usage percentage.
|
19
|
+
define_attribute :usage_percentage, String
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Resources
|
7
|
+
class TierPricing < Resource
|
8
|
+
|
9
|
+
# @!attribute currency
|
10
|
+
# @return [String] 3-letter ISO 4217 currency code.
|
11
|
+
define_attribute :currency, String
|
12
|
+
|
13
|
+
# @!attribute unit_amount
|
14
|
+
# @return [Float] Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.
|
15
|
+
define_attribute :unit_amount, Float
|
16
|
+
|
17
|
+
# @!attribute unit_amount_decimal
|
18
|
+
# @return [String] Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
|
19
|
+
define_attribute :unit_amount_decimal, String
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -18,9 +18,13 @@ module Recurly
|
|
18
18
|
# @return [String] When processed, result from checking the overall AVS on the transaction.
|
19
19
|
define_attribute :avs_check, String
|
20
20
|
|
21
|
+
# @!attribute backup_payment_method_used
|
22
|
+
# @return [Boolean] Indicates if the transaction was completed using a backup payment
|
23
|
+
define_attribute :backup_payment_method_used, :Boolean
|
24
|
+
|
21
25
|
# @!attribute billing_address
|
22
|
-
# @return [
|
23
|
-
define_attribute :billing_address, :
|
26
|
+
# @return [AddressWithName]
|
27
|
+
define_attribute :billing_address, :AddressWithName
|
24
28
|
|
25
29
|
# @!attribute collected_at
|
26
30
|
# @return [DateTime] Collected at, or if not collected yet, the time the transaction was created.
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
+
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
+
# change to this file, please create a Github issue explaining the changes you
|
4
|
+
# need and we will usher them to the appropriate places.
|
5
|
+
module Recurly
|
6
|
+
module Resources
|
7
|
+
class UniqueCouponCodeParams < Resource
|
8
|
+
|
9
|
+
# @!attribute begin_time
|
10
|
+
# @return [DateTime] The date-time to be included when listing UniqueCouponCodes
|
11
|
+
define_attribute :begin_time, DateTime
|
12
|
+
|
13
|
+
# @!attribute limit
|
14
|
+
# @return [Integer] The number of UniqueCouponCodes that will be generated
|
15
|
+
define_attribute :limit, Integer
|
16
|
+
|
17
|
+
# @!attribute order
|
18
|
+
# @return [String] Sort order to list newly generated UniqueCouponCodes (should always be `asc`)
|
19
|
+
define_attribute :order, String
|
20
|
+
|
21
|
+
# @!attribute sort
|
22
|
+
# @return [String] Sort field to list newly generated UniqueCouponCodes (should always be `created_at`)
|
23
|
+
define_attribute :sort, String
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -39,7 +39,7 @@ module Recurly
|
|
39
39
|
define_attribute :recording_timestamp, DateTime
|
40
40
|
|
41
41
|
# @!attribute tier_type
|
42
|
-
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based).
|
42
|
+
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
|
43
43
|
define_attribute :tier_type, String
|
44
44
|
|
45
45
|
# @!attribute tiers
|
@@ -50,6 +50,10 @@ module Recurly
|
|
50
50
|
# @return [Float] Unit price
|
51
51
|
define_attribute :unit_amount, Float
|
52
52
|
|
53
|
+
# @!attribute unit_amount_decimal
|
54
|
+
# @return [String] Unit price that can optionally support a sub-cent value.
|
55
|
+
define_attribute :unit_amount_decimal, String
|
56
|
+
|
53
57
|
# @!attribute updated_at
|
54
58
|
# @return [DateTime] When the usage record was billed on an invoice.
|
55
59
|
define_attribute :updated_at, DateTime
|