stripe 15.1.0.pre.beta.1 → 15.1.0.pre.beta.2
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 +22 -0
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_requestor.rb +1 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/resources/account.rb +51 -2
- data/lib/stripe/resources/balance_settings.rb +5 -1
- data/lib/stripe/resources/capital/financing_offer.rb +4 -4
- data/lib/stripe/resources/capital/financing_summary.rb +6 -6
- data/lib/stripe/resources/charge.rb +18 -0
- data/lib/stripe/resources/checkout/session.rb +74 -3
- data/lib/stripe/resources/confirmation_token.rb +6 -1
- data/lib/stripe/resources/coupon.rb +30 -1
- data/lib/stripe/resources/funding_instructions.rb +1 -1
- data/lib/stripe/resources/fx_quote.rb +184 -0
- data/lib/stripe/resources/invoice.rb +0 -52
- data/lib/stripe/resources/payment_intent.rb +87 -3
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +65 -0
- data/lib/stripe/resources/payment_method.rb +10 -2
- data/lib/stripe/resources/payment_method_configuration.rb +59 -0
- data/lib/stripe/resources/person.rb +25 -1
- data/lib/stripe/resources/privacy/redaction_job.rb +3 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -29
- data/lib/stripe/resources/refund.rb +2 -0
- data/lib/stripe/resources/setup_intent.rb +12 -3
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/tax/registration.rb +160 -0
- data/lib/stripe/resources/token.rb +61 -0
- data/lib/stripe/resources/transfer.rb +6 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +4 -1
- data/lib/stripe/resources.rb +2 -0
- data/lib/stripe/services/account_person_service.rb +84 -0
- data/lib/stripe/services/account_service.rb +39 -1
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/capital_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +16 -0
- data/lib/stripe/services/checkout/session_service.rb +75 -4
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/coupon_service.rb +17 -1
- data/lib/stripe/services/credit_note_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/fx_quote_service.rb +123 -0
- data/lib/stripe/services/gift_cards_service.rb +1 -1
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +2 -37
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/order_service.rb +1 -1
- data/lib/stripe/services/{invoice_payment_service.rb → payment_intent_amount_details_line_item_service.rb} +4 -24
- data/lib/stripe/services/payment_intent_service.rb +63 -3
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_configuration_service.rb +42 -0
- data/lib/stripe/services/payment_method_service.rb +8 -2
- data/lib/stripe/services/privacy/redaction_job_service.rb +1 -1
- data/lib/stripe/services/privacy_service.rb +1 -1
- data/lib/stripe/services/product_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +1 -1
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +12 -3
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +1 -1
- data/lib/stripe/services/tax/calculation_service.rb +1 -1
- data/lib/stripe/services/tax/registration_service.rb +104 -0
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +4 -1
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +61 -0
- data/lib/stripe/services/transfer_service.rb +5 -1
- data/lib/stripe/services/treasury/financial_account_service.rb +1 -1
- data/lib/stripe/services/treasury/outbound_payment_service.rb +4 -1
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +3 -2
- data/lib/stripe/services/v2/billing_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/vault_service.rb +1 -1
- data/lib/stripe/services/v2/core_service.rb +1 -1
- data/lib/stripe/services/v2/money_management_service.rb +1 -1
- data/lib/stripe/services/v2/test_helper_service.rb +1 -1
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services.rb +2 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -2
- data/rbi/stripe.rbi +1675 -239
- metadata +6 -4
- data/lib/stripe/request_signing_authenticator.rb +0 -79
@@ -134,12 +134,15 @@ module Stripe
|
|
134
134
|
attr_accessor :name
|
135
135
|
# Billing phone number (including extension).
|
136
136
|
attr_accessor :phone
|
137
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
138
|
+
attr_accessor :tax_id
|
137
139
|
|
138
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
140
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
139
141
|
@address = address
|
140
142
|
@email = email
|
141
143
|
@name = name
|
142
144
|
@phone = phone
|
145
|
+
@tax_id = tax_id
|
143
146
|
end
|
144
147
|
end
|
145
148
|
|
@@ -806,12 +809,15 @@ module Stripe
|
|
806
809
|
attr_accessor :name
|
807
810
|
# Billing phone number (including extension).
|
808
811
|
attr_accessor :phone
|
812
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
813
|
+
attr_accessor :tax_id
|
809
814
|
|
810
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
815
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
811
816
|
@address = address
|
812
817
|
@email = email
|
813
818
|
@name = name
|
814
819
|
@phone = phone
|
820
|
+
@tax_id = tax_id
|
815
821
|
end
|
816
822
|
end
|
817
823
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
attr_reader :preview_invoices, :preview_subscription_schedules, :lines, :line_items, :computed_upfront_line_items
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@preview_invoices = Stripe::QuotePreviewInvoiceService.new(@requestor)
|
11
11
|
@preview_subscription_schedules = Stripe::QuotePreviewSubscriptionScheduleService
|
12
12
|
.new(@requestor)
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
attr_reader :early_fraud_warnings, :value_lists, :value_list_items
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@early_fraud_warnings = Stripe::Radar::EarlyFraudWarningService.new(@requestor)
|
11
11
|
@value_lists = Stripe::Radar::ValueListService.new(@requestor)
|
12
12
|
@value_list_items = Stripe::Radar::ValueListItemService.new(@requestor)
|
@@ -220,12 +220,15 @@ module Stripe
|
|
220
220
|
attr_accessor :name
|
221
221
|
# Billing phone number (including extension).
|
222
222
|
attr_accessor :phone
|
223
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
224
|
+
attr_accessor :tax_id
|
223
225
|
|
224
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
226
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
225
227
|
@address = address
|
226
228
|
@email = email
|
227
229
|
@name = name
|
228
230
|
@phone = phone
|
231
|
+
@tax_id = tax_id
|
229
232
|
end
|
230
233
|
end
|
231
234
|
|
@@ -1445,12 +1448,15 @@ module Stripe
|
|
1445
1448
|
attr_accessor :name
|
1446
1449
|
# Billing phone number (including extension).
|
1447
1450
|
attr_accessor :phone
|
1451
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
1452
|
+
attr_accessor :tax_id
|
1448
1453
|
|
1449
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
1454
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
1450
1455
|
@address = address
|
1451
1456
|
@email = email
|
1452
1457
|
@name = name
|
1453
1458
|
@phone = phone
|
1459
|
+
@tax_id = tax_id
|
1454
1460
|
end
|
1455
1461
|
end
|
1456
1462
|
|
@@ -2658,12 +2664,15 @@ module Stripe
|
|
2658
2664
|
attr_accessor :name
|
2659
2665
|
# Billing phone number (including extension).
|
2660
2666
|
attr_accessor :phone
|
2667
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
2668
|
+
attr_accessor :tax_id
|
2661
2669
|
|
2662
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
2670
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
2663
2671
|
@address = address
|
2664
2672
|
@email = email
|
2665
2673
|
@name = name
|
2666
2674
|
@phone = phone
|
2675
|
+
@tax_id = tax_id
|
2667
2676
|
end
|
2668
2677
|
end
|
2669
2678
|
|
@@ -98,6 +98,24 @@ module Stripe
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
+
class Aw < Stripe::RequestParams
|
102
|
+
# Type of registration to be created in `country`.
|
103
|
+
attr_accessor :type
|
104
|
+
|
105
|
+
def initialize(type: nil)
|
106
|
+
@type = type
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
class Az < Stripe::RequestParams
|
111
|
+
# Type of registration to be created in `country`.
|
112
|
+
attr_accessor :type
|
113
|
+
|
114
|
+
def initialize(type: nil)
|
115
|
+
@type = type
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
101
119
|
class Ba < Stripe::RequestParams
|
102
120
|
# Type of registration to be created in `country`.
|
103
121
|
attr_accessor :type
|
@@ -116,6 +134,15 @@ module Stripe
|
|
116
134
|
end
|
117
135
|
end
|
118
136
|
|
137
|
+
class Bd < Stripe::RequestParams
|
138
|
+
# Type of registration to be created in `country`.
|
139
|
+
attr_accessor :type
|
140
|
+
|
141
|
+
def initialize(type: nil)
|
142
|
+
@type = type
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
119
146
|
class Be < Stripe::RequestParams
|
120
147
|
class Standard < Stripe::RequestParams
|
121
148
|
# Place of supply scheme used in an EU standard registration.
|
@@ -165,6 +192,15 @@ module Stripe
|
|
165
192
|
end
|
166
193
|
end
|
167
194
|
|
195
|
+
class Bj < Stripe::RequestParams
|
196
|
+
# Type of registration to be created in `country`.
|
197
|
+
attr_accessor :type
|
198
|
+
|
199
|
+
def initialize(type: nil)
|
200
|
+
@type = type
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
168
204
|
class Bs < Stripe::RequestParams
|
169
205
|
# Type of registration to be created in `country`.
|
170
206
|
attr_accessor :type
|
@@ -386,6 +422,15 @@ module Stripe
|
|
386
422
|
end
|
387
423
|
end
|
388
424
|
|
425
|
+
class Et < Stripe::RequestParams
|
426
|
+
# Type of registration to be created in `country`.
|
427
|
+
attr_accessor :type
|
428
|
+
|
429
|
+
def initialize(type: nil)
|
430
|
+
@type = type
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
389
434
|
class Fi < Stripe::RequestParams
|
390
435
|
class Standard < Stripe::RequestParams
|
391
436
|
# Place of supply scheme used in an EU standard registration.
|
@@ -598,6 +643,15 @@ module Stripe
|
|
598
643
|
end
|
599
644
|
end
|
600
645
|
|
646
|
+
class Kg < Stripe::RequestParams
|
647
|
+
# Type of registration to be created in `country`.
|
648
|
+
attr_accessor :type
|
649
|
+
|
650
|
+
def initialize(type: nil)
|
651
|
+
@type = type
|
652
|
+
end
|
653
|
+
end
|
654
|
+
|
601
655
|
class Kh < Stripe::RequestParams
|
602
656
|
# Type of registration to be created in `country`.
|
603
657
|
attr_accessor :type
|
@@ -625,6 +679,15 @@ module Stripe
|
|
625
679
|
end
|
626
680
|
end
|
627
681
|
|
682
|
+
class La < Stripe::RequestParams
|
683
|
+
# Type of registration to be created in `country`.
|
684
|
+
attr_accessor :type
|
685
|
+
|
686
|
+
def initialize(type: nil)
|
687
|
+
@type = type
|
688
|
+
end
|
689
|
+
end
|
690
|
+
|
628
691
|
class Lt < Stripe::RequestParams
|
629
692
|
class Standard < Stripe::RequestParams
|
630
693
|
# Place of supply scheme used in an EU standard registration.
|
@@ -842,6 +905,15 @@ module Stripe
|
|
842
905
|
end
|
843
906
|
end
|
844
907
|
|
908
|
+
class Ph < Stripe::RequestParams
|
909
|
+
# Type of registration to be created in `country`.
|
910
|
+
attr_accessor :type
|
911
|
+
|
912
|
+
def initialize(type: nil)
|
913
|
+
@type = type
|
914
|
+
end
|
915
|
+
end
|
916
|
+
|
845
917
|
class Pl < Stripe::RequestParams
|
846
918
|
class Standard < Stripe::RequestParams
|
847
919
|
# Place of supply scheme used in an EU standard registration.
|
@@ -1190,16 +1262,24 @@ module Stripe
|
|
1190
1262
|
attr_accessor :at
|
1191
1263
|
# Options for the registration in AU.
|
1192
1264
|
attr_accessor :au
|
1265
|
+
# Options for the registration in AW.
|
1266
|
+
attr_accessor :aw
|
1267
|
+
# Options for the registration in AZ.
|
1268
|
+
attr_accessor :az
|
1193
1269
|
# Options for the registration in BA.
|
1194
1270
|
attr_accessor :ba
|
1195
1271
|
# Options for the registration in BB.
|
1196
1272
|
attr_accessor :bb
|
1273
|
+
# Options for the registration in BD.
|
1274
|
+
attr_accessor :bd
|
1197
1275
|
# Options for the registration in BE.
|
1198
1276
|
attr_accessor :be
|
1199
1277
|
# Options for the registration in BG.
|
1200
1278
|
attr_accessor :bg
|
1201
1279
|
# Options for the registration in BH.
|
1202
1280
|
attr_accessor :bh
|
1281
|
+
# Options for the registration in BJ.
|
1282
|
+
attr_accessor :bj
|
1203
1283
|
# Options for the registration in BS.
|
1204
1284
|
attr_accessor :bs
|
1205
1285
|
# Options for the registration in BY.
|
@@ -1232,6 +1312,8 @@ module Stripe
|
|
1232
1312
|
attr_accessor :eg
|
1233
1313
|
# Options for the registration in ES.
|
1234
1314
|
attr_accessor :es
|
1315
|
+
# Options for the registration in ET.
|
1316
|
+
attr_accessor :et
|
1235
1317
|
# Options for the registration in FI.
|
1236
1318
|
attr_accessor :fi
|
1237
1319
|
# Options for the registration in FR.
|
@@ -1262,12 +1344,16 @@ module Stripe
|
|
1262
1344
|
attr_accessor :jp
|
1263
1345
|
# Options for the registration in KE.
|
1264
1346
|
attr_accessor :ke
|
1347
|
+
# Options for the registration in KG.
|
1348
|
+
attr_accessor :kg
|
1265
1349
|
# Options for the registration in KH.
|
1266
1350
|
attr_accessor :kh
|
1267
1351
|
# Options for the registration in KR.
|
1268
1352
|
attr_accessor :kr
|
1269
1353
|
# Options for the registration in KZ.
|
1270
1354
|
attr_accessor :kz
|
1355
|
+
# Options for the registration in LA.
|
1356
|
+
attr_accessor :la
|
1271
1357
|
# Options for the registration in LT.
|
1272
1358
|
attr_accessor :lt
|
1273
1359
|
# Options for the registration in LU.
|
@@ -1304,6 +1390,8 @@ module Stripe
|
|
1304
1390
|
attr_accessor :om
|
1305
1391
|
# Options for the registration in PE.
|
1306
1392
|
attr_accessor :pe
|
1393
|
+
# Options for the registration in PH.
|
1394
|
+
attr_accessor :ph
|
1307
1395
|
# Options for the registration in PL.
|
1308
1396
|
attr_accessor :pl
|
1309
1397
|
# Options for the registration in PT.
|
@@ -1360,11 +1448,15 @@ module Stripe
|
|
1360
1448
|
ao: nil,
|
1361
1449
|
at: nil,
|
1362
1450
|
au: nil,
|
1451
|
+
aw: nil,
|
1452
|
+
az: nil,
|
1363
1453
|
ba: nil,
|
1364
1454
|
bb: nil,
|
1455
|
+
bd: nil,
|
1365
1456
|
be: nil,
|
1366
1457
|
bg: nil,
|
1367
1458
|
bh: nil,
|
1459
|
+
bj: nil,
|
1368
1460
|
bs: nil,
|
1369
1461
|
by: nil,
|
1370
1462
|
ca: nil,
|
@@ -1381,6 +1473,7 @@ module Stripe
|
|
1381
1473
|
ee: nil,
|
1382
1474
|
eg: nil,
|
1383
1475
|
es: nil,
|
1476
|
+
et: nil,
|
1384
1477
|
fi: nil,
|
1385
1478
|
fr: nil,
|
1386
1479
|
gb: nil,
|
@@ -1396,9 +1489,11 @@ module Stripe
|
|
1396
1489
|
it: nil,
|
1397
1490
|
jp: nil,
|
1398
1491
|
ke: nil,
|
1492
|
+
kg: nil,
|
1399
1493
|
kh: nil,
|
1400
1494
|
kr: nil,
|
1401
1495
|
kz: nil,
|
1496
|
+
la: nil,
|
1402
1497
|
lt: nil,
|
1403
1498
|
lu: nil,
|
1404
1499
|
lv: nil,
|
@@ -1417,6 +1512,7 @@ module Stripe
|
|
1417
1512
|
nz: nil,
|
1418
1513
|
om: nil,
|
1419
1514
|
pe: nil,
|
1515
|
+
ph: nil,
|
1420
1516
|
pl: nil,
|
1421
1517
|
pt: nil,
|
1422
1518
|
ro: nil,
|
@@ -1448,11 +1544,15 @@ module Stripe
|
|
1448
1544
|
@ao = ao
|
1449
1545
|
@at = at
|
1450
1546
|
@au = au
|
1547
|
+
@aw = aw
|
1548
|
+
@az = az
|
1451
1549
|
@ba = ba
|
1452
1550
|
@bb = bb
|
1551
|
+
@bd = bd
|
1453
1552
|
@be = be
|
1454
1553
|
@bg = bg
|
1455
1554
|
@bh = bh
|
1555
|
+
@bj = bj
|
1456
1556
|
@bs = bs
|
1457
1557
|
@by = by
|
1458
1558
|
@ca = ca
|
@@ -1469,6 +1569,7 @@ module Stripe
|
|
1469
1569
|
@ee = ee
|
1470
1570
|
@eg = eg
|
1471
1571
|
@es = es
|
1572
|
+
@et = et
|
1472
1573
|
@fi = fi
|
1473
1574
|
@fr = fr
|
1474
1575
|
@gb = gb
|
@@ -1484,9 +1585,11 @@ module Stripe
|
|
1484
1585
|
@it = it
|
1485
1586
|
@jp = jp
|
1486
1587
|
@ke = ke
|
1588
|
+
@kg = kg
|
1487
1589
|
@kh = kh
|
1488
1590
|
@kr = kr
|
1489
1591
|
@kz = kz
|
1592
|
+
@la = la
|
1490
1593
|
@lt = lt
|
1491
1594
|
@lu = lu
|
1492
1595
|
@lv = lv
|
@@ -1505,6 +1608,7 @@ module Stripe
|
|
1505
1608
|
@nz = nz
|
1506
1609
|
@om = om
|
1507
1610
|
@pe = pe
|
1611
|
+
@ph = ph
|
1508
1612
|
@pl = pl
|
1509
1613
|
@pt = pt
|
1510
1614
|
@ro = ro
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
attr_reader :associations, :calculations, :forms, :registrations, :settings, :transactions
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@associations = Stripe::Tax::AssociationService.new(@requestor)
|
11
11
|
@calculations = Stripe::Tax::CalculationService.new(@requestor)
|
12
12
|
@forms = Stripe::Tax::FormService.new(@requestor)
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
attr_reader :configurations, :connection_tokens, :locations, :readers, :reader_collected_data
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@configurations = Stripe::Terminal::ConfigurationService.new(@requestor)
|
11
11
|
@connection_tokens = Stripe::Terminal::ConnectionTokenService.new(@requestor)
|
12
12
|
@locations = Stripe::Terminal::LocationService.new(@requestor)
|
@@ -105,12 +105,15 @@ module Stripe
|
|
105
105
|
attr_accessor :name
|
106
106
|
# Billing phone number (including extension).
|
107
107
|
attr_accessor :phone
|
108
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
109
|
+
attr_accessor :tax_id
|
108
110
|
|
109
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
111
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
110
112
|
@address = address
|
111
113
|
@email = email
|
112
114
|
@name = name
|
113
115
|
@phone = phone
|
116
|
+
@tax_id = tax_id
|
114
117
|
end
|
115
118
|
end
|
116
119
|
|
@@ -7,7 +7,7 @@ module Stripe
|
|
7
7
|
attr_reader :authorizations, :cards, :personalization_designs, :transactions
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
|
-
super
|
10
|
+
super
|
11
11
|
@authorizations = Stripe::TestHelpers::Issuing::AuthorizationService.new(@requestor)
|
12
12
|
@cards = Stripe::TestHelpers::Issuing::CardService.new(@requestor)
|
13
13
|
@personalization_designs = Stripe::TestHelpers::Issuing::PersonalizationDesignService
|
@@ -7,7 +7,7 @@ module Stripe
|
|
7
7
|
attr_reader :inbound_transfers, :outbound_payments, :outbound_transfers, :received_credits, :received_debits
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
|
-
super
|
10
|
+
super
|
11
11
|
@inbound_transfers = Stripe::TestHelpers::Treasury::InboundTransferService.new(@requestor)
|
12
12
|
@outbound_payments = Stripe::TestHelpers::Treasury::OutboundPaymentService.new(@requestor)
|
13
13
|
@outbound_transfers = Stripe::TestHelpers::Treasury::OutboundTransferService.new(@requestor)
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
attr_reader :confirmation_tokens, :customers, :issuing, :refunds, :terminal, :test_clocks, :treasury
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@confirmation_tokens = Stripe::TestHelpers::ConfirmationTokenService.new(@requestor)
|
11
11
|
@customers = Stripe::TestHelpers::CustomerService.new(@requestor)
|
12
12
|
@issuing = Stripe::TestHelpers::IssuingService.new(@requestor)
|
@@ -146,6 +146,21 @@ module Stripe
|
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
149
|
+
class RegistrationDate < Stripe::RequestParams
|
150
|
+
# The day of registration, between 1 and 31.
|
151
|
+
attr_accessor :day
|
152
|
+
# The month of registration, between 1 and 12.
|
153
|
+
attr_accessor :month
|
154
|
+
# The four-digit year of registration.
|
155
|
+
attr_accessor :year
|
156
|
+
|
157
|
+
def initialize(day: nil, month: nil, year: nil)
|
158
|
+
@day = day
|
159
|
+
@month = month
|
160
|
+
@year = year
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
149
164
|
class Verification < Stripe::RequestParams
|
150
165
|
class Document < Stripe::RequestParams
|
151
166
|
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -197,6 +212,8 @@ module Stripe
|
|
197
212
|
attr_accessor :ownership_exemption_reason
|
198
213
|
# The company's phone number (used for verification).
|
199
214
|
attr_accessor :phone
|
215
|
+
# Attribute for param field registration_date
|
216
|
+
attr_accessor :registration_date
|
200
217
|
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
|
201
218
|
attr_accessor :registration_number
|
202
219
|
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
|
@@ -227,6 +244,7 @@ module Stripe
|
|
227
244
|
ownership_declaration_shown_and_signed: nil,
|
228
245
|
ownership_exemption_reason: nil,
|
229
246
|
phone: nil,
|
247
|
+
registration_date: nil,
|
230
248
|
registration_number: nil,
|
231
249
|
structure: nil,
|
232
250
|
tax_id: nil,
|
@@ -250,6 +268,7 @@ module Stripe
|
|
250
268
|
@ownership_declaration_shown_and_signed = ownership_declaration_shown_and_signed
|
251
269
|
@ownership_exemption_reason = ownership_exemption_reason
|
252
270
|
@phone = phone
|
271
|
+
@registration_date = registration_date
|
253
272
|
@registration_number = registration_number
|
254
273
|
@structure = structure
|
255
274
|
@tax_id = tax_id
|
@@ -953,6 +972,44 @@ module Stripe
|
|
953
972
|
end
|
954
973
|
end
|
955
974
|
|
975
|
+
class UsCfpbData < Stripe::RequestParams
|
976
|
+
class EthnicityDetails < Stripe::RequestParams
|
977
|
+
# The persons ethnicity
|
978
|
+
attr_accessor :ethnicity
|
979
|
+
# Please specify your origin, when other is selected.
|
980
|
+
attr_accessor :ethnicity_other
|
981
|
+
|
982
|
+
def initialize(ethnicity: nil, ethnicity_other: nil)
|
983
|
+
@ethnicity = ethnicity
|
984
|
+
@ethnicity_other = ethnicity_other
|
985
|
+
end
|
986
|
+
end
|
987
|
+
|
988
|
+
class RaceDetails < Stripe::RequestParams
|
989
|
+
# The persons race.
|
990
|
+
attr_accessor :race
|
991
|
+
# Please specify your race, when other is selected.
|
992
|
+
attr_accessor :race_other
|
993
|
+
|
994
|
+
def initialize(race: nil, race_other: nil)
|
995
|
+
@race = race
|
996
|
+
@race_other = race_other
|
997
|
+
end
|
998
|
+
end
|
999
|
+
# The persons ethnicity details
|
1000
|
+
attr_accessor :ethnicity_details
|
1001
|
+
# The persons race details
|
1002
|
+
attr_accessor :race_details
|
1003
|
+
# The persons self-identified gender
|
1004
|
+
attr_accessor :self_identified_gender
|
1005
|
+
|
1006
|
+
def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil)
|
1007
|
+
@ethnicity_details = ethnicity_details
|
1008
|
+
@race_details = race_details
|
1009
|
+
@self_identified_gender = self_identified_gender
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
|
956
1013
|
class Verification < Stripe::RequestParams
|
957
1014
|
class AdditionalDocument < Stripe::RequestParams
|
958
1015
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -1037,6 +1094,8 @@ module Stripe
|
|
1037
1094
|
attr_accessor :relationship
|
1038
1095
|
# The last four digits of the person's Social Security number (U.S. only).
|
1039
1096
|
attr_accessor :ssn_last_4
|
1097
|
+
# Demographic data related to the person.
|
1098
|
+
attr_accessor :us_cfpb_data
|
1040
1099
|
# The person's verification status.
|
1041
1100
|
attr_accessor :verification
|
1042
1101
|
|
@@ -1066,6 +1125,7 @@ module Stripe
|
|
1066
1125
|
registered_address: nil,
|
1067
1126
|
relationship: nil,
|
1068
1127
|
ssn_last_4: nil,
|
1128
|
+
us_cfpb_data: nil,
|
1069
1129
|
verification: nil
|
1070
1130
|
)
|
1071
1131
|
@additional_tos_acceptances = additional_tos_acceptances
|
@@ -1093,6 +1153,7 @@ module Stripe
|
|
1093
1153
|
@registered_address = registered_address
|
1094
1154
|
@relationship = relationship
|
1095
1155
|
@ssn_last_4 = ssn_last_4
|
1156
|
+
@us_cfpb_data = us_cfpb_data
|
1096
1157
|
@verification = verification
|
1097
1158
|
end
|
1098
1159
|
end
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
attr_reader :reversals
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@reversals = Stripe::TransferReversalService.new(@requestor)
|
11
11
|
end
|
12
12
|
|
@@ -73,6 +73,8 @@ module Stripe
|
|
73
73
|
attr_accessor :destination
|
74
74
|
# Specifies which fields in the response should be expanded.
|
75
75
|
attr_accessor :expand
|
76
|
+
# The FX rate in the quote is validated and used to convert the transfer amount to the destination currency.
|
77
|
+
attr_accessor :fx_quote
|
76
78
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
77
79
|
attr_accessor :metadata
|
78
80
|
# You can use this parameter to transfer funds from a charge before they are added to your available balance. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. [See the Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-availability) for details.
|
@@ -88,6 +90,7 @@ module Stripe
|
|
88
90
|
description: nil,
|
89
91
|
destination: nil,
|
90
92
|
expand: nil,
|
93
|
+
fx_quote: nil,
|
91
94
|
metadata: nil,
|
92
95
|
source_transaction: nil,
|
93
96
|
source_type: nil,
|
@@ -98,6 +101,7 @@ module Stripe
|
|
98
101
|
@description = description
|
99
102
|
@destination = destination
|
100
103
|
@expand = expand
|
104
|
+
@fx_quote = fx_quote
|
101
105
|
@metadata = metadata
|
102
106
|
@source_transaction = source_transaction
|
103
107
|
@source_type = source_type
|