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
@@ -25,6 +25,14 @@ module Stripe
|
|
25
25
|
attr_reader :status
|
26
26
|
# The trace ID value if `trace_id.status` is `supported`, otherwise `nil`.
|
27
27
|
attr_reader :value
|
28
|
+
|
29
|
+
def self.inner_class_types
|
30
|
+
@inner_class_types = {}
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.field_remappings
|
34
|
+
@field_remappings = {}
|
35
|
+
end
|
28
36
|
end
|
29
37
|
|
30
38
|
class ListParams < Stripe::RequestParams
|
@@ -302,5 +310,13 @@ module Stripe
|
|
302
310
|
opts: opts
|
303
311
|
)
|
304
312
|
end
|
313
|
+
|
314
|
+
def self.inner_class_types
|
315
|
+
@inner_class_types = { trace_id: TraceId }
|
316
|
+
end
|
317
|
+
|
318
|
+
def self.field_remappings
|
319
|
+
@field_remappings = {}
|
320
|
+
end
|
305
321
|
end
|
306
322
|
end
|
@@ -23,9 +23,25 @@ module Stripe
|
|
23
23
|
attr_reader :ip
|
24
24
|
# The user agent of the browser from which the legal guardian accepted the service agreement.
|
25
25
|
attr_reader :user_agent
|
26
|
+
|
27
|
+
def self.inner_class_types
|
28
|
+
@inner_class_types = {}
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.field_remappings
|
32
|
+
@field_remappings = {}
|
33
|
+
end
|
26
34
|
end
|
27
35
|
# Details on the legal guardian's acceptance of the main Stripe service agreement.
|
28
36
|
attr_reader :account
|
37
|
+
|
38
|
+
def self.inner_class_types
|
39
|
+
@inner_class_types = { account: Account }
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.field_remappings
|
43
|
+
@field_remappings = {}
|
44
|
+
end
|
29
45
|
end
|
30
46
|
|
31
47
|
class Address < Stripe::StripeObject
|
@@ -41,6 +57,14 @@ module Stripe
|
|
41
57
|
attr_reader :postal_code
|
42
58
|
# State, county, province, or region.
|
43
59
|
attr_reader :state
|
60
|
+
|
61
|
+
def self.inner_class_types
|
62
|
+
@inner_class_types = {}
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.field_remappings
|
66
|
+
@field_remappings = {}
|
67
|
+
end
|
44
68
|
end
|
45
69
|
|
46
70
|
class AddressKana < Stripe::StripeObject
|
@@ -58,6 +82,14 @@ module Stripe
|
|
58
82
|
attr_reader :state
|
59
83
|
# Town/cho-me.
|
60
84
|
attr_reader :town
|
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 AddressKanji < Stripe::StripeObject
|
@@ -75,6 +107,14 @@ module Stripe
|
|
75
107
|
attr_reader :state
|
76
108
|
# Town/cho-me.
|
77
109
|
attr_reader :town
|
110
|
+
|
111
|
+
def self.inner_class_types
|
112
|
+
@inner_class_types = {}
|
113
|
+
end
|
114
|
+
|
115
|
+
def self.field_remappings
|
116
|
+
@field_remappings = {}
|
117
|
+
end
|
78
118
|
end
|
79
119
|
|
80
120
|
class Dob < Stripe::StripeObject
|
@@ -84,6 +124,14 @@ module Stripe
|
|
84
124
|
attr_reader :month
|
85
125
|
# The four-digit year of birth.
|
86
126
|
attr_reader :year
|
127
|
+
|
128
|
+
def self.inner_class_types
|
129
|
+
@inner_class_types = {}
|
130
|
+
end
|
131
|
+
|
132
|
+
def self.field_remappings
|
133
|
+
@field_remappings = {}
|
134
|
+
end
|
87
135
|
end
|
88
136
|
|
89
137
|
class FutureRequirements < Stripe::StripeObject
|
@@ -92,6 +140,14 @@ module Stripe
|
|
92
140
|
attr_reader :alternative_fields_due
|
93
141
|
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
94
142
|
attr_reader :original_fields_due
|
143
|
+
|
144
|
+
def self.inner_class_types
|
145
|
+
@inner_class_types = {}
|
146
|
+
end
|
147
|
+
|
148
|
+
def self.field_remappings
|
149
|
+
@field_remappings = {}
|
150
|
+
end
|
95
151
|
end
|
96
152
|
|
97
153
|
class Error < Stripe::StripeObject
|
@@ -101,6 +157,14 @@ module Stripe
|
|
101
157
|
attr_reader :reason
|
102
158
|
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
103
159
|
attr_reader :requirement
|
160
|
+
|
161
|
+
def self.inner_class_types
|
162
|
+
@inner_class_types = {}
|
163
|
+
end
|
164
|
+
|
165
|
+
def self.field_remappings
|
166
|
+
@field_remappings = {}
|
167
|
+
end
|
104
168
|
end
|
105
169
|
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
106
170
|
attr_reader :alternatives
|
@@ -114,6 +178,14 @@ module Stripe
|
|
114
178
|
attr_reader :past_due
|
115
179
|
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
116
180
|
attr_reader :pending_verification
|
181
|
+
|
182
|
+
def self.inner_class_types
|
183
|
+
@inner_class_types = { alternatives: Alternative, errors: Error }
|
184
|
+
end
|
185
|
+
|
186
|
+
def self.field_remappings
|
187
|
+
@field_remappings = {}
|
188
|
+
end
|
117
189
|
end
|
118
190
|
|
119
191
|
class RegisteredAddress < Stripe::StripeObject
|
@@ -129,6 +201,14 @@ module Stripe
|
|
129
201
|
attr_reader :postal_code
|
130
202
|
# State, county, province, or region.
|
131
203
|
attr_reader :state
|
204
|
+
|
205
|
+
def self.inner_class_types
|
206
|
+
@inner_class_types = {}
|
207
|
+
end
|
208
|
+
|
209
|
+
def self.field_remappings
|
210
|
+
@field_remappings = {}
|
211
|
+
end
|
132
212
|
end
|
133
213
|
|
134
214
|
class Relationship < Stripe::StripeObject
|
@@ -148,6 +228,14 @@ module Stripe
|
|
148
228
|
attr_reader :representative
|
149
229
|
# The person's title (e.g., CEO, Support Engineer).
|
150
230
|
attr_reader :title
|
231
|
+
|
232
|
+
def self.inner_class_types
|
233
|
+
@inner_class_types = {}
|
234
|
+
end
|
235
|
+
|
236
|
+
def self.field_remappings
|
237
|
+
@field_remappings = {}
|
238
|
+
end
|
151
239
|
end
|
152
240
|
|
153
241
|
class Requirements < Stripe::StripeObject
|
@@ -156,6 +244,14 @@ module Stripe
|
|
156
244
|
attr_reader :alternative_fields_due
|
157
245
|
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
158
246
|
attr_reader :original_fields_due
|
247
|
+
|
248
|
+
def self.inner_class_types
|
249
|
+
@inner_class_types = {}
|
250
|
+
end
|
251
|
+
|
252
|
+
def self.field_remappings
|
253
|
+
@field_remappings = {}
|
254
|
+
end
|
159
255
|
end
|
160
256
|
|
161
257
|
class Error < Stripe::StripeObject
|
@@ -165,6 +261,14 @@ module Stripe
|
|
165
261
|
attr_reader :reason
|
166
262
|
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
167
263
|
attr_reader :requirement
|
264
|
+
|
265
|
+
def self.inner_class_types
|
266
|
+
@inner_class_types = {}
|
267
|
+
end
|
268
|
+
|
269
|
+
def self.field_remappings
|
270
|
+
@field_remappings = {}
|
271
|
+
end
|
168
272
|
end
|
169
273
|
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
170
274
|
attr_reader :alternatives
|
@@ -178,6 +282,14 @@ module Stripe
|
|
178
282
|
attr_reader :past_due
|
179
283
|
# Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
180
284
|
attr_reader :pending_verification
|
285
|
+
|
286
|
+
def self.inner_class_types
|
287
|
+
@inner_class_types = { alternatives: Alternative, errors: Error }
|
288
|
+
end
|
289
|
+
|
290
|
+
def self.field_remappings
|
291
|
+
@field_remappings = {}
|
292
|
+
end
|
181
293
|
end
|
182
294
|
|
183
295
|
class UsCfpbData < Stripe::StripeObject
|
@@ -186,6 +298,14 @@ module Stripe
|
|
186
298
|
attr_reader :ethnicity
|
187
299
|
# Please specify your origin, when other is selected.
|
188
300
|
attr_reader :ethnicity_other
|
301
|
+
|
302
|
+
def self.inner_class_types
|
303
|
+
@inner_class_types = {}
|
304
|
+
end
|
305
|
+
|
306
|
+
def self.field_remappings
|
307
|
+
@field_remappings = {}
|
308
|
+
end
|
189
309
|
end
|
190
310
|
|
191
311
|
class RaceDetails < Stripe::StripeObject
|
@@ -193,6 +313,14 @@ module Stripe
|
|
193
313
|
attr_reader :race
|
194
314
|
# Please specify your race, when other is selected.
|
195
315
|
attr_reader :race_other
|
316
|
+
|
317
|
+
def self.inner_class_types
|
318
|
+
@inner_class_types = {}
|
319
|
+
end
|
320
|
+
|
321
|
+
def self.field_remappings
|
322
|
+
@field_remappings = {}
|
323
|
+
end
|
196
324
|
end
|
197
325
|
# The persons ethnicity details
|
198
326
|
attr_reader :ethnicity_details
|
@@ -200,6 +328,14 @@ module Stripe
|
|
200
328
|
attr_reader :race_details
|
201
329
|
# The persons self-identified gender
|
202
330
|
attr_reader :self_identified_gender
|
331
|
+
|
332
|
+
def self.inner_class_types
|
333
|
+
@inner_class_types = { ethnicity_details: EthnicityDetails, race_details: RaceDetails }
|
334
|
+
end
|
335
|
+
|
336
|
+
def self.field_remappings
|
337
|
+
@field_remappings = {}
|
338
|
+
end
|
203
339
|
end
|
204
340
|
|
205
341
|
class Verification < Stripe::StripeObject
|
@@ -212,6 +348,14 @@ module Stripe
|
|
212
348
|
attr_reader :details_code
|
213
349
|
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`.
|
214
350
|
attr_reader :front
|
351
|
+
|
352
|
+
def self.inner_class_types
|
353
|
+
@inner_class_types = {}
|
354
|
+
end
|
355
|
+
|
356
|
+
def self.field_remappings
|
357
|
+
@field_remappings = {}
|
358
|
+
end
|
215
359
|
end
|
216
360
|
|
217
361
|
class Document < Stripe::StripeObject
|
@@ -223,6 +367,14 @@ module Stripe
|
|
223
367
|
attr_reader :details_code
|
224
368
|
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`.
|
225
369
|
attr_reader :front
|
370
|
+
|
371
|
+
def self.inner_class_types
|
372
|
+
@inner_class_types = {}
|
373
|
+
end
|
374
|
+
|
375
|
+
def self.field_remappings
|
376
|
+
@field_remappings = {}
|
377
|
+
end
|
226
378
|
end
|
227
379
|
# A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
|
228
380
|
attr_reader :additional_document
|
@@ -234,6 +386,14 @@ module Stripe
|
|
234
386
|
attr_reader :document
|
235
387
|
# The state of verification for the person. Possible values are `unverified`, `pending`, or `verified`. Please refer [guide](https://stripe.com/docs/connect/handling-api-verification) to handle verification updates.
|
236
388
|
attr_reader :status
|
389
|
+
|
390
|
+
def self.inner_class_types
|
391
|
+
@inner_class_types = { additional_document: AdditionalDocument, document: Document }
|
392
|
+
end
|
393
|
+
|
394
|
+
def self.field_remappings
|
395
|
+
@field_remappings = {}
|
396
|
+
end
|
237
397
|
end
|
238
398
|
# The account the person is associated with.
|
239
399
|
attr_reader :account
|
@@ -322,5 +482,25 @@ module Stripe
|
|
322
482
|
"person using `Account.update_person('account_id', 'person_id', " \
|
323
483
|
"update_params)`"
|
324
484
|
end
|
485
|
+
|
486
|
+
def self.inner_class_types
|
487
|
+
@inner_class_types = {
|
488
|
+
additional_tos_acceptances: AdditionalTosAcceptances,
|
489
|
+
address: Address,
|
490
|
+
address_kana: AddressKana,
|
491
|
+
address_kanji: AddressKanji,
|
492
|
+
dob: Dob,
|
493
|
+
future_requirements: FutureRequirements,
|
494
|
+
registered_address: RegisteredAddress,
|
495
|
+
relationship: Relationship,
|
496
|
+
requirements: Requirements,
|
497
|
+
us_cfpb_data: UsCfpbData,
|
498
|
+
verification: Verification,
|
499
|
+
}
|
500
|
+
end
|
501
|
+
|
502
|
+
def self.field_remappings
|
503
|
+
@field_remappings = {}
|
504
|
+
end
|
325
505
|
end
|
326
506
|
end
|
@@ -32,6 +32,14 @@ module Stripe
|
|
32
32
|
attr_reader :unit_amount_decimal
|
33
33
|
# Up to and including to this quantity will be contained in the tier.
|
34
34
|
attr_reader :up_to
|
35
|
+
|
36
|
+
def self.inner_class_types
|
37
|
+
@inner_class_types = {}
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.field_remappings
|
41
|
+
@field_remappings = {}
|
42
|
+
end
|
35
43
|
end
|
36
44
|
|
37
45
|
class TransformUsage < Stripe::StripeObject
|
@@ -39,6 +47,14 @@ module Stripe
|
|
39
47
|
attr_reader :divide_by
|
40
48
|
# After division, either round the result `up` or `down`.
|
41
49
|
attr_reader :round
|
50
|
+
|
51
|
+
def self.inner_class_types
|
52
|
+
@inner_class_types = {}
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.field_remappings
|
56
|
+
@field_remappings = {}
|
57
|
+
end
|
42
58
|
end
|
43
59
|
|
44
60
|
class DeleteParams < Stripe::RequestParams; end
|
@@ -361,5 +377,13 @@ module Stripe
|
|
361
377
|
opts: opts
|
362
378
|
)
|
363
379
|
end
|
380
|
+
|
381
|
+
def self.inner_class_types
|
382
|
+
@inner_class_types = { tiers: Tier, transform_usage: TransformUsage }
|
383
|
+
end
|
384
|
+
|
385
|
+
def self.field_remappings
|
386
|
+
@field_remappings = {}
|
387
|
+
end
|
364
388
|
end
|
365
389
|
end
|
@@ -27,6 +27,14 @@ module Stripe
|
|
27
27
|
attr_reader :minimum
|
28
28
|
# The starting unit amount which can be updated by the customer.
|
29
29
|
attr_reader :preset
|
30
|
+
|
31
|
+
def self.inner_class_types
|
32
|
+
@inner_class_types = {}
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.field_remappings
|
36
|
+
@field_remappings = {}
|
37
|
+
end
|
30
38
|
end
|
31
39
|
|
32
40
|
class Tier < Stripe::StripeObject
|
@@ -40,6 +48,14 @@ module Stripe
|
|
40
48
|
attr_reader :unit_amount_decimal
|
41
49
|
# Up to and including to this quantity will be contained in the tier.
|
42
50
|
attr_reader :up_to
|
51
|
+
|
52
|
+
def self.inner_class_types
|
53
|
+
@inner_class_types = {}
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.field_remappings
|
57
|
+
@field_remappings = {}
|
58
|
+
end
|
43
59
|
end
|
44
60
|
# When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
|
45
61
|
attr_reader :custom_unit_amount
|
@@ -51,6 +67,14 @@ module Stripe
|
|
51
67
|
attr_reader :unit_amount
|
52
68
|
# The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if `billing_scheme=per_unit`.
|
53
69
|
attr_reader :unit_amount_decimal
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = { custom_unit_amount: CustomUnitAmount, tiers: Tier }
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
54
78
|
end
|
55
79
|
|
56
80
|
class CustomUnitAmount < Stripe::StripeObject
|
@@ -60,6 +84,14 @@ module Stripe
|
|
60
84
|
attr_reader :minimum
|
61
85
|
# The starting unit amount which can be updated by the customer.
|
62
86
|
attr_reader :preset
|
87
|
+
|
88
|
+
def self.inner_class_types
|
89
|
+
@inner_class_types = {}
|
90
|
+
end
|
91
|
+
|
92
|
+
def self.field_remappings
|
93
|
+
@field_remappings = {}
|
94
|
+
end
|
63
95
|
end
|
64
96
|
|
65
97
|
class MigrateTo < Stripe::StripeObject
|
@@ -69,6 +101,14 @@ module Stripe
|
|
69
101
|
attr_reader :effective_after
|
70
102
|
# The id of the price being migrated to
|
71
103
|
attr_reader :price
|
104
|
+
|
105
|
+
def self.inner_class_types
|
106
|
+
@inner_class_types = {}
|
107
|
+
end
|
108
|
+
|
109
|
+
def self.field_remappings
|
110
|
+
@field_remappings = {}
|
111
|
+
end
|
72
112
|
end
|
73
113
|
|
74
114
|
class Recurring < Stripe::StripeObject
|
@@ -82,6 +122,14 @@ module Stripe
|
|
82
122
|
attr_reader :trial_period_days
|
83
123
|
# Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
|
84
124
|
attr_reader :usage_type
|
125
|
+
|
126
|
+
def self.inner_class_types
|
127
|
+
@inner_class_types = {}
|
128
|
+
end
|
129
|
+
|
130
|
+
def self.field_remappings
|
131
|
+
@field_remappings = {}
|
132
|
+
end
|
85
133
|
end
|
86
134
|
|
87
135
|
class Tier < Stripe::StripeObject
|
@@ -95,6 +143,14 @@ module Stripe
|
|
95
143
|
attr_reader :unit_amount_decimal
|
96
144
|
# Up to and including to this quantity will be contained in the tier.
|
97
145
|
attr_reader :up_to
|
146
|
+
|
147
|
+
def self.inner_class_types
|
148
|
+
@inner_class_types = {}
|
149
|
+
end
|
150
|
+
|
151
|
+
def self.field_remappings
|
152
|
+
@field_remappings = {}
|
153
|
+
end
|
98
154
|
end
|
99
155
|
|
100
156
|
class TransformQuantity < Stripe::StripeObject
|
@@ -102,6 +158,14 @@ module Stripe
|
|
102
158
|
attr_reader :divide_by
|
103
159
|
# After division, either round the result `up` or `down`.
|
104
160
|
attr_reader :round
|
161
|
+
|
162
|
+
def self.inner_class_types
|
163
|
+
@inner_class_types = {}
|
164
|
+
end
|
165
|
+
|
166
|
+
def self.field_remappings
|
167
|
+
@field_remappings = {}
|
168
|
+
end
|
105
169
|
end
|
106
170
|
|
107
171
|
class ListParams < Stripe::RequestParams
|
@@ -680,5 +744,20 @@ module Stripe
|
|
680
744
|
opts: opts
|
681
745
|
)
|
682
746
|
end
|
747
|
+
|
748
|
+
def self.inner_class_types
|
749
|
+
@inner_class_types = {
|
750
|
+
currency_options: CurrencyOptions,
|
751
|
+
custom_unit_amount: CustomUnitAmount,
|
752
|
+
migrate_to: MigrateTo,
|
753
|
+
recurring: Recurring,
|
754
|
+
tiers: Tier,
|
755
|
+
transform_quantity: TransformQuantity,
|
756
|
+
}
|
757
|
+
end
|
758
|
+
|
759
|
+
def self.field_remappings
|
760
|
+
@field_remappings = {}
|
761
|
+
end
|
683
762
|
end
|
684
763
|
end
|
@@ -39,6 +39,14 @@ module Stripe
|
|
39
39
|
attr_reader :radar_value_list_items
|
40
40
|
# SetupIntent object identifiers starting with `seti_`
|
41
41
|
attr_reader :setup_intents
|
42
|
+
|
43
|
+
def self.inner_class_types
|
44
|
+
@inner_class_types = {}
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.field_remappings
|
48
|
+
@field_remappings = {}
|
49
|
+
end
|
42
50
|
end
|
43
51
|
|
44
52
|
class ListParams < Stripe::RequestParams
|
@@ -293,6 +301,14 @@ module Stripe
|
|
293
301
|
opts: opts
|
294
302
|
)
|
295
303
|
end
|
304
|
+
|
305
|
+
def self.inner_class_types
|
306
|
+
@inner_class_types = { objects: Objects }
|
307
|
+
end
|
308
|
+
|
309
|
+
def self.field_remappings
|
310
|
+
@field_remappings = {}
|
311
|
+
end
|
296
312
|
end
|
297
313
|
end
|
298
314
|
end
|
@@ -17,6 +17,14 @@ module Stripe
|
|
17
17
|
attr_reader :id
|
18
18
|
# Erroring object type
|
19
19
|
attr_reader :object_type
|
20
|
+
|
21
|
+
def self.inner_class_types
|
22
|
+
@inner_class_types = {}
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.field_remappings
|
26
|
+
@field_remappings = {}
|
27
|
+
end
|
20
28
|
end
|
21
29
|
# A code indicating the reason for the error.
|
22
30
|
attr_reader :code
|
@@ -28,6 +36,14 @@ module Stripe
|
|
28
36
|
attr_reader :message
|
29
37
|
# String representing the object's type. Objects of the same type share the same value.
|
30
38
|
attr_reader :object
|
39
|
+
|
40
|
+
def self.inner_class_types
|
41
|
+
@inner_class_types = { erroring_object: ErroringObject }
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.field_remappings
|
45
|
+
@field_remappings = {}
|
46
|
+
end
|
31
47
|
end
|
32
48
|
end
|
33
49
|
end
|
@@ -28,6 +28,14 @@ module Stripe
|
|
28
28
|
class MarketingFeature < Stripe::StripeObject
|
29
29
|
# The marketing feature name. Up to 80 characters long.
|
30
30
|
attr_reader :name
|
31
|
+
|
32
|
+
def self.inner_class_types
|
33
|
+
@inner_class_types = {}
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.field_remappings
|
37
|
+
@field_remappings = {}
|
38
|
+
end
|
31
39
|
end
|
32
40
|
|
33
41
|
class PackageDimensions < Stripe::StripeObject
|
@@ -39,6 +47,14 @@ module Stripe
|
|
39
47
|
attr_reader :weight
|
40
48
|
# Width, in inches.
|
41
49
|
attr_reader :width
|
50
|
+
|
51
|
+
def self.inner_class_types
|
52
|
+
@inner_class_types = {}
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.field_remappings
|
56
|
+
@field_remappings = {}
|
57
|
+
end
|
42
58
|
end
|
43
59
|
|
44
60
|
class DeleteParams < Stripe::RequestParams; end
|
@@ -543,5 +559,16 @@ module Stripe
|
|
543
559
|
opts: opts
|
544
560
|
)
|
545
561
|
end
|
562
|
+
|
563
|
+
def self.inner_class_types
|
564
|
+
@inner_class_types = {
|
565
|
+
marketing_features: MarketingFeature,
|
566
|
+
package_dimensions: PackageDimensions,
|
567
|
+
}
|
568
|
+
end
|
569
|
+
|
570
|
+
def self.field_remappings
|
571
|
+
@field_remappings = {}
|
572
|
+
end
|
546
573
|
end
|
547
574
|
end
|
@@ -21,6 +21,14 @@ module Stripe
|
|
21
21
|
class CurrencyOptions < Stripe::StripeObject
|
22
22
|
# Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).
|
23
23
|
attr_reader :minimum_amount
|
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
|
# Promotion code restrictions defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
26
34
|
attr_reader :currency_options
|
@@ -30,6 +38,14 @@ module Stripe
|
|
30
38
|
attr_reader :minimum_amount
|
31
39
|
# Three-letter [ISO code](https://stripe.com/docs/currencies) for minimum_amount
|
32
40
|
attr_reader :minimum_amount_currency
|
41
|
+
|
42
|
+
def self.inner_class_types
|
43
|
+
@inner_class_types = { currency_options: CurrencyOptions }
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.field_remappings
|
47
|
+
@field_remappings = {}
|
48
|
+
end
|
33
49
|
end
|
34
50
|
|
35
51
|
class ListParams < Stripe::RequestParams
|
@@ -258,5 +274,13 @@ module Stripe
|
|
258
274
|
opts: opts
|
259
275
|
)
|
260
276
|
end
|
277
|
+
|
278
|
+
def self.inner_class_types
|
279
|
+
@inner_class_types = { restrictions: Restrictions }
|
280
|
+
end
|
281
|
+
|
282
|
+
def self.field_remappings
|
283
|
+
@field_remappings = {}
|
284
|
+
end
|
261
285
|
end
|
262
286
|
end
|