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
@@ -15,6 +15,14 @@ module Stripe
|
|
15
15
|
attr_reader :subscription_schedule
|
16
16
|
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
17
17
|
attr_reader :type
|
18
|
+
|
19
|
+
def self.inner_class_types
|
20
|
+
@inner_class_types = {}
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.field_remappings
|
24
|
+
@field_remappings = {}
|
25
|
+
end
|
18
26
|
end
|
19
27
|
|
20
28
|
class BillingMode < Stripe::StripeObject
|
@@ -22,6 +30,14 @@ module Stripe
|
|
22
30
|
attr_reader :type
|
23
31
|
# Details on when the current billing_mode was adopted.
|
24
32
|
attr_reader :updated_at
|
33
|
+
|
34
|
+
def self.inner_class_types
|
35
|
+
@inner_class_types = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.field_remappings
|
39
|
+
@field_remappings = {}
|
40
|
+
end
|
25
41
|
end
|
26
42
|
|
27
43
|
class CurrentPhase < Stripe::StripeObject
|
@@ -29,6 +45,14 @@ module Stripe
|
|
29
45
|
attr_reader :end_date
|
30
46
|
# The start of this phase of the subscription schedule.
|
31
47
|
attr_reader :start_date
|
48
|
+
|
49
|
+
def self.inner_class_types
|
50
|
+
@inner_class_types = {}
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.field_remappings
|
54
|
+
@field_remappings = {}
|
55
|
+
end
|
32
56
|
end
|
33
57
|
|
34
58
|
class DefaultSettings < Stripe::StripeObject
|
@@ -38,6 +62,14 @@ module Stripe
|
|
38
62
|
attr_reader :account
|
39
63
|
# Type of the account referenced.
|
40
64
|
attr_reader :type
|
65
|
+
|
66
|
+
def self.inner_class_types
|
67
|
+
@inner_class_types = {}
|
68
|
+
end
|
69
|
+
|
70
|
+
def self.field_remappings
|
71
|
+
@field_remappings = {}
|
72
|
+
end
|
41
73
|
end
|
42
74
|
# If Stripe disabled automatic tax, this enum describes why.
|
43
75
|
attr_reader :disabled_reason
|
@@ -45,6 +77,14 @@ module Stripe
|
|
45
77
|
attr_reader :enabled
|
46
78
|
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
47
79
|
attr_reader :liability
|
80
|
+
|
81
|
+
def self.inner_class_types
|
82
|
+
@inner_class_types = { liability: Liability }
|
83
|
+
end
|
84
|
+
|
85
|
+
def self.field_remappings
|
86
|
+
@field_remappings = {}
|
87
|
+
end
|
48
88
|
end
|
49
89
|
|
50
90
|
class BillingThresholds < Stripe::StripeObject
|
@@ -52,6 +92,14 @@ module Stripe
|
|
52
92
|
attr_reader :amount_gte
|
53
93
|
# Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
|
54
94
|
attr_reader :reset_billing_cycle_anchor
|
95
|
+
|
96
|
+
def self.inner_class_types
|
97
|
+
@inner_class_types = {}
|
98
|
+
end
|
99
|
+
|
100
|
+
def self.field_remappings
|
101
|
+
@field_remappings = {}
|
102
|
+
end
|
55
103
|
end
|
56
104
|
|
57
105
|
class InvoiceSettings < Stripe::StripeObject
|
@@ -60,6 +108,14 @@ module Stripe
|
|
60
108
|
attr_reader :account
|
61
109
|
# Type of the account referenced.
|
62
110
|
attr_reader :type
|
111
|
+
|
112
|
+
def self.inner_class_types
|
113
|
+
@inner_class_types = {}
|
114
|
+
end
|
115
|
+
|
116
|
+
def self.field_remappings
|
117
|
+
@field_remappings = {}
|
118
|
+
end
|
63
119
|
end
|
64
120
|
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
|
65
121
|
attr_reader :account_tax_ids
|
@@ -67,6 +123,14 @@ module Stripe
|
|
67
123
|
attr_reader :days_until_due
|
68
124
|
# Attribute for field issuer
|
69
125
|
attr_reader :issuer
|
126
|
+
|
127
|
+
def self.inner_class_types
|
128
|
+
@inner_class_types = { issuer: Issuer }
|
129
|
+
end
|
130
|
+
|
131
|
+
def self.field_remappings
|
132
|
+
@field_remappings = {}
|
133
|
+
end
|
70
134
|
end
|
71
135
|
|
72
136
|
class TransferData < Stripe::StripeObject
|
@@ -74,6 +138,14 @@ module Stripe
|
|
74
138
|
attr_reader :amount_percent
|
75
139
|
# The account where funds from the payment will be transferred to upon payment success.
|
76
140
|
attr_reader :destination
|
141
|
+
|
142
|
+
def self.inner_class_types
|
143
|
+
@inner_class_types = {}
|
144
|
+
end
|
145
|
+
|
146
|
+
def self.field_remappings
|
147
|
+
@field_remappings = {}
|
148
|
+
end
|
77
149
|
end
|
78
150
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
|
79
151
|
attr_reader :application_fee_percent
|
@@ -95,6 +167,19 @@ module Stripe
|
|
95
167
|
attr_reader :on_behalf_of
|
96
168
|
# The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
97
169
|
attr_reader :transfer_data
|
170
|
+
|
171
|
+
def self.inner_class_types
|
172
|
+
@inner_class_types = {
|
173
|
+
automatic_tax: AutomaticTax,
|
174
|
+
billing_thresholds: BillingThresholds,
|
175
|
+
invoice_settings: InvoiceSettings,
|
176
|
+
transfer_data: TransferData,
|
177
|
+
}
|
178
|
+
end
|
179
|
+
|
180
|
+
def self.field_remappings
|
181
|
+
@field_remappings = {}
|
182
|
+
end
|
98
183
|
end
|
99
184
|
|
100
185
|
class LastPriceMigrationError < Stripe::StripeObject
|
@@ -103,6 +188,14 @@ module Stripe
|
|
103
188
|
attr_reader :source_price
|
104
189
|
# The intended resulting price of the migration.
|
105
190
|
attr_reader :target_price
|
191
|
+
|
192
|
+
def self.inner_class_types
|
193
|
+
@inner_class_types = {}
|
194
|
+
end
|
195
|
+
|
196
|
+
def self.field_remappings
|
197
|
+
@field_remappings = {}
|
198
|
+
end
|
106
199
|
end
|
107
200
|
# The time at which the price migration encountered an error.
|
108
201
|
attr_reader :errored_at
|
@@ -110,6 +203,14 @@ module Stripe
|
|
110
203
|
attr_reader :failed_transitions
|
111
204
|
# The type of error encountered by the price migration.
|
112
205
|
attr_reader :type
|
206
|
+
|
207
|
+
def self.inner_class_types
|
208
|
+
@inner_class_types = { failed_transitions: FailedTransition }
|
209
|
+
end
|
210
|
+
|
211
|
+
def self.field_remappings
|
212
|
+
@field_remappings = {}
|
213
|
+
end
|
113
214
|
end
|
114
215
|
|
115
216
|
class Phase < Stripe::StripeObject
|
@@ -120,6 +221,14 @@ module Stripe
|
|
120
221
|
attr_reader :timestamp
|
121
222
|
# The discount end type.
|
122
223
|
attr_reader :type
|
224
|
+
|
225
|
+
def self.inner_class_types
|
226
|
+
@inner_class_types = {}
|
227
|
+
end
|
228
|
+
|
229
|
+
def self.field_remappings
|
230
|
+
@field_remappings = {}
|
231
|
+
end
|
123
232
|
end
|
124
233
|
# ID of the coupon to create a new discount for.
|
125
234
|
attr_reader :coupon
|
@@ -129,6 +238,14 @@ module Stripe
|
|
129
238
|
attr_reader :discount_end
|
130
239
|
# ID of the promotion code to create a new discount for.
|
131
240
|
attr_reader :promotion_code
|
241
|
+
|
242
|
+
def self.inner_class_types
|
243
|
+
@inner_class_types = { discount_end: DiscountEnd }
|
244
|
+
end
|
245
|
+
|
246
|
+
def self.field_remappings
|
247
|
+
@field_remappings = {}
|
248
|
+
end
|
132
249
|
end
|
133
250
|
|
134
251
|
class Period < Stripe::StripeObject
|
@@ -137,6 +254,14 @@ module Stripe
|
|
137
254
|
attr_reader :timestamp
|
138
255
|
# Select how to calculate the end of the invoice item period.
|
139
256
|
attr_reader :type
|
257
|
+
|
258
|
+
def self.inner_class_types
|
259
|
+
@inner_class_types = {}
|
260
|
+
end
|
261
|
+
|
262
|
+
def self.field_remappings
|
263
|
+
@field_remappings = {}
|
264
|
+
end
|
140
265
|
end
|
141
266
|
|
142
267
|
class Start < Stripe::StripeObject
|
@@ -144,11 +269,27 @@ module Stripe
|
|
144
269
|
attr_reader :timestamp
|
145
270
|
# Select how to calculate the start of the invoice item period.
|
146
271
|
attr_reader :type
|
272
|
+
|
273
|
+
def self.inner_class_types
|
274
|
+
@inner_class_types = {}
|
275
|
+
end
|
276
|
+
|
277
|
+
def self.field_remappings
|
278
|
+
@field_remappings = {}
|
279
|
+
end
|
147
280
|
end
|
148
281
|
# Attribute for field end
|
149
282
|
attr_reader :end
|
150
283
|
# Attribute for field start
|
151
284
|
attr_reader :start
|
285
|
+
|
286
|
+
def self.inner_class_types
|
287
|
+
@inner_class_types = { end: End, start: Start }
|
288
|
+
end
|
289
|
+
|
290
|
+
def self.field_remappings
|
291
|
+
@field_remappings = {}
|
292
|
+
end
|
152
293
|
end
|
153
294
|
# The stackable discounts that will be applied to the item.
|
154
295
|
attr_reader :discounts
|
@@ -162,6 +303,14 @@ module Stripe
|
|
162
303
|
attr_reader :quantity
|
163
304
|
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
|
164
305
|
attr_reader :tax_rates
|
306
|
+
|
307
|
+
def self.inner_class_types
|
308
|
+
@inner_class_types = { discounts: Discount, period: Period }
|
309
|
+
end
|
310
|
+
|
311
|
+
def self.field_remappings
|
312
|
+
@field_remappings = {}
|
313
|
+
end
|
165
314
|
end
|
166
315
|
|
167
316
|
class AutomaticTax < Stripe::StripeObject
|
@@ -170,6 +319,14 @@ module Stripe
|
|
170
319
|
attr_reader :account
|
171
320
|
# Type of the account referenced.
|
172
321
|
attr_reader :type
|
322
|
+
|
323
|
+
def self.inner_class_types
|
324
|
+
@inner_class_types = {}
|
325
|
+
end
|
326
|
+
|
327
|
+
def self.field_remappings
|
328
|
+
@field_remappings = {}
|
329
|
+
end
|
173
330
|
end
|
174
331
|
# If Stripe disabled automatic tax, this enum describes why.
|
175
332
|
attr_reader :disabled_reason
|
@@ -177,6 +334,14 @@ module Stripe
|
|
177
334
|
attr_reader :enabled
|
178
335
|
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
179
336
|
attr_reader :liability
|
337
|
+
|
338
|
+
def self.inner_class_types
|
339
|
+
@inner_class_types = { liability: Liability }
|
340
|
+
end
|
341
|
+
|
342
|
+
def self.field_remappings
|
343
|
+
@field_remappings = {}
|
344
|
+
end
|
180
345
|
end
|
181
346
|
|
182
347
|
class BillingThresholds < Stripe::StripeObject
|
@@ -184,6 +349,14 @@ module Stripe
|
|
184
349
|
attr_reader :amount_gte
|
185
350
|
# Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
|
186
351
|
attr_reader :reset_billing_cycle_anchor
|
352
|
+
|
353
|
+
def self.inner_class_types
|
354
|
+
@inner_class_types = {}
|
355
|
+
end
|
356
|
+
|
357
|
+
def self.field_remappings
|
358
|
+
@field_remappings = {}
|
359
|
+
end
|
187
360
|
end
|
188
361
|
|
189
362
|
class Discount < Stripe::StripeObject
|
@@ -192,6 +365,14 @@ module Stripe
|
|
192
365
|
attr_reader :timestamp
|
193
366
|
# The discount end type.
|
194
367
|
attr_reader :type
|
368
|
+
|
369
|
+
def self.inner_class_types
|
370
|
+
@inner_class_types = {}
|
371
|
+
end
|
372
|
+
|
373
|
+
def self.field_remappings
|
374
|
+
@field_remappings = {}
|
375
|
+
end
|
195
376
|
end
|
196
377
|
# ID of the coupon to create a new discount for.
|
197
378
|
attr_reader :coupon
|
@@ -201,6 +382,14 @@ module Stripe
|
|
201
382
|
attr_reader :discount_end
|
202
383
|
# ID of the promotion code to create a new discount for.
|
203
384
|
attr_reader :promotion_code
|
385
|
+
|
386
|
+
def self.inner_class_types
|
387
|
+
@inner_class_types = { discount_end: DiscountEnd }
|
388
|
+
end
|
389
|
+
|
390
|
+
def self.field_remappings
|
391
|
+
@field_remappings = {}
|
392
|
+
end
|
204
393
|
end
|
205
394
|
|
206
395
|
class InvoiceSettings < Stripe::StripeObject
|
@@ -209,6 +398,14 @@ module Stripe
|
|
209
398
|
attr_reader :account
|
210
399
|
# Type of the account referenced.
|
211
400
|
attr_reader :type
|
401
|
+
|
402
|
+
def self.inner_class_types
|
403
|
+
@inner_class_types = {}
|
404
|
+
end
|
405
|
+
|
406
|
+
def self.field_remappings
|
407
|
+
@field_remappings = {}
|
408
|
+
end
|
212
409
|
end
|
213
410
|
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
214
411
|
attr_reader :account_tax_ids
|
@@ -216,12 +413,28 @@ module Stripe
|
|
216
413
|
attr_reader :days_until_due
|
217
414
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
218
415
|
attr_reader :issuer
|
416
|
+
|
417
|
+
def self.inner_class_types
|
418
|
+
@inner_class_types = { issuer: Issuer }
|
419
|
+
end
|
420
|
+
|
421
|
+
def self.field_remappings
|
422
|
+
@field_remappings = {}
|
423
|
+
end
|
219
424
|
end
|
220
425
|
|
221
426
|
class Item < Stripe::StripeObject
|
222
427
|
class BillingThresholds < Stripe::StripeObject
|
223
428
|
# Usage threshold that triggers the subscription to create an invoice
|
224
429
|
attr_reader :usage_gte
|
430
|
+
|
431
|
+
def self.inner_class_types
|
432
|
+
@inner_class_types = {}
|
433
|
+
end
|
434
|
+
|
435
|
+
def self.field_remappings
|
436
|
+
@field_remappings = {}
|
437
|
+
end
|
225
438
|
end
|
226
439
|
|
227
440
|
class Discount < Stripe::StripeObject
|
@@ -230,6 +443,14 @@ module Stripe
|
|
230
443
|
attr_reader :timestamp
|
231
444
|
# The discount end type.
|
232
445
|
attr_reader :type
|
446
|
+
|
447
|
+
def self.inner_class_types
|
448
|
+
@inner_class_types = {}
|
449
|
+
end
|
450
|
+
|
451
|
+
def self.field_remappings
|
452
|
+
@field_remappings = {}
|
453
|
+
end
|
233
454
|
end
|
234
455
|
# ID of the coupon to create a new discount for.
|
235
456
|
attr_reader :coupon
|
@@ -239,6 +460,14 @@ module Stripe
|
|
239
460
|
attr_reader :discount_end
|
240
461
|
# ID of the promotion code to create a new discount for.
|
241
462
|
attr_reader :promotion_code
|
463
|
+
|
464
|
+
def self.inner_class_types
|
465
|
+
@inner_class_types = { discount_end: DiscountEnd }
|
466
|
+
end
|
467
|
+
|
468
|
+
def self.field_remappings
|
469
|
+
@field_remappings = {}
|
470
|
+
end
|
242
471
|
end
|
243
472
|
|
244
473
|
class Trial < Stripe::StripeObject
|
@@ -246,6 +475,14 @@ module Stripe
|
|
246
475
|
attr_reader :converts_to
|
247
476
|
# Determines the type of trial for this item.
|
248
477
|
attr_reader :type
|
478
|
+
|
479
|
+
def self.inner_class_types
|
480
|
+
@inner_class_types = {}
|
481
|
+
end
|
482
|
+
|
483
|
+
def self.field_remappings
|
484
|
+
@field_remappings = {}
|
485
|
+
end
|
249
486
|
end
|
250
487
|
# Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
|
251
488
|
attr_reader :billing_thresholds
|
@@ -263,11 +500,31 @@ module Stripe
|
|
263
500
|
attr_reader :tax_rates
|
264
501
|
# Options that configure the trial on the subscription item.
|
265
502
|
attr_reader :trial
|
503
|
+
|
504
|
+
def self.inner_class_types
|
505
|
+
@inner_class_types = {
|
506
|
+
billing_thresholds: BillingThresholds,
|
507
|
+
discounts: Discount,
|
508
|
+
trial: Trial,
|
509
|
+
}
|
510
|
+
end
|
511
|
+
|
512
|
+
def self.field_remappings
|
513
|
+
@field_remappings = {}
|
514
|
+
end
|
266
515
|
end
|
267
516
|
|
268
517
|
class PauseCollection < Stripe::StripeObject
|
269
518
|
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
270
519
|
attr_reader :behavior
|
520
|
+
|
521
|
+
def self.inner_class_types
|
522
|
+
@inner_class_types = {}
|
523
|
+
end
|
524
|
+
|
525
|
+
def self.field_remappings
|
526
|
+
@field_remappings = {}
|
527
|
+
end
|
271
528
|
end
|
272
529
|
|
273
530
|
class TransferData < Stripe::StripeObject
|
@@ -275,15 +532,39 @@ module Stripe
|
|
275
532
|
attr_reader :amount_percent
|
276
533
|
# The account where funds from the payment will be transferred to upon payment success.
|
277
534
|
attr_reader :destination
|
535
|
+
|
536
|
+
def self.inner_class_types
|
537
|
+
@inner_class_types = {}
|
538
|
+
end
|
539
|
+
|
540
|
+
def self.field_remappings
|
541
|
+
@field_remappings = {}
|
542
|
+
end
|
278
543
|
end
|
279
544
|
|
280
545
|
class TrialSettings < Stripe::StripeObject
|
281
546
|
class EndBehavior < Stripe::StripeObject
|
282
547
|
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
283
548
|
attr_reader :prorate_up_front
|
549
|
+
|
550
|
+
def self.inner_class_types
|
551
|
+
@inner_class_types = {}
|
552
|
+
end
|
553
|
+
|
554
|
+
def self.field_remappings
|
555
|
+
@field_remappings = {}
|
556
|
+
end
|
284
557
|
end
|
285
558
|
# Defines how the subscription should behave when a trial ends.
|
286
559
|
attr_reader :end_behavior
|
560
|
+
|
561
|
+
def self.inner_class_types
|
562
|
+
@inner_class_types = { end_behavior: EndBehavior }
|
563
|
+
end
|
564
|
+
|
565
|
+
def self.field_remappings
|
566
|
+
@field_remappings = {}
|
567
|
+
end
|
287
568
|
end
|
288
569
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
289
570
|
attr_reader :add_invoice_items
|
@@ -331,6 +612,24 @@ module Stripe
|
|
331
612
|
attr_reader :trial_end
|
332
613
|
# Settings related to any trials on the subscription during this phase.
|
333
614
|
attr_reader :trial_settings
|
615
|
+
|
616
|
+
def self.inner_class_types
|
617
|
+
@inner_class_types = {
|
618
|
+
add_invoice_items: AddInvoiceItem,
|
619
|
+
automatic_tax: AutomaticTax,
|
620
|
+
billing_thresholds: BillingThresholds,
|
621
|
+
discounts: Discount,
|
622
|
+
invoice_settings: InvoiceSettings,
|
623
|
+
items: Item,
|
624
|
+
pause_collection: PauseCollection,
|
625
|
+
transfer_data: TransferData,
|
626
|
+
trial_settings: TrialSettings,
|
627
|
+
}
|
628
|
+
end
|
629
|
+
|
630
|
+
def self.field_remappings
|
631
|
+
@field_remappings = {}
|
632
|
+
end
|
334
633
|
end
|
335
634
|
|
336
635
|
class Prebilling < Stripe::StripeObject
|
@@ -342,6 +641,14 @@ module Stripe
|
|
342
641
|
attr_reader :period_start
|
343
642
|
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
344
643
|
attr_reader :update_behavior
|
644
|
+
|
645
|
+
def self.inner_class_types
|
646
|
+
@inner_class_types = {}
|
647
|
+
end
|
648
|
+
|
649
|
+
def self.field_remappings
|
650
|
+
@field_remappings = {}
|
651
|
+
end
|
345
652
|
end
|
346
653
|
# ID of the Connect Application that created the schedule.
|
347
654
|
attr_reader :application
|
@@ -391,5 +698,21 @@ module Stripe
|
|
391
698
|
attr_reader :subscription
|
392
699
|
# ID of the test clock this subscription schedule belongs to.
|
393
700
|
attr_reader :test_clock
|
701
|
+
|
702
|
+
def self.inner_class_types
|
703
|
+
@inner_class_types = {
|
704
|
+
applies_to: AppliesTo,
|
705
|
+
billing_mode: BillingMode,
|
706
|
+
current_phase: CurrentPhase,
|
707
|
+
default_settings: DefaultSettings,
|
708
|
+
last_price_migration_error: LastPriceMigrationError,
|
709
|
+
phases: Phase,
|
710
|
+
prebilling: Prebilling,
|
711
|
+
}
|
712
|
+
end
|
713
|
+
|
714
|
+
def self.field_remappings
|
715
|
+
@field_remappings = {}
|
716
|
+
end
|
394
717
|
end
|
395
718
|
end
|