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
@@ -21,6 +21,14 @@ module Stripe
|
|
21
21
|
attr_reader :privacy_policy_url
|
22
22
|
# A link to the business’s publicly available terms of service.
|
23
23
|
attr_reader :terms_of_service_url
|
24
|
+
|
25
|
+
def self.inner_class_types
|
26
|
+
@inner_class_types = {}
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.field_remappings
|
30
|
+
@field_remappings = {}
|
31
|
+
end
|
24
32
|
end
|
25
33
|
|
26
34
|
class Features < Stripe::StripeObject
|
@@ -29,16 +37,40 @@ module Stripe
|
|
29
37
|
attr_reader :allowed_updates
|
30
38
|
# Whether the feature is enabled.
|
31
39
|
attr_reader :enabled
|
40
|
+
|
41
|
+
def self.inner_class_types
|
42
|
+
@inner_class_types = {}
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.field_remappings
|
46
|
+
@field_remappings = {}
|
47
|
+
end
|
32
48
|
end
|
33
49
|
|
34
50
|
class InvoiceHistory < Stripe::StripeObject
|
35
51
|
# Whether the feature is enabled.
|
36
52
|
attr_reader :enabled
|
53
|
+
|
54
|
+
def self.inner_class_types
|
55
|
+
@inner_class_types = {}
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.field_remappings
|
59
|
+
@field_remappings = {}
|
60
|
+
end
|
37
61
|
end
|
38
62
|
|
39
63
|
class PaymentMethodUpdate < Stripe::StripeObject
|
40
64
|
# Whether the feature is enabled.
|
41
65
|
attr_reader :enabled
|
66
|
+
|
67
|
+
def self.inner_class_types
|
68
|
+
@inner_class_types = {}
|
69
|
+
end
|
70
|
+
|
71
|
+
def self.field_remappings
|
72
|
+
@field_remappings = {}
|
73
|
+
end
|
42
74
|
end
|
43
75
|
|
44
76
|
class SubscriptionCancel < Stripe::StripeObject
|
@@ -47,6 +79,14 @@ module Stripe
|
|
47
79
|
attr_reader :enabled
|
48
80
|
# Which cancellation reasons will be given as options to the customer.
|
49
81
|
attr_reader :options
|
82
|
+
|
83
|
+
def self.inner_class_types
|
84
|
+
@inner_class_types = {}
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.field_remappings
|
88
|
+
@field_remappings = {}
|
89
|
+
end
|
50
90
|
end
|
51
91
|
# Attribute for field cancellation_reason
|
52
92
|
attr_reader :cancellation_reason
|
@@ -56,6 +96,14 @@ module Stripe
|
|
56
96
|
attr_reader :mode
|
57
97
|
# Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`.
|
58
98
|
attr_reader :proration_behavior
|
99
|
+
|
100
|
+
def self.inner_class_types
|
101
|
+
@inner_class_types = { cancellation_reason: CancellationReason }
|
102
|
+
end
|
103
|
+
|
104
|
+
def self.field_remappings
|
105
|
+
@field_remappings = {}
|
106
|
+
end
|
59
107
|
end
|
60
108
|
|
61
109
|
class SubscriptionUpdate < Stripe::StripeObject
|
@@ -67,6 +115,14 @@ module Stripe
|
|
67
115
|
attr_reader :maximum
|
68
116
|
# The minimum quantity that can be set for the product.
|
69
117
|
attr_reader :minimum
|
118
|
+
|
119
|
+
def self.inner_class_types
|
120
|
+
@inner_class_types = {}
|
121
|
+
end
|
122
|
+
|
123
|
+
def self.field_remappings
|
124
|
+
@field_remappings = {}
|
125
|
+
end
|
70
126
|
end
|
71
127
|
# Attribute for field adjustable_quantity
|
72
128
|
attr_reader :adjustable_quantity
|
@@ -74,15 +130,39 @@ module Stripe
|
|
74
130
|
attr_reader :prices
|
75
131
|
# The product ID.
|
76
132
|
attr_reader :product
|
133
|
+
|
134
|
+
def self.inner_class_types
|
135
|
+
@inner_class_types = { adjustable_quantity: AdjustableQuantity }
|
136
|
+
end
|
137
|
+
|
138
|
+
def self.field_remappings
|
139
|
+
@field_remappings = {}
|
140
|
+
end
|
77
141
|
end
|
78
142
|
|
79
143
|
class ScheduleAtPeriodEnd < Stripe::StripeObject
|
80
144
|
class Condition < Stripe::StripeObject
|
81
145
|
# The type of condition.
|
82
146
|
attr_reader :type
|
147
|
+
|
148
|
+
def self.inner_class_types
|
149
|
+
@inner_class_types = {}
|
150
|
+
end
|
151
|
+
|
152
|
+
def self.field_remappings
|
153
|
+
@field_remappings = {}
|
154
|
+
end
|
83
155
|
end
|
84
156
|
# List of conditions. When any condition is true, an update will be scheduled at the end of the current period.
|
85
157
|
attr_reader :conditions
|
158
|
+
|
159
|
+
def self.inner_class_types
|
160
|
+
@inner_class_types = { conditions: Condition }
|
161
|
+
end
|
162
|
+
|
163
|
+
def self.field_remappings
|
164
|
+
@field_remappings = {}
|
165
|
+
end
|
86
166
|
end
|
87
167
|
# The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable.
|
88
168
|
attr_reader :default_allowed_updates
|
@@ -94,6 +174,14 @@ module Stripe
|
|
94
174
|
attr_reader :proration_behavior
|
95
175
|
# Attribute for field schedule_at_period_end
|
96
176
|
attr_reader :schedule_at_period_end
|
177
|
+
|
178
|
+
def self.inner_class_types
|
179
|
+
@inner_class_types = { products: Product, schedule_at_period_end: ScheduleAtPeriodEnd }
|
180
|
+
end
|
181
|
+
|
182
|
+
def self.field_remappings
|
183
|
+
@field_remappings = {}
|
184
|
+
end
|
97
185
|
end
|
98
186
|
# Attribute for field customer_update
|
99
187
|
attr_reader :customer_update
|
@@ -105,6 +193,20 @@ module Stripe
|
|
105
193
|
attr_reader :subscription_cancel
|
106
194
|
# Attribute for field subscription_update
|
107
195
|
attr_reader :subscription_update
|
196
|
+
|
197
|
+
def self.inner_class_types
|
198
|
+
@inner_class_types = {
|
199
|
+
customer_update: CustomerUpdate,
|
200
|
+
invoice_history: InvoiceHistory,
|
201
|
+
payment_method_update: PaymentMethodUpdate,
|
202
|
+
subscription_cancel: SubscriptionCancel,
|
203
|
+
subscription_update: SubscriptionUpdate,
|
204
|
+
}
|
205
|
+
end
|
206
|
+
|
207
|
+
def self.field_remappings
|
208
|
+
@field_remappings = {}
|
209
|
+
end
|
108
210
|
end
|
109
211
|
|
110
212
|
class LoginPage < Stripe::StripeObject
|
@@ -114,6 +216,14 @@ module Stripe
|
|
114
216
|
attr_reader :enabled
|
115
217
|
# A shareable URL to the hosted portal login page. Your customers will be able to log in with their [email](https://stripe.com/docs/api/customers/object#customer_object-email) and receive a link to their customer portal.
|
116
218
|
attr_reader :url
|
219
|
+
|
220
|
+
def self.inner_class_types
|
221
|
+
@inner_class_types = {}
|
222
|
+
end
|
223
|
+
|
224
|
+
def self.field_remappings
|
225
|
+
@field_remappings = {}
|
226
|
+
end
|
117
227
|
end
|
118
228
|
|
119
229
|
class ListParams < Stripe::RequestParams
|
@@ -650,6 +760,18 @@ module Stripe
|
|
650
760
|
opts: opts
|
651
761
|
)
|
652
762
|
end
|
763
|
+
|
764
|
+
def self.inner_class_types
|
765
|
+
@inner_class_types = {
|
766
|
+
business_profile: BusinessProfile,
|
767
|
+
features: Features,
|
768
|
+
login_page: LoginPage,
|
769
|
+
}
|
770
|
+
end
|
771
|
+
|
772
|
+
def self.field_remappings
|
773
|
+
@field_remappings = {}
|
774
|
+
end
|
653
775
|
end
|
654
776
|
end
|
655
777
|
end
|
@@ -30,11 +30,27 @@ module Stripe
|
|
30
30
|
class HostedConfirmation < Stripe::StripeObject
|
31
31
|
# A custom message to display to the customer after the flow is completed.
|
32
32
|
attr_reader :custom_message
|
33
|
+
|
34
|
+
def self.inner_class_types
|
35
|
+
@inner_class_types = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.field_remappings
|
39
|
+
@field_remappings = {}
|
40
|
+
end
|
33
41
|
end
|
34
42
|
|
35
43
|
class Redirect < Stripe::StripeObject
|
36
44
|
# The URL the customer will be redirected to after the flow is completed.
|
37
45
|
attr_reader :return_url
|
46
|
+
|
47
|
+
def self.inner_class_types
|
48
|
+
@inner_class_types = {}
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.field_remappings
|
52
|
+
@field_remappings = {}
|
53
|
+
end
|
38
54
|
end
|
39
55
|
# Configuration when `after_completion.type=hosted_confirmation`.
|
40
56
|
attr_reader :hosted_confirmation
|
@@ -42,6 +58,14 @@ module Stripe
|
|
42
58
|
attr_reader :redirect
|
43
59
|
# The specified type of behavior after the flow is completed.
|
44
60
|
attr_reader :type
|
61
|
+
|
62
|
+
def self.inner_class_types
|
63
|
+
@inner_class_types = { hosted_confirmation: HostedConfirmation, redirect: Redirect }
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.field_remappings
|
67
|
+
@field_remappings = {}
|
68
|
+
end
|
45
69
|
end
|
46
70
|
|
47
71
|
class SubscriptionCancel < Stripe::StripeObject
|
@@ -49,21 +73,53 @@ module Stripe
|
|
49
73
|
class CouponOffer < Stripe::StripeObject
|
50
74
|
# The ID of the coupon to be offered.
|
51
75
|
attr_reader :coupon
|
76
|
+
|
77
|
+
def self.inner_class_types
|
78
|
+
@inner_class_types = {}
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.field_remappings
|
82
|
+
@field_remappings = {}
|
83
|
+
end
|
52
84
|
end
|
53
85
|
# Configuration when `retention.type=coupon_offer`.
|
54
86
|
attr_reader :coupon_offer
|
55
87
|
# Type of retention strategy that will be used.
|
56
88
|
attr_reader :type
|
89
|
+
|
90
|
+
def self.inner_class_types
|
91
|
+
@inner_class_types = { coupon_offer: CouponOffer }
|
92
|
+
end
|
93
|
+
|
94
|
+
def self.field_remappings
|
95
|
+
@field_remappings = {}
|
96
|
+
end
|
57
97
|
end
|
58
98
|
# Specify a retention strategy to be used in the cancellation flow.
|
59
99
|
attr_reader :retention
|
60
100
|
# The ID of the subscription to be canceled.
|
61
101
|
attr_reader :subscription
|
102
|
+
|
103
|
+
def self.inner_class_types
|
104
|
+
@inner_class_types = { retention: Retention }
|
105
|
+
end
|
106
|
+
|
107
|
+
def self.field_remappings
|
108
|
+
@field_remappings = {}
|
109
|
+
end
|
62
110
|
end
|
63
111
|
|
64
112
|
class SubscriptionUpdate < Stripe::StripeObject
|
65
113
|
# The ID of the subscription to be updated.
|
66
114
|
attr_reader :subscription
|
115
|
+
|
116
|
+
def self.inner_class_types
|
117
|
+
@inner_class_types = {}
|
118
|
+
end
|
119
|
+
|
120
|
+
def self.field_remappings
|
121
|
+
@field_remappings = {}
|
122
|
+
end
|
67
123
|
end
|
68
124
|
|
69
125
|
class SubscriptionUpdateConfirm < Stripe::StripeObject
|
@@ -72,6 +128,14 @@ module Stripe
|
|
72
128
|
attr_reader :coupon
|
73
129
|
# The ID of a promotion code to apply to this subscription update.
|
74
130
|
attr_reader :promotion_code
|
131
|
+
|
132
|
+
def self.inner_class_types
|
133
|
+
@inner_class_types = {}
|
134
|
+
end
|
135
|
+
|
136
|
+
def self.field_remappings
|
137
|
+
@field_remappings = {}
|
138
|
+
end
|
75
139
|
end
|
76
140
|
|
77
141
|
class Item < Stripe::StripeObject
|
@@ -81,6 +145,14 @@ module Stripe
|
|
81
145
|
attr_reader :price
|
82
146
|
# [Quantity](https://stripe.com/docs/subscriptions/quantities) for this item that the customer should subscribe to through this flow.
|
83
147
|
attr_reader :quantity
|
148
|
+
|
149
|
+
def self.inner_class_types
|
150
|
+
@inner_class_types = {}
|
151
|
+
end
|
152
|
+
|
153
|
+
def self.field_remappings
|
154
|
+
@field_remappings = {}
|
155
|
+
end
|
84
156
|
end
|
85
157
|
# The coupon or promotion code to apply to this subscription update.
|
86
158
|
attr_reader :discounts
|
@@ -88,6 +160,14 @@ module Stripe
|
|
88
160
|
attr_reader :items
|
89
161
|
# The ID of the subscription to be updated.
|
90
162
|
attr_reader :subscription
|
163
|
+
|
164
|
+
def self.inner_class_types
|
165
|
+
@inner_class_types = { discounts: Discount, items: Item }
|
166
|
+
end
|
167
|
+
|
168
|
+
def self.field_remappings
|
169
|
+
@field_remappings = {}
|
170
|
+
end
|
91
171
|
end
|
92
172
|
# Attribute for field after_completion
|
93
173
|
attr_reader :after_completion
|
@@ -99,6 +179,19 @@ module Stripe
|
|
99
179
|
attr_reader :subscription_update_confirm
|
100
180
|
# Type of flow that the customer will go through.
|
101
181
|
attr_reader :type
|
182
|
+
|
183
|
+
def self.inner_class_types
|
184
|
+
@inner_class_types = {
|
185
|
+
after_completion: AfterCompletion,
|
186
|
+
subscription_cancel: SubscriptionCancel,
|
187
|
+
subscription_update: SubscriptionUpdate,
|
188
|
+
subscription_update_confirm: SubscriptionUpdateConfirm,
|
189
|
+
}
|
190
|
+
end
|
191
|
+
|
192
|
+
def self.field_remappings
|
193
|
+
@field_remappings = {}
|
194
|
+
end
|
102
195
|
end
|
103
196
|
|
104
197
|
class CreateParams < Stripe::RequestParams
|
@@ -311,6 +404,14 @@ module Stripe
|
|
311
404
|
opts: opts
|
312
405
|
)
|
313
406
|
end
|
407
|
+
|
408
|
+
def self.inner_class_types
|
409
|
+
@inner_class_types = { flow: Flow }
|
410
|
+
end
|
411
|
+
|
412
|
+
def self.field_remappings
|
413
|
+
@field_remappings = {}
|
414
|
+
end
|
314
415
|
end
|
315
416
|
end
|
316
417
|
end
|
@@ -19,6 +19,14 @@ module Stripe
|
|
19
19
|
attr_reader :alternative_fields_due
|
20
20
|
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
21
21
|
attr_reader :original_fields_due
|
22
|
+
|
23
|
+
def self.inner_class_types
|
24
|
+
@inner_class_types = {}
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.field_remappings
|
28
|
+
@field_remappings = {}
|
29
|
+
end
|
22
30
|
end
|
23
31
|
|
24
32
|
class Error < Stripe::StripeObject
|
@@ -28,6 +36,14 @@ module Stripe
|
|
28
36
|
attr_reader :reason
|
29
37
|
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
30
38
|
attr_reader :requirement
|
39
|
+
|
40
|
+
def self.inner_class_types
|
41
|
+
@inner_class_types = {}
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.field_remappings
|
45
|
+
@field_remappings = {}
|
46
|
+
end
|
31
47
|
end
|
32
48
|
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
33
49
|
attr_reader :alternatives
|
@@ -45,6 +61,14 @@ module Stripe
|
|
45
61
|
attr_reader :past_due
|
46
62
|
# 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.
|
47
63
|
attr_reader :pending_verification
|
64
|
+
|
65
|
+
def self.inner_class_types
|
66
|
+
@inner_class_types = { alternatives: Alternative, errors: Error }
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.field_remappings
|
70
|
+
@field_remappings = {}
|
71
|
+
end
|
48
72
|
end
|
49
73
|
|
50
74
|
class Requirements < Stripe::StripeObject
|
@@ -53,6 +77,14 @@ module Stripe
|
|
53
77
|
attr_reader :alternative_fields_due
|
54
78
|
# Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
|
55
79
|
attr_reader :original_fields_due
|
80
|
+
|
81
|
+
def self.inner_class_types
|
82
|
+
@inner_class_types = {}
|
83
|
+
end
|
84
|
+
|
85
|
+
def self.field_remappings
|
86
|
+
@field_remappings = {}
|
87
|
+
end
|
56
88
|
end
|
57
89
|
|
58
90
|
class Error < Stripe::StripeObject
|
@@ -62,6 +94,14 @@ module Stripe
|
|
62
94
|
attr_reader :reason
|
63
95
|
# The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
64
96
|
attr_reader :requirement
|
97
|
+
|
98
|
+
def self.inner_class_types
|
99
|
+
@inner_class_types = {}
|
100
|
+
end
|
101
|
+
|
102
|
+
def self.field_remappings
|
103
|
+
@field_remappings = {}
|
104
|
+
end
|
65
105
|
end
|
66
106
|
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
67
107
|
attr_reader :alternatives
|
@@ -79,6 +119,14 @@ module Stripe
|
|
79
119
|
attr_reader :past_due
|
80
120
|
# 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.
|
81
121
|
attr_reader :pending_verification
|
122
|
+
|
123
|
+
def self.inner_class_types
|
124
|
+
@inner_class_types = { alternatives: Alternative, errors: Error }
|
125
|
+
end
|
126
|
+
|
127
|
+
def self.field_remappings
|
128
|
+
@field_remappings = {}
|
129
|
+
end
|
82
130
|
end
|
83
131
|
# The account for which the capability enables functionality.
|
84
132
|
attr_reader :account
|
@@ -119,5 +167,13 @@ module Stripe
|
|
119
167
|
"capability using `Account.update_capability('account_id', " \
|
120
168
|
"'capability_id', update_params)`"
|
121
169
|
end
|
170
|
+
|
171
|
+
def self.inner_class_types
|
172
|
+
@inner_class_types = { future_requirements: FutureRequirements, requirements: Requirements }
|
173
|
+
end
|
174
|
+
|
175
|
+
def self.field_remappings
|
176
|
+
@field_remappings = {}
|
177
|
+
end
|
122
178
|
end
|
123
179
|
end
|
@@ -25,6 +25,14 @@ module Stripe
|
|
25
25
|
attr_reader :previous_financing_fee_discount_amount
|
26
26
|
# Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
27
27
|
attr_reader :withhold_rate
|
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 OfferedTerms < Stripe::StripeObject
|
@@ -43,6 +51,14 @@ module Stripe
|
|
43
51
|
attr_reader :previous_financing_fee_discount_rate
|
44
52
|
# Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
45
53
|
attr_reader :withhold_rate
|
54
|
+
|
55
|
+
def self.inner_class_types
|
56
|
+
@inner_class_types = {}
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.field_remappings
|
60
|
+
@field_remappings = {}
|
61
|
+
end
|
46
62
|
end
|
47
63
|
|
48
64
|
class ListParams < Stripe::RequestParams
|
@@ -174,6 +190,14 @@ module Stripe
|
|
174
190
|
opts: opts
|
175
191
|
)
|
176
192
|
end
|
193
|
+
|
194
|
+
def self.inner_class_types
|
195
|
+
@inner_class_types = { accepted_terms: AcceptedTerms, offered_terms: OfferedTerms }
|
196
|
+
end
|
197
|
+
|
198
|
+
def self.field_remappings
|
199
|
+
@field_remappings = {}
|
200
|
+
end
|
177
201
|
end
|
178
202
|
end
|
179
203
|
end
|
@@ -20,6 +20,14 @@ module Stripe
|
|
20
20
|
attr_reader :paid_amount
|
21
21
|
# The amount that is yet to be paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000.
|
22
22
|
attr_reader :remaining_amount
|
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
|
# Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
25
33
|
attr_reader :advance_amount
|
@@ -39,6 +47,14 @@ module Stripe
|
|
39
47
|
attr_reader :repayments_begin_at
|
40
48
|
# Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
41
49
|
attr_reader :withhold_rate
|
50
|
+
|
51
|
+
def self.inner_class_types
|
52
|
+
@inner_class_types = { current_repayment_interval: CurrentRepaymentInterval }
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.field_remappings
|
56
|
+
@field_remappings = {}
|
57
|
+
end
|
42
58
|
end
|
43
59
|
# Additional information about the financing summary. Describes currency, advance amount,
|
44
60
|
# fee amount, withhold rate, remaining amount, paid amount, current repayment interval,
|
@@ -50,6 +66,14 @@ module Stripe
|
|
50
66
|
attr_reader :object
|
51
67
|
# Status of the Connected Account's financing. [/v1/capital/financing_summary](https://stripe.com/docs/api/capital/financing_summary) will only return `details` for `paid_out` financing.
|
52
68
|
attr_reader :status
|
69
|
+
|
70
|
+
def self.inner_class_types
|
71
|
+
@inner_class_types = { details: Details }
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.field_remappings
|
75
|
+
@field_remappings = {}
|
76
|
+
end
|
53
77
|
end
|
54
78
|
end
|
55
79
|
end
|
@@ -18,6 +18,14 @@ module Stripe
|
|
18
18
|
attr_reader :charge
|
19
19
|
# The linked Treasury Financing Transaction ID.
|
20
20
|
attr_reader :treasury_transaction
|
21
|
+
|
22
|
+
def self.inner_class_types
|
23
|
+
@inner_class_types = {}
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.field_remappings
|
27
|
+
@field_remappings = {}
|
28
|
+
end
|
21
29
|
end
|
22
30
|
# The advance amount being repaid, paid out, or reversed in minor units.
|
23
31
|
attr_reader :advance_amount
|
@@ -36,6 +44,14 @@ module Stripe
|
|
36
44
|
attr_reader :total_amount
|
37
45
|
# This is an object representing a linked transaction on a Capital Financing Transaction.
|
38
46
|
attr_reader :transaction
|
47
|
+
|
48
|
+
def self.inner_class_types
|
49
|
+
@inner_class_types = { transaction: Transaction }
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.field_remappings
|
53
|
+
@field_remappings = {}
|
54
|
+
end
|
39
55
|
end
|
40
56
|
|
41
57
|
class ListParams < Stripe::RequestParams
|
@@ -109,6 +125,14 @@ module Stripe
|
|
109
125
|
opts: opts
|
110
126
|
)
|
111
127
|
end
|
128
|
+
|
129
|
+
def self.inner_class_types
|
130
|
+
@inner_class_types = { details: Details }
|
131
|
+
end
|
132
|
+
|
133
|
+
def self.field_remappings
|
134
|
+
@field_remappings = {}
|
135
|
+
end
|
112
136
|
end
|
113
137
|
end
|
114
138
|
end
|
@@ -20,6 +20,14 @@ module Stripe
|
|
20
20
|
class Networks < Stripe::StripeObject
|
21
21
|
# The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
|
22
22
|
attr_reader :preferred
|
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 account
|
25
33
|
attr_reader :account
|
@@ -144,5 +152,13 @@ module Stripe
|
|
144
152
|
"'customer_id')` or " \
|
145
153
|
"`Account.list_external_accounts('account_id')`"
|
146
154
|
end
|
155
|
+
|
156
|
+
def self.inner_class_types
|
157
|
+
@inner_class_types = { networks: Networks }
|
158
|
+
end
|
159
|
+
|
160
|
+
def self.field_remappings
|
161
|
+
@field_remappings = {}
|
162
|
+
end
|
147
163
|
end
|
148
164
|
end
|
@@ -14,6 +14,14 @@ module Stripe
|
|
14
14
|
attr_reader :reconciliation_mode
|
15
15
|
# A flag to indicate if reconciliation mode returned is the user's default or is specific to this customer cash balance
|
16
16
|
attr_reader :using_merchant_default
|
17
|
+
|
18
|
+
def self.inner_class_types
|
19
|
+
@inner_class_types = {}
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.field_remappings
|
23
|
+
@field_remappings = {}
|
24
|
+
end
|
17
25
|
end
|
18
26
|
# A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
19
27
|
attr_reader :available
|
@@ -41,5 +49,13 @@ module Stripe
|
|
41
49
|
"Customer Cash Balance cannot be retrieved without a customer ID. " \
|
42
50
|
"Retrieve a Customer Cash Balance using `Customer.retrieve_cash_balance('cus_123')`"
|
43
51
|
end
|
52
|
+
|
53
|
+
def self.inner_class_types
|
54
|
+
@inner_class_types = { settings: Settings }
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.field_remappings
|
58
|
+
@field_remappings = {}
|
59
|
+
end
|
44
60
|
end
|
45
61
|
end
|