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
@@ -41,6 +41,14 @@ module Stripe
|
|
41
41
|
attr_reader :routing_number
|
42
42
|
# Attribute for field swift_code
|
43
43
|
attr_reader :swift_code
|
44
|
+
|
45
|
+
def self.inner_class_types
|
46
|
+
@inner_class_types = {}
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.field_remappings
|
50
|
+
@field_remappings = {}
|
51
|
+
end
|
44
52
|
end
|
45
53
|
|
46
54
|
class AchDebit < Stripe::StripeObject
|
@@ -56,6 +64,14 @@ module Stripe
|
|
56
64
|
attr_reader :routing_number
|
57
65
|
# Attribute for field type
|
58
66
|
attr_reader :type
|
67
|
+
|
68
|
+
def self.inner_class_types
|
69
|
+
@inner_class_types = {}
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.field_remappings
|
73
|
+
@field_remappings = {}
|
74
|
+
end
|
59
75
|
end
|
60
76
|
|
61
77
|
class AcssDebit < Stripe::StripeObject
|
@@ -79,6 +95,14 @@ module Stripe
|
|
79
95
|
attr_reader :last4
|
80
96
|
# Attribute for field routing_number
|
81
97
|
attr_reader :routing_number
|
98
|
+
|
99
|
+
def self.inner_class_types
|
100
|
+
@inner_class_types = {}
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.field_remappings
|
104
|
+
@field_remappings = {}
|
105
|
+
end
|
82
106
|
end
|
83
107
|
|
84
108
|
class Alipay < Stripe::StripeObject
|
@@ -88,6 +112,14 @@ module Stripe
|
|
88
112
|
attr_reader :native_url
|
89
113
|
# Attribute for field statement_descriptor
|
90
114
|
attr_reader :statement_descriptor
|
115
|
+
|
116
|
+
def self.inner_class_types
|
117
|
+
@inner_class_types = {}
|
118
|
+
end
|
119
|
+
|
120
|
+
def self.field_remappings
|
121
|
+
@field_remappings = {}
|
122
|
+
end
|
91
123
|
end
|
92
124
|
|
93
125
|
class AuBecsDebit < Stripe::StripeObject
|
@@ -97,6 +129,14 @@ module Stripe
|
|
97
129
|
attr_reader :fingerprint
|
98
130
|
# Attribute for field last4
|
99
131
|
attr_reader :last4
|
132
|
+
|
133
|
+
def self.inner_class_types
|
134
|
+
@inner_class_types = {}
|
135
|
+
end
|
136
|
+
|
137
|
+
def self.field_remappings
|
138
|
+
@field_remappings = {}
|
139
|
+
end
|
100
140
|
end
|
101
141
|
|
102
142
|
class Bancontact < Stripe::StripeObject
|
@@ -112,6 +152,14 @@ module Stripe
|
|
112
152
|
attr_reader :preferred_language
|
113
153
|
# Attribute for field statement_descriptor
|
114
154
|
attr_reader :statement_descriptor
|
155
|
+
|
156
|
+
def self.inner_class_types
|
157
|
+
@inner_class_types = {}
|
158
|
+
end
|
159
|
+
|
160
|
+
def self.field_remappings
|
161
|
+
@field_remappings = {}
|
162
|
+
end
|
115
163
|
end
|
116
164
|
|
117
165
|
class Card < Stripe::StripeObject
|
@@ -151,6 +199,14 @@ module Stripe
|
|
151
199
|
attr_reader :three_d_secure
|
152
200
|
# Attribute for field tokenization_method
|
153
201
|
attr_reader :tokenization_method
|
202
|
+
|
203
|
+
def self.inner_class_types
|
204
|
+
@inner_class_types = {}
|
205
|
+
end
|
206
|
+
|
207
|
+
def self.field_remappings
|
208
|
+
@field_remappings = {}
|
209
|
+
end
|
154
210
|
end
|
155
211
|
|
156
212
|
class CardPresent < Stripe::StripeObject
|
@@ -208,6 +264,14 @@ module Stripe
|
|
208
264
|
attr_reader :terminal_verification_results
|
209
265
|
# Attribute for field transaction_status_information
|
210
266
|
attr_reader :transaction_status_information
|
267
|
+
|
268
|
+
def self.inner_class_types
|
269
|
+
@inner_class_types = {}
|
270
|
+
end
|
271
|
+
|
272
|
+
def self.field_remappings
|
273
|
+
@field_remappings = {}
|
274
|
+
end
|
211
275
|
end
|
212
276
|
|
213
277
|
class CodeVerification < Stripe::StripeObject
|
@@ -215,6 +279,14 @@ module Stripe
|
|
215
279
|
attr_reader :attempts_remaining
|
216
280
|
# The status of the code verification, either `pending` (awaiting verification, `attempts_remaining` should be greater than 0), `succeeded` (successful verification) or `failed` (failed verification, cannot be verified anymore as `attempts_remaining` should be 0).
|
217
281
|
attr_reader :status
|
282
|
+
|
283
|
+
def self.inner_class_types
|
284
|
+
@inner_class_types = {}
|
285
|
+
end
|
286
|
+
|
287
|
+
def self.field_remappings
|
288
|
+
@field_remappings = {}
|
289
|
+
end
|
218
290
|
end
|
219
291
|
|
220
292
|
class Eps < Stripe::StripeObject
|
@@ -222,6 +294,14 @@ module Stripe
|
|
222
294
|
attr_reader :reference
|
223
295
|
# Attribute for field statement_descriptor
|
224
296
|
attr_reader :statement_descriptor
|
297
|
+
|
298
|
+
def self.inner_class_types
|
299
|
+
@inner_class_types = {}
|
300
|
+
end
|
301
|
+
|
302
|
+
def self.field_remappings
|
303
|
+
@field_remappings = {}
|
304
|
+
end
|
225
305
|
end
|
226
306
|
|
227
307
|
class Giropay < Stripe::StripeObject
|
@@ -233,6 +313,14 @@ module Stripe
|
|
233
313
|
attr_reader :bic
|
234
314
|
# Attribute for field statement_descriptor
|
235
315
|
attr_reader :statement_descriptor
|
316
|
+
|
317
|
+
def self.inner_class_types
|
318
|
+
@inner_class_types = {}
|
319
|
+
end
|
320
|
+
|
321
|
+
def self.field_remappings
|
322
|
+
@field_remappings = {}
|
323
|
+
end
|
236
324
|
end
|
237
325
|
|
238
326
|
class Ideal < Stripe::StripeObject
|
@@ -244,6 +332,14 @@ module Stripe
|
|
244
332
|
attr_reader :iban_last4
|
245
333
|
# Attribute for field statement_descriptor
|
246
334
|
attr_reader :statement_descriptor
|
335
|
+
|
336
|
+
def self.inner_class_types
|
337
|
+
@inner_class_types = {}
|
338
|
+
end
|
339
|
+
|
340
|
+
def self.field_remappings
|
341
|
+
@field_remappings = {}
|
342
|
+
end
|
247
343
|
end
|
248
344
|
|
249
345
|
class Klarna < Stripe::StripeObject
|
@@ -299,6 +395,14 @@ module Stripe
|
|
299
395
|
attr_reader :shipping_first_name
|
300
396
|
# Attribute for field shipping_last_name
|
301
397
|
attr_reader :shipping_last_name
|
398
|
+
|
399
|
+
def self.inner_class_types
|
400
|
+
@inner_class_types = {}
|
401
|
+
end
|
402
|
+
|
403
|
+
def self.field_remappings
|
404
|
+
@field_remappings = {}
|
405
|
+
end
|
302
406
|
end
|
303
407
|
|
304
408
|
class Multibanco < Stripe::StripeObject
|
@@ -322,6 +426,14 @@ module Stripe
|
|
322
426
|
attr_reader :refund_account_holder_name
|
323
427
|
# Attribute for field refund_iban
|
324
428
|
attr_reader :refund_iban
|
429
|
+
|
430
|
+
def self.inner_class_types
|
431
|
+
@inner_class_types = {}
|
432
|
+
end
|
433
|
+
|
434
|
+
def self.field_remappings
|
435
|
+
@field_remappings = {}
|
436
|
+
end
|
325
437
|
end
|
326
438
|
|
327
439
|
class Owner < Stripe::StripeObject
|
@@ -338,6 +450,14 @@ module Stripe
|
|
338
450
|
attr_reader :postal_code
|
339
451
|
# State, county, province, or region.
|
340
452
|
attr_reader :state
|
453
|
+
|
454
|
+
def self.inner_class_types
|
455
|
+
@inner_class_types = {}
|
456
|
+
end
|
457
|
+
|
458
|
+
def self.field_remappings
|
459
|
+
@field_remappings = {}
|
460
|
+
end
|
341
461
|
end
|
342
462
|
|
343
463
|
class VerifiedAddress < Stripe::StripeObject
|
@@ -353,6 +473,14 @@ module Stripe
|
|
353
473
|
attr_reader :postal_code
|
354
474
|
# State, county, province, or region.
|
355
475
|
attr_reader :state
|
476
|
+
|
477
|
+
def self.inner_class_types
|
478
|
+
@inner_class_types = {}
|
479
|
+
end
|
480
|
+
|
481
|
+
def self.field_remappings
|
482
|
+
@field_remappings = {}
|
483
|
+
end
|
356
484
|
end
|
357
485
|
# Owner's address.
|
358
486
|
attr_reader :address
|
@@ -370,11 +498,27 @@ module Stripe
|
|
370
498
|
attr_reader :verified_name
|
371
499
|
# Verified owner's phone number (including extension). Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
372
500
|
attr_reader :verified_phone
|
501
|
+
|
502
|
+
def self.inner_class_types
|
503
|
+
@inner_class_types = { address: Address, verified_address: VerifiedAddress }
|
504
|
+
end
|
505
|
+
|
506
|
+
def self.field_remappings
|
507
|
+
@field_remappings = {}
|
508
|
+
end
|
373
509
|
end
|
374
510
|
|
375
511
|
class P24 < Stripe::StripeObject
|
376
512
|
# Attribute for field reference
|
377
513
|
attr_reader :reference
|
514
|
+
|
515
|
+
def self.inner_class_types
|
516
|
+
@inner_class_types = {}
|
517
|
+
end
|
518
|
+
|
519
|
+
def self.field_remappings
|
520
|
+
@field_remappings = {}
|
521
|
+
end
|
378
522
|
end
|
379
523
|
|
380
524
|
class Paypal < Stripe::StripeObject
|
@@ -396,6 +540,14 @@ module Stripe
|
|
396
540
|
attr_reader :transaction_id
|
397
541
|
# Attribute for field verified_email
|
398
542
|
attr_reader :verified_email
|
543
|
+
|
544
|
+
def self.inner_class_types
|
545
|
+
@inner_class_types = {}
|
546
|
+
end
|
547
|
+
|
548
|
+
def self.field_remappings
|
549
|
+
@field_remappings = {}
|
550
|
+
end
|
399
551
|
end
|
400
552
|
|
401
553
|
class Receiver < Stripe::StripeObject
|
@@ -411,6 +563,14 @@ module Stripe
|
|
411
563
|
attr_reader :refund_attributes_method
|
412
564
|
# Type of refund attribute status, one of `missing`, `requested`, or `available`.
|
413
565
|
attr_reader :refund_attributes_status
|
566
|
+
|
567
|
+
def self.inner_class_types
|
568
|
+
@inner_class_types = {}
|
569
|
+
end
|
570
|
+
|
571
|
+
def self.field_remappings
|
572
|
+
@field_remappings = {}
|
573
|
+
end
|
414
574
|
end
|
415
575
|
|
416
576
|
class Redirect < Stripe::StripeObject
|
@@ -422,6 +582,14 @@ module Stripe
|
|
422
582
|
attr_reader :status
|
423
583
|
# The URL provided to you to redirect a customer to as part of a `redirect` authentication flow.
|
424
584
|
attr_reader :url
|
585
|
+
|
586
|
+
def self.inner_class_types
|
587
|
+
@inner_class_types = {}
|
588
|
+
end
|
589
|
+
|
590
|
+
def self.field_remappings
|
591
|
+
@field_remappings = {}
|
592
|
+
end
|
425
593
|
end
|
426
594
|
|
427
595
|
class SepaCreditTransfer < Stripe::StripeObject
|
@@ -447,6 +615,14 @@ module Stripe
|
|
447
615
|
attr_reader :refund_account_holder_name
|
448
616
|
# Attribute for field refund_iban
|
449
617
|
attr_reader :refund_iban
|
618
|
+
|
619
|
+
def self.inner_class_types
|
620
|
+
@inner_class_types = {}
|
621
|
+
end
|
622
|
+
|
623
|
+
def self.field_remappings
|
624
|
+
@field_remappings = {}
|
625
|
+
end
|
450
626
|
end
|
451
627
|
|
452
628
|
class SepaDebit < Stripe::StripeObject
|
@@ -464,6 +640,14 @@ module Stripe
|
|
464
640
|
attr_reader :mandate_reference
|
465
641
|
# Attribute for field mandate_url
|
466
642
|
attr_reader :mandate_url
|
643
|
+
|
644
|
+
def self.inner_class_types
|
645
|
+
@inner_class_types = {}
|
646
|
+
end
|
647
|
+
|
648
|
+
def self.field_remappings
|
649
|
+
@field_remappings = {}
|
650
|
+
end
|
467
651
|
end
|
468
652
|
|
469
653
|
class Sofort < Stripe::StripeObject
|
@@ -481,6 +665,14 @@ module Stripe
|
|
481
665
|
attr_reader :preferred_language
|
482
666
|
# Attribute for field statement_descriptor
|
483
667
|
attr_reader :statement_descriptor
|
668
|
+
|
669
|
+
def self.inner_class_types
|
670
|
+
@inner_class_types = {}
|
671
|
+
end
|
672
|
+
|
673
|
+
def self.field_remappings
|
674
|
+
@field_remappings = {}
|
675
|
+
end
|
484
676
|
end
|
485
677
|
|
486
678
|
class SourceOrder < Stripe::StripeObject
|
@@ -497,6 +689,14 @@ module Stripe
|
|
497
689
|
attr_reader :quantity
|
498
690
|
# The type of this order item. Must be `sku`, `tax`, or `shipping`.
|
499
691
|
attr_reader :type
|
692
|
+
|
693
|
+
def self.inner_class_types
|
694
|
+
@inner_class_types = {}
|
695
|
+
end
|
696
|
+
|
697
|
+
def self.field_remappings
|
698
|
+
@field_remappings = {}
|
699
|
+
end
|
500
700
|
end
|
501
701
|
|
502
702
|
class Shipping < Stripe::StripeObject
|
@@ -513,6 +713,14 @@ module Stripe
|
|
513
713
|
attr_reader :postal_code
|
514
714
|
# State, county, province, or region.
|
515
715
|
attr_reader :state
|
716
|
+
|
717
|
+
def self.inner_class_types
|
718
|
+
@inner_class_types = {}
|
719
|
+
end
|
720
|
+
|
721
|
+
def self.field_remappings
|
722
|
+
@field_remappings = {}
|
723
|
+
end
|
516
724
|
end
|
517
725
|
# Attribute for field address
|
518
726
|
attr_reader :address
|
@@ -524,6 +732,14 @@ module Stripe
|
|
524
732
|
attr_reader :phone
|
525
733
|
# 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.
|
526
734
|
attr_reader :tracking_number
|
735
|
+
|
736
|
+
def self.inner_class_types
|
737
|
+
@inner_class_types = { address: Address }
|
738
|
+
end
|
739
|
+
|
740
|
+
def self.field_remappings
|
741
|
+
@field_remappings = {}
|
742
|
+
end
|
527
743
|
end
|
528
744
|
# A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order.
|
529
745
|
attr_reader :amount
|
@@ -535,6 +751,14 @@ module Stripe
|
|
535
751
|
attr_reader :items
|
536
752
|
# Attribute for field shipping
|
537
753
|
attr_reader :shipping
|
754
|
+
|
755
|
+
def self.inner_class_types
|
756
|
+
@inner_class_types = { items: Item, shipping: Shipping }
|
757
|
+
end
|
758
|
+
|
759
|
+
def self.field_remappings
|
760
|
+
@field_remappings = {}
|
761
|
+
end
|
538
762
|
end
|
539
763
|
|
540
764
|
class ThreeDSecure < Stripe::StripeObject
|
@@ -580,6 +804,14 @@ module Stripe
|
|
580
804
|
attr_reader :three_d_secure
|
581
805
|
# Attribute for field tokenization_method
|
582
806
|
attr_reader :tokenization_method
|
807
|
+
|
808
|
+
def self.inner_class_types
|
809
|
+
@inner_class_types = {}
|
810
|
+
end
|
811
|
+
|
812
|
+
def self.field_remappings
|
813
|
+
@field_remappings = {}
|
814
|
+
end
|
583
815
|
end
|
584
816
|
|
585
817
|
class Wechat < Stripe::StripeObject
|
@@ -589,6 +821,14 @@ module Stripe
|
|
589
821
|
attr_reader :qr_code_url
|
590
822
|
# Attribute for field statement_descriptor
|
591
823
|
attr_reader :statement_descriptor
|
824
|
+
|
825
|
+
def self.inner_class_types
|
826
|
+
@inner_class_types = {}
|
827
|
+
end
|
828
|
+
|
829
|
+
def self.field_remappings
|
830
|
+
@field_remappings = {}
|
831
|
+
end
|
592
832
|
end
|
593
833
|
|
594
834
|
class UpdateParams < Stripe::RequestParams
|
@@ -1312,5 +1552,39 @@ module Stripe
|
|
1312
1552
|
end
|
1313
1553
|
extend Gem::Deprecate
|
1314
1554
|
deprecate :source_transactions, :"Source.list_source_transactions", 2020, 1
|
1555
|
+
|
1556
|
+
def self.inner_class_types
|
1557
|
+
@inner_class_types = {
|
1558
|
+
ach_credit_transfer: AchCreditTransfer,
|
1559
|
+
ach_debit: AchDebit,
|
1560
|
+
acss_debit: AcssDebit,
|
1561
|
+
alipay: Alipay,
|
1562
|
+
au_becs_debit: AuBecsDebit,
|
1563
|
+
bancontact: Bancontact,
|
1564
|
+
card: Card,
|
1565
|
+
card_present: CardPresent,
|
1566
|
+
code_verification: CodeVerification,
|
1567
|
+
eps: Eps,
|
1568
|
+
giropay: Giropay,
|
1569
|
+
ideal: Ideal,
|
1570
|
+
klarna: Klarna,
|
1571
|
+
multibanco: Multibanco,
|
1572
|
+
owner: Owner,
|
1573
|
+
p24: P24,
|
1574
|
+
paypal: Paypal,
|
1575
|
+
receiver: Receiver,
|
1576
|
+
redirect: Redirect,
|
1577
|
+
sepa_credit_transfer: SepaCreditTransfer,
|
1578
|
+
sepa_debit: SepaDebit,
|
1579
|
+
sofort: Sofort,
|
1580
|
+
source_order: SourceOrder,
|
1581
|
+
three_d_secure: ThreeDSecure,
|
1582
|
+
wechat: Wechat,
|
1583
|
+
}
|
1584
|
+
end
|
1585
|
+
|
1586
|
+
def self.field_remappings
|
1587
|
+
@field_remappings = {}
|
1588
|
+
end
|
1315
1589
|
end
|
1316
1590
|
end
|
@@ -14,11 +14,27 @@ module Stripe
|
|
14
14
|
class AcssDebit < Stripe::StripeObject
|
15
15
|
# The statement descriptor associate with the debit.
|
16
16
|
attr_reader :statement_descriptor
|
17
|
+
|
18
|
+
def self.inner_class_types
|
19
|
+
@inner_class_types = {}
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.field_remappings
|
23
|
+
@field_remappings = {}
|
24
|
+
end
|
17
25
|
end
|
18
26
|
|
19
27
|
class BacsDebit < Stripe::StripeObject
|
20
28
|
# Last 4 digits of the account number associated with the debit.
|
21
29
|
attr_reader :last4
|
30
|
+
|
31
|
+
def self.inner_class_types
|
32
|
+
@inner_class_types = {}
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.field_remappings
|
36
|
+
@field_remappings = {}
|
37
|
+
end
|
22
38
|
end
|
23
39
|
|
24
40
|
class SepaDebit < Stripe::StripeObject
|
@@ -28,6 +44,14 @@ module Stripe
|
|
28
44
|
attr_reader :last4
|
29
45
|
# Mandate reference associated with the debit.
|
30
46
|
attr_reader :mandate_reference
|
47
|
+
|
48
|
+
def self.inner_class_types
|
49
|
+
@inner_class_types = {}
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.field_remappings
|
53
|
+
@field_remappings = {}
|
54
|
+
end
|
31
55
|
end
|
32
56
|
# Attribute for field acss_debit
|
33
57
|
attr_reader :acss_debit
|
@@ -62,5 +86,13 @@ module Stripe
|
|
62
86
|
attr_reader :status
|
63
87
|
# The type of source this mandate notification is attached to. Should be the source type identifier code for the payment method, such as `three_d_secure`.
|
64
88
|
attr_reader :type
|
89
|
+
|
90
|
+
def self.inner_class_types
|
91
|
+
@inner_class_types = { acss_debit: AcssDebit, bacs_debit: BacsDebit, sepa_debit: SepaDebit }
|
92
|
+
end
|
93
|
+
|
94
|
+
def self.field_remappings
|
95
|
+
@field_remappings = {}
|
96
|
+
end
|
65
97
|
end
|
66
98
|
end
|
@@ -21,6 +21,14 @@ module Stripe
|
|
21
21
|
attr_reader :last4
|
22
22
|
# Routing number associated with the transfer.
|
23
23
|
attr_reader :routing_number
|
24
|
+
|
25
|
+
def self.inner_class_types
|
26
|
+
@inner_class_types = {}
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.field_remappings
|
30
|
+
@field_remappings = {}
|
31
|
+
end
|
24
32
|
end
|
25
33
|
|
26
34
|
class ChfCreditTransfer < Stripe::StripeObject
|
@@ -34,6 +42,14 @@ module Stripe
|
|
34
42
|
attr_reader :sender_iban
|
35
43
|
# Sender's name.
|
36
44
|
attr_reader :sender_name
|
45
|
+
|
46
|
+
def self.inner_class_types
|
47
|
+
@inner_class_types = {}
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.field_remappings
|
51
|
+
@field_remappings = {}
|
52
|
+
end
|
37
53
|
end
|
38
54
|
|
39
55
|
class GbpCreditTransfer < Stripe::StripeObject
|
@@ -51,6 +67,14 @@ module Stripe
|
|
51
67
|
attr_reader :sender_name
|
52
68
|
# Sender sort code associated with the transfer.
|
53
69
|
attr_reader :sender_sort_code
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = {}
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
54
78
|
end
|
55
79
|
|
56
80
|
class PaperCheck < Stripe::StripeObject
|
@@ -58,6 +82,14 @@ module Stripe
|
|
58
82
|
attr_reader :available_at
|
59
83
|
# Comma-separated list of invoice IDs associated with the paper check.
|
60
84
|
attr_reader :invoices
|
85
|
+
|
86
|
+
def self.inner_class_types
|
87
|
+
@inner_class_types = {}
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.field_remappings
|
91
|
+
@field_remappings = {}
|
92
|
+
end
|
61
93
|
end
|
62
94
|
|
63
95
|
class SepaCreditTransfer < Stripe::StripeObject
|
@@ -67,6 +99,14 @@ module Stripe
|
|
67
99
|
attr_reader :sender_iban
|
68
100
|
# Sender's name.
|
69
101
|
attr_reader :sender_name
|
102
|
+
|
103
|
+
def self.inner_class_types
|
104
|
+
@inner_class_types = {}
|
105
|
+
end
|
106
|
+
|
107
|
+
def self.field_remappings
|
108
|
+
@field_remappings = {}
|
109
|
+
end
|
70
110
|
end
|
71
111
|
# Attribute for field ach_credit_transfer
|
72
112
|
attr_reader :ach_credit_transfer
|
@@ -96,5 +136,19 @@ module Stripe
|
|
96
136
|
attr_reader :status
|
97
137
|
# The type of source this transaction is attached to.
|
98
138
|
attr_reader :type
|
139
|
+
|
140
|
+
def self.inner_class_types
|
141
|
+
@inner_class_types = {
|
142
|
+
ach_credit_transfer: AchCreditTransfer,
|
143
|
+
chf_credit_transfer: ChfCreditTransfer,
|
144
|
+
gbp_credit_transfer: GbpCreditTransfer,
|
145
|
+
paper_check: PaperCheck,
|
146
|
+
sepa_credit_transfer: SepaCreditTransfer,
|
147
|
+
}
|
148
|
+
end
|
149
|
+
|
150
|
+
def self.field_remappings
|
151
|
+
@field_remappings = {}
|
152
|
+
end
|
99
153
|
end
|
100
154
|
end
|