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
@@ -16,9 +16,25 @@ module Stripe
|
|
16
16
|
attr_reader :enabled
|
17
17
|
# If true the payment link to hosted invocie page would be included in email and PDF of the invoice.
|
18
18
|
attr_reader :include_payment_link
|
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
|
# Controls emails for when the payment is due. For example after the invoice is finilized and transition to Open state.
|
21
29
|
attr_reader :payment_due
|
30
|
+
|
31
|
+
def self.inner_class_types
|
32
|
+
@inner_class_types = { payment_due: PaymentDue }
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.field_remappings
|
36
|
+
@field_remappings = {}
|
37
|
+
end
|
22
38
|
end
|
23
39
|
|
24
40
|
class PaymentMethodOptions < Stripe::StripeObject
|
@@ -26,16 +42,40 @@ module Stripe
|
|
26
42
|
class MandateOptions < Stripe::StripeObject
|
27
43
|
# Transaction type of the mandate.
|
28
44
|
attr_reader :transaction_type
|
45
|
+
|
46
|
+
def self.inner_class_types
|
47
|
+
@inner_class_types = {}
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.field_remappings
|
51
|
+
@field_remappings = {}
|
52
|
+
end
|
29
53
|
end
|
30
54
|
# Additional fields for Mandate creation.
|
31
55
|
attr_reader :mandate_options
|
32
56
|
# Verification method.
|
33
57
|
attr_reader :verification_method
|
58
|
+
|
59
|
+
def self.inner_class_types
|
60
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.field_remappings
|
64
|
+
@field_remappings = {}
|
65
|
+
end
|
34
66
|
end
|
35
67
|
|
36
68
|
class Bancontact < Stripe::StripeObject
|
37
69
|
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
38
70
|
attr_reader :preferred_language
|
71
|
+
|
72
|
+
def self.inner_class_types
|
73
|
+
@inner_class_types = {}
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.field_remappings
|
77
|
+
@field_remappings = {}
|
78
|
+
end
|
39
79
|
end
|
40
80
|
|
41
81
|
class Card < Stripe::StripeObject
|
@@ -46,6 +86,14 @@ module Stripe
|
|
46
86
|
attr_reader :amount_type
|
47
87
|
# A description of the mandate that is meant to be displayed to the customer.
|
48
88
|
attr_reader :description
|
89
|
+
|
90
|
+
def self.inner_class_types
|
91
|
+
@inner_class_types = {}
|
92
|
+
end
|
93
|
+
|
94
|
+
def self.field_remappings
|
95
|
+
@field_remappings = {}
|
96
|
+
end
|
49
97
|
end
|
50
98
|
# Configuration options for setting up an eMandate for cards issued in India.
|
51
99
|
attr_reader :mandate_options
|
@@ -56,6 +104,14 @@ module Stripe
|
|
56
104
|
# However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
|
57
105
|
# Read our guide on [manually requesting 3D Secure](https://docs.corp.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
58
106
|
attr_reader :request_three_d_secure
|
107
|
+
|
108
|
+
def self.inner_class_types
|
109
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
110
|
+
end
|
111
|
+
|
112
|
+
def self.field_remappings
|
113
|
+
@field_remappings = {}
|
114
|
+
end
|
59
115
|
end
|
60
116
|
|
61
117
|
class CustomerBalance < Stripe::StripeObject
|
@@ -63,26 +119,75 @@ module Stripe
|
|
63
119
|
class EuBankTransfer < Stripe::StripeObject
|
64
120
|
# The desired country code of the bank account information.
|
65
121
|
attr_reader :country
|
122
|
+
|
123
|
+
def self.inner_class_types
|
124
|
+
@inner_class_types = {}
|
125
|
+
end
|
126
|
+
|
127
|
+
def self.field_remappings
|
128
|
+
@field_remappings = {}
|
129
|
+
end
|
66
130
|
end
|
67
131
|
# Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`.
|
68
132
|
attr_reader :eu_bank_transfer
|
69
133
|
# The bank transfer type that can be used for funding.
|
70
134
|
attr_reader :type
|
135
|
+
|
136
|
+
def self.inner_class_types
|
137
|
+
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
138
|
+
end
|
139
|
+
|
140
|
+
def self.field_remappings
|
141
|
+
@field_remappings = {}
|
142
|
+
end
|
71
143
|
end
|
72
144
|
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
73
145
|
attr_reader :bank_transfer
|
74
146
|
# The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`.
|
75
147
|
attr_reader :funding_type
|
148
|
+
|
149
|
+
def self.inner_class_types
|
150
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
151
|
+
end
|
152
|
+
|
153
|
+
def self.field_remappings
|
154
|
+
@field_remappings = {}
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
class Konbini < Stripe::StripeObject
|
159
|
+
def self.inner_class_types
|
160
|
+
@inner_class_types = {}
|
161
|
+
end
|
162
|
+
|
163
|
+
def self.field_remappings
|
164
|
+
@field_remappings = {}
|
165
|
+
end
|
76
166
|
end
|
77
167
|
|
78
|
-
class
|
79
|
-
|
168
|
+
class SepaDebit < Stripe::StripeObject
|
169
|
+
def self.inner_class_types
|
170
|
+
@inner_class_types = {}
|
171
|
+
end
|
172
|
+
|
173
|
+
def self.field_remappings
|
174
|
+
@field_remappings = {}
|
175
|
+
end
|
176
|
+
end
|
80
177
|
|
81
178
|
class UsBankAccount < Stripe::StripeObject
|
82
179
|
class FinancialConnections < Stripe::StripeObject
|
83
180
|
class Filters < Stripe::StripeObject
|
84
181
|
# The account subcategories to use to filter for selectable accounts.
|
85
182
|
attr_reader :account_subcategories
|
183
|
+
|
184
|
+
def self.inner_class_types
|
185
|
+
@inner_class_types = {}
|
186
|
+
end
|
187
|
+
|
188
|
+
def self.field_remappings
|
189
|
+
@field_remappings = {}
|
190
|
+
end
|
86
191
|
end
|
87
192
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
88
193
|
attr_reader :filters
|
@@ -90,11 +195,27 @@ module Stripe
|
|
90
195
|
attr_reader :permissions
|
91
196
|
# List of data features that you would like to retrieve upon account creation.
|
92
197
|
attr_reader :prefetch
|
198
|
+
|
199
|
+
def self.inner_class_types
|
200
|
+
@inner_class_types = { filters: Filters }
|
201
|
+
end
|
202
|
+
|
203
|
+
def self.field_remappings
|
204
|
+
@field_remappings = {}
|
205
|
+
end
|
93
206
|
end
|
94
207
|
# Additional fields for Financial Connections Session creation.
|
95
208
|
attr_reader :financial_connections
|
96
209
|
# Verification method.
|
97
210
|
attr_reader :verification_method
|
211
|
+
|
212
|
+
def self.inner_class_types
|
213
|
+
@inner_class_types = { financial_connections: FinancialConnections }
|
214
|
+
end
|
215
|
+
|
216
|
+
def self.field_remappings
|
217
|
+
@field_remappings = {}
|
218
|
+
end
|
98
219
|
end
|
99
220
|
# This sub-hash contains details about the Canadian pre-authorized debit payment method options.
|
100
221
|
attr_reader :acss_debit
|
@@ -110,6 +231,22 @@ module Stripe
|
|
110
231
|
attr_reader :sepa_debit
|
111
232
|
# This sub-hash contains details about the ACH direct debit payment method options.
|
112
233
|
attr_reader :us_bank_account
|
234
|
+
|
235
|
+
def self.inner_class_types
|
236
|
+
@inner_class_types = {
|
237
|
+
acss_debit: AcssDebit,
|
238
|
+
bancontact: Bancontact,
|
239
|
+
card: Card,
|
240
|
+
customer_balance: CustomerBalance,
|
241
|
+
konbini: Konbini,
|
242
|
+
sepa_debit: SepaDebit,
|
243
|
+
us_bank_account: UsBankAccount,
|
244
|
+
}
|
245
|
+
end
|
246
|
+
|
247
|
+
def self.field_remappings
|
248
|
+
@field_remappings = {}
|
249
|
+
end
|
113
250
|
end
|
114
251
|
# Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
|
115
252
|
# bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
|
@@ -130,6 +267,17 @@ module Stripe
|
|
130
267
|
attr_reader :payment_method_options
|
131
268
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
132
269
|
attr_reader :livemode
|
270
|
+
|
271
|
+
def self.inner_class_types
|
272
|
+
@inner_class_types = {
|
273
|
+
email_delivery: EmailDelivery,
|
274
|
+
payment_method_options: PaymentMethodOptions,
|
275
|
+
}
|
276
|
+
end
|
277
|
+
|
278
|
+
def self.field_remappings
|
279
|
+
@field_remappings = {}
|
280
|
+
end
|
133
281
|
end
|
134
282
|
end
|
135
283
|
end
|
@@ -29,6 +29,14 @@ module Stripe
|
|
29
29
|
attr_reader :object
|
30
30
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
31
31
|
attr_reader :livemode
|
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
|
end
|
34
42
|
end
|
@@ -23,6 +23,14 @@ module Stripe
|
|
23
23
|
attr_reader :tax
|
24
24
|
# Total amount for the Billing Intent.
|
25
25
|
attr_reader :total
|
26
|
+
|
27
|
+
def self.inner_class_types
|
28
|
+
@inner_class_types = {}
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.field_remappings
|
32
|
+
@field_remappings = {}
|
33
|
+
end
|
26
34
|
end
|
27
35
|
|
28
36
|
class StatusTransitions < Stripe::StripeObject
|
@@ -34,6 +42,14 @@ module Stripe
|
|
34
42
|
attr_reader :drafted_at
|
35
43
|
# Time at which the Billing Intent was reserved.
|
36
44
|
attr_reader :reserved_at
|
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
|
# Breakdown of the amount for this Billing Intent.
|
39
55
|
attr_reader :amount_details
|
@@ -53,6 +69,17 @@ module Stripe
|
|
53
69
|
attr_reader :livemode
|
54
70
|
# ID of an existing Cadence to use.
|
55
71
|
attr_reader :cadence
|
72
|
+
|
73
|
+
def self.inner_class_types
|
74
|
+
@inner_class_types = {
|
75
|
+
amount_details: AmountDetails,
|
76
|
+
status_transitions: StatusTransitions,
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
def self.field_remappings
|
81
|
+
@field_remappings = {}
|
82
|
+
end
|
56
83
|
end
|
57
84
|
end
|
58
85
|
end
|
@@ -16,11 +16,27 @@ module Stripe
|
|
16
16
|
class MaximumApplications < Stripe::StripeObject
|
17
17
|
# The type of maximum applications configuration.
|
18
18
|
attr_reader :type
|
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
|
# The maximum number of times this discount can be applied for this Billing Cadence.
|
21
29
|
attr_reader :maximum_applications
|
22
30
|
# Percent that will be taken off of the amount. For example, percent_off of 50.0 will make $100 amount $50 instead.
|
23
31
|
attr_reader :percent_off
|
32
|
+
|
33
|
+
def self.inner_class_types
|
34
|
+
@inner_class_types = { maximum_applications: MaximumApplications }
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.field_remappings
|
38
|
+
@field_remappings = {}
|
39
|
+
end
|
24
40
|
end
|
25
41
|
# The entity that the discount rule applies to, for example, the Billing Cadence.
|
26
42
|
attr_reader :applies_to
|
@@ -30,17 +46,41 @@ module Stripe
|
|
30
46
|
attr_reader :type
|
31
47
|
# Configuration for percentage off discount.
|
32
48
|
attr_reader :percent_off
|
49
|
+
|
50
|
+
def self.inner_class_types
|
51
|
+
@inner_class_types = { percent_off: PercentOff }
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.field_remappings
|
55
|
+
@field_remappings = {}
|
56
|
+
end
|
33
57
|
end
|
34
58
|
# Type of the apply action details.
|
35
59
|
attr_reader :type
|
36
60
|
# Details for applying a discount rule to future invoices.
|
37
61
|
attr_reader :invoice_discount_rule
|
62
|
+
|
63
|
+
def self.inner_class_types
|
64
|
+
@inner_class_types = { invoice_discount_rule: InvoiceDiscountRule }
|
65
|
+
end
|
66
|
+
|
67
|
+
def self.field_remappings
|
68
|
+
@field_remappings = {}
|
69
|
+
end
|
38
70
|
end
|
39
71
|
|
40
72
|
class Deactivate < Stripe::StripeObject
|
41
73
|
class BillingDetails < Stripe::StripeObject
|
42
74
|
# This controls the proration adjustment for the partial servicing period.
|
43
75
|
attr_reader :proration_behavior
|
76
|
+
|
77
|
+
def self.inner_class_types
|
78
|
+
@inner_class_types = {}
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.field_remappings
|
82
|
+
@field_remappings = {}
|
83
|
+
end
|
44
84
|
end
|
45
85
|
|
46
86
|
class EffectiveAt < Stripe::StripeObject
|
@@ -48,11 +88,27 @@ module Stripe
|
|
48
88
|
attr_reader :timestamp
|
49
89
|
# When the deactivate action will take effect.
|
50
90
|
attr_reader :type
|
91
|
+
|
92
|
+
def self.inner_class_types
|
93
|
+
@inner_class_types = {}
|
94
|
+
end
|
95
|
+
|
96
|
+
def self.field_remappings
|
97
|
+
@field_remappings = {}
|
98
|
+
end
|
51
99
|
end
|
52
100
|
|
53
101
|
class PricingPlanSubscriptionDetails < Stripe::StripeObject
|
54
102
|
# ID of the Pricing Plan Subscription to deactivate.
|
55
103
|
attr_reader :pricing_plan_subscription
|
104
|
+
|
105
|
+
def self.inner_class_types
|
106
|
+
@inner_class_types = {}
|
107
|
+
end
|
108
|
+
|
109
|
+
def self.field_remappings
|
110
|
+
@field_remappings = {}
|
111
|
+
end
|
56
112
|
end
|
57
113
|
# Configuration for the billing details.
|
58
114
|
attr_reader :billing_details
|
@@ -62,12 +118,32 @@ module Stripe
|
|
62
118
|
attr_reader :type
|
63
119
|
# Details for deactivating a Pricing Plan Subscription.
|
64
120
|
attr_reader :pricing_plan_subscription_details
|
121
|
+
|
122
|
+
def self.inner_class_types
|
123
|
+
@inner_class_types = {
|
124
|
+
billing_details: BillingDetails,
|
125
|
+
effective_at: EffectiveAt,
|
126
|
+
pricing_plan_subscription_details: PricingPlanSubscriptionDetails,
|
127
|
+
}
|
128
|
+
end
|
129
|
+
|
130
|
+
def self.field_remappings
|
131
|
+
@field_remappings = {}
|
132
|
+
end
|
65
133
|
end
|
66
134
|
|
67
135
|
class Modify < Stripe::StripeObject
|
68
136
|
class BillingDetails < Stripe::StripeObject
|
69
137
|
# This controls the proration adjustment for the partial servicing period.
|
70
138
|
attr_reader :proration_behavior
|
139
|
+
|
140
|
+
def self.inner_class_types
|
141
|
+
@inner_class_types = {}
|
142
|
+
end
|
143
|
+
|
144
|
+
def self.field_remappings
|
145
|
+
@field_remappings = {}
|
146
|
+
end
|
71
147
|
end
|
72
148
|
|
73
149
|
class EffectiveAt < Stripe::StripeObject
|
@@ -75,6 +151,14 @@ module Stripe
|
|
75
151
|
attr_reader :timestamp
|
76
152
|
# When the modify action will take effect.
|
77
153
|
attr_reader :type
|
154
|
+
|
155
|
+
def self.inner_class_types
|
156
|
+
@inner_class_types = {}
|
157
|
+
end
|
158
|
+
|
159
|
+
def self.field_remappings
|
160
|
+
@field_remappings = {}
|
161
|
+
end
|
78
162
|
end
|
79
163
|
|
80
164
|
class PricingPlanSubscriptionDetails < Stripe::StripeObject
|
@@ -85,6 +169,14 @@ module Stripe
|
|
85
169
|
attr_reader :lookup_key
|
86
170
|
# ID of the pricing plan component.
|
87
171
|
attr_reader :pricing_plan_component
|
172
|
+
|
173
|
+
def self.inner_class_types
|
174
|
+
@inner_class_types = {}
|
175
|
+
end
|
176
|
+
|
177
|
+
def self.field_remappings
|
178
|
+
@field_remappings = {}
|
179
|
+
end
|
88
180
|
end
|
89
181
|
# New configurations for the components of the Pricing Plan.
|
90
182
|
attr_reader :component_configurations
|
@@ -94,6 +186,14 @@ module Stripe
|
|
94
186
|
attr_reader :new_pricing_plan_version
|
95
187
|
# ID of the Pricing Plan Subscription to modify.
|
96
188
|
attr_reader :pricing_plan_subscription
|
189
|
+
|
190
|
+
def self.inner_class_types
|
191
|
+
@inner_class_types = { component_configurations: ComponentConfiguration }
|
192
|
+
end
|
193
|
+
|
194
|
+
def self.field_remappings
|
195
|
+
@field_remappings = {}
|
196
|
+
end
|
97
197
|
end
|
98
198
|
# Configuration for the billing details.
|
99
199
|
attr_reader :billing_details
|
@@ -103,6 +203,18 @@ module Stripe
|
|
103
203
|
attr_reader :type
|
104
204
|
# Details for modifying a Pricing Plan Subscription.
|
105
205
|
attr_reader :pricing_plan_subscription_details
|
206
|
+
|
207
|
+
def self.inner_class_types
|
208
|
+
@inner_class_types = {
|
209
|
+
billing_details: BillingDetails,
|
210
|
+
effective_at: EffectiveAt,
|
211
|
+
pricing_plan_subscription_details: PricingPlanSubscriptionDetails,
|
212
|
+
}
|
213
|
+
end
|
214
|
+
|
215
|
+
def self.field_remappings
|
216
|
+
@field_remappings = {}
|
217
|
+
end
|
106
218
|
end
|
107
219
|
|
108
220
|
class Remove < Stripe::StripeObject
|
@@ -110,12 +222,28 @@ module Stripe
|
|
110
222
|
attr_reader :type
|
111
223
|
# The ID of the discount rule to remove for future invoices.
|
112
224
|
attr_reader :invoice_discount_rule
|
225
|
+
|
226
|
+
def self.inner_class_types
|
227
|
+
@inner_class_types = {}
|
228
|
+
end
|
229
|
+
|
230
|
+
def self.field_remappings
|
231
|
+
@field_remappings = {}
|
232
|
+
end
|
113
233
|
end
|
114
234
|
|
115
235
|
class Subscribe < Stripe::StripeObject
|
116
236
|
class BillingDetails < Stripe::StripeObject
|
117
237
|
# This controls the proration adjustment for the partial servicing period.
|
118
238
|
attr_reader :proration_behavior
|
239
|
+
|
240
|
+
def self.inner_class_types
|
241
|
+
@inner_class_types = {}
|
242
|
+
end
|
243
|
+
|
244
|
+
def self.field_remappings
|
245
|
+
@field_remappings = {}
|
246
|
+
end
|
119
247
|
end
|
120
248
|
|
121
249
|
class EffectiveAt < Stripe::StripeObject
|
@@ -123,6 +251,14 @@ module Stripe
|
|
123
251
|
attr_reader :timestamp
|
124
252
|
# When the subscribe action will take effect.
|
125
253
|
attr_reader :type
|
254
|
+
|
255
|
+
def self.inner_class_types
|
256
|
+
@inner_class_types = {}
|
257
|
+
end
|
258
|
+
|
259
|
+
def self.field_remappings
|
260
|
+
@field_remappings = {}
|
261
|
+
end
|
126
262
|
end
|
127
263
|
|
128
264
|
class PricingPlanSubscriptionDetails < Stripe::StripeObject
|
@@ -133,6 +269,14 @@ module Stripe
|
|
133
269
|
attr_reader :lookup_key
|
134
270
|
# ID of the pricing plan component.
|
135
271
|
attr_reader :pricing_plan_component
|
272
|
+
|
273
|
+
def self.inner_class_types
|
274
|
+
@inner_class_types = {}
|
275
|
+
end
|
276
|
+
|
277
|
+
def self.field_remappings
|
278
|
+
@field_remappings = {}
|
279
|
+
end
|
136
280
|
end
|
137
281
|
# Configurations for the components of the Pricing Plan.
|
138
282
|
attr_reader :component_configurations
|
@@ -144,6 +288,14 @@ module Stripe
|
|
144
288
|
attr_reader :pricing_plan_subscription
|
145
289
|
# Version of the Pricing Plan to use.
|
146
290
|
attr_reader :pricing_plan_version
|
291
|
+
|
292
|
+
def self.inner_class_types
|
293
|
+
@inner_class_types = { component_configurations: ComponentConfiguration }
|
294
|
+
end
|
295
|
+
|
296
|
+
def self.field_remappings
|
297
|
+
@field_remappings = {}
|
298
|
+
end
|
147
299
|
end
|
148
300
|
|
149
301
|
class V1SubscriptionDetails < Stripe::StripeObject
|
@@ -154,6 +306,14 @@ module Stripe
|
|
154
306
|
attr_reader :price
|
155
307
|
# Quantity for this item. If not provided, will default to 1.
|
156
308
|
attr_reader :quantity
|
309
|
+
|
310
|
+
def self.inner_class_types
|
311
|
+
@inner_class_types = {}
|
312
|
+
end
|
313
|
+
|
314
|
+
def self.field_remappings
|
315
|
+
@field_remappings = {}
|
316
|
+
end
|
157
317
|
end
|
158
318
|
# The subscription’s description, meant to be displayable to the customer.
|
159
319
|
# Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
@@ -162,6 +322,14 @@ module Stripe
|
|
162
322
|
attr_reader :items
|
163
323
|
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
164
324
|
attr_reader :metadata
|
325
|
+
|
326
|
+
def self.inner_class_types
|
327
|
+
@inner_class_types = { items: Item }
|
328
|
+
end
|
329
|
+
|
330
|
+
def self.field_remappings
|
331
|
+
@field_remappings = {}
|
332
|
+
end
|
165
333
|
end
|
166
334
|
# Configuration for the billing details. If not specified, see the default behavior for individual attributes.
|
167
335
|
attr_reader :billing_details
|
@@ -173,6 +341,19 @@ module Stripe
|
|
173
341
|
attr_reader :pricing_plan_subscription_details
|
174
342
|
# Details for subscribing to a V1 subscription.
|
175
343
|
attr_reader :v1_subscription_details
|
344
|
+
|
345
|
+
def self.inner_class_types
|
346
|
+
@inner_class_types = {
|
347
|
+
billing_details: BillingDetails,
|
348
|
+
effective_at: EffectiveAt,
|
349
|
+
pricing_plan_subscription_details: PricingPlanSubscriptionDetails,
|
350
|
+
v1_subscription_details: V1SubscriptionDetails,
|
351
|
+
}
|
352
|
+
end
|
353
|
+
|
354
|
+
def self.field_remappings
|
355
|
+
@field_remappings = {}
|
356
|
+
end
|
176
357
|
end
|
177
358
|
# Time at which the object was created.
|
178
359
|
attr_reader :created
|
@@ -194,6 +375,20 @@ module Stripe
|
|
194
375
|
attr_reader :remove
|
195
376
|
# Details for a subscribe action.
|
196
377
|
attr_reader :subscribe
|
378
|
+
|
379
|
+
def self.inner_class_types
|
380
|
+
@inner_class_types = {
|
381
|
+
apply: Apply,
|
382
|
+
deactivate: Deactivate,
|
383
|
+
modify: Modify,
|
384
|
+
remove: Remove,
|
385
|
+
subscribe: Subscribe,
|
386
|
+
}
|
387
|
+
end
|
388
|
+
|
389
|
+
def self.field_remappings
|
390
|
+
@field_remappings = {}
|
391
|
+
end
|
197
392
|
end
|
198
393
|
end
|
199
394
|
end
|
@@ -21,6 +21,14 @@ module Stripe
|
|
21
21
|
attr_reader :up_to_decimal
|
22
22
|
# No upper bound to this tier. Only one of `up_to_decimal` and `up_to_inf` may be set.
|
23
23
|
attr_reader :up_to_inf
|
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 TransformQuantity < Stripe::StripeObject
|
@@ -28,6 +36,14 @@ module Stripe
|
|
28
36
|
attr_reader :divide_by
|
29
37
|
# After division, round the result up or down.
|
30
38
|
attr_reader :round
|
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
|
# Whether this License Fee is active. Inactive License Fees cannot be used in new activations or be modified.
|
33
49
|
attr_reader :active
|
@@ -73,6 +89,14 @@ module Stripe
|
|
73
89
|
attr_reader :unit_amount
|
74
90
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
75
91
|
attr_reader :livemode
|
92
|
+
|
93
|
+
def self.inner_class_types
|
94
|
+
@inner_class_types = { tiers: Tier, transform_quantity: TransformQuantity }
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.field_remappings
|
98
|
+
@field_remappings = {}
|
99
|
+
end
|
76
100
|
end
|
77
101
|
end
|
78
102
|
end
|
@@ -30,6 +30,14 @@ module Stripe
|
|
30
30
|
attr_reader :test_clock
|
31
31
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
32
32
|
attr_reader :livemode
|
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
|
end
|
35
43
|
end
|