stripe 13.4.0.pre.beta.2 → 13.4.0.pre.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/Makefile +2 -0
  5. data/OPENAPI_VERSION +1 -1
  6. data/README.md +11 -6
  7. data/Rakefile +0 -5
  8. data/VERSION +1 -1
  9. data/justfile +43 -0
  10. data/lib/stripe/api_version.rb +1 -1
  11. data/lib/stripe/resources/account.rb +94 -2
  12. data/lib/stripe/resources/account_session.rb +95 -5
  13. data/lib/stripe/resources/billing_portal/configuration.rb +2 -2
  14. data/lib/stripe/resources/charge.rb +4 -0
  15. data/lib/stripe/resources/checkout/session.rb +17 -1
  16. data/lib/stripe/resources/confirmation_token.rb +10 -0
  17. data/lib/stripe/resources/financial_connections/transaction.rb +1 -1
  18. data/lib/stripe/resources/payment_intent.rb +46 -0
  19. data/lib/stripe/resources/payment_method.rb +17 -0
  20. data/lib/stripe/resources/payment_method_configuration.rb +59 -0
  21. data/lib/stripe/resources/setup_intent.rb +21 -0
  22. data/lib/stripe/resources/terminal/configuration.rb +49 -0
  23. data/lib/stripe/resources/token.rb +19 -0
  24. data/lib/stripe/services/account_service.rb +92 -2
  25. data/lib/stripe/services/account_session_service.rb +23 -5
  26. data/lib/stripe/services/billing_portal/configuration_service.rb +2 -2
  27. data/lib/stripe/services/checkout/session_service.rb +7 -0
  28. data/lib/stripe/services/financial_connections/transaction_service.rb +1 -1
  29. data/lib/stripe/services/payment_intent_service.rb +42 -0
  30. data/lib/stripe/services/payment_method_configuration_service.rb +42 -0
  31. data/lib/stripe/services/payment_method_service.rb +14 -0
  32. data/lib/stripe/services/setup_intent_service.rb +21 -0
  33. data/lib/stripe/services/terminal/configuration_service.rb +38 -0
  34. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +7 -0
  35. data/lib/stripe/services/token_service.rb +19 -0
  36. data/lib/stripe/stripe_client.rb +6 -1
  37. data/lib/stripe/stripe_configuration.rb +21 -1
  38. data/lib/stripe/thin_event.rb +22 -2
  39. data/lib/stripe/version.rb +1 -1
  40. data/lib/stripe.rb +22 -0
  41. data/rbi/stripe/resources/account.rbi +93 -8
  42. data/rbi/stripe/resources/account_session.rbi +121 -6
  43. data/rbi/stripe/resources/billing_portal/configuration.rbi +2 -2
  44. data/rbi/stripe/resources/charge.rbi +4 -0
  45. data/rbi/stripe/resources/checkout/session.rbi +22 -2
  46. data/rbi/stripe/resources/confirmation_token.rbi +12 -1
  47. data/rbi/stripe/resources/financial_connections/transaction.rbi +1 -1
  48. data/rbi/stripe/resources/payment_intent.rbi +58 -6
  49. data/rbi/stripe/resources/payment_method.rbi +20 -2
  50. data/rbi/stripe/resources/payment_method_configuration.rbi +68 -2
  51. data/rbi/stripe/resources/setup_intent.rbi +24 -3
  52. data/rbi/stripe/resources/terminal/configuration.rbi +54 -2
  53. data/rbi/stripe/resources/token.rbi +18 -1
  54. data/rbi/stripe/services/account_service.rbi +90 -8
  55. data/rbi/stripe/services/account_session_service.rbi +29 -6
  56. data/rbi/stripe/services/billing_portal/configuration_service.rbi +2 -2
  57. data/rbi/stripe/services/checkout/session_service.rbi +10 -1
  58. data/rbi/stripe/services/financial_connections/transaction_service.rbi +1 -1
  59. data/rbi/stripe/services/payment_intent_service.rbi +54 -6
  60. data/rbi/stripe/services/payment_method_configuration_service.rbi +46 -2
  61. data/rbi/stripe/services/payment_method_service.rbi +16 -2
  62. data/rbi/stripe/services/setup_intent_service.rbi +24 -3
  63. data/rbi/stripe/services/terminal/configuration_service.rbi +40 -2
  64. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +10 -1
  65. data/rbi/stripe/services/token_service.rbi +20 -1
  66. metadata +4 -2
@@ -273,6 +273,13 @@ module Stripe
273
273
  attr_reader :tax_ids
274
274
  end
275
275
 
276
+ class Discount < Stripe::StripeObject
277
+ # Coupon attached to the Checkout Session.
278
+ attr_reader :coupon
279
+ # Promotion code attached to the Checkout Session.
280
+ attr_reader :promotion_code
281
+ end
282
+
276
283
  class InvoiceCreation < Stripe::StripeObject
277
284
  class InvoiceData < Stripe::StripeObject
278
285
  class CustomField < Stripe::StripeObject
@@ -955,7 +962,7 @@ module Stripe
955
962
 
956
963
  class ShippingAddressCollection < Stripe::StripeObject
957
964
  # An array of two-letter ISO country codes representing which countries Checkout should provide as options for
958
- # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`.
965
+ # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`.
959
966
  attr_reader :allowed_countries
960
967
  end
961
968
 
@@ -2319,6 +2326,9 @@ module Stripe
2319
2326
  end
2320
2327
  end
2321
2328
 
2329
+ class PayByBank < Stripe::RequestParams
2330
+ end
2331
+
2322
2332
  class Payco < Stripe::RequestParams
2323
2333
  # Controls when the funds will be captured from the customer's account.
2324
2334
  attr_accessor :capture_method
@@ -2631,6 +2641,8 @@ module Stripe
2631
2641
  attr_accessor :oxxo
2632
2642
  # contains details about the P24 payment method options.
2633
2643
  attr_accessor :p24
2644
+ # contains details about the Pay By Bank payment method options.
2645
+ attr_accessor :pay_by_bank
2634
2646
  # contains details about the PAYCO payment method options.
2635
2647
  attr_accessor :payco
2636
2648
  # contains details about the PayNow payment method options.
@@ -2684,6 +2696,7 @@ module Stripe
2684
2696
  naver_pay: nil,
2685
2697
  oxxo: nil,
2686
2698
  p24: nil,
2699
+ pay_by_bank: nil,
2687
2700
  payco: nil,
2688
2701
  paynow: nil,
2689
2702
  paypal: nil,
@@ -2724,6 +2737,7 @@ module Stripe
2724
2737
  @naver_pay = naver_pay
2725
2738
  @oxxo = oxxo
2726
2739
  @p24 = p24
2740
+ @pay_by_bank = pay_by_bank
2727
2741
  @payco = payco
2728
2742
  @paynow = paynow
2729
2743
  @paypal = paypal
@@ -3600,6 +3614,8 @@ module Stripe
3600
3614
  # on file. To access information about the customer once the payment flow is
3601
3615
  # complete, use the `customer` attribute.
3602
3616
  attr_reader :customer_email
3617
+ # List of coupons and promotion codes attached to the Checkout Session.
3618
+ attr_reader :discounts
3603
3619
  # The timestamp at which the Checkout Session will expire.
3604
3620
  attr_reader :expires_at
3605
3621
  # Unique identifier for the object.
@@ -566,6 +566,7 @@ module Stripe
566
566
  attr_reader :bank
567
567
  end
568
568
 
569
+ class PayByBank < Stripe::StripeObject; end
569
570
  class Payco < Stripe::StripeObject; end
570
571
  class Paynow < Stripe::StripeObject; end
571
572
 
@@ -760,6 +761,8 @@ module Stripe
760
761
  attr_reader :oxxo
761
762
  # Attribute for field p24
762
763
  attr_reader :p24
764
+ # Attribute for field pay_by_bank
765
+ attr_reader :pay_by_bank
763
766
  # Attribute for field payco
764
767
  attr_reader :payco
765
768
  # Attribute for field paynow
@@ -1073,6 +1076,9 @@ module Stripe
1073
1076
  end
1074
1077
  end
1075
1078
 
1079
+ class PayByBank < Stripe::RequestParams
1080
+ end
1081
+
1076
1082
  class Payco < Stripe::RequestParams
1077
1083
  end
1078
1084
 
@@ -1273,6 +1279,8 @@ module Stripe
1273
1279
  attr_accessor :oxxo
1274
1280
  # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
1275
1281
  attr_accessor :p24
1282
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1283
+ attr_accessor :pay_by_bank
1276
1284
  # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
1277
1285
  attr_accessor :payco
1278
1286
  # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -1350,6 +1358,7 @@ module Stripe
1350
1358
  naver_pay: nil,
1351
1359
  oxxo: nil,
1352
1360
  p24: nil,
1361
+ pay_by_bank: nil,
1353
1362
  payco: nil,
1354
1363
  paynow: nil,
1355
1364
  paypal: nil,
@@ -1406,6 +1415,7 @@ module Stripe
1406
1415
  @naver_pay = naver_pay
1407
1416
  @oxxo = oxxo
1408
1417
  @p24 = p24
1418
+ @pay_by_bank = pay_by_bank
1409
1419
  @payco = payco
1410
1420
  @paynow = paynow
1411
1421
  @paypal = paypal
@@ -46,7 +46,7 @@ module Stripe
46
46
  @after = after
47
47
  end
48
48
  end
49
- # The ID of the Stripe account whose transactions will be retrieved.
49
+ # The ID of the Financial Connections Account whose transactions will be retrieved.
50
50
  attr_accessor :account
51
51
  # 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.
52
52
  attr_accessor :ending_before
@@ -1416,6 +1416,8 @@ module Stripe
1416
1416
  attr_reader :setup_future_usage
1417
1417
  end
1418
1418
 
1419
+ class PayByBank < Stripe::StripeObject; end
1420
+
1419
1421
  class Payco < Stripe::StripeObject
1420
1422
  # Controls when the funds will be captured from the customer's account.
1421
1423
  attr_reader :capture_method
@@ -1768,6 +1770,8 @@ module Stripe
1768
1770
  attr_reader :oxxo
1769
1771
  # Attribute for field p24
1770
1772
  attr_reader :p24
1773
+ # Attribute for field pay_by_bank
1774
+ attr_reader :pay_by_bank
1771
1775
  # Attribute for field payco
1772
1776
  attr_reader :payco
1773
1777
  # Attribute for field paynow
@@ -2890,6 +2894,9 @@ module Stripe
2890
2894
  end
2891
2895
  end
2892
2896
 
2897
+ class PayByBank < Stripe::RequestParams
2898
+ end
2899
+
2893
2900
  class Payco < Stripe::RequestParams
2894
2901
  end
2895
2902
 
@@ -3090,6 +3097,8 @@ module Stripe
3090
3097
  attr_accessor :oxxo
3091
3098
  # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
3092
3099
  attr_accessor :p24
3100
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
3101
+ attr_accessor :pay_by_bank
3093
3102
  # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
3094
3103
  attr_accessor :payco
3095
3104
  # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -3167,6 +3176,7 @@ module Stripe
3167
3176
  naver_pay: nil,
3168
3177
  oxxo: nil,
3169
3178
  p24: nil,
3179
+ pay_by_bank: nil,
3170
3180
  payco: nil,
3171
3181
  paynow: nil,
3172
3182
  paypal: nil,
@@ -3223,6 +3233,7 @@ module Stripe
3223
3233
  @naver_pay = naver_pay
3224
3234
  @oxxo = oxxo
3225
3235
  @p24 = p24
3236
+ @pay_by_bank = pay_by_bank
3226
3237
  @payco = payco
3227
3238
  @paynow = paynow
3228
3239
  @paypal = paypal
@@ -4265,6 +4276,9 @@ module Stripe
4265
4276
  end
4266
4277
  end
4267
4278
 
4279
+ class PayByBank < Stripe::RequestParams
4280
+ end
4281
+
4268
4282
  class Payco < Stripe::RequestParams
4269
4283
  # Controls when the funds are captured from the customer's account.
4270
4284
  #
@@ -4848,6 +4862,8 @@ module Stripe
4848
4862
  attr_accessor :oxxo
4849
4863
  # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
4850
4864
  attr_accessor :p24
4865
+ # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
4866
+ attr_accessor :pay_by_bank
4851
4867
  # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
4852
4868
  attr_accessor :payco
4853
4869
  # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
@@ -4920,6 +4936,7 @@ module Stripe
4920
4936
  naver_pay: nil,
4921
4937
  oxxo: nil,
4922
4938
  p24: nil,
4939
+ pay_by_bank: nil,
4923
4940
  payco: nil,
4924
4941
  paynow: nil,
4925
4942
  paypal: nil,
@@ -4973,6 +4990,7 @@ module Stripe
4973
4990
  @naver_pay = naver_pay
4974
4991
  @oxxo = oxxo
4975
4992
  @p24 = p24
4993
+ @pay_by_bank = pay_by_bank
4976
4994
  @payco = payco
4977
4995
  @paynow = paynow
4978
4996
  @paypal = paypal
@@ -6211,6 +6229,9 @@ module Stripe
6211
6229
  end
6212
6230
  end
6213
6231
 
6232
+ class PayByBank < Stripe::RequestParams
6233
+ end
6234
+
6214
6235
  class Payco < Stripe::RequestParams
6215
6236
  end
6216
6237
 
@@ -6411,6 +6432,8 @@ module Stripe
6411
6432
  attr_accessor :oxxo
6412
6433
  # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
6413
6434
  attr_accessor :p24
6435
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
6436
+ attr_accessor :pay_by_bank
6414
6437
  # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
6415
6438
  attr_accessor :payco
6416
6439
  # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -6488,6 +6511,7 @@ module Stripe
6488
6511
  naver_pay: nil,
6489
6512
  oxxo: nil,
6490
6513
  p24: nil,
6514
+ pay_by_bank: nil,
6491
6515
  payco: nil,
6492
6516
  paynow: nil,
6493
6517
  paypal: nil,
@@ -6544,6 +6568,7 @@ module Stripe
6544
6568
  @naver_pay = naver_pay
6545
6569
  @oxxo = oxxo
6546
6570
  @p24 = p24
6571
+ @pay_by_bank = pay_by_bank
6547
6572
  @payco = payco
6548
6573
  @paynow = paynow
6549
6574
  @paypal = paypal
@@ -7586,6 +7611,9 @@ module Stripe
7586
7611
  end
7587
7612
  end
7588
7613
 
7614
+ class PayByBank < Stripe::RequestParams
7615
+ end
7616
+
7589
7617
  class Payco < Stripe::RequestParams
7590
7618
  # Controls when the funds are captured from the customer's account.
7591
7619
  #
@@ -8169,6 +8197,8 @@ module Stripe
8169
8197
  attr_accessor :oxxo
8170
8198
  # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
8171
8199
  attr_accessor :p24
8200
+ # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
8201
+ attr_accessor :pay_by_bank
8172
8202
  # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
8173
8203
  attr_accessor :payco
8174
8204
  # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
@@ -8241,6 +8271,7 @@ module Stripe
8241
8271
  naver_pay: nil,
8242
8272
  oxxo: nil,
8243
8273
  p24: nil,
8274
+ pay_by_bank: nil,
8244
8275
  payco: nil,
8245
8276
  paynow: nil,
8246
8277
  paypal: nil,
@@ -8294,6 +8325,7 @@ module Stripe
8294
8325
  @naver_pay = naver_pay
8295
8326
  @oxxo = oxxo
8296
8327
  @p24 = p24
8328
+ @pay_by_bank = pay_by_bank
8297
8329
  @payco = payco
8298
8330
  @paynow = paynow
8299
8331
  @paypal = paypal
@@ -10252,6 +10284,9 @@ module Stripe
10252
10284
  end
10253
10285
  end
10254
10286
 
10287
+ class PayByBank < Stripe::RequestParams
10288
+ end
10289
+
10255
10290
  class Payco < Stripe::RequestParams
10256
10291
  end
10257
10292
 
@@ -10452,6 +10487,8 @@ module Stripe
10452
10487
  attr_accessor :oxxo
10453
10488
  # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
10454
10489
  attr_accessor :p24
10490
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
10491
+ attr_accessor :pay_by_bank
10455
10492
  # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
10456
10493
  attr_accessor :payco
10457
10494
  # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -10529,6 +10566,7 @@ module Stripe
10529
10566
  naver_pay: nil,
10530
10567
  oxxo: nil,
10531
10568
  p24: nil,
10569
+ pay_by_bank: nil,
10532
10570
  payco: nil,
10533
10571
  paynow: nil,
10534
10572
  paypal: nil,
@@ -10585,6 +10623,7 @@ module Stripe
10585
10623
  @naver_pay = naver_pay
10586
10624
  @oxxo = oxxo
10587
10625
  @p24 = p24
10626
+ @pay_by_bank = pay_by_bank
10588
10627
  @payco = payco
10589
10628
  @paynow = paynow
10590
10629
  @paypal = paypal
@@ -11627,6 +11666,9 @@ module Stripe
11627
11666
  end
11628
11667
  end
11629
11668
 
11669
+ class PayByBank < Stripe::RequestParams
11670
+ end
11671
+
11630
11672
  class Payco < Stripe::RequestParams
11631
11673
  # Controls when the funds are captured from the customer's account.
11632
11674
  #
@@ -12210,6 +12252,8 @@ module Stripe
12210
12252
  attr_accessor :oxxo
12211
12253
  # If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
12212
12254
  attr_accessor :p24
12255
+ # If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
12256
+ attr_accessor :pay_by_bank
12213
12257
  # If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
12214
12258
  attr_accessor :payco
12215
12259
  # If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
@@ -12282,6 +12326,7 @@ module Stripe
12282
12326
  naver_pay: nil,
12283
12327
  oxxo: nil,
12284
12328
  p24: nil,
12329
+ pay_by_bank: nil,
12285
12330
  payco: nil,
12286
12331
  paynow: nil,
12287
12332
  paypal: nil,
@@ -12335,6 +12380,7 @@ module Stripe
12335
12380
  @naver_pay = naver_pay
12336
12381
  @oxxo = oxxo
12337
12382
  @p24 = p24
12383
+ @pay_by_bank = pay_by_bank
12338
12384
  @payco = payco
12339
12385
  @paynow = paynow
12340
12386
  @paypal = paypal
@@ -541,6 +541,7 @@ module Stripe
541
541
  attr_reader :bank
542
542
  end
543
543
 
544
+ class PayByBank < Stripe::StripeObject; end
544
545
  class Payco < Stripe::StripeObject; end
545
546
  class Paynow < Stripe::StripeObject; end
546
547
 
@@ -977,6 +978,9 @@ module Stripe
977
978
  end
978
979
  end
979
980
 
981
+ class PayByBank < Stripe::RequestParams
982
+ end
983
+
980
984
  class Payco < Stripe::RequestParams
981
985
  end
982
986
 
@@ -1183,6 +1187,8 @@ module Stripe
1183
1187
  attr_accessor :oxxo
1184
1188
  # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
1185
1189
  attr_accessor :p24
1190
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1191
+ attr_accessor :pay_by_bank
1186
1192
  # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
1187
1193
  attr_accessor :payco
1188
1194
  # The PaymentMethod to share.
@@ -1265,6 +1271,7 @@ module Stripe
1265
1271
  naver_pay: nil,
1266
1272
  oxxo: nil,
1267
1273
  p24: nil,
1274
+ pay_by_bank: nil,
1268
1275
  payco: nil,
1269
1276
  payment_method: nil,
1270
1277
  paynow: nil,
@@ -1325,6 +1332,7 @@ module Stripe
1325
1332
  @naver_pay = naver_pay
1326
1333
  @oxxo = oxxo
1327
1334
  @p24 = p24
1335
+ @pay_by_bank = pay_by_bank
1328
1336
  @payco = payco
1329
1337
  @payment_method = payment_method
1330
1338
  @paynow = paynow
@@ -1442,6 +1450,9 @@ module Stripe
1442
1450
  end
1443
1451
  end
1444
1452
 
1453
+ class PayByBank < Stripe::RequestParams
1454
+ end
1455
+
1445
1456
  class Payto < Stripe::RequestParams
1446
1457
  # The account number for the bank account.
1447
1458
  attr_accessor :account_number
@@ -1482,6 +1493,8 @@ module Stripe
1482
1493
  attr_accessor :metadata
1483
1494
  # If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
1484
1495
  attr_accessor :naver_pay
1496
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1497
+ attr_accessor :pay_by_bank
1485
1498
  # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1486
1499
  attr_accessor :payto
1487
1500
  # If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
@@ -1495,6 +1508,7 @@ module Stripe
1495
1508
  link: nil,
1496
1509
  metadata: nil,
1497
1510
  naver_pay: nil,
1511
+ pay_by_bank: nil,
1498
1512
  payto: nil,
1499
1513
  us_bank_account: nil
1500
1514
  )
@@ -1505,6 +1519,7 @@ module Stripe
1505
1519
  @link = link
1506
1520
  @metadata = metadata
1507
1521
  @naver_pay = naver_pay
1522
+ @pay_by_bank = pay_by_bank
1508
1523
  @payto = payto
1509
1524
  @us_bank_account = us_bank_account
1510
1525
  end
@@ -1614,6 +1629,8 @@ module Stripe
1614
1629
  attr_reader :oxxo
1615
1630
  # Attribute for field p24
1616
1631
  attr_reader :p24
1632
+ # Attribute for field pay_by_bank
1633
+ attr_reader :pay_by_bank
1617
1634
  # Attribute for field payco
1618
1635
  attr_reader :payco
1619
1636
  # Attribute for field paynow
@@ -506,6 +506,21 @@ module Stripe
506
506
  attr_reader :display_preference
507
507
  end
508
508
 
509
+ class PayByBank < Stripe::StripeObject
510
+ class DisplayPreference < Stripe::StripeObject
511
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
512
+ attr_reader :overridable
513
+ # The account's display preference.
514
+ attr_reader :preference
515
+ # The effective display preference value.
516
+ attr_reader :value
517
+ end
518
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
519
+ attr_reader :available
520
+ # Attribute for field display_preference
521
+ attr_reader :display_preference
522
+ end
523
+
509
524
  class Paynow < Stripe::StripeObject
510
525
  class DisplayPreference < Stripe::StripeObject
511
526
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -1305,6 +1320,23 @@ module Stripe
1305
1320
  end
1306
1321
  end
1307
1322
 
1323
+ class PayByBank < Stripe::RequestParams
1324
+ class DisplayPreference < Stripe::RequestParams
1325
+ # The account's preference for whether or not to display this payment method.
1326
+ attr_accessor :preference
1327
+
1328
+ def initialize(preference: nil)
1329
+ @preference = preference
1330
+ end
1331
+ end
1332
+ # Whether or not the payment method should be displayed.
1333
+ attr_accessor :display_preference
1334
+
1335
+ def initialize(display_preference: nil)
1336
+ @display_preference = display_preference
1337
+ end
1338
+ end
1339
+
1308
1340
  class Paynow < Stripe::RequestParams
1309
1341
  class DisplayPreference < Stripe::RequestParams
1310
1342
  # The account's preference for whether or not to display this payment method.
@@ -1614,6 +1646,8 @@ module Stripe
1614
1646
  attr_accessor :p24
1615
1647
  # Configuration's parent configuration. Specify to create a child configuration.
1616
1648
  attr_accessor :parent
1649
+ # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
1650
+ attr_accessor :pay_by_bank
1617
1651
  # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
1618
1652
  attr_accessor :paynow
1619
1653
  # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details.
@@ -1680,6 +1714,7 @@ module Stripe
1680
1714
  oxxo: nil,
1681
1715
  p24: nil,
1682
1716
  parent: nil,
1717
+ pay_by_bank: nil,
1683
1718
  paynow: nil,
1684
1719
  paypal: nil,
1685
1720
  payto: nil,
@@ -1731,6 +1766,7 @@ module Stripe
1731
1766
  @oxxo = oxxo
1732
1767
  @p24 = p24
1733
1768
  @parent = parent
1769
+ @pay_by_bank = pay_by_bank
1734
1770
  @paynow = paynow
1735
1771
  @paypal = paypal
1736
1772
  @payto = payto
@@ -2319,6 +2355,23 @@ module Stripe
2319
2355
  end
2320
2356
  end
2321
2357
 
2358
+ class PayByBank < Stripe::RequestParams
2359
+ class DisplayPreference < Stripe::RequestParams
2360
+ # The account's preference for whether or not to display this payment method.
2361
+ attr_accessor :preference
2362
+
2363
+ def initialize(preference: nil)
2364
+ @preference = preference
2365
+ end
2366
+ end
2367
+ # Whether or not the payment method should be displayed.
2368
+ attr_accessor :display_preference
2369
+
2370
+ def initialize(display_preference: nil)
2371
+ @display_preference = display_preference
2372
+ end
2373
+ end
2374
+
2322
2375
  class Paynow < Stripe::RequestParams
2323
2376
  class DisplayPreference < Stripe::RequestParams
2324
2377
  # The account's preference for whether or not to display this payment method.
@@ -2628,6 +2681,8 @@ module Stripe
2628
2681
  attr_accessor :oxxo
2629
2682
  # Przelewy24 is a Poland-based payment method aggregator that allows customers to complete transactions online using bank transfers and other methods. Bank transfers account for 30% of online payments in Poland and Przelewy24 provides a way for customers to pay with over 165 banks. Check this [page](https://stripe.com/docs/payments/p24) for more details.
2630
2683
  attr_accessor :p24
2684
+ # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
2685
+ attr_accessor :pay_by_bank
2631
2686
  # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
2632
2687
  attr_accessor :paynow
2633
2688
  # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details.
@@ -2694,6 +2749,7 @@ module Stripe
2694
2749
  name: nil,
2695
2750
  oxxo: nil,
2696
2751
  p24: nil,
2752
+ pay_by_bank: nil,
2697
2753
  paynow: nil,
2698
2754
  paypal: nil,
2699
2755
  payto: nil,
@@ -2745,6 +2801,7 @@ module Stripe
2745
2801
  @name = name
2746
2802
  @oxxo = oxxo
2747
2803
  @p24 = p24
2804
+ @pay_by_bank = pay_by_bank
2748
2805
  @paynow = paynow
2749
2806
  @paypal = paypal
2750
2807
  @payto = payto
@@ -2841,6 +2898,8 @@ module Stripe
2841
2898
  attr_reader :p24
2842
2899
  # For child configs, the configuration's parent configuration.
2843
2900
  attr_reader :parent
2901
+ # Attribute for field pay_by_bank
2902
+ attr_reader :pay_by_bank
2844
2903
  # Attribute for field paynow
2845
2904
  attr_reader :paynow
2846
2905
  # Attribute for field paypal
@@ -684,6 +684,9 @@ module Stripe
684
684
  end
685
685
  end
686
686
 
687
+ class PayByBank < Stripe::RequestParams
688
+ end
689
+
687
690
  class Payco < Stripe::RequestParams
688
691
  end
689
692
 
@@ -884,6 +887,8 @@ module Stripe
884
887
  attr_accessor :oxxo
885
888
  # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
886
889
  attr_accessor :p24
890
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
891
+ attr_accessor :pay_by_bank
887
892
  # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
888
893
  attr_accessor :payco
889
894
  # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -961,6 +966,7 @@ module Stripe
961
966
  naver_pay: nil,
962
967
  oxxo: nil,
963
968
  p24: nil,
969
+ pay_by_bank: nil,
964
970
  payco: nil,
965
971
  paynow: nil,
966
972
  paypal: nil,
@@ -1017,6 +1023,7 @@ module Stripe
1017
1023
  @naver_pay = naver_pay
1018
1024
  @oxxo = oxxo
1019
1025
  @p24 = p24
1026
+ @pay_by_bank = pay_by_bank
1020
1027
  @payco = payco
1021
1028
  @paynow = paynow
1022
1029
  @paypal = paypal
@@ -1829,6 +1836,9 @@ module Stripe
1829
1836
  end
1830
1837
  end
1831
1838
 
1839
+ class PayByBank < Stripe::RequestParams
1840
+ end
1841
+
1832
1842
  class Payco < Stripe::RequestParams
1833
1843
  end
1834
1844
 
@@ -2029,6 +2039,8 @@ module Stripe
2029
2039
  attr_accessor :oxxo
2030
2040
  # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
2031
2041
  attr_accessor :p24
2042
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
2043
+ attr_accessor :pay_by_bank
2032
2044
  # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
2033
2045
  attr_accessor :payco
2034
2046
  # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -2106,6 +2118,7 @@ module Stripe
2106
2118
  naver_pay: nil,
2107
2119
  oxxo: nil,
2108
2120
  p24: nil,
2121
+ pay_by_bank: nil,
2109
2122
  payco: nil,
2110
2123
  paynow: nil,
2111
2124
  paypal: nil,
@@ -2162,6 +2175,7 @@ module Stripe
2162
2175
  @naver_pay = naver_pay
2163
2176
  @oxxo = oxxo
2164
2177
  @p24 = p24
2178
+ @pay_by_bank = pay_by_bank
2165
2179
  @payco = payco
2166
2180
  @paynow = paynow
2167
2181
  @paypal = paypal
@@ -2964,6 +2978,9 @@ module Stripe
2964
2978
  end
2965
2979
  end
2966
2980
 
2981
+ class PayByBank < Stripe::RequestParams
2982
+ end
2983
+
2967
2984
  class Payco < Stripe::RequestParams
2968
2985
  end
2969
2986
 
@@ -3164,6 +3181,8 @@ module Stripe
3164
3181
  attr_accessor :oxxo
3165
3182
  # If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
3166
3183
  attr_accessor :p24
3184
+ # If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
3185
+ attr_accessor :pay_by_bank
3167
3186
  # If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
3168
3187
  attr_accessor :payco
3169
3188
  # If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -3241,6 +3260,7 @@ module Stripe
3241
3260
  naver_pay: nil,
3242
3261
  oxxo: nil,
3243
3262
  p24: nil,
3263
+ pay_by_bank: nil,
3244
3264
  payco: nil,
3245
3265
  paynow: nil,
3246
3266
  paypal: nil,
@@ -3297,6 +3317,7 @@ module Stripe
3297
3317
  @naver_pay = naver_pay
3298
3318
  @oxxo = oxxo
3299
3319
  @p24 = p24
3320
+ @pay_by_bank = pay_by_bank
3300
3321
  @payco = payco
3301
3322
  @paynow = paynow
3302
3323
  @paypal = paypal