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
@@ -22,6 +22,14 @@ module Stripe
|
|
22
22
|
attr_reader :enabled
|
23
23
|
# The status of the most recent automated tax calculation for this Order.
|
24
24
|
attr_reader :status
|
25
|
+
|
26
|
+
def self.inner_class_types
|
27
|
+
@inner_class_types = {}
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.field_remappings
|
31
|
+
@field_remappings = {}
|
32
|
+
end
|
25
33
|
end
|
26
34
|
|
27
35
|
class BillingDetails < Stripe::StripeObject
|
@@ -38,6 +46,14 @@ module Stripe
|
|
38
46
|
attr_reader :postal_code
|
39
47
|
# State, county, province, or region.
|
40
48
|
attr_reader :state
|
49
|
+
|
50
|
+
def self.inner_class_types
|
51
|
+
@inner_class_types = {}
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.field_remappings
|
55
|
+
@field_remappings = {}
|
56
|
+
end
|
41
57
|
end
|
42
58
|
# Billing address for the order.
|
43
59
|
attr_reader :address
|
@@ -47,6 +63,14 @@ module Stripe
|
|
47
63
|
attr_reader :name
|
48
64
|
# Billing phone number for the order (including extension).
|
49
65
|
attr_reader :phone
|
66
|
+
|
67
|
+
def self.inner_class_types
|
68
|
+
@inner_class_types = { address: Address }
|
69
|
+
end
|
70
|
+
|
71
|
+
def self.field_remappings
|
72
|
+
@field_remappings = {}
|
73
|
+
end
|
50
74
|
end
|
51
75
|
|
52
76
|
class Payment < Stripe::StripeObject
|
@@ -54,6 +78,14 @@ module Stripe
|
|
54
78
|
class AutomaticPaymentMethods < Stripe::StripeObject
|
55
79
|
# Whether this Order has been opted into managing payment method types via the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
|
56
80
|
attr_reader :enabled
|
81
|
+
|
82
|
+
def self.inner_class_types
|
83
|
+
@inner_class_types = {}
|
84
|
+
end
|
85
|
+
|
86
|
+
def self.field_remappings
|
87
|
+
@field_remappings = {}
|
88
|
+
end
|
57
89
|
end
|
58
90
|
|
59
91
|
class PaymentMethodOptions < Stripe::StripeObject
|
@@ -67,6 +99,14 @@ module Stripe
|
|
67
99
|
attr_reader :payment_schedule
|
68
100
|
# Transaction type of the mandate.
|
69
101
|
attr_reader :transaction_type
|
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 mandate_options
|
72
112
|
attr_reader :mandate_options
|
@@ -82,6 +122,14 @@ module Stripe
|
|
82
122
|
attr_reader :target_date
|
83
123
|
# Bank account verification method.
|
84
124
|
attr_reader :verification_method
|
125
|
+
|
126
|
+
def self.inner_class_types
|
127
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
128
|
+
end
|
129
|
+
|
130
|
+
def self.field_remappings
|
131
|
+
@field_remappings = {}
|
132
|
+
end
|
85
133
|
end
|
86
134
|
|
87
135
|
class AfterpayClearpay < Stripe::StripeObject
|
@@ -97,6 +145,14 @@ module Stripe
|
|
97
145
|
#
|
98
146
|
# If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
|
99
147
|
attr_reader :setup_future_usage
|
148
|
+
|
149
|
+
def self.inner_class_types
|
150
|
+
@inner_class_types = {}
|
151
|
+
end
|
152
|
+
|
153
|
+
def self.field_remappings
|
154
|
+
@field_remappings = {}
|
155
|
+
end
|
100
156
|
end
|
101
157
|
|
102
158
|
class Alipay < Stripe::StripeObject
|
@@ -108,6 +164,14 @@ module Stripe
|
|
108
164
|
#
|
109
165
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
110
166
|
attr_reader :setup_future_usage
|
167
|
+
|
168
|
+
def self.inner_class_types
|
169
|
+
@inner_class_types = {}
|
170
|
+
end
|
171
|
+
|
172
|
+
def self.field_remappings
|
173
|
+
@field_remappings = {}
|
174
|
+
end
|
111
175
|
end
|
112
176
|
|
113
177
|
class Bancontact < Stripe::StripeObject
|
@@ -121,6 +185,14 @@ module Stripe
|
|
121
185
|
#
|
122
186
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
123
187
|
attr_reader :setup_future_usage
|
188
|
+
|
189
|
+
def self.inner_class_types
|
190
|
+
@inner_class_types = {}
|
191
|
+
end
|
192
|
+
|
193
|
+
def self.field_remappings
|
194
|
+
@field_remappings = {}
|
195
|
+
end
|
124
196
|
end
|
125
197
|
|
126
198
|
class Card < Stripe::StripeObject
|
@@ -134,6 +206,14 @@ module Stripe
|
|
134
206
|
#
|
135
207
|
# If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
|
136
208
|
attr_reader :setup_future_usage
|
209
|
+
|
210
|
+
def self.inner_class_types
|
211
|
+
@inner_class_types = {}
|
212
|
+
end
|
213
|
+
|
214
|
+
def self.field_remappings
|
215
|
+
@field_remappings = {}
|
216
|
+
end
|
137
217
|
end
|
138
218
|
|
139
219
|
class CustomerBalance < Stripe::StripeObject
|
@@ -141,6 +221,14 @@ module Stripe
|
|
141
221
|
class EuBankTransfer < Stripe::StripeObject
|
142
222
|
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
143
223
|
attr_reader :country
|
224
|
+
|
225
|
+
def self.inner_class_types
|
226
|
+
@inner_class_types = {}
|
227
|
+
end
|
228
|
+
|
229
|
+
def self.field_remappings
|
230
|
+
@field_remappings = {}
|
231
|
+
end
|
144
232
|
end
|
145
233
|
# Attribute for field eu_bank_transfer
|
146
234
|
attr_reader :eu_bank_transfer
|
@@ -150,6 +238,14 @@ module Stripe
|
|
150
238
|
attr_reader :requested_address_types
|
151
239
|
# The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
152
240
|
attr_reader :type
|
241
|
+
|
242
|
+
def self.inner_class_types
|
243
|
+
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
244
|
+
end
|
245
|
+
|
246
|
+
def self.field_remappings
|
247
|
+
@field_remappings = {}
|
248
|
+
end
|
153
249
|
end
|
154
250
|
# Attribute for field bank_transfer
|
155
251
|
attr_reader :bank_transfer
|
@@ -163,6 +259,14 @@ module Stripe
|
|
163
259
|
#
|
164
260
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
165
261
|
attr_reader :setup_future_usage
|
262
|
+
|
263
|
+
def self.inner_class_types
|
264
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
265
|
+
end
|
266
|
+
|
267
|
+
def self.field_remappings
|
268
|
+
@field_remappings = {}
|
269
|
+
end
|
166
270
|
end
|
167
271
|
|
168
272
|
class Ideal < Stripe::StripeObject
|
@@ -174,6 +278,14 @@ module Stripe
|
|
174
278
|
#
|
175
279
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
176
280
|
attr_reader :setup_future_usage
|
281
|
+
|
282
|
+
def self.inner_class_types
|
283
|
+
@inner_class_types = {}
|
284
|
+
end
|
285
|
+
|
286
|
+
def self.field_remappings
|
287
|
+
@field_remappings = {}
|
288
|
+
end
|
177
289
|
end
|
178
290
|
|
179
291
|
class Klarna < Stripe::StripeObject
|
@@ -189,6 +301,14 @@ module Stripe
|
|
189
301
|
#
|
190
302
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
191
303
|
attr_reader :setup_future_usage
|
304
|
+
|
305
|
+
def self.inner_class_types
|
306
|
+
@inner_class_types = {}
|
307
|
+
end
|
308
|
+
|
309
|
+
def self.field_remappings
|
310
|
+
@field_remappings = {}
|
311
|
+
end
|
192
312
|
end
|
193
313
|
|
194
314
|
class Link < Stripe::StripeObject
|
@@ -204,6 +324,14 @@ module Stripe
|
|
204
324
|
#
|
205
325
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
206
326
|
attr_reader :setup_future_usage
|
327
|
+
|
328
|
+
def self.inner_class_types
|
329
|
+
@inner_class_types = {}
|
330
|
+
end
|
331
|
+
|
332
|
+
def self.field_remappings
|
333
|
+
@field_remappings = {}
|
334
|
+
end
|
207
335
|
end
|
208
336
|
|
209
337
|
class Oxxo < Stripe::StripeObject
|
@@ -217,6 +345,14 @@ module Stripe
|
|
217
345
|
#
|
218
346
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
219
347
|
attr_reader :setup_future_usage
|
348
|
+
|
349
|
+
def self.inner_class_types
|
350
|
+
@inner_class_types = {}
|
351
|
+
end
|
352
|
+
|
353
|
+
def self.field_remappings
|
354
|
+
@field_remappings = {}
|
355
|
+
end
|
220
356
|
end
|
221
357
|
|
222
358
|
class P24 < Stripe::StripeObject
|
@@ -228,6 +364,14 @@ module Stripe
|
|
228
364
|
#
|
229
365
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
230
366
|
attr_reader :setup_future_usage
|
367
|
+
|
368
|
+
def self.inner_class_types
|
369
|
+
@inner_class_types = {}
|
370
|
+
end
|
371
|
+
|
372
|
+
def self.field_remappings
|
373
|
+
@field_remappings = {}
|
374
|
+
end
|
231
375
|
end
|
232
376
|
|
233
377
|
class Paypal < Stripe::StripeObject
|
@@ -237,6 +381,14 @@ module Stripe
|
|
237
381
|
attr_reader :amount
|
238
382
|
# The tax behavior for the line item.
|
239
383
|
attr_reader :behavior
|
384
|
+
|
385
|
+
def self.inner_class_types
|
386
|
+
@inner_class_types = {}
|
387
|
+
end
|
388
|
+
|
389
|
+
def self.field_remappings
|
390
|
+
@field_remappings = {}
|
391
|
+
end
|
240
392
|
end
|
241
393
|
# Type of the line item.
|
242
394
|
attr_reader :category
|
@@ -254,6 +406,14 @@ module Stripe
|
|
254
406
|
attr_reader :tax
|
255
407
|
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
256
408
|
attr_reader :unit_amount
|
409
|
+
|
410
|
+
def self.inner_class_types
|
411
|
+
@inner_class_types = { tax: Tax }
|
412
|
+
end
|
413
|
+
|
414
|
+
def self.field_remappings
|
415
|
+
@field_remappings = {}
|
416
|
+
end
|
257
417
|
end
|
258
418
|
# Controls when the funds will be captured from the customer's account.
|
259
419
|
attr_reader :capture_method
|
@@ -275,12 +435,28 @@ module Stripe
|
|
275
435
|
attr_reader :setup_future_usage
|
276
436
|
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
277
437
|
attr_reader :subsellers
|
438
|
+
|
439
|
+
def self.inner_class_types
|
440
|
+
@inner_class_types = { line_items: LineItem }
|
441
|
+
end
|
442
|
+
|
443
|
+
def self.field_remappings
|
444
|
+
@field_remappings = {}
|
445
|
+
end
|
278
446
|
end
|
279
447
|
|
280
448
|
class SepaDebit < Stripe::StripeObject
|
281
449
|
class MandateOptions < Stripe::StripeObject
|
282
450
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
283
451
|
attr_reader :reference_prefix
|
452
|
+
|
453
|
+
def self.inner_class_types
|
454
|
+
@inner_class_types = {}
|
455
|
+
end
|
456
|
+
|
457
|
+
def self.field_remappings
|
458
|
+
@field_remappings = {}
|
459
|
+
end
|
284
460
|
end
|
285
461
|
# Attribute for field mandate_options
|
286
462
|
attr_reader :mandate_options
|
@@ -294,6 +470,14 @@ module Stripe
|
|
294
470
|
attr_reader :setup_future_usage
|
295
471
|
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
296
472
|
attr_reader :target_date
|
473
|
+
|
474
|
+
def self.inner_class_types
|
475
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
476
|
+
end
|
477
|
+
|
478
|
+
def self.field_remappings
|
479
|
+
@field_remappings = {}
|
480
|
+
end
|
297
481
|
end
|
298
482
|
|
299
483
|
class Sofort < Stripe::StripeObject
|
@@ -307,6 +491,14 @@ module Stripe
|
|
307
491
|
#
|
308
492
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
309
493
|
attr_reader :setup_future_usage
|
494
|
+
|
495
|
+
def self.inner_class_types
|
496
|
+
@inner_class_types = {}
|
497
|
+
end
|
498
|
+
|
499
|
+
def self.field_remappings
|
500
|
+
@field_remappings = {}
|
501
|
+
end
|
310
502
|
end
|
311
503
|
|
312
504
|
class WechatPay < Stripe::StripeObject
|
@@ -322,6 +514,14 @@ module Stripe
|
|
322
514
|
#
|
323
515
|
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
324
516
|
attr_reader :setup_future_usage
|
517
|
+
|
518
|
+
def self.inner_class_types
|
519
|
+
@inner_class_types = {}
|
520
|
+
end
|
521
|
+
|
522
|
+
def self.field_remappings
|
523
|
+
@field_remappings = {}
|
524
|
+
end
|
325
525
|
end
|
326
526
|
# Attribute for field acss_debit
|
327
527
|
attr_reader :acss_debit
|
@@ -353,6 +553,30 @@ module Stripe
|
|
353
553
|
attr_reader :sofort
|
354
554
|
# Attribute for field wechat_pay
|
355
555
|
attr_reader :wechat_pay
|
556
|
+
|
557
|
+
def self.inner_class_types
|
558
|
+
@inner_class_types = {
|
559
|
+
acss_debit: AcssDebit,
|
560
|
+
afterpay_clearpay: AfterpayClearpay,
|
561
|
+
alipay: Alipay,
|
562
|
+
bancontact: Bancontact,
|
563
|
+
card: Card,
|
564
|
+
customer_balance: CustomerBalance,
|
565
|
+
ideal: Ideal,
|
566
|
+
klarna: Klarna,
|
567
|
+
link: Link,
|
568
|
+
oxxo: Oxxo,
|
569
|
+
p24: P24,
|
570
|
+
paypal: Paypal,
|
571
|
+
sepa_debit: SepaDebit,
|
572
|
+
sofort: Sofort,
|
573
|
+
wechat_pay: WechatPay,
|
574
|
+
}
|
575
|
+
end
|
576
|
+
|
577
|
+
def self.field_remappings
|
578
|
+
@field_remappings = {}
|
579
|
+
end
|
356
580
|
end
|
357
581
|
|
358
582
|
class TransferData < Stripe::StripeObject
|
@@ -360,6 +584,14 @@ module Stripe
|
|
360
584
|
attr_reader :amount
|
361
585
|
# ID of the Connected account receiving the transfer.
|
362
586
|
attr_reader :destination
|
587
|
+
|
588
|
+
def self.inner_class_types
|
589
|
+
@inner_class_types = {}
|
590
|
+
end
|
591
|
+
|
592
|
+
def self.field_remappings
|
593
|
+
@field_remappings = {}
|
594
|
+
end
|
363
595
|
end
|
364
596
|
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
|
365
597
|
attr_reader :application_fee_amount
|
@@ -377,6 +609,18 @@ module Stripe
|
|
377
609
|
attr_reader :statement_descriptor_suffix
|
378
610
|
# Provides configuration for completing a transfer for the order after it is paid.
|
379
611
|
attr_reader :transfer_data
|
612
|
+
|
613
|
+
def self.inner_class_types
|
614
|
+
@inner_class_types = {
|
615
|
+
automatic_payment_methods: AutomaticPaymentMethods,
|
616
|
+
payment_method_options: PaymentMethodOptions,
|
617
|
+
transfer_data: TransferData,
|
618
|
+
}
|
619
|
+
end
|
620
|
+
|
621
|
+
def self.field_remappings
|
622
|
+
@field_remappings = {}
|
623
|
+
end
|
380
624
|
end
|
381
625
|
# ID of the payment intent associated with this order. Null when the order is `open`.
|
382
626
|
attr_reader :payment_intent
|
@@ -384,6 +628,14 @@ module Stripe
|
|
384
628
|
attr_reader :settings
|
385
629
|
# The status of the underlying payment associated with this order, if any. Null when the order is `open`.
|
386
630
|
attr_reader :status
|
631
|
+
|
632
|
+
def self.inner_class_types
|
633
|
+
@inner_class_types = { settings: Settings }
|
634
|
+
end
|
635
|
+
|
636
|
+
def self.field_remappings
|
637
|
+
@field_remappings = {}
|
638
|
+
end
|
387
639
|
end
|
388
640
|
|
389
641
|
class ShippingCost < Stripe::StripeObject
|
@@ -398,6 +650,14 @@ module Stripe
|
|
398
650
|
attr_reader :taxability_reason
|
399
651
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
400
652
|
attr_reader :taxable_amount
|
653
|
+
|
654
|
+
def self.inner_class_types
|
655
|
+
@inner_class_types = {}
|
656
|
+
end
|
657
|
+
|
658
|
+
def self.field_remappings
|
659
|
+
@field_remappings = {}
|
660
|
+
end
|
401
661
|
end
|
402
662
|
# Total shipping cost before any discounts or taxes are applied.
|
403
663
|
attr_reader :amount_subtotal
|
@@ -409,6 +669,14 @@ module Stripe
|
|
409
669
|
attr_reader :shipping_rate
|
410
670
|
# The taxes applied to the shipping rate.
|
411
671
|
attr_reader :taxes
|
672
|
+
|
673
|
+
def self.inner_class_types
|
674
|
+
@inner_class_types = { taxes: Tax }
|
675
|
+
end
|
676
|
+
|
677
|
+
def self.field_remappings
|
678
|
+
@field_remappings = {}
|
679
|
+
end
|
412
680
|
end
|
413
681
|
|
414
682
|
class ShippingDetails < Stripe::StripeObject
|
@@ -425,6 +693,14 @@ module Stripe
|
|
425
693
|
attr_reader :postal_code
|
426
694
|
# State, county, province, or region.
|
427
695
|
attr_reader :state
|
696
|
+
|
697
|
+
def self.inner_class_types
|
698
|
+
@inner_class_types = {}
|
699
|
+
end
|
700
|
+
|
701
|
+
def self.field_remappings
|
702
|
+
@field_remappings = {}
|
703
|
+
end
|
428
704
|
end
|
429
705
|
# Recipient shipping address. Required if the order includes products that are shippable.
|
430
706
|
attr_reader :address
|
@@ -432,6 +708,14 @@ module Stripe
|
|
432
708
|
attr_reader :name
|
433
709
|
# Recipient phone (including extension).
|
434
710
|
attr_reader :phone
|
711
|
+
|
712
|
+
def self.inner_class_types
|
713
|
+
@inner_class_types = { address: Address }
|
714
|
+
end
|
715
|
+
|
716
|
+
def self.field_remappings
|
717
|
+
@field_remappings = {}
|
718
|
+
end
|
435
719
|
end
|
436
720
|
|
437
721
|
class TaxDetails < Stripe::StripeObject
|
@@ -440,11 +724,27 @@ module Stripe
|
|
440
724
|
attr_reader :type
|
441
725
|
# The value of the tax ID.
|
442
726
|
attr_reader :value
|
727
|
+
|
728
|
+
def self.inner_class_types
|
729
|
+
@inner_class_types = {}
|
730
|
+
end
|
731
|
+
|
732
|
+
def self.field_remappings
|
733
|
+
@field_remappings = {}
|
734
|
+
end
|
443
735
|
end
|
444
736
|
# Describes the purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
|
445
737
|
attr_reader :tax_exempt
|
446
738
|
# The purchaser's tax IDs to be used in calculation of tax for this Order.
|
447
739
|
attr_reader :tax_ids
|
740
|
+
|
741
|
+
def self.inner_class_types
|
742
|
+
@inner_class_types = { tax_ids: TaxId }
|
743
|
+
end
|
744
|
+
|
745
|
+
def self.field_remappings
|
746
|
+
@field_remappings = {}
|
747
|
+
end
|
448
748
|
end
|
449
749
|
|
450
750
|
class TotalDetails < Stripe::StripeObject
|
@@ -457,6 +757,14 @@ module Stripe
|
|
457
757
|
#
|
458
758
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
459
759
|
attr_reader :discount
|
760
|
+
|
761
|
+
def self.inner_class_types
|
762
|
+
@inner_class_types = {}
|
763
|
+
end
|
764
|
+
|
765
|
+
def self.field_remappings
|
766
|
+
@field_remappings = {}
|
767
|
+
end
|
460
768
|
end
|
461
769
|
|
462
770
|
class Tax < Stripe::StripeObject
|
@@ -470,11 +778,27 @@ module Stripe
|
|
470
778
|
attr_reader :taxability_reason
|
471
779
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
472
780
|
attr_reader :taxable_amount
|
781
|
+
|
782
|
+
def self.inner_class_types
|
783
|
+
@inner_class_types = {}
|
784
|
+
end
|
785
|
+
|
786
|
+
def self.field_remappings
|
787
|
+
@field_remappings = {}
|
788
|
+
end
|
473
789
|
end
|
474
790
|
# The aggregated discounts.
|
475
791
|
attr_reader :discounts
|
476
792
|
# The aggregated tax amounts by rate.
|
477
793
|
attr_reader :taxes
|
794
|
+
|
795
|
+
def self.inner_class_types
|
796
|
+
@inner_class_types = { discounts: Discount, taxes: Tax }
|
797
|
+
end
|
798
|
+
|
799
|
+
def self.field_remappings
|
800
|
+
@field_remappings = {}
|
801
|
+
end
|
478
802
|
end
|
479
803
|
# This is the sum of all the discounts.
|
480
804
|
attr_reader :amount_discount
|
@@ -484,6 +808,14 @@ module Stripe
|
|
484
808
|
attr_reader :amount_tax
|
485
809
|
# Attribute for field breakdown
|
486
810
|
attr_reader :breakdown
|
811
|
+
|
812
|
+
def self.inner_class_types
|
813
|
+
@inner_class_types = { breakdown: Breakdown }
|
814
|
+
end
|
815
|
+
|
816
|
+
def self.field_remappings
|
817
|
+
@field_remappings = {}
|
818
|
+
end
|
487
819
|
end
|
488
820
|
|
489
821
|
class ListParams < Stripe::RequestParams
|
@@ -2954,5 +3286,21 @@ module Stripe
|
|
2954
3286
|
opts: opts
|
2955
3287
|
)
|
2956
3288
|
end
|
3289
|
+
|
3290
|
+
def self.inner_class_types
|
3291
|
+
@inner_class_types = {
|
3292
|
+
automatic_tax: AutomaticTax,
|
3293
|
+
billing_details: BillingDetails,
|
3294
|
+
payment: Payment,
|
3295
|
+
shipping_cost: ShippingCost,
|
3296
|
+
shipping_details: ShippingDetails,
|
3297
|
+
tax_details: TaxDetails,
|
3298
|
+
total_details: TotalDetails,
|
3299
|
+
}
|
3300
|
+
end
|
3301
|
+
|
3302
|
+
def self.field_remappings
|
3303
|
+
@field_remappings = {}
|
3304
|
+
end
|
2957
3305
|
end
|
2958
3306
|
end
|