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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/CONTRIBUTING.md +25 -0
- data/Makefile +2 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +11 -6
- data/Rakefile +0 -5
- data/VERSION +1 -1
- data/justfile +43 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/resources/account.rb +94 -2
- data/lib/stripe/resources/account_session.rb +95 -5
- data/lib/stripe/resources/billing_portal/configuration.rb +2 -2
- data/lib/stripe/resources/charge.rb +4 -0
- data/lib/stripe/resources/checkout/session.rb +17 -1
- data/lib/stripe/resources/confirmation_token.rb +10 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +1 -1
- data/lib/stripe/resources/payment_intent.rb +46 -0
- data/lib/stripe/resources/payment_method.rb +17 -0
- data/lib/stripe/resources/payment_method_configuration.rb +59 -0
- data/lib/stripe/resources/setup_intent.rb +21 -0
- data/lib/stripe/resources/terminal/configuration.rb +49 -0
- data/lib/stripe/resources/token.rb +19 -0
- data/lib/stripe/services/account_service.rb +92 -2
- data/lib/stripe/services/account_session_service.rb +23 -5
- data/lib/stripe/services/billing_portal/configuration_service.rb +2 -2
- data/lib/stripe/services/checkout/session_service.rb +7 -0
- data/lib/stripe/services/financial_connections/transaction_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +42 -0
- data/lib/stripe/services/payment_method_configuration_service.rb +42 -0
- data/lib/stripe/services/payment_method_service.rb +14 -0
- data/lib/stripe/services/setup_intent_service.rb +21 -0
- data/lib/stripe/services/terminal/configuration_service.rb +38 -0
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +7 -0
- data/lib/stripe/services/token_service.rb +19 -0
- data/lib/stripe/stripe_client.rb +6 -1
- data/lib/stripe/stripe_configuration.rb +21 -1
- data/lib/stripe/thin_event.rb +22 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +22 -0
- data/rbi/stripe/resources/account.rbi +93 -8
- data/rbi/stripe/resources/account_session.rbi +121 -6
- data/rbi/stripe/resources/billing_portal/configuration.rbi +2 -2
- data/rbi/stripe/resources/charge.rbi +4 -0
- data/rbi/stripe/resources/checkout/session.rbi +22 -2
- data/rbi/stripe/resources/confirmation_token.rbi +12 -1
- data/rbi/stripe/resources/financial_connections/transaction.rbi +1 -1
- data/rbi/stripe/resources/payment_intent.rbi +58 -6
- data/rbi/stripe/resources/payment_method.rbi +20 -2
- data/rbi/stripe/resources/payment_method_configuration.rbi +68 -2
- data/rbi/stripe/resources/setup_intent.rbi +24 -3
- data/rbi/stripe/resources/terminal/configuration.rbi +54 -2
- data/rbi/stripe/resources/token.rbi +18 -1
- data/rbi/stripe/services/account_service.rbi +90 -8
- data/rbi/stripe/services/account_session_service.rbi +29 -6
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +2 -2
- data/rbi/stripe/services/checkout/session_service.rbi +10 -1
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +1 -1
- data/rbi/stripe/services/payment_intent_service.rbi +54 -6
- data/rbi/stripe/services/payment_method_configuration_service.rbi +46 -2
- data/rbi/stripe/services/payment_method_service.rbi +16 -2
- data/rbi/stripe/services/setup_intent_service.rbi +24 -3
- data/rbi/stripe/services/terminal/configuration_service.rbi +40 -2
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +10 -1
- data/rbi/stripe/services/token_service.rbi +20 -1
- metadata +4 -2
@@ -1034,6 +1034,9 @@ module Stripe
|
|
1034
1034
|
end
|
1035
1035
|
end
|
1036
1036
|
|
1037
|
+
class PayByBank < Stripe::RequestParams
|
1038
|
+
end
|
1039
|
+
|
1037
1040
|
class Payco < Stripe::RequestParams
|
1038
1041
|
end
|
1039
1042
|
|
@@ -1234,6 +1237,8 @@ module Stripe
|
|
1234
1237
|
attr_accessor :oxxo
|
1235
1238
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
1236
1239
|
attr_accessor :p24
|
1240
|
+
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
1241
|
+
attr_accessor :pay_by_bank
|
1237
1242
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
1238
1243
|
attr_accessor :payco
|
1239
1244
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
@@ -1311,6 +1316,7 @@ module Stripe
|
|
1311
1316
|
naver_pay: nil,
|
1312
1317
|
oxxo: nil,
|
1313
1318
|
p24: nil,
|
1319
|
+
pay_by_bank: nil,
|
1314
1320
|
payco: nil,
|
1315
1321
|
paynow: nil,
|
1316
1322
|
paypal: nil,
|
@@ -1367,6 +1373,7 @@ module Stripe
|
|
1367
1373
|
@naver_pay = naver_pay
|
1368
1374
|
@oxxo = oxxo
|
1369
1375
|
@p24 = p24
|
1376
|
+
@pay_by_bank = pay_by_bank
|
1370
1377
|
@payco = payco
|
1371
1378
|
@paynow = paynow
|
1372
1379
|
@paypal = paypal
|
@@ -2409,6 +2416,9 @@ module Stripe
|
|
2409
2416
|
end
|
2410
2417
|
end
|
2411
2418
|
|
2419
|
+
class PayByBank < Stripe::RequestParams
|
2420
|
+
end
|
2421
|
+
|
2412
2422
|
class Payco < Stripe::RequestParams
|
2413
2423
|
# Controls when the funds are captured from the customer's account.
|
2414
2424
|
#
|
@@ -2992,6 +3002,8 @@ module Stripe
|
|
2992
3002
|
attr_accessor :oxxo
|
2993
3003
|
# If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
|
2994
3004
|
attr_accessor :p24
|
3005
|
+
# If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
|
3006
|
+
attr_accessor :pay_by_bank
|
2995
3007
|
# If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
|
2996
3008
|
attr_accessor :payco
|
2997
3009
|
# If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
|
@@ -3064,6 +3076,7 @@ module Stripe
|
|
3064
3076
|
naver_pay: nil,
|
3065
3077
|
oxxo: nil,
|
3066
3078
|
p24: nil,
|
3079
|
+
pay_by_bank: nil,
|
3067
3080
|
payco: nil,
|
3068
3081
|
paynow: nil,
|
3069
3082
|
paypal: nil,
|
@@ -3117,6 +3130,7 @@ module Stripe
|
|
3117
3130
|
@naver_pay = naver_pay
|
3118
3131
|
@oxxo = oxxo
|
3119
3132
|
@p24 = p24
|
3133
|
+
@pay_by_bank = pay_by_bank
|
3120
3134
|
@payco = payco
|
3121
3135
|
@paynow = paynow
|
3122
3136
|
@paypal = paypal
|
@@ -4355,6 +4369,9 @@ module Stripe
|
|
4355
4369
|
end
|
4356
4370
|
end
|
4357
4371
|
|
4372
|
+
class PayByBank < Stripe::RequestParams
|
4373
|
+
end
|
4374
|
+
|
4358
4375
|
class Payco < Stripe::RequestParams
|
4359
4376
|
end
|
4360
4377
|
|
@@ -4555,6 +4572,8 @@ module Stripe
|
|
4555
4572
|
attr_accessor :oxxo
|
4556
4573
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
4557
4574
|
attr_accessor :p24
|
4575
|
+
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
4576
|
+
attr_accessor :pay_by_bank
|
4558
4577
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
4559
4578
|
attr_accessor :payco
|
4560
4579
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
@@ -4632,6 +4651,7 @@ module Stripe
|
|
4632
4651
|
naver_pay: nil,
|
4633
4652
|
oxxo: nil,
|
4634
4653
|
p24: nil,
|
4654
|
+
pay_by_bank: nil,
|
4635
4655
|
payco: nil,
|
4636
4656
|
paynow: nil,
|
4637
4657
|
paypal: nil,
|
@@ -4688,6 +4708,7 @@ module Stripe
|
|
4688
4708
|
@naver_pay = naver_pay
|
4689
4709
|
@oxxo = oxxo
|
4690
4710
|
@p24 = p24
|
4711
|
+
@pay_by_bank = pay_by_bank
|
4691
4712
|
@payco = payco
|
4692
4713
|
@paynow = paynow
|
4693
4714
|
@paypal = paypal
|
@@ -5730,6 +5751,9 @@ module Stripe
|
|
5730
5751
|
end
|
5731
5752
|
end
|
5732
5753
|
|
5754
|
+
class PayByBank < Stripe::RequestParams
|
5755
|
+
end
|
5756
|
+
|
5733
5757
|
class Payco < Stripe::RequestParams
|
5734
5758
|
# Controls when the funds are captured from the customer's account.
|
5735
5759
|
#
|
@@ -6313,6 +6337,8 @@ module Stripe
|
|
6313
6337
|
attr_accessor :oxxo
|
6314
6338
|
# If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
|
6315
6339
|
attr_accessor :p24
|
6340
|
+
# If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
|
6341
|
+
attr_accessor :pay_by_bank
|
6316
6342
|
# If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
|
6317
6343
|
attr_accessor :payco
|
6318
6344
|
# If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
|
@@ -6385,6 +6411,7 @@ module Stripe
|
|
6385
6411
|
naver_pay: nil,
|
6386
6412
|
oxxo: nil,
|
6387
6413
|
p24: nil,
|
6414
|
+
pay_by_bank: nil,
|
6388
6415
|
payco: nil,
|
6389
6416
|
paynow: nil,
|
6390
6417
|
paypal: nil,
|
@@ -6438,6 +6465,7 @@ module Stripe
|
|
6438
6465
|
@naver_pay = naver_pay
|
6439
6466
|
@oxxo = oxxo
|
6440
6467
|
@p24 = p24
|
6468
|
+
@pay_by_bank = pay_by_bank
|
6441
6469
|
@payco = payco
|
6442
6470
|
@paynow = paynow
|
6443
6471
|
@paypal = paypal
|
@@ -8396,6 +8424,9 @@ module Stripe
|
|
8396
8424
|
end
|
8397
8425
|
end
|
8398
8426
|
|
8427
|
+
class PayByBank < Stripe::RequestParams
|
8428
|
+
end
|
8429
|
+
|
8399
8430
|
class Payco < Stripe::RequestParams
|
8400
8431
|
end
|
8401
8432
|
|
@@ -8596,6 +8627,8 @@ module Stripe
|
|
8596
8627
|
attr_accessor :oxxo
|
8597
8628
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
8598
8629
|
attr_accessor :p24
|
8630
|
+
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
8631
|
+
attr_accessor :pay_by_bank
|
8599
8632
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
8600
8633
|
attr_accessor :payco
|
8601
8634
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
@@ -8673,6 +8706,7 @@ module Stripe
|
|
8673
8706
|
naver_pay: nil,
|
8674
8707
|
oxxo: nil,
|
8675
8708
|
p24: nil,
|
8709
|
+
pay_by_bank: nil,
|
8676
8710
|
payco: nil,
|
8677
8711
|
paynow: nil,
|
8678
8712
|
paypal: nil,
|
@@ -8729,6 +8763,7 @@ module Stripe
|
|
8729
8763
|
@naver_pay = naver_pay
|
8730
8764
|
@oxxo = oxxo
|
8731
8765
|
@p24 = p24
|
8766
|
+
@pay_by_bank = pay_by_bank
|
8732
8767
|
@payco = payco
|
8733
8768
|
@paynow = paynow
|
8734
8769
|
@paypal = paypal
|
@@ -9771,6 +9806,9 @@ module Stripe
|
|
9771
9806
|
end
|
9772
9807
|
end
|
9773
9808
|
|
9809
|
+
class PayByBank < Stripe::RequestParams
|
9810
|
+
end
|
9811
|
+
|
9774
9812
|
class Payco < Stripe::RequestParams
|
9775
9813
|
# Controls when the funds are captured from the customer's account.
|
9776
9814
|
#
|
@@ -10354,6 +10392,8 @@ module Stripe
|
|
10354
10392
|
attr_accessor :oxxo
|
10355
10393
|
# If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
|
10356
10394
|
attr_accessor :p24
|
10395
|
+
# If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
|
10396
|
+
attr_accessor :pay_by_bank
|
10357
10397
|
# If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
|
10358
10398
|
attr_accessor :payco
|
10359
10399
|
# If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
|
@@ -10426,6 +10466,7 @@ module Stripe
|
|
10426
10466
|
naver_pay: nil,
|
10427
10467
|
oxxo: nil,
|
10428
10468
|
p24: nil,
|
10469
|
+
pay_by_bank: nil,
|
10429
10470
|
payco: nil,
|
10430
10471
|
paynow: nil,
|
10431
10472
|
paypal: nil,
|
@@ -10479,6 +10520,7 @@ module Stripe
|
|
10479
10520
|
@naver_pay = naver_pay
|
10480
10521
|
@oxxo = oxxo
|
10481
10522
|
@p24 = p24
|
10523
|
+
@pay_by_bank = pay_by_bank
|
10482
10524
|
@payco = payco
|
10483
10525
|
@paynow = paynow
|
10484
10526
|
@paypal = paypal
|
@@ -592,6 +592,23 @@ module Stripe
|
|
592
592
|
end
|
593
593
|
end
|
594
594
|
|
595
|
+
class PayByBank < Stripe::RequestParams
|
596
|
+
class DisplayPreference < Stripe::RequestParams
|
597
|
+
# The account's preference for whether or not to display this payment method.
|
598
|
+
attr_accessor :preference
|
599
|
+
|
600
|
+
def initialize(preference: nil)
|
601
|
+
@preference = preference
|
602
|
+
end
|
603
|
+
end
|
604
|
+
# Whether or not the payment method should be displayed.
|
605
|
+
attr_accessor :display_preference
|
606
|
+
|
607
|
+
def initialize(display_preference: nil)
|
608
|
+
@display_preference = display_preference
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
595
612
|
class Paynow < Stripe::RequestParams
|
596
613
|
class DisplayPreference < Stripe::RequestParams
|
597
614
|
# The account's preference for whether or not to display this payment method.
|
@@ -901,6 +918,8 @@ module Stripe
|
|
901
918
|
attr_accessor :p24
|
902
919
|
# Configuration's parent configuration. Specify to create a child configuration.
|
903
920
|
attr_accessor :parent
|
921
|
+
# 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.
|
922
|
+
attr_accessor :pay_by_bank
|
904
923
|
# 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.
|
905
924
|
attr_accessor :paynow
|
906
925
|
# 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.
|
@@ -967,6 +986,7 @@ module Stripe
|
|
967
986
|
oxxo: nil,
|
968
987
|
p24: nil,
|
969
988
|
parent: nil,
|
989
|
+
pay_by_bank: nil,
|
970
990
|
paynow: nil,
|
971
991
|
paypal: nil,
|
972
992
|
payto: nil,
|
@@ -1018,6 +1038,7 @@ module Stripe
|
|
1018
1038
|
@oxxo = oxxo
|
1019
1039
|
@p24 = p24
|
1020
1040
|
@parent = parent
|
1041
|
+
@pay_by_bank = pay_by_bank
|
1021
1042
|
@paynow = paynow
|
1022
1043
|
@paypal = paypal
|
1023
1044
|
@payto = payto
|
@@ -1606,6 +1627,23 @@ module Stripe
|
|
1606
1627
|
end
|
1607
1628
|
end
|
1608
1629
|
|
1630
|
+
class PayByBank < Stripe::RequestParams
|
1631
|
+
class DisplayPreference < Stripe::RequestParams
|
1632
|
+
# The account's preference for whether or not to display this payment method.
|
1633
|
+
attr_accessor :preference
|
1634
|
+
|
1635
|
+
def initialize(preference: nil)
|
1636
|
+
@preference = preference
|
1637
|
+
end
|
1638
|
+
end
|
1639
|
+
# Whether or not the payment method should be displayed.
|
1640
|
+
attr_accessor :display_preference
|
1641
|
+
|
1642
|
+
def initialize(display_preference: nil)
|
1643
|
+
@display_preference = display_preference
|
1644
|
+
end
|
1645
|
+
end
|
1646
|
+
|
1609
1647
|
class Paynow < Stripe::RequestParams
|
1610
1648
|
class DisplayPreference < Stripe::RequestParams
|
1611
1649
|
# The account's preference for whether or not to display this payment method.
|
@@ -1915,6 +1953,8 @@ module Stripe
|
|
1915
1953
|
attr_accessor :oxxo
|
1916
1954
|
# 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.
|
1917
1955
|
attr_accessor :p24
|
1956
|
+
# 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.
|
1957
|
+
attr_accessor :pay_by_bank
|
1918
1958
|
# 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.
|
1919
1959
|
attr_accessor :paynow
|
1920
1960
|
# 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.
|
@@ -1981,6 +2021,7 @@ module Stripe
|
|
1981
2021
|
name: nil,
|
1982
2022
|
oxxo: nil,
|
1983
2023
|
p24: nil,
|
2024
|
+
pay_by_bank: nil,
|
1984
2025
|
paynow: nil,
|
1985
2026
|
paypal: nil,
|
1986
2027
|
payto: nil,
|
@@ -2032,6 +2073,7 @@ module Stripe
|
|
2032
2073
|
@name = name
|
2033
2074
|
@oxxo = oxxo
|
2034
2075
|
@p24 = p24
|
2076
|
+
@pay_by_bank = pay_by_bank
|
2035
2077
|
@paynow = paynow
|
2036
2078
|
@paypal = paypal
|
2037
2079
|
@payto = payto
|
@@ -313,6 +313,9 @@ module Stripe
|
|
313
313
|
end
|
314
314
|
end
|
315
315
|
|
316
|
+
class PayByBank < Stripe::RequestParams
|
317
|
+
end
|
318
|
+
|
316
319
|
class Payco < Stripe::RequestParams
|
317
320
|
end
|
318
321
|
|
@@ -519,6 +522,8 @@ module Stripe
|
|
519
522
|
attr_accessor :oxxo
|
520
523
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
521
524
|
attr_accessor :p24
|
525
|
+
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
526
|
+
attr_accessor :pay_by_bank
|
522
527
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
523
528
|
attr_accessor :payco
|
524
529
|
# The PaymentMethod to share.
|
@@ -601,6 +606,7 @@ module Stripe
|
|
601
606
|
naver_pay: nil,
|
602
607
|
oxxo: nil,
|
603
608
|
p24: nil,
|
609
|
+
pay_by_bank: nil,
|
604
610
|
payco: nil,
|
605
611
|
payment_method: nil,
|
606
612
|
paynow: nil,
|
@@ -661,6 +667,7 @@ module Stripe
|
|
661
667
|
@naver_pay = naver_pay
|
662
668
|
@oxxo = oxxo
|
663
669
|
@p24 = p24
|
670
|
+
@pay_by_bank = pay_by_bank
|
664
671
|
@payco = payco
|
665
672
|
@payment_method = payment_method
|
666
673
|
@paynow = paynow
|
@@ -778,6 +785,9 @@ module Stripe
|
|
778
785
|
end
|
779
786
|
end
|
780
787
|
|
788
|
+
class PayByBank < Stripe::RequestParams
|
789
|
+
end
|
790
|
+
|
781
791
|
class Payto < Stripe::RequestParams
|
782
792
|
# The account number for the bank account.
|
783
793
|
attr_accessor :account_number
|
@@ -818,6 +828,8 @@ module Stripe
|
|
818
828
|
attr_accessor :metadata
|
819
829
|
# If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
820
830
|
attr_accessor :naver_pay
|
831
|
+
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
832
|
+
attr_accessor :pay_by_bank
|
821
833
|
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
822
834
|
attr_accessor :payto
|
823
835
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
@@ -831,6 +843,7 @@ module Stripe
|
|
831
843
|
link: nil,
|
832
844
|
metadata: nil,
|
833
845
|
naver_pay: nil,
|
846
|
+
pay_by_bank: nil,
|
834
847
|
payto: nil,
|
835
848
|
us_bank_account: nil
|
836
849
|
)
|
@@ -841,6 +854,7 @@ module Stripe
|
|
841
854
|
@link = link
|
842
855
|
@metadata = metadata
|
843
856
|
@naver_pay = naver_pay
|
857
|
+
@pay_by_bank = pay_by_bank
|
844
858
|
@payto = payto
|
845
859
|
@us_bank_account = us_bank_account
|
846
860
|
end
|
@@ -356,6 +356,9 @@ module Stripe
|
|
356
356
|
end
|
357
357
|
end
|
358
358
|
|
359
|
+
class PayByBank < Stripe::RequestParams
|
360
|
+
end
|
361
|
+
|
359
362
|
class Payco < Stripe::RequestParams
|
360
363
|
end
|
361
364
|
|
@@ -556,6 +559,8 @@ module Stripe
|
|
556
559
|
attr_accessor :oxxo
|
557
560
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
558
561
|
attr_accessor :p24
|
562
|
+
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
563
|
+
attr_accessor :pay_by_bank
|
559
564
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
560
565
|
attr_accessor :payco
|
561
566
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
@@ -633,6 +638,7 @@ module Stripe
|
|
633
638
|
naver_pay: nil,
|
634
639
|
oxxo: nil,
|
635
640
|
p24: nil,
|
641
|
+
pay_by_bank: nil,
|
636
642
|
payco: nil,
|
637
643
|
paynow: nil,
|
638
644
|
paypal: nil,
|
@@ -689,6 +695,7 @@ module Stripe
|
|
689
695
|
@naver_pay = naver_pay
|
690
696
|
@oxxo = oxxo
|
691
697
|
@p24 = p24
|
698
|
+
@pay_by_bank = pay_by_bank
|
692
699
|
@payco = payco
|
693
700
|
@paynow = paynow
|
694
701
|
@paypal = paypal
|
@@ -1501,6 +1508,9 @@ module Stripe
|
|
1501
1508
|
end
|
1502
1509
|
end
|
1503
1510
|
|
1511
|
+
class PayByBank < Stripe::RequestParams
|
1512
|
+
end
|
1513
|
+
|
1504
1514
|
class Payco < Stripe::RequestParams
|
1505
1515
|
end
|
1506
1516
|
|
@@ -1701,6 +1711,8 @@ module Stripe
|
|
1701
1711
|
attr_accessor :oxxo
|
1702
1712
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
1703
1713
|
attr_accessor :p24
|
1714
|
+
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
1715
|
+
attr_accessor :pay_by_bank
|
1704
1716
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
1705
1717
|
attr_accessor :payco
|
1706
1718
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
@@ -1778,6 +1790,7 @@ module Stripe
|
|
1778
1790
|
naver_pay: nil,
|
1779
1791
|
oxxo: nil,
|
1780
1792
|
p24: nil,
|
1793
|
+
pay_by_bank: nil,
|
1781
1794
|
payco: nil,
|
1782
1795
|
paynow: nil,
|
1783
1796
|
paypal: nil,
|
@@ -1834,6 +1847,7 @@ module Stripe
|
|
1834
1847
|
@naver_pay = naver_pay
|
1835
1848
|
@oxxo = oxxo
|
1836
1849
|
@p24 = p24
|
1850
|
+
@pay_by_bank = pay_by_bank
|
1837
1851
|
@payco = payco
|
1838
1852
|
@paynow = paynow
|
1839
1853
|
@paypal = paypal
|
@@ -2636,6 +2650,9 @@ module Stripe
|
|
2636
2650
|
end
|
2637
2651
|
end
|
2638
2652
|
|
2653
|
+
class PayByBank < Stripe::RequestParams
|
2654
|
+
end
|
2655
|
+
|
2639
2656
|
class Payco < Stripe::RequestParams
|
2640
2657
|
end
|
2641
2658
|
|
@@ -2836,6 +2853,8 @@ module Stripe
|
|
2836
2853
|
attr_accessor :oxxo
|
2837
2854
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
2838
2855
|
attr_accessor :p24
|
2856
|
+
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
2857
|
+
attr_accessor :pay_by_bank
|
2839
2858
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
2840
2859
|
attr_accessor :payco
|
2841
2860
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
@@ -2913,6 +2932,7 @@ module Stripe
|
|
2913
2932
|
naver_pay: nil,
|
2914
2933
|
oxxo: nil,
|
2915
2934
|
p24: nil,
|
2935
|
+
pay_by_bank: nil,
|
2916
2936
|
payco: nil,
|
2917
2937
|
paynow: nil,
|
2918
2938
|
paypal: nil,
|
@@ -2969,6 +2989,7 @@ module Stripe
|
|
2969
2989
|
@naver_pay = naver_pay
|
2970
2990
|
@oxxo = oxxo
|
2971
2991
|
@p24 = p24
|
2992
|
+
@pay_by_bank = pay_by_bank
|
2972
2993
|
@payco = payco
|
2973
2994
|
@paynow = paynow
|
2974
2995
|
@paypal = paypal
|
@@ -177,6 +177,21 @@ module Stripe
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
|
180
|
+
class Jpy < Stripe::RequestParams
|
181
|
+
# Fixed amounts displayed when collecting a tip
|
182
|
+
attr_accessor :fixed_amounts
|
183
|
+
# Percentages displayed when collecting a tip
|
184
|
+
attr_accessor :percentages
|
185
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
186
|
+
attr_accessor :smart_tip_threshold
|
187
|
+
|
188
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
189
|
+
@fixed_amounts = fixed_amounts
|
190
|
+
@percentages = percentages
|
191
|
+
@smart_tip_threshold = smart_tip_threshold
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
180
195
|
class Myr < Stripe::RequestParams
|
181
196
|
# Fixed amounts displayed when collecting a tip
|
182
197
|
attr_accessor :fixed_amounts
|
@@ -297,6 +312,8 @@ module Stripe
|
|
297
312
|
attr_accessor :gbp
|
298
313
|
# Tipping configuration for HKD
|
299
314
|
attr_accessor :hkd
|
315
|
+
# Tipping configuration for JPY
|
316
|
+
attr_accessor :jpy
|
300
317
|
# Tipping configuration for MYR
|
301
318
|
attr_accessor :myr
|
302
319
|
# Tipping configuration for NOK
|
@@ -321,6 +338,7 @@ module Stripe
|
|
321
338
|
eur: nil,
|
322
339
|
gbp: nil,
|
323
340
|
hkd: nil,
|
341
|
+
jpy: nil,
|
324
342
|
myr: nil,
|
325
343
|
nok: nil,
|
326
344
|
nzd: nil,
|
@@ -337,6 +355,7 @@ module Stripe
|
|
337
355
|
@eur = eur
|
338
356
|
@gbp = gbp
|
339
357
|
@hkd = hkd
|
358
|
+
@jpy = jpy
|
340
359
|
@myr = myr
|
341
360
|
@nok = nok
|
342
361
|
@nzd = nzd
|
@@ -581,6 +600,21 @@ module Stripe
|
|
581
600
|
end
|
582
601
|
end
|
583
602
|
|
603
|
+
class Jpy < Stripe::RequestParams
|
604
|
+
# Fixed amounts displayed when collecting a tip
|
605
|
+
attr_accessor :fixed_amounts
|
606
|
+
# Percentages displayed when collecting a tip
|
607
|
+
attr_accessor :percentages
|
608
|
+
# Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
609
|
+
attr_accessor :smart_tip_threshold
|
610
|
+
|
611
|
+
def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
|
612
|
+
@fixed_amounts = fixed_amounts
|
613
|
+
@percentages = percentages
|
614
|
+
@smart_tip_threshold = smart_tip_threshold
|
615
|
+
end
|
616
|
+
end
|
617
|
+
|
584
618
|
class Myr < Stripe::RequestParams
|
585
619
|
# Fixed amounts displayed when collecting a tip
|
586
620
|
attr_accessor :fixed_amounts
|
@@ -701,6 +735,8 @@ module Stripe
|
|
701
735
|
attr_accessor :gbp
|
702
736
|
# Tipping configuration for HKD
|
703
737
|
attr_accessor :hkd
|
738
|
+
# Tipping configuration for JPY
|
739
|
+
attr_accessor :jpy
|
704
740
|
# Tipping configuration for MYR
|
705
741
|
attr_accessor :myr
|
706
742
|
# Tipping configuration for NOK
|
@@ -725,6 +761,7 @@ module Stripe
|
|
725
761
|
eur: nil,
|
726
762
|
gbp: nil,
|
727
763
|
hkd: nil,
|
764
|
+
jpy: nil,
|
728
765
|
myr: nil,
|
729
766
|
nok: nil,
|
730
767
|
nzd: nil,
|
@@ -741,6 +778,7 @@ module Stripe
|
|
741
778
|
@eur = eur
|
742
779
|
@gbp = gbp
|
743
780
|
@hkd = hkd
|
781
|
+
@jpy = jpy
|
744
782
|
@myr = myr
|
745
783
|
@nok = nok
|
746
784
|
@nzd = nzd
|
@@ -245,6 +245,9 @@ module Stripe
|
|
245
245
|
end
|
246
246
|
end
|
247
247
|
|
248
|
+
class PayByBank < Stripe::RequestParams
|
249
|
+
end
|
250
|
+
|
248
251
|
class Payco < Stripe::RequestParams
|
249
252
|
end
|
250
253
|
|
@@ -445,6 +448,8 @@ module Stripe
|
|
445
448
|
attr_accessor :oxxo
|
446
449
|
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
447
450
|
attr_accessor :p24
|
451
|
+
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
452
|
+
attr_accessor :pay_by_bank
|
448
453
|
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
449
454
|
attr_accessor :payco
|
450
455
|
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
@@ -522,6 +527,7 @@ module Stripe
|
|
522
527
|
naver_pay: nil,
|
523
528
|
oxxo: nil,
|
524
529
|
p24: nil,
|
530
|
+
pay_by_bank: nil,
|
525
531
|
payco: nil,
|
526
532
|
paynow: nil,
|
527
533
|
paypal: nil,
|
@@ -578,6 +584,7 @@ module Stripe
|
|
578
584
|
@naver_pay = naver_pay
|
579
585
|
@oxxo = oxxo
|
580
586
|
@p24 = p24
|
587
|
+
@pay_by_bank = pay_by_bank
|
581
588
|
@payco = payco
|
582
589
|
@paynow = paynow
|
583
590
|
@paypal = paypal
|
@@ -116,6 +116,21 @@ module Stripe
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
+
class DirectorshipDeclaration < Stripe::RequestParams
|
120
|
+
# The Unix timestamp marking when the directorship declaration attestation was made.
|
121
|
+
attr_accessor :date
|
122
|
+
# The IP address from which the directorship declaration attestation was made.
|
123
|
+
attr_accessor :ip
|
124
|
+
# The user agent of the browser from which the directorship declaration attestation was made.
|
125
|
+
attr_accessor :user_agent
|
126
|
+
|
127
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
128
|
+
@date = date
|
129
|
+
@ip = ip
|
130
|
+
@user_agent = user_agent
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
119
134
|
class OwnershipDeclaration < Stripe::RequestParams
|
120
135
|
# The Unix timestamp marking when the beneficial owner attestation was made.
|
121
136
|
attr_accessor :date
|
@@ -158,6 +173,8 @@ module Stripe
|
|
158
173
|
attr_accessor :address_kanji
|
159
174
|
# Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
|
160
175
|
attr_accessor :directors_provided
|
176
|
+
# This hash is used to attest that the directors information provided to Stripe is both current and correct.
|
177
|
+
attr_accessor :directorship_declaration
|
161
178
|
# Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
|
162
179
|
attr_accessor :executives_provided
|
163
180
|
# The export license ID number of the company, also referred as Import Export Code (India only).
|
@@ -198,6 +215,7 @@ module Stripe
|
|
198
215
|
address_kana: nil,
|
199
216
|
address_kanji: nil,
|
200
217
|
directors_provided: nil,
|
218
|
+
directorship_declaration: nil,
|
201
219
|
executives_provided: nil,
|
202
220
|
export_license_id: nil,
|
203
221
|
export_purpose_code: nil,
|
@@ -220,6 +238,7 @@ module Stripe
|
|
220
238
|
@address_kana = address_kana
|
221
239
|
@address_kanji = address_kanji
|
222
240
|
@directors_provided = directors_provided
|
241
|
+
@directorship_declaration = directorship_declaration
|
223
242
|
@executives_provided = executives_provided
|
224
243
|
@export_license_id = export_license_id
|
225
244
|
@export_purpose_code = export_purpose_code
|
data/lib/stripe/stripe_client.rb
CHANGED
@@ -10,6 +10,10 @@ module Stripe
|
|
10
10
|
|
11
11
|
# attr_readers: The end of the section generated from our OpenAPI spec
|
12
12
|
|
13
|
+
# For internal use only. Does not provide a stable API and may be broken
|
14
|
+
# with future non-major changes.
|
15
|
+
CLIENT_OPTIONS = Set.new(%i[api_key stripe_account stripe_context api_version api_base uploads_base connect_base meter_events_base client_id])
|
16
|
+
|
13
17
|
# Initializes a new StripeClient
|
14
18
|
def initialize(api_key,
|
15
19
|
stripe_account: nil,
|
@@ -40,7 +44,8 @@ module Stripe
|
|
40
44
|
client_id: client_id,
|
41
45
|
}.reject { |_k, v| v.nil? }
|
42
46
|
|
43
|
-
|
47
|
+
config = StripeConfiguration.client_init(config_opts)
|
48
|
+
@requestor = APIRequestor.new(config)
|
44
49
|
|
45
50
|
# top-level services: The beginning of the section generated from our OpenAPI spec
|
46
51
|
@v1 = Stripe::V1Services.new(@requestor)
|