stripe 15.1.0.pre.beta.2 → 15.2.0.pre.beta.1
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/CHANGELOG.md +8 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +6 -0
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +15 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_person_created_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
- data/lib/stripe/object_types.rb +0 -1
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/charge.rb +2 -2
- data/lib/stripe/resources/checkout/session.rb +7 -3
- data/lib/stripe/resources/confirmation_token.rb +5 -3
- data/lib/stripe/resources/customer.rb +2 -2
- data/lib/stripe/resources/invoice.rb +10 -2
- data/lib/stripe/resources/order.rb +3 -3
- data/lib/stripe/resources/payment_intent.rb +4 -4
- data/lib/stripe/resources/payment_method.rb +2 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +22 -1
- data/lib/stripe/resources/quote.rb +6 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +2 -0
- data/lib/stripe/resources/subscription.rb +8 -2
- data/lib/stripe/resources/subscription_schedule.rb +6 -0
- data/lib/stripe/resources/tax/calculation.rb +2 -2
- data/lib/stripe/resources/tax/registration.rb +60 -0
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +2 -2
- data/lib/stripe/resources/treasury/outbound_payment.rb +1 -4
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
- data/lib/stripe/resources/v2/core/account.rb +44 -13
- data/lib/stripe/resources/v2/core/account_link.rb +3 -1
- data/lib/stripe/resources/v2/core/person.rb +4 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +4 -2
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +5 -3
- data/lib/stripe/resources/v2/event.rb +2 -2
- data/lib/stripe/resources/v2/event_destination.rb +2 -2
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +2 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +2 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +3 -1
- data/lib/stripe/resources/v2/money_management/financial_account.rb +3 -1
- data/lib/stripe/resources/v2/money_management/financial_address.rb +2 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +3 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +8 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +3 -1
- data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -2
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/resources.rb +11 -1
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +2 -2
- data/lib/stripe/services/charge_service.rb +2 -2
- data/lib/stripe/services/checkout/session_service.rb +4 -0
- data/lib/stripe/services/customer_payment_method_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +1 -1
- data/lib/stripe/services/customer_tax_id_service.rb +1 -1
- data/lib/stripe/services/external_account_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +9 -1
- data/lib/stripe/services/order_service.rb +2 -2
- data/lib/stripe/services/payment_intent_service.rb +4 -4
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -20
- data/lib/stripe/services/quote_service.rb +4 -0
- data/lib/stripe/services/subscription_schedule_service.rb +4 -0
- data/lib/stripe/services/subscription_service.rb +5 -1
- data/lib/stripe/services/tax/calculation_service.rb +1 -1
- data/lib/stripe/services/tax/registration_service.rb +39 -0
- data/lib/stripe/services/tax_id_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +3 -3
- data/lib/stripe/services/treasury/outbound_payment_service.rb +1 -4
- data/lib/stripe/services/v2/core/account_service.rb +15 -7
- data/lib/stripe/services/v2/core/accounts/person_service.rb +8 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +1 -1
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +5 -5
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +16 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +465 -190
- metadata +13 -3
- data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +0 -35
@@ -92,7 +92,7 @@ module Stripe
|
|
92
92
|
attr_reader :metadata
|
93
93
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
94
94
|
attr_reader :object
|
95
|
-
# A hosted
|
95
|
+
# A link to the Stripe-hosted receipt for this OutboundTransfer. The receipt link remains active for 60 days from the OutboundTransfer creation date. After this period, the link will expire and the receipt url value will be null.
|
96
96
|
attr_reader :receipt_url
|
97
97
|
# The description that appears on the receiving end for an OutboundTransfer (for example, bank statement for external bank transfer).
|
98
98
|
attr_reader :statement_descriptor
|
@@ -109,6 +109,8 @@ module Stripe
|
|
109
109
|
attr_reader :to
|
110
110
|
# A unique identifier that can be used to track this OutboundTransfer with recipient bank. Banks might call this a “reference number” or something similar.
|
111
111
|
attr_reader :trace_id
|
112
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
113
|
+
attr_reader :livemode
|
112
114
|
end
|
113
115
|
end
|
114
116
|
end
|
@@ -12,9 +12,9 @@ module Stripe
|
|
12
12
|
end
|
13
13
|
|
14
14
|
class UsageStatus < Stripe::StripeObject
|
15
|
-
# Payments status.
|
15
|
+
# Payments status - used when sending OutboundPayments (sending funds to recipients).
|
16
16
|
attr_reader :payments
|
17
|
-
# Transfers status.
|
17
|
+
# Transfers status - used when making an OutboundTransfer (sending funds to yourself).
|
18
18
|
attr_reader :transfers
|
19
19
|
end
|
20
20
|
|
@@ -63,6 +63,8 @@ module Stripe
|
|
63
63
|
attr_reader :type
|
64
64
|
# Indicates whether the payout method has met the necessary requirements for outbound money movement.
|
65
65
|
attr_reader :usage_status
|
66
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
67
|
+
attr_reader :livemode
|
66
68
|
# The PayoutMethodBankAccount object details.
|
67
69
|
attr_reader :bank_account
|
68
70
|
# The PayoutMethodCard object details.
|
@@ -41,6 +41,8 @@ module Stripe
|
|
41
41
|
attr_reader :countries
|
42
42
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
43
43
|
attr_reader :object
|
44
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
45
|
+
attr_reader :livemode
|
44
46
|
end
|
45
47
|
end
|
46
48
|
end
|
@@ -122,6 +122,8 @@ module Stripe
|
|
122
122
|
attr_reader :status_transitions
|
123
123
|
# Open Enum. The type of flow that caused the ReceivedCredit.
|
124
124
|
attr_reader :type
|
125
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
126
|
+
attr_reader :livemode
|
125
127
|
# This object stores details about the originating Stripe transaction that resulted in the ReceivedCredit. Present if `type` field value is `balance_transfer`.
|
126
128
|
attr_reader :balance_transfer
|
127
129
|
# This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if `type` field value is `external_credit`.
|
@@ -96,6 +96,8 @@ module Stripe
|
|
96
96
|
attr_reader :status_transitions
|
97
97
|
# Open Enum. The type of the ReceivedDebit.
|
98
98
|
attr_reader :type
|
99
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
100
|
+
attr_reader :livemode
|
99
101
|
# This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if `type` field value is `bank_transfer`.
|
100
102
|
attr_reader :bank_transfer
|
101
103
|
# This object stores details about the issuing transactions that resulted in the ReceivedDebit. Present if `type` field value is `card_spend`.
|
@@ -70,6 +70,8 @@ module Stripe
|
|
70
70
|
attr_reader :status
|
71
71
|
# Timestamps for when the Transaction transitioned to a particular status.
|
72
72
|
attr_reader :status_transitions
|
73
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
74
|
+
attr_reader :livemode
|
73
75
|
end
|
74
76
|
end
|
75
77
|
end
|
@@ -60,6 +60,8 @@ module Stripe
|
|
60
60
|
attr_reader :transaction
|
61
61
|
# Details copied from the transaction that this TransactionEntry belongs to.
|
62
62
|
attr_reader :transaction_details
|
63
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
64
|
+
attr_reader :livemode
|
63
65
|
end
|
64
66
|
end
|
65
67
|
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -106,7 +106,6 @@ require "stripe/resources/person"
|
|
106
106
|
require "stripe/resources/plan"
|
107
107
|
require "stripe/resources/price"
|
108
108
|
require "stripe/resources/privacy/redaction_job"
|
109
|
-
require "stripe/resources/privacy/redaction_job_root_objects"
|
110
109
|
require "stripe/resources/privacy/redaction_job_validation_error"
|
111
110
|
require "stripe/resources/product"
|
112
111
|
require "stripe/resources/product_feature"
|
@@ -195,19 +194,26 @@ require "stripe/resources/v2/money_management/transaction_entry"
|
|
195
194
|
require "stripe/resources/webhook_endpoint"
|
196
195
|
require "stripe/events/v1_billing_meter_error_report_triggered_event"
|
197
196
|
require "stripe/events/v1_billing_meter_no_meter_found_event"
|
197
|
+
require "stripe/events/v2_core_account_closed_event"
|
198
|
+
require "stripe/events/v2_core_account_created_event"
|
198
199
|
require "stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event"
|
199
200
|
require "stripe/events/v2_core_account_including_configuration_customer_updated_event"
|
200
201
|
require "stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event"
|
201
202
|
require "stripe/events/v2_core_account_including_configuration_merchant_updated_event"
|
202
203
|
require "stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event"
|
203
204
|
require "stripe/events/v2_core_account_including_configuration_recipient_updated_event"
|
205
|
+
require "stripe/events/v2_core_account_including_defaults_updated_event"
|
204
206
|
require "stripe/events/v2_core_account_including_identity_updated_event"
|
205
207
|
require "stripe/events/v2_core_account_including_requirements_updated_event"
|
206
208
|
require "stripe/events/v2_core_account_link_completed_event"
|
207
209
|
require "stripe/events/v2_core_account_person_created_event"
|
208
210
|
require "stripe/events/v2_core_account_person_deleted_event"
|
209
211
|
require "stripe/events/v2_core_account_person_updated_event"
|
212
|
+
require "stripe/events/v2_core_account_updated_event"
|
213
|
+
require "stripe/events/v2_core_event_destination_ping_event"
|
214
|
+
require "stripe/events/v2_money_management_adjustment_created_event"
|
210
215
|
require "stripe/events/v2_money_management_financial_account_created_event"
|
216
|
+
require "stripe/events/v2_money_management_financial_account_updated_event"
|
211
217
|
require "stripe/events/v2_money_management_financial_address_activated_event"
|
212
218
|
require "stripe/events/v2_money_management_financial_address_failed_event"
|
213
219
|
require "stripe/events/v2_money_management_inbound_transfer_available_event"
|
@@ -221,11 +227,13 @@ require "stripe/events/v2_money_management_outbound_payment_created_event"
|
|
221
227
|
require "stripe/events/v2_money_management_outbound_payment_failed_event"
|
222
228
|
require "stripe/events/v2_money_management_outbound_payment_posted_event"
|
223
229
|
require "stripe/events/v2_money_management_outbound_payment_returned_event"
|
230
|
+
require "stripe/events/v2_money_management_outbound_payment_updated_event"
|
224
231
|
require "stripe/events/v2_money_management_outbound_transfer_canceled_event"
|
225
232
|
require "stripe/events/v2_money_management_outbound_transfer_created_event"
|
226
233
|
require "stripe/events/v2_money_management_outbound_transfer_failed_event"
|
227
234
|
require "stripe/events/v2_money_management_outbound_transfer_posted_event"
|
228
235
|
require "stripe/events/v2_money_management_outbound_transfer_returned_event"
|
236
|
+
require "stripe/events/v2_money_management_outbound_transfer_updated_event"
|
229
237
|
require "stripe/events/v2_money_management_received_credit_available_event"
|
230
238
|
require "stripe/events/v2_money_management_received_credit_failed_event"
|
231
239
|
require "stripe/events/v2_money_management_received_credit_returned_event"
|
@@ -235,3 +243,5 @@ require "stripe/events/v2_money_management_received_debit_failed_event"
|
|
235
243
|
require "stripe/events/v2_money_management_received_debit_pending_event"
|
236
244
|
require "stripe/events/v2_money_management_received_debit_succeeded_event"
|
237
245
|
require "stripe/events/v2_money_management_received_debit_updated_event"
|
246
|
+
require "stripe/events/v2_money_management_transaction_created_event"
|
247
|
+
require "stripe/events/v2_money_management_transaction_updated_event"
|
@@ -137,7 +137,7 @@ module Stripe
|
|
137
137
|
attr_accessor :country
|
138
138
|
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
139
139
|
attr_accessor :currency
|
140
|
-
# The routing number, sort code, or other country-
|
140
|
+
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
141
141
|
attr_accessor :routing_number
|
142
142
|
|
143
143
|
def initialize(
|
@@ -39,7 +39,7 @@ module Stripe
|
|
39
39
|
attr_accessor :country
|
40
40
|
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
41
41
|
attr_accessor :currency
|
42
|
-
# The routing number, sort code, or other country-
|
42
|
+
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
43
43
|
attr_accessor :routing_number
|
44
44
|
|
45
45
|
def initialize(
|
@@ -2309,7 +2309,7 @@ module Stripe
|
|
2309
2309
|
attr_accessor :country
|
2310
2310
|
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
2311
2311
|
attr_accessor :currency
|
2312
|
-
# The routing number, sort code, or other country-
|
2312
|
+
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
2313
2313
|
attr_accessor :routing_number
|
2314
2314
|
|
2315
2315
|
def initialize(
|
@@ -753,7 +753,7 @@ module Stripe
|
|
753
753
|
attr_accessor :booking_number
|
754
754
|
# The lodging category
|
755
755
|
attr_accessor :category
|
756
|
-
#
|
756
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
757
757
|
attr_accessor :checkin_at
|
758
758
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
759
759
|
attr_accessor :checkout_at
|
@@ -1535,7 +1535,7 @@ module Stripe
|
|
1535
1535
|
attr_accessor :booking_number
|
1536
1536
|
# The lodging category
|
1537
1537
|
attr_accessor :category
|
1538
|
-
#
|
1538
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
1539
1539
|
attr_accessor :checkin_at
|
1540
1540
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
1541
1541
|
attr_accessor :checkout_at
|
@@ -2005,6 +2005,8 @@ module Stripe
|
|
2005
2005
|
attr_accessor :application_fee_percent
|
2006
2006
|
# A future timestamp to anchor the subscription's billing cycle for new subscriptions.
|
2007
2007
|
attr_accessor :billing_cycle_anchor
|
2008
|
+
# Configure billing_mode in each subscription to opt in improved credit proration behavior.
|
2009
|
+
attr_accessor :billing_mode
|
2008
2010
|
# The tax rates that will apply to any subscription item that does not have
|
2009
2011
|
# `tax_rates` set. Invoices created will have their `default_tax_rates` populated
|
2010
2012
|
# from the subscription.
|
@@ -2036,6 +2038,7 @@ module Stripe
|
|
2036
2038
|
def initialize(
|
2037
2039
|
application_fee_percent: nil,
|
2038
2040
|
billing_cycle_anchor: nil,
|
2041
|
+
billing_mode: nil,
|
2039
2042
|
default_tax_rates: nil,
|
2040
2043
|
description: nil,
|
2041
2044
|
invoice_settings: nil,
|
@@ -2049,6 +2052,7 @@ module Stripe
|
|
2049
2052
|
)
|
2050
2053
|
@application_fee_percent = application_fee_percent
|
2051
2054
|
@billing_cycle_anchor = billing_cycle_anchor
|
2055
|
+
@billing_mode = billing_mode
|
2052
2056
|
@default_tax_rates = default_tax_rates
|
2053
2057
|
@description = description
|
2054
2058
|
@invoice_settings = invoice_settings
|
@@ -4,7 +4,7 @@
|
|
4
4
|
module Stripe
|
5
5
|
class CustomerPaymentMethodService < StripeService
|
6
6
|
class ListParams < Stripe::RequestParams
|
7
|
-
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.
|
7
|
+
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.
|
8
8
|
attr_accessor :allow_redisplay
|
9
9
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
10
10
|
attr_accessor :ending_before
|
@@ -475,7 +475,7 @@ module Stripe
|
|
475
475
|
end
|
476
476
|
|
477
477
|
class TaxIdDatum < Stripe::RequestParams
|
478
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
478
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
479
479
|
attr_accessor :type
|
480
480
|
# Value of the tax ID.
|
481
481
|
attr_accessor :value
|
@@ -36,7 +36,7 @@ module Stripe
|
|
36
36
|
class CreateParams < Stripe::RequestParams
|
37
37
|
# Specifies which fields in the response should be expanded.
|
38
38
|
attr_accessor :expand
|
39
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
39
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
40
40
|
attr_accessor :type
|
41
41
|
# Value of the tax ID.
|
42
42
|
attr_accessor :value
|
@@ -137,7 +137,7 @@ module Stripe
|
|
137
137
|
attr_accessor :country
|
138
138
|
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
139
139
|
attr_accessor :currency
|
140
|
-
# The routing number, sort code, or other country-
|
140
|
+
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
141
141
|
attr_accessor :routing_number
|
142
142
|
|
143
143
|
def initialize(
|
@@ -2180,7 +2180,7 @@ module Stripe
|
|
2180
2180
|
end
|
2181
2181
|
|
2182
2182
|
class TaxId < Stripe::RequestParams
|
2183
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
2183
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
2184
2184
|
attr_accessor :type
|
2185
2185
|
# Value of the tax ID.
|
2186
2186
|
attr_accessor :value
|
@@ -3385,6 +3385,8 @@ module Stripe
|
|
3385
3385
|
attr_accessor :amendments
|
3386
3386
|
# Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
3387
3387
|
attr_accessor :billing_behavior
|
3388
|
+
# Configure billing_mode to opt in improved credit proration behavior.When the schedule creates a subscription, the subscription's `billing_mode` will be set to the same value as the schedule's `billing_mode`.
|
3389
|
+
attr_accessor :billing_mode
|
3388
3390
|
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
3389
3391
|
attr_accessor :end_behavior
|
3390
3392
|
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
@@ -3397,6 +3399,7 @@ module Stripe
|
|
3397
3399
|
def initialize(
|
3398
3400
|
amendments: nil,
|
3399
3401
|
billing_behavior: nil,
|
3402
|
+
billing_mode: nil,
|
3400
3403
|
end_behavior: nil,
|
3401
3404
|
phases: nil,
|
3402
3405
|
prebilling: nil,
|
@@ -3404,6 +3407,7 @@ module Stripe
|
|
3404
3407
|
)
|
3405
3408
|
@amendments = amendments
|
3406
3409
|
@billing_behavior = billing_behavior
|
3410
|
+
@billing_mode = billing_mode
|
3407
3411
|
@end_behavior = end_behavior
|
3408
3412
|
@phases = phases
|
3409
3413
|
@prebilling = prebilling
|
@@ -3553,6 +3557,8 @@ module Stripe
|
|
3553
3557
|
end
|
3554
3558
|
# For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set to `now` or `unchanged`.
|
3555
3559
|
attr_accessor :billing_cycle_anchor
|
3560
|
+
# Configure billing_mode in each subscription to opt in improved credit proration behavior.
|
3561
|
+
attr_accessor :billing_mode
|
3556
3562
|
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
3557
3563
|
attr_accessor :cancel_at
|
3558
3564
|
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
@@ -3578,6 +3584,7 @@ module Stripe
|
|
3578
3584
|
|
3579
3585
|
def initialize(
|
3580
3586
|
billing_cycle_anchor: nil,
|
3587
|
+
billing_mode: nil,
|
3581
3588
|
cancel_at: nil,
|
3582
3589
|
cancel_at_period_end: nil,
|
3583
3590
|
cancel_now: nil,
|
@@ -3591,6 +3598,7 @@ module Stripe
|
|
3591
3598
|
trial_end: nil
|
3592
3599
|
)
|
3593
3600
|
@billing_cycle_anchor = billing_cycle_anchor
|
3601
|
+
@billing_mode = billing_mode
|
3594
3602
|
@cancel_at = cancel_at
|
3595
3603
|
@cancel_at_period_end = cancel_at_period_end
|
3596
3604
|
@cancel_now = cancel_now
|
@@ -1011,7 +1011,7 @@ module Stripe
|
|
1011
1011
|
|
1012
1012
|
class TaxDetails < Stripe::RequestParams
|
1013
1013
|
class TaxId < Stripe::RequestParams
|
1014
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
1014
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
1015
1015
|
attr_accessor :type
|
1016
1016
|
# Value of the tax ID.
|
1017
1017
|
attr_accessor :value
|
@@ -2084,7 +2084,7 @@ module Stripe
|
|
2084
2084
|
|
2085
2085
|
class TaxDetails < Stripe::RequestParams
|
2086
2086
|
class TaxId < Stripe::RequestParams
|
2087
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
2087
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
2088
2088
|
attr_accessor :type
|
2089
2089
|
# Value of the tax ID.
|
2090
2090
|
attr_accessor :value
|
@@ -649,7 +649,7 @@ module Stripe
|
|
649
649
|
attr_accessor :booking_number
|
650
650
|
# The lodging category
|
651
651
|
attr_accessor :category
|
652
|
-
#
|
652
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
653
653
|
attr_accessor :checkin_at
|
654
654
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
655
655
|
attr_accessor :checkout_at
|
@@ -4164,7 +4164,7 @@ module Stripe
|
|
4164
4164
|
attr_accessor :booking_number
|
4165
4165
|
# The lodging category
|
4166
4166
|
attr_accessor :category
|
4167
|
-
#
|
4167
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
4168
4168
|
attr_accessor :checkin_at
|
4169
4169
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
4170
4170
|
attr_accessor :checkout_at
|
@@ -7613,7 +7613,7 @@ module Stripe
|
|
7613
7613
|
attr_accessor :booking_number
|
7614
7614
|
# The lodging category
|
7615
7615
|
attr_accessor :category
|
7616
|
-
#
|
7616
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
7617
7617
|
attr_accessor :checkin_at
|
7618
7618
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
7619
7619
|
attr_accessor :checkout_at
|
@@ -8407,7 +8407,7 @@ module Stripe
|
|
8407
8407
|
attr_accessor :booking_number
|
8408
8408
|
# The lodging category
|
8409
8409
|
attr_accessor :category
|
8410
|
-
#
|
8410
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
8411
8411
|
attr_accessor :checkin_at
|
8412
8412
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
8413
8413
|
attr_accessor :checkout_at
|
@@ -22,15 +22,6 @@ module Stripe
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
class RetrieveParams < Stripe::RequestParams
|
26
|
-
# Specifies which fields in the response should be expanded.
|
27
|
-
attr_accessor :expand
|
28
|
-
|
29
|
-
def initialize(expand: nil)
|
30
|
-
@expand = expand
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
25
|
# List validation errors method
|
35
26
|
def list(job, params = {}, opts = {})
|
36
27
|
request(
|
@@ -41,17 +32,6 @@ module Stripe
|
|
41
32
|
base_address: :api
|
42
33
|
)
|
43
34
|
end
|
44
|
-
|
45
|
-
# Retrieve validation error method
|
46
|
-
def retrieve(job, error, params = {}, opts = {})
|
47
|
-
request(
|
48
|
-
method: :get,
|
49
|
-
path: format("/v1/privacy/redaction_jobs/%<job>s/validation_errors/%<error>s", { job: CGI.escape(job), error: CGI.escape(error) }),
|
50
|
-
params: params,
|
51
|
-
opts: opts,
|
52
|
-
base_address: :api
|
53
|
-
)
|
54
|
-
end
|
55
35
|
end
|
56
36
|
end
|
57
37
|
end
|
@@ -834,6 +834,8 @@ module Stripe
|
|
834
834
|
attr_accessor :billing_behavior
|
835
835
|
# When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
|
836
836
|
attr_accessor :billing_cycle_anchor
|
837
|
+
# Configure billing_mode to opt in improved credit proration behavior.Once a quote that creates a subscription or subscription schedule is accepted,all future operations on the subscription or subscription schedule will be processed based on this billing_mode.
|
838
|
+
attr_accessor :billing_mode
|
837
839
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
838
840
|
attr_accessor :description
|
839
841
|
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
|
@@ -861,6 +863,7 @@ module Stripe
|
|
861
863
|
bill_on_acceptance: nil,
|
862
864
|
billing_behavior: nil,
|
863
865
|
billing_cycle_anchor: nil,
|
866
|
+
billing_mode: nil,
|
864
867
|
description: nil,
|
865
868
|
effective_date: nil,
|
866
869
|
end_behavior: nil,
|
@@ -873,6 +876,7 @@ module Stripe
|
|
873
876
|
@bill_on_acceptance = bill_on_acceptance
|
874
877
|
@billing_behavior = billing_behavior
|
875
878
|
@billing_cycle_anchor = billing_cycle_anchor
|
879
|
+
@billing_mode = billing_mode
|
876
880
|
@description = description
|
877
881
|
@effective_date = effective_date
|
878
882
|
@end_behavior = end_behavior
|
@@ -695,6 +695,8 @@ module Stripe
|
|
695
695
|
end
|
696
696
|
# Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
697
697
|
attr_accessor :billing_behavior
|
698
|
+
# Configure billing_mode to opt in improved credit proration behavior.When the schedule creates a subscription, the subscription's `billing_mode` will be set to the same value as the schedule's `billing_mode`.
|
699
|
+
attr_accessor :billing_mode
|
698
700
|
# The identifier of the customer to create the subscription schedule for.
|
699
701
|
attr_accessor :customer
|
700
702
|
# The identifier of the account to create the subscription schedule for.
|
@@ -718,6 +720,7 @@ module Stripe
|
|
718
720
|
|
719
721
|
def initialize(
|
720
722
|
billing_behavior: nil,
|
723
|
+
billing_mode: nil,
|
721
724
|
customer: nil,
|
722
725
|
customer_account: nil,
|
723
726
|
default_settings: nil,
|
@@ -730,6 +733,7 @@ module Stripe
|
|
730
733
|
start_date: nil
|
731
734
|
)
|
732
735
|
@billing_behavior = billing_behavior
|
736
|
+
@billing_mode = billing_mode
|
733
737
|
@customer = customer
|
734
738
|
@customer_account = customer_account
|
735
739
|
@default_settings = default_settings
|
@@ -1478,6 +1478,8 @@ module Stripe
|
|
1478
1478
|
attr_accessor :billing_cycle_anchor
|
1479
1479
|
# Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurence of the day_of_month at the hour, minute, and second UTC.
|
1480
1480
|
attr_accessor :billing_cycle_anchor_config
|
1481
|
+
# Configure billing_mode in each subscription to opt in improved credit proration behavior.
|
1482
|
+
attr_accessor :billing_mode
|
1481
1483
|
# A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
|
1482
1484
|
attr_accessor :cancel_at
|
1483
1485
|
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
@@ -1552,6 +1554,7 @@ module Stripe
|
|
1552
1554
|
backdate_start_date: nil,
|
1553
1555
|
billing_cycle_anchor: nil,
|
1554
1556
|
billing_cycle_anchor_config: nil,
|
1557
|
+
billing_mode: nil,
|
1555
1558
|
cancel_at: nil,
|
1556
1559
|
cancel_at_period_end: nil,
|
1557
1560
|
collection_method: nil,
|
@@ -1587,6 +1590,7 @@ module Stripe
|
|
1587
1590
|
@backdate_start_date = backdate_start_date
|
1588
1591
|
@billing_cycle_anchor = billing_cycle_anchor
|
1589
1592
|
@billing_cycle_anchor_config = billing_cycle_anchor_config
|
1593
|
+
@billing_mode = billing_mode
|
1590
1594
|
@cancel_at = cancel_at
|
1591
1595
|
@cancel_at_period_end = cancel_at_period_end
|
1592
1596
|
@collection_method = collection_method
|
@@ -1661,7 +1665,7 @@ module Stripe
|
|
1661
1665
|
|
1662
1666
|
# Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://stripe.com/metadata).
|
1663
1667
|
#
|
1664
|
-
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://stripe.com/docs/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed.
|
1668
|
+
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://stripe.com/docs/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
|
1665
1669
|
#
|
1666
1670
|
# By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
|
1667
1671
|
def cancel(subscription_exposed_id, params = {}, opts = {})
|
@@ -54,7 +54,7 @@ module Stripe
|
|
54
54
|
end
|
55
55
|
|
56
56
|
class TaxId < Stripe::RequestParams
|
57
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
57
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
58
58
|
attr_accessor :type
|
59
59
|
# Value of the tax ID.
|
60
60
|
attr_accessor :value
|