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
@@ -29,6 +29,14 @@ module Stripe
|
|
29
29
|
attr_reader :postal_code
|
30
30
|
# State, county, province, or region.
|
31
31
|
attr_reader :state
|
32
|
+
|
33
|
+
def self.inner_class_types
|
34
|
+
@inner_class_types = {}
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.field_remappings
|
38
|
+
@field_remappings = {}
|
39
|
+
end
|
32
40
|
end
|
33
41
|
|
34
42
|
class BankAddress < Stripe::StripeObject
|
@@ -44,6 +52,14 @@ module Stripe
|
|
44
52
|
attr_reader :postal_code
|
45
53
|
# State, county, province, or region.
|
46
54
|
attr_reader :state
|
55
|
+
|
56
|
+
def self.inner_class_types
|
57
|
+
@inner_class_types = {}
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.field_remappings
|
61
|
+
@field_remappings = {}
|
62
|
+
end
|
47
63
|
end
|
48
64
|
# Attribute for field account_holder_address
|
49
65
|
attr_reader :account_holder_address
|
@@ -59,6 +75,17 @@ module Stripe
|
|
59
75
|
attr_reader :bank_name
|
60
76
|
# The ABA routing number
|
61
77
|
attr_reader :routing_number
|
78
|
+
|
79
|
+
def self.inner_class_types
|
80
|
+
@inner_class_types = {
|
81
|
+
account_holder_address: AccountHolderAddress,
|
82
|
+
bank_address: BankAddress,
|
83
|
+
}
|
84
|
+
end
|
85
|
+
|
86
|
+
def self.field_remappings
|
87
|
+
@field_remappings = {}
|
88
|
+
end
|
62
89
|
end
|
63
90
|
|
64
91
|
class Iban < Stripe::StripeObject
|
@@ -75,6 +102,14 @@ module Stripe
|
|
75
102
|
attr_reader :postal_code
|
76
103
|
# State, county, province, or region.
|
77
104
|
attr_reader :state
|
105
|
+
|
106
|
+
def self.inner_class_types
|
107
|
+
@inner_class_types = {}
|
108
|
+
end
|
109
|
+
|
110
|
+
def self.field_remappings
|
111
|
+
@field_remappings = {}
|
112
|
+
end
|
78
113
|
end
|
79
114
|
|
80
115
|
class BankAddress < Stripe::StripeObject
|
@@ -90,6 +125,14 @@ module Stripe
|
|
90
125
|
attr_reader :postal_code
|
91
126
|
# State, county, province, or region.
|
92
127
|
attr_reader :state
|
128
|
+
|
129
|
+
def self.inner_class_types
|
130
|
+
@inner_class_types = {}
|
131
|
+
end
|
132
|
+
|
133
|
+
def self.field_remappings
|
134
|
+
@field_remappings = {}
|
135
|
+
end
|
93
136
|
end
|
94
137
|
# Attribute for field account_holder_address
|
95
138
|
attr_reader :account_holder_address
|
@@ -103,6 +146,17 @@ module Stripe
|
|
103
146
|
attr_reader :country
|
104
147
|
# The IBAN of the account.
|
105
148
|
attr_reader :iban
|
149
|
+
|
150
|
+
def self.inner_class_types
|
151
|
+
@inner_class_types = {
|
152
|
+
account_holder_address: AccountHolderAddress,
|
153
|
+
bank_address: BankAddress,
|
154
|
+
}
|
155
|
+
end
|
156
|
+
|
157
|
+
def self.field_remappings
|
158
|
+
@field_remappings = {}
|
159
|
+
end
|
106
160
|
end
|
107
161
|
|
108
162
|
class SortCode < Stripe::StripeObject
|
@@ -119,6 +173,14 @@ module Stripe
|
|
119
173
|
attr_reader :postal_code
|
120
174
|
# State, county, province, or region.
|
121
175
|
attr_reader :state
|
176
|
+
|
177
|
+
def self.inner_class_types
|
178
|
+
@inner_class_types = {}
|
179
|
+
end
|
180
|
+
|
181
|
+
def self.field_remappings
|
182
|
+
@field_remappings = {}
|
183
|
+
end
|
122
184
|
end
|
123
185
|
|
124
186
|
class BankAddress < Stripe::StripeObject
|
@@ -134,6 +196,14 @@ module Stripe
|
|
134
196
|
attr_reader :postal_code
|
135
197
|
# State, county, province, or region.
|
136
198
|
attr_reader :state
|
199
|
+
|
200
|
+
def self.inner_class_types
|
201
|
+
@inner_class_types = {}
|
202
|
+
end
|
203
|
+
|
204
|
+
def self.field_remappings
|
205
|
+
@field_remappings = {}
|
206
|
+
end
|
137
207
|
end
|
138
208
|
# Attribute for field account_holder_address
|
139
209
|
attr_reader :account_holder_address
|
@@ -145,6 +215,17 @@ module Stripe
|
|
145
215
|
attr_reader :bank_address
|
146
216
|
# The six-digit sort code
|
147
217
|
attr_reader :sort_code
|
218
|
+
|
219
|
+
def self.inner_class_types
|
220
|
+
@inner_class_types = {
|
221
|
+
account_holder_address: AccountHolderAddress,
|
222
|
+
bank_address: BankAddress,
|
223
|
+
}
|
224
|
+
end
|
225
|
+
|
226
|
+
def self.field_remappings
|
227
|
+
@field_remappings = {}
|
228
|
+
end
|
148
229
|
end
|
149
230
|
|
150
231
|
class Spei < Stripe::StripeObject
|
@@ -161,6 +242,14 @@ module Stripe
|
|
161
242
|
attr_reader :postal_code
|
162
243
|
# State, county, province, or region.
|
163
244
|
attr_reader :state
|
245
|
+
|
246
|
+
def self.inner_class_types
|
247
|
+
@inner_class_types = {}
|
248
|
+
end
|
249
|
+
|
250
|
+
def self.field_remappings
|
251
|
+
@field_remappings = {}
|
252
|
+
end
|
164
253
|
end
|
165
254
|
|
166
255
|
class BankAddress < Stripe::StripeObject
|
@@ -176,6 +265,14 @@ module Stripe
|
|
176
265
|
attr_reader :postal_code
|
177
266
|
# State, county, province, or region.
|
178
267
|
attr_reader :state
|
268
|
+
|
269
|
+
def self.inner_class_types
|
270
|
+
@inner_class_types = {}
|
271
|
+
end
|
272
|
+
|
273
|
+
def self.field_remappings
|
274
|
+
@field_remappings = {}
|
275
|
+
end
|
179
276
|
end
|
180
277
|
# Attribute for field account_holder_address
|
181
278
|
attr_reader :account_holder_address
|
@@ -189,6 +286,17 @@ module Stripe
|
|
189
286
|
attr_reader :bank_name
|
190
287
|
# The CLABE number
|
191
288
|
attr_reader :clabe
|
289
|
+
|
290
|
+
def self.inner_class_types
|
291
|
+
@inner_class_types = {
|
292
|
+
account_holder_address: AccountHolderAddress,
|
293
|
+
bank_address: BankAddress,
|
294
|
+
}
|
295
|
+
end
|
296
|
+
|
297
|
+
def self.field_remappings
|
298
|
+
@field_remappings = {}
|
299
|
+
end
|
192
300
|
end
|
193
301
|
|
194
302
|
class Swift < Stripe::StripeObject
|
@@ -205,6 +313,14 @@ module Stripe
|
|
205
313
|
attr_reader :postal_code
|
206
314
|
# State, county, province, or region.
|
207
315
|
attr_reader :state
|
316
|
+
|
317
|
+
def self.inner_class_types
|
318
|
+
@inner_class_types = {}
|
319
|
+
end
|
320
|
+
|
321
|
+
def self.field_remappings
|
322
|
+
@field_remappings = {}
|
323
|
+
end
|
208
324
|
end
|
209
325
|
|
210
326
|
class BankAddress < Stripe::StripeObject
|
@@ -220,6 +336,14 @@ module Stripe
|
|
220
336
|
attr_reader :postal_code
|
221
337
|
# State, county, province, or region.
|
222
338
|
attr_reader :state
|
339
|
+
|
340
|
+
def self.inner_class_types
|
341
|
+
@inner_class_types = {}
|
342
|
+
end
|
343
|
+
|
344
|
+
def self.field_remappings
|
345
|
+
@field_remappings = {}
|
346
|
+
end
|
223
347
|
end
|
224
348
|
# Attribute for field account_holder_address
|
225
349
|
attr_reader :account_holder_address
|
@@ -235,6 +359,17 @@ module Stripe
|
|
235
359
|
attr_reader :bank_name
|
236
360
|
# The SWIFT code
|
237
361
|
attr_reader :swift_code
|
362
|
+
|
363
|
+
def self.inner_class_types
|
364
|
+
@inner_class_types = {
|
365
|
+
account_holder_address: AccountHolderAddress,
|
366
|
+
bank_address: BankAddress,
|
367
|
+
}
|
368
|
+
end
|
369
|
+
|
370
|
+
def self.field_remappings
|
371
|
+
@field_remappings = {}
|
372
|
+
end
|
238
373
|
end
|
239
374
|
|
240
375
|
class Zengin < Stripe::StripeObject
|
@@ -251,6 +386,14 @@ module Stripe
|
|
251
386
|
attr_reader :postal_code
|
252
387
|
# State, county, province, or region.
|
253
388
|
attr_reader :state
|
389
|
+
|
390
|
+
def self.inner_class_types
|
391
|
+
@inner_class_types = {}
|
392
|
+
end
|
393
|
+
|
394
|
+
def self.field_remappings
|
395
|
+
@field_remappings = {}
|
396
|
+
end
|
254
397
|
end
|
255
398
|
|
256
399
|
class BankAddress < Stripe::StripeObject
|
@@ -266,6 +409,14 @@ module Stripe
|
|
266
409
|
attr_reader :postal_code
|
267
410
|
# State, county, province, or region.
|
268
411
|
attr_reader :state
|
412
|
+
|
413
|
+
def self.inner_class_types
|
414
|
+
@inner_class_types = {}
|
415
|
+
end
|
416
|
+
|
417
|
+
def self.field_remappings
|
418
|
+
@field_remappings = {}
|
419
|
+
end
|
269
420
|
end
|
270
421
|
# Attribute for field account_holder_address
|
271
422
|
attr_reader :account_holder_address
|
@@ -285,6 +436,17 @@ module Stripe
|
|
285
436
|
attr_reader :branch_code
|
286
437
|
# The branch name of the account
|
287
438
|
attr_reader :branch_name
|
439
|
+
|
440
|
+
def self.inner_class_types
|
441
|
+
@inner_class_types = {
|
442
|
+
account_holder_address: AccountHolderAddress,
|
443
|
+
bank_address: BankAddress,
|
444
|
+
}
|
445
|
+
end
|
446
|
+
|
447
|
+
def self.field_remappings
|
448
|
+
@field_remappings = {}
|
449
|
+
end
|
288
450
|
end
|
289
451
|
# ABA Records contain U.S. bank account details per the ABA format.
|
290
452
|
attr_reader :aba
|
@@ -302,6 +464,21 @@ module Stripe
|
|
302
464
|
attr_reader :type
|
303
465
|
# Zengin Records contain Japan bank account details per the Zengin format.
|
304
466
|
attr_reader :zengin
|
467
|
+
|
468
|
+
def self.inner_class_types
|
469
|
+
@inner_class_types = {
|
470
|
+
aba: Aba,
|
471
|
+
iban: Iban,
|
472
|
+
sort_code: SortCode,
|
473
|
+
spei: Spei,
|
474
|
+
swift: Swift,
|
475
|
+
zengin: Zengin,
|
476
|
+
}
|
477
|
+
end
|
478
|
+
|
479
|
+
def self.field_remappings
|
480
|
+
@field_remappings = {}
|
481
|
+
end
|
305
482
|
end
|
306
483
|
# The country of the bank account to fund
|
307
484
|
attr_reader :country
|
@@ -309,6 +486,14 @@ module Stripe
|
|
309
486
|
attr_reader :financial_addresses
|
310
487
|
# The bank_transfer type
|
311
488
|
attr_reader :type
|
489
|
+
|
490
|
+
def self.inner_class_types
|
491
|
+
@inner_class_types = { financial_addresses: FinancialAddress }
|
492
|
+
end
|
493
|
+
|
494
|
+
def self.field_remappings
|
495
|
+
@field_remappings = {}
|
496
|
+
end
|
312
497
|
end
|
313
498
|
# Attribute for field bank_transfer
|
314
499
|
attr_reader :bank_transfer
|
@@ -328,5 +513,13 @@ module Stripe
|
|
328
513
|
end
|
329
514
|
"#{Customer.resource_url}/#{CGI.escape(customer)}/funding_instructions" + "/#{CGI.escape(id)}"
|
330
515
|
end
|
516
|
+
|
517
|
+
def self.inner_class_types
|
518
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
519
|
+
end
|
520
|
+
|
521
|
+
def self.field_remappings
|
522
|
+
@field_remappings = {}
|
523
|
+
end
|
331
524
|
end
|
332
525
|
end
|
@@ -29,11 +29,27 @@ module Stripe
|
|
29
29
|
attr_reader :reference_rate
|
30
30
|
# The reference rate provider.
|
31
31
|
attr_reader :reference_rate_provider
|
32
|
+
|
33
|
+
def self.inner_class_types
|
34
|
+
@inner_class_types = {}
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.field_remappings
|
38
|
+
@field_remappings = {}
|
39
|
+
end
|
32
40
|
end
|
33
41
|
# The rate that includes the FX fee rate.
|
34
42
|
attr_reader :exchange_rate
|
35
43
|
# Attribute for field rate_details
|
36
44
|
attr_reader :rate_details
|
45
|
+
|
46
|
+
def self.inner_class_types
|
47
|
+
@inner_class_types = { rate_details: RateDetails }
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.field_remappings
|
51
|
+
@field_remappings = {}
|
52
|
+
end
|
37
53
|
end
|
38
54
|
|
39
55
|
class Usage < Stripe::StripeObject
|
@@ -46,6 +62,14 @@ module Stripe
|
|
46
62
|
#
|
47
63
|
# This field must match the account ID that would be used in the PaymentIntent’s on_behalf_of field.
|
48
64
|
attr_reader :on_behalf_of
|
65
|
+
|
66
|
+
def self.inner_class_types
|
67
|
+
@inner_class_types = {}
|
68
|
+
end
|
69
|
+
|
70
|
+
def self.field_remappings
|
71
|
+
@field_remappings = {}
|
72
|
+
end
|
49
73
|
end
|
50
74
|
|
51
75
|
class Transfer < Stripe::StripeObject
|
@@ -53,6 +77,14 @@ module Stripe
|
|
53
77
|
#
|
54
78
|
# This field should match the account ID that would be used in the Transfer’s destination field.
|
55
79
|
attr_reader :destination
|
80
|
+
|
81
|
+
def self.inner_class_types
|
82
|
+
@inner_class_types = {}
|
83
|
+
end
|
84
|
+
|
85
|
+
def self.field_remappings
|
86
|
+
@field_remappings = {}
|
87
|
+
end
|
56
88
|
end
|
57
89
|
# The details required to use an FX Quote for a payment
|
58
90
|
attr_reader :payment
|
@@ -62,6 +94,14 @@ module Stripe
|
|
62
94
|
#
|
63
95
|
# Can be 'payment' or 'transfer'.
|
64
96
|
attr_reader :type
|
97
|
+
|
98
|
+
def self.inner_class_types
|
99
|
+
@inner_class_types = { payment: Payment, transfer: Transfer }
|
100
|
+
end
|
101
|
+
|
102
|
+
def self.field_remappings
|
103
|
+
@field_remappings = {}
|
104
|
+
end
|
65
105
|
end
|
66
106
|
|
67
107
|
class ListParams < Stripe::RequestParams
|
@@ -182,5 +222,13 @@ module Stripe
|
|
182
222
|
def self.list(params = {}, opts = {})
|
183
223
|
request_stripe_object(method: :get, path: "/v1/fx_quotes", params: params, opts: opts)
|
184
224
|
end
|
225
|
+
|
226
|
+
def self.inner_class_types
|
227
|
+
@inner_class_types = { rates: Rates, usage: Usage }
|
228
|
+
end
|
229
|
+
|
230
|
+
def self.field_remappings
|
231
|
+
@field_remappings = {}
|
232
|
+
end
|
185
233
|
end
|
186
234
|
end
|
@@ -36,6 +36,14 @@ module Stripe
|
|
36
36
|
attr_reader :postal_code
|
37
37
|
# State, county, province, or region.
|
38
38
|
attr_reader :state
|
39
|
+
|
40
|
+
def self.inner_class_types
|
41
|
+
@inner_class_types = {}
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.field_remappings
|
45
|
+
@field_remappings = {}
|
46
|
+
end
|
39
47
|
end
|
40
48
|
|
41
49
|
class Dob < Stripe::StripeObject
|
@@ -45,6 +53,14 @@ module Stripe
|
|
45
53
|
attr_reader :month
|
46
54
|
# The four-digit year.
|
47
55
|
attr_reader :year
|
56
|
+
|
57
|
+
def self.inner_class_types
|
58
|
+
@inner_class_types = {}
|
59
|
+
end
|
60
|
+
|
61
|
+
def self.field_remappings
|
62
|
+
@field_remappings = {}
|
63
|
+
end
|
48
64
|
end
|
49
65
|
|
50
66
|
class Error < Stripe::StripeObject
|
@@ -52,6 +68,14 @@ module Stripe
|
|
52
68
|
attr_reader :code
|
53
69
|
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
54
70
|
attr_reader :reason
|
71
|
+
|
72
|
+
def self.inner_class_types
|
73
|
+
@inner_class_types = {}
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.field_remappings
|
77
|
+
@field_remappings = {}
|
78
|
+
end
|
55
79
|
end
|
56
80
|
|
57
81
|
class ExpirationDate < Stripe::StripeObject
|
@@ -61,6 +85,14 @@ module Stripe
|
|
61
85
|
attr_reader :month
|
62
86
|
# The four-digit year.
|
63
87
|
attr_reader :year
|
88
|
+
|
89
|
+
def self.inner_class_types
|
90
|
+
@inner_class_types = {}
|
91
|
+
end
|
92
|
+
|
93
|
+
def self.field_remappings
|
94
|
+
@field_remappings = {}
|
95
|
+
end
|
64
96
|
end
|
65
97
|
|
66
98
|
class IssuedDate < Stripe::StripeObject
|
@@ -70,6 +102,14 @@ module Stripe
|
|
70
102
|
attr_reader :month
|
71
103
|
# The four-digit year.
|
72
104
|
attr_reader :year
|
105
|
+
|
106
|
+
def self.inner_class_types
|
107
|
+
@inner_class_types = {}
|
108
|
+
end
|
109
|
+
|
110
|
+
def self.field_remappings
|
111
|
+
@field_remappings = {}
|
112
|
+
end
|
73
113
|
end
|
74
114
|
# Address as it appears in the document.
|
75
115
|
attr_reader :address
|
@@ -101,6 +141,20 @@ module Stripe
|
|
101
141
|
attr_reader :unparsed_place_of_birth
|
102
142
|
# Sex as it appears in the document.
|
103
143
|
attr_reader :unparsed_sex
|
144
|
+
|
145
|
+
def self.inner_class_types
|
146
|
+
@inner_class_types = {
|
147
|
+
address: Address,
|
148
|
+
dob: Dob,
|
149
|
+
error: Error,
|
150
|
+
expiration_date: ExpirationDate,
|
151
|
+
issued_date: IssuedDate,
|
152
|
+
}
|
153
|
+
end
|
154
|
+
|
155
|
+
def self.field_remappings
|
156
|
+
@field_remappings = {}
|
157
|
+
end
|
104
158
|
end
|
105
159
|
|
106
160
|
class Email < Stripe::StripeObject
|
@@ -109,6 +163,14 @@ module Stripe
|
|
109
163
|
attr_reader :code
|
110
164
|
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
111
165
|
attr_reader :reason
|
166
|
+
|
167
|
+
def self.inner_class_types
|
168
|
+
@inner_class_types = {}
|
169
|
+
end
|
170
|
+
|
171
|
+
def self.field_remappings
|
172
|
+
@field_remappings = {}
|
173
|
+
end
|
112
174
|
end
|
113
175
|
# Email to be verified.
|
114
176
|
attr_reader :email
|
@@ -116,6 +178,14 @@ module Stripe
|
|
116
178
|
attr_reader :error
|
117
179
|
# Status of this `email` check.
|
118
180
|
attr_reader :status
|
181
|
+
|
182
|
+
def self.inner_class_types
|
183
|
+
@inner_class_types = { error: Error }
|
184
|
+
end
|
185
|
+
|
186
|
+
def self.field_remappings
|
187
|
+
@field_remappings = {}
|
188
|
+
end
|
119
189
|
end
|
120
190
|
|
121
191
|
class IdNumber < Stripe::StripeObject
|
@@ -126,6 +196,14 @@ module Stripe
|
|
126
196
|
attr_reader :month
|
127
197
|
# The four-digit year.
|
128
198
|
attr_reader :year
|
199
|
+
|
200
|
+
def self.inner_class_types
|
201
|
+
@inner_class_types = {}
|
202
|
+
end
|
203
|
+
|
204
|
+
def self.field_remappings
|
205
|
+
@field_remappings = {}
|
206
|
+
end
|
129
207
|
end
|
130
208
|
|
131
209
|
class Error < Stripe::StripeObject
|
@@ -133,6 +211,14 @@ module Stripe
|
|
133
211
|
attr_reader :code
|
134
212
|
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
135
213
|
attr_reader :reason
|
214
|
+
|
215
|
+
def self.inner_class_types
|
216
|
+
@inner_class_types = {}
|
217
|
+
end
|
218
|
+
|
219
|
+
def self.field_remappings
|
220
|
+
@field_remappings = {}
|
221
|
+
end
|
136
222
|
end
|
137
223
|
# Date of birth.
|
138
224
|
attr_reader :dob
|
@@ -148,6 +234,14 @@ module Stripe
|
|
148
234
|
attr_reader :last_name
|
149
235
|
# Status of this `id_number` check.
|
150
236
|
attr_reader :status
|
237
|
+
|
238
|
+
def self.inner_class_types
|
239
|
+
@inner_class_types = { dob: Dob, error: Error }
|
240
|
+
end
|
241
|
+
|
242
|
+
def self.field_remappings
|
243
|
+
@field_remappings = {}
|
244
|
+
end
|
151
245
|
end
|
152
246
|
|
153
247
|
class Options < Stripe::StripeObject
|
@@ -160,13 +254,37 @@ module Stripe
|
|
160
254
|
attr_reader :require_live_capture
|
161
255
|
# Capture a face image and perform a [selfie check](https://stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user’s face. [Learn more](https://stripe.com/docs/identity/selfie).
|
162
256
|
attr_reader :require_matching_selfie
|
257
|
+
|
258
|
+
def self.inner_class_types
|
259
|
+
@inner_class_types = {}
|
260
|
+
end
|
261
|
+
|
262
|
+
def self.field_remappings
|
263
|
+
@field_remappings = {}
|
264
|
+
end
|
163
265
|
end
|
164
266
|
|
165
|
-
class IdNumber < Stripe::StripeObject
|
267
|
+
class IdNumber < Stripe::StripeObject
|
268
|
+
def self.inner_class_types
|
269
|
+
@inner_class_types = {}
|
270
|
+
end
|
271
|
+
|
272
|
+
def self.field_remappings
|
273
|
+
@field_remappings = {}
|
274
|
+
end
|
275
|
+
end
|
166
276
|
# Attribute for field document
|
167
277
|
attr_reader :document
|
168
278
|
# Attribute for field id_number
|
169
279
|
attr_reader :id_number
|
280
|
+
|
281
|
+
def self.inner_class_types
|
282
|
+
@inner_class_types = { document: Document, id_number: IdNumber }
|
283
|
+
end
|
284
|
+
|
285
|
+
def self.field_remappings
|
286
|
+
@field_remappings = {}
|
287
|
+
end
|
170
288
|
end
|
171
289
|
|
172
290
|
class Phone < Stripe::StripeObject
|
@@ -175,6 +293,14 @@ module Stripe
|
|
175
293
|
attr_reader :code
|
176
294
|
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
177
295
|
attr_reader :reason
|
296
|
+
|
297
|
+
def self.inner_class_types
|
298
|
+
@inner_class_types = {}
|
299
|
+
end
|
300
|
+
|
301
|
+
def self.field_remappings
|
302
|
+
@field_remappings = {}
|
303
|
+
end
|
178
304
|
end
|
179
305
|
# Details on the verification error. Present when status is `unverified`.
|
180
306
|
attr_reader :error
|
@@ -182,6 +308,14 @@ module Stripe
|
|
182
308
|
attr_reader :phone
|
183
309
|
# Status of this `phone` check.
|
184
310
|
attr_reader :status
|
311
|
+
|
312
|
+
def self.inner_class_types
|
313
|
+
@inner_class_types = { error: Error }
|
314
|
+
end
|
315
|
+
|
316
|
+
def self.field_remappings
|
317
|
+
@field_remappings = {}
|
318
|
+
end
|
185
319
|
end
|
186
320
|
|
187
321
|
class Selfie < Stripe::StripeObject
|
@@ -190,6 +324,14 @@ module Stripe
|
|
190
324
|
attr_reader :code
|
191
325
|
# A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
192
326
|
attr_reader :reason
|
327
|
+
|
328
|
+
def self.inner_class_types
|
329
|
+
@inner_class_types = {}
|
330
|
+
end
|
331
|
+
|
332
|
+
def self.field_remappings
|
333
|
+
@field_remappings = {}
|
334
|
+
end
|
193
335
|
end
|
194
336
|
# ID of the [File](https://stripe.com/docs/api/files) holding the image of the identity document used in this check.
|
195
337
|
attr_reader :document
|
@@ -199,6 +341,14 @@ module Stripe
|
|
199
341
|
attr_reader :selfie
|
200
342
|
# Status of this `selfie` check.
|
201
343
|
attr_reader :status
|
344
|
+
|
345
|
+
def self.inner_class_types
|
346
|
+
@inner_class_types = { error: Error }
|
347
|
+
end
|
348
|
+
|
349
|
+
def self.field_remappings
|
350
|
+
@field_remappings = {}
|
351
|
+
end
|
202
352
|
end
|
203
353
|
|
204
354
|
class ListParams < Stripe::RequestParams
|
@@ -294,6 +444,21 @@ module Stripe
|
|
294
444
|
opts: opts
|
295
445
|
)
|
296
446
|
end
|
447
|
+
|
448
|
+
def self.inner_class_types
|
449
|
+
@inner_class_types = {
|
450
|
+
document: Document,
|
451
|
+
email: Email,
|
452
|
+
id_number: IdNumber,
|
453
|
+
options: Options,
|
454
|
+
phone: Phone,
|
455
|
+
selfie: Selfie,
|
456
|
+
}
|
457
|
+
end
|
458
|
+
|
459
|
+
def self.field_remappings
|
460
|
+
@field_remappings = {}
|
461
|
+
end
|
297
462
|
end
|
298
463
|
end
|
299
464
|
end
|