stripe 15.6.0.pre.alpha.1 → 15.6.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/API_VERSION +1 -1
- data/CHANGELOG.md +6 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/account.rb +443 -0
- data/lib/stripe/resources/account_link.rb +8 -0
- data/lib/stripe/resources/account_notice.rb +24 -0
- data/lib/stripe/resources/account_session.rb +435 -10
- data/lib/stripe/resources/apple_pay_domain.rb +8 -0
- data/lib/stripe/resources/application.rb +8 -0
- data/lib/stripe/resources/application_fee.rb +16 -0
- data/lib/stripe/resources/application_fee_refund.rb +8 -0
- data/lib/stripe/resources/apps/secret.rb +16 -0
- data/lib/stripe/resources/balance.rb +159 -0
- data/lib/stripe/resources/balance_settings.rb +40 -0
- data/lib/stripe/resources/balance_transaction.rb +16 -0
- data/lib/stripe/resources/bank_account.rb +40 -0
- data/lib/stripe/resources/billing/alert.rb +75 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +80 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
- data/lib/stripe/resources/billing/credit_grant.rb +72 -0
- data/lib/stripe/resources/billing/meter.rb +45 -0
- data/lib/stripe/resources/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage_row.rb +8 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
- data/lib/stripe/resources/billing_portal/session.rb +101 -0
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/capital/financing_offer.rb +24 -0
- data/lib/stripe/resources/capital/financing_summary.rb +24 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +24 -0
- data/lib/stripe/resources/card.rb +16 -0
- data/lib/stripe/resources/cash_balance.rb +16 -0
- data/lib/stripe/resources/charge.rb +1052 -16
- data/lib/stripe/resources/checkout/session.rb +950 -0
- data/lib/stripe/resources/climate/order.rb +32 -0
- data/lib/stripe/resources/climate/product.rb +16 -0
- data/lib/stripe/resources/climate/supplier.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +960 -38
- data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
- data/lib/stripe/resources/country_spec.rb +32 -0
- data/lib/stripe/resources/coupon.rb +36 -0
- data/lib/stripe/resources/credit_note.rb +70 -0
- data/lib/stripe/resources/credit_note_line_item.rb +53 -0
- data/lib/stripe/resources/customer.rb +77 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -0
- data/lib/stripe/resources/customer_session.rb +52 -0
- data/lib/stripe/resources/discount.rb +8 -0
- data/lib/stripe/resources/dispute.rb +166 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
- data/lib/stripe/resources/entitlements/feature.rb +8 -0
- data/lib/stripe/resources/ephemeral_key.rb +8 -0
- data/lib/stripe/resources/event.rb +56 -0
- data/lib/stripe/resources/exchange_rate.rb +8 -0
- data/lib/stripe/resources/file.rb +8 -0
- data/lib/stripe/resources/file_link.rb +8 -0
- data/lib/stripe/resources/financial_connections/account.rb +79 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
- data/lib/stripe/resources/financial_connections/institution.rb +53 -0
- data/lib/stripe/resources/financial_connections/session.rb +63 -1
- data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
- data/lib/stripe/resources/forwarding/request.rb +52 -0
- data/lib/stripe/resources/funding_instructions.rb +193 -0
- data/lib/stripe/resources/fx_quote.rb +48 -0
- data/lib/stripe/resources/identity/verification_report.rb +166 -1
- data/lib/stripe/resources/identity/verification_session.rb +126 -1
- data/lib/stripe/resources/invoice.rb +441 -3
- data/lib/stripe/resources/invoice_item.rb +88 -0
- data/lib/stripe/resources/invoice_line_item.rb +186 -0
- data/lib/stripe/resources/invoice_payment.rb +24 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
- data/lib/stripe/resources/issuing/authorization.rb +177 -0
- data/lib/stripe/resources/issuing/card.rb +96 -0
- data/lib/stripe/resources/issuing/cardholder.rb +110 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +82 -0
- data/lib/stripe/resources/issuing/dispute.rb +97 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +16 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +8 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
- data/lib/stripe/resources/issuing/settlement.rb +8 -0
- data/lib/stripe/resources/issuing/token.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +151 -0
- data/lib/stripe/resources/line_item.rb +54 -0
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +242 -11
- data/lib/stripe/resources/margin.rb +8 -0
- data/lib/stripe/resources/order.rb +348 -0
- data/lib/stripe/resources/payment_attempt_record.rb +890 -11
- data/lib/stripe/resources/payment_intent.rb +1405 -3
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +56 -0
- data/lib/stripe/resources/payment_link.rb +337 -0
- data/lib/stripe/resources/payment_method.rb +884 -38
- data/lib/stripe/resources/payment_method_configuration.rb +961 -0
- data/lib/stripe/resources/payment_method_domain.rb +111 -0
- data/lib/stripe/resources/payment_record.rb +890 -11
- data/lib/stripe/resources/payout.rb +16 -0
- data/lib/stripe/resources/person.rb +180 -0
- data/lib/stripe/resources/plan.rb +24 -0
- data/lib/stripe/resources/price.rb +79 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +16 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +16 -0
- data/lib/stripe/resources/product.rb +27 -0
- data/lib/stripe/resources/product_feature.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +24 -0
- data/lib/stripe/resources/quote.rb +432 -0
- data/lib/stripe/resources/quote_line.rb +247 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +450 -3
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +323 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
- data/lib/stripe/resources/radar/value_list.rb +8 -0
- data/lib/stripe/resources/radar/value_list_item.rb +8 -0
- data/lib/stripe/resources/refund.rb +380 -19
- data/lib/stripe/resources/reporting/report_run.rb +16 -0
- data/lib/stripe/resources/reporting/report_type.rb +8 -0
- data/lib/stripe/resources/reserve_transaction.rb +8 -0
- data/lib/stripe/resources/reversal.rb +8 -0
- data/lib/stripe/resources/review.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +331 -20
- data/lib/stripe/resources/setup_intent.rb +293 -2
- data/lib/stripe/resources/shipping_rate.rb +48 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
- data/lib/stripe/resources/source.rb +274 -0
- data/lib/stripe/resources/source_mandate_notification.rb +32 -0
- data/lib/stripe/resources/source_transaction.rb +54 -0
- data/lib/stripe/resources/subscription.rb +318 -3
- data/lib/stripe/resources/subscription_item.rb +24 -0
- data/lib/stripe/resources/subscription_schedule.rb +314 -0
- data/lib/stripe/resources/tax/association.rb +32 -0
- data/lib/stripe/resources/tax/calculation.rb +109 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
- data/lib/stripe/resources/tax/form.rb +107 -0
- data/lib/stripe/resources/tax/registration.rb +1232 -0
- data/lib/stripe/resources/tax/settings.rb +61 -1
- data/lib/stripe/resources/tax/transaction.rb +93 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
- data/lib/stripe/resources/tax_code.rb +8 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +24 -0
- data/lib/stripe/resources/tax_rate.rb +16 -0
- data/lib/stripe/resources/terminal/configuration.rb +299 -0
- data/lib/stripe/resources/terminal/connection_token.rb +8 -0
- data/lib/stripe/resources/terminal/location.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +24 -0
- data/lib/stripe/resources/terminal/reader.rb +241 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
- data/lib/stripe/resources/token.rb +8 -0
- data/lib/stripe/resources/topup.rb +8 -0
- data/lib/stripe/resources/transfer.rb +8 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
- data/lib/stripe/resources/treasury/financial_account.rb +61 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +192 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +114 -0
- data/lib/stripe/resources/treasury/received_credit.rb +97 -0
- data/lib/stripe/resources/treasury/received_debit.rb +89 -0
- data/lib/stripe/resources/treasury/transaction.rb +36 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +40 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +40 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +141 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +150 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +150 -2
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +8 -0
- data/lib/stripe/resources/v2/billing/intent.rb +27 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +195 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +24 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +8 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +24 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +8 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +36 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/profile.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +8 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +36 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +27 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +8 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +115 -0
- data/lib/stripe/resources/v2/core/account.rb +1900 -0
- data/lib/stripe/resources/v2/core/account_link.rb +51 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +24 -0
- data/lib/stripe/resources/v2/core/person.rb +201 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +40 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +8 -0
- data/lib/stripe/resources/v2/event.rb +24 -0
- data/lib/stripe/resources/v2/event_destination.rb +44 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +8 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +8 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +61 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +32 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +90 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +88 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +62 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +24 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +79 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +32 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +32 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +77 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +52 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +36 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +35 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +24 -0
- data/lib/stripe/resources/v2/reporting/report.rb +52 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +69 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +8 -0
- data/lib/stripe/resources/webhook_endpoint.rb +8 -0
- data/lib/stripe/stripe_object.rb +25 -1
- data/lib/stripe/util.rb +9 -5
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +280174 -0
- metadata +3 -2
@@ -29,21 +29,53 @@ module Stripe
|
|
29
29
|
attr_reader :submit_button
|
30
30
|
# Customize the default title for this input
|
31
31
|
attr_reader :title
|
32
|
+
|
33
|
+
def self.inner_class_types
|
34
|
+
@inner_class_types = {}
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.field_remappings
|
38
|
+
@field_remappings = {}
|
39
|
+
end
|
32
40
|
end
|
33
41
|
|
34
42
|
class Email < Stripe::StripeObject
|
35
43
|
# The collected email address
|
36
44
|
attr_reader :value
|
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 Numeric < Stripe::StripeObject
|
40
56
|
# The collected number
|
41
57
|
attr_reader :value
|
58
|
+
|
59
|
+
def self.inner_class_types
|
60
|
+
@inner_class_types = {}
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.field_remappings
|
64
|
+
@field_remappings = {}
|
65
|
+
end
|
42
66
|
end
|
43
67
|
|
44
68
|
class Phone < Stripe::StripeObject
|
45
69
|
# The collected phone number
|
46
70
|
attr_reader :value
|
71
|
+
|
72
|
+
def self.inner_class_types
|
73
|
+
@inner_class_types = {}
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.field_remappings
|
77
|
+
@field_remappings = {}
|
78
|
+
end
|
47
79
|
end
|
48
80
|
|
49
81
|
class Selection < Stripe::StripeObject
|
@@ -54,6 +86,14 @@ module Stripe
|
|
54
86
|
attr_reader :style
|
55
87
|
# The text to be selected
|
56
88
|
attr_reader :text
|
89
|
+
|
90
|
+
def self.inner_class_types
|
91
|
+
@inner_class_types = {}
|
92
|
+
end
|
93
|
+
|
94
|
+
def self.field_remappings
|
95
|
+
@field_remappings = {}
|
96
|
+
end
|
57
97
|
end
|
58
98
|
# List of possible choices to be selected
|
59
99
|
attr_reader :choices
|
@@ -61,16 +101,40 @@ module Stripe
|
|
61
101
|
attr_reader :id
|
62
102
|
# The text of the selected choice
|
63
103
|
attr_reader :text
|
104
|
+
|
105
|
+
def self.inner_class_types
|
106
|
+
@inner_class_types = { choices: Choice }
|
107
|
+
end
|
108
|
+
|
109
|
+
def self.field_remappings
|
110
|
+
@field_remappings = {}
|
111
|
+
end
|
64
112
|
end
|
65
113
|
|
66
114
|
class Signature < Stripe::StripeObject
|
67
115
|
# The File ID of a collected signature image
|
68
116
|
attr_reader :value
|
117
|
+
|
118
|
+
def self.inner_class_types
|
119
|
+
@inner_class_types = {}
|
120
|
+
end
|
121
|
+
|
122
|
+
def self.field_remappings
|
123
|
+
@field_remappings = {}
|
124
|
+
end
|
69
125
|
end
|
70
126
|
|
71
127
|
class Text < Stripe::StripeObject
|
72
128
|
# The collected text value
|
73
129
|
attr_reader :value
|
130
|
+
|
131
|
+
def self.inner_class_types
|
132
|
+
@inner_class_types = {}
|
133
|
+
end
|
134
|
+
|
135
|
+
def self.field_remappings
|
136
|
+
@field_remappings = {}
|
137
|
+
end
|
74
138
|
end
|
75
139
|
|
76
140
|
class Toggle < Stripe::StripeObject
|
@@ -82,6 +146,14 @@ module Stripe
|
|
82
146
|
attr_reader :title
|
83
147
|
# The toggle's collected value
|
84
148
|
attr_reader :value
|
149
|
+
|
150
|
+
def self.inner_class_types
|
151
|
+
@inner_class_types = {}
|
152
|
+
end
|
153
|
+
|
154
|
+
def self.field_remappings
|
155
|
+
@field_remappings = {}
|
156
|
+
end
|
85
157
|
end
|
86
158
|
# Default text of input being collected.
|
87
159
|
attr_reader :custom_text
|
@@ -105,11 +177,36 @@ module Stripe
|
|
105
177
|
attr_reader :toggles
|
106
178
|
# Type of input being collected.
|
107
179
|
attr_reader :type
|
180
|
+
|
181
|
+
def self.inner_class_types
|
182
|
+
@inner_class_types = {
|
183
|
+
custom_text: CustomText,
|
184
|
+
email: Email,
|
185
|
+
numeric: Numeric,
|
186
|
+
phone: Phone,
|
187
|
+
selection: Selection,
|
188
|
+
signature: Signature,
|
189
|
+
text: Text,
|
190
|
+
toggles: Toggle,
|
191
|
+
}
|
192
|
+
end
|
193
|
+
|
194
|
+
def self.field_remappings
|
195
|
+
@field_remappings = {}
|
196
|
+
end
|
108
197
|
end
|
109
198
|
# List of inputs to be collected.
|
110
199
|
attr_reader :inputs
|
111
200
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
112
201
|
attr_reader :metadata
|
202
|
+
|
203
|
+
def self.inner_class_types
|
204
|
+
@inner_class_types = { inputs: Input }
|
205
|
+
end
|
206
|
+
|
207
|
+
def self.field_remappings
|
208
|
+
@field_remappings = {}
|
209
|
+
end
|
113
210
|
end
|
114
211
|
|
115
212
|
class CollectPaymentMethod < Stripe::StripeObject
|
@@ -117,6 +214,14 @@ module Stripe
|
|
117
214
|
class Tipping < Stripe::StripeObject
|
118
215
|
# Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
|
119
216
|
attr_reader :amount_eligible
|
217
|
+
|
218
|
+
def self.inner_class_types
|
219
|
+
@inner_class_types = {}
|
220
|
+
end
|
221
|
+
|
222
|
+
def self.field_remappings
|
223
|
+
@field_remappings = {}
|
224
|
+
end
|
120
225
|
end
|
121
226
|
# Enable customer-initiated cancellation when processing this payment.
|
122
227
|
attr_reader :enable_customer_cancellation
|
@@ -124,6 +229,14 @@ module Stripe
|
|
124
229
|
attr_reader :skip_tipping
|
125
230
|
# Represents a per-transaction tipping configuration
|
126
231
|
attr_reader :tipping
|
232
|
+
|
233
|
+
def self.inner_class_types
|
234
|
+
@inner_class_types = { tipping: Tipping }
|
235
|
+
end
|
236
|
+
|
237
|
+
def self.field_remappings
|
238
|
+
@field_remappings = {}
|
239
|
+
end
|
127
240
|
end
|
128
241
|
# Account the payment intent belongs to.
|
129
242
|
attr_reader :account
|
@@ -137,12 +250,28 @@ module Stripe
|
|
137
250
|
#
|
138
251
|
# Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
|
139
252
|
attr_reader :payment_method
|
253
|
+
|
254
|
+
def self.inner_class_types
|
255
|
+
@inner_class_types = { collect_config: CollectConfig }
|
256
|
+
end
|
257
|
+
|
258
|
+
def self.field_remappings
|
259
|
+
@field_remappings = {}
|
260
|
+
end
|
140
261
|
end
|
141
262
|
|
142
263
|
class ConfirmPaymentIntent < Stripe::StripeObject
|
143
264
|
class ConfirmConfig < Stripe::StripeObject
|
144
265
|
# If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion.
|
145
266
|
attr_reader :return_url
|
267
|
+
|
268
|
+
def self.inner_class_types
|
269
|
+
@inner_class_types = {}
|
270
|
+
end
|
271
|
+
|
272
|
+
def self.field_remappings
|
273
|
+
@field_remappings = {}
|
274
|
+
end
|
146
275
|
end
|
147
276
|
# Account the payment intent belongs to.
|
148
277
|
attr_reader :account
|
@@ -150,6 +279,14 @@ module Stripe
|
|
150
279
|
attr_reader :confirm_config
|
151
280
|
# Most recent PaymentIntent processed by the reader.
|
152
281
|
attr_reader :payment_intent
|
282
|
+
|
283
|
+
def self.inner_class_types
|
284
|
+
@inner_class_types = { confirm_config: ConfirmConfig }
|
285
|
+
end
|
286
|
+
|
287
|
+
def self.field_remappings
|
288
|
+
@field_remappings = {}
|
289
|
+
end
|
153
290
|
end
|
154
291
|
|
155
292
|
class ProcessPaymentIntent < Stripe::StripeObject
|
@@ -157,6 +294,14 @@ module Stripe
|
|
157
294
|
class Tipping < Stripe::StripeObject
|
158
295
|
# Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
|
159
296
|
attr_reader :amount_eligible
|
297
|
+
|
298
|
+
def self.inner_class_types
|
299
|
+
@inner_class_types = {}
|
300
|
+
end
|
301
|
+
|
302
|
+
def self.field_remappings
|
303
|
+
@field_remappings = {}
|
304
|
+
end
|
160
305
|
end
|
161
306
|
# Enable customer-initiated cancellation when processing this payment.
|
162
307
|
attr_reader :enable_customer_cancellation
|
@@ -166,6 +311,14 @@ module Stripe
|
|
166
311
|
attr_reader :skip_tipping
|
167
312
|
# Represents a per-transaction tipping configuration
|
168
313
|
attr_reader :tipping
|
314
|
+
|
315
|
+
def self.inner_class_types
|
316
|
+
@inner_class_types = { tipping: Tipping }
|
317
|
+
end
|
318
|
+
|
319
|
+
def self.field_remappings
|
320
|
+
@field_remappings = {}
|
321
|
+
end
|
169
322
|
end
|
170
323
|
# Account the payment intent belongs to.
|
171
324
|
attr_reader :account
|
@@ -173,12 +326,28 @@ module Stripe
|
|
173
326
|
attr_reader :payment_intent
|
174
327
|
# Represents a per-transaction override of a reader configuration
|
175
328
|
attr_reader :process_config
|
329
|
+
|
330
|
+
def self.inner_class_types
|
331
|
+
@inner_class_types = { process_config: ProcessConfig }
|
332
|
+
end
|
333
|
+
|
334
|
+
def self.field_remappings
|
335
|
+
@field_remappings = {}
|
336
|
+
end
|
176
337
|
end
|
177
338
|
|
178
339
|
class ProcessSetupIntent < Stripe::StripeObject
|
179
340
|
class ProcessConfig < Stripe::StripeObject
|
180
341
|
# Enable customer-initiated cancellation when processing this SetupIntent.
|
181
342
|
attr_reader :enable_customer_cancellation
|
343
|
+
|
344
|
+
def self.inner_class_types
|
345
|
+
@inner_class_types = {}
|
346
|
+
end
|
347
|
+
|
348
|
+
def self.field_remappings
|
349
|
+
@field_remappings = {}
|
350
|
+
end
|
182
351
|
end
|
183
352
|
# ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
|
184
353
|
attr_reader :generated_card
|
@@ -186,12 +355,28 @@ module Stripe
|
|
186
355
|
attr_reader :process_config
|
187
356
|
# Most recent SetupIntent processed by the reader.
|
188
357
|
attr_reader :setup_intent
|
358
|
+
|
359
|
+
def self.inner_class_types
|
360
|
+
@inner_class_types = { process_config: ProcessConfig }
|
361
|
+
end
|
362
|
+
|
363
|
+
def self.field_remappings
|
364
|
+
@field_remappings = {}
|
365
|
+
end
|
189
366
|
end
|
190
367
|
|
191
368
|
class RefundPayment < Stripe::StripeObject
|
192
369
|
class RefundPaymentConfig < Stripe::StripeObject
|
193
370
|
# Enable customer-initiated cancellation when refunding this payment.
|
194
371
|
attr_reader :enable_customer_cancellation
|
372
|
+
|
373
|
+
def self.inner_class_types
|
374
|
+
@inner_class_types = {}
|
375
|
+
end
|
376
|
+
|
377
|
+
def self.field_remappings
|
378
|
+
@field_remappings = {}
|
379
|
+
end
|
195
380
|
end
|
196
381
|
# Account the payment intent belongs to.
|
197
382
|
attr_reader :account
|
@@ -213,6 +398,14 @@ module Stripe
|
|
213
398
|
attr_reader :refund_payment_config
|
214
399
|
# Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge.
|
215
400
|
attr_reader :reverse_transfer
|
401
|
+
|
402
|
+
def self.inner_class_types
|
403
|
+
@inner_class_types = { refund_payment_config: RefundPaymentConfig }
|
404
|
+
end
|
405
|
+
|
406
|
+
def self.field_remappings
|
407
|
+
@field_remappings = {}
|
408
|
+
end
|
216
409
|
end
|
217
410
|
|
218
411
|
class SetReaderDisplay < Stripe::StripeObject
|
@@ -224,6 +417,14 @@ module Stripe
|
|
224
417
|
attr_reader :description
|
225
418
|
# The quantity of the line item.
|
226
419
|
attr_reader :quantity
|
420
|
+
|
421
|
+
def self.inner_class_types
|
422
|
+
@inner_class_types = {}
|
423
|
+
end
|
424
|
+
|
425
|
+
def self.field_remappings
|
426
|
+
@field_remappings = {}
|
427
|
+
end
|
227
428
|
end
|
228
429
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
229
430
|
attr_reader :currency
|
@@ -233,11 +434,27 @@ module Stripe
|
|
233
434
|
attr_reader :tax
|
234
435
|
# Total amount for the entire cart, including tax. A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
235
436
|
attr_reader :total
|
437
|
+
|
438
|
+
def self.inner_class_types
|
439
|
+
@inner_class_types = { line_items: LineItem }
|
440
|
+
end
|
441
|
+
|
442
|
+
def self.field_remappings
|
443
|
+
@field_remappings = {}
|
444
|
+
end
|
236
445
|
end
|
237
446
|
# Cart object to be displayed by the reader.
|
238
447
|
attr_reader :cart
|
239
448
|
# Type of information to be displayed by the reader.
|
240
449
|
attr_reader :type
|
450
|
+
|
451
|
+
def self.inner_class_types
|
452
|
+
@inner_class_types = { cart: Cart }
|
453
|
+
end
|
454
|
+
|
455
|
+
def self.field_remappings
|
456
|
+
@field_remappings = {}
|
457
|
+
end
|
241
458
|
end
|
242
459
|
# Represents a reader action to collect customer inputs
|
243
460
|
attr_reader :collect_inputs
|
@@ -261,6 +478,22 @@ module Stripe
|
|
261
478
|
attr_reader :status
|
262
479
|
# Type of action performed by the reader.
|
263
480
|
attr_reader :type
|
481
|
+
|
482
|
+
def self.inner_class_types
|
483
|
+
@inner_class_types = {
|
484
|
+
collect_inputs: CollectInputs,
|
485
|
+
collect_payment_method: CollectPaymentMethod,
|
486
|
+
confirm_payment_intent: ConfirmPaymentIntent,
|
487
|
+
process_payment_intent: ProcessPaymentIntent,
|
488
|
+
process_setup_intent: ProcessSetupIntent,
|
489
|
+
refund_payment: RefundPayment,
|
490
|
+
set_reader_display: SetReaderDisplay,
|
491
|
+
}
|
492
|
+
end
|
493
|
+
|
494
|
+
def self.field_remappings
|
495
|
+
@field_remappings = {}
|
496
|
+
end
|
264
497
|
end
|
265
498
|
|
266
499
|
class DeleteParams < Stripe::RequestParams; end
|
@@ -1074,6 +1307,14 @@ module Stripe
|
|
1074
1307
|
)
|
1075
1308
|
end
|
1076
1309
|
end
|
1310
|
+
|
1311
|
+
def self.inner_class_types
|
1312
|
+
@inner_class_types = { action: Action }
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
def self.field_remappings
|
1316
|
+
@field_remappings = {}
|
1317
|
+
end
|
1077
1318
|
end
|
1078
1319
|
end
|
1079
1320
|
end
|
@@ -13,6 +13,14 @@ module Stripe
|
|
13
13
|
class Magstripe < Stripe::StripeObject
|
14
14
|
# The raw magstripe data collected by the reader.
|
15
15
|
attr_reader :data
|
16
|
+
|
17
|
+
def self.inner_class_types
|
18
|
+
@inner_class_types = {}
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.field_remappings
|
22
|
+
@field_remappings = {}
|
23
|
+
end
|
16
24
|
end
|
17
25
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
18
26
|
attr_reader :created
|
@@ -26,6 +34,14 @@ module Stripe
|
|
26
34
|
attr_reader :object
|
27
35
|
# The type of data collected by the reader.
|
28
36
|
attr_reader :type
|
37
|
+
|
38
|
+
def self.inner_class_types
|
39
|
+
@inner_class_types = { magstripe: Magstripe }
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.field_remappings
|
43
|
+
@field_remappings = {}
|
44
|
+
end
|
29
45
|
end
|
30
46
|
end
|
31
47
|
end
|
@@ -20,9 +20,25 @@ module Stripe
|
|
20
20
|
class Advancing < Stripe::StripeObject
|
21
21
|
# The `frozen_time` that the Test Clock is advancing towards.
|
22
22
|
attr_reader :target_frozen_time
|
23
|
+
|
24
|
+
def self.inner_class_types
|
25
|
+
@inner_class_types = {}
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.field_remappings
|
29
|
+
@field_remappings = {}
|
30
|
+
end
|
23
31
|
end
|
24
32
|
# Attribute for field advancing
|
25
33
|
attr_reader :advancing
|
34
|
+
|
35
|
+
def self.inner_class_types
|
36
|
+
@inner_class_types = { advancing: Advancing }
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.field_remappings
|
40
|
+
@field_remappings = {}
|
41
|
+
end
|
26
42
|
end
|
27
43
|
|
28
44
|
class DeleteParams < Stripe::RequestParams; end
|
@@ -151,6 +167,14 @@ module Stripe
|
|
151
167
|
opts: opts
|
152
168
|
)
|
153
169
|
end
|
170
|
+
|
171
|
+
def self.inner_class_types
|
172
|
+
@inner_class_types = { status_details: StatusDetails }
|
173
|
+
end
|
174
|
+
|
175
|
+
def self.field_remappings
|
176
|
+
@field_remappings = {}
|
177
|
+
end
|
154
178
|
end
|
155
179
|
end
|
156
180
|
end
|
@@ -1255,5 +1255,13 @@ module Stripe
|
|
1255
1255
|
def self.create(params = {}, opts = {})
|
1256
1256
|
request_stripe_object(method: :post, path: "/v1/tokens", params: params, opts: opts)
|
1257
1257
|
end
|
1258
|
+
|
1259
|
+
def self.inner_class_types
|
1260
|
+
@inner_class_types = {}
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
def self.field_remappings
|
1264
|
+
@field_remappings = {}
|
1265
|
+
end
|
1258
1266
|
end
|
1259
1267
|
end
|
@@ -16,6 +16,14 @@ module Stripe
|
|
16
16
|
class StatusTransitions < Stripe::StripeObject
|
17
17
|
# Timestamp describing when the CreditReversal changed status to `posted`
|
18
18
|
attr_reader :posted_at
|
19
|
+
|
20
|
+
def self.inner_class_types
|
21
|
+
@inner_class_types = {}
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.field_remappings
|
25
|
+
@field_remappings = {}
|
26
|
+
end
|
19
27
|
end
|
20
28
|
|
21
29
|
class ListParams < Stripe::RequestParams
|
@@ -115,6 +123,14 @@ module Stripe
|
|
115
123
|
opts: opts
|
116
124
|
)
|
117
125
|
end
|
126
|
+
|
127
|
+
def self.inner_class_types
|
128
|
+
@inner_class_types = { status_transitions: StatusTransitions }
|
129
|
+
end
|
130
|
+
|
131
|
+
def self.field_remappings
|
132
|
+
@field_remappings = {}
|
133
|
+
end
|
118
134
|
end
|
119
135
|
end
|
120
136
|
end
|
@@ -16,11 +16,27 @@ module Stripe
|
|
16
16
|
class LinkedFlows < Stripe::StripeObject
|
17
17
|
# Set if there is an Issuing dispute associated with the DebitReversal.
|
18
18
|
attr_reader :issuing_dispute
|
19
|
+
|
20
|
+
def self.inner_class_types
|
21
|
+
@inner_class_types = {}
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.field_remappings
|
25
|
+
@field_remappings = {}
|
26
|
+
end
|
19
27
|
end
|
20
28
|
|
21
29
|
class StatusTransitions < Stripe::StripeObject
|
22
30
|
# Timestamp describing when the DebitReversal changed status to `completed`.
|
23
31
|
attr_reader :completed_at
|
32
|
+
|
33
|
+
def self.inner_class_types
|
34
|
+
@inner_class_types = {}
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.field_remappings
|
38
|
+
@field_remappings = {}
|
39
|
+
end
|
24
40
|
end
|
25
41
|
|
26
42
|
class ListParams < Stripe::RequestParams
|
@@ -126,6 +142,14 @@ module Stripe
|
|
126
142
|
opts: opts
|
127
143
|
)
|
128
144
|
end
|
145
|
+
|
146
|
+
def self.inner_class_types
|
147
|
+
@inner_class_types = { linked_flows: LinkedFlows, status_transitions: StatusTransitions }
|
148
|
+
end
|
149
|
+
|
150
|
+
def self.field_remappings
|
151
|
+
@field_remappings = {}
|
152
|
+
end
|
129
153
|
end
|
130
154
|
end
|
131
155
|
end
|
@@ -22,6 +22,14 @@ module Stripe
|
|
22
22
|
attr_reader :inbound_pending
|
23
23
|
# Funds in the account, but not spendable because they are being held for pending outbound flows.
|
24
24
|
attr_reader :outbound_pending
|
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 FinancialAddress < Stripe::StripeObject
|
@@ -36,6 +44,14 @@ module Stripe
|
|
36
44
|
attr_reader :bank_name
|
37
45
|
# Routing number for the account.
|
38
46
|
attr_reader :routing_number
|
47
|
+
|
48
|
+
def self.inner_class_types
|
49
|
+
@inner_class_types = {}
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.field_remappings
|
53
|
+
@field_remappings = {}
|
54
|
+
end
|
39
55
|
end
|
40
56
|
# ABA Records contain U.S. bank account details per the ABA format.
|
41
57
|
attr_reader :aba
|
@@ -43,6 +59,14 @@ module Stripe
|
|
43
59
|
attr_reader :supported_networks
|
44
60
|
# The type of financial address
|
45
61
|
attr_reader :type
|
62
|
+
|
63
|
+
def self.inner_class_types
|
64
|
+
@inner_class_types = { aba: Aba }
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.field_remappings
|
68
|
+
@field_remappings = {}
|
69
|
+
end
|
46
70
|
end
|
47
71
|
|
48
72
|
class PlatformRestrictions < Stripe::StripeObject
|
@@ -50,15 +74,39 @@ module Stripe
|
|
50
74
|
attr_reader :inbound_flows
|
51
75
|
# Restricts all outbound money movement.
|
52
76
|
attr_reader :outbound_flows
|
77
|
+
|
78
|
+
def self.inner_class_types
|
79
|
+
@inner_class_types = {}
|
80
|
+
end
|
81
|
+
|
82
|
+
def self.field_remappings
|
83
|
+
@field_remappings = {}
|
84
|
+
end
|
53
85
|
end
|
54
86
|
|
55
87
|
class StatusDetails < Stripe::StripeObject
|
56
88
|
class Closed < Stripe::StripeObject
|
57
89
|
# The array that contains reasons for a FinancialAccount closure.
|
58
90
|
attr_reader :reasons
|
91
|
+
|
92
|
+
def self.inner_class_types
|
93
|
+
@inner_class_types = {}
|
94
|
+
end
|
95
|
+
|
96
|
+
def self.field_remappings
|
97
|
+
@field_remappings = {}
|
98
|
+
end
|
59
99
|
end
|
60
100
|
# Details related to the closure of this FinancialAccount
|
61
101
|
attr_reader :closed
|
102
|
+
|
103
|
+
def self.inner_class_types
|
104
|
+
@inner_class_types = { closed: Closed }
|
105
|
+
end
|
106
|
+
|
107
|
+
def self.field_remappings
|
108
|
+
@field_remappings = {}
|
109
|
+
end
|
62
110
|
end
|
63
111
|
|
64
112
|
class ListParams < Stripe::RequestParams
|
@@ -851,6 +899,19 @@ module Stripe
|
|
851
899
|
opts: opts
|
852
900
|
)
|
853
901
|
end
|
902
|
+
|
903
|
+
def self.inner_class_types
|
904
|
+
@inner_class_types = {
|
905
|
+
balance: Balance,
|
906
|
+
financial_addresses: FinancialAddress,
|
907
|
+
platform_restrictions: PlatformRestrictions,
|
908
|
+
status_details: StatusDetails,
|
909
|
+
}
|
910
|
+
end
|
911
|
+
|
912
|
+
def self.field_remappings
|
913
|
+
@field_remappings = {}
|
914
|
+
end
|
854
915
|
end
|
855
916
|
end
|
856
917
|
end
|