recurly 3.0.0.beta.4 → 3.0.0.beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -36,7 +36,7 @@ module Recurly
|
|
36
36
|
|
37
37
|
# @!attribute credit_reason_code
|
38
38
|
# @return [String] The reason the credit was given when line item is `type=credit`.
|
39
|
-
define_attribute :credit_reason_code, String
|
39
|
+
define_attribute :credit_reason_code, String
|
40
40
|
|
41
41
|
# @!attribute currency
|
42
42
|
# @return [String] 3-letter ISO 4217 currency code.
|
@@ -68,7 +68,7 @@ module Recurly
|
|
68
68
|
|
69
69
|
# @!attribute legacy_category
|
70
70
|
# @return [String] Category to describe the role of a line item on a legacy invoice: - "charges" refers to charges being billed for on this invoice. - "credits" refers to refund or proration credits. This portion of the invoice can be considered a credit memo. - "applied_credits" refers to previous credits applied to this invoice. See their original_line_item_id to determine where the credit first originated. - "carryforwards" can be ignored. They exist to consume any remaining credit balance. A new credit with the same amount will be created and placed back on the account.
|
71
|
-
define_attribute :legacy_category, String
|
71
|
+
define_attribute :legacy_category, String
|
72
72
|
|
73
73
|
# @!attribute object
|
74
74
|
# @return [String] Object type
|
@@ -76,7 +76,7 @@ module Recurly
|
|
76
76
|
|
77
77
|
# @!attribute origin
|
78
78
|
# @return [String] A credit created from an original charge will have the value of the charge's origin.
|
79
|
-
define_attribute :origin, String
|
79
|
+
define_attribute :origin, String
|
80
80
|
|
81
81
|
# @!attribute original_line_item_invoice_id
|
82
82
|
# @return [String] The invoice where the credit originated. Will only have a value if the line item is a credit created from a previous credit, or if the credit was created from a charge refund.
|
@@ -124,7 +124,7 @@ module Recurly
|
|
124
124
|
|
125
125
|
# @!attribute state
|
126
126
|
# @return [String] Pending line items are charges or credits on an account that have not been applied to an invoice yet. Invoiced line items will always have an `invoice_id` value.
|
127
|
-
define_attribute :state, String
|
127
|
+
define_attribute :state, String
|
128
128
|
|
129
129
|
# @!attribute subscription_id
|
130
130
|
# @return [String] If the line item is a charge or credit for a subscription, this is its ID.
|
@@ -139,7 +139,7 @@ module Recurly
|
|
139
139
|
define_attribute :tax, Float
|
140
140
|
|
141
141
|
# @!attribute tax_code
|
142
|
-
# @return [String]
|
142
|
+
# @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`.
|
143
143
|
define_attribute :tax_code, String
|
144
144
|
|
145
145
|
# @!attribute tax_exempt
|
@@ -156,7 +156,7 @@ module Recurly
|
|
156
156
|
|
157
157
|
# @!attribute type
|
158
158
|
# @return [String] Charges are positive line items that debit the account. Credits are negative line items that credit the account.
|
159
|
-
define_attribute :type, String
|
159
|
+
define_attribute :type, String
|
160
160
|
|
161
161
|
# @!attribute unit_amount
|
162
162
|
# @return [Float] Positive amount for a charge, negative amount for a credit.
|
@@ -18,17 +18,17 @@ module Recurly
|
|
18
18
|
# @return [String] Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.
|
19
19
|
define_attribute :code, String
|
20
20
|
|
21
|
-
# @!attribute
|
21
|
+
# @!attribute created_at
|
22
22
|
# @return [DateTime] Created at
|
23
|
-
define_attribute :created_at, DateTime
|
23
|
+
define_attribute :created_at, DateTime
|
24
24
|
|
25
25
|
# @!attribute currencies
|
26
26
|
# @return [Array[PlanPricing]] Pricing
|
27
27
|
define_attribute :currencies, Array, { :item_type => :PlanPricing }
|
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 description
|
34
34
|
# @return [String] Optional description, not displayed.
|
@@ -38,9 +38,9 @@ module Recurly
|
|
38
38
|
# @return [PlanHostedPages] Hosted pages settings
|
39
39
|
define_attribute :hosted_pages, :PlanHostedPages
|
40
40
|
|
41
|
-
# @!attribute
|
41
|
+
# @!attribute id
|
42
42
|
# @return [String] Plan ID
|
43
|
-
define_attribute :id, String
|
43
|
+
define_attribute :id, String
|
44
44
|
|
45
45
|
# @!attribute interval_length
|
46
46
|
# @return [Integer] Length of the plan's billing interval in `interval_unit`.
|
@@ -48,26 +48,26 @@ module Recurly
|
|
48
48
|
|
49
49
|
# @!attribute interval_unit
|
50
50
|
# @return [String] Unit for the plan's billing interval.
|
51
|
-
define_attribute :interval_unit, String
|
51
|
+
define_attribute :interval_unit, String
|
52
52
|
|
53
53
|
# @!attribute name
|
54
54
|
# @return [String] This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.
|
55
55
|
define_attribute :name, String
|
56
56
|
|
57
|
-
# @!attribute
|
57
|
+
# @!attribute object
|
58
58
|
# @return [String] Object type
|
59
|
-
define_attribute :object, String
|
59
|
+
define_attribute :object, String
|
60
60
|
|
61
61
|
# @!attribute setup_fee_accounting_code
|
62
62
|
# @return [String] Accounting code for invoice line items for the plan's setup fee. If no value is provided, it defaults to plan's accounting code.
|
63
63
|
define_attribute :setup_fee_accounting_code, String
|
64
64
|
|
65
|
-
# @!attribute
|
65
|
+
# @!attribute state
|
66
66
|
# @return [String] The current state of the plan.
|
67
|
-
define_attribute :state, String
|
67
|
+
define_attribute :state, String
|
68
68
|
|
69
69
|
# @!attribute tax_code
|
70
|
-
# @return [String]
|
70
|
+
# @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`.
|
71
71
|
define_attribute :tax_code, String
|
72
72
|
|
73
73
|
# @!attribute tax_exempt
|
@@ -84,11 +84,11 @@ module Recurly
|
|
84
84
|
|
85
85
|
# @!attribute trial_unit
|
86
86
|
# @return [String] Units for the plan's trial period.
|
87
|
-
define_attribute :trial_unit, String
|
87
|
+
define_attribute :trial_unit, String
|
88
88
|
|
89
|
-
# @!attribute
|
89
|
+
# @!attribute updated_at
|
90
90
|
# @return [DateTime] Last updated at
|
91
|
-
define_attribute :updated_at, DateTime
|
91
|
+
define_attribute :updated_at, DateTime
|
92
92
|
end
|
93
93
|
end
|
94
94
|
end
|
@@ -10,17 +10,17 @@ module Recurly
|
|
10
10
|
# @return [String] Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.
|
11
11
|
define_attribute :code, String
|
12
12
|
|
13
|
-
# @!attribute
|
13
|
+
# @!attribute id
|
14
14
|
# @return [String] Plan ID
|
15
|
-
define_attribute :id, String
|
15
|
+
define_attribute :id, String
|
16
16
|
|
17
17
|
# @!attribute name
|
18
18
|
# @return [String] This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.
|
19
19
|
define_attribute :name, String
|
20
20
|
|
21
|
-
# @!attribute
|
21
|
+
# @!attribute object
|
22
22
|
# @return [String] Object type
|
23
|
-
define_attribute :object, String
|
23
|
+
define_attribute :object, String
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -6,17 +6,17 @@ module Recurly
|
|
6
6
|
module Resources
|
7
7
|
class Settings < Resource
|
8
8
|
|
9
|
-
# @!attribute
|
9
|
+
# @!attribute accepted_currencies
|
10
10
|
# @return [Array[String]]
|
11
|
-
define_attribute :accepted_currencies, Array, { :item_type => String
|
11
|
+
define_attribute :accepted_currencies, Array, { :item_type => String }
|
12
12
|
|
13
|
-
# @!attribute
|
13
|
+
# @!attribute billing_address_requirement
|
14
14
|
# @return [String] - full: Full Address (Street, City, State, Postal Code and Country) - streetzip: Street and Postal Code only - zip: Postal Code only - none: No Address
|
15
|
-
define_attribute :billing_address_requirement, String
|
15
|
+
define_attribute :billing_address_requirement, String
|
16
16
|
|
17
|
-
# @!attribute
|
17
|
+
# @!attribute default_currency
|
18
18
|
# @return [String] The default 3-letter ISO 4217 currency code.
|
19
|
-
define_attribute :default_currency, String
|
19
|
+
define_attribute :default_currency, String
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -6,9 +6,9 @@ module Recurly
|
|
6
6
|
module Resources
|
7
7
|
class ShippingAddress < Resource
|
8
8
|
|
9
|
-
# @!attribute
|
9
|
+
# @!attribute account_id
|
10
10
|
# @return [String] Account ID
|
11
|
-
define_attribute :account_id, String
|
11
|
+
define_attribute :account_id, String
|
12
12
|
|
13
13
|
# @!attribute city
|
14
14
|
# @return [String]
|
@@ -22,9 +22,9 @@ module Recurly
|
|
22
22
|
# @return [String] Country, 2-letter ISO code.
|
23
23
|
define_attribute :country, String
|
24
24
|
|
25
|
-
# @!attribute
|
25
|
+
# @!attribute created_at
|
26
26
|
# @return [DateTime] Created at
|
27
|
-
define_attribute :created_at, DateTime
|
27
|
+
define_attribute :created_at, DateTime
|
28
28
|
|
29
29
|
# @!attribute email
|
30
30
|
# @return [String]
|
@@ -34,9 +34,9 @@ module Recurly
|
|
34
34
|
# @return [String]
|
35
35
|
define_attribute :first_name, String
|
36
36
|
|
37
|
-
# @!attribute
|
37
|
+
# @!attribute id
|
38
38
|
# @return [String] Shipping Address ID
|
39
|
-
define_attribute :id, String
|
39
|
+
define_attribute :id, String
|
40
40
|
|
41
41
|
# @!attribute last_name
|
42
42
|
# @return [String]
|
@@ -66,9 +66,9 @@ module Recurly
|
|
66
66
|
# @return [String]
|
67
67
|
define_attribute :street2, String
|
68
68
|
|
69
|
-
# @!attribute
|
69
|
+
# @!attribute updated_at
|
70
70
|
# @return [DateTime] Updated at
|
71
|
-
define_attribute :updated_at, DateTime
|
71
|
+
define_attribute :updated_at, DateTime
|
72
72
|
|
73
73
|
# @!attribute vat_number
|
74
74
|
# @return [String]
|
@@ -10,45 +10,45 @@ module Recurly
|
|
10
10
|
# @return [Address]
|
11
11
|
define_attribute :address, :Address
|
12
12
|
|
13
|
-
# @!attribute
|
13
|
+
# @!attribute created_at
|
14
14
|
# @return [DateTime] Created at
|
15
|
-
define_attribute :created_at, DateTime
|
15
|
+
define_attribute :created_at, DateTime
|
16
16
|
|
17
|
-
# @!attribute
|
17
|
+
# @!attribute deleted_at
|
18
18
|
# @return [DateTime] Deleted at
|
19
|
-
define_attribute :deleted_at, DateTime
|
19
|
+
define_attribute :deleted_at, DateTime
|
20
20
|
|
21
21
|
# @!attribute features
|
22
22
|
# @return [Array[String]] A list of features enabled for the site.
|
23
23
|
define_attribute :features, Array, { :item_type => String }
|
24
24
|
|
25
|
-
# @!attribute
|
25
|
+
# @!attribute id
|
26
26
|
# @return [String] Site ID
|
27
|
-
define_attribute :id, String
|
27
|
+
define_attribute :id, String
|
28
28
|
|
29
|
-
# @!attribute
|
29
|
+
# @!attribute mode
|
30
30
|
# @return [String] Mode
|
31
|
-
define_attribute :mode, String
|
31
|
+
define_attribute :mode, 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
|
-
# @!attribute
|
37
|
+
# @!attribute public_api_key
|
38
38
|
# @return [String] This value is used to configure RecurlyJS to submit tokenized billing information.
|
39
|
-
define_attribute :public_api_key, String
|
39
|
+
define_attribute :public_api_key, String
|
40
40
|
|
41
41
|
# @!attribute settings
|
42
42
|
# @return [Settings]
|
43
43
|
define_attribute :settings, :Settings
|
44
44
|
|
45
|
-
# @!attribute
|
45
|
+
# @!attribute subdomain
|
46
46
|
# @return [String]
|
47
|
-
define_attribute :subdomain, String
|
47
|
+
define_attribute :subdomain, String
|
48
48
|
|
49
|
-
# @!attribute
|
49
|
+
# @!attribute updated_at
|
50
50
|
# @return [DateTime] Updated at
|
51
|
-
define_attribute :updated_at, DateTime
|
51
|
+
define_attribute :updated_at, DateTime
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
@@ -36,7 +36,7 @@ module Recurly
|
|
36
36
|
|
37
37
|
# @!attribute collection_method
|
38
38
|
# @return [String] Collection method
|
39
|
-
define_attribute :collection_method, String
|
39
|
+
define_attribute :collection_method, String
|
40
40
|
|
41
41
|
# @!attribute coupon_redemptions
|
42
42
|
# @return [Array[CouponRedemptionMini]] Coupon redemptions
|
@@ -132,7 +132,7 @@ module Recurly
|
|
132
132
|
|
133
133
|
# @!attribute state
|
134
134
|
# @return [String] State
|
135
|
-
define_attribute :state, String
|
135
|
+
define_attribute :state, String
|
136
136
|
|
137
137
|
# @!attribute subtotal
|
138
138
|
# @return [Float] Estimated total, before tax.
|
@@ -6,9 +6,9 @@ module Recurly
|
|
6
6
|
module Resources
|
7
7
|
class SubscriptionChange < Resource
|
8
8
|
|
9
|
-
# @!attribute
|
9
|
+
# @!attribute activate_at
|
10
10
|
# @return [DateTime] Activated at
|
11
|
-
define_attribute :activate_at, DateTime
|
11
|
+
define_attribute :activate_at, DateTime
|
12
12
|
|
13
13
|
# @!attribute activated
|
14
14
|
# @return [Boolean] Returns `true` if the subscription change is activated.
|
@@ -18,13 +18,13 @@ module Recurly
|
|
18
18
|
# @return [Array[SubscriptionAddOn]] These add-ons will be used when the subscription renews.
|
19
19
|
define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOn }
|
20
20
|
|
21
|
-
# @!attribute
|
21
|
+
# @!attribute created_at
|
22
22
|
# @return [DateTime] Created at
|
23
|
-
define_attribute :created_at, DateTime
|
23
|
+
define_attribute :created_at, DateTime
|
24
24
|
|
25
|
-
# @!attribute
|
25
|
+
# @!attribute deleted_at
|
26
26
|
# @return [DateTime] Deleted at
|
27
|
-
define_attribute :deleted_at, DateTime
|
27
|
+
define_attribute :deleted_at, DateTime
|
28
28
|
|
29
29
|
# @!attribute id
|
30
30
|
# @return [String] The ID of the Subscription Change.
|
@@ -50,9 +50,9 @@ module Recurly
|
|
50
50
|
# @return [Float] Unit amount
|
51
51
|
define_attribute :unit_amount, Float
|
52
52
|
|
53
|
-
# @!attribute
|
53
|
+
# @!attribute updated_at
|
54
54
|
# @return [DateTime] Updated at
|
55
|
-
define_attribute :updated_at, DateTime
|
55
|
+
define_attribute :updated_at, DateTime
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
@@ -16,7 +16,7 @@ module Recurly
|
|
16
16
|
|
17
17
|
# @!attribute avs_check
|
18
18
|
# @return [String] When processed, result from checking the overall AVS on the transaction.
|
19
|
-
define_attribute :avs_check, String
|
19
|
+
define_attribute :avs_check, String
|
20
20
|
|
21
21
|
# @!attribute billing_address
|
22
22
|
# @return [Address]
|
@@ -28,7 +28,7 @@ module Recurly
|
|
28
28
|
|
29
29
|
# @!attribute collection_method
|
30
30
|
# @return [String] The method by which the payment was collected.
|
31
|
-
define_attribute :collection_method, String
|
31
|
+
define_attribute :collection_method, String
|
32
32
|
|
33
33
|
# @!attribute created_at
|
34
34
|
# @return [DateTime] Created at
|
@@ -48,7 +48,7 @@ module Recurly
|
|
48
48
|
|
49
49
|
# @!attribute cvv_check
|
50
50
|
# @return [String] When processed, result from checking the CVV/CVC value on the transaction.
|
51
|
-
define_attribute :cvv_check, String
|
51
|
+
define_attribute :cvv_check, String
|
52
52
|
|
53
53
|
# @!attribute gateway_approval_code
|
54
54
|
# @return [String] Transaction approval code from the payment gateway.
|
@@ -67,8 +67,8 @@ module Recurly
|
|
67
67
|
define_attribute :gateway_response_code, String
|
68
68
|
|
69
69
|
# @!attribute gateway_response_time
|
70
|
-
# @return [
|
71
|
-
define_attribute :gateway_response_time,
|
70
|
+
# @return [Float] Time, in seconds, for gateway to process the transaction.
|
71
|
+
define_attribute :gateway_response_time, Float
|
72
72
|
|
73
73
|
# @!attribute gateway_response_values
|
74
74
|
# @return [Hash] The values in this field will vary from gateway to gateway.
|
@@ -96,7 +96,7 @@ module Recurly
|
|
96
96
|
|
97
97
|
# @!attribute origin
|
98
98
|
# @return [String] Describes how the transaction was triggered.
|
99
|
-
define_attribute :origin, String
|
99
|
+
define_attribute :origin, String
|
100
100
|
|
101
101
|
# @!attribute original_transaction_id
|
102
102
|
# @return [String] If this transaction is a refund (`type=refund`), this will be the ID of the original transaction on the invoice being refunded.
|
@@ -116,7 +116,7 @@ module Recurly
|
|
116
116
|
|
117
117
|
# @!attribute status
|
118
118
|
# @return [String] The current transaction status. Note that the status may change, e.g. a `pending` transaction may become `declined` or `success` may later become `void`.
|
119
|
-
define_attribute :status, String
|
119
|
+
define_attribute :status, String
|
120
120
|
|
121
121
|
# @!attribute status_code
|
122
122
|
# @return [String] Status code
|
@@ -136,7 +136,7 @@ module Recurly
|
|
136
136
|
|
137
137
|
# @!attribute type
|
138
138
|
# @return [String] - `authorization` – verifies billing information and places a hold on money in the customer's account. - `capture` – captures funds held by an authorization and completes a purchase. - `purchase` – combines the authorization and capture in one transaction. - `refund` – returns all or a portion of the money collected in a previous transaction to the customer. - `verify` – a $0 or $1 transaction used to verify billing information which is immediately voided.
|
139
|
-
define_attribute :type, String
|
139
|
+
define_attribute :type, String
|
140
140
|
|
141
141
|
# @!attribute uuid
|
142
142
|
# @return [String] The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
|
@@ -8,7 +8,7 @@ module Recurly
|
|
8
8
|
|
9
9
|
# @!attribute card_type
|
10
10
|
# @return [String] Visa, MasterCard, American Express, Discover, JCB, etc.
|
11
|
-
define_attribute :card_type, String
|
11
|
+
define_attribute :card_type, String
|
12
12
|
|
13
13
|
# @!attribute exp_month
|
14
14
|
# @return [Integer] Expiration month.
|
@@ -28,7 +28,7 @@ module Recurly
|
|
28
28
|
|
29
29
|
# @!attribute object
|
30
30
|
# @return [String]
|
31
|
-
define_attribute :object, String
|
31
|
+
define_attribute :object, String
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -10,33 +10,33 @@ module Recurly
|
|
10
10
|
# @return [String] The code the customer enters to redeem the coupon.
|
11
11
|
define_attribute :code, String
|
12
12
|
|
13
|
-
# @!attribute
|
13
|
+
# @!attribute created_at
|
14
14
|
# @return [DateTime] Created at
|
15
|
-
define_attribute :created_at, DateTime
|
15
|
+
define_attribute :created_at, DateTime
|
16
16
|
|
17
17
|
# @!attribute expired_at
|
18
18
|
# @return [DateTime] The date and time the coupon was expired early or reached its `max_redemptions`.
|
19
19
|
define_attribute :expired_at, DateTime
|
20
20
|
|
21
|
-
# @!attribute
|
21
|
+
# @!attribute id
|
22
22
|
# @return [String] Unique Coupon Code ID
|
23
|
-
define_attribute :id, String
|
23
|
+
define_attribute :id, 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
|
-
# @!attribute
|
29
|
+
# @!attribute redeemed_at
|
30
30
|
# @return [DateTime] The date and time the unique coupon code was redeemed.
|
31
|
-
define_attribute :redeemed_at, DateTime
|
31
|
+
define_attribute :redeemed_at, DateTime
|
32
32
|
|
33
33
|
# @!attribute state
|
34
34
|
# @return [String] Indicates if the unique coupon code is redeemable or why not.
|
35
|
-
define_attribute :state, String
|
35
|
+
define_attribute :state, String
|
36
36
|
|
37
|
-
# @!attribute
|
37
|
+
# @!attribute updated_at
|
38
38
|
# @return [DateTime] Updated at
|
39
|
-
define_attribute :updated_at, DateTime
|
39
|
+
define_attribute :updated_at, DateTime
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|