stripe 17.3.0 → 17.4.0-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.
- package/CHANGELOG.md +938 -110
- package/README.md +4 -4
- package/VERSION +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +42 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +29 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +332 -0
- package/types/Accounts.d.ts +183 -1
- package/types/AccountsResource.d.ts +496 -0
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +116 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +302 -4
- package/types/Checkout/SessionsResource.d.ts +354 -5
- package/types/ConfirmationTokens.d.ts +99 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +7 -0
- package/types/EventTypes.d.ts +545 -0
- package/types/Events.d.ts +90 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +28 -1
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +131 -2
- package/types/InvoicesResource.d.ts +5522 -1844
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +103 -0
- package/types/Issuing/Transactions.d.ts +2 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +7 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1154 -0
- package/types/OrdersResource.d.ts +2911 -0
- package/types/PaymentIntents.d.ts +637 -1
- package/types/PaymentIntentsResource.d.ts +7947 -3706
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +99 -0
- package/types/PaymentMethodsResource.d.ts +133 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1608 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +38 -0
- package/types/SetupIntents.d.ts +111 -1
- package/types/SetupIntentsResource.d.ts +645 -3
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +90 -1
- package/types/SubscriptionsResource.d.ts +367 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +215 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +64 -0
- package/types/index.d.ts +53 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Capital {
|
|
6
|
+
interface FinancingTransactionRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface FinancingTransactionListParams extends PaginationParams {
|
|
14
|
+
/**
|
|
15
|
+
* For transactions of type `paydown` and reason `automatic_withholding` only, only returns transactions that were created as a result of this charge.
|
|
16
|
+
*/
|
|
17
|
+
charge?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Specifies which fields in the response should be expanded.
|
|
21
|
+
*/
|
|
22
|
+
expand?: Array<string>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Returns transactions that were created that apply to this financing offer ID.
|
|
26
|
+
*/
|
|
27
|
+
financing_offer?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Only returns transactions that are responsible for reversing this financing transaction ID.
|
|
31
|
+
*/
|
|
32
|
+
reversed_transaction?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* For transactions of type `paydown` and reason `automatic_withholding` only, only returns transactions that were created as a result of this Treasury Transaction.
|
|
36
|
+
*/
|
|
37
|
+
treasury_transaction?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class FinancingTransactionsResource {
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves a financing transaction for a financing offer.
|
|
43
|
+
*/
|
|
44
|
+
retrieve(
|
|
45
|
+
id: string,
|
|
46
|
+
params?: FinancingTransactionRetrieveParams,
|
|
47
|
+
options?: RequestOptions
|
|
48
|
+
): Promise<Stripe.Response<Stripe.Capital.FinancingTransaction>>;
|
|
49
|
+
retrieve(
|
|
50
|
+
id: string,
|
|
51
|
+
options?: RequestOptions
|
|
52
|
+
): Promise<Stripe.Response<Stripe.Capital.FinancingTransaction>>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Returns a list of financing transactions. The transactions are returned in sorted order,
|
|
56
|
+
* with the most recent transactions appearing first.
|
|
57
|
+
*/
|
|
58
|
+
list(
|
|
59
|
+
params?: FinancingTransactionListParams,
|
|
60
|
+
options?: RequestOptions
|
|
61
|
+
): ApiListPromise<Stripe.Capital.FinancingTransaction>;
|
|
62
|
+
list(
|
|
63
|
+
options?: RequestOptions
|
|
64
|
+
): ApiListPromise<Stripe.Capital.FinancingTransaction>;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
package/types/Charges.d.ts
CHANGED
|
@@ -408,8 +408,12 @@ declare module 'stripe' {
|
|
|
408
408
|
|
|
409
409
|
giropay?: PaymentMethodDetails.Giropay;
|
|
410
410
|
|
|
411
|
+
gopay?: PaymentMethodDetails.Gopay;
|
|
412
|
+
|
|
411
413
|
grabpay?: PaymentMethodDetails.Grabpay;
|
|
412
414
|
|
|
415
|
+
id_bank_transfer?: PaymentMethodDetails.IdBankTransfer;
|
|
416
|
+
|
|
413
417
|
ideal?: PaymentMethodDetails.Ideal;
|
|
414
418
|
|
|
415
419
|
interac_present?: PaymentMethodDetails.InteracPresent;
|
|
@@ -424,6 +428,8 @@ declare module 'stripe' {
|
|
|
424
428
|
|
|
425
429
|
link?: PaymentMethodDetails.Link;
|
|
426
430
|
|
|
431
|
+
mb_way?: PaymentMethodDetails.MbWay;
|
|
432
|
+
|
|
427
433
|
mobilepay?: PaymentMethodDetails.Mobilepay;
|
|
428
434
|
|
|
429
435
|
multibanco?: PaymentMethodDetails.Multibanco;
|
|
@@ -440,10 +446,16 @@ declare module 'stripe' {
|
|
|
440
446
|
|
|
441
447
|
paypal?: PaymentMethodDetails.Paypal;
|
|
442
448
|
|
|
449
|
+
payto?: PaymentMethodDetails.Payto;
|
|
450
|
+
|
|
443
451
|
pix?: PaymentMethodDetails.Pix;
|
|
444
452
|
|
|
445
453
|
promptpay?: PaymentMethodDetails.Promptpay;
|
|
446
454
|
|
|
455
|
+
qris?: PaymentMethodDetails.Qris;
|
|
456
|
+
|
|
457
|
+
rechnung?: PaymentMethodDetails.Rechnung;
|
|
458
|
+
|
|
447
459
|
revolut_pay?: PaymentMethodDetails.RevolutPay;
|
|
448
460
|
|
|
449
461
|
samsung_pay?: PaymentMethodDetails.SamsungPay;
|
|
@@ -452,6 +464,8 @@ declare module 'stripe' {
|
|
|
452
464
|
|
|
453
465
|
sepa_debit?: PaymentMethodDetails.SepaDebit;
|
|
454
466
|
|
|
467
|
+
shopeepay?: PaymentMethodDetails.Shopeepay;
|
|
468
|
+
|
|
455
469
|
sofort?: PaymentMethodDetails.Sofort;
|
|
456
470
|
|
|
457
471
|
stripe_account?: PaymentMethodDetails.StripeAccount;
|
|
@@ -744,6 +758,8 @@ declare module 'stripe' {
|
|
|
744
758
|
*/
|
|
745
759
|
country: string | null;
|
|
746
760
|
|
|
761
|
+
decremental_authorization?: Card.DecrementalAuthorization;
|
|
762
|
+
|
|
747
763
|
/**
|
|
748
764
|
* A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
|
749
765
|
*/
|
|
@@ -850,6 +866,17 @@ declare module 'stripe' {
|
|
|
850
866
|
cvc_check: string | null;
|
|
851
867
|
}
|
|
852
868
|
|
|
869
|
+
interface DecrementalAuthorization {
|
|
870
|
+
/**
|
|
871
|
+
* Indicates whether or not the decremental authorization feature is supported.
|
|
872
|
+
*/
|
|
873
|
+
status: DecrementalAuthorization.Status;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
namespace DecrementalAuthorization {
|
|
877
|
+
type Status = 'available' | 'unavailable';
|
|
878
|
+
}
|
|
879
|
+
|
|
853
880
|
interface ExtendedAuthorization {
|
|
854
881
|
/**
|
|
855
882
|
* Indicates whether or not the capture window is extended beyond the standard authorization.
|
|
@@ -1437,6 +1464,8 @@ declare module 'stripe' {
|
|
|
1437
1464
|
verified_name: string | null;
|
|
1438
1465
|
}
|
|
1439
1466
|
|
|
1467
|
+
interface Gopay {}
|
|
1468
|
+
|
|
1440
1469
|
interface Grabpay {
|
|
1441
1470
|
/**
|
|
1442
1471
|
* Unique transaction id generated by GrabPay
|
|
@@ -1444,6 +1473,37 @@ declare module 'stripe' {
|
|
|
1444
1473
|
transaction_id: string | null;
|
|
1445
1474
|
}
|
|
1446
1475
|
|
|
1476
|
+
interface IdBankTransfer {
|
|
1477
|
+
/**
|
|
1478
|
+
* Account number of the bank account to transfer funds to.
|
|
1479
|
+
*/
|
|
1480
|
+
account_number: string;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* Bank where the account is located.
|
|
1484
|
+
*/
|
|
1485
|
+
bank: IdBankTransfer.Bank;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Local bank code of the bank.
|
|
1489
|
+
*/
|
|
1490
|
+
bank_code?: string;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Name of the bank associated with the bank account.
|
|
1494
|
+
*/
|
|
1495
|
+
bank_name?: string;
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
|
1499
|
+
*/
|
|
1500
|
+
display_name?: string;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
namespace IdBankTransfer {
|
|
1504
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1447
1507
|
interface Ideal {
|
|
1448
1508
|
/**
|
|
1449
1509
|
* The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
@@ -1785,6 +1845,8 @@ declare module 'stripe' {
|
|
|
1785
1845
|
country: string | null;
|
|
1786
1846
|
}
|
|
1787
1847
|
|
|
1848
|
+
interface MbWay {}
|
|
1849
|
+
|
|
1788
1850
|
interface Mobilepay {
|
|
1789
1851
|
/**
|
|
1790
1852
|
* Internal card details
|
|
@@ -1933,10 +1995,36 @@ declare module 'stripe' {
|
|
|
1933
1995
|
*/
|
|
1934
1996
|
seller_protection: Paypal.SellerProtection | null;
|
|
1935
1997
|
|
|
1998
|
+
/**
|
|
1999
|
+
* The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
2000
|
+
* execution. This shipping address will not be updated if the merchant updates the shipping
|
|
2001
|
+
* address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
2002
|
+
*/
|
|
2003
|
+
shipping?: Stripe.Address | null;
|
|
2004
|
+
|
|
1936
2005
|
/**
|
|
1937
2006
|
* A unique ID generated by PayPal for this transaction.
|
|
1938
2007
|
*/
|
|
1939
2008
|
transaction_id: string | null;
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
2012
|
+
* execution. This shipping address will not be updated if the merchant updates the shipping
|
|
2013
|
+
* address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
2014
|
+
*/
|
|
2015
|
+
verified_address?: Stripe.Address | null;
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
2019
|
+
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
2020
|
+
*/
|
|
2021
|
+
verified_email?: string | null;
|
|
2022
|
+
|
|
2023
|
+
/**
|
|
2024
|
+
* Owner's verified full name. Values are verified or provided by PayPal directly
|
|
2025
|
+
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
2026
|
+
*/
|
|
2027
|
+
verified_name?: string | null;
|
|
1940
2028
|
}
|
|
1941
2029
|
|
|
1942
2030
|
namespace Paypal {
|
|
@@ -1959,6 +2047,28 @@ declare module 'stripe' {
|
|
|
1959
2047
|
}
|
|
1960
2048
|
}
|
|
1961
2049
|
|
|
2050
|
+
interface Payto {
|
|
2051
|
+
/**
|
|
2052
|
+
* Bank-State-Branch number of the bank account.
|
|
2053
|
+
*/
|
|
2054
|
+
bsb_number: string | null;
|
|
2055
|
+
|
|
2056
|
+
/**
|
|
2057
|
+
* Last four digits of the bank account number.
|
|
2058
|
+
*/
|
|
2059
|
+
last4: string | null;
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* ID of the mandate used to make this payment.
|
|
2063
|
+
*/
|
|
2064
|
+
mandate?: string;
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* The PayID alias for the bank account.
|
|
2068
|
+
*/
|
|
2069
|
+
pay_id: string | null;
|
|
2070
|
+
}
|
|
2071
|
+
|
|
1962
2072
|
interface Pix {
|
|
1963
2073
|
/**
|
|
1964
2074
|
* Unique transaction id generated by BCB
|
|
@@ -1973,6 +2083,10 @@ declare module 'stripe' {
|
|
|
1973
2083
|
reference: string | null;
|
|
1974
2084
|
}
|
|
1975
2085
|
|
|
2086
|
+
interface Qris {}
|
|
2087
|
+
|
|
2088
|
+
interface Rechnung {}
|
|
2089
|
+
|
|
1976
2090
|
interface RevolutPay {}
|
|
1977
2091
|
|
|
1978
2092
|
interface SamsungPay {
|
|
@@ -2031,6 +2145,8 @@ declare module 'stripe' {
|
|
|
2031
2145
|
mandate: string | null;
|
|
2032
2146
|
}
|
|
2033
2147
|
|
|
2148
|
+
interface Shopeepay {}
|
|
2149
|
+
|
|
2034
2150
|
interface Sofort {
|
|
2035
2151
|
/**
|
|
2036
2152
|
* Bank code of bank associated with the bank account.
|