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
@@ -2,7 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Stripe
|
5
|
-
#
|
5
|
+
# Occurs when a ReceivedDebit is updated.
|
6
6
|
class V2MoneyManagementReceivedDebitUpdatedEvent < Stripe::V2::Event
|
7
7
|
def self.lookup_type
|
8
8
|
"v2.money_management.received_debit.updated"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
# Occurs when a Transaction is created.
|
6
|
+
class V2MoneyManagementTransactionCreatedEvent < Stripe::V2::Event
|
7
|
+
def self.lookup_type
|
8
|
+
"v2.money_management.transaction.created"
|
9
|
+
end
|
10
|
+
|
11
|
+
# Retrieves the related object from the API. Make an API request on every call.
|
12
|
+
def fetch_related_object
|
13
|
+
_request(
|
14
|
+
method: :get,
|
15
|
+
path: related_object.url,
|
16
|
+
base_address: :api,
|
17
|
+
opts: { stripe_account: context }
|
18
|
+
)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
# Occurs when a Transaction is updated.
|
6
|
+
class V2MoneyManagementTransactionUpdatedEvent < Stripe::V2::Event
|
7
|
+
def self.lookup_type
|
8
|
+
"v2.money_management.transaction.updated"
|
9
|
+
end
|
10
|
+
|
11
|
+
# Retrieves the related object from the API. Make an API request on every call.
|
12
|
+
def fetch_related_object
|
13
|
+
_request(
|
14
|
+
method: :get,
|
15
|
+
path: related_object.url,
|
16
|
+
base_address: :api,
|
17
|
+
opts: { stripe_account: context }
|
18
|
+
)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/stripe/object_types.rb
CHANGED
@@ -118,7 +118,6 @@ module Stripe
|
|
118
118
|
Plan.object_name => Plan,
|
119
119
|
Price.object_name => Price,
|
120
120
|
Privacy::RedactionJob.object_name => Privacy::RedactionJob,
|
121
|
-
Privacy::RedactionJobRootObjects.object_name => Privacy::RedactionJobRootObjects,
|
122
121
|
Privacy::RedactionJobValidationError.object_name => Privacy::RedactionJobValidationError,
|
123
122
|
Product.object_name => Product,
|
124
123
|
ProductFeature.object_name => ProductFeature,
|
@@ -696,7 +696,7 @@ module Stripe
|
|
696
696
|
attr_accessor :country
|
697
697
|
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
698
698
|
attr_accessor :currency
|
699
|
-
# The routing number, sort code, or other country-
|
699
|
+
# 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.
|
700
700
|
attr_accessor :routing_number
|
701
701
|
|
702
702
|
def initialize(
|
@@ -2957,7 +2957,7 @@ module Stripe
|
|
2957
2957
|
attr_accessor :country
|
2958
2958
|
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
2959
2959
|
attr_accessor :currency
|
2960
|
-
# The routing number, sort code, or other country-
|
2960
|
+
# 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.
|
2961
2961
|
attr_accessor :routing_number
|
2962
2962
|
|
2963
2963
|
def initialize(
|
@@ -2004,7 +2004,7 @@ module Stripe
|
|
2004
2004
|
attr_accessor :booking_number
|
2005
2005
|
# The lodging category
|
2006
2006
|
attr_accessor :category
|
2007
|
-
#
|
2007
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
2008
2008
|
attr_accessor :checkin_at
|
2009
2009
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
2010
2010
|
attr_accessor :checkout_at
|
@@ -2786,7 +2786,7 @@ module Stripe
|
|
2786
2786
|
attr_accessor :booking_number
|
2787
2787
|
# The lodging category
|
2788
2788
|
attr_accessor :category
|
2789
|
-
#
|
2789
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
2790
2790
|
attr_accessor :checkin_at
|
2791
2791
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
2792
2792
|
attr_accessor :checkout_at
|
@@ -89,7 +89,7 @@ module Stripe
|
|
89
89
|
end
|
90
90
|
|
91
91
|
class TaxId < Stripe::StripeObject
|
92
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
92
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
93
93
|
attr_reader :type
|
94
94
|
# The value of the tax ID.
|
95
95
|
attr_reader :value
|
@@ -249,7 +249,7 @@ module Stripe
|
|
249
249
|
end
|
250
250
|
|
251
251
|
class TaxId < Stripe::StripeObject
|
252
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
252
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
253
253
|
attr_reader :type
|
254
254
|
# The value of the tax ID.
|
255
255
|
attr_reader :value
|
@@ -3096,6 +3096,8 @@ module Stripe
|
|
3096
3096
|
attr_accessor :application_fee_percent
|
3097
3097
|
# A future timestamp to anchor the subscription's billing cycle for new subscriptions.
|
3098
3098
|
attr_accessor :billing_cycle_anchor
|
3099
|
+
# Configure billing_mode in each subscription to opt in improved credit proration behavior.
|
3100
|
+
attr_accessor :billing_mode
|
3099
3101
|
# The tax rates that will apply to any subscription item that does not have
|
3100
3102
|
# `tax_rates` set. Invoices created will have their `default_tax_rates` populated
|
3101
3103
|
# from the subscription.
|
@@ -3127,6 +3129,7 @@ module Stripe
|
|
3127
3129
|
def initialize(
|
3128
3130
|
application_fee_percent: nil,
|
3129
3131
|
billing_cycle_anchor: nil,
|
3132
|
+
billing_mode: nil,
|
3130
3133
|
default_tax_rates: nil,
|
3131
3134
|
description: nil,
|
3132
3135
|
invoice_settings: nil,
|
@@ -3140,6 +3143,7 @@ module Stripe
|
|
3140
3143
|
)
|
3141
3144
|
@application_fee_percent = application_fee_percent
|
3142
3145
|
@billing_cycle_anchor = billing_cycle_anchor
|
3146
|
+
@billing_mode = billing_mode
|
3143
3147
|
@default_tax_rates = default_tax_rates
|
3144
3148
|
@description = description
|
3145
3149
|
@invoice_settings = invoice_settings
|
@@ -3893,7 +3897,7 @@ module Stripe
|
|
3893
3897
|
# relevant text on the page, such as the submit button. `submit_type` can only be
|
3894
3898
|
# specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
|
3895
3899
|
attr_reader :submit_type
|
3896
|
-
# The ID of the
|
3900
|
+
# The ID of the [Subscription](https://stripe.com/docs/api/subscriptions) for Checkout Sessions in `subscription` mode.
|
3897
3901
|
attr_reader :subscription
|
3898
3902
|
# The URL the customer will be directed to after the payment or
|
3899
3903
|
# subscription creation is successful.
|
@@ -58,6 +58,8 @@ module Stripe
|
|
58
58
|
|
59
59
|
class PaymentMethodPreview < Stripe::StripeObject
|
60
60
|
class AcssDebit < Stripe::StripeObject
|
61
|
+
# Account number of the bank account.
|
62
|
+
attr_reader :account_number
|
61
63
|
# Name of the bank associated with the bank account.
|
62
64
|
attr_reader :bank_name
|
63
65
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
@@ -1577,14 +1579,14 @@ module Stripe
|
|
1577
1579
|
@plan = plan
|
1578
1580
|
end
|
1579
1581
|
end
|
1580
|
-
# Installment configuration for payments
|
1582
|
+
# Installment configuration for payments confirmed using this ConfirmationToken.
|
1581
1583
|
attr_accessor :installments
|
1582
1584
|
|
1583
1585
|
def initialize(installments: nil)
|
1584
1586
|
@installments = installments
|
1585
1587
|
end
|
1586
1588
|
end
|
1587
|
-
#
|
1589
|
+
# Configuration for any card payments confirmed using this ConfirmationToken.
|
1588
1590
|
attr_accessor :card
|
1589
1591
|
|
1590
1592
|
def initialize(card: nil)
|
@@ -1642,7 +1644,7 @@ module Stripe
|
|
1642
1644
|
attr_accessor :payment_method
|
1643
1645
|
# If provided, this hash will be used to create a PaymentMethod.
|
1644
1646
|
attr_accessor :payment_method_data
|
1645
|
-
#
|
1647
|
+
# Payment-method-specific configuration for this ConfirmationToken.
|
1646
1648
|
attr_accessor :payment_method_options
|
1647
1649
|
# Return URL used to confirm the Intent.
|
1648
1650
|
attr_accessor :return_url
|
@@ -555,7 +555,7 @@ module Stripe
|
|
555
555
|
end
|
556
556
|
|
557
557
|
class TaxIdDatum < Stripe::RequestParams
|
558
|
-
# 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`
|
558
|
+
# 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`
|
559
559
|
attr_accessor :type
|
560
560
|
# Value of the tax ID.
|
561
561
|
attr_accessor :value
|
@@ -656,7 +656,7 @@ module Stripe
|
|
656
656
|
end
|
657
657
|
|
658
658
|
class ListPaymentMethodsParams < Stripe::RequestParams
|
659
|
-
# 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.
|
659
|
+
# 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.
|
660
660
|
attr_accessor :allow_redisplay
|
661
661
|
# 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.
|
662
662
|
attr_accessor :ending_before
|
@@ -144,7 +144,7 @@ module Stripe
|
|
144
144
|
end
|
145
145
|
|
146
146
|
class CustomerTaxId < Stripe::StripeObject
|
147
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
147
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
148
148
|
attr_reader :type
|
149
149
|
# The value of the tax ID.
|
150
150
|
attr_reader :value
|
@@ -2657,7 +2657,7 @@ module Stripe
|
|
2657
2657
|
end
|
2658
2658
|
|
2659
2659
|
class TaxId < Stripe::RequestParams
|
2660
|
-
# 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`
|
2660
|
+
# 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`
|
2661
2661
|
attr_accessor :type
|
2662
2662
|
# Value of the tax ID.
|
2663
2663
|
attr_accessor :value
|
@@ -3862,6 +3862,8 @@ module Stripe
|
|
3862
3862
|
attr_accessor :amendments
|
3863
3863
|
# 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.
|
3864
3864
|
attr_accessor :billing_behavior
|
3865
|
+
# 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`.
|
3866
|
+
attr_accessor :billing_mode
|
3865
3867
|
# 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.
|
3866
3868
|
attr_accessor :end_behavior
|
3867
3869
|
# 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.
|
@@ -3874,6 +3876,7 @@ module Stripe
|
|
3874
3876
|
def initialize(
|
3875
3877
|
amendments: nil,
|
3876
3878
|
billing_behavior: nil,
|
3879
|
+
billing_mode: nil,
|
3877
3880
|
end_behavior: nil,
|
3878
3881
|
phases: nil,
|
3879
3882
|
prebilling: nil,
|
@@ -3881,6 +3884,7 @@ module Stripe
|
|
3881
3884
|
)
|
3882
3885
|
@amendments = amendments
|
3883
3886
|
@billing_behavior = billing_behavior
|
3887
|
+
@billing_mode = billing_mode
|
3884
3888
|
@end_behavior = end_behavior
|
3885
3889
|
@phases = phases
|
3886
3890
|
@prebilling = prebilling
|
@@ -4030,6 +4034,8 @@ module Stripe
|
|
4030
4034
|
end
|
4031
4035
|
# 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`.
|
4032
4036
|
attr_accessor :billing_cycle_anchor
|
4037
|
+
# Configure billing_mode in each subscription to opt in improved credit proration behavior.
|
4038
|
+
attr_accessor :billing_mode
|
4033
4039
|
# 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.
|
4034
4040
|
attr_accessor :cancel_at
|
4035
4041
|
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
@@ -4055,6 +4061,7 @@ module Stripe
|
|
4055
4061
|
|
4056
4062
|
def initialize(
|
4057
4063
|
billing_cycle_anchor: nil,
|
4064
|
+
billing_mode: nil,
|
4058
4065
|
cancel_at: nil,
|
4059
4066
|
cancel_at_period_end: nil,
|
4060
4067
|
cancel_now: nil,
|
@@ -4068,6 +4075,7 @@ module Stripe
|
|
4068
4075
|
trial_end: nil
|
4069
4076
|
)
|
4070
4077
|
@billing_cycle_anchor = billing_cycle_anchor
|
4078
|
+
@billing_mode = billing_mode
|
4071
4079
|
@cancel_at = cancel_at
|
4072
4080
|
@cancel_at_period_end = cancel_at_period_end
|
4073
4081
|
@cancel_now = cancel_now
|
@@ -451,7 +451,7 @@ module Stripe
|
|
451
451
|
|
452
452
|
class TaxDetails < Stripe::StripeObject
|
453
453
|
class TaxId < Stripe::StripeObject
|
454
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
454
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
455
455
|
attr_reader :type
|
456
456
|
# The value of the tax ID.
|
457
457
|
attr_reader :value
|
@@ -1504,7 +1504,7 @@ module Stripe
|
|
1504
1504
|
|
1505
1505
|
class TaxDetails < Stripe::RequestParams
|
1506
1506
|
class TaxId < Stripe::RequestParams
|
1507
|
-
# 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`
|
1507
|
+
# 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`
|
1508
1508
|
attr_accessor :type
|
1509
1509
|
# Value of the tax ID.
|
1510
1510
|
attr_accessor :value
|
@@ -2568,7 +2568,7 @@ module Stripe
|
|
2568
2568
|
|
2569
2569
|
class TaxDetails < Stripe::RequestParams
|
2570
2570
|
class TaxId < Stripe::RequestParams
|
2571
|
-
# 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`
|
2571
|
+
# 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`
|
2572
2572
|
attr_accessor :type
|
2573
2573
|
# Value of the tax ID.
|
2574
2574
|
attr_accessor :value
|
@@ -2588,7 +2588,7 @@ module Stripe
|
|
2588
2588
|
attr_accessor :booking_number
|
2589
2589
|
# The lodging category
|
2590
2590
|
attr_accessor :category
|
2591
|
-
#
|
2591
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
2592
2592
|
attr_accessor :checkin_at
|
2593
2593
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
2594
2594
|
attr_accessor :checkout_at
|
@@ -6091,7 +6091,7 @@ module Stripe
|
|
6091
6091
|
attr_accessor :booking_number
|
6092
6092
|
# The lodging category
|
6093
6093
|
attr_accessor :category
|
6094
|
-
#
|
6094
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
6095
6095
|
attr_accessor :checkin_at
|
6096
6096
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
6097
6097
|
attr_accessor :checkout_at
|
@@ -9540,7 +9540,7 @@ module Stripe
|
|
9540
9540
|
attr_accessor :booking_number
|
9541
9541
|
# The lodging category
|
9542
9542
|
attr_accessor :category
|
9543
|
-
#
|
9543
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
9544
9544
|
attr_accessor :checkin_at
|
9545
9545
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
9546
9546
|
attr_accessor :checkout_at
|
@@ -10334,7 +10334,7 @@ module Stripe
|
|
10334
10334
|
attr_accessor :booking_number
|
10335
10335
|
# The lodging category
|
10336
10336
|
attr_accessor :category
|
10337
|
-
#
|
10337
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
10338
10338
|
attr_accessor :checkin_at
|
10339
10339
|
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
10340
10340
|
attr_accessor :checkout_at
|
@@ -18,6 +18,8 @@ module Stripe
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class AcssDebit < Stripe::StripeObject
|
21
|
+
# Account number of the bank account.
|
22
|
+
attr_reader :account_number
|
21
23
|
# Name of the bank associated with the bank account.
|
22
24
|
attr_reader :bank_name
|
23
25
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
@@ -16,7 +16,28 @@ module Stripe
|
|
16
16
|
"privacy.redaction_job"
|
17
17
|
end
|
18
18
|
|
19
|
-
nested_resource_class_methods :validation_error, operations: %i[
|
19
|
+
nested_resource_class_methods :validation_error, operations: %i[list]
|
20
|
+
|
21
|
+
class Objects < Stripe::StripeObject
|
22
|
+
# Attribute for field charges
|
23
|
+
attr_reader :charges
|
24
|
+
# Attribute for field checkout_sessions
|
25
|
+
attr_reader :checkout_sessions
|
26
|
+
# Attribute for field customers
|
27
|
+
attr_reader :customers
|
28
|
+
# Attribute for field identity_verification_sessions
|
29
|
+
attr_reader :identity_verification_sessions
|
30
|
+
# Attribute for field invoices
|
31
|
+
attr_reader :invoices
|
32
|
+
# Attribute for field issuing_cardholders
|
33
|
+
attr_reader :issuing_cardholders
|
34
|
+
# Attribute for field payment_intents
|
35
|
+
attr_reader :payment_intents
|
36
|
+
# Attribute for field radar_value_list_items
|
37
|
+
attr_reader :radar_value_list_items
|
38
|
+
# Attribute for field setup_intents
|
39
|
+
attr_reader :setup_intents
|
40
|
+
end
|
20
41
|
|
21
42
|
class ListParams < Stripe::RequestParams
|
22
43
|
# 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.
|
@@ -307,6 +307,8 @@ module Stripe
|
|
307
307
|
attr_reader :billing_behavior
|
308
308
|
# Whether the subscription will always start a new billing period when the quote is accepted.
|
309
309
|
attr_reader :billing_cycle_anchor
|
310
|
+
# The [billing mode](/api/subscriptions/create#create_subscription-billing_mode) that will be set on the subscription once the quote is accepted.
|
311
|
+
attr_reader :billing_mode
|
310
312
|
# 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.
|
311
313
|
attr_reader :description
|
312
314
|
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
|
@@ -1277,6 +1279,8 @@ module Stripe
|
|
1277
1279
|
attr_accessor :billing_behavior
|
1278
1280
|
# When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
|
1279
1281
|
attr_accessor :billing_cycle_anchor
|
1282
|
+
# 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.
|
1283
|
+
attr_accessor :billing_mode
|
1280
1284
|
# 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.
|
1281
1285
|
attr_accessor :description
|
1282
1286
|
# 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.
|
@@ -1304,6 +1308,7 @@ module Stripe
|
|
1304
1308
|
bill_on_acceptance: nil,
|
1305
1309
|
billing_behavior: nil,
|
1306
1310
|
billing_cycle_anchor: nil,
|
1311
|
+
billing_mode: nil,
|
1307
1312
|
description: nil,
|
1308
1313
|
effective_date: nil,
|
1309
1314
|
end_behavior: nil,
|
@@ -1316,6 +1321,7 @@ module Stripe
|
|
1316
1321
|
@bill_on_acceptance = bill_on_acceptance
|
1317
1322
|
@billing_behavior = billing_behavior
|
1318
1323
|
@billing_cycle_anchor = billing_cycle_anchor
|
1324
|
+
@billing_mode = billing_mode
|
1319
1325
|
@description = description
|
1320
1326
|
@effective_date = effective_date
|
1321
1327
|
@end_behavior = end_behavior
|
@@ -144,7 +144,7 @@ module Stripe
|
|
144
144
|
end
|
145
145
|
|
146
146
|
class CustomerTaxId < Stripe::StripeObject
|
147
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
147
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
148
148
|
attr_reader :type
|
149
149
|
# The value of the tax ID.
|
150
150
|
attr_reader :value
|
@@ -293,6 +293,8 @@ module Stripe
|
|
293
293
|
attr_reader :applies_to
|
294
294
|
# 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.
|
295
295
|
attr_reader :billing_behavior
|
296
|
+
# The [billing mode](/api/subscriptions/create#create_subscription-billing_mode) that will be used to process all future operations for the subscription schedule.
|
297
|
+
attr_reader :billing_mode
|
296
298
|
# Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
297
299
|
attr_reader :canceled_at
|
298
300
|
# Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
|
@@ -1704,6 +1704,8 @@ module Stripe
|
|
1704
1704
|
attr_accessor :billing_cycle_anchor
|
1705
1705
|
# 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.
|
1706
1706
|
attr_accessor :billing_cycle_anchor_config
|
1707
|
+
# Configure billing_mode in each subscription to opt in improved credit proration behavior.
|
1708
|
+
attr_accessor :billing_mode
|
1707
1709
|
# 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.
|
1708
1710
|
attr_accessor :cancel_at
|
1709
1711
|
# Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
|
@@ -1778,6 +1780,7 @@ module Stripe
|
|
1778
1780
|
backdate_start_date: nil,
|
1779
1781
|
billing_cycle_anchor: nil,
|
1780
1782
|
billing_cycle_anchor_config: nil,
|
1783
|
+
billing_mode: nil,
|
1781
1784
|
cancel_at: nil,
|
1782
1785
|
cancel_at_period_end: nil,
|
1783
1786
|
collection_method: nil,
|
@@ -1813,6 +1816,7 @@ module Stripe
|
|
1813
1816
|
@backdate_start_date = backdate_start_date
|
1814
1817
|
@billing_cycle_anchor = billing_cycle_anchor
|
1815
1818
|
@billing_cycle_anchor_config = billing_cycle_anchor_config
|
1819
|
+
@billing_mode = billing_mode
|
1816
1820
|
@cancel_at = cancel_at
|
1817
1821
|
@cancel_at_period_end = cancel_at_period_end
|
1818
1822
|
@collection_method = collection_method
|
@@ -1894,6 +1898,8 @@ module Stripe
|
|
1894
1898
|
attr_reader :billing_cycle_anchor
|
1895
1899
|
# The fixed values used to calculate the `billing_cycle_anchor`.
|
1896
1900
|
attr_reader :billing_cycle_anchor_config
|
1901
|
+
# Configure billing_mode in each subscription to opt in improved credit proration behavior.
|
1902
|
+
attr_reader :billing_mode
|
1897
1903
|
# A date in the future at which the subscription will automatically get canceled
|
1898
1904
|
attr_reader :cancel_at
|
1899
1905
|
# Whether this subscription will (if `status=active`) or did (if `status=canceled`) cancel at the end of the current billing period.
|
@@ -1987,7 +1993,7 @@ module Stripe
|
|
1987
1993
|
|
1988
1994
|
# 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).
|
1989
1995
|
#
|
1990
|
-
# 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.
|
1996
|
+
# 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.
|
1991
1997
|
#
|
1992
1998
|
# 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.
|
1993
1999
|
def cancel(params = {}, opts = {})
|
@@ -2001,7 +2007,7 @@ module Stripe
|
|
2001
2007
|
|
2002
2008
|
# 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).
|
2003
2009
|
#
|
2004
|
-
# 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.
|
2010
|
+
# 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.
|
2005
2011
|
#
|
2006
2012
|
# 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.
|
2007
2013
|
def self.cancel(subscription_exposed_id, params = {}, opts = {})
|
@@ -978,6 +978,8 @@ module Stripe
|
|
978
978
|
end
|
979
979
|
# 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.
|
980
980
|
attr_accessor :billing_behavior
|
981
|
+
# 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`.
|
982
|
+
attr_accessor :billing_mode
|
981
983
|
# The identifier of the customer to create the subscription schedule for.
|
982
984
|
attr_accessor :customer
|
983
985
|
# The identifier of the account to create the subscription schedule for.
|
@@ -1001,6 +1003,7 @@ module Stripe
|
|
1001
1003
|
|
1002
1004
|
def initialize(
|
1003
1005
|
billing_behavior: nil,
|
1006
|
+
billing_mode: nil,
|
1004
1007
|
customer: nil,
|
1005
1008
|
customer_account: nil,
|
1006
1009
|
default_settings: nil,
|
@@ -1013,6 +1016,7 @@ module Stripe
|
|
1013
1016
|
start_date: nil
|
1014
1017
|
)
|
1015
1018
|
@billing_behavior = billing_behavior
|
1019
|
+
@billing_mode = billing_mode
|
1016
1020
|
@customer = customer
|
1017
1021
|
@customer_account = customer_account
|
1018
1022
|
@default_settings = default_settings
|
@@ -2232,6 +2236,8 @@ module Stripe
|
|
2232
2236
|
attr_reader :application
|
2233
2237
|
# 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.
|
2234
2238
|
attr_reader :billing_behavior
|
2239
|
+
# The [billing mode](/api/subscriptions/create#create_subscription-billing_mode) that will be used to process all future operations for the subscription schedule.
|
2240
|
+
attr_reader :billing_mode
|
2235
2241
|
# Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
2236
2242
|
attr_reader :canceled_at
|
2237
2243
|
# Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
|
@@ -31,7 +31,7 @@ module Stripe
|
|
31
31
|
end
|
32
32
|
|
33
33
|
class TaxId < Stripe::StripeObject
|
34
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown`
|
34
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
35
35
|
attr_reader :type
|
36
36
|
# The value of the tax ID.
|
37
37
|
attr_reader :value
|
@@ -200,7 +200,7 @@ module Stripe
|
|
200
200
|
end
|
201
201
|
|
202
202
|
class TaxId < Stripe::RequestParams
|
203
|
-
# 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`
|
203
|
+
# 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`
|
204
204
|
attr_accessor :type
|
205
205
|
# Value of the tax ID.
|
206
206
|
attr_accessor :value
|