stripe 15.1.0.pre.beta.2 → 15.2.0.pre.beta.1
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/CHANGELOG.md +8 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +6 -0
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +15 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_person_created_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
- data/lib/stripe/object_types.rb +0 -1
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/charge.rb +2 -2
- data/lib/stripe/resources/checkout/session.rb +7 -3
- data/lib/stripe/resources/confirmation_token.rb +5 -3
- data/lib/stripe/resources/customer.rb +2 -2
- data/lib/stripe/resources/invoice.rb +10 -2
- data/lib/stripe/resources/order.rb +3 -3
- data/lib/stripe/resources/payment_intent.rb +4 -4
- data/lib/stripe/resources/payment_method.rb +2 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +22 -1
- data/lib/stripe/resources/quote.rb +6 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +2 -0
- data/lib/stripe/resources/subscription.rb +8 -2
- data/lib/stripe/resources/subscription_schedule.rb +6 -0
- data/lib/stripe/resources/tax/calculation.rb +2 -2
- data/lib/stripe/resources/tax/registration.rb +60 -0
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +2 -2
- data/lib/stripe/resources/treasury/outbound_payment.rb +1 -4
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
- data/lib/stripe/resources/v2/core/account.rb +44 -13
- data/lib/stripe/resources/v2/core/account_link.rb +3 -1
- data/lib/stripe/resources/v2/core/person.rb +4 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +4 -2
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +5 -3
- data/lib/stripe/resources/v2/event.rb +2 -2
- data/lib/stripe/resources/v2/event_destination.rb +2 -2
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +2 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +2 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +3 -1
- data/lib/stripe/resources/v2/money_management/financial_account.rb +3 -1
- data/lib/stripe/resources/v2/money_management/financial_address.rb +2 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +3 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +8 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +3 -1
- data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -2
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/resources.rb +11 -1
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +2 -2
- data/lib/stripe/services/charge_service.rb +2 -2
- data/lib/stripe/services/checkout/session_service.rb +4 -0
- data/lib/stripe/services/customer_payment_method_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +1 -1
- data/lib/stripe/services/customer_tax_id_service.rb +1 -1
- data/lib/stripe/services/external_account_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +9 -1
- data/lib/stripe/services/order_service.rb +2 -2
- data/lib/stripe/services/payment_intent_service.rb +4 -4
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -20
- data/lib/stripe/services/quote_service.rb +4 -0
- data/lib/stripe/services/subscription_schedule_service.rb +4 -0
- data/lib/stripe/services/subscription_service.rb +5 -1
- data/lib/stripe/services/tax/calculation_service.rb +1 -1
- data/lib/stripe/services/tax/registration_service.rb +39 -0
- data/lib/stripe/services/tax_id_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +3 -3
- data/lib/stripe/services/treasury/outbound_payment_service.rb +1 -4
- data/lib/stripe/services/v2/core/account_service.rb +15 -7
- data/lib/stripe/services/v2/core/accounts/person_service.rb +8 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +1 -1
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +5 -5
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +16 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +465 -190
- metadata +13 -3
- data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +0 -35
@@ -163,6 +163,15 @@ module Stripe
|
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
166
|
+
class Bf < Stripe::RequestParams
|
167
|
+
# Type of registration to be created in `country`.
|
168
|
+
attr_accessor :type
|
169
|
+
|
170
|
+
def initialize(type: nil)
|
171
|
+
@type = type
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
166
175
|
class Bg < Stripe::RequestParams
|
167
176
|
class Standard < Stripe::RequestParams
|
168
177
|
# Place of supply scheme used in an EU standard registration.
|
@@ -266,6 +275,15 @@ module Stripe
|
|
266
275
|
end
|
267
276
|
end
|
268
277
|
|
278
|
+
class Cm < Stripe::RequestParams
|
279
|
+
# Type of registration to be created in `country`.
|
280
|
+
attr_accessor :type
|
281
|
+
|
282
|
+
def initialize(type: nil)
|
283
|
+
@type = type
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
269
287
|
class Co < Stripe::RequestParams
|
270
288
|
# Type of registration to be created in `country`.
|
271
289
|
attr_accessor :type
|
@@ -284,6 +302,15 @@ module Stripe
|
|
284
302
|
end
|
285
303
|
end
|
286
304
|
|
305
|
+
class Cv < Stripe::RequestParams
|
306
|
+
# Type of registration to be created in `country`.
|
307
|
+
attr_accessor :type
|
308
|
+
|
309
|
+
def initialize(type: nil)
|
310
|
+
@type = type
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
287
314
|
class Cy < Stripe::RequestParams
|
288
315
|
class Standard < Stripe::RequestParams
|
289
316
|
# Place of supply scheme used in an EU standard registration.
|
@@ -1274,6 +1301,8 @@ module Stripe
|
|
1274
1301
|
attr_accessor :bd
|
1275
1302
|
# Options for the registration in BE.
|
1276
1303
|
attr_accessor :be
|
1304
|
+
# Options for the registration in BF.
|
1305
|
+
attr_accessor :bf
|
1277
1306
|
# Options for the registration in BG.
|
1278
1307
|
attr_accessor :bg
|
1279
1308
|
# Options for the registration in BH.
|
@@ -1292,10 +1321,14 @@ module Stripe
|
|
1292
1321
|
attr_accessor :ch
|
1293
1322
|
# Options for the registration in CL.
|
1294
1323
|
attr_accessor :cl
|
1324
|
+
# Options for the registration in CM.
|
1325
|
+
attr_accessor :cm
|
1295
1326
|
# Options for the registration in CO.
|
1296
1327
|
attr_accessor :co
|
1297
1328
|
# Options for the registration in CR.
|
1298
1329
|
attr_accessor :cr
|
1330
|
+
# Options for the registration in CV.
|
1331
|
+
attr_accessor :cv
|
1299
1332
|
# Options for the registration in CY.
|
1300
1333
|
attr_accessor :cy
|
1301
1334
|
# Options for the registration in CZ.
|
@@ -1454,6 +1487,7 @@ module Stripe
|
|
1454
1487
|
bb: nil,
|
1455
1488
|
bd: nil,
|
1456
1489
|
be: nil,
|
1490
|
+
bf: nil,
|
1457
1491
|
bg: nil,
|
1458
1492
|
bh: nil,
|
1459
1493
|
bj: nil,
|
@@ -1463,8 +1497,10 @@ module Stripe
|
|
1463
1497
|
cd: nil,
|
1464
1498
|
ch: nil,
|
1465
1499
|
cl: nil,
|
1500
|
+
cm: nil,
|
1466
1501
|
co: nil,
|
1467
1502
|
cr: nil,
|
1503
|
+
cv: nil,
|
1468
1504
|
cy: nil,
|
1469
1505
|
cz: nil,
|
1470
1506
|
de: nil,
|
@@ -1550,6 +1586,7 @@ module Stripe
|
|
1550
1586
|
@bb = bb
|
1551
1587
|
@bd = bd
|
1552
1588
|
@be = be
|
1589
|
+
@bf = bf
|
1553
1590
|
@bg = bg
|
1554
1591
|
@bh = bh
|
1555
1592
|
@bj = bj
|
@@ -1559,8 +1596,10 @@ module Stripe
|
|
1559
1596
|
@cd = cd
|
1560
1597
|
@ch = ch
|
1561
1598
|
@cl = cl
|
1599
|
+
@cm = cm
|
1562
1600
|
@co = co
|
1563
1601
|
@cr = cr
|
1602
|
+
@cv = cv
|
1564
1603
|
@cy = cy
|
1565
1604
|
@cz = cz
|
1566
1605
|
@de = de
|
@@ -75,7 +75,7 @@ module Stripe
|
|
75
75
|
attr_accessor :expand
|
76
76
|
# The account or customer the tax ID belongs to. Defaults to `owner[type]=self`.
|
77
77
|
attr_accessor :owner
|
78
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
78
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
79
79
|
attr_accessor :type
|
80
80
|
# Value of the tax ID.
|
81
81
|
attr_accessor :value
|
@@ -702,14 +702,14 @@ module Stripe
|
|
702
702
|
@plan = plan
|
703
703
|
end
|
704
704
|
end
|
705
|
-
# Installment configuration for payments
|
705
|
+
# Installment configuration for payments confirmed using this ConfirmationToken.
|
706
706
|
attr_accessor :installments
|
707
707
|
|
708
708
|
def initialize(installments: nil)
|
709
709
|
@installments = installments
|
710
710
|
end
|
711
711
|
end
|
712
|
-
#
|
712
|
+
# Configuration for any card payments confirmed using this ConfirmationToken.
|
713
713
|
attr_accessor :card
|
714
714
|
|
715
715
|
def initialize(card: nil)
|
@@ -767,7 +767,7 @@ module Stripe
|
|
767
767
|
attr_accessor :payment_method
|
768
768
|
# If provided, this hash will be used to create a PaymentMethod.
|
769
769
|
attr_accessor :payment_method_data
|
770
|
-
#
|
770
|
+
# Payment-method-specific configuration for this ConfirmationToken.
|
771
771
|
attr_accessor :payment_method_options
|
772
772
|
# Return URL used to confirm the Intent.
|
773
773
|
attr_accessor :return_url
|
@@ -101,15 +101,12 @@ module Stripe
|
|
101
101
|
attr_accessor :name
|
102
102
|
# Billing phone number (including extension).
|
103
103
|
attr_accessor :phone
|
104
|
-
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
105
|
-
attr_accessor :tax_id
|
106
104
|
|
107
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil
|
105
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
108
106
|
@address = address
|
109
107
|
@email = email
|
110
108
|
@name = name
|
111
109
|
@phone = phone
|
112
|
-
@tax_id = tax_id
|
113
110
|
end
|
114
111
|
end
|
115
112
|
|
@@ -29,7 +29,7 @@ module Stripe
|
|
29
29
|
attr_accessor :exempt
|
30
30
|
# A recent IP address of the customer used for tax reporting and tax location inference.
|
31
31
|
attr_accessor :ip_address
|
32
|
-
# The data source used
|
32
|
+
# The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
|
33
33
|
attr_accessor :location_source
|
34
34
|
|
35
35
|
def initialize(exempt: nil, ip_address: nil, location_source: nil)
|
@@ -956,7 +956,7 @@ module Stripe
|
|
956
956
|
@requested = requested
|
957
957
|
end
|
958
958
|
end
|
959
|
-
# Allows the
|
959
|
+
# Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
|
960
960
|
attr_accessor :stripe_transfers
|
961
961
|
|
962
962
|
def initialize(stripe_transfers: nil)
|
@@ -967,7 +967,7 @@ module Stripe
|
|
967
967
|
attr_accessor :bank_accounts
|
968
968
|
# Capabilities that enable OutboundPayments to a card linked to this Account.
|
969
969
|
attr_accessor :cards
|
970
|
-
# Capabilities that enable the recipient to
|
970
|
+
# Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
|
971
971
|
attr_accessor :stripe_balance
|
972
972
|
|
973
973
|
def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
|
@@ -2061,13 +2061,21 @@ module Stripe
|
|
2061
2061
|
attr_accessor :exempt
|
2062
2062
|
# A recent IP address of the customer used for tax reporting and tax location inference.
|
2063
2063
|
attr_accessor :ip_address
|
2064
|
-
# The data source used
|
2064
|
+
# The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
|
2065
2065
|
attr_accessor :location_source
|
2066
|
+
# A per-request flag that indicates when Stripe should validate the customer tax location - defaults to 'auto'.
|
2067
|
+
attr_accessor :validate_location
|
2066
2068
|
|
2067
|
-
def initialize(
|
2069
|
+
def initialize(
|
2070
|
+
exempt: nil,
|
2071
|
+
ip_address: nil,
|
2072
|
+
location_source: nil,
|
2073
|
+
validate_location: nil
|
2074
|
+
)
|
2068
2075
|
@exempt = exempt
|
2069
2076
|
@ip_address = ip_address
|
2070
2077
|
@location_source = location_source
|
2078
|
+
@validate_location = validate_location
|
2071
2079
|
end
|
2072
2080
|
end
|
2073
2081
|
|
@@ -2991,7 +2999,7 @@ module Stripe
|
|
2991
2999
|
@requested = requested
|
2992
3000
|
end
|
2993
3001
|
end
|
2994
|
-
# Allows the
|
3002
|
+
# Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
|
2995
3003
|
attr_accessor :stripe_transfers
|
2996
3004
|
|
2997
3005
|
def initialize(stripe_transfers: nil)
|
@@ -3002,7 +3010,7 @@ module Stripe
|
|
3002
3010
|
attr_accessor :bank_accounts
|
3003
3011
|
# Capability that enable OutboundPayments to a debit card linked to this Account.
|
3004
3012
|
attr_accessor :cards
|
3005
|
-
# Capabilities that enable the recipient to
|
3013
|
+
# Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
|
3006
3014
|
attr_accessor :stripe_balance
|
3007
3015
|
|
3008
3016
|
def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
|
@@ -258,6 +258,8 @@ module Stripe
|
|
258
258
|
end
|
259
259
|
|
260
260
|
class Relationship < Stripe::RequestParams
|
261
|
+
# Whether the individual is an authorizer of the Account’s legal entity.
|
262
|
+
attr_accessor :authorizer
|
261
263
|
# Indicates whether the person is a director of the associated legal entity.
|
262
264
|
attr_accessor :director
|
263
265
|
# Indicates whether the person is an executive of the associated legal entity.
|
@@ -274,6 +276,7 @@ module Stripe
|
|
274
276
|
attr_accessor :title
|
275
277
|
|
276
278
|
def initialize(
|
279
|
+
authorizer: nil,
|
277
280
|
director: nil,
|
278
281
|
executive: nil,
|
279
282
|
legal_guardian: nil,
|
@@ -282,6 +285,7 @@ module Stripe
|
|
282
285
|
representative: nil,
|
283
286
|
title: nil
|
284
287
|
)
|
288
|
+
@authorizer = authorizer
|
285
289
|
@director = director
|
286
290
|
@executive = executive
|
287
291
|
@legal_guardian = legal_guardian
|
@@ -752,6 +756,8 @@ module Stripe
|
|
752
756
|
end
|
753
757
|
|
754
758
|
class Relationship < Stripe::RequestParams
|
759
|
+
# Whether the individual is an authorizer of the Account’s legal entity.
|
760
|
+
attr_accessor :authorizer
|
755
761
|
# Indicates whether the person is a director of the associated legal entity.
|
756
762
|
attr_accessor :director
|
757
763
|
# Indicates whether the person is an executive of the associated legal entity.
|
@@ -768,6 +774,7 @@ module Stripe
|
|
768
774
|
attr_accessor :title
|
769
775
|
|
770
776
|
def initialize(
|
777
|
+
authorizer: nil,
|
771
778
|
director: nil,
|
772
779
|
executive: nil,
|
773
780
|
legal_guardian: nil,
|
@@ -776,6 +783,7 @@ module Stripe
|
|
776
783
|
representative: nil,
|
777
784
|
title: nil
|
778
785
|
)
|
786
|
+
@authorizer = authorizer
|
779
787
|
@director = director
|
780
788
|
@executive = executive
|
781
789
|
@legal_guardian = legal_guardian
|
@@ -81,7 +81,7 @@ module Stripe
|
|
81
81
|
)
|
82
82
|
end
|
83
83
|
|
84
|
-
# Archive a
|
84
|
+
# Archive a GBBankAccount object. Archived GBBankAccount objects cannot be used as outbound destinations
|
85
85
|
# and will not appear in the outbound destination list.
|
86
86
|
def archive(id, params = {}, opts = {})
|
87
87
|
request(
|
@@ -47,8 +47,8 @@ module Stripe
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
# Archive a
|
51
|
-
# Archived
|
50
|
+
# Archive a USBankAccount object. USBankAccount objects will not be automatically archived by Stripe.
|
51
|
+
# Archived USBankAccount objects cannot be used as outbound destinations
|
52
52
|
# and will not appear in the outbound destination list.
|
53
53
|
#
|
54
54
|
# ** raises ControlledByDashboardError
|
@@ -62,7 +62,7 @@ module Stripe
|
|
62
62
|
)
|
63
63
|
end
|
64
64
|
|
65
|
-
# Create a
|
65
|
+
# Create a USBankAccount object.
|
66
66
|
#
|
67
67
|
# ** raises BlockedByStripeError
|
68
68
|
# ** raises InvalidPaymentMethodError
|
@@ -77,7 +77,7 @@ module Stripe
|
|
77
77
|
)
|
78
78
|
end
|
79
79
|
|
80
|
-
# Retrieve a
|
80
|
+
# Retrieve a USBankAccount object.
|
81
81
|
def retrieve(id, params = {}, opts = {})
|
82
82
|
request(
|
83
83
|
method: :get,
|
@@ -88,7 +88,7 @@ module Stripe
|
|
88
88
|
)
|
89
89
|
end
|
90
90
|
|
91
|
-
# Update a
|
91
|
+
# Update a USBankAccount object. This is limited to supplying a previously empty routing_number field.
|
92
92
|
#
|
93
93
|
# ** raises BlockedByStripeError
|
94
94
|
# ** raises InvalidPaymentMethodError
|
@@ -64,7 +64,12 @@ module Stripe
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
class RetrieveParams < Stripe::RequestParams
|
68
|
+
end
|
69
|
+
|
67
70
|
# Creates an OutboundPaymentQuote usable in an OutboundPayment.
|
71
|
+
#
|
72
|
+
# ** raises FeatureNotEnabledError
|
68
73
|
def create(params = {}, opts = {})
|
69
74
|
request(
|
70
75
|
method: :post,
|
@@ -74,6 +79,17 @@ module Stripe
|
|
74
79
|
base_address: :api
|
75
80
|
)
|
76
81
|
end
|
82
|
+
|
83
|
+
# Retrieves the details of an existing OutboundPaymentQuote by passing the unique OutboundPaymentQuote ID.
|
84
|
+
def retrieve(id, params = {}, opts = {})
|
85
|
+
request(
|
86
|
+
method: :get,
|
87
|
+
path: format("/v2/money_management/outbound_payment_quotes/%<id>s", { id: CGI.escape(id) }),
|
88
|
+
params: params,
|
89
|
+
opts: opts,
|
90
|
+
base_address: :api
|
91
|
+
)
|
92
|
+
end
|
77
93
|
end
|
78
94
|
end
|
79
95
|
end
|
data/lib/stripe/version.rb
CHANGED