stripe 20.2.0.pre.alpha.2 → 20.2.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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +20 -0
  3. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  4. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  5. data/lib/stripe/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
  6. data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
  7. data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
  8. data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
  9. data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
  10. data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
  11. data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
  12. data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
  13. data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
  14. data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
  15. data/lib/stripe/object_types.rb +1 -0
  16. data/lib/stripe/params/checkout/session_create_params.rb +4 -0
  17. data/lib/stripe/params/customer_update_params.rb +55 -0
  18. data/lib/stripe/params/fx_quote_create_params.rb +2 -2
  19. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +10 -1
  20. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
  21. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -1
  22. data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
  23. data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
  24. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
  25. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
  26. data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
  27. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +7 -1
  28. data/lib/stripe/params/setup_intent_confirm_params.rb +13 -1
  29. data/lib/stripe/params/setup_intent_create_params.rb +13 -1
  30. data/lib/stripe/params/setup_intent_update_params.rb +13 -1
  31. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -0
  32. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +22 -1
  33. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
  34. data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
  35. data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
  36. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
  37. data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
  38. data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
  39. data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
  40. data/lib/stripe/params.rb +6 -0
  41. data/lib/stripe/resources/balance_transaction.rb +1 -1
  42. data/lib/stripe/resources/charge.rb +23 -7
  43. data/lib/stripe/resources/checkout/session.rb +2 -0
  44. data/lib/stripe/resources/confirmation_token.rb +19 -3
  45. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  46. data/lib/stripe/resources/mandate.rb +16 -0
  47. data/lib/stripe/resources/payment_attempt_record.rb +18 -2
  48. data/lib/stripe/resources/payment_intent.rb +26 -0
  49. data/lib/stripe/resources/payment_method.rb +19 -3
  50. data/lib/stripe/resources/payment_method_configuration.rb +34 -0
  51. data/lib/stripe/resources/payment_record.rb +18 -2
  52. data/lib/stripe/resources/radar/payment_evaluation.rb +4 -0
  53. data/lib/stripe/resources/reserve/hold.rb +2 -2
  54. data/lib/stripe/resources/reserve/plan.rb +1 -1
  55. data/lib/stripe/resources/reserve/release.rb +1 -1
  56. data/lib/stripe/resources/setup_attempt.rb +18 -2
  57. data/lib/stripe/resources/setup_intent.rb +19 -1
  58. data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
  59. data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
  60. data/lib/stripe/resources/terminal/reader.rb +18 -1
  61. data/lib/stripe/resources/v2/core/event.rb +1 -1
  62. data/lib/stripe/resources/v2/core/event_base.rb +36 -0
  63. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +74 -1
  64. data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
  65. data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
  66. data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
  67. data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
  68. data/lib/stripe/resources.rb +29 -0
  69. data/lib/stripe/services/checkout/session_service.rb +2 -0
  70. data/lib/stripe/services/reserve/hold_service.rb +2 -2
  71. data/lib/stripe/services/reserve/plan_service.rb +2 -2
  72. data/lib/stripe/services/reserve/release_service.rb +2 -2
  73. data/lib/stripe/services/v2/core/vault/network_token_service.rb +1 -0
  74. data/lib/stripe/services/v2/money_management/received_debit_mandate_service.rb +3 -0
  75. data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
  76. data/lib/stripe/services/v2/money_management_service.rb +2 -1
  77. data/lib/stripe/services.rb +2 -0
  78. data/lib/stripe/stripe_event_notification_handler.rb +20 -0
  79. data/lib/stripe/version.rb +1 -1
  80. data/lib/stripe/webhook.rb +61 -2
  81. data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
  82. data/rbi/stripe.rbi +1464 -72
  83. metadata +14 -2
data/lib/stripe/params.rb CHANGED
@@ -1343,6 +1343,9 @@ module Stripe
1343
1343
  autoload :RewardProgramListParams, "stripe/params/v2/money_management/reward_program_list_params"
1344
1344
  autoload :RewardProgramRetrieveParams, "stripe/params/v2/money_management/reward_program_retrieve_params"
1345
1345
  autoload :RewardProgramUpdateParams, "stripe/params/v2/money_management/reward_program_update_params"
1346
+ autoload :SpendingMandateCancelParams, "stripe/params/v2/money_management/spending_mandate_cancel_params"
1347
+ autoload :SpendingMandateListParams, "stripe/params/v2/money_management/spending_mandate_list_params"
1348
+ autoload :SpendingMandateRetrieveParams, "stripe/params/v2/money_management/spending_mandate_retrieve_params"
1346
1349
  autoload :TestHelperEarnedCreditsParams, "stripe/params/v2/money_management/test_helper_earned_credits_params"
1347
1350
  autoload :TransactionEntryListParams, "stripe/params/v2/money_management/transaction_entry_list_params"
1348
1351
  autoload :TransactionEntryRetrieveParams, "stripe/params/v2/money_management/transaction_entry_retrieve_params"
@@ -2595,6 +2598,9 @@ module Stripe
2595
2598
  stripe/params/v2/money_management/reward_programs/rule_list_params
2596
2599
  stripe/params/v2/money_management/reward_programs/rule_retrieve_params
2597
2600
  stripe/params/v2/money_management/reward_programs/rule_update_params
2601
+ stripe/params/v2/money_management/spending_mandate_cancel_params
2602
+ stripe/params/v2/money_management/spending_mandate_list_params
2603
+ stripe/params/v2/money_management/spending_mandate_retrieve_params
2598
2604
  stripe/params/v2/money_management/test_helper_earned_credits_params
2599
2605
  stripe/params/v2/money_management/test_helpers/financial_address_credit_params
2600
2606
  stripe/params/v2/money_management/test_helpers/financial_address_debit_params
@@ -46,7 +46,7 @@ module Stripe
46
46
  attr_reader :currency
47
47
  # An arbitrary string attached to the object. Often useful for displaying to users.
48
48
  attr_reader :description
49
- # If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then the `amount` in currency A, multiplied by the `exchange_rate`, equals the `amount` in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent's `amount` is `1000` and `currency` is `eur`. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction's `amount` is `1234`, its `currency` is `usd`, and the `exchange_rate` is `1.234`.
49
+ # The exchange rate used for this transaction, if applicable. Multiplying the source `amount` by the `exchange_rate` gives the destination `amount`, both in their currencies' smallest units. For example, `1000` EUR cents converts to `1234` USD cents at `1.234`. For a zero-decimal currency such as JPY, `1000` JPY converts to `640` USD cents (6.40 USD) at `0.64`, equivalent to `0.0064` USD per JPY. For JPY to USD, the API multiplier is 100 times the whole-unit rate because JPY amounts use yen and USD amounts use cents.
50
50
  attr_reader :exchange_rate
51
51
  # Fees (in cents (or local equivalent)) paid for this transaction. Represented as a positive integer when assessed.
52
52
  attr_reader :fee
@@ -537,9 +537,9 @@ module Stripe
537
537
  end
538
538
 
539
539
  class Checks < ::Stripe::StripeObject
540
- # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
540
+ # If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
541
541
  attr_reader :address_line1_check
542
- # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
542
+ # If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
543
543
  attr_reader :address_postal_code_check
544
544
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
545
545
  attr_reader :cvc_check
@@ -756,9 +756,9 @@ module Stripe
756
756
  class FundingSource < ::Stripe::StripeObject
757
757
  class Card < ::Stripe::StripeObject
758
758
  class Checks < ::Stripe::StripeObject
759
- # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
759
+ # If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
760
760
  attr_reader :address_line1_check
761
- # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
761
+ # If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
762
762
  attr_reader :address_postal_code_check
763
763
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
764
764
  attr_reader :cvc_check
@@ -1255,6 +1255,20 @@ module Stripe
1255
1255
  end
1256
1256
 
1257
1257
  class Receipt < ::Stripe::StripeObject
1258
+ class CardholderMessage < ::Stripe::StripeObject
1259
+ # Where the message must be printed or displayed. An empty list means the message must not be shown.
1260
+ attr_reader :destinations
1261
+ # The message from the card issuer, such as the remaining balance.
1262
+ attr_reader :value
1263
+
1264
+ def self.inner_class_types
1265
+ @inner_class_types = {}
1266
+ end
1267
+
1268
+ def self.field_remappings
1269
+ @field_remappings = {}
1270
+ end
1271
+ end
1258
1272
  # The type of account being debited or credited
1259
1273
  attr_reader :account_type
1260
1274
  # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
@@ -1265,6 +1279,8 @@ module Stripe
1265
1279
  attr_reader :authorization_code
1266
1280
  # EMV tag 8A. A code returned by the card issuer.
1267
1281
  attr_reader :authorization_response_code
1282
+ # A message from the card issuer to show to the cardholder, and where it must be shown.
1283
+ attr_reader :cardholder_message
1268
1284
  # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
1269
1285
  attr_reader :cardholder_verification_method
1270
1286
  # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
@@ -1275,7 +1291,7 @@ module Stripe
1275
1291
  attr_reader :transaction_status_information
1276
1292
 
1277
1293
  def self.inner_class_types
1278
- @inner_class_types = {}
1294
+ @inner_class_types = { cardholder_message: CardholderMessage }
1279
1295
  end
1280
1296
 
1281
1297
  def self.field_remappings
@@ -1819,9 +1835,9 @@ module Stripe
1819
1835
  class FundingSource < ::Stripe::StripeObject
1820
1836
  class Card < ::Stripe::StripeObject
1821
1837
  class Checks < ::Stripe::StripeObject
1822
- # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
1838
+ # If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
1823
1839
  attr_reader :address_line1_check
1824
- # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
1840
+ # If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
1825
1841
  attr_reader :address_postal_code_check
1826
1842
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
1827
1843
  attr_reader :cvc_check
@@ -3790,6 +3790,8 @@ module Stripe
3790
3790
  end
3791
3791
 
3792
3792
  # Creates a Checkout Session object.
3793
+ #
3794
+ # Validate requests on your server and protect your application's Session-creation endpoint with access controls and limits on repeated creation. See [Protect your Session-creation endpoint](https://docs.stripe.com/payments/accept-a-payment?payment-ui=elements&api-integration=checkout#protect-session-creation).
3793
3795
  def self.create(params = {}, opts = {})
3794
3796
  request_stripe_object(
3795
3797
  method: :post,
@@ -359,9 +359,9 @@ module Stripe
359
359
  end
360
360
 
361
361
  class Checks < ::Stripe::StripeObject
362
- # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
362
+ # If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
363
363
  attr_reader :address_line1_check
364
- # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
364
+ # If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
365
365
  attr_reader :address_postal_code_check
366
366
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
367
367
  attr_reader :cvc_check
@@ -449,6 +449,20 @@ module Stripe
449
449
  end
450
450
 
451
451
  class Receipt < ::Stripe::StripeObject
452
+ class CardholderMessage < ::Stripe::StripeObject
453
+ # Where the message must be printed or displayed. An empty list means the message must not be shown.
454
+ attr_reader :destinations
455
+ # The message from the card issuer, such as the remaining balance.
456
+ attr_reader :value
457
+
458
+ def self.inner_class_types
459
+ @inner_class_types = {}
460
+ end
461
+
462
+ def self.field_remappings
463
+ @field_remappings = {}
464
+ end
465
+ end
452
466
  # The type of account being debited or credited
453
467
  attr_reader :account_type
454
468
  # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
@@ -459,6 +473,8 @@ module Stripe
459
473
  attr_reader :authorization_code
460
474
  # EMV tag 8A. A code returned by the card issuer.
461
475
  attr_reader :authorization_response_code
476
+ # A message from the card issuer to show to the cardholder, and where it must be shown.
477
+ attr_reader :cardholder_message
462
478
  # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
463
479
  attr_reader :cardholder_verification_method
464
480
  # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
@@ -469,7 +485,7 @@ module Stripe
469
485
  attr_reader :transaction_status_information
470
486
 
471
487
  def self.inner_class_types
472
- @inner_class_types = {}
488
+ @inner_class_types = { cardholder_message: CardholderMessage }
473
489
  end
474
490
 
475
491
  def self.field_remappings
@@ -503,6 +503,37 @@ module Stripe
503
503
  @field_remappings = {}
504
504
  end
505
505
  end
506
+
507
+ class FraudulentSelfie < ::Stripe::StripeObject
508
+ class Indicator < ::Stripe::StripeObject
509
+ # A brief explanation of how this indicator contributed to the risk level.
510
+ attr_reader :explanation
511
+ # The effect this indicator had on the overall risk level.
512
+ attr_reader :impact
513
+ # The name of the specific indicator used in the risk assessment.
514
+ attr_reader :indicator
515
+
516
+ def self.inner_class_types
517
+ @inner_class_types = {}
518
+ end
519
+
520
+ def self.field_remappings
521
+ @field_remappings = {}
522
+ end
523
+ end
524
+ # Array of objects representing individual factors that contributed to the calculated risk level.
525
+ attr_reader :indicators
526
+ # Categorical assessment of the selfie risk.
527
+ attr_reader :risk_level
528
+
529
+ def self.inner_class_types
530
+ @inner_class_types = { indicators: Indicator }
531
+ end
532
+
533
+ def self.field_remappings
534
+ @field_remappings = {}
535
+ end
536
+ end
506
537
  # Attribute for field fraudulent_document
507
538
  attr_reader :fraudulent_document
508
539
  # Attribute for field fraudulent_email
@@ -511,6 +542,8 @@ module Stripe
511
542
  attr_reader :fraudulent_person
512
543
  # Attribute for field fraudulent_phone
513
544
  attr_reader :fraudulent_phone
545
+ # Attribute for field fraudulent_selfie
546
+ attr_reader :fraudulent_selfie
514
547
 
515
548
  def self.inner_class_types
516
549
  @inner_class_types = {
@@ -518,6 +551,7 @@ module Stripe
518
551
  fraudulent_email: FraudulentEmail,
519
552
  fraudulent_person: FraudulentPerson,
520
553
  fraudulent_phone: FraudulentPhone,
554
+ fraudulent_selfie: FraudulentSelfie,
521
555
  }
522
556
  end
523
557
 
@@ -338,6 +338,19 @@ module Stripe
338
338
  end
339
339
  end
340
340
 
341
+ class TossPay < ::Stripe::StripeObject
342
+ # The buyer identifier provided by NICE for this Toss Pay account, when available.
343
+ attr_reader :buyer_id
344
+
345
+ def self.inner_class_types
346
+ @inner_class_types = {}
347
+ end
348
+
349
+ def self.field_remappings
350
+ @field_remappings = {}
351
+ end
352
+ end
353
+
341
354
  class Twint < ::Stripe::StripeObject
342
355
  def self.inner_class_types
343
356
  @inner_class_types = {}
@@ -415,6 +428,8 @@ module Stripe
415
428
  attr_reader :revolut_pay
416
429
  # Attribute for field sepa_debit
417
430
  attr_reader :sepa_debit
431
+ # Attribute for field toss_pay
432
+ attr_reader :toss_pay
418
433
  # Attribute for field twint
419
434
  attr_reader :twint
420
435
  # This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method.
@@ -444,6 +459,7 @@ module Stripe
444
459
  pix: Pix,
445
460
  revolut_pay: RevolutPay,
446
461
  sepa_debit: SepaDebit,
462
+ toss_pay: TossPay,
447
463
  twint: Twint,
448
464
  upi: Upi,
449
465
  us_bank_account: UsBankAccount,
@@ -567,7 +567,7 @@ module Stripe
567
567
  class Checks < ::Stripe::StripeObject
568
568
  # If you provide a value for `address.line1`, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
569
569
  attr_reader :address_line1_check
570
- # If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
570
+ # If you provide an address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
571
571
  attr_reader :address_postal_code_check
572
572
  # If you provide a CVC, the check results is one of `pass`, `fail`, `unavailable`, or `unchecked`.
573
573
  attr_reader :cvc_check
@@ -836,6 +836,20 @@ module Stripe
836
836
  end
837
837
 
838
838
  class Receipt < ::Stripe::StripeObject
839
+ class CardholderMessage < ::Stripe::StripeObject
840
+ # Where the message must be printed or displayed. An empty list means the message must not be shown.
841
+ attr_reader :destinations
842
+ # The message from the card issuer, such as the remaining balance.
843
+ attr_reader :value
844
+
845
+ def self.inner_class_types
846
+ @inner_class_types = {}
847
+ end
848
+
849
+ def self.field_remappings
850
+ @field_remappings = {}
851
+ end
852
+ end
839
853
  # The type of account being debited or credited
840
854
  attr_reader :account_type
841
855
  # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
@@ -846,6 +860,8 @@ module Stripe
846
860
  attr_reader :authorization_code
847
861
  # EMV tag 8A. A code returned by the card issuer.
848
862
  attr_reader :authorization_response_code
863
+ # A message from the card issuer to show to the cardholder, and where it must be shown.
864
+ attr_reader :cardholder_message
849
865
  # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
850
866
  attr_reader :cardholder_verification_method
851
867
  # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
@@ -856,7 +872,7 @@ module Stripe
856
872
  attr_reader :transaction_status_information
857
873
 
858
874
  def self.inner_class_types
859
- @inner_class_types = {}
875
+ @inner_class_types = { cardholder_message: CardholderMessage }
860
876
  end
861
877
 
862
878
  def self.field_remappings
@@ -1608,6 +1608,29 @@ module Stripe
1608
1608
  @field_remappings = {}
1609
1609
  end
1610
1610
  end
1611
+
1612
+ class WechatPayRedirectToMiniProgram < ::Stripe::StripeObject
1613
+ # Mini Program ID registered on WeChat Open Platform
1614
+ attr_reader :app_id
1615
+ # Random string
1616
+ attr_reader :nonce_str
1617
+ # Unique trading ID assigned by WeChat Pay
1618
+ attr_reader :prepay_id
1619
+ # Signature
1620
+ attr_reader :sign
1621
+ # Signature type
1622
+ attr_reader :sign_type
1623
+ # Current time in epoch format
1624
+ attr_reader :timestamp
1625
+
1626
+ def self.inner_class_types
1627
+ @inner_class_types = {}
1628
+ end
1629
+
1630
+ def self.field_remappings
1631
+ @field_remappings = {}
1632
+ end
1633
+ end
1611
1634
  # Attribute for field alipay_handle_redirect
1612
1635
  attr_reader :alipay_handle_redirect
1613
1636
  # Attribute for field blik_authorize
@@ -1656,6 +1679,8 @@ module Stripe
1656
1679
  attr_reader :wechat_pay_redirect_to_android_app
1657
1680
  # Attribute for field wechat_pay_redirect_to_ios_app
1658
1681
  attr_reader :wechat_pay_redirect_to_ios_app
1682
+ # Attribute for field wechat_pay_redirect_to_mini_program
1683
+ attr_reader :wechat_pay_redirect_to_mini_program
1659
1684
 
1660
1685
  def self.inner_class_types
1661
1686
  @inner_class_types = {
@@ -1681,6 +1706,7 @@ module Stripe
1681
1706
  wechat_pay_handle_app_redirect: WechatPayHandleAppRedirect,
1682
1707
  wechat_pay_redirect_to_android_app: WechatPayRedirectToAndroidApp,
1683
1708
  wechat_pay_redirect_to_ios_app: WechatPayRedirectToIosApp,
1709
+ wechat_pay_redirect_to_mini_program: WechatPayRedirectToMiniProgram,
1684
1710
  }
1685
1711
  end
1686
1712
 
@@ -263,9 +263,9 @@ module Stripe
263
263
  end
264
264
 
265
265
  class Checks < ::Stripe::StripeObject
266
- # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
266
+ # If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
267
267
  attr_reader :address_line1_check
268
- # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
268
+ # If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
269
269
  attr_reader :address_postal_code_check
270
270
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
271
271
  attr_reader :cvc_check
@@ -353,6 +353,20 @@ module Stripe
353
353
  end
354
354
 
355
355
  class Receipt < ::Stripe::StripeObject
356
+ class CardholderMessage < ::Stripe::StripeObject
357
+ # Where the message must be printed or displayed. An empty list means the message must not be shown.
358
+ attr_reader :destinations
359
+ # The message from the card issuer, such as the remaining balance.
360
+ attr_reader :value
361
+
362
+ def self.inner_class_types
363
+ @inner_class_types = {}
364
+ end
365
+
366
+ def self.field_remappings
367
+ @field_remappings = {}
368
+ end
369
+ end
356
370
  # The type of account being debited or credited
357
371
  attr_reader :account_type
358
372
  # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
@@ -363,6 +377,8 @@ module Stripe
363
377
  attr_reader :authorization_code
364
378
  # EMV tag 8A. A code returned by the card issuer.
365
379
  attr_reader :authorization_response_code
380
+ # A message from the card issuer to show to the cardholder, and where it must be shown.
381
+ attr_reader :cardholder_message
366
382
  # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
367
383
  attr_reader :cardholder_verification_method
368
384
  # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
@@ -373,7 +389,7 @@ module Stripe
373
389
  attr_reader :transaction_status_information
374
390
 
375
391
  def self.inner_class_types
376
- @inner_class_types = {}
392
+ @inner_class_types = { cardholder_message: CardholderMessage }
377
393
  end
378
394
 
379
395
  def self.field_remappings
@@ -1886,6 +1886,37 @@ module Stripe
1886
1886
  end
1887
1887
  end
1888
1888
 
1889
+ class TossPay < ::Stripe::StripeObject
1890
+ class DisplayPreference < ::Stripe::StripeObject
1891
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1892
+ attr_reader :overridable
1893
+ # The account's display preference.
1894
+ attr_reader :preference
1895
+ # The effective display preference value.
1896
+ attr_reader :value
1897
+
1898
+ def self.inner_class_types
1899
+ @inner_class_types = {}
1900
+ end
1901
+
1902
+ def self.field_remappings
1903
+ @field_remappings = {}
1904
+ end
1905
+ end
1906
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1907
+ attr_reader :available
1908
+ # Attribute for field display_preference
1909
+ attr_reader :display_preference
1910
+
1911
+ def self.inner_class_types
1912
+ @inner_class_types = { display_preference: DisplayPreference }
1913
+ end
1914
+
1915
+ def self.field_remappings
1916
+ @field_remappings = {}
1917
+ end
1918
+ end
1919
+
1889
1920
  class Twint < ::Stripe::StripeObject
1890
1921
  class DisplayPreference < ::Stripe::StripeObject
1891
1922
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -2207,6 +2238,8 @@ module Stripe
2207
2238
  attr_reader :sunbit
2208
2239
  # Attribute for field swish
2209
2240
  attr_reader :swish
2241
+ # Attribute for field toss_pay
2242
+ attr_reader :toss_pay
2210
2243
  # Attribute for field twint
2211
2244
  attr_reader :twint
2212
2245
  # Attribute for field upi
@@ -2312,6 +2345,7 @@ module Stripe
2312
2345
  sofort: Sofort,
2313
2346
  sunbit: Sunbit,
2314
2347
  swish: Swish,
2348
+ toss_pay: TossPay,
2315
2349
  twint: Twint,
2316
2350
  upi: Upi,
2317
2351
  us_bank_account: UsBankAccount,
@@ -568,7 +568,7 @@ module Stripe
568
568
  class Checks < ::Stripe::StripeObject
569
569
  # If you provide a value for `address.line1`, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
570
570
  attr_reader :address_line1_check
571
- # If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
571
+ # If you provide an address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
572
572
  attr_reader :address_postal_code_check
573
573
  # If you provide a CVC, the check results is one of `pass`, `fail`, `unavailable`, or `unchecked`.
574
574
  attr_reader :cvc_check
@@ -837,6 +837,20 @@ module Stripe
837
837
  end
838
838
 
839
839
  class Receipt < ::Stripe::StripeObject
840
+ class CardholderMessage < ::Stripe::StripeObject
841
+ # Where the message must be printed or displayed. An empty list means the message must not be shown.
842
+ attr_reader :destinations
843
+ # The message from the card issuer, such as the remaining balance.
844
+ attr_reader :value
845
+
846
+ def self.inner_class_types
847
+ @inner_class_types = {}
848
+ end
849
+
850
+ def self.field_remappings
851
+ @field_remappings = {}
852
+ end
853
+ end
840
854
  # The type of account being debited or credited
841
855
  attr_reader :account_type
842
856
  # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
@@ -847,6 +861,8 @@ module Stripe
847
861
  attr_reader :authorization_code
848
862
  # EMV tag 8A. A code returned by the card issuer.
849
863
  attr_reader :authorization_response_code
864
+ # A message from the card issuer to show to the cardholder, and where it must be shown.
865
+ attr_reader :cardholder_message
850
866
  # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
851
867
  attr_reader :cardholder_verification_method
852
868
  # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
@@ -857,7 +873,7 @@ module Stripe
857
873
  attr_reader :transaction_status_information
858
874
 
859
875
  def self.inner_class_types
860
- @inner_class_types = {}
876
+ @inner_class_types = { cardholder_message: CardholderMessage }
861
877
  end
862
878
 
863
879
  def self.field_remappings
@@ -306,6 +306,10 @@ module Stripe
306
306
  class SepaDebit < ::Stripe::StripeObject
307
307
  # Creditor identifier used for the intended debit.
308
308
  attr_reader :creditor_id
309
+ # Describes the presence of the customer during the payment.
310
+ attr_reader :customer_presence
311
+ # Describes whether this payment is one-off or recurring.
312
+ attr_reader :payment_type
309
313
 
310
314
  def self.inner_class_types
311
315
  @inner_class_types = {}
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module Reserve
6
- # ReserveHolds are used to place a temporary ReserveHold on a merchant's funds.
6
+ # A ReserveHold holds a portion of an account's funds until it's released. Stripe or the account's platform can create a ReserveHold directly, and a ReservePlan creates ReserveHolds automatically from incoming Charges.
7
7
  class Hold < APIResource
8
8
  extend Stripe::APIOperations::List
9
9
 
@@ -76,7 +76,7 @@ module Stripe
76
76
  # Which source balance type this ReserveHold reserves funds from. One of `bank_account`, `card`, or `fpx`.
77
77
  attr_reader :source_type
78
78
 
79
- # Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
79
+ # Returns a list of ReserveHolds on your account or on one of your connected accounts. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
80
80
  def self.list(params = {}, opts = {})
81
81
  request_stripe_object(method: :get, path: "/v1/reserve/holds", params: params, opts: opts)
82
82
  end
@@ -82,7 +82,7 @@ module Stripe
82
82
  # The type of the ReservePlan.
83
83
  attr_reader :type
84
84
 
85
- # Returns a list of ReservePlans previously created. The ReservePlans are returned in sorted order, with the most recent ReservePlans appearing first.
85
+ # Returns a list of ReservePlans on your account or on one of your connected accounts. The ReservePlans are returned in sorted order, with the most recent ReservePlans appearing first.
86
86
  def self.list(params = {}, opts = {})
87
87
  request_stripe_object(method: :get, path: "/v1/reserve/plans", params: params, opts: opts)
88
88
  end
@@ -57,7 +57,7 @@ module Stripe
57
57
  # Attribute for field source_transaction
58
58
  attr_reader :source_transaction
59
59
 
60
- # Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
60
+ # Returns a list of ReserveReleases on your account or on one of your connected accounts. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
61
61
  def self.list(params = {}, opts = {})
62
62
  request_stripe_object(
63
63
  method: :get,
@@ -109,9 +109,9 @@ module Stripe
109
109
 
110
110
  class Card < ::Stripe::StripeObject
111
111
  class Checks < ::Stripe::StripeObject
112
- # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
112
+ # If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
113
113
  attr_reader :address_line1_check
114
- # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
114
+ # If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
115
115
  attr_reader :address_postal_code_check
116
116
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
117
117
  attr_reader :cvc_check
@@ -489,6 +489,19 @@ module Stripe
489
489
  end
490
490
  end
491
491
 
492
+ class TossPay < ::Stripe::StripeObject
493
+ # The buyer identifier provided by NICE for this Toss Pay account, when available.
494
+ attr_reader :buyer_id
495
+
496
+ def self.inner_class_types
497
+ @inner_class_types = {}
498
+ end
499
+
500
+ def self.field_remappings
501
+ @field_remappings = {}
502
+ end
503
+ end
504
+
492
505
  class Twint < ::Stripe::StripeObject
493
506
  def self.inner_class_types
494
507
  @inner_class_types = {}
@@ -572,6 +585,8 @@ module Stripe
572
585
  attr_reader :sofort
573
586
  # Attribute for field stripe_balance
574
587
  attr_reader :stripe_balance
588
+ # Attribute for field toss_pay
589
+ attr_reader :toss_pay
575
590
  # Attribute for field twint
576
591
  attr_reader :twint
577
592
  # The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method.
@@ -610,6 +625,7 @@ module Stripe
610
625
  sepa_debit: SepaDebit,
611
626
  sofort: Sofort,
612
627
  stripe_balance: StripeBalance,
628
+ toss_pay: TossPay,
613
629
  twint: Twint,
614
630
  upi: Upi,
615
631
  us_bank_account: UsBankAccount,
@@ -383,6 +383,19 @@ module Stripe
383
383
  end
384
384
 
385
385
  class BacsDebit < ::Stripe::StripeObject
386
+ class FinancialConnections < ::Stripe::StripeObject
387
+ # Attribute for field return_url
388
+ attr_reader :return_url
389
+
390
+ def self.inner_class_types
391
+ @inner_class_types = {}
392
+ end
393
+
394
+ def self.field_remappings
395
+ @field_remappings = {}
396
+ end
397
+ end
398
+
386
399
  class MandateOptions < ::Stripe::StripeObject
387
400
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
388
401
  attr_reader :reference_prefix
@@ -395,13 +408,18 @@ module Stripe
395
408
  @field_remappings = {}
396
409
  end
397
410
  end
411
+ # Attribute for field financial_connections
412
+ attr_reader :financial_connections
398
413
  # Attribute for field mandate_options
399
414
  attr_reader :mandate_options
400
415
  # Attribute for field verification_method
401
416
  attr_reader :verification_method
402
417
 
403
418
  def self.inner_class_types
404
- @inner_class_types = { mandate_options: MandateOptions }
419
+ @inner_class_types = {
420
+ financial_connections: FinancialConnections,
421
+ mandate_options: MandateOptions,
422
+ }
405
423
  end
406
424
 
407
425
  def self.field_remappings