recurly 3.0.0.beta.4 → 3.0.0.beta.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +3 -1
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/recurly.rb +6 -2
- data/lib/recurly/client.rb +31 -26
- data/lib/recurly/client/adapter.rb +4 -2
- data/lib/recurly/client/operations.rb +118 -8
- data/lib/recurly/errors.rb +1 -1
- data/lib/recurly/pager.rb +3 -3
- data/lib/recurly/requests/account_acquisition_updatable.rb +1 -1
- data/lib/recurly/requests/account_create.rb +2 -2
- data/lib/recurly/requests/account_purchase.rb +86 -0
- data/lib/recurly/requests/account_update.rb +2 -2
- data/lib/recurly/requests/add_on_create.rb +3 -3
- data/lib/recurly/requests/add_on_update.rb +3 -3
- data/lib/recurly/requests/coupon_create.rb +6 -6
- data/lib/recurly/requests/external_refund.rb +1 -1
- data/lib/recurly/requests/invoice_create.rb +2 -2
- data/lib/recurly/requests/invoice_refund.rb +2 -2
- data/lib/recurly/requests/line_item_create.rb +3 -3
- data/lib/recurly/requests/plan_create.rb +3 -3
- data/lib/recurly/requests/plan_update.rb +4 -4
- data/lib/recurly/requests/purchase_create.rb +74 -0
- data/lib/recurly/requests/shipping_address_update.rb +2 -2
- data/lib/recurly/requests/subscription_change_create.rb +2 -2
- data/lib/recurly/requests/subscription_create.rb +1 -1
- data/lib/recurly/requests/subscription_purchase.rb +58 -0
- data/lib/recurly/requests/subscription_shipping_purchase.rb +22 -0
- data/lib/recurly/requests/subscription_update.rb +2 -2
- data/lib/recurly/resources/account.rb +18 -18
- data/lib/recurly/resources/account_acquisition.rb +9 -9
- data/lib/recurly/resources/account_balance.rb +2 -2
- data/lib/recurly/resources/account_mini.rb +4 -4
- data/lib/recurly/resources/account_note.rb +6 -6
- data/lib/recurly/resources/add_on.rb +15 -15
- data/lib/recurly/resources/add_on_mini.rb +4 -4
- data/lib/recurly/resources/billing_info.rb +16 -16
- data/lib/recurly/resources/billing_info_payment_method.rb +1 -1
- data/lib/recurly/resources/coupon.rb +16 -16
- data/lib/recurly/resources/coupon_discount.rb +1 -1
- data/lib/recurly/resources/coupon_discount_trial.rb +1 -1
- data/lib/recurly/resources/coupon_mini.rb +6 -6
- data/lib/recurly/resources/coupon_redemption.rb +12 -12
- data/lib/recurly/resources/coupon_redemption_mini.rb +7 -7
- data/lib/recurly/resources/credit_payment.rb +7 -7
- data/lib/recurly/resources/custom_field_definition.rb +12 -12
- data/lib/recurly/resources/error.rb +1 -1
- data/lib/recurly/resources/error_may_have_transaction.rb +1 -1
- data/lib/recurly/resources/fraud_info.rb +1 -1
- data/lib/recurly/resources/invoice.rb +12 -12
- data/lib/recurly/resources/invoice_mini.rb +2 -2
- data/lib/recurly/resources/line_item.rb +6 -6
- data/lib/recurly/resources/plan.rb +15 -15
- data/lib/recurly/resources/plan_mini.rb +4 -4
- data/lib/recurly/resources/settings.rb +6 -6
- data/lib/recurly/resources/shipping_address.rb +8 -8
- data/lib/recurly/resources/site.rb +16 -16
- data/lib/recurly/resources/subscription.rb +2 -2
- data/lib/recurly/resources/subscription_change.rb +8 -8
- data/lib/recurly/resources/transaction.rb +8 -8
- data/lib/recurly/resources/transaction_payment_method.rb +2 -2
- data/lib/recurly/resources/unique_coupon_code.rb +11 -11
- data/lib/recurly/resources/user.rb +8 -8
- data/lib/recurly/schema.rb +5 -6
- data/lib/recurly/schema/json_deserializer.rb +5 -4
- data/lib/recurly/schema/json_parser.rb +4 -4
- data/lib/recurly/schema/request_caster.rb +4 -4
- data/lib/recurly/schema/schema_factory.rb +1 -1
- data/lib/recurly/schema/schema_validator.rb +1 -2
- data/lib/recurly/version.rb +1 -1
- data/recurly.gemspec +12 -11
- data/scripts/format +6 -0
- data/scripts/test +12 -1
- metadata +22 -5
- data/scripts/check-deps +0 -28
- data/scripts/install-deps +0 -44
@@ -12,7 +12,7 @@ module Recurly
|
|
12
12
|
|
13
13
|
# @!attribute collection_method
|
14
14
|
# @return [String] Collection method
|
15
|
-
define_attribute :collection_method, String
|
15
|
+
define_attribute :collection_method, String
|
16
16
|
|
17
17
|
# @!attribute coupon_codes
|
18
18
|
# @return [Array[String]] A list of coupon_codes to be redeemed on the subscription during the change. Only allowed if timeframe is now and you change something about the subscription that creates an invoice.
|
@@ -40,7 +40,7 @@ module Recurly
|
|
40
40
|
|
41
41
|
# @!attribute timeframe
|
42
42
|
# @return [String] The timeframe parameter controls when the upgrade or downgrade takes place. The subscription change can occur now or when the subscription renews. Generally, if you're performing an upgrade, you will want the change to occur immediately (now). If you're performing a downgrade, you should set the timeframe to "renewal" so the change takes affect at the end of the current billing cycle.
|
43
|
-
define_attribute :timeframe, String
|
43
|
+
define_attribute :timeframe, String
|
44
44
|
|
45
45
|
# @!attribute unit_amount
|
46
46
|
# @return [Float] Optionally, sets custom pricing for the subscription, overriding the plan's default unit amount. The subscription's current currency will be used.
|
@@ -20,7 +20,7 @@ module Recurly
|
|
20
20
|
|
21
21
|
# @!attribute collection_method
|
22
22
|
# @return [String] Collection method
|
23
|
-
define_attribute :collection_method, String
|
23
|
+
define_attribute :collection_method, String
|
24
24
|
|
25
25
|
# @!attribute coupon_code
|
26
26
|
# @return [String] Optional coupon code to redeem on the account and discount the subscription. Please note, the subscription request will fail if the coupon is invalid.
|
@@ -0,0 +1,58 @@
|
|
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 SubscriptionPurchase < Request
|
8
|
+
|
9
|
+
# @!attribute add_ons
|
10
|
+
# @return [Array[SubscriptionAddOnCreate]] Add-ons
|
11
|
+
define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOnCreate }
|
12
|
+
|
13
|
+
# @!attribute auto_renew
|
14
|
+
# @return [Boolean] Whether the subscription renews at the end of its term.
|
15
|
+
define_attribute :auto_renew, :Boolean
|
16
|
+
|
17
|
+
# @!attribute custom_fields
|
18
|
+
# @return [Array[CustomField]]
|
19
|
+
define_attribute :custom_fields, Array, { :item_type => :CustomField }
|
20
|
+
|
21
|
+
# @!attribute next_bill_date
|
22
|
+
# @return [DateTime] If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). This can be used to align the subscription’s billing to a specific day of the month. The initial invoice will be prorated for the period between the subscription's activation date and the billing period end date. Subsequent periods will be based off the plan interval. For a subscription with a trial period, this will change when the trial expires.
|
23
|
+
define_attribute :next_bill_date, DateTime
|
24
|
+
|
25
|
+
# @!attribute plan_code
|
26
|
+
# @return [String] Plan code
|
27
|
+
define_attribute :plan_code, String
|
28
|
+
|
29
|
+
# @!attribute plan_id
|
30
|
+
# @return [String] Plan ID
|
31
|
+
define_attribute :plan_id, String
|
32
|
+
|
33
|
+
# @!attribute quantity
|
34
|
+
# @return [Integer] Optionally override the default quantity of 1.
|
35
|
+
define_attribute :quantity, Integer
|
36
|
+
|
37
|
+
# @!attribute renewal_billing_cycles
|
38
|
+
# @return [Integer] If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.
|
39
|
+
define_attribute :renewal_billing_cycles, Integer
|
40
|
+
|
41
|
+
# @!attribute shipping
|
42
|
+
# @return [SubscriptionShippingPurchase] Create a shipping address on the account and assign it to the subscription.
|
43
|
+
define_attribute :shipping, :SubscriptionShippingPurchase
|
44
|
+
|
45
|
+
# @!attribute total_billing_cycles
|
46
|
+
# @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.
|
47
|
+
define_attribute :total_billing_cycles, Integer
|
48
|
+
|
49
|
+
# @!attribute trial_ends_at
|
50
|
+
# @return [DateTime] If set, overrides the default trial behavior for the subscription. The date must be in the future.
|
51
|
+
define_attribute :trial_ends_at, DateTime
|
52
|
+
|
53
|
+
# @!attribute unit_amount
|
54
|
+
# @return [Float] Override the unit amount of the subscription plan by setting this value in cents. If not provided, the subscription will inherit the price from the subscription plan for the provided currency.
|
55
|
+
define_attribute :unit_amount, Float
|
56
|
+
end
|
57
|
+
end
|
58
|
+
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 SubscriptionShippingPurchase < Request
|
8
|
+
|
9
|
+
# @!attribute amount
|
10
|
+
# @return [Float] Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.
|
11
|
+
define_attribute :amount, Float
|
12
|
+
|
13
|
+
# @!attribute method_code
|
14
|
+
# @return [String] The code of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.
|
15
|
+
define_attribute :method_code, String
|
16
|
+
|
17
|
+
# @!attribute method_id
|
18
|
+
# @return [String] The id of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.
|
19
|
+
define_attribute :method_id, String
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -12,7 +12,7 @@ module Recurly
|
|
12
12
|
|
13
13
|
# @!attribute collection_method
|
14
14
|
# @return [String] Change collection method
|
15
|
-
define_attribute :collection_method, String
|
15
|
+
define_attribute :collection_method, String
|
16
16
|
|
17
17
|
# @!attribute custom_fields
|
18
18
|
# @return [Array[CustomField]]
|
@@ -43,7 +43,7 @@ module Recurly
|
|
43
43
|
define_attribute :renewal_billing_cycles, Integer
|
44
44
|
|
45
45
|
# @!attribute shipping_address
|
46
|
-
# @return [ShippingAddressCreate] Create a shipping address on the account and assign it to the subscription. If this and `shipping_address_id` are both present, `shipping_address_id` will take precedence.
|
46
|
+
# @return [ShippingAddressCreate] Create a shipping address on the account and assign it to the subscription. If this and `shipping_address_id` are both present, `shipping_address_id` will take precedence.
|
47
47
|
define_attribute :shipping_address, :ShippingAddressCreate
|
48
48
|
|
49
49
|
# @!attribute shipping_address_id
|
@@ -12,7 +12,7 @@ module Recurly
|
|
12
12
|
|
13
13
|
# @!attribute bill_to
|
14
14
|
# @return [String] An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.
|
15
|
-
define_attribute :bill_to, String
|
15
|
+
define_attribute :bill_to, String
|
16
16
|
|
17
17
|
# @!attribute billing_info
|
18
18
|
# @return [BillingInfo]
|
@@ -22,25 +22,25 @@ module Recurly
|
|
22
22
|
# @return [String] Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.
|
23
23
|
define_attribute :cc_emails, String
|
24
24
|
|
25
|
-
# @!attribute
|
25
|
+
# @!attribute code
|
26
26
|
# @return [String] The unique identifier of the account. This cannot be changed once the account is created.
|
27
|
-
define_attribute :code, String
|
27
|
+
define_attribute :code, String
|
28
28
|
|
29
29
|
# @!attribute company
|
30
30
|
# @return [String]
|
31
31
|
define_attribute :company, String
|
32
32
|
|
33
|
-
# @!attribute
|
33
|
+
# @!attribute created_at
|
34
34
|
# @return [DateTime] When the account was created.
|
35
|
-
define_attribute :created_at, DateTime
|
35
|
+
define_attribute :created_at, DateTime
|
36
36
|
|
37
37
|
# @!attribute custom_fields
|
38
38
|
# @return [Array[CustomField]]
|
39
39
|
define_attribute :custom_fields, Array, { :item_type => :CustomField }
|
40
40
|
|
41
|
-
# @!attribute
|
41
|
+
# @!attribute deleted_at
|
42
42
|
# @return [DateTime] If present, when the account was last marked inactive.
|
43
|
-
define_attribute :deleted_at, DateTime
|
43
|
+
define_attribute :deleted_at, DateTime
|
44
44
|
|
45
45
|
# @!attribute email
|
46
46
|
# @return [String] The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.
|
@@ -54,21 +54,21 @@ module Recurly
|
|
54
54
|
# @return [String]
|
55
55
|
define_attribute :first_name, String
|
56
56
|
|
57
|
-
# @!attribute
|
57
|
+
# @!attribute hosted_login_token
|
58
58
|
# @return [String] The unique token for automatically logging the account in to the hosted management pages. You may automatically log the user into their hosted management pages by directing the user to: `https://{subdomain}.recurly.com/account/{hosted_login_token}`.
|
59
|
-
define_attribute :hosted_login_token, String
|
59
|
+
define_attribute :hosted_login_token, String
|
60
60
|
|
61
|
-
# @!attribute
|
61
|
+
# @!attribute id
|
62
62
|
# @return [String]
|
63
|
-
define_attribute :id, String
|
63
|
+
define_attribute :id, String
|
64
64
|
|
65
65
|
# @!attribute last_name
|
66
66
|
# @return [String]
|
67
67
|
define_attribute :last_name, String
|
68
68
|
|
69
|
-
# @!attribute
|
69
|
+
# @!attribute object
|
70
70
|
# @return [String] Object type
|
71
|
-
define_attribute :object, String
|
71
|
+
define_attribute :object, String
|
72
72
|
|
73
73
|
# @!attribute parent_account_id
|
74
74
|
# @return [String] The UUID of the parent account associated with this account.
|
@@ -76,23 +76,23 @@ module Recurly
|
|
76
76
|
|
77
77
|
# @!attribute preferred_locale
|
78
78
|
# @return [String] Used to determine the language and locale of emails sent on behalf of the merchant to the customer.
|
79
|
-
define_attribute :preferred_locale, String
|
79
|
+
define_attribute :preferred_locale, String
|
80
80
|
|
81
81
|
# @!attribute shipping_addresses
|
82
82
|
# @return [Array[ShippingAddress]] The shipping addresses on the account.
|
83
83
|
define_attribute :shipping_addresses, Array, { :item_type => :ShippingAddress }
|
84
84
|
|
85
|
-
# @!attribute
|
85
|
+
# @!attribute state
|
86
86
|
# @return [String] Accounts can be either active or inactive.
|
87
|
-
define_attribute :state, String
|
87
|
+
define_attribute :state, String
|
88
88
|
|
89
89
|
# @!attribute tax_exempt
|
90
90
|
# @return [Boolean] The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.
|
91
91
|
define_attribute :tax_exempt, :Boolean
|
92
92
|
|
93
|
-
# @!attribute
|
93
|
+
# @!attribute updated_at
|
94
94
|
# @return [DateTime] When the account was last changed.
|
95
|
-
define_attribute :updated_at, DateTime
|
95
|
+
define_attribute :updated_at, DateTime
|
96
96
|
|
97
97
|
# @!attribute username
|
98
98
|
# @return [String] A secondary value for the account.
|
@@ -16,31 +16,31 @@ module Recurly
|
|
16
16
|
|
17
17
|
# @!attribute channel
|
18
18
|
# @return [String] The channel through which the account was acquired.
|
19
|
-
define_attribute :channel, String
|
19
|
+
define_attribute :channel, String
|
20
20
|
|
21
21
|
# @!attribute cost
|
22
22
|
# @return [Hash] Account balance
|
23
23
|
define_attribute :cost, Hash
|
24
24
|
|
25
|
-
# @!attribute
|
25
|
+
# @!attribute created_at
|
26
26
|
# @return [DateTime] When the account acquisition data was created.
|
27
|
-
define_attribute :created_at, DateTime
|
27
|
+
define_attribute :created_at, DateTime
|
28
28
|
|
29
|
-
# @!attribute
|
29
|
+
# @!attribute id
|
30
30
|
# @return [String]
|
31
|
-
define_attribute :id, String
|
31
|
+
define_attribute :id, String
|
32
32
|
|
33
|
-
# @!attribute
|
33
|
+
# @!attribute object
|
34
34
|
# @return [String] Object type
|
35
|
-
define_attribute :object, String
|
35
|
+
define_attribute :object, String
|
36
36
|
|
37
37
|
# @!attribute subchannel
|
38
38
|
# @return [String] An arbitrary subchannel string representing a distinction/subcategory within a broader channel.
|
39
39
|
define_attribute :subchannel, String
|
40
40
|
|
41
|
-
# @!attribute
|
41
|
+
# @!attribute updated_at
|
42
42
|
# @return [DateTime] When the account acquisition data was last changed.
|
43
|
-
define_attribute :updated_at, DateTime
|
43
|
+
define_attribute :updated_at, DateTime
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -14,9 +14,9 @@ module Recurly
|
|
14
14
|
# @return [Array[AccountBalanceAmount]]
|
15
15
|
define_attribute :balances, Array, { :item_type => :AccountBalanceAmount }
|
16
16
|
|
17
|
-
# @!attribute
|
17
|
+
# @!attribute object
|
18
18
|
# @return [String] Object type
|
19
|
-
define_attribute :object, String
|
19
|
+
define_attribute :object, String
|
20
20
|
|
21
21
|
# @!attribute past_due
|
22
22
|
# @return [Boolean]
|
@@ -26,17 +26,17 @@ module Recurly
|
|
26
26
|
# @return [String]
|
27
27
|
define_attribute :first_name, String
|
28
28
|
|
29
|
-
# @!attribute
|
29
|
+
# @!attribute id
|
30
30
|
# @return [String]
|
31
|
-
define_attribute :id, String
|
31
|
+
define_attribute :id, String
|
32
32
|
|
33
33
|
# @!attribute last_name
|
34
34
|
# @return [String]
|
35
35
|
define_attribute :last_name, String
|
36
36
|
|
37
|
-
# @!attribute
|
37
|
+
# @!attribute object
|
38
38
|
# @return [String] Object type
|
39
|
-
define_attribute :object, String
|
39
|
+
define_attribute :object, String
|
40
40
|
|
41
41
|
# @!attribute parent_account_id
|
42
42
|
# @return [String]
|
@@ -10,21 +10,21 @@ module Recurly
|
|
10
10
|
# @return [String]
|
11
11
|
define_attribute :account_id, String
|
12
12
|
|
13
|
-
# @!attribute
|
13
|
+
# @!attribute created_at
|
14
14
|
# @return [DateTime]
|
15
|
-
define_attribute :created_at, DateTime
|
15
|
+
define_attribute :created_at, DateTime
|
16
16
|
|
17
|
-
# @!attribute
|
17
|
+
# @!attribute id
|
18
18
|
# @return [String]
|
19
|
-
define_attribute :id, String
|
19
|
+
define_attribute :id, String
|
20
20
|
|
21
21
|
# @!attribute message
|
22
22
|
# @return [String]
|
23
23
|
define_attribute :message, String
|
24
24
|
|
25
|
-
# @!attribute
|
25
|
+
# @!attribute object
|
26
26
|
# @return [String] Object type
|
27
|
-
define_attribute :object, String
|
27
|
+
define_attribute :object, String
|
28
28
|
|
29
29
|
# @!attribute user
|
30
30
|
# @return [User]
|
@@ -14,9 +14,9 @@ module Recurly
|
|
14
14
|
# @return [String] The unique identifier for the add-on within its plan.
|
15
15
|
define_attribute :code, String
|
16
16
|
|
17
|
-
# @!attribute
|
17
|
+
# @!attribute created_at
|
18
18
|
# @return [DateTime] Created at
|
19
|
-
define_attribute :created_at, DateTime
|
19
|
+
define_attribute :created_at, DateTime
|
20
20
|
|
21
21
|
# @!attribute currencies
|
22
22
|
# @return [Array[AddOnPricing]] Add-on pricing
|
@@ -26,41 +26,41 @@ module Recurly
|
|
26
26
|
# @return [Integer] Default quantity for the hosted pages.
|
27
27
|
define_attribute :default_quantity, Integer
|
28
28
|
|
29
|
-
# @!attribute
|
29
|
+
# @!attribute deleted_at
|
30
30
|
# @return [DateTime] Deleted at
|
31
|
-
define_attribute :deleted_at, DateTime
|
31
|
+
define_attribute :deleted_at, DateTime
|
32
32
|
|
33
33
|
# @!attribute display_quantity
|
34
34
|
# @return [Boolean] Determines if the quantity field is displayed on the hosted pages for the add-on.
|
35
35
|
define_attribute :display_quantity, :Boolean
|
36
36
|
|
37
|
-
# @!attribute
|
37
|
+
# @!attribute id
|
38
38
|
# @return [String] Add-on ID
|
39
|
-
define_attribute :id, String
|
39
|
+
define_attribute :id, String
|
40
40
|
|
41
41
|
# @!attribute name
|
42
42
|
# @return [String] Describes your add-on and will appear in subscribers' invoices.
|
43
43
|
define_attribute :name, String
|
44
44
|
|
45
|
-
# @!attribute
|
45
|
+
# @!attribute object
|
46
46
|
# @return [String] Object type
|
47
|
-
define_attribute :object, String
|
47
|
+
define_attribute :object, String
|
48
48
|
|
49
|
-
# @!attribute
|
49
|
+
# @!attribute plan_id
|
50
50
|
# @return [String] Plan ID
|
51
|
-
define_attribute :plan_id, String
|
51
|
+
define_attribute :plan_id, String
|
52
52
|
|
53
|
-
# @!attribute
|
53
|
+
# @!attribute state
|
54
54
|
# @return [String] Add-ons can be either active or inactive.
|
55
|
-
define_attribute :state, String
|
55
|
+
define_attribute :state, String
|
56
56
|
|
57
57
|
# @!attribute tax_code
|
58
|
-
# @return [String]
|
58
|
+
# @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 `P0000000` is `physical`, `D0000000` is `digital`, and an empty string is `unknown`.
|
59
59
|
define_attribute :tax_code, String
|
60
60
|
|
61
|
-
# @!attribute
|
61
|
+
# @!attribute updated_at
|
62
62
|
# @return [DateTime] Last updated at
|
63
|
-
define_attribute :updated_at, DateTime
|
63
|
+
define_attribute :updated_at, DateTime
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -14,17 +14,17 @@ module Recurly
|
|
14
14
|
# @return [String] The unique identifier for the add-on within its plan.
|
15
15
|
define_attribute :code, String
|
16
16
|
|
17
|
-
# @!attribute
|
17
|
+
# @!attribute id
|
18
18
|
# @return [String] Add-on ID
|
19
|
-
define_attribute :id, String
|
19
|
+
define_attribute :id, String
|
20
20
|
|
21
21
|
# @!attribute name
|
22
22
|
# @return [String] Describes your add-on and will appear in subscribers' invoices.
|
23
23
|
define_attribute :name, String
|
24
24
|
|
25
|
-
# @!attribute
|
25
|
+
# @!attribute object
|
26
26
|
# @return [String] Object type
|
27
|
-
define_attribute :object, String
|
27
|
+
define_attribute :object, String
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -6,9 +6,9 @@ module Recurly
|
|
6
6
|
module Resources
|
7
7
|
class BillingInfo < Resource
|
8
8
|
|
9
|
-
# @!attribute
|
9
|
+
# @!attribute account_id
|
10
10
|
# @return [String]
|
11
|
-
define_attribute :account_id, String
|
11
|
+
define_attribute :account_id, String
|
12
12
|
|
13
13
|
# @!attribute address
|
14
14
|
# @return [Address]
|
@@ -18,45 +18,45 @@ module Recurly
|
|
18
18
|
# @return [String]
|
19
19
|
define_attribute :company, String
|
20
20
|
|
21
|
-
# @!attribute
|
21
|
+
# @!attribute created_at
|
22
22
|
# @return [DateTime] When the billing information was created.
|
23
|
-
define_attribute :created_at, DateTime
|
23
|
+
define_attribute :created_at, DateTime
|
24
24
|
|
25
25
|
# @!attribute first_name
|
26
26
|
# @return [String]
|
27
27
|
define_attribute :first_name, String
|
28
28
|
|
29
|
-
# @!attribute
|
29
|
+
# @!attribute fraud
|
30
30
|
# @return [Hash] Most recent fraud result.
|
31
|
-
define_attribute :fraud, Hash
|
31
|
+
define_attribute :fraud, Hash
|
32
32
|
|
33
|
-
# @!attribute
|
33
|
+
# @!attribute id
|
34
34
|
# @return [String]
|
35
|
-
define_attribute :id, String
|
35
|
+
define_attribute :id, String
|
36
36
|
|
37
37
|
# @!attribute last_name
|
38
38
|
# @return [String]
|
39
39
|
define_attribute :last_name, String
|
40
40
|
|
41
|
-
# @!attribute
|
41
|
+
# @!attribute object
|
42
42
|
# @return [String] Object type
|
43
|
-
define_attribute :object, String
|
43
|
+
define_attribute :object, String
|
44
44
|
|
45
45
|
# @!attribute payment_method
|
46
46
|
# @return [Hash]
|
47
47
|
define_attribute :payment_method, Hash
|
48
48
|
|
49
|
-
# @!attribute
|
49
|
+
# @!attribute updated_at
|
50
50
|
# @return [DateTime] When the billing information was last changed.
|
51
|
-
define_attribute :updated_at, DateTime
|
51
|
+
define_attribute :updated_at, DateTime
|
52
52
|
|
53
|
-
# @!attribute
|
53
|
+
# @!attribute updated_by
|
54
54
|
# @return [Hash]
|
55
|
-
define_attribute :updated_by, Hash
|
55
|
+
define_attribute :updated_by, Hash
|
56
56
|
|
57
|
-
# @!attribute
|
57
|
+
# @!attribute valid
|
58
58
|
# @return [Boolean]
|
59
|
-
define_attribute :valid, :Boolean
|
59
|
+
define_attribute :valid, :Boolean
|
60
60
|
|
61
61
|
# @!attribute vat_number
|
62
62
|
# @return [String] Customer's VAT number (to avoid having the VAT applied). This is only used for automatically collected invoices.
|