stripe 21.0.0 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_operations/request.rb +16 -7
- data/lib/stripe/api_operations/save.rb +4 -4
- data/lib/stripe/api_requestor.rb +54 -34
- data/lib/stripe/api_resource.rb +1 -2
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/connection_manager.rb +3 -0
- data/lib/stripe/event_types.rb +20 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/checkout/session_create_params.rb +8 -1
- data/lib/stripe/params/coupon_create_params.rb +1 -1
- data/lib/stripe/params/financial_connections/session_create_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +663 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +663 -1
- data/lib/stripe/params/payment_intent_create_params.rb +664 -2
- data/lib/stripe/params/payment_intent_update_params.rb +664 -2
- data/lib/stripe/params/payment_link_update_params.rb +4 -0
- data/lib/stripe/params/product_create_params.rb +4 -1
- data/lib/stripe/params/product_update_params.rb +4 -1
- data/lib/stripe/params/quote_create_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +1 -1
- data/lib/stripe/params/reporting/report_run_create_params.rb +4 -0
- data/lib/stripe/params/tax/registration_create_params.rb +13 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/v2/core/account_create_params.rb +138 -4
- data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +138 -4
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +63 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
- data/lib/stripe/params.rb +7 -0
- data/lib/stripe/request_options.rb +19 -2
- data/lib/stripe/resources/apps/install.rb +2 -2
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +274 -5
- data/lib/stripe/resources/checkout/session.rb +4 -0
- data/lib/stripe/resources/confirmation_token.rb +2 -2
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/event.rb +2 -2
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/payment_attempt_record.rb +4 -1
- data/lib/stripe/resources/payment_intent.rb +575 -2
- data/lib/stripe/resources/payment_method.rb +2 -2
- data/lib/stripe/resources/payment_record.rb +4 -1
- data/lib/stripe/resources/product.rb +2 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +2 -2
- data/lib/stripe/resources/setup_intent.rb +1 -1
- data/lib/stripe/resources/tax/registration.rb +16 -1
- data/lib/stripe/resources/treasury/inbound_transfer.rb +35 -7
- data/lib/stripe/resources/treasury/outbound_payment.rb +37 -9
- data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -9
- data/lib/stripe/resources/treasury/received_credit.rb +1 -1
- data/lib/stripe/resources/treasury/received_debit.rb +1 -1
- data/lib/stripe/resources/v2/core/account.rb +246 -3
- data/lib/stripe/resources/v2/core/account_link.rb +18 -1
- data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
- data/lib/stripe/resources/v2/core/account_token.rb +3 -1
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +269 -0
- data/lib/stripe/resources/v2/core/event_base.rb +8 -25
- data/lib/stripe/resources/v2/core/event_notification.rb +32 -0
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/services/apps/install_service.rb +2 -2
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/event_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +3 -3
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +49 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services.rb +2 -0
- data/lib/stripe/stripe_client.rb +6 -0
- data/lib/stripe/stripe_configuration.rb +9 -2
- data/lib/stripe/stripe_event_notification_handler.rb +26 -0
- data/lib/stripe/stripe_object.rb +22 -9
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +6888 -221
- metadata +12 -2
|
@@ -514,6 +514,35 @@ module Stripe
|
|
|
514
514
|
end
|
|
515
515
|
end
|
|
516
516
|
|
|
517
|
+
class BilliePayments < ::Stripe::StripeObject
|
|
518
|
+
class StatusDetail < ::Stripe::StripeObject
|
|
519
|
+
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
520
|
+
attr_reader :code
|
|
521
|
+
# Machine-readable code explaining how to make the Capability active.
|
|
522
|
+
attr_reader :resolution
|
|
523
|
+
|
|
524
|
+
def self.inner_class_types
|
|
525
|
+
@inner_class_types = {}
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
def self.field_remappings
|
|
529
|
+
@field_remappings = {}
|
|
530
|
+
end
|
|
531
|
+
end
|
|
532
|
+
# The status of the Capability.
|
|
533
|
+
attr_reader :status
|
|
534
|
+
# Additional details about the capability's status. This value is empty when `status` is `active`.
|
|
535
|
+
attr_reader :status_details
|
|
536
|
+
|
|
537
|
+
def self.inner_class_types
|
|
538
|
+
@inner_class_types = { status_details: StatusDetail }
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
def self.field_remappings
|
|
542
|
+
@field_remappings = {}
|
|
543
|
+
end
|
|
544
|
+
end
|
|
545
|
+
|
|
517
546
|
class BlikPayments < ::Stripe::StripeObject
|
|
518
547
|
class StatusDetail < ::Stripe::StripeObject
|
|
519
548
|
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
@@ -1036,6 +1065,35 @@ module Stripe
|
|
|
1036
1065
|
end
|
|
1037
1066
|
end
|
|
1038
1067
|
|
|
1068
|
+
class MbWayPayments < ::Stripe::StripeObject
|
|
1069
|
+
class StatusDetail < ::Stripe::StripeObject
|
|
1070
|
+
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
1071
|
+
attr_reader :code
|
|
1072
|
+
# Machine-readable code explaining how to make the Capability active.
|
|
1073
|
+
attr_reader :resolution
|
|
1074
|
+
|
|
1075
|
+
def self.inner_class_types
|
|
1076
|
+
@inner_class_types = {}
|
|
1077
|
+
end
|
|
1078
|
+
|
|
1079
|
+
def self.field_remappings
|
|
1080
|
+
@field_remappings = {}
|
|
1081
|
+
end
|
|
1082
|
+
end
|
|
1083
|
+
# The status of the Capability.
|
|
1084
|
+
attr_reader :status
|
|
1085
|
+
# Additional details about the capability's status. This value is empty when `status` is `active`.
|
|
1086
|
+
attr_reader :status_details
|
|
1087
|
+
|
|
1088
|
+
def self.inner_class_types
|
|
1089
|
+
@inner_class_types = { status_details: StatusDetail }
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1092
|
+
def self.field_remappings
|
|
1093
|
+
@field_remappings = {}
|
|
1094
|
+
end
|
|
1095
|
+
end
|
|
1096
|
+
|
|
1039
1097
|
class MobilepayPayments < ::Stripe::StripeObject
|
|
1040
1098
|
class StatusDetail < ::Stripe::StripeObject
|
|
1041
1099
|
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
@@ -1152,6 +1210,35 @@ module Stripe
|
|
|
1152
1210
|
end
|
|
1153
1211
|
end
|
|
1154
1212
|
|
|
1213
|
+
class NzBankAccountBecsDebitPayments < ::Stripe::StripeObject
|
|
1214
|
+
class StatusDetail < ::Stripe::StripeObject
|
|
1215
|
+
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
1216
|
+
attr_reader :code
|
|
1217
|
+
# Machine-readable code explaining how to make the Capability active.
|
|
1218
|
+
attr_reader :resolution
|
|
1219
|
+
|
|
1220
|
+
def self.inner_class_types
|
|
1221
|
+
@inner_class_types = {}
|
|
1222
|
+
end
|
|
1223
|
+
|
|
1224
|
+
def self.field_remappings
|
|
1225
|
+
@field_remappings = {}
|
|
1226
|
+
end
|
|
1227
|
+
end
|
|
1228
|
+
# The status of the Capability.
|
|
1229
|
+
attr_reader :status
|
|
1230
|
+
# Additional details about the capability's status. This value is empty when `status` is `active`.
|
|
1231
|
+
attr_reader :status_details
|
|
1232
|
+
|
|
1233
|
+
def self.inner_class_types
|
|
1234
|
+
@inner_class_types = { status_details: StatusDetail }
|
|
1235
|
+
end
|
|
1236
|
+
|
|
1237
|
+
def self.field_remappings
|
|
1238
|
+
@field_remappings = {}
|
|
1239
|
+
end
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1155
1242
|
class OxxoPayments < ::Stripe::StripeObject
|
|
1156
1243
|
class StatusDetail < ::Stripe::StripeObject
|
|
1157
1244
|
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
@@ -1297,6 +1384,64 @@ module Stripe
|
|
|
1297
1384
|
end
|
|
1298
1385
|
end
|
|
1299
1386
|
|
|
1387
|
+
class PaypayPayments < ::Stripe::StripeObject
|
|
1388
|
+
class StatusDetail < ::Stripe::StripeObject
|
|
1389
|
+
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
1390
|
+
attr_reader :code
|
|
1391
|
+
# Machine-readable code explaining how to make the Capability active.
|
|
1392
|
+
attr_reader :resolution
|
|
1393
|
+
|
|
1394
|
+
def self.inner_class_types
|
|
1395
|
+
@inner_class_types = {}
|
|
1396
|
+
end
|
|
1397
|
+
|
|
1398
|
+
def self.field_remappings
|
|
1399
|
+
@field_remappings = {}
|
|
1400
|
+
end
|
|
1401
|
+
end
|
|
1402
|
+
# The status of the Capability.
|
|
1403
|
+
attr_reader :status
|
|
1404
|
+
# Additional details about the capability's status. This value is empty when `status` is `active`.
|
|
1405
|
+
attr_reader :status_details
|
|
1406
|
+
|
|
1407
|
+
def self.inner_class_types
|
|
1408
|
+
@inner_class_types = { status_details: StatusDetail }
|
|
1409
|
+
end
|
|
1410
|
+
|
|
1411
|
+
def self.field_remappings
|
|
1412
|
+
@field_remappings = {}
|
|
1413
|
+
end
|
|
1414
|
+
end
|
|
1415
|
+
|
|
1416
|
+
class PixPayments < ::Stripe::StripeObject
|
|
1417
|
+
class StatusDetail < ::Stripe::StripeObject
|
|
1418
|
+
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
1419
|
+
attr_reader :code
|
|
1420
|
+
# Machine-readable code explaining how to make the Capability active.
|
|
1421
|
+
attr_reader :resolution
|
|
1422
|
+
|
|
1423
|
+
def self.inner_class_types
|
|
1424
|
+
@inner_class_types = {}
|
|
1425
|
+
end
|
|
1426
|
+
|
|
1427
|
+
def self.field_remappings
|
|
1428
|
+
@field_remappings = {}
|
|
1429
|
+
end
|
|
1430
|
+
end
|
|
1431
|
+
# The status of the Capability.
|
|
1432
|
+
attr_reader :status
|
|
1433
|
+
# Additional details about the capability's status. This value is empty when `status` is `active`.
|
|
1434
|
+
attr_reader :status_details
|
|
1435
|
+
|
|
1436
|
+
def self.inner_class_types
|
|
1437
|
+
@inner_class_types = { status_details: StatusDetail }
|
|
1438
|
+
end
|
|
1439
|
+
|
|
1440
|
+
def self.field_remappings
|
|
1441
|
+
@field_remappings = {}
|
|
1442
|
+
end
|
|
1443
|
+
end
|
|
1444
|
+
|
|
1300
1445
|
class PromptpayPayments < ::Stripe::StripeObject
|
|
1301
1446
|
class StatusDetail < ::Stripe::StripeObject
|
|
1302
1447
|
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
@@ -1703,6 +1848,8 @@ module Stripe
|
|
|
1703
1848
|
attr_reader :bacs_debit_payments
|
|
1704
1849
|
# Allow the merchant to process Bancontact payments.
|
|
1705
1850
|
attr_reader :bancontact_payments
|
|
1851
|
+
# Allow the merchant to process Billie payments.
|
|
1852
|
+
attr_reader :billie_payments
|
|
1706
1853
|
# Allow the merchant to process BLIK payments.
|
|
1707
1854
|
attr_reader :blik_payments
|
|
1708
1855
|
# Allow the merchant to process recurring BLIK payments.
|
|
@@ -1739,6 +1886,8 @@ module Stripe
|
|
|
1739
1886
|
attr_reader :kr_card_payments
|
|
1740
1887
|
# Allow the merchant to process Link payments.
|
|
1741
1888
|
attr_reader :link_payments
|
|
1889
|
+
# Allow the merchant to process MB WAY payments.
|
|
1890
|
+
attr_reader :mb_way_payments
|
|
1742
1891
|
# Allow the merchant to process MobilePay payments.
|
|
1743
1892
|
attr_reader :mobilepay_payments
|
|
1744
1893
|
# Allow the merchant to process Multibanco payments.
|
|
@@ -1747,6 +1896,8 @@ module Stripe
|
|
|
1747
1896
|
attr_reader :mx_bank_transfer_payments
|
|
1748
1897
|
# Allow the merchant to process Naver Pay payments.
|
|
1749
1898
|
attr_reader :naver_pay_payments
|
|
1899
|
+
# Allow the merchant to process New Zealand BECS Direct Debit payments.
|
|
1900
|
+
attr_reader :nz_bank_account_becs_debit_payments
|
|
1750
1901
|
# Allow the merchant to process OXXO payments.
|
|
1751
1902
|
attr_reader :oxxo_payments
|
|
1752
1903
|
# Allow the merchant to process Przelewy24 (P24) payments.
|
|
@@ -1757,6 +1908,10 @@ module Stripe
|
|
|
1757
1908
|
attr_reader :payco_payments
|
|
1758
1909
|
# Allow the merchant to process PayNow payments.
|
|
1759
1910
|
attr_reader :paynow_payments
|
|
1911
|
+
# Allow the merchant to process PayPay payments.
|
|
1912
|
+
attr_reader :paypay_payments
|
|
1913
|
+
# Allow the merchant to process Pix payments.
|
|
1914
|
+
attr_reader :pix_payments
|
|
1760
1915
|
# Allow the merchant to process PromptPay payments.
|
|
1761
1916
|
attr_reader :promptpay_payments
|
|
1762
1917
|
# Allow the merchant to process Revolut Pay payments.
|
|
@@ -1795,6 +1950,7 @@ module Stripe
|
|
|
1795
1950
|
au_becs_debit_payments: AuBecsDebitPayments,
|
|
1796
1951
|
bacs_debit_payments: BacsDebitPayments,
|
|
1797
1952
|
bancontact_payments: BancontactPayments,
|
|
1953
|
+
billie_payments: BilliePayments,
|
|
1798
1954
|
blik_payments: BlikPayments,
|
|
1799
1955
|
blik_recurring_payments: BlikRecurringPayments,
|
|
1800
1956
|
boleto_payments: BoletoPayments,
|
|
@@ -1813,15 +1969,19 @@ module Stripe
|
|
|
1813
1969
|
konbini_payments: KonbiniPayments,
|
|
1814
1970
|
kr_card_payments: KrCardPayments,
|
|
1815
1971
|
link_payments: LinkPayments,
|
|
1972
|
+
mb_way_payments: MbWayPayments,
|
|
1816
1973
|
mobilepay_payments: MobilepayPayments,
|
|
1817
1974
|
multibanco_payments: MultibancoPayments,
|
|
1818
1975
|
mx_bank_transfer_payments: MxBankTransferPayments,
|
|
1819
1976
|
naver_pay_payments: NaverPayPayments,
|
|
1977
|
+
nz_bank_account_becs_debit_payments: NzBankAccountBecsDebitPayments,
|
|
1820
1978
|
oxxo_payments: OxxoPayments,
|
|
1821
1979
|
p24_payments: P24Payments,
|
|
1822
1980
|
pay_by_bank_payments: PayByBankPayments,
|
|
1823
1981
|
payco_payments: PaycoPayments,
|
|
1824
1982
|
paynow_payments: PaynowPayments,
|
|
1983
|
+
paypay_payments: PaypayPayments,
|
|
1984
|
+
pix_payments: PixPayments,
|
|
1825
1985
|
promptpay_payments: PromptpayPayments,
|
|
1826
1986
|
revolut_pay_payments: RevolutPayPayments,
|
|
1827
1987
|
samsung_pay_payments: SamsungPayPayments,
|
|
@@ -1901,6 +2061,8 @@ module Stripe
|
|
|
1901
2061
|
@field_remappings = {}
|
|
1902
2062
|
end
|
|
1903
2063
|
end
|
|
2064
|
+
# Information provided to support the onboarding process for Konbini payments.
|
|
2065
|
+
attr_reader :additional_material
|
|
1904
2066
|
# Support for Konbini payments.
|
|
1905
2067
|
attr_reader :support
|
|
1906
2068
|
|
|
@@ -1913,6 +2075,84 @@ module Stripe
|
|
|
1913
2075
|
end
|
|
1914
2076
|
end
|
|
1915
2077
|
|
|
2078
|
+
class PaypayPayments < ::Stripe::StripeObject
|
|
2079
|
+
class Site < ::Stripe::StripeObject
|
|
2080
|
+
class Accessible < ::Stripe::StripeObject
|
|
2081
|
+
def self.inner_class_types
|
|
2082
|
+
@inner_class_types = {}
|
|
2083
|
+
end
|
|
2084
|
+
|
|
2085
|
+
def self.field_remappings
|
|
2086
|
+
@field_remappings = {}
|
|
2087
|
+
end
|
|
2088
|
+
end
|
|
2089
|
+
|
|
2090
|
+
class InDevelopment < ::Stripe::StripeObject
|
|
2091
|
+
# Whether a password needed to access the business's website has been provided.
|
|
2092
|
+
attr_reader :password_provided
|
|
2093
|
+
# The username needed to access the business's website.
|
|
2094
|
+
attr_reader :username
|
|
2095
|
+
|
|
2096
|
+
def self.inner_class_types
|
|
2097
|
+
@inner_class_types = {}
|
|
2098
|
+
end
|
|
2099
|
+
|
|
2100
|
+
def self.field_remappings
|
|
2101
|
+
@field_remappings = {}
|
|
2102
|
+
end
|
|
2103
|
+
end
|
|
2104
|
+
|
|
2105
|
+
class Restricted < ::Stripe::StripeObject
|
|
2106
|
+
# The file explaining the payment flow for the business.
|
|
2107
|
+
attr_reader :payment_flow_file
|
|
2108
|
+
|
|
2109
|
+
def self.inner_class_types
|
|
2110
|
+
@inner_class_types = {}
|
|
2111
|
+
end
|
|
2112
|
+
|
|
2113
|
+
def self.field_remappings
|
|
2114
|
+
@field_remappings = {}
|
|
2115
|
+
end
|
|
2116
|
+
end
|
|
2117
|
+
# Additional information about the business's website when it's accessible.
|
|
2118
|
+
attr_reader :accessible
|
|
2119
|
+
# Additional information about the business's website when it's in development.
|
|
2120
|
+
attr_reader :in_development
|
|
2121
|
+
# Additional information about the business's website when it has restricted access.
|
|
2122
|
+
attr_reader :restricted
|
|
2123
|
+
# The status of the business's website.
|
|
2124
|
+
attr_reader :type
|
|
2125
|
+
|
|
2126
|
+
def self.inner_class_types
|
|
2127
|
+
@inner_class_types = {
|
|
2128
|
+
accessible: Accessible,
|
|
2129
|
+
in_development: InDevelopment,
|
|
2130
|
+
restricted: Restricted,
|
|
2131
|
+
}
|
|
2132
|
+
end
|
|
2133
|
+
|
|
2134
|
+
def self.field_remappings
|
|
2135
|
+
@field_remappings = {}
|
|
2136
|
+
end
|
|
2137
|
+
end
|
|
2138
|
+
# Additional files supporting PayPay payments configuration.
|
|
2139
|
+
attr_reader :additional_files
|
|
2140
|
+
# The type of goods sold by the merchant for PayPay payments.
|
|
2141
|
+
attr_reader :goods_type
|
|
2142
|
+
# The business's website for PayPay payments.
|
|
2143
|
+
attr_reader :site
|
|
2144
|
+
# URL to the Specified Commercial Transactions Act page for PayPay payments.
|
|
2145
|
+
attr_reader :specified_commercial_transactions_act_url
|
|
2146
|
+
|
|
2147
|
+
def self.inner_class_types
|
|
2148
|
+
@inner_class_types = { site: Site }
|
|
2149
|
+
end
|
|
2150
|
+
|
|
2151
|
+
def self.field_remappings
|
|
2152
|
+
@field_remappings = {}
|
|
2153
|
+
end
|
|
2154
|
+
end
|
|
2155
|
+
|
|
1916
2156
|
class ScriptStatementDescriptor < ::Stripe::StripeObject
|
|
1917
2157
|
class Kana < ::Stripe::StripeObject
|
|
1918
2158
|
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
|
|
@@ -2041,6 +2281,8 @@ module Stripe
|
|
|
2041
2281
|
attr_reader :konbini_payments
|
|
2042
2282
|
# The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide.
|
|
2043
2283
|
attr_reader :mcc
|
|
2284
|
+
# Settings for PayPay payments.
|
|
2285
|
+
attr_reader :paypay_payments
|
|
2044
2286
|
# Settings for the default text that appears on statements for language variations.
|
|
2045
2287
|
attr_reader :script_statement_descriptor
|
|
2046
2288
|
# Settings for SEPA Direct Debit payments.
|
|
@@ -2057,6 +2299,7 @@ module Stripe
|
|
|
2057
2299
|
capabilities: Capabilities,
|
|
2058
2300
|
card_payments: CardPayments,
|
|
2059
2301
|
konbini_payments: KonbiniPayments,
|
|
2302
|
+
paypay_payments: PaypayPayments,
|
|
2060
2303
|
script_statement_descriptor: ScriptStatementDescriptor,
|
|
2061
2304
|
sepa_debit_payments: SepaDebitPayments,
|
|
2062
2305
|
statement_descriptor: StatementDescriptor,
|
|
@@ -2473,9 +2716,9 @@ module Stripe
|
|
|
2473
2716
|
end
|
|
2474
2717
|
|
|
2475
2718
|
class Responsibilities < ::Stripe::StripeObject
|
|
2476
|
-
#
|
|
2719
|
+
# Controls who pays Stripe fees for direct charges and other pricing-control-eligible Stripe products. For new integrations, setting `losses_collector=application` requires `fees_collector=application`; legacy Custom and Express accounts can also use `application_custom` or `application_express`. For destination charges and separate charges and transfers, Stripe bills the platform regardless of this setting. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior), including application fees and pricing considerations.
|
|
2477
2720
|
attr_reader :fees_collector
|
|
2478
|
-
#
|
|
2721
|
+
# Controls who is responsible for payment-related negative balances on this account. The platform remains liable for negative balances on its own account. To use Stripe negative balance liability, your integration must meet [Managed Risk requirements](https://docs.stripe.com/connect/risk-management/managed-risk).
|
|
2479
2722
|
attr_reader :losses_collector
|
|
2480
2723
|
# A value indicating responsibility for collecting requirements on this account.
|
|
2481
2724
|
attr_reader :requirements_collector
|
|
@@ -4211,7 +4454,7 @@ module Stripe
|
|
|
4211
4454
|
attr_reader :contact_phone
|
|
4212
4455
|
# Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
4213
4456
|
attr_reader :created
|
|
4214
|
-
#
|
|
4457
|
+
# Specifies the account's Stripe-hosted Dashboard access. Available values depend on the configurations enabled for the account. Learn more about [configuring Dashboard access](https://docs.stripe.com/connect/accounts-v2/connected-account-configuration#set-dashboard-access).
|
|
4215
4458
|
attr_reader :dashboard
|
|
4216
4459
|
# Default values for settings shared across Account configurations.
|
|
4217
4460
|
attr_reader :defaults
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module V2
|
|
6
6
|
module Core
|
|
7
|
-
# Account Links let a platform create a temporary, single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
|
|
7
|
+
# Account Links let a platform create a temporary, single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information, or to access its Stripe-hosted Dashboard.
|
|
8
8
|
class AccountLink < APIResource
|
|
9
9
|
OBJECT_NAME = "v2.core.account_link"
|
|
10
10
|
def self.object_name
|
|
@@ -12,6 +12,20 @@ module Stripe
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
class UseCase < ::Stripe::StripeObject
|
|
15
|
+
class AccountDashboard < ::Stripe::StripeObject
|
|
16
|
+
# The URL to redirect to if the Account Link has expired or has already
|
|
17
|
+
# been used. Authenticate the user before generating a replacement link.
|
|
18
|
+
attr_reader :refresh_url
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
15
29
|
class AccountOnboarding < ::Stripe::StripeObject
|
|
16
30
|
class CollectionOptions < ::Stripe::StripeObject
|
|
17
31
|
# Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don’t specify collection_options, the default value is currently_due.
|
|
@@ -73,6 +87,8 @@ module Stripe
|
|
|
73
87
|
@field_remappings = {}
|
|
74
88
|
end
|
|
75
89
|
end
|
|
90
|
+
# Hash containing configuration options for an Account Link that provides access to the account's Stripe-hosted Dashboard.
|
|
91
|
+
attr_reader :account_dashboard
|
|
76
92
|
# Hash containing configuration options for an Account Link object that onboards a new account.
|
|
77
93
|
attr_reader :account_onboarding
|
|
78
94
|
# Hash containing configuration options for an Account Link that updates an existing account.
|
|
@@ -82,6 +98,7 @@ module Stripe
|
|
|
82
98
|
|
|
83
99
|
def self.inner_class_types
|
|
84
100
|
@inner_class_types = {
|
|
101
|
+
account_dashboard: AccountDashboard,
|
|
85
102
|
account_onboarding: AccountOnboarding,
|
|
86
103
|
account_update: AccountUpdate,
|
|
87
104
|
}
|
|
@@ -5,6 +5,8 @@ module Stripe
|
|
|
5
5
|
module V2
|
|
6
6
|
module Core
|
|
7
7
|
# Person Tokens are single-use tokens which tokenize person information, and are used for creating or updating a Person.
|
|
8
|
+
# In live mode, you must create person tokens using a live publishable key.
|
|
9
|
+
# In a sandbox, you can create person tokens with secret or publishable keys.
|
|
8
10
|
class AccountPersonToken < APIResource
|
|
9
11
|
OBJECT_NAME = "v2.core.account_person_token"
|
|
10
12
|
def self.object_name
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module V2
|
|
6
6
|
module Core
|
|
7
|
-
# Account tokens are single-use tokens which tokenize an account's contact_email
|
|
7
|
+
# Account tokens are single-use tokens which tokenize an account's `contact_email`, `display_name`, `contact_phone`, and `identity`.
|
|
8
|
+
# In live mode, you must create account tokens using a live publishable key.
|
|
9
|
+
# In a sandbox, you can create account tokens with secret or publishable keys.
|
|
8
10
|
class AccountToken < APIResource
|
|
9
11
|
OBJECT_NAME = "v2.core.account_token"
|
|
10
12
|
def self.object_name
|