stripe 15.6.0.pre.alpha.1 → 15.6.0.pre.alpha.2
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/API_VERSION +1 -1
- data/CHANGELOG.md +6 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/account.rb +443 -0
- data/lib/stripe/resources/account_link.rb +8 -0
- data/lib/stripe/resources/account_notice.rb +24 -0
- data/lib/stripe/resources/account_session.rb +435 -10
- data/lib/stripe/resources/apple_pay_domain.rb +8 -0
- data/lib/stripe/resources/application.rb +8 -0
- data/lib/stripe/resources/application_fee.rb +16 -0
- data/lib/stripe/resources/application_fee_refund.rb +8 -0
- data/lib/stripe/resources/apps/secret.rb +16 -0
- data/lib/stripe/resources/balance.rb +159 -0
- data/lib/stripe/resources/balance_settings.rb +40 -0
- data/lib/stripe/resources/balance_transaction.rb +16 -0
- data/lib/stripe/resources/bank_account.rb +40 -0
- data/lib/stripe/resources/billing/alert.rb +75 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +80 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
- data/lib/stripe/resources/billing/credit_grant.rb +72 -0
- data/lib/stripe/resources/billing/meter.rb +45 -0
- data/lib/stripe/resources/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage_row.rb +8 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
- data/lib/stripe/resources/billing_portal/session.rb +101 -0
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/capital/financing_offer.rb +24 -0
- data/lib/stripe/resources/capital/financing_summary.rb +24 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +24 -0
- data/lib/stripe/resources/card.rb +16 -0
- data/lib/stripe/resources/cash_balance.rb +16 -0
- data/lib/stripe/resources/charge.rb +1052 -16
- data/lib/stripe/resources/checkout/session.rb +950 -0
- data/lib/stripe/resources/climate/order.rb +32 -0
- data/lib/stripe/resources/climate/product.rb +16 -0
- data/lib/stripe/resources/climate/supplier.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +960 -38
- data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
- data/lib/stripe/resources/country_spec.rb +32 -0
- data/lib/stripe/resources/coupon.rb +36 -0
- data/lib/stripe/resources/credit_note.rb +70 -0
- data/lib/stripe/resources/credit_note_line_item.rb +53 -0
- data/lib/stripe/resources/customer.rb +77 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -0
- data/lib/stripe/resources/customer_session.rb +52 -0
- data/lib/stripe/resources/discount.rb +8 -0
- data/lib/stripe/resources/dispute.rb +166 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
- data/lib/stripe/resources/entitlements/feature.rb +8 -0
- data/lib/stripe/resources/ephemeral_key.rb +8 -0
- data/lib/stripe/resources/event.rb +56 -0
- data/lib/stripe/resources/exchange_rate.rb +8 -0
- data/lib/stripe/resources/file.rb +8 -0
- data/lib/stripe/resources/file_link.rb +8 -0
- data/lib/stripe/resources/financial_connections/account.rb +79 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
- data/lib/stripe/resources/financial_connections/institution.rb +53 -0
- data/lib/stripe/resources/financial_connections/session.rb +63 -1
- data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
- data/lib/stripe/resources/forwarding/request.rb +52 -0
- data/lib/stripe/resources/funding_instructions.rb +193 -0
- data/lib/stripe/resources/fx_quote.rb +48 -0
- data/lib/stripe/resources/identity/verification_report.rb +166 -1
- data/lib/stripe/resources/identity/verification_session.rb +126 -1
- data/lib/stripe/resources/invoice.rb +441 -3
- data/lib/stripe/resources/invoice_item.rb +88 -0
- data/lib/stripe/resources/invoice_line_item.rb +186 -0
- data/lib/stripe/resources/invoice_payment.rb +24 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
- data/lib/stripe/resources/issuing/authorization.rb +177 -0
- data/lib/stripe/resources/issuing/card.rb +96 -0
- data/lib/stripe/resources/issuing/cardholder.rb +110 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +82 -0
- data/lib/stripe/resources/issuing/dispute.rb +97 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +16 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +8 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
- data/lib/stripe/resources/issuing/settlement.rb +8 -0
- data/lib/stripe/resources/issuing/token.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +151 -0
- data/lib/stripe/resources/line_item.rb +54 -0
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +242 -11
- data/lib/stripe/resources/margin.rb +8 -0
- data/lib/stripe/resources/order.rb +348 -0
- data/lib/stripe/resources/payment_attempt_record.rb +890 -11
- data/lib/stripe/resources/payment_intent.rb +1405 -3
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +56 -0
- data/lib/stripe/resources/payment_link.rb +337 -0
- data/lib/stripe/resources/payment_method.rb +884 -38
- data/lib/stripe/resources/payment_method_configuration.rb +961 -0
- data/lib/stripe/resources/payment_method_domain.rb +111 -0
- data/lib/stripe/resources/payment_record.rb +890 -11
- data/lib/stripe/resources/payout.rb +16 -0
- data/lib/stripe/resources/person.rb +180 -0
- data/lib/stripe/resources/plan.rb +24 -0
- data/lib/stripe/resources/price.rb +79 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +16 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +16 -0
- data/lib/stripe/resources/product.rb +27 -0
- data/lib/stripe/resources/product_feature.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +24 -0
- data/lib/stripe/resources/quote.rb +432 -0
- data/lib/stripe/resources/quote_line.rb +247 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +450 -3
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +323 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
- data/lib/stripe/resources/radar/value_list.rb +8 -0
- data/lib/stripe/resources/radar/value_list_item.rb +8 -0
- data/lib/stripe/resources/refund.rb +380 -19
- data/lib/stripe/resources/reporting/report_run.rb +16 -0
- data/lib/stripe/resources/reporting/report_type.rb +8 -0
- data/lib/stripe/resources/reserve_transaction.rb +8 -0
- data/lib/stripe/resources/reversal.rb +8 -0
- data/lib/stripe/resources/review.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +331 -20
- data/lib/stripe/resources/setup_intent.rb +293 -2
- data/lib/stripe/resources/shipping_rate.rb +48 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
- data/lib/stripe/resources/source.rb +274 -0
- data/lib/stripe/resources/source_mandate_notification.rb +32 -0
- data/lib/stripe/resources/source_transaction.rb +54 -0
- data/lib/stripe/resources/subscription.rb +318 -3
- data/lib/stripe/resources/subscription_item.rb +24 -0
- data/lib/stripe/resources/subscription_schedule.rb +314 -0
- data/lib/stripe/resources/tax/association.rb +32 -0
- data/lib/stripe/resources/tax/calculation.rb +109 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
- data/lib/stripe/resources/tax/form.rb +107 -0
- data/lib/stripe/resources/tax/registration.rb +1232 -0
- data/lib/stripe/resources/tax/settings.rb +61 -1
- data/lib/stripe/resources/tax/transaction.rb +93 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
- data/lib/stripe/resources/tax_code.rb +8 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +24 -0
- data/lib/stripe/resources/tax_rate.rb +16 -0
- data/lib/stripe/resources/terminal/configuration.rb +299 -0
- data/lib/stripe/resources/terminal/connection_token.rb +8 -0
- data/lib/stripe/resources/terminal/location.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +24 -0
- data/lib/stripe/resources/terminal/reader.rb +241 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
- data/lib/stripe/resources/token.rb +8 -0
- data/lib/stripe/resources/topup.rb +8 -0
- data/lib/stripe/resources/transfer.rb +8 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
- data/lib/stripe/resources/treasury/financial_account.rb +61 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +192 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +114 -0
- data/lib/stripe/resources/treasury/received_credit.rb +97 -0
- data/lib/stripe/resources/treasury/received_debit.rb +89 -0
- data/lib/stripe/resources/treasury/transaction.rb +36 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +40 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +40 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +141 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +150 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +150 -2
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +8 -0
- data/lib/stripe/resources/v2/billing/intent.rb +27 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +195 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +24 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +8 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +24 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +8 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +36 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/profile.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +36 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +115 -0
- data/lib/stripe/resources/v2/core/account.rb +1900 -0
- data/lib/stripe/resources/v2/core/account_link.rb +51 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +24 -0
- data/lib/stripe/resources/v2/core/person.rb +201 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +40 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +8 -0
- data/lib/stripe/resources/v2/event.rb +24 -0
- data/lib/stripe/resources/v2/event_destination.rb +44 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +8 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +8 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +61 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +32 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +90 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +88 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +62 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +24 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +79 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +32 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +32 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +77 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +52 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +36 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +35 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +24 -0
- data/lib/stripe/resources/v2/reporting/report.rb +52 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +69 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +8 -0
- data/lib/stripe/resources/webhook_endpoint.rb +8 -0
- data/lib/stripe/stripe_object.rb +25 -1
- data/lib/stripe/util.rb +9 -5
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +280174 -0
- metadata +3 -2
@@ -24,6 +24,14 @@ module Stripe
|
|
24
24
|
attr_reader :account
|
25
25
|
# Type of the account referenced.
|
26
26
|
attr_reader :type
|
27
|
+
|
28
|
+
def self.inner_class_types
|
29
|
+
@inner_class_types = {}
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.field_remappings
|
33
|
+
@field_remappings = {}
|
34
|
+
end
|
27
35
|
end
|
28
36
|
# Automatically calculate taxes
|
29
37
|
attr_reader :enabled
|
@@ -33,6 +41,14 @@ module Stripe
|
|
33
41
|
attr_reader :provider
|
34
42
|
# The status of the most recent automated tax calculation for this quote.
|
35
43
|
attr_reader :status
|
44
|
+
|
45
|
+
def self.inner_class_types
|
46
|
+
@inner_class_types = { liability: Liability }
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.field_remappings
|
50
|
+
@field_remappings = {}
|
51
|
+
end
|
36
52
|
end
|
37
53
|
|
38
54
|
class Computed < Stripe::StripeObject
|
@@ -44,11 +60,27 @@ module Stripe
|
|
44
60
|
attr_reader :message
|
45
61
|
# The reason the reestimation failed.
|
46
62
|
attr_reader :reason
|
63
|
+
|
64
|
+
def self.inner_class_types
|
65
|
+
@inner_class_types = {}
|
66
|
+
end
|
67
|
+
|
68
|
+
def self.field_remappings
|
69
|
+
@field_remappings = {}
|
70
|
+
end
|
47
71
|
end
|
48
72
|
# When `status` is `failed`, provides details about the quote reestimation failure.
|
49
73
|
attr_reader :failed
|
50
74
|
# Latest status of the reestimation.
|
51
75
|
attr_reader :status
|
76
|
+
|
77
|
+
def self.inner_class_types
|
78
|
+
@inner_class_types = { failed: Failed }
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.field_remappings
|
82
|
+
@field_remappings = {}
|
83
|
+
end
|
52
84
|
end
|
53
85
|
|
54
86
|
class Recurring < Stripe::StripeObject
|
@@ -62,6 +94,14 @@ module Stripe
|
|
62
94
|
#
|
63
95
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
64
96
|
attr_reader :discount
|
97
|
+
|
98
|
+
def self.inner_class_types
|
99
|
+
@inner_class_types = {}
|
100
|
+
end
|
101
|
+
|
102
|
+
def self.field_remappings
|
103
|
+
@field_remappings = {}
|
104
|
+
end
|
65
105
|
end
|
66
106
|
|
67
107
|
class Tax < Stripe::StripeObject
|
@@ -75,11 +115,27 @@ module Stripe
|
|
75
115
|
attr_reader :taxability_reason
|
76
116
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
77
117
|
attr_reader :taxable_amount
|
118
|
+
|
119
|
+
def self.inner_class_types
|
120
|
+
@inner_class_types = {}
|
121
|
+
end
|
122
|
+
|
123
|
+
def self.field_remappings
|
124
|
+
@field_remappings = {}
|
125
|
+
end
|
78
126
|
end
|
79
127
|
# The aggregated discounts.
|
80
128
|
attr_reader :discounts
|
81
129
|
# The aggregated tax amounts by rate.
|
82
130
|
attr_reader :taxes
|
131
|
+
|
132
|
+
def self.inner_class_types
|
133
|
+
@inner_class_types = { discounts: Discount, taxes: Tax }
|
134
|
+
end
|
135
|
+
|
136
|
+
def self.field_remappings
|
137
|
+
@field_remappings = {}
|
138
|
+
end
|
83
139
|
end
|
84
140
|
# This is the sum of all the discounts.
|
85
141
|
attr_reader :amount_discount
|
@@ -89,6 +145,14 @@ module Stripe
|
|
89
145
|
attr_reader :amount_tax
|
90
146
|
# Attribute for field breakdown
|
91
147
|
attr_reader :breakdown
|
148
|
+
|
149
|
+
def self.inner_class_types
|
150
|
+
@inner_class_types = { breakdown: Breakdown }
|
151
|
+
end
|
152
|
+
|
153
|
+
def self.field_remappings
|
154
|
+
@field_remappings = {}
|
155
|
+
end
|
92
156
|
end
|
93
157
|
# Total before any discounts or taxes are applied.
|
94
158
|
attr_reader :amount_subtotal
|
@@ -100,6 +164,14 @@ module Stripe
|
|
100
164
|
attr_reader :interval_count
|
101
165
|
# Attribute for field total_details
|
102
166
|
attr_reader :total_details
|
167
|
+
|
168
|
+
def self.inner_class_types
|
169
|
+
@inner_class_types = { total_details: TotalDetails }
|
170
|
+
end
|
171
|
+
|
172
|
+
def self.field_remappings
|
173
|
+
@field_remappings = {}
|
174
|
+
end
|
103
175
|
end
|
104
176
|
|
105
177
|
class Upfront < Stripe::StripeObject
|
@@ -113,6 +185,14 @@ module Stripe
|
|
113
185
|
#
|
114
186
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
115
187
|
attr_reader :discount
|
188
|
+
|
189
|
+
def self.inner_class_types
|
190
|
+
@inner_class_types = {}
|
191
|
+
end
|
192
|
+
|
193
|
+
def self.field_remappings
|
194
|
+
@field_remappings = {}
|
195
|
+
end
|
116
196
|
end
|
117
197
|
|
118
198
|
class Tax < Stripe::StripeObject
|
@@ -126,11 +206,27 @@ module Stripe
|
|
126
206
|
attr_reader :taxability_reason
|
127
207
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
128
208
|
attr_reader :taxable_amount
|
209
|
+
|
210
|
+
def self.inner_class_types
|
211
|
+
@inner_class_types = {}
|
212
|
+
end
|
213
|
+
|
214
|
+
def self.field_remappings
|
215
|
+
@field_remappings = {}
|
216
|
+
end
|
129
217
|
end
|
130
218
|
# The aggregated discounts.
|
131
219
|
attr_reader :discounts
|
132
220
|
# The aggregated tax amounts by rate.
|
133
221
|
attr_reader :taxes
|
222
|
+
|
223
|
+
def self.inner_class_types
|
224
|
+
@inner_class_types = { discounts: Discount, taxes: Tax }
|
225
|
+
end
|
226
|
+
|
227
|
+
def self.field_remappings
|
228
|
+
@field_remappings = {}
|
229
|
+
end
|
134
230
|
end
|
135
231
|
# This is the sum of all the discounts.
|
136
232
|
attr_reader :amount_discount
|
@@ -140,6 +236,14 @@ module Stripe
|
|
140
236
|
attr_reader :amount_tax
|
141
237
|
# Attribute for field breakdown
|
142
238
|
attr_reader :breakdown
|
239
|
+
|
240
|
+
def self.inner_class_types
|
241
|
+
@inner_class_types = { breakdown: Breakdown }
|
242
|
+
end
|
243
|
+
|
244
|
+
def self.field_remappings
|
245
|
+
@field_remappings = {}
|
246
|
+
end
|
143
247
|
end
|
144
248
|
# Total before any discounts or taxes are applied.
|
145
249
|
attr_reader :amount_subtotal
|
@@ -149,6 +253,14 @@ module Stripe
|
|
149
253
|
attr_reader :line_items
|
150
254
|
# Attribute for field total_details
|
151
255
|
attr_reader :total_details
|
256
|
+
|
257
|
+
def self.inner_class_types
|
258
|
+
@inner_class_types = { total_details: TotalDetails }
|
259
|
+
end
|
260
|
+
|
261
|
+
def self.field_remappings
|
262
|
+
@field_remappings = {}
|
263
|
+
end
|
152
264
|
end
|
153
265
|
# Details of the most recent reestimate of the quote's preview schedules and upcoming invoices, including the status of Stripe's calculation.
|
154
266
|
attr_reader :last_reestimation_details
|
@@ -158,6 +270,18 @@ module Stripe
|
|
158
270
|
attr_reader :updated_at
|
159
271
|
# Attribute for field upfront
|
160
272
|
attr_reader :upfront
|
273
|
+
|
274
|
+
def self.inner_class_types
|
275
|
+
@inner_class_types = {
|
276
|
+
last_reestimation_details: LastReestimationDetails,
|
277
|
+
recurring: Recurring,
|
278
|
+
upfront: Upfront,
|
279
|
+
}
|
280
|
+
end
|
281
|
+
|
282
|
+
def self.field_remappings
|
283
|
+
@field_remappings = {}
|
284
|
+
end
|
161
285
|
end
|
162
286
|
|
163
287
|
class FromQuote < Stripe::StripeObject
|
@@ -165,6 +289,14 @@ module Stripe
|
|
165
289
|
attr_reader :is_revision
|
166
290
|
# The quote that was cloned.
|
167
291
|
attr_reader :quote
|
292
|
+
|
293
|
+
def self.inner_class_types
|
294
|
+
@inner_class_types = {}
|
295
|
+
end
|
296
|
+
|
297
|
+
def self.field_remappings
|
298
|
+
@field_remappings = {}
|
299
|
+
end
|
168
300
|
end
|
169
301
|
|
170
302
|
class InvoiceSettings < Stripe::StripeObject
|
@@ -173,11 +305,27 @@ module Stripe
|
|
173
305
|
attr_reader :account
|
174
306
|
# Type of the account referenced.
|
175
307
|
attr_reader :type
|
308
|
+
|
309
|
+
def self.inner_class_types
|
310
|
+
@inner_class_types = {}
|
311
|
+
end
|
312
|
+
|
313
|
+
def self.field_remappings
|
314
|
+
@field_remappings = {}
|
315
|
+
end
|
176
316
|
end
|
177
317
|
# Number of days within which a customer must pay invoices generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.
|
178
318
|
attr_reader :days_until_due
|
179
319
|
# Attribute for field issuer
|
180
320
|
attr_reader :issuer
|
321
|
+
|
322
|
+
def self.inner_class_types
|
323
|
+
@inner_class_types = { issuer: Issuer }
|
324
|
+
end
|
325
|
+
|
326
|
+
def self.field_remappings
|
327
|
+
@field_remappings = {}
|
328
|
+
end
|
181
329
|
end
|
182
330
|
|
183
331
|
class StatusDetails < Stripe::StripeObject
|
@@ -186,6 +334,14 @@ module Stripe
|
|
186
334
|
attr_reader :reason
|
187
335
|
# Time at which the quote was marked as canceled. Measured in seconds since the Unix epoch.
|
188
336
|
attr_reader :transitioned_at
|
337
|
+
|
338
|
+
def self.inner_class_types
|
339
|
+
@inner_class_types = {}
|
340
|
+
end
|
341
|
+
|
342
|
+
def self.field_remappings
|
343
|
+
@field_remappings = {}
|
344
|
+
end
|
189
345
|
end
|
190
346
|
|
191
347
|
class Stale < Stripe::StripeObject
|
@@ -195,16 +351,40 @@ module Stripe
|
|
195
351
|
attr_reader :invalid_at
|
196
352
|
# The list of lines that became invalid at the given timestamp.
|
197
353
|
attr_reader :lines
|
354
|
+
|
355
|
+
def self.inner_class_types
|
356
|
+
@inner_class_types = {}
|
357
|
+
end
|
358
|
+
|
359
|
+
def self.field_remappings
|
360
|
+
@field_remappings = {}
|
361
|
+
end
|
198
362
|
end
|
199
363
|
|
200
364
|
class SubscriptionChanged < Stripe::StripeObject
|
201
365
|
# The subscription's state before the quote was marked as stale.
|
202
366
|
attr_reader :previous_subscription
|
367
|
+
|
368
|
+
def self.inner_class_types
|
369
|
+
@inner_class_types = {}
|
370
|
+
end
|
371
|
+
|
372
|
+
def self.field_remappings
|
373
|
+
@field_remappings = {}
|
374
|
+
end
|
203
375
|
end
|
204
376
|
|
205
377
|
class SubscriptionScheduleChanged < Stripe::StripeObject
|
206
378
|
# The subscription schedule's state before the quote was marked as stale.
|
207
379
|
attr_reader :previous_subscription_schedule
|
380
|
+
|
381
|
+
def self.inner_class_types
|
382
|
+
@inner_class_types = {}
|
383
|
+
end
|
384
|
+
|
385
|
+
def self.field_remappings
|
386
|
+
@field_remappings = {}
|
387
|
+
end
|
208
388
|
end
|
209
389
|
# The ID of the line that is invalid if the stale reason type is `line_invalid`.
|
210
390
|
attr_reader :line_invalid
|
@@ -226,6 +406,18 @@ module Stripe
|
|
226
406
|
attr_reader :subscription_schedule_released
|
227
407
|
# The reason the quote was marked as stale.
|
228
408
|
attr_reader :type
|
409
|
+
|
410
|
+
def self.inner_class_types
|
411
|
+
@inner_class_types = {
|
412
|
+
lines_invalid: LinesInvalid,
|
413
|
+
subscription_changed: SubscriptionChanged,
|
414
|
+
subscription_schedule_changed: SubscriptionScheduleChanged,
|
415
|
+
}
|
416
|
+
end
|
417
|
+
|
418
|
+
def self.field_remappings
|
419
|
+
@field_remappings = {}
|
420
|
+
end
|
229
421
|
end
|
230
422
|
# Time at which the quote expires. Measured in seconds since the Unix epoch.
|
231
423
|
attr_reader :expires_at
|
@@ -235,11 +427,27 @@ module Stripe
|
|
235
427
|
attr_reader :last_updated_at
|
236
428
|
# Time at which the quote was marked as stale. Measured in seconds since the Unix epoch.
|
237
429
|
attr_reader :transitioned_at
|
430
|
+
|
431
|
+
def self.inner_class_types
|
432
|
+
@inner_class_types = { last_reason: LastReason }
|
433
|
+
end
|
434
|
+
|
435
|
+
def self.field_remappings
|
436
|
+
@field_remappings = {}
|
437
|
+
end
|
238
438
|
end
|
239
439
|
# Attribute for field canceled
|
240
440
|
attr_reader :canceled
|
241
441
|
# Attribute for field stale
|
242
442
|
attr_reader :stale
|
443
|
+
|
444
|
+
def self.inner_class_types
|
445
|
+
@inner_class_types = { canceled: Canceled, stale: Stale }
|
446
|
+
end
|
447
|
+
|
448
|
+
def self.field_remappings
|
449
|
+
@field_remappings = {}
|
450
|
+
end
|
243
451
|
end
|
244
452
|
|
245
453
|
class StatusTransitions < Stripe::StripeObject
|
@@ -249,6 +457,14 @@ module Stripe
|
|
249
457
|
attr_reader :canceled_at
|
250
458
|
# The time that the quote was finalized. Measured in seconds since Unix epoch.
|
251
459
|
attr_reader :finalized_at
|
460
|
+
|
461
|
+
def self.inner_class_types
|
462
|
+
@inner_class_types = {}
|
463
|
+
end
|
464
|
+
|
465
|
+
def self.field_remappings
|
466
|
+
@field_remappings = {}
|
467
|
+
end
|
252
468
|
end
|
253
469
|
|
254
470
|
class SubscriptionData < Stripe::StripeObject
|
@@ -257,6 +473,14 @@ module Stripe
|
|
257
473
|
class LineStartsAt < Stripe::StripeObject
|
258
474
|
# Unique identifier for the object.
|
259
475
|
attr_reader :id
|
476
|
+
|
477
|
+
def self.inner_class_types
|
478
|
+
@inner_class_types = {}
|
479
|
+
end
|
480
|
+
|
481
|
+
def self.field_remappings
|
482
|
+
@field_remappings = {}
|
483
|
+
end
|
260
484
|
end
|
261
485
|
# The materialized time.
|
262
486
|
attr_reader :computed
|
@@ -266,6 +490,14 @@ module Stripe
|
|
266
490
|
attr_reader :timestamp
|
267
491
|
# The type of method to specify the `bill_from` time.
|
268
492
|
attr_reader :type
|
493
|
+
|
494
|
+
def self.inner_class_types
|
495
|
+
@inner_class_types = { line_starts_at: LineStartsAt }
|
496
|
+
end
|
497
|
+
|
498
|
+
def self.field_remappings
|
499
|
+
@field_remappings = {}
|
500
|
+
end
|
269
501
|
end
|
270
502
|
|
271
503
|
class BillUntil < Stripe::StripeObject
|
@@ -274,11 +506,27 @@ module Stripe
|
|
274
506
|
attr_reader :interval
|
275
507
|
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
276
508
|
attr_reader :interval_count
|
509
|
+
|
510
|
+
def self.inner_class_types
|
511
|
+
@inner_class_types = {}
|
512
|
+
end
|
513
|
+
|
514
|
+
def self.field_remappings
|
515
|
+
@field_remappings = {}
|
516
|
+
end
|
277
517
|
end
|
278
518
|
|
279
519
|
class LineEndsAt < Stripe::StripeObject
|
280
520
|
# Unique identifier for the object.
|
281
521
|
attr_reader :id
|
522
|
+
|
523
|
+
def self.inner_class_types
|
524
|
+
@inner_class_types = {}
|
525
|
+
end
|
526
|
+
|
527
|
+
def self.field_remappings
|
528
|
+
@field_remappings = {}
|
529
|
+
end
|
282
530
|
end
|
283
531
|
# The materialized time.
|
284
532
|
attr_reader :computed
|
@@ -290,21 +538,53 @@ module Stripe
|
|
290
538
|
attr_reader :timestamp
|
291
539
|
# The type of method to specify the `bill_until` time.
|
292
540
|
attr_reader :type
|
541
|
+
|
542
|
+
def self.inner_class_types
|
543
|
+
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
544
|
+
end
|
545
|
+
|
546
|
+
def self.field_remappings
|
547
|
+
@field_remappings = {}
|
548
|
+
end
|
293
549
|
end
|
294
550
|
# The start of the period to bill from when the Quote is accepted.
|
295
551
|
attr_reader :bill_from
|
296
552
|
# The end of the period to bill until when the Quote is accepted.
|
297
553
|
attr_reader :bill_until
|
554
|
+
|
555
|
+
def self.inner_class_types
|
556
|
+
@inner_class_types = { bill_from: BillFrom, bill_until: BillUntil }
|
557
|
+
end
|
558
|
+
|
559
|
+
def self.field_remappings
|
560
|
+
@field_remappings = {}
|
561
|
+
end
|
298
562
|
end
|
299
563
|
|
300
564
|
class BillingMode < Stripe::StripeObject
|
301
565
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
302
566
|
attr_reader :type
|
567
|
+
|
568
|
+
def self.inner_class_types
|
569
|
+
@inner_class_types = {}
|
570
|
+
end
|
571
|
+
|
572
|
+
def self.field_remappings
|
573
|
+
@field_remappings = {}
|
574
|
+
end
|
303
575
|
end
|
304
576
|
|
305
577
|
class Prebilling < Stripe::StripeObject
|
306
578
|
# Attribute for field iterations
|
307
579
|
attr_reader :iterations
|
580
|
+
|
581
|
+
def self.inner_class_types
|
582
|
+
@inner_class_types = {}
|
583
|
+
end
|
584
|
+
|
585
|
+
def self.field_remappings
|
586
|
+
@field_remappings = {}
|
587
|
+
end
|
308
588
|
end
|
309
589
|
# Describes the period to bill for upon accepting the quote.
|
310
590
|
attr_reader :bill_on_acceptance
|
@@ -330,6 +610,18 @@ module Stripe
|
|
330
610
|
attr_reader :proration_behavior
|
331
611
|
# Integer representing the number of trial period days before the customer is charged for the first time.
|
332
612
|
attr_reader :trial_period_days
|
613
|
+
|
614
|
+
def self.inner_class_types
|
615
|
+
@inner_class_types = {
|
616
|
+
bill_on_acceptance: BillOnAcceptance,
|
617
|
+
billing_mode: BillingMode,
|
618
|
+
prebilling: Prebilling,
|
619
|
+
}
|
620
|
+
end
|
621
|
+
|
622
|
+
def self.field_remappings
|
623
|
+
@field_remappings = {}
|
624
|
+
end
|
333
625
|
end
|
334
626
|
|
335
627
|
class SubscriptionDataOverride < Stripe::StripeObject
|
@@ -340,6 +632,14 @@ module Stripe
|
|
340
632
|
attr_reader :subscription_schedule
|
341
633
|
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
342
634
|
attr_reader :type
|
635
|
+
|
636
|
+
def self.inner_class_types
|
637
|
+
@inner_class_types = {}
|
638
|
+
end
|
639
|
+
|
640
|
+
def self.field_remappings
|
641
|
+
@field_remappings = {}
|
642
|
+
end
|
343
643
|
end
|
344
644
|
|
345
645
|
class BillOnAcceptance < Stripe::StripeObject
|
@@ -347,6 +647,14 @@ module Stripe
|
|
347
647
|
class LineStartsAt < Stripe::StripeObject
|
348
648
|
# Unique identifier for the object.
|
349
649
|
attr_reader :id
|
650
|
+
|
651
|
+
def self.inner_class_types
|
652
|
+
@inner_class_types = {}
|
653
|
+
end
|
654
|
+
|
655
|
+
def self.field_remappings
|
656
|
+
@field_remappings = {}
|
657
|
+
end
|
350
658
|
end
|
351
659
|
# The materialized time.
|
352
660
|
attr_reader :computed
|
@@ -356,6 +664,14 @@ module Stripe
|
|
356
664
|
attr_reader :timestamp
|
357
665
|
# The type of method to specify the `bill_from` time.
|
358
666
|
attr_reader :type
|
667
|
+
|
668
|
+
def self.inner_class_types
|
669
|
+
@inner_class_types = { line_starts_at: LineStartsAt }
|
670
|
+
end
|
671
|
+
|
672
|
+
def self.field_remappings
|
673
|
+
@field_remappings = {}
|
674
|
+
end
|
359
675
|
end
|
360
676
|
|
361
677
|
class BillUntil < Stripe::StripeObject
|
@@ -364,11 +680,27 @@ module Stripe
|
|
364
680
|
attr_reader :interval
|
365
681
|
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
366
682
|
attr_reader :interval_count
|
683
|
+
|
684
|
+
def self.inner_class_types
|
685
|
+
@inner_class_types = {}
|
686
|
+
end
|
687
|
+
|
688
|
+
def self.field_remappings
|
689
|
+
@field_remappings = {}
|
690
|
+
end
|
367
691
|
end
|
368
692
|
|
369
693
|
class LineEndsAt < Stripe::StripeObject
|
370
694
|
# Unique identifier for the object.
|
371
695
|
attr_reader :id
|
696
|
+
|
697
|
+
def self.inner_class_types
|
698
|
+
@inner_class_types = {}
|
699
|
+
end
|
700
|
+
|
701
|
+
def self.field_remappings
|
702
|
+
@field_remappings = {}
|
703
|
+
end
|
372
704
|
end
|
373
705
|
# The materialized time.
|
374
706
|
attr_reader :computed
|
@@ -380,11 +712,27 @@ module Stripe
|
|
380
712
|
attr_reader :timestamp
|
381
713
|
# The type of method to specify the `bill_until` time.
|
382
714
|
attr_reader :type
|
715
|
+
|
716
|
+
def self.inner_class_types
|
717
|
+
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
718
|
+
end
|
719
|
+
|
720
|
+
def self.field_remappings
|
721
|
+
@field_remappings = {}
|
722
|
+
end
|
383
723
|
end
|
384
724
|
# The start of the period to bill from when the Quote is accepted.
|
385
725
|
attr_reader :bill_from
|
386
726
|
# The end of the period to bill until when the Quote is accepted.
|
387
727
|
attr_reader :bill_until
|
728
|
+
|
729
|
+
def self.inner_class_types
|
730
|
+
@inner_class_types = { bill_from: BillFrom, bill_until: BillUntil }
|
731
|
+
end
|
732
|
+
|
733
|
+
def self.field_remappings
|
734
|
+
@field_remappings = {}
|
735
|
+
end
|
388
736
|
end
|
389
737
|
# Attribute for field applies_to
|
390
738
|
attr_reader :applies_to
|
@@ -400,6 +748,14 @@ module Stripe
|
|
400
748
|
attr_reader :end_behavior
|
401
749
|
# Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
|
402
750
|
attr_reader :proration_behavior
|
751
|
+
|
752
|
+
def self.inner_class_types
|
753
|
+
@inner_class_types = { applies_to: AppliesTo, bill_on_acceptance: BillOnAcceptance }
|
754
|
+
end
|
755
|
+
|
756
|
+
def self.field_remappings
|
757
|
+
@field_remappings = {}
|
758
|
+
end
|
403
759
|
end
|
404
760
|
|
405
761
|
class SubscriptionSchedule < Stripe::StripeObject
|
@@ -410,11 +766,27 @@ module Stripe
|
|
410
766
|
attr_reader :subscription_schedule
|
411
767
|
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
412
768
|
attr_reader :type
|
769
|
+
|
770
|
+
def self.inner_class_types
|
771
|
+
@inner_class_types = {}
|
772
|
+
end
|
773
|
+
|
774
|
+
def self.field_remappings
|
775
|
+
@field_remappings = {}
|
776
|
+
end
|
413
777
|
end
|
414
778
|
# Attribute for field applies_to
|
415
779
|
attr_reader :applies_to
|
416
780
|
# The subscription schedule that was created or updated from this quote.
|
417
781
|
attr_reader :subscription_schedule
|
782
|
+
|
783
|
+
def self.inner_class_types
|
784
|
+
@inner_class_types = { applies_to: AppliesTo }
|
785
|
+
end
|
786
|
+
|
787
|
+
def self.field_remappings
|
788
|
+
@field_remappings = {}
|
789
|
+
end
|
418
790
|
end
|
419
791
|
|
420
792
|
class TotalDetails < Stripe::StripeObject
|
@@ -427,6 +799,14 @@ module Stripe
|
|
427
799
|
#
|
428
800
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
429
801
|
attr_reader :discount
|
802
|
+
|
803
|
+
def self.inner_class_types
|
804
|
+
@inner_class_types = {}
|
805
|
+
end
|
806
|
+
|
807
|
+
def self.field_remappings
|
808
|
+
@field_remappings = {}
|
809
|
+
end
|
430
810
|
end
|
431
811
|
|
432
812
|
class Tax < Stripe::StripeObject
|
@@ -440,11 +820,27 @@ module Stripe
|
|
440
820
|
attr_reader :taxability_reason
|
441
821
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
442
822
|
attr_reader :taxable_amount
|
823
|
+
|
824
|
+
def self.inner_class_types
|
825
|
+
@inner_class_types = {}
|
826
|
+
end
|
827
|
+
|
828
|
+
def self.field_remappings
|
829
|
+
@field_remappings = {}
|
830
|
+
end
|
443
831
|
end
|
444
832
|
# The aggregated discounts.
|
445
833
|
attr_reader :discounts
|
446
834
|
# The aggregated tax amounts by rate.
|
447
835
|
attr_reader :taxes
|
836
|
+
|
837
|
+
def self.inner_class_types
|
838
|
+
@inner_class_types = { discounts: Discount, taxes: Tax }
|
839
|
+
end
|
840
|
+
|
841
|
+
def self.field_remappings
|
842
|
+
@field_remappings = {}
|
843
|
+
end
|
448
844
|
end
|
449
845
|
# This is the sum of all the discounts.
|
450
846
|
attr_reader :amount_discount
|
@@ -454,6 +850,14 @@ module Stripe
|
|
454
850
|
attr_reader :amount_tax
|
455
851
|
# Attribute for field breakdown
|
456
852
|
attr_reader :breakdown
|
853
|
+
|
854
|
+
def self.inner_class_types
|
855
|
+
@inner_class_types = { breakdown: Breakdown }
|
856
|
+
end
|
857
|
+
|
858
|
+
def self.field_remappings
|
859
|
+
@field_remappings = {}
|
860
|
+
end
|
457
861
|
end
|
458
862
|
|
459
863
|
class TransferData < Stripe::StripeObject
|
@@ -463,6 +867,14 @@ module Stripe
|
|
463
867
|
attr_reader :amount_percent
|
464
868
|
# The account where funds from the payment will be transferred to upon payment success.
|
465
869
|
attr_reader :destination
|
870
|
+
|
871
|
+
def self.inner_class_types
|
872
|
+
@inner_class_types = {}
|
873
|
+
end
|
874
|
+
|
875
|
+
def self.field_remappings
|
876
|
+
@field_remappings = {}
|
877
|
+
end
|
466
878
|
end
|
467
879
|
|
468
880
|
class ListParams < Stripe::RequestParams
|
@@ -3132,5 +3544,25 @@ module Stripe
|
|
3132
3544
|
opts: opts
|
3133
3545
|
)
|
3134
3546
|
end
|
3547
|
+
|
3548
|
+
def self.inner_class_types
|
3549
|
+
@inner_class_types = {
|
3550
|
+
automatic_tax: AutomaticTax,
|
3551
|
+
computed: Computed,
|
3552
|
+
from_quote: FromQuote,
|
3553
|
+
invoice_settings: InvoiceSettings,
|
3554
|
+
status_details: StatusDetails,
|
3555
|
+
status_transitions: StatusTransitions,
|
3556
|
+
subscription_data: SubscriptionData,
|
3557
|
+
subscription_data_overrides: SubscriptionDataOverride,
|
3558
|
+
subscription_schedules: SubscriptionSchedule,
|
3559
|
+
total_details: TotalDetails,
|
3560
|
+
transfer_data: TransferData,
|
3561
|
+
}
|
3562
|
+
end
|
3563
|
+
|
3564
|
+
def self.field_remappings
|
3565
|
+
@field_remappings = {}
|
3566
|
+
end
|
3135
3567
|
end
|
3136
3568
|
end
|