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
@@ -57,6 +57,14 @@ module Stripe
|
|
57
57
|
attr_reader :paid_at
|
58
58
|
# The status of the payment, one of `open`, `paid`, or `past_due`
|
59
59
|
attr_reader :status
|
60
|
+
|
61
|
+
def self.inner_class_types
|
62
|
+
@inner_class_types = {}
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.field_remappings
|
66
|
+
@field_remappings = {}
|
67
|
+
end
|
60
68
|
end
|
61
69
|
|
62
70
|
class AppliesTo < Stripe::StripeObject
|
@@ -66,6 +74,14 @@ module Stripe
|
|
66
74
|
attr_reader :subscription_schedule
|
67
75
|
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
68
76
|
attr_reader :type
|
77
|
+
|
78
|
+
def self.inner_class_types
|
79
|
+
@inner_class_types = {}
|
80
|
+
end
|
81
|
+
|
82
|
+
def self.field_remappings
|
83
|
+
@field_remappings = {}
|
84
|
+
end
|
69
85
|
end
|
70
86
|
|
71
87
|
class AutomaticTax < Stripe::StripeObject
|
@@ -74,6 +90,14 @@ module Stripe
|
|
74
90
|
attr_reader :account
|
75
91
|
# Type of the account referenced.
|
76
92
|
attr_reader :type
|
93
|
+
|
94
|
+
def self.inner_class_types
|
95
|
+
@inner_class_types = {}
|
96
|
+
end
|
97
|
+
|
98
|
+
def self.field_remappings
|
99
|
+
@field_remappings = {}
|
100
|
+
end
|
77
101
|
end
|
78
102
|
# If Stripe disabled automatic tax, this enum describes why.
|
79
103
|
attr_reader :disabled_reason
|
@@ -85,6 +109,14 @@ module Stripe
|
|
85
109
|
attr_reader :provider
|
86
110
|
# The status of the most recent automated tax calculation for this invoice.
|
87
111
|
attr_reader :status
|
112
|
+
|
113
|
+
def self.inner_class_types
|
114
|
+
@inner_class_types = { liability: Liability }
|
115
|
+
end
|
116
|
+
|
117
|
+
def self.field_remappings
|
118
|
+
@field_remappings = {}
|
119
|
+
end
|
88
120
|
end
|
89
121
|
|
90
122
|
class ConfirmationSecret < Stripe::StripeObject
|
@@ -92,6 +124,14 @@ module Stripe
|
|
92
124
|
attr_reader :client_secret
|
93
125
|
# The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization
|
94
126
|
attr_reader :type
|
127
|
+
|
128
|
+
def self.inner_class_types
|
129
|
+
@inner_class_types = {}
|
130
|
+
end
|
131
|
+
|
132
|
+
def self.field_remappings
|
133
|
+
@field_remappings = {}
|
134
|
+
end
|
95
135
|
end
|
96
136
|
|
97
137
|
class CustomField < Stripe::StripeObject
|
@@ -99,6 +139,14 @@ module Stripe
|
|
99
139
|
attr_reader :name
|
100
140
|
# The value of the custom field.
|
101
141
|
attr_reader :value
|
142
|
+
|
143
|
+
def self.inner_class_types
|
144
|
+
@inner_class_types = {}
|
145
|
+
end
|
146
|
+
|
147
|
+
def self.field_remappings
|
148
|
+
@field_remappings = {}
|
149
|
+
end
|
102
150
|
end
|
103
151
|
|
104
152
|
class CustomerAddress < Stripe::StripeObject
|
@@ -114,6 +162,14 @@ module Stripe
|
|
114
162
|
attr_reader :postal_code
|
115
163
|
# State, county, province, or region.
|
116
164
|
attr_reader :state
|
165
|
+
|
166
|
+
def self.inner_class_types
|
167
|
+
@inner_class_types = {}
|
168
|
+
end
|
169
|
+
|
170
|
+
def self.field_remappings
|
171
|
+
@field_remappings = {}
|
172
|
+
end
|
117
173
|
end
|
118
174
|
|
119
175
|
class CustomerShipping < Stripe::StripeObject
|
@@ -130,6 +186,14 @@ module Stripe
|
|
130
186
|
attr_reader :postal_code
|
131
187
|
# State, county, province, or region.
|
132
188
|
attr_reader :state
|
189
|
+
|
190
|
+
def self.inner_class_types
|
191
|
+
@inner_class_types = {}
|
192
|
+
end
|
193
|
+
|
194
|
+
def self.field_remappings
|
195
|
+
@field_remappings = {}
|
196
|
+
end
|
133
197
|
end
|
134
198
|
# Attribute for field address
|
135
199
|
attr_reader :address
|
@@ -141,6 +205,14 @@ module Stripe
|
|
141
205
|
attr_reader :phone
|
142
206
|
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
143
207
|
attr_reader :tracking_number
|
208
|
+
|
209
|
+
def self.inner_class_types
|
210
|
+
@inner_class_types = { address: Address }
|
211
|
+
end
|
212
|
+
|
213
|
+
def self.field_remappings
|
214
|
+
@field_remappings = {}
|
215
|
+
end
|
144
216
|
end
|
145
217
|
|
146
218
|
class CustomerTaxId < Stripe::StripeObject
|
@@ -148,6 +220,14 @@ module Stripe
|
|
148
220
|
attr_reader :type
|
149
221
|
# The value of the tax ID.
|
150
222
|
attr_reader :value
|
223
|
+
|
224
|
+
def self.inner_class_types
|
225
|
+
@inner_class_types = {}
|
226
|
+
end
|
227
|
+
|
228
|
+
def self.field_remappings
|
229
|
+
@field_remappings = {}
|
230
|
+
end
|
151
231
|
end
|
152
232
|
|
153
233
|
class FromInvoice < Stripe::StripeObject
|
@@ -155,6 +235,14 @@ module Stripe
|
|
155
235
|
attr_reader :action
|
156
236
|
# The invoice that was cloned.
|
157
237
|
attr_reader :invoice
|
238
|
+
|
239
|
+
def self.inner_class_types
|
240
|
+
@inner_class_types = {}
|
241
|
+
end
|
242
|
+
|
243
|
+
def self.field_remappings
|
244
|
+
@field_remappings = {}
|
245
|
+
end
|
158
246
|
end
|
159
247
|
|
160
248
|
class Issuer < Stripe::StripeObject
|
@@ -162,6 +250,14 @@ module Stripe
|
|
162
250
|
attr_reader :account
|
163
251
|
# Type of the account referenced.
|
164
252
|
attr_reader :type
|
253
|
+
|
254
|
+
def self.inner_class_types
|
255
|
+
@inner_class_types = {}
|
256
|
+
end
|
257
|
+
|
258
|
+
def self.field_remappings
|
259
|
+
@field_remappings = {}
|
260
|
+
end
|
165
261
|
end
|
166
262
|
|
167
263
|
class LastFinalizationError < Stripe::StripeObject
|
@@ -231,17 +327,41 @@ module Stripe
|
|
231
327
|
attr_reader :source
|
232
328
|
# The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
|
233
329
|
attr_reader :type
|
330
|
+
|
331
|
+
def self.inner_class_types
|
332
|
+
@inner_class_types = {}
|
333
|
+
end
|
334
|
+
|
335
|
+
def self.field_remappings
|
336
|
+
@field_remappings = {}
|
337
|
+
end
|
234
338
|
end
|
235
339
|
|
236
340
|
class Parent < Stripe::StripeObject
|
237
341
|
class BillingCadenceDetails < Stripe::StripeObject
|
238
342
|
# The billing cadence that generated this invoice
|
239
343
|
attr_reader :billing_cadence
|
344
|
+
|
345
|
+
def self.inner_class_types
|
346
|
+
@inner_class_types = {}
|
347
|
+
end
|
348
|
+
|
349
|
+
def self.field_remappings
|
350
|
+
@field_remappings = {}
|
351
|
+
end
|
240
352
|
end
|
241
353
|
|
242
354
|
class QuoteDetails < Stripe::StripeObject
|
243
355
|
# The quote that generated this invoice
|
244
356
|
attr_reader :quote
|
357
|
+
|
358
|
+
def self.inner_class_types
|
359
|
+
@inner_class_types = {}
|
360
|
+
end
|
361
|
+
|
362
|
+
def self.field_remappings
|
363
|
+
@field_remappings = {}
|
364
|
+
end
|
245
365
|
end
|
246
366
|
|
247
367
|
class SubscriptionDetails < Stripe::StripeObject
|
@@ -250,6 +370,14 @@ module Stripe
|
|
250
370
|
attr_reader :behavior
|
251
371
|
# The time after which the subscription will resume collecting payments.
|
252
372
|
attr_reader :resumes_at
|
373
|
+
|
374
|
+
def self.inner_class_types
|
375
|
+
@inner_class_types = {}
|
376
|
+
end
|
377
|
+
|
378
|
+
def self.field_remappings
|
379
|
+
@field_remappings = {}
|
380
|
+
end
|
253
381
|
end
|
254
382
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
|
255
383
|
# *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
@@ -260,6 +388,14 @@ module Stripe
|
|
260
388
|
attr_reader :subscription
|
261
389
|
# Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
|
262
390
|
attr_reader :subscription_proration_date
|
391
|
+
|
392
|
+
def self.inner_class_types
|
393
|
+
@inner_class_types = { pause_collection: PauseCollection }
|
394
|
+
end
|
395
|
+
|
396
|
+
def self.field_remappings
|
397
|
+
@field_remappings = {}
|
398
|
+
end
|
263
399
|
end
|
264
400
|
# Details about the billing cadence that generated this invoice
|
265
401
|
attr_reader :billing_cadence_details
|
@@ -269,6 +405,18 @@ module Stripe
|
|
269
405
|
attr_reader :subscription_details
|
270
406
|
# The type of parent that generated this invoice
|
271
407
|
attr_reader :type
|
408
|
+
|
409
|
+
def self.inner_class_types
|
410
|
+
@inner_class_types = {
|
411
|
+
billing_cadence_details: BillingCadenceDetails,
|
412
|
+
quote_details: QuoteDetails,
|
413
|
+
subscription_details: SubscriptionDetails,
|
414
|
+
}
|
415
|
+
end
|
416
|
+
|
417
|
+
def self.field_remappings
|
418
|
+
@field_remappings = {}
|
419
|
+
end
|
272
420
|
end
|
273
421
|
|
274
422
|
class PaymentSettings < Stripe::StripeObject
|
@@ -277,27 +425,67 @@ module Stripe
|
|
277
425
|
class MandateOptions < Stripe::StripeObject
|
278
426
|
# Transaction type of the mandate.
|
279
427
|
attr_reader :transaction_type
|
428
|
+
|
429
|
+
def self.inner_class_types
|
430
|
+
@inner_class_types = {}
|
431
|
+
end
|
432
|
+
|
433
|
+
def self.field_remappings
|
434
|
+
@field_remappings = {}
|
435
|
+
end
|
280
436
|
end
|
281
437
|
# Attribute for field mandate_options
|
282
438
|
attr_reader :mandate_options
|
283
439
|
# Bank account verification method.
|
284
440
|
attr_reader :verification_method
|
441
|
+
|
442
|
+
def self.inner_class_types
|
443
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
444
|
+
end
|
445
|
+
|
446
|
+
def self.field_remappings
|
447
|
+
@field_remappings = {}
|
448
|
+
end
|
285
449
|
end
|
286
450
|
|
287
451
|
class Bancontact < Stripe::StripeObject
|
288
452
|
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
289
453
|
attr_reader :preferred_language
|
454
|
+
|
455
|
+
def self.inner_class_types
|
456
|
+
@inner_class_types = {}
|
457
|
+
end
|
458
|
+
|
459
|
+
def self.field_remappings
|
460
|
+
@field_remappings = {}
|
461
|
+
end
|
290
462
|
end
|
291
463
|
|
292
464
|
class Card < Stripe::StripeObject
|
293
465
|
class Installments < Stripe::StripeObject
|
294
466
|
# Whether Installments are enabled for this Invoice.
|
295
467
|
attr_reader :enabled
|
468
|
+
|
469
|
+
def self.inner_class_types
|
470
|
+
@inner_class_types = {}
|
471
|
+
end
|
472
|
+
|
473
|
+
def self.field_remappings
|
474
|
+
@field_remappings = {}
|
475
|
+
end
|
296
476
|
end
|
297
477
|
# Attribute for field installments
|
298
478
|
attr_reader :installments
|
299
479
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
300
480
|
attr_reader :request_three_d_secure
|
481
|
+
|
482
|
+
def self.inner_class_types
|
483
|
+
@inner_class_types = { installments: Installments }
|
484
|
+
end
|
485
|
+
|
486
|
+
def self.field_remappings
|
487
|
+
@field_remappings = {}
|
488
|
+
end
|
301
489
|
end
|
302
490
|
|
303
491
|
class CustomerBalance < Stripe::StripeObject
|
@@ -305,21 +493,71 @@ module Stripe
|
|
305
493
|
class EuBankTransfer < Stripe::StripeObject
|
306
494
|
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
307
495
|
attr_reader :country
|
496
|
+
|
497
|
+
def self.inner_class_types
|
498
|
+
@inner_class_types = {}
|
499
|
+
end
|
500
|
+
|
501
|
+
def self.field_remappings
|
502
|
+
@field_remappings = {}
|
503
|
+
end
|
308
504
|
end
|
309
505
|
# Attribute for field eu_bank_transfer
|
310
506
|
attr_reader :eu_bank_transfer
|
311
507
|
# The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
312
508
|
attr_reader :type
|
509
|
+
|
510
|
+
def self.inner_class_types
|
511
|
+
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
512
|
+
end
|
513
|
+
|
514
|
+
def self.field_remappings
|
515
|
+
@field_remappings = {}
|
516
|
+
end
|
313
517
|
end
|
314
518
|
# Attribute for field bank_transfer
|
315
519
|
attr_reader :bank_transfer
|
316
520
|
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
317
521
|
attr_reader :funding_type
|
522
|
+
|
523
|
+
def self.inner_class_types
|
524
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
525
|
+
end
|
526
|
+
|
527
|
+
def self.field_remappings
|
528
|
+
@field_remappings = {}
|
529
|
+
end
|
318
530
|
end
|
319
531
|
|
320
|
-
class IdBankTransfer < Stripe::StripeObject
|
321
|
-
|
322
|
-
|
532
|
+
class IdBankTransfer < Stripe::StripeObject
|
533
|
+
def self.inner_class_types
|
534
|
+
@inner_class_types = {}
|
535
|
+
end
|
536
|
+
|
537
|
+
def self.field_remappings
|
538
|
+
@field_remappings = {}
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
542
|
+
class Konbini < Stripe::StripeObject
|
543
|
+
def self.inner_class_types
|
544
|
+
@inner_class_types = {}
|
545
|
+
end
|
546
|
+
|
547
|
+
def self.field_remappings
|
548
|
+
@field_remappings = {}
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
class SepaDebit < Stripe::StripeObject
|
553
|
+
def self.inner_class_types
|
554
|
+
@inner_class_types = {}
|
555
|
+
end
|
556
|
+
|
557
|
+
def self.field_remappings
|
558
|
+
@field_remappings = {}
|
559
|
+
end
|
560
|
+
end
|
323
561
|
|
324
562
|
class Upi < Stripe::StripeObject
|
325
563
|
class MandateOptions < Stripe::StripeObject
|
@@ -331,9 +569,25 @@ module Stripe
|
|
331
569
|
attr_reader :description
|
332
570
|
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
333
571
|
attr_reader :end_date
|
572
|
+
|
573
|
+
def self.inner_class_types
|
574
|
+
@inner_class_types = {}
|
575
|
+
end
|
576
|
+
|
577
|
+
def self.field_remappings
|
578
|
+
@field_remappings = {}
|
579
|
+
end
|
334
580
|
end
|
335
581
|
# Attribute for field mandate_options
|
336
582
|
attr_reader :mandate_options
|
583
|
+
|
584
|
+
def self.inner_class_types
|
585
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
586
|
+
end
|
587
|
+
|
588
|
+
def self.field_remappings
|
589
|
+
@field_remappings = {}
|
590
|
+
end
|
337
591
|
end
|
338
592
|
|
339
593
|
class UsBankAccount < Stripe::StripeObject
|
@@ -343,6 +597,14 @@ module Stripe
|
|
343
597
|
attr_reader :account_subcategories
|
344
598
|
# The institution to use to filter for possible accounts to link.
|
345
599
|
attr_reader :institution
|
600
|
+
|
601
|
+
def self.inner_class_types
|
602
|
+
@inner_class_types = {}
|
603
|
+
end
|
604
|
+
|
605
|
+
def self.field_remappings
|
606
|
+
@field_remappings = {}
|
607
|
+
end
|
346
608
|
end
|
347
609
|
# Attribute for field filters
|
348
610
|
attr_reader :filters
|
@@ -350,11 +612,27 @@ module Stripe
|
|
350
612
|
attr_reader :permissions
|
351
613
|
# Data features requested to be retrieved upon account creation.
|
352
614
|
attr_reader :prefetch
|
615
|
+
|
616
|
+
def self.inner_class_types
|
617
|
+
@inner_class_types = { filters: Filters }
|
618
|
+
end
|
619
|
+
|
620
|
+
def self.field_remappings
|
621
|
+
@field_remappings = {}
|
622
|
+
end
|
353
623
|
end
|
354
624
|
# Attribute for field financial_connections
|
355
625
|
attr_reader :financial_connections
|
356
626
|
# Bank account verification method.
|
357
627
|
attr_reader :verification_method
|
628
|
+
|
629
|
+
def self.inner_class_types
|
630
|
+
@inner_class_types = { financial_connections: FinancialConnections }
|
631
|
+
end
|
632
|
+
|
633
|
+
def self.field_remappings
|
634
|
+
@field_remappings = {}
|
635
|
+
end
|
358
636
|
end
|
359
637
|
# If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice’s PaymentIntent.
|
360
638
|
attr_reader :acss_debit
|
@@ -374,6 +652,24 @@ module Stripe
|
|
374
652
|
attr_reader :upi
|
375
653
|
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
|
376
654
|
attr_reader :us_bank_account
|
655
|
+
|
656
|
+
def self.inner_class_types
|
657
|
+
@inner_class_types = {
|
658
|
+
acss_debit: AcssDebit,
|
659
|
+
bancontact: Bancontact,
|
660
|
+
card: Card,
|
661
|
+
customer_balance: CustomerBalance,
|
662
|
+
id_bank_transfer: IdBankTransfer,
|
663
|
+
konbini: Konbini,
|
664
|
+
sepa_debit: SepaDebit,
|
665
|
+
upi: Upi,
|
666
|
+
us_bank_account: UsBankAccount,
|
667
|
+
}
|
668
|
+
end
|
669
|
+
|
670
|
+
def self.field_remappings
|
671
|
+
@field_remappings = {}
|
672
|
+
end
|
377
673
|
end
|
378
674
|
# ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
|
379
675
|
attr_reader :default_mandate
|
@@ -381,12 +677,28 @@ module Stripe
|
|
381
677
|
attr_reader :payment_method_options
|
382
678
|
# The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
|
383
679
|
attr_reader :payment_method_types
|
680
|
+
|
681
|
+
def self.inner_class_types
|
682
|
+
@inner_class_types = { payment_method_options: PaymentMethodOptions }
|
683
|
+
end
|
684
|
+
|
685
|
+
def self.field_remappings
|
686
|
+
@field_remappings = {}
|
687
|
+
end
|
384
688
|
end
|
385
689
|
|
386
690
|
class Rendering < Stripe::StripeObject
|
387
691
|
class Pdf < Stripe::StripeObject
|
388
692
|
# Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale.
|
389
693
|
attr_reader :page_size
|
694
|
+
|
695
|
+
def self.inner_class_types
|
696
|
+
@inner_class_types = {}
|
697
|
+
end
|
698
|
+
|
699
|
+
def self.field_remappings
|
700
|
+
@field_remappings = {}
|
701
|
+
end
|
390
702
|
end
|
391
703
|
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
392
704
|
attr_reader :amount_tax_display
|
@@ -396,6 +708,14 @@ module Stripe
|
|
396
708
|
attr_reader :template
|
397
709
|
# Version of the rendering template that the invoice is using.
|
398
710
|
attr_reader :template_version
|
711
|
+
|
712
|
+
def self.inner_class_types
|
713
|
+
@inner_class_types = { pdf: Pdf }
|
714
|
+
end
|
715
|
+
|
716
|
+
def self.field_remappings
|
717
|
+
@field_remappings = {}
|
718
|
+
end
|
399
719
|
end
|
400
720
|
|
401
721
|
class ShippingCost < Stripe::StripeObject
|
@@ -410,6 +730,14 @@ module Stripe
|
|
410
730
|
attr_reader :taxability_reason
|
411
731
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
412
732
|
attr_reader :taxable_amount
|
733
|
+
|
734
|
+
def self.inner_class_types
|
735
|
+
@inner_class_types = {}
|
736
|
+
end
|
737
|
+
|
738
|
+
def self.field_remappings
|
739
|
+
@field_remappings = {}
|
740
|
+
end
|
413
741
|
end
|
414
742
|
# Total shipping cost before any taxes are applied.
|
415
743
|
attr_reader :amount_subtotal
|
@@ -421,6 +749,14 @@ module Stripe
|
|
421
749
|
attr_reader :shipping_rate
|
422
750
|
# The taxes applied to the shipping rate.
|
423
751
|
attr_reader :taxes
|
752
|
+
|
753
|
+
def self.inner_class_types
|
754
|
+
@inner_class_types = { taxes: Tax }
|
755
|
+
end
|
756
|
+
|
757
|
+
def self.field_remappings
|
758
|
+
@field_remappings = {}
|
759
|
+
end
|
424
760
|
end
|
425
761
|
|
426
762
|
class ShippingDetails < Stripe::StripeObject
|
@@ -437,6 +773,14 @@ module Stripe
|
|
437
773
|
attr_reader :postal_code
|
438
774
|
# State, county, province, or region.
|
439
775
|
attr_reader :state
|
776
|
+
|
777
|
+
def self.inner_class_types
|
778
|
+
@inner_class_types = {}
|
779
|
+
end
|
780
|
+
|
781
|
+
def self.field_remappings
|
782
|
+
@field_remappings = {}
|
783
|
+
end
|
440
784
|
end
|
441
785
|
# Attribute for field address
|
442
786
|
attr_reader :address
|
@@ -448,6 +792,14 @@ module Stripe
|
|
448
792
|
attr_reader :phone
|
449
793
|
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
450
794
|
attr_reader :tracking_number
|
795
|
+
|
796
|
+
def self.inner_class_types
|
797
|
+
@inner_class_types = { address: Address }
|
798
|
+
end
|
799
|
+
|
800
|
+
def self.field_remappings
|
801
|
+
@field_remappings = {}
|
802
|
+
end
|
451
803
|
end
|
452
804
|
|
453
805
|
class StatusTransitions < Stripe::StripeObject
|
@@ -459,6 +811,14 @@ module Stripe
|
|
459
811
|
attr_reader :paid_at
|
460
812
|
# The time that the invoice was voided.
|
461
813
|
attr_reader :voided_at
|
814
|
+
|
815
|
+
def self.inner_class_types
|
816
|
+
@inner_class_types = {}
|
817
|
+
end
|
818
|
+
|
819
|
+
def self.field_remappings
|
820
|
+
@field_remappings = {}
|
821
|
+
end
|
462
822
|
end
|
463
823
|
|
464
824
|
class ThresholdReason < Stripe::StripeObject
|
@@ -467,11 +827,27 @@ module Stripe
|
|
467
827
|
attr_reader :line_item_ids
|
468
828
|
# The quantity threshold boundary that applied to the given line item.
|
469
829
|
attr_reader :usage_gte
|
830
|
+
|
831
|
+
def self.inner_class_types
|
832
|
+
@inner_class_types = {}
|
833
|
+
end
|
834
|
+
|
835
|
+
def self.field_remappings
|
836
|
+
@field_remappings = {}
|
837
|
+
end
|
470
838
|
end
|
471
839
|
# The total invoice amount threshold boundary if it triggered the threshold invoice.
|
472
840
|
attr_reader :amount_gte
|
473
841
|
# Indicates which line items triggered a threshold invoice.
|
474
842
|
attr_reader :item_reasons
|
843
|
+
|
844
|
+
def self.inner_class_types
|
845
|
+
@inner_class_types = { item_reasons: ItemReason }
|
846
|
+
end
|
847
|
+
|
848
|
+
def self.field_remappings
|
849
|
+
@field_remappings = {}
|
850
|
+
end
|
475
851
|
end
|
476
852
|
|
477
853
|
class TotalDiscountAmount < Stripe::StripeObject
|
@@ -479,6 +855,14 @@ module Stripe
|
|
479
855
|
attr_reader :amount
|
480
856
|
# The discount that was applied to get this discount amount.
|
481
857
|
attr_reader :discount
|
858
|
+
|
859
|
+
def self.inner_class_types
|
860
|
+
@inner_class_types = {}
|
861
|
+
end
|
862
|
+
|
863
|
+
def self.field_remappings
|
864
|
+
@field_remappings = {}
|
865
|
+
end
|
482
866
|
end
|
483
867
|
|
484
868
|
class TotalMarginAmount < Stripe::StripeObject
|
@@ -486,6 +870,14 @@ module Stripe
|
|
486
870
|
attr_reader :amount
|
487
871
|
# The margin that was applied to get this margin amount.
|
488
872
|
attr_reader :margin
|
873
|
+
|
874
|
+
def self.inner_class_types
|
875
|
+
@inner_class_types = {}
|
876
|
+
end
|
877
|
+
|
878
|
+
def self.field_remappings
|
879
|
+
@field_remappings = {}
|
880
|
+
end
|
489
881
|
end
|
490
882
|
|
491
883
|
class TotalPretaxCreditAmount < Stripe::StripeObject
|
@@ -499,12 +891,28 @@ module Stripe
|
|
499
891
|
attr_reader :margin
|
500
892
|
# Type of the pretax credit amount referenced.
|
501
893
|
attr_reader :type
|
894
|
+
|
895
|
+
def self.inner_class_types
|
896
|
+
@inner_class_types = {}
|
897
|
+
end
|
898
|
+
|
899
|
+
def self.field_remappings
|
900
|
+
@field_remappings = {}
|
901
|
+
end
|
502
902
|
end
|
503
903
|
|
504
904
|
class TotalTax < Stripe::StripeObject
|
505
905
|
class TaxRateDetails < Stripe::StripeObject
|
506
906
|
# Attribute for field tax_rate
|
507
907
|
attr_reader :tax_rate
|
908
|
+
|
909
|
+
def self.inner_class_types
|
910
|
+
@inner_class_types = {}
|
911
|
+
end
|
912
|
+
|
913
|
+
def self.field_remappings
|
914
|
+
@field_remappings = {}
|
915
|
+
end
|
508
916
|
end
|
509
917
|
# The amount of the tax, in cents (or local equivalent).
|
510
918
|
attr_reader :amount
|
@@ -518,6 +926,14 @@ module Stripe
|
|
518
926
|
attr_reader :taxable_amount
|
519
927
|
# The type of tax information.
|
520
928
|
attr_reader :type
|
929
|
+
|
930
|
+
def self.inner_class_types
|
931
|
+
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
932
|
+
end
|
933
|
+
|
934
|
+
def self.field_remappings
|
935
|
+
@field_remappings = {}
|
936
|
+
end
|
521
937
|
end
|
522
938
|
# The country of the business associated with this invoice, most often the business creating the invoice.
|
523
939
|
attr_reader :account_country
|
@@ -683,5 +1099,36 @@ module Stripe
|
|
683
1099
|
attr_reader :total_taxes
|
684
1100
|
# Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://stripe.com/docs/billing/webhooks#understand). This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
|
685
1101
|
attr_reader :webhooks_delivered_at
|
1102
|
+
|
1103
|
+
def self.inner_class_types
|
1104
|
+
@inner_class_types = {
|
1105
|
+
amounts_due: AmountsDue,
|
1106
|
+
applies_to: AppliesTo,
|
1107
|
+
automatic_tax: AutomaticTax,
|
1108
|
+
confirmation_secret: ConfirmationSecret,
|
1109
|
+
custom_fields: CustomField,
|
1110
|
+
customer_address: CustomerAddress,
|
1111
|
+
customer_shipping: CustomerShipping,
|
1112
|
+
customer_tax_ids: CustomerTaxId,
|
1113
|
+
from_invoice: FromInvoice,
|
1114
|
+
issuer: Issuer,
|
1115
|
+
last_finalization_error: LastFinalizationError,
|
1116
|
+
parent: Parent,
|
1117
|
+
payment_settings: PaymentSettings,
|
1118
|
+
rendering: Rendering,
|
1119
|
+
shipping_cost: ShippingCost,
|
1120
|
+
shipping_details: ShippingDetails,
|
1121
|
+
status_transitions: StatusTransitions,
|
1122
|
+
threshold_reason: ThresholdReason,
|
1123
|
+
total_discount_amounts: TotalDiscountAmount,
|
1124
|
+
total_margin_amounts: TotalMarginAmount,
|
1125
|
+
total_pretax_credit_amounts: TotalPretaxCreditAmount,
|
1126
|
+
total_taxes: TotalTax,
|
1127
|
+
}
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
def self.field_remappings
|
1131
|
+
@field_remappings = {}
|
1132
|
+
end
|
686
1133
|
end
|
687
1134
|
end
|