stripe 19.4.0.pre.alpha.2 → 19.4.0.pre.alpha.3
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/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +15 -0
- data/lib/stripe/events/v2_billing_contract_activated_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_created_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_ended_event.rb +44 -0
- data/lib/stripe/events/v2_billing_contract_updated_event.rb +44 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +2 -2
- data/lib/stripe/params/checkout/session_create_params.rb +1 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +1 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +10 -1
- data/lib/stripe/params/payment_intent_create_params.rb +10 -1
- data/lib/stripe/params/payment_intent_update_params.rb +10 -1
- data/lib/stripe/params/promotion_code_create_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_create_params.rb +2 -2
- data/lib/stripe/params/subscription_schedule_list_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_update_params.rb +2 -2
- data/lib/stripe/params/terminal/reader_activate_gift_card_params.rb +35 -0
- data/lib/stripe/params/terminal/reader_cashout_gift_card_params.rb +21 -0
- data/lib/stripe/params/terminal/reader_check_gift_card_balance_params.rb +21 -0
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +4 -0
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +4 -0
- data/lib/stripe/params/terminal/reader_reload_gift_card_params.rb +27 -0
- data/lib/stripe/params/v2/billing/contract_cancel_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_create_params.rb +13 -175
- data/lib/stripe/params/v2/billing/contract_list_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_update_params.rb +48 -495
- data/lib/stripe/params/v2/core/account_list_params.rb +9 -1
- data/lib/stripe/params/v2/data/analytics/metric_query_create_params.rb +2 -2
- data/lib/stripe/params.rb +8 -0
- data/lib/stripe/resources/account.rb +55 -3
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing/alert_recovered.rb +17 -1
- data/lib/stripe/resources/capability.rb +2 -2
- data/lib/stripe/resources/capital/financing_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +1 -1
- data/lib/stripe/resources/checkout/session.rb +21 -3
- data/lib/stripe/resources/confirmation_token.rb +1 -1
- data/lib/stripe/resources/dispute.rb +4 -2
- data/lib/stripe/resources/financial_connections/session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/issuing/authorization.rb +52 -1
- data/lib/stripe/resources/issuing/transaction.rb +47 -1
- data/lib/stripe/resources/payment_attempt_record.rb +2 -2
- data/lib/stripe/resources/payment_intent.rb +28 -0
- data/lib/stripe/resources/payment_method.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +2 -2
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/quote.rb +22 -1
- data/lib/stripe/resources/quote_preview_invoice.rb +3 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +44 -2
- data/lib/stripe/resources/setup_attempt.rb +16 -0
- data/lib/stripe/resources/setup_intent.rb +3 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +1 -1
- data/lib/stripe/resources/subscription_schedule.rb +44 -2
- data/lib/stripe/resources/tax/registration.rb +32 -0
- data/lib/stripe/resources/terminal/reader.rb +173 -0
- data/lib/stripe/resources/v2/billing/contract.rb +47 -330
- data/lib/stripe/resources/v2/billing/contract_pricing_line_quantity_change.rb +2 -2
- data/lib/stripe/resources/v2/core/account.rb +18 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +16 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +30 -0
- data/lib/stripe/resources.rb +15 -0
- data/lib/stripe/services/account_service.rb +1 -1
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/terminal/reader_service.rb +44 -0
- data/lib/stripe/services/v2/billing/contract_service.rb +7 -7
- data/lib/stripe/stripe_event_notification_handler.rb +30 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +1039 -1148
- metadata +11 -2
|
@@ -365,6 +365,9 @@ module Stripe
|
|
|
365
365
|
attr_reader :decline_code
|
|
366
366
|
# A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
|
|
367
367
|
attr_reader :doc_url
|
|
368
|
+
# A GiftCardOperation represents an operation performed on a third-party gift card,
|
|
369
|
+
# such as activation, reload, cashout, balance check, or void.
|
|
370
|
+
attr_reader :gift_card_operation
|
|
368
371
|
# A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
|
|
369
372
|
attr_reader :message
|
|
370
373
|
# For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
|
|
@@ -4288,6 +4291,14 @@ module Stripe
|
|
|
4288
4291
|
class Payco < ::Stripe::StripeObject
|
|
4289
4292
|
# Controls when the funds will be captured from the customer's account.
|
|
4290
4293
|
attr_reader :capture_method
|
|
4294
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4295
|
+
#
|
|
4296
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
4297
|
+
#
|
|
4298
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
4299
|
+
#
|
|
4300
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
4301
|
+
attr_reader :setup_future_usage
|
|
4291
4302
|
|
|
4292
4303
|
def self.inner_class_types
|
|
4293
4304
|
@inner_class_types = {}
|
|
@@ -4389,6 +4400,15 @@ module Stripe
|
|
|
4389
4400
|
end
|
|
4390
4401
|
|
|
4391
4402
|
class Paypay < ::Stripe::StripeObject
|
|
4403
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4404
|
+
#
|
|
4405
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
4406
|
+
#
|
|
4407
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
4408
|
+
#
|
|
4409
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
4410
|
+
attr_reader :setup_future_usage
|
|
4411
|
+
|
|
4392
4412
|
def self.inner_class_types
|
|
4393
4413
|
@inner_class_types = {}
|
|
4394
4414
|
end
|
|
@@ -4566,6 +4586,14 @@ module Stripe
|
|
|
4566
4586
|
class SamsungPay < ::Stripe::StripeObject
|
|
4567
4587
|
# Controls when the funds will be captured from the customer's account.
|
|
4568
4588
|
attr_reader :capture_method
|
|
4589
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4590
|
+
#
|
|
4591
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
4592
|
+
#
|
|
4593
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
4594
|
+
#
|
|
4595
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
4596
|
+
attr_reader :setup_future_usage
|
|
4569
4597
|
|
|
4570
4598
|
def self.inner_class_types
|
|
4571
4599
|
@inner_class_types = {}
|
|
@@ -927,7 +927,7 @@ module Stripe
|
|
|
927
927
|
class Fpx < ::Stripe::StripeObject
|
|
928
928
|
# Account holder type, if provided. Can be one of `individual` or `company`.
|
|
929
929
|
attr_reader :account_holder_type
|
|
930
|
-
# The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
|
|
930
|
+
# The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
|
|
931
931
|
attr_reader :bank
|
|
932
932
|
|
|
933
933
|
def self.inner_class_types
|
|
@@ -285,7 +285,7 @@ module Stripe
|
|
|
285
285
|
class AmazonPay < ::Stripe::StripeObject
|
|
286
286
|
class Funding < ::Stripe::StripeObject
|
|
287
287
|
class Card < ::Stripe::StripeObject
|
|
288
|
-
# Card brand. Can be `
|
|
288
|
+
# Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
289
289
|
attr_reader :brand
|
|
290
290
|
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
291
291
|
attr_reader :brand_product
|
|
@@ -932,7 +932,7 @@ module Stripe
|
|
|
932
932
|
class Fpx < ::Stripe::StripeObject
|
|
933
933
|
# Account holder type, if provided. Can be one of `individual` or `company`.
|
|
934
934
|
attr_reader :account_holder_type
|
|
935
|
-
# The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
|
|
935
|
+
# The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
|
|
936
936
|
attr_reader :bank
|
|
937
937
|
# Unique transaction id generated by FPX for every request from the merchant
|
|
938
938
|
attr_reader :transaction_id
|
|
@@ -193,7 +193,7 @@ module Stripe
|
|
|
193
193
|
attr_reader :alternatives
|
|
194
194
|
# Fields that need to be resolved to keep the person's account enabled. If not resolved by the account's `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash, and may immediately become `past_due`, but the account may also be given a grace period depending on the account's enablement state prior to transition.
|
|
195
195
|
attr_reader :currently_due
|
|
196
|
-
#
|
|
196
|
+
# Fields that are `currently_due` and need to be collected again because validation or verification failed.
|
|
197
197
|
attr_reader :errors
|
|
198
198
|
# Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `future_requirements[current_deadline]` becomes set.
|
|
199
199
|
attr_reader :eventually_due
|
|
@@ -297,7 +297,7 @@ module Stripe
|
|
|
297
297
|
attr_reader :alternatives
|
|
298
298
|
# Fields that need to be resolved to keep the person's account enabled. If not resolved by the account's `current_deadline`, these fields will appear in `past_due` as well, and the account is disabled.
|
|
299
299
|
attr_reader :currently_due
|
|
300
|
-
#
|
|
300
|
+
# Fields that are `currently_due` and need to be collected again because validation or verification failed.
|
|
301
301
|
attr_reader :errors
|
|
302
302
|
# Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `current_deadline` becomes set.
|
|
303
303
|
attr_reader :eventually_due
|
|
@@ -300,6 +300,21 @@ module Stripe
|
|
|
300
300
|
end
|
|
301
301
|
|
|
302
302
|
class InvoiceSettings < ::Stripe::StripeObject
|
|
303
|
+
class CustomField < ::Stripe::StripeObject
|
|
304
|
+
# The name of the custom field.
|
|
305
|
+
attr_reader :name
|
|
306
|
+
# The value of the custom field.
|
|
307
|
+
attr_reader :value
|
|
308
|
+
|
|
309
|
+
def self.inner_class_types
|
|
310
|
+
@inner_class_types = {}
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
def self.field_remappings
|
|
314
|
+
@field_remappings = {}
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
|
|
303
318
|
class Issuer < ::Stripe::StripeObject
|
|
304
319
|
# The connected account being referenced when `type` is `account`.
|
|
305
320
|
attr_reader :account
|
|
@@ -314,13 +329,19 @@ module Stripe
|
|
|
314
329
|
@field_remappings = {}
|
|
315
330
|
end
|
|
316
331
|
end
|
|
332
|
+
# A list of up to 4 custom fields to be displayed on the invoice.
|
|
333
|
+
attr_reader :custom_fields
|
|
317
334
|
# Number of days within which a customer must pay invoices generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.
|
|
318
335
|
attr_reader :days_until_due
|
|
336
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
337
|
+
attr_reader :description
|
|
338
|
+
# Footer to be displayed on the invoice.
|
|
339
|
+
attr_reader :footer
|
|
319
340
|
# Attribute for field issuer
|
|
320
341
|
attr_reader :issuer
|
|
321
342
|
|
|
322
343
|
def self.inner_class_types
|
|
323
|
-
@inner_class_types = { issuer: Issuer }
|
|
344
|
+
@inner_class_types = { custom_fields: CustomField, issuer: Issuer }
|
|
324
345
|
end
|
|
325
346
|
|
|
326
347
|
def self.field_remappings
|
|
@@ -271,6 +271,9 @@ module Stripe
|
|
|
271
271
|
attr_reader :decline_code
|
|
272
272
|
# A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
|
|
273
273
|
attr_reader :doc_url
|
|
274
|
+
# A GiftCardOperation represents an operation performed on a third-party gift card,
|
|
275
|
+
# such as activation, reload, cashout, balance check, or void.
|
|
276
|
+
attr_reader :gift_card_operation
|
|
274
277
|
# A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
|
|
275
278
|
attr_reader :message
|
|
276
279
|
# For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
|
|
@@ -181,6 +181,21 @@ module Stripe
|
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
class InvoiceSettings < ::Stripe::StripeObject
|
|
184
|
+
class CustomField < ::Stripe::StripeObject
|
|
185
|
+
# The name of the custom field.
|
|
186
|
+
attr_reader :name
|
|
187
|
+
# The value of the custom field.
|
|
188
|
+
attr_reader :value
|
|
189
|
+
|
|
190
|
+
def self.inner_class_types
|
|
191
|
+
@inner_class_types = {}
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
def self.field_remappings
|
|
195
|
+
@field_remappings = {}
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
184
199
|
class Issuer < ::Stripe::StripeObject
|
|
185
200
|
# The connected account being referenced when `type` is `account`.
|
|
186
201
|
attr_reader :account
|
|
@@ -197,13 +212,19 @@ module Stripe
|
|
|
197
212
|
end
|
|
198
213
|
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
|
|
199
214
|
attr_reader :account_tax_ids
|
|
215
|
+
# A list of up to 4 custom fields to be displayed on the invoice.
|
|
216
|
+
attr_reader :custom_fields
|
|
200
217
|
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
|
201
218
|
attr_reader :days_until_due
|
|
219
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
220
|
+
attr_reader :description
|
|
221
|
+
# Footer to be displayed on the invoice.
|
|
222
|
+
attr_reader :footer
|
|
202
223
|
# Attribute for field issuer
|
|
203
224
|
attr_reader :issuer
|
|
204
225
|
|
|
205
226
|
def self.inner_class_types
|
|
206
|
-
@inner_class_types = { issuer: Issuer }
|
|
227
|
+
@inner_class_types = { custom_fields: CustomField, issuer: Issuer }
|
|
207
228
|
end
|
|
208
229
|
|
|
209
230
|
def self.field_remappings
|
|
@@ -526,6 +547,21 @@ module Stripe
|
|
|
526
547
|
end
|
|
527
548
|
|
|
528
549
|
class InvoiceSettings < ::Stripe::StripeObject
|
|
550
|
+
class CustomField < ::Stripe::StripeObject
|
|
551
|
+
# The name of the custom field.
|
|
552
|
+
attr_reader :name
|
|
553
|
+
# The value of the custom field.
|
|
554
|
+
attr_reader :value
|
|
555
|
+
|
|
556
|
+
def self.inner_class_types
|
|
557
|
+
@inner_class_types = {}
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
def self.field_remappings
|
|
561
|
+
@field_remappings = {}
|
|
562
|
+
end
|
|
563
|
+
end
|
|
564
|
+
|
|
529
565
|
class Issuer < ::Stripe::StripeObject
|
|
530
566
|
# The connected account being referenced when `type` is `account`.
|
|
531
567
|
attr_reader :account
|
|
@@ -542,13 +578,19 @@ module Stripe
|
|
|
542
578
|
end
|
|
543
579
|
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
|
544
580
|
attr_reader :account_tax_ids
|
|
581
|
+
# A list of up to 4 custom fields to be displayed on the invoice.
|
|
582
|
+
attr_reader :custom_fields
|
|
545
583
|
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
|
546
584
|
attr_reader :days_until_due
|
|
585
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
586
|
+
attr_reader :description
|
|
587
|
+
# Footer to be displayed on the invoice.
|
|
588
|
+
attr_reader :footer
|
|
547
589
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
548
590
|
attr_reader :issuer
|
|
549
591
|
|
|
550
592
|
def self.inner_class_types
|
|
551
|
-
@inner_class_types = { issuer: Issuer }
|
|
593
|
+
@inner_class_types = { custom_fields: CustomField, issuer: Issuer }
|
|
552
594
|
end
|
|
553
595
|
|
|
554
596
|
def self.field_remappings
|
|
@@ -371,6 +371,16 @@ module Stripe
|
|
|
371
371
|
end
|
|
372
372
|
end
|
|
373
373
|
|
|
374
|
+
class Paypay < ::Stripe::StripeObject
|
|
375
|
+
def self.inner_class_types
|
|
376
|
+
@inner_class_types = {}
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
def self.field_remappings
|
|
380
|
+
@field_remappings = {}
|
|
381
|
+
end
|
|
382
|
+
end
|
|
383
|
+
|
|
374
384
|
class Payto < ::Stripe::StripeObject
|
|
375
385
|
def self.inner_class_types
|
|
376
386
|
@inner_class_types = {}
|
|
@@ -528,6 +538,8 @@ module Stripe
|
|
|
528
538
|
attr_reader :nz_bank_account
|
|
529
539
|
# Attribute for field paypal
|
|
530
540
|
attr_reader :paypal
|
|
541
|
+
# Attribute for field paypay
|
|
542
|
+
attr_reader :paypay
|
|
531
543
|
# Attribute for field payto
|
|
532
544
|
attr_reader :payto
|
|
533
545
|
# Attribute for field pix
|
|
@@ -571,6 +583,7 @@ module Stripe
|
|
|
571
583
|
naver_pay: NaverPay,
|
|
572
584
|
nz_bank_account: NzBankAccount,
|
|
573
585
|
paypal: Paypal,
|
|
586
|
+
paypay: Paypay,
|
|
574
587
|
payto: Payto,
|
|
575
588
|
pix: Pix,
|
|
576
589
|
revolut_pay: RevolutPay,
|
|
@@ -600,6 +613,9 @@ module Stripe
|
|
|
600
613
|
attr_reader :decline_code
|
|
601
614
|
# A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
|
|
602
615
|
attr_reader :doc_url
|
|
616
|
+
# A GiftCardOperation represents an operation performed on a third-party gift card,
|
|
617
|
+
# such as activation, reload, cashout, balance check, or void.
|
|
618
|
+
attr_reader :gift_card_operation
|
|
603
619
|
# A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
|
|
604
620
|
attr_reader :message
|
|
605
621
|
# For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
|
|
@@ -61,6 +61,9 @@ module Stripe
|
|
|
61
61
|
attr_reader :decline_code
|
|
62
62
|
# A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
|
|
63
63
|
attr_reader :doc_url
|
|
64
|
+
# A GiftCardOperation represents an operation performed on a third-party gift card,
|
|
65
|
+
# such as activation, reload, cashout, balance check, or void.
|
|
66
|
+
attr_reader :gift_card_operation
|
|
64
67
|
# A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
|
|
65
68
|
attr_reader :message
|
|
66
69
|
# For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
|
|
@@ -666,7 +666,7 @@ module Stripe
|
|
|
666
666
|
class Fpx < ::Stripe::StripeObject
|
|
667
667
|
# Account holder type, if provided. Can be one of `individual` or `company`.
|
|
668
668
|
attr_reader :account_holder_type
|
|
669
|
-
# The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
|
|
669
|
+
# The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
|
|
670
670
|
attr_reader :bank
|
|
671
671
|
|
|
672
672
|
def self.inner_class_types
|
|
@@ -171,6 +171,21 @@ module Stripe
|
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
class InvoiceSettings < ::Stripe::StripeObject
|
|
174
|
+
class CustomField < ::Stripe::StripeObject
|
|
175
|
+
# The name of the custom field.
|
|
176
|
+
attr_reader :name
|
|
177
|
+
# The value of the custom field.
|
|
178
|
+
attr_reader :value
|
|
179
|
+
|
|
180
|
+
def self.inner_class_types
|
|
181
|
+
@inner_class_types = {}
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def self.field_remappings
|
|
185
|
+
@field_remappings = {}
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
174
189
|
class Issuer < ::Stripe::StripeObject
|
|
175
190
|
# The connected account being referenced when `type` is `account`.
|
|
176
191
|
attr_reader :account
|
|
@@ -187,13 +202,19 @@ module Stripe
|
|
|
187
202
|
end
|
|
188
203
|
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
|
|
189
204
|
attr_reader :account_tax_ids
|
|
205
|
+
# A list of up to 4 custom fields to be displayed on the invoice.
|
|
206
|
+
attr_reader :custom_fields
|
|
190
207
|
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
|
191
208
|
attr_reader :days_until_due
|
|
209
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
210
|
+
attr_reader :description
|
|
211
|
+
# Footer to be displayed on the invoice.
|
|
212
|
+
attr_reader :footer
|
|
192
213
|
# Attribute for field issuer
|
|
193
214
|
attr_reader :issuer
|
|
194
215
|
|
|
195
216
|
def self.inner_class_types
|
|
196
|
-
@inner_class_types = { issuer: Issuer }
|
|
217
|
+
@inner_class_types = { custom_fields: CustomField, issuer: Issuer }
|
|
197
218
|
end
|
|
198
219
|
|
|
199
220
|
def self.field_remappings
|
|
@@ -516,6 +537,21 @@ module Stripe
|
|
|
516
537
|
end
|
|
517
538
|
|
|
518
539
|
class InvoiceSettings < ::Stripe::StripeObject
|
|
540
|
+
class CustomField < ::Stripe::StripeObject
|
|
541
|
+
# The name of the custom field.
|
|
542
|
+
attr_reader :name
|
|
543
|
+
# The value of the custom field.
|
|
544
|
+
attr_reader :value
|
|
545
|
+
|
|
546
|
+
def self.inner_class_types
|
|
547
|
+
@inner_class_types = {}
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
def self.field_remappings
|
|
551
|
+
@field_remappings = {}
|
|
552
|
+
end
|
|
553
|
+
end
|
|
554
|
+
|
|
519
555
|
class Issuer < ::Stripe::StripeObject
|
|
520
556
|
# The connected account being referenced when `type` is `account`.
|
|
521
557
|
attr_reader :account
|
|
@@ -532,13 +568,19 @@ module Stripe
|
|
|
532
568
|
end
|
|
533
569
|
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
|
534
570
|
attr_reader :account_tax_ids
|
|
571
|
+
# A list of up to 4 custom fields to be displayed on the invoice.
|
|
572
|
+
attr_reader :custom_fields
|
|
535
573
|
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
|
536
574
|
attr_reader :days_until_due
|
|
575
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
576
|
+
attr_reader :description
|
|
577
|
+
# Footer to be displayed on the invoice.
|
|
578
|
+
attr_reader :footer
|
|
537
579
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
538
580
|
attr_reader :issuer
|
|
539
581
|
|
|
540
582
|
def self.inner_class_types
|
|
541
|
-
@inner_class_types = { issuer: Issuer }
|
|
583
|
+
@inner_class_types = { custom_fields: CustomField, issuer: Issuer }
|
|
542
584
|
end
|
|
543
585
|
|
|
544
586
|
def self.field_remappings
|
|
@@ -1863,6 +1863,32 @@ module Stripe
|
|
|
1863
1863
|
end
|
|
1864
1864
|
end
|
|
1865
1865
|
|
|
1866
|
+
class MassTransitParkingTax < ::Stripe::StripeObject
|
|
1867
|
+
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=mass_transit_parking_tax#registration-types) representing the local jurisdiction.
|
|
1868
|
+
attr_reader :jurisdiction
|
|
1869
|
+
|
|
1870
|
+
def self.inner_class_types
|
|
1871
|
+
@inner_class_types = {}
|
|
1872
|
+
end
|
|
1873
|
+
|
|
1874
|
+
def self.field_remappings
|
|
1875
|
+
@field_remappings = {}
|
|
1876
|
+
end
|
|
1877
|
+
end
|
|
1878
|
+
|
|
1879
|
+
class ParkingTax < ::Stripe::StripeObject
|
|
1880
|
+
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=parking_tax#registration-types) representing the local jurisdiction.
|
|
1881
|
+
attr_reader :jurisdiction
|
|
1882
|
+
|
|
1883
|
+
def self.inner_class_types
|
|
1884
|
+
@inner_class_types = {}
|
|
1885
|
+
end
|
|
1886
|
+
|
|
1887
|
+
def self.field_remappings
|
|
1888
|
+
@field_remappings = {}
|
|
1889
|
+
end
|
|
1890
|
+
end
|
|
1891
|
+
|
|
1866
1892
|
class ResortTax < ::Stripe::StripeObject
|
|
1867
1893
|
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=resort_tax#registration-types) representing the local jurisdiction.
|
|
1868
1894
|
attr_reader :jurisdiction
|
|
@@ -1933,6 +1959,10 @@ module Stripe
|
|
|
1933
1959
|
attr_reader :local_lease_tax
|
|
1934
1960
|
# Attribute for field luxury_tax
|
|
1935
1961
|
attr_reader :luxury_tax
|
|
1962
|
+
# Attribute for field mass_transit_parking_tax
|
|
1963
|
+
attr_reader :mass_transit_parking_tax
|
|
1964
|
+
# Attribute for field parking_tax
|
|
1965
|
+
attr_reader :parking_tax
|
|
1936
1966
|
# Attribute for field resort_tax
|
|
1937
1967
|
attr_reader :resort_tax
|
|
1938
1968
|
# Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
@@ -1955,6 +1985,8 @@ module Stripe
|
|
|
1955
1985
|
local_amusement_tax: LocalAmusementTax,
|
|
1956
1986
|
local_lease_tax: LocalLeaseTax,
|
|
1957
1987
|
luxury_tax: LuxuryTax,
|
|
1988
|
+
mass_transit_parking_tax: MassTransitParkingTax,
|
|
1989
|
+
parking_tax: ParkingTax,
|
|
1958
1990
|
resort_tax: ResortTax,
|
|
1959
1991
|
state_sales_tax: StateSalesTax,
|
|
1960
1992
|
tourism_tax: TourismTax,
|