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
@@ -66,6 +66,14 @@ module Stripe
|
|
66
66
|
attr_reader :paid_at
|
67
67
|
# The status of the payment, one of `open`, `paid`, or `past_due`
|
68
68
|
attr_reader :status
|
69
|
+
|
70
|
+
def self.inner_class_types
|
71
|
+
@inner_class_types = {}
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.field_remappings
|
75
|
+
@field_remappings = {}
|
76
|
+
end
|
69
77
|
end
|
70
78
|
|
71
79
|
class AutomaticTax < Stripe::StripeObject
|
@@ -74,6 +82,14 @@ module Stripe
|
|
74
82
|
attr_reader :account
|
75
83
|
# Type of the account referenced.
|
76
84
|
attr_reader :type
|
85
|
+
|
86
|
+
def self.inner_class_types
|
87
|
+
@inner_class_types = {}
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.field_remappings
|
91
|
+
@field_remappings = {}
|
92
|
+
end
|
77
93
|
end
|
78
94
|
# If Stripe disabled automatic tax, this enum describes why.
|
79
95
|
attr_reader :disabled_reason
|
@@ -85,6 +101,14 @@ module Stripe
|
|
85
101
|
attr_reader :provider
|
86
102
|
# The status of the most recent automated tax calculation for this invoice.
|
87
103
|
attr_reader :status
|
104
|
+
|
105
|
+
def self.inner_class_types
|
106
|
+
@inner_class_types = { liability: Liability }
|
107
|
+
end
|
108
|
+
|
109
|
+
def self.field_remappings
|
110
|
+
@field_remappings = {}
|
111
|
+
end
|
88
112
|
end
|
89
113
|
|
90
114
|
class ConfirmationSecret < Stripe::StripeObject
|
@@ -92,6 +116,14 @@ module Stripe
|
|
92
116
|
attr_reader :client_secret
|
93
117
|
# The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization
|
94
118
|
attr_reader :type
|
119
|
+
|
120
|
+
def self.inner_class_types
|
121
|
+
@inner_class_types = {}
|
122
|
+
end
|
123
|
+
|
124
|
+
def self.field_remappings
|
125
|
+
@field_remappings = {}
|
126
|
+
end
|
95
127
|
end
|
96
128
|
|
97
129
|
class CustomField < Stripe::StripeObject
|
@@ -99,6 +131,14 @@ module Stripe
|
|
99
131
|
attr_reader :name
|
100
132
|
# The value of the custom field.
|
101
133
|
attr_reader :value
|
134
|
+
|
135
|
+
def self.inner_class_types
|
136
|
+
@inner_class_types = {}
|
137
|
+
end
|
138
|
+
|
139
|
+
def self.field_remappings
|
140
|
+
@field_remappings = {}
|
141
|
+
end
|
102
142
|
end
|
103
143
|
|
104
144
|
class CustomerAddress < Stripe::StripeObject
|
@@ -114,6 +154,14 @@ module Stripe
|
|
114
154
|
attr_reader :postal_code
|
115
155
|
# State, county, province, or region.
|
116
156
|
attr_reader :state
|
157
|
+
|
158
|
+
def self.inner_class_types
|
159
|
+
@inner_class_types = {}
|
160
|
+
end
|
161
|
+
|
162
|
+
def self.field_remappings
|
163
|
+
@field_remappings = {}
|
164
|
+
end
|
117
165
|
end
|
118
166
|
|
119
167
|
class CustomerShipping < Stripe::StripeObject
|
@@ -130,6 +178,14 @@ module Stripe
|
|
130
178
|
attr_reader :postal_code
|
131
179
|
# State, county, province, or region.
|
132
180
|
attr_reader :state
|
181
|
+
|
182
|
+
def self.inner_class_types
|
183
|
+
@inner_class_types = {}
|
184
|
+
end
|
185
|
+
|
186
|
+
def self.field_remappings
|
187
|
+
@field_remappings = {}
|
188
|
+
end
|
133
189
|
end
|
134
190
|
# Attribute for field address
|
135
191
|
attr_reader :address
|
@@ -141,6 +197,14 @@ module Stripe
|
|
141
197
|
attr_reader :phone
|
142
198
|
# 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
199
|
attr_reader :tracking_number
|
200
|
+
|
201
|
+
def self.inner_class_types
|
202
|
+
@inner_class_types = { address: Address }
|
203
|
+
end
|
204
|
+
|
205
|
+
def self.field_remappings
|
206
|
+
@field_remappings = {}
|
207
|
+
end
|
144
208
|
end
|
145
209
|
|
146
210
|
class CustomerTaxId < Stripe::StripeObject
|
@@ -148,6 +212,14 @@ module Stripe
|
|
148
212
|
attr_reader :type
|
149
213
|
# The value of the tax ID.
|
150
214
|
attr_reader :value
|
215
|
+
|
216
|
+
def self.inner_class_types
|
217
|
+
@inner_class_types = {}
|
218
|
+
end
|
219
|
+
|
220
|
+
def self.field_remappings
|
221
|
+
@field_remappings = {}
|
222
|
+
end
|
151
223
|
end
|
152
224
|
|
153
225
|
class FromInvoice < Stripe::StripeObject
|
@@ -155,6 +227,14 @@ module Stripe
|
|
155
227
|
attr_reader :action
|
156
228
|
# The invoice that was cloned.
|
157
229
|
attr_reader :invoice
|
230
|
+
|
231
|
+
def self.inner_class_types
|
232
|
+
@inner_class_types = {}
|
233
|
+
end
|
234
|
+
|
235
|
+
def self.field_remappings
|
236
|
+
@field_remappings = {}
|
237
|
+
end
|
158
238
|
end
|
159
239
|
|
160
240
|
class Issuer < Stripe::StripeObject
|
@@ -162,6 +242,14 @@ module Stripe
|
|
162
242
|
attr_reader :account
|
163
243
|
# Type of the account referenced.
|
164
244
|
attr_reader :type
|
245
|
+
|
246
|
+
def self.inner_class_types
|
247
|
+
@inner_class_types = {}
|
248
|
+
end
|
249
|
+
|
250
|
+
def self.field_remappings
|
251
|
+
@field_remappings = {}
|
252
|
+
end
|
165
253
|
end
|
166
254
|
|
167
255
|
class LastFinalizationError < Stripe::StripeObject
|
@@ -231,17 +319,41 @@ module Stripe
|
|
231
319
|
attr_reader :source
|
232
320
|
# The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
|
233
321
|
attr_reader :type
|
322
|
+
|
323
|
+
def self.inner_class_types
|
324
|
+
@inner_class_types = {}
|
325
|
+
end
|
326
|
+
|
327
|
+
def self.field_remappings
|
328
|
+
@field_remappings = {}
|
329
|
+
end
|
234
330
|
end
|
235
331
|
|
236
332
|
class Parent < Stripe::StripeObject
|
237
333
|
class BillingCadenceDetails < Stripe::StripeObject
|
238
334
|
# The billing cadence that generated this invoice
|
239
335
|
attr_reader :billing_cadence
|
336
|
+
|
337
|
+
def self.inner_class_types
|
338
|
+
@inner_class_types = {}
|
339
|
+
end
|
340
|
+
|
341
|
+
def self.field_remappings
|
342
|
+
@field_remappings = {}
|
343
|
+
end
|
240
344
|
end
|
241
345
|
|
242
346
|
class QuoteDetails < Stripe::StripeObject
|
243
347
|
# The quote that generated this invoice
|
244
348
|
attr_reader :quote
|
349
|
+
|
350
|
+
def self.inner_class_types
|
351
|
+
@inner_class_types = {}
|
352
|
+
end
|
353
|
+
|
354
|
+
def self.field_remappings
|
355
|
+
@field_remappings = {}
|
356
|
+
end
|
245
357
|
end
|
246
358
|
|
247
359
|
class SubscriptionDetails < Stripe::StripeObject
|
@@ -250,6 +362,14 @@ module Stripe
|
|
250
362
|
attr_reader :behavior
|
251
363
|
# The time after which the subscription will resume collecting payments.
|
252
364
|
attr_reader :resumes_at
|
365
|
+
|
366
|
+
def self.inner_class_types
|
367
|
+
@inner_class_types = {}
|
368
|
+
end
|
369
|
+
|
370
|
+
def self.field_remappings
|
371
|
+
@field_remappings = {}
|
372
|
+
end
|
253
373
|
end
|
254
374
|
# 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
375
|
# *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
@@ -260,6 +380,14 @@ module Stripe
|
|
260
380
|
attr_reader :subscription
|
261
381
|
# Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
|
262
382
|
attr_reader :subscription_proration_date
|
383
|
+
|
384
|
+
def self.inner_class_types
|
385
|
+
@inner_class_types = { pause_collection: PauseCollection }
|
386
|
+
end
|
387
|
+
|
388
|
+
def self.field_remappings
|
389
|
+
@field_remappings = {}
|
390
|
+
end
|
263
391
|
end
|
264
392
|
# Details about the billing cadence that generated this invoice
|
265
393
|
attr_reader :billing_cadence_details
|
@@ -269,6 +397,18 @@ module Stripe
|
|
269
397
|
attr_reader :subscription_details
|
270
398
|
# The type of parent that generated this invoice
|
271
399
|
attr_reader :type
|
400
|
+
|
401
|
+
def self.inner_class_types
|
402
|
+
@inner_class_types = {
|
403
|
+
billing_cadence_details: BillingCadenceDetails,
|
404
|
+
quote_details: QuoteDetails,
|
405
|
+
subscription_details: SubscriptionDetails,
|
406
|
+
}
|
407
|
+
end
|
408
|
+
|
409
|
+
def self.field_remappings
|
410
|
+
@field_remappings = {}
|
411
|
+
end
|
272
412
|
end
|
273
413
|
|
274
414
|
class PaymentSettings < Stripe::StripeObject
|
@@ -277,27 +417,67 @@ module Stripe
|
|
277
417
|
class MandateOptions < Stripe::StripeObject
|
278
418
|
# Transaction type of the mandate.
|
279
419
|
attr_reader :transaction_type
|
420
|
+
|
421
|
+
def self.inner_class_types
|
422
|
+
@inner_class_types = {}
|
423
|
+
end
|
424
|
+
|
425
|
+
def self.field_remappings
|
426
|
+
@field_remappings = {}
|
427
|
+
end
|
280
428
|
end
|
281
429
|
# Attribute for field mandate_options
|
282
430
|
attr_reader :mandate_options
|
283
431
|
# Bank account verification method.
|
284
432
|
attr_reader :verification_method
|
433
|
+
|
434
|
+
def self.inner_class_types
|
435
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
436
|
+
end
|
437
|
+
|
438
|
+
def self.field_remappings
|
439
|
+
@field_remappings = {}
|
440
|
+
end
|
285
441
|
end
|
286
442
|
|
287
443
|
class Bancontact < Stripe::StripeObject
|
288
444
|
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
289
445
|
attr_reader :preferred_language
|
446
|
+
|
447
|
+
def self.inner_class_types
|
448
|
+
@inner_class_types = {}
|
449
|
+
end
|
450
|
+
|
451
|
+
def self.field_remappings
|
452
|
+
@field_remappings = {}
|
453
|
+
end
|
290
454
|
end
|
291
455
|
|
292
456
|
class Card < Stripe::StripeObject
|
293
457
|
class Installments < Stripe::StripeObject
|
294
458
|
# Whether Installments are enabled for this Invoice.
|
295
459
|
attr_reader :enabled
|
460
|
+
|
461
|
+
def self.inner_class_types
|
462
|
+
@inner_class_types = {}
|
463
|
+
end
|
464
|
+
|
465
|
+
def self.field_remappings
|
466
|
+
@field_remappings = {}
|
467
|
+
end
|
296
468
|
end
|
297
469
|
# Attribute for field installments
|
298
470
|
attr_reader :installments
|
299
471
|
# 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
472
|
attr_reader :request_three_d_secure
|
473
|
+
|
474
|
+
def self.inner_class_types
|
475
|
+
@inner_class_types = { installments: Installments }
|
476
|
+
end
|
477
|
+
|
478
|
+
def self.field_remappings
|
479
|
+
@field_remappings = {}
|
480
|
+
end
|
301
481
|
end
|
302
482
|
|
303
483
|
class CustomerBalance < Stripe::StripeObject
|
@@ -305,21 +485,71 @@ module Stripe
|
|
305
485
|
class EuBankTransfer < Stripe::StripeObject
|
306
486
|
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
307
487
|
attr_reader :country
|
488
|
+
|
489
|
+
def self.inner_class_types
|
490
|
+
@inner_class_types = {}
|
491
|
+
end
|
492
|
+
|
493
|
+
def self.field_remappings
|
494
|
+
@field_remappings = {}
|
495
|
+
end
|
308
496
|
end
|
309
497
|
# Attribute for field eu_bank_transfer
|
310
498
|
attr_reader :eu_bank_transfer
|
311
499
|
# 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
500
|
attr_reader :type
|
501
|
+
|
502
|
+
def self.inner_class_types
|
503
|
+
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
504
|
+
end
|
505
|
+
|
506
|
+
def self.field_remappings
|
507
|
+
@field_remappings = {}
|
508
|
+
end
|
313
509
|
end
|
314
510
|
# Attribute for field bank_transfer
|
315
511
|
attr_reader :bank_transfer
|
316
512
|
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
317
513
|
attr_reader :funding_type
|
514
|
+
|
515
|
+
def self.inner_class_types
|
516
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
517
|
+
end
|
518
|
+
|
519
|
+
def self.field_remappings
|
520
|
+
@field_remappings = {}
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
class IdBankTransfer < Stripe::StripeObject
|
525
|
+
def self.inner_class_types
|
526
|
+
@inner_class_types = {}
|
527
|
+
end
|
528
|
+
|
529
|
+
def self.field_remappings
|
530
|
+
@field_remappings = {}
|
531
|
+
end
|
318
532
|
end
|
319
533
|
|
320
|
-
class
|
321
|
-
|
322
|
-
|
534
|
+
class Konbini < Stripe::StripeObject
|
535
|
+
def self.inner_class_types
|
536
|
+
@inner_class_types = {}
|
537
|
+
end
|
538
|
+
|
539
|
+
def self.field_remappings
|
540
|
+
@field_remappings = {}
|
541
|
+
end
|
542
|
+
end
|
543
|
+
|
544
|
+
class SepaDebit < Stripe::StripeObject
|
545
|
+
def self.inner_class_types
|
546
|
+
@inner_class_types = {}
|
547
|
+
end
|
548
|
+
|
549
|
+
def self.field_remappings
|
550
|
+
@field_remappings = {}
|
551
|
+
end
|
552
|
+
end
|
323
553
|
|
324
554
|
class Upi < Stripe::StripeObject
|
325
555
|
class MandateOptions < Stripe::StripeObject
|
@@ -331,9 +561,25 @@ module Stripe
|
|
331
561
|
attr_reader :description
|
332
562
|
# 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
563
|
attr_reader :end_date
|
564
|
+
|
565
|
+
def self.inner_class_types
|
566
|
+
@inner_class_types = {}
|
567
|
+
end
|
568
|
+
|
569
|
+
def self.field_remappings
|
570
|
+
@field_remappings = {}
|
571
|
+
end
|
334
572
|
end
|
335
573
|
# Attribute for field mandate_options
|
336
574
|
attr_reader :mandate_options
|
575
|
+
|
576
|
+
def self.inner_class_types
|
577
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
578
|
+
end
|
579
|
+
|
580
|
+
def self.field_remappings
|
581
|
+
@field_remappings = {}
|
582
|
+
end
|
337
583
|
end
|
338
584
|
|
339
585
|
class UsBankAccount < Stripe::StripeObject
|
@@ -343,6 +589,14 @@ module Stripe
|
|
343
589
|
attr_reader :account_subcategories
|
344
590
|
# The institution to use to filter for possible accounts to link.
|
345
591
|
attr_reader :institution
|
592
|
+
|
593
|
+
def self.inner_class_types
|
594
|
+
@inner_class_types = {}
|
595
|
+
end
|
596
|
+
|
597
|
+
def self.field_remappings
|
598
|
+
@field_remappings = {}
|
599
|
+
end
|
346
600
|
end
|
347
601
|
# Attribute for field filters
|
348
602
|
attr_reader :filters
|
@@ -350,11 +604,27 @@ module Stripe
|
|
350
604
|
attr_reader :permissions
|
351
605
|
# Data features requested to be retrieved upon account creation.
|
352
606
|
attr_reader :prefetch
|
607
|
+
|
608
|
+
def self.inner_class_types
|
609
|
+
@inner_class_types = { filters: Filters }
|
610
|
+
end
|
611
|
+
|
612
|
+
def self.field_remappings
|
613
|
+
@field_remappings = {}
|
614
|
+
end
|
353
615
|
end
|
354
616
|
# Attribute for field financial_connections
|
355
617
|
attr_reader :financial_connections
|
356
618
|
# Bank account verification method.
|
357
619
|
attr_reader :verification_method
|
620
|
+
|
621
|
+
def self.inner_class_types
|
622
|
+
@inner_class_types = { financial_connections: FinancialConnections }
|
623
|
+
end
|
624
|
+
|
625
|
+
def self.field_remappings
|
626
|
+
@field_remappings = {}
|
627
|
+
end
|
358
628
|
end
|
359
629
|
# 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
630
|
attr_reader :acss_debit
|
@@ -374,6 +644,24 @@ module Stripe
|
|
374
644
|
attr_reader :upi
|
375
645
|
# 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
646
|
attr_reader :us_bank_account
|
647
|
+
|
648
|
+
def self.inner_class_types
|
649
|
+
@inner_class_types = {
|
650
|
+
acss_debit: AcssDebit,
|
651
|
+
bancontact: Bancontact,
|
652
|
+
card: Card,
|
653
|
+
customer_balance: CustomerBalance,
|
654
|
+
id_bank_transfer: IdBankTransfer,
|
655
|
+
konbini: Konbini,
|
656
|
+
sepa_debit: SepaDebit,
|
657
|
+
upi: Upi,
|
658
|
+
us_bank_account: UsBankAccount,
|
659
|
+
}
|
660
|
+
end
|
661
|
+
|
662
|
+
def self.field_remappings
|
663
|
+
@field_remappings = {}
|
664
|
+
end
|
377
665
|
end
|
378
666
|
# 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
667
|
attr_reader :default_mandate
|
@@ -381,12 +669,28 @@ module Stripe
|
|
381
669
|
attr_reader :payment_method_options
|
382
670
|
# 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
671
|
attr_reader :payment_method_types
|
672
|
+
|
673
|
+
def self.inner_class_types
|
674
|
+
@inner_class_types = { payment_method_options: PaymentMethodOptions }
|
675
|
+
end
|
676
|
+
|
677
|
+
def self.field_remappings
|
678
|
+
@field_remappings = {}
|
679
|
+
end
|
384
680
|
end
|
385
681
|
|
386
682
|
class Rendering < Stripe::StripeObject
|
387
683
|
class Pdf < Stripe::StripeObject
|
388
684
|
# 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
685
|
attr_reader :page_size
|
686
|
+
|
687
|
+
def self.inner_class_types
|
688
|
+
@inner_class_types = {}
|
689
|
+
end
|
690
|
+
|
691
|
+
def self.field_remappings
|
692
|
+
@field_remappings = {}
|
693
|
+
end
|
390
694
|
end
|
391
695
|
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
392
696
|
attr_reader :amount_tax_display
|
@@ -396,6 +700,14 @@ module Stripe
|
|
396
700
|
attr_reader :template
|
397
701
|
# Version of the rendering template that the invoice is using.
|
398
702
|
attr_reader :template_version
|
703
|
+
|
704
|
+
def self.inner_class_types
|
705
|
+
@inner_class_types = { pdf: Pdf }
|
706
|
+
end
|
707
|
+
|
708
|
+
def self.field_remappings
|
709
|
+
@field_remappings = {}
|
710
|
+
end
|
399
711
|
end
|
400
712
|
|
401
713
|
class ShippingCost < Stripe::StripeObject
|
@@ -410,6 +722,14 @@ module Stripe
|
|
410
722
|
attr_reader :taxability_reason
|
411
723
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
412
724
|
attr_reader :taxable_amount
|
725
|
+
|
726
|
+
def self.inner_class_types
|
727
|
+
@inner_class_types = {}
|
728
|
+
end
|
729
|
+
|
730
|
+
def self.field_remappings
|
731
|
+
@field_remappings = {}
|
732
|
+
end
|
413
733
|
end
|
414
734
|
# Total shipping cost before any taxes are applied.
|
415
735
|
attr_reader :amount_subtotal
|
@@ -421,6 +741,14 @@ module Stripe
|
|
421
741
|
attr_reader :shipping_rate
|
422
742
|
# The taxes applied to the shipping rate.
|
423
743
|
attr_reader :taxes
|
744
|
+
|
745
|
+
def self.inner_class_types
|
746
|
+
@inner_class_types = { taxes: Tax }
|
747
|
+
end
|
748
|
+
|
749
|
+
def self.field_remappings
|
750
|
+
@field_remappings = {}
|
751
|
+
end
|
424
752
|
end
|
425
753
|
|
426
754
|
class ShippingDetails < Stripe::StripeObject
|
@@ -437,6 +765,14 @@ module Stripe
|
|
437
765
|
attr_reader :postal_code
|
438
766
|
# State, county, province, or region.
|
439
767
|
attr_reader :state
|
768
|
+
|
769
|
+
def self.inner_class_types
|
770
|
+
@inner_class_types = {}
|
771
|
+
end
|
772
|
+
|
773
|
+
def self.field_remappings
|
774
|
+
@field_remappings = {}
|
775
|
+
end
|
440
776
|
end
|
441
777
|
# Attribute for field address
|
442
778
|
attr_reader :address
|
@@ -448,6 +784,14 @@ module Stripe
|
|
448
784
|
attr_reader :phone
|
449
785
|
# 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
786
|
attr_reader :tracking_number
|
787
|
+
|
788
|
+
def self.inner_class_types
|
789
|
+
@inner_class_types = { address: Address }
|
790
|
+
end
|
791
|
+
|
792
|
+
def self.field_remappings
|
793
|
+
@field_remappings = {}
|
794
|
+
end
|
451
795
|
end
|
452
796
|
|
453
797
|
class StatusTransitions < Stripe::StripeObject
|
@@ -459,6 +803,14 @@ module Stripe
|
|
459
803
|
attr_reader :paid_at
|
460
804
|
# The time that the invoice was voided.
|
461
805
|
attr_reader :voided_at
|
806
|
+
|
807
|
+
def self.inner_class_types
|
808
|
+
@inner_class_types = {}
|
809
|
+
end
|
810
|
+
|
811
|
+
def self.field_remappings
|
812
|
+
@field_remappings = {}
|
813
|
+
end
|
462
814
|
end
|
463
815
|
|
464
816
|
class ThresholdReason < Stripe::StripeObject
|
@@ -467,11 +819,27 @@ module Stripe
|
|
467
819
|
attr_reader :line_item_ids
|
468
820
|
# The quantity threshold boundary that applied to the given line item.
|
469
821
|
attr_reader :usage_gte
|
822
|
+
|
823
|
+
def self.inner_class_types
|
824
|
+
@inner_class_types = {}
|
825
|
+
end
|
826
|
+
|
827
|
+
def self.field_remappings
|
828
|
+
@field_remappings = {}
|
829
|
+
end
|
470
830
|
end
|
471
831
|
# The total invoice amount threshold boundary if it triggered the threshold invoice.
|
472
832
|
attr_reader :amount_gte
|
473
833
|
# Indicates which line items triggered a threshold invoice.
|
474
834
|
attr_reader :item_reasons
|
835
|
+
|
836
|
+
def self.inner_class_types
|
837
|
+
@inner_class_types = { item_reasons: ItemReason }
|
838
|
+
end
|
839
|
+
|
840
|
+
def self.field_remappings
|
841
|
+
@field_remappings = {}
|
842
|
+
end
|
475
843
|
end
|
476
844
|
|
477
845
|
class TotalDiscountAmount < Stripe::StripeObject
|
@@ -479,6 +847,14 @@ module Stripe
|
|
479
847
|
attr_reader :amount
|
480
848
|
# The discount that was applied to get this discount amount.
|
481
849
|
attr_reader :discount
|
850
|
+
|
851
|
+
def self.inner_class_types
|
852
|
+
@inner_class_types = {}
|
853
|
+
end
|
854
|
+
|
855
|
+
def self.field_remappings
|
856
|
+
@field_remappings = {}
|
857
|
+
end
|
482
858
|
end
|
483
859
|
|
484
860
|
class TotalMarginAmount < Stripe::StripeObject
|
@@ -486,6 +862,14 @@ module Stripe
|
|
486
862
|
attr_reader :amount
|
487
863
|
# The margin that was applied to get this margin amount.
|
488
864
|
attr_reader :margin
|
865
|
+
|
866
|
+
def self.inner_class_types
|
867
|
+
@inner_class_types = {}
|
868
|
+
end
|
869
|
+
|
870
|
+
def self.field_remappings
|
871
|
+
@field_remappings = {}
|
872
|
+
end
|
489
873
|
end
|
490
874
|
|
491
875
|
class TotalPretaxCreditAmount < Stripe::StripeObject
|
@@ -499,12 +883,28 @@ module Stripe
|
|
499
883
|
attr_reader :margin
|
500
884
|
# Type of the pretax credit amount referenced.
|
501
885
|
attr_reader :type
|
886
|
+
|
887
|
+
def self.inner_class_types
|
888
|
+
@inner_class_types = {}
|
889
|
+
end
|
890
|
+
|
891
|
+
def self.field_remappings
|
892
|
+
@field_remappings = {}
|
893
|
+
end
|
502
894
|
end
|
503
895
|
|
504
896
|
class TotalTax < Stripe::StripeObject
|
505
897
|
class TaxRateDetails < Stripe::StripeObject
|
506
898
|
# Attribute for field tax_rate
|
507
899
|
attr_reader :tax_rate
|
900
|
+
|
901
|
+
def self.inner_class_types
|
902
|
+
@inner_class_types = {}
|
903
|
+
end
|
904
|
+
|
905
|
+
def self.field_remappings
|
906
|
+
@field_remappings = {}
|
907
|
+
end
|
508
908
|
end
|
509
909
|
# The amount of the tax, in cents (or local equivalent).
|
510
910
|
attr_reader :amount
|
@@ -518,6 +918,14 @@ module Stripe
|
|
518
918
|
attr_reader :taxable_amount
|
519
919
|
# The type of tax information.
|
520
920
|
attr_reader :type
|
921
|
+
|
922
|
+
def self.inner_class_types
|
923
|
+
@inner_class_types = { tax_rate_details: TaxRateDetails }
|
924
|
+
end
|
925
|
+
|
926
|
+
def self.field_remappings
|
927
|
+
@field_remappings = {}
|
928
|
+
end
|
521
929
|
end
|
522
930
|
|
523
931
|
class DeleteParams < Stripe::RequestParams; end
|
@@ -4797,5 +5205,35 @@ module Stripe
|
|
4797
5205
|
opts: opts
|
4798
5206
|
)
|
4799
5207
|
end
|
5208
|
+
|
5209
|
+
def self.inner_class_types
|
5210
|
+
@inner_class_types = {
|
5211
|
+
amounts_due: AmountsDue,
|
5212
|
+
automatic_tax: AutomaticTax,
|
5213
|
+
confirmation_secret: ConfirmationSecret,
|
5214
|
+
custom_fields: CustomField,
|
5215
|
+
customer_address: CustomerAddress,
|
5216
|
+
customer_shipping: CustomerShipping,
|
5217
|
+
customer_tax_ids: CustomerTaxId,
|
5218
|
+
from_invoice: FromInvoice,
|
5219
|
+
issuer: Issuer,
|
5220
|
+
last_finalization_error: LastFinalizationError,
|
5221
|
+
parent: Parent,
|
5222
|
+
payment_settings: PaymentSettings,
|
5223
|
+
rendering: Rendering,
|
5224
|
+
shipping_cost: ShippingCost,
|
5225
|
+
shipping_details: ShippingDetails,
|
5226
|
+
status_transitions: StatusTransitions,
|
5227
|
+
threshold_reason: ThresholdReason,
|
5228
|
+
total_discount_amounts: TotalDiscountAmount,
|
5229
|
+
total_margin_amounts: TotalMarginAmount,
|
5230
|
+
total_pretax_credit_amounts: TotalPretaxCreditAmount,
|
5231
|
+
total_taxes: TotalTax,
|
5232
|
+
}
|
5233
|
+
end
|
5234
|
+
|
5235
|
+
def self.field_remappings
|
5236
|
+
@field_remappings = {}
|
5237
|
+
end
|
4800
5238
|
end
|
4801
5239
|
end
|