stripe 23.2.0-alpha.1 → 23.2.0-alpha.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.
- package/CHANGELOG.md +55 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/StripeEventNotificationHandler.js +2 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -1
- package/cjs/WorkloadIdentity.js +1 -1
- package/cjs/resources/AccountSessions.d.ts +226 -0
- package/cjs/resources/Apps/Installs.d.ts +1 -1
- package/cjs/resources/Apps/Installs.js +1 -1
- package/cjs/resources/Charges.d.ts +383 -0
- package/cjs/resources/Checkout/Sessions.d.ts +82 -6
- package/cjs/resources/ConfirmationTokens.d.ts +40 -1
- package/cjs/resources/CustomerTaxExemptions.d.ts +28 -0
- package/cjs/resources/Customers.d.ts +31 -1
- package/cjs/resources/Disputes.d.ts +1 -1
- package/cjs/resources/Invoices.d.ts +15 -3
- package/cjs/resources/Issuing/Cards.d.ts +2 -2
- package/cjs/resources/PaymentAttemptRecords.d.ts +140 -1
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +48 -0
- package/cjs/resources/PaymentIntents.d.ts +532 -20
- package/cjs/resources/PaymentLinks.d.ts +3 -3
- package/cjs/resources/PaymentMethodConfigurations.d.ts +70 -0
- package/cjs/resources/PaymentMethods.d.ts +66 -3
- package/cjs/resources/PaymentRecords.d.ts +85 -1
- package/cjs/resources/QuotePreviewInvoices.d.ts +1 -1
- package/cjs/resources/Quotes.d.ts +2 -2
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +45 -4
- package/cjs/resources/Refunds.d.ts +31 -1
- package/cjs/resources/Reporting/ReportRuns.d.ts +4 -0
- package/cjs/resources/SetupAttempts.d.ts +4 -0
- package/cjs/resources/SetupIntents.d.ts +129 -15
- package/cjs/resources/Subscriptions.d.ts +21 -5
- package/cjs/resources/Tax/Certificates.d.ts +107 -0
- package/cjs/resources/Tax/Certificates.js +35 -0
- package/cjs/resources/Tax/Certificates.js.map +1 -0
- package/cjs/resources/Tax/FormCorrections.d.ts +29 -0
- package/cjs/resources/Tax/FormCorrections.js +4 -0
- package/cjs/resources/Tax/FormCorrections.js.map +1 -0
- package/cjs/resources/Tax/Forms.d.ts +376 -1
- package/cjs/resources/Tax/Forms.js +6 -0
- package/cjs/resources/Tax/Forms.js.map +1 -1
- package/cjs/resources/Tax/index.d.ts +38 -25
- package/cjs/resources/Tax/index.js +2 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +25 -1
- package/cjs/resources/Treasury/InboundTransfers.d.ts +22 -0
- package/cjs/resources/Treasury/OutboundPayments.d.ts +22 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +22 -0
- package/cjs/resources/V2/Core/AccountSessions.d.ts +28 -0
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +34 -2
- package/cjs/resources/V2/Core/Events.d.ts +85 -5
- package/cjs/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
- package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js +4 -0
- package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js +23 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions.js +29 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +16 -7
- package/cjs/resources/V2/Extend/index.js +2 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +34 -2
- package/cjs/resources/V2/MoneyManagement/FundingIntents.d.ts +30 -2
- package/cjs/resources/V2/MoneyManagement/FundingIntents.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +34 -2
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +32 -2
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +34 -2
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +30 -2
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +30 -2
- package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -1
- package/cjs/resources.js +4 -0
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +459 -0
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/StripeEventNotificationHandler.js +2 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -1
- package/esm/WorkloadIdentity.js +1 -1
- package/esm/resources/AccountSessions.d.ts +226 -0
- package/esm/resources/Apps/Installs.d.ts +1 -1
- package/esm/resources/Apps/Installs.js +1 -1
- package/esm/resources/Charges.d.ts +383 -0
- package/esm/resources/Checkout/Sessions.d.ts +82 -6
- package/esm/resources/ConfirmationTokens.d.ts +40 -1
- package/esm/resources/CustomerTaxExemptions.d.ts +28 -0
- package/esm/resources/Customers.d.ts +31 -1
- package/esm/resources/Disputes.d.ts +1 -1
- package/esm/resources/Invoices.d.ts +15 -3
- package/esm/resources/Issuing/Cards.d.ts +2 -2
- package/esm/resources/PaymentAttemptRecords.d.ts +140 -1
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +48 -0
- package/esm/resources/PaymentIntents.d.ts +532 -20
- package/esm/resources/PaymentLinks.d.ts +3 -3
- package/esm/resources/PaymentMethodConfigurations.d.ts +70 -0
- package/esm/resources/PaymentMethods.d.ts +66 -3
- package/esm/resources/PaymentRecords.d.ts +85 -1
- package/esm/resources/QuotePreviewInvoices.d.ts +1 -1
- package/esm/resources/Quotes.d.ts +2 -2
- package/esm/resources/Radar/PaymentEvaluations.d.ts +45 -4
- package/esm/resources/Refunds.d.ts +31 -1
- package/esm/resources/Reporting/ReportRuns.d.ts +4 -0
- package/esm/resources/SetupAttempts.d.ts +4 -0
- package/esm/resources/SetupIntents.d.ts +129 -15
- package/esm/resources/Subscriptions.d.ts +21 -5
- package/esm/resources/Tax/Certificates.d.ts +107 -0
- package/esm/resources/Tax/Certificates.js +31 -0
- package/esm/resources/Tax/Certificates.js.map +1 -0
- package/esm/resources/Tax/FormCorrections.d.ts +29 -0
- package/esm/resources/Tax/FormCorrections.js +3 -0
- package/esm/resources/Tax/FormCorrections.js.map +1 -0
- package/esm/resources/Tax/Forms.d.ts +376 -1
- package/esm/resources/Tax/Forms.js +6 -0
- package/esm/resources/Tax/Forms.js.map +1 -1
- package/esm/resources/Tax/index.d.ts +38 -25
- package/esm/resources/Tax/index.js +2 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +25 -1
- package/esm/resources/Treasury/InboundTransfers.d.ts +22 -0
- package/esm/resources/Treasury/OutboundPayments.d.ts +22 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +22 -0
- package/esm/resources/V2/Core/AccountSessions.d.ts +28 -0
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +34 -2
- package/esm/resources/V2/Core/Events.d.ts +85 -5
- package/esm/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
- package/esm/resources/V2/Extend/ObjectDefinitionVersions.js +3 -0
- package/esm/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
- package/esm/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
- package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js +19 -0
- package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
- package/esm/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
- package/esm/resources/V2/Extend/ObjectDefinitions.js +25 -0
- package/esm/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +16 -7
- package/esm/resources/V2/Extend/index.js +2 -0
- package/esm/resources/V2/Extend/index.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +34 -2
- package/esm/resources/V2/MoneyManagement/FundingIntents.d.ts +30 -2
- package/esm/resources/V2/MoneyManagement/FundingIntents.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +34 -2
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +32 -2
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +34 -2
- package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +30 -2
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +30 -2
- package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -1
- package/esm/resources.js +4 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.js +1 -1
- package/esm/stripe.esm.node.js +1 -1
- package/package.json +1 -1
|
@@ -326,12 +326,14 @@ export declare namespace Charge {
|
|
|
326
326
|
ach_credit_transfer?: PaymentMethodDetails.AchCreditTransfer;
|
|
327
327
|
ach_debit?: PaymentMethodDetails.AchDebit;
|
|
328
328
|
acss_debit?: PaymentMethodDetails.AcssDebit;
|
|
329
|
+
aeon_pay?: PaymentMethodDetails.AeonPay;
|
|
329
330
|
affirm?: PaymentMethodDetails.Affirm;
|
|
330
331
|
afterpay_clearpay?: PaymentMethodDetails.AfterpayClearpay;
|
|
331
332
|
alipay?: PaymentMethodDetails.Alipay;
|
|
332
333
|
alma?: PaymentMethodDetails.Alma;
|
|
333
334
|
amazon_pay?: PaymentMethodDetails.AmazonPay;
|
|
334
335
|
au_becs_debit?: PaymentMethodDetails.AuBecsDebit;
|
|
336
|
+
au_pay?: PaymentMethodDetails.AuPay;
|
|
335
337
|
bacs_debit?: PaymentMethodDetails.BacsDebit;
|
|
336
338
|
bancontact?: PaymentMethodDetails.Bancontact;
|
|
337
339
|
billie?: PaymentMethodDetails.Billie;
|
|
@@ -344,6 +346,7 @@ export declare namespace Charge {
|
|
|
344
346
|
cashapp?: PaymentMethodDetails.Cashapp;
|
|
345
347
|
crypto?: PaymentMethodDetails.Crypto;
|
|
346
348
|
customer_balance?: PaymentMethodDetails.CustomerBalance;
|
|
349
|
+
dbarai?: PaymentMethodDetails.Dbarai;
|
|
347
350
|
eps?: PaymentMethodDetails.Eps;
|
|
348
351
|
fpx?: PaymentMethodDetails.Fpx;
|
|
349
352
|
getflex?: PaymentMethodDetails.Getflex;
|
|
@@ -360,6 +363,7 @@ export declare namespace Charge {
|
|
|
360
363
|
kr_card?: PaymentMethodDetails.KrCard;
|
|
361
364
|
link?: PaymentMethodDetails.Link;
|
|
362
365
|
mb_way?: PaymentMethodDetails.MbWay;
|
|
366
|
+
merpay?: PaymentMethodDetails.Merpay;
|
|
363
367
|
mobilepay?: PaymentMethodDetails.Mobilepay;
|
|
364
368
|
multibanco?: PaymentMethodDetails.Multibanco;
|
|
365
369
|
naver_pay?: PaymentMethodDetails.NaverPay;
|
|
@@ -550,6 +554,8 @@ export declare namespace Charge {
|
|
|
550
554
|
*/
|
|
551
555
|
transit_number: string | null;
|
|
552
556
|
}
|
|
557
|
+
interface AeonPay {
|
|
558
|
+
}
|
|
553
559
|
interface Affirm {
|
|
554
560
|
/**
|
|
555
561
|
* ID of the location that this reader is assigned to.
|
|
@@ -624,6 +630,8 @@ export declare namespace Charge {
|
|
|
624
630
|
*/
|
|
625
631
|
mandate?: string;
|
|
626
632
|
}
|
|
633
|
+
interface AuPay {
|
|
634
|
+
}
|
|
627
635
|
interface BacsDebit {
|
|
628
636
|
/**
|
|
629
637
|
* Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
|
|
@@ -895,6 +903,7 @@ export declare namespace Charge {
|
|
|
895
903
|
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
|
896
904
|
*/
|
|
897
905
|
fingerprint: string | null;
|
|
906
|
+
fleet?: CardPresent.Fleet;
|
|
898
907
|
/**
|
|
899
908
|
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
900
909
|
*/
|
|
@@ -1014,6 +1023,8 @@ export declare namespace Charge {
|
|
|
1014
1023
|
}
|
|
1015
1024
|
interface CustomerBalance {
|
|
1016
1025
|
}
|
|
1026
|
+
interface Dbarai {
|
|
1027
|
+
}
|
|
1017
1028
|
interface Eps {
|
|
1018
1029
|
/**
|
|
1019
1030
|
* The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
|
|
@@ -1314,9 +1325,15 @@ export declare namespace Charge {
|
|
|
1314
1325
|
* The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time.
|
|
1315
1326
|
*/
|
|
1316
1327
|
funding_source_group?: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Details about the funding sources used for this Link payment.
|
|
1330
|
+
*/
|
|
1331
|
+
funding_sources?: Array<Link.FundingSource>;
|
|
1317
1332
|
}
|
|
1318
1333
|
interface MbWay {
|
|
1319
1334
|
}
|
|
1335
|
+
interface Merpay {
|
|
1336
|
+
}
|
|
1320
1337
|
interface Mobilepay {
|
|
1321
1338
|
/**
|
|
1322
1339
|
* Internal card details
|
|
@@ -1472,6 +1489,10 @@ export declare namespace Charge {
|
|
|
1472
1489
|
verified_name?: string | null;
|
|
1473
1490
|
}
|
|
1474
1491
|
interface Paypay {
|
|
1492
|
+
/**
|
|
1493
|
+
* Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
|
|
1494
|
+
*/
|
|
1495
|
+
fingerprint: string | null;
|
|
1475
1496
|
/**
|
|
1476
1497
|
* ID of the multi-use Mandate created by, or used to make, this PayPay payment.
|
|
1477
1498
|
*/
|
|
@@ -2041,6 +2062,10 @@ export declare namespace Charge {
|
|
|
2041
2062
|
* The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time.
|
|
2042
2063
|
*/
|
|
2043
2064
|
funding_source_group: string | null;
|
|
2065
|
+
/**
|
|
2066
|
+
* Details about the funding sources used for this Link payment.
|
|
2067
|
+
*/
|
|
2068
|
+
funding_sources?: Array<Link.FundingSource>;
|
|
2044
2069
|
}
|
|
2045
2070
|
interface Masterpass {
|
|
2046
2071
|
/**
|
|
@@ -2081,9 +2106,181 @@ export declare namespace Charge {
|
|
|
2081
2106
|
*/
|
|
2082
2107
|
shipping_address: Address | null;
|
|
2083
2108
|
}
|
|
2109
|
+
namespace Link {
|
|
2110
|
+
interface FundingSource {
|
|
2111
|
+
card: FundingSource.Card;
|
|
2112
|
+
/**
|
|
2113
|
+
* The type of funding source used for this Link payment.
|
|
2114
|
+
*/
|
|
2115
|
+
type: FundingSource.Type;
|
|
2116
|
+
}
|
|
2117
|
+
namespace FundingSource {
|
|
2118
|
+
interface Card {
|
|
2119
|
+
/**
|
|
2120
|
+
* The authorized amount.
|
|
2121
|
+
*/
|
|
2122
|
+
amount_authorized: number | null;
|
|
2123
|
+
/**
|
|
2124
|
+
* Authorization code on the charge.
|
|
2125
|
+
*/
|
|
2126
|
+
authorization_code: string | null;
|
|
2127
|
+
/**
|
|
2128
|
+
* Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
2129
|
+
*/
|
|
2130
|
+
brand: string | null;
|
|
2131
|
+
/**
|
|
2132
|
+
* Check results by Card networks on Card address and CVC at time of payment.
|
|
2133
|
+
*/
|
|
2134
|
+
checks: Card.Checks | null;
|
|
2135
|
+
/**
|
|
2136
|
+
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
2137
|
+
*/
|
|
2138
|
+
country: string | null;
|
|
2139
|
+
/**
|
|
2140
|
+
* 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.)
|
|
2141
|
+
*/
|
|
2142
|
+
description?: string | null;
|
|
2143
|
+
/**
|
|
2144
|
+
* The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift.
|
|
2145
|
+
*/
|
|
2146
|
+
electronic_commerce_indicator: string | null;
|
|
2147
|
+
/**
|
|
2148
|
+
* Two-digit number representing the card's expiration month.
|
|
2149
|
+
*/
|
|
2150
|
+
exp_month: number;
|
|
2151
|
+
/**
|
|
2152
|
+
* Four-digit number representing the card's expiration year.
|
|
2153
|
+
*/
|
|
2154
|
+
exp_year: number;
|
|
2155
|
+
/**
|
|
2156
|
+
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
|
2157
|
+
*
|
|
2158
|
+
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
|
2159
|
+
*/
|
|
2160
|
+
fingerprint?: string | null;
|
|
2161
|
+
/**
|
|
2162
|
+
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
2163
|
+
*/
|
|
2164
|
+
funding: string | null;
|
|
2165
|
+
/**
|
|
2166
|
+
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
2167
|
+
*/
|
|
2168
|
+
iin?: string | null;
|
|
2169
|
+
/**
|
|
2170
|
+
* The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
2171
|
+
*/
|
|
2172
|
+
issuer?: string | null;
|
|
2173
|
+
/**
|
|
2174
|
+
* The last four digits of the card.
|
|
2175
|
+
*/
|
|
2176
|
+
last4: string | null;
|
|
2177
|
+
/**
|
|
2178
|
+
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
2179
|
+
*/
|
|
2180
|
+
network: string | null;
|
|
2181
|
+
/**
|
|
2182
|
+
* If this card has network token credentials, this contains the details of the network token credentials.
|
|
2183
|
+
*/
|
|
2184
|
+
network_token?: Card.NetworkToken | null;
|
|
2185
|
+
/**
|
|
2186
|
+
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
|
2187
|
+
*/
|
|
2188
|
+
network_transaction_id: string | null;
|
|
2189
|
+
/**
|
|
2190
|
+
* Status of a card based on the card issuer.
|
|
2191
|
+
*/
|
|
2192
|
+
regulated_status: Card.RegulatedStatus | null;
|
|
2193
|
+
/**
|
|
2194
|
+
* Populated if this transaction used 3D Secure authentication.
|
|
2195
|
+
*/
|
|
2196
|
+
three_d_secure: Card.ThreeDSecure | null;
|
|
2197
|
+
/**
|
|
2198
|
+
* Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
|
2199
|
+
*/
|
|
2200
|
+
transaction_link_id: string | null;
|
|
2201
|
+
}
|
|
2202
|
+
type Type = 'card' | OtherString;
|
|
2203
|
+
namespace Card {
|
|
2204
|
+
interface Checks {
|
|
2205
|
+
/**
|
|
2206
|
+
* If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
2207
|
+
*/
|
|
2208
|
+
address_line1_check: string | null;
|
|
2209
|
+
/**
|
|
2210
|
+
* If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
2211
|
+
*/
|
|
2212
|
+
address_postal_code_check: string | null;
|
|
2213
|
+
/**
|
|
2214
|
+
* If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
2215
|
+
*/
|
|
2216
|
+
cvc_check: string | null;
|
|
2217
|
+
}
|
|
2218
|
+
interface NetworkToken {
|
|
2219
|
+
/**
|
|
2220
|
+
* Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
|
|
2221
|
+
*/
|
|
2222
|
+
used: boolean;
|
|
2223
|
+
}
|
|
2224
|
+
type RegulatedStatus = 'regulated' | 'unregulated' | OtherString;
|
|
2225
|
+
interface ThreeDSecure {
|
|
2226
|
+
/**
|
|
2227
|
+
* For authenticated transactions: how the customer was authenticated by
|
|
2228
|
+
* the issuing bank.
|
|
2229
|
+
*/
|
|
2230
|
+
authentication_flow: ThreeDSecure.AuthenticationFlow | null;
|
|
2231
|
+
/**
|
|
2232
|
+
* The Electronic Commerce Indicator (ECI). A protocol-level field
|
|
2233
|
+
* indicating what degree of authentication was performed.
|
|
2234
|
+
*/
|
|
2235
|
+
electronic_commerce_indicator: ThreeDSecure.ElectronicCommerceIndicator | null;
|
|
2236
|
+
/**
|
|
2237
|
+
* The exemption requested via 3DS and accepted by the issuer at authentication time.
|
|
2238
|
+
*/
|
|
2239
|
+
exemption_indicator: ThreeDSecure.ExemptionIndicator | null;
|
|
2240
|
+
/**
|
|
2241
|
+
* Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on
|
|
2242
|
+
* the outcome of Stripe's internal risk assessment.
|
|
2243
|
+
*/
|
|
2244
|
+
exemption_indicator_applied?: boolean;
|
|
2245
|
+
/**
|
|
2246
|
+
* Indicates the outcome of 3D Secure authentication.
|
|
2247
|
+
*/
|
|
2248
|
+
result: ThreeDSecure.Result | null;
|
|
2249
|
+
/**
|
|
2250
|
+
* Additional information about why 3D Secure succeeded or failed based
|
|
2251
|
+
* on the `result`.
|
|
2252
|
+
*/
|
|
2253
|
+
result_reason: ThreeDSecure.ResultReason | null;
|
|
2254
|
+
/**
|
|
2255
|
+
* The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
|
|
2256
|
+
* (dsTransId) for this payment.
|
|
2257
|
+
*/
|
|
2258
|
+
transaction_id: string | null;
|
|
2259
|
+
/**
|
|
2260
|
+
* The version of 3D Secure that was used.
|
|
2261
|
+
*/
|
|
2262
|
+
version: ThreeDSecure.Version | null;
|
|
2263
|
+
}
|
|
2264
|
+
namespace ThreeDSecure {
|
|
2265
|
+
type AuthenticationFlow = 'challenge' | 'frictionless' | OtherString;
|
|
2266
|
+
type ElectronicCommerceIndicator = '01' | '02' | '05' | '06' | '07' | OtherString;
|
|
2267
|
+
type ExemptionIndicator = 'low_risk' | 'none' | OtherString;
|
|
2268
|
+
type Result = 'attempt_acknowledged' | 'authenticated' | 'data_share_only' | 'exempted' | 'failed' | 'not_supported' | 'processing_error' | OtherString;
|
|
2269
|
+
type ResultReason = 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected' | OtherString;
|
|
2270
|
+
type Version = '1.0.2' | '2.1.0' | '2.2.0' | '2.3.0' | '2.3.1' | OtherString;
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2084
2275
|
}
|
|
2085
2276
|
}
|
|
2086
2277
|
namespace CardPresent {
|
|
2278
|
+
interface Fleet {
|
|
2279
|
+
/**
|
|
2280
|
+
* Fleet prompts and values collected for this transaction.
|
|
2281
|
+
*/
|
|
2282
|
+
transaction_data: Array<Fleet.TransactionDatum>;
|
|
2283
|
+
}
|
|
2087
2284
|
interface Multicapture {
|
|
2088
2285
|
/**
|
|
2089
2286
|
* Indicates whether or not multiple captures are supported.
|
|
@@ -2151,6 +2348,26 @@ export declare namespace Charge {
|
|
|
2151
2348
|
*/
|
|
2152
2349
|
type: Wallet.Type;
|
|
2153
2350
|
}
|
|
2351
|
+
namespace Fleet {
|
|
2352
|
+
interface TransactionDatum {
|
|
2353
|
+
/**
|
|
2354
|
+
* The prompt that the Terminal SDK displays to collect this Fleet value.
|
|
2355
|
+
*/
|
|
2356
|
+
prompt: TransactionDatum.Prompt;
|
|
2357
|
+
/**
|
|
2358
|
+
* Whether the collected value is printed on the receipt.
|
|
2359
|
+
*/
|
|
2360
|
+
receipt_behavior: TransactionDatum.ReceiptBehavior;
|
|
2361
|
+
/**
|
|
2362
|
+
* The value collected for this Fleet prompt.
|
|
2363
|
+
*/
|
|
2364
|
+
value: string;
|
|
2365
|
+
}
|
|
2366
|
+
namespace TransactionDatum {
|
|
2367
|
+
type Prompt = 'additional_fleet_data_1' | 'additional_fleet_data_2' | 'driver_id' | 'employee_number' | 'entered_data_alphanumeric' | 'entered_data_numeric' | 'generic_id' | 'invoice_number' | 'odometer' | 'postal_code' | 'reefer_hours' | 'replacement_car' | 'trailer_number' | 'trip_number' | 'unit_number' | 'vehicle_id' | 'vehicle_tag' | 'work_order';
|
|
2368
|
+
type ReceiptBehavior = 'omit' | 'print';
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2154
2371
|
namespace Multicapture {
|
|
2155
2372
|
type Status = 'available' | 'unavailable';
|
|
2156
2373
|
}
|
|
@@ -2269,6 +2486,172 @@ export declare namespace Charge {
|
|
|
2269
2486
|
namespace KrCard {
|
|
2270
2487
|
type Brand = 'bc' | 'citi' | 'hana' | 'hyundai' | 'jeju' | 'jeonbuk' | 'kakaobank' | 'kbank' | 'kdbbank' | 'kookmin' | 'kwangju' | 'lotte' | 'mg' | 'nh' | 'post' | 'samsung' | 'savingsbank' | 'shinhan' | 'shinhyup' | 'suhyup' | 'tossbank' | 'woori' | OtherString;
|
|
2271
2488
|
}
|
|
2489
|
+
namespace Link {
|
|
2490
|
+
interface FundingSource {
|
|
2491
|
+
card: FundingSource.Card;
|
|
2492
|
+
/**
|
|
2493
|
+
* The type of funding source used for this Link payment.
|
|
2494
|
+
*/
|
|
2495
|
+
type: FundingSource.Type;
|
|
2496
|
+
}
|
|
2497
|
+
namespace FundingSource {
|
|
2498
|
+
interface Card {
|
|
2499
|
+
/**
|
|
2500
|
+
* The authorized amount.
|
|
2501
|
+
*/
|
|
2502
|
+
amount_authorized: number | null;
|
|
2503
|
+
/**
|
|
2504
|
+
* Authorization code on the charge.
|
|
2505
|
+
*/
|
|
2506
|
+
authorization_code: string | null;
|
|
2507
|
+
/**
|
|
2508
|
+
* Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
2509
|
+
*/
|
|
2510
|
+
brand: string | null;
|
|
2511
|
+
/**
|
|
2512
|
+
* Check results by Card networks on Card address and CVC at time of payment.
|
|
2513
|
+
*/
|
|
2514
|
+
checks: Card.Checks | null;
|
|
2515
|
+
/**
|
|
2516
|
+
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
2517
|
+
*/
|
|
2518
|
+
country: string | null;
|
|
2519
|
+
/**
|
|
2520
|
+
* 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.)
|
|
2521
|
+
*/
|
|
2522
|
+
description?: string | null;
|
|
2523
|
+
/**
|
|
2524
|
+
* The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift.
|
|
2525
|
+
*/
|
|
2526
|
+
electronic_commerce_indicator: string | null;
|
|
2527
|
+
/**
|
|
2528
|
+
* Two-digit number representing the card's expiration month.
|
|
2529
|
+
*/
|
|
2530
|
+
exp_month: number;
|
|
2531
|
+
/**
|
|
2532
|
+
* Four-digit number representing the card's expiration year.
|
|
2533
|
+
*/
|
|
2534
|
+
exp_year: number;
|
|
2535
|
+
/**
|
|
2536
|
+
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
|
2537
|
+
*
|
|
2538
|
+
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
|
2539
|
+
*/
|
|
2540
|
+
fingerprint?: string | null;
|
|
2541
|
+
/**
|
|
2542
|
+
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
2543
|
+
*/
|
|
2544
|
+
funding: string | null;
|
|
2545
|
+
/**
|
|
2546
|
+
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
2547
|
+
*/
|
|
2548
|
+
iin?: string | null;
|
|
2549
|
+
/**
|
|
2550
|
+
* The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
2551
|
+
*/
|
|
2552
|
+
issuer?: string | null;
|
|
2553
|
+
/**
|
|
2554
|
+
* The last four digits of the card.
|
|
2555
|
+
*/
|
|
2556
|
+
last4: string | null;
|
|
2557
|
+
/**
|
|
2558
|
+
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
2559
|
+
*/
|
|
2560
|
+
network: string | null;
|
|
2561
|
+
/**
|
|
2562
|
+
* If this card has network token credentials, this contains the details of the network token credentials.
|
|
2563
|
+
*/
|
|
2564
|
+
network_token?: Card.NetworkToken | null;
|
|
2565
|
+
/**
|
|
2566
|
+
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
|
2567
|
+
*/
|
|
2568
|
+
network_transaction_id: string | null;
|
|
2569
|
+
/**
|
|
2570
|
+
* Status of a card based on the card issuer.
|
|
2571
|
+
*/
|
|
2572
|
+
regulated_status: Card.RegulatedStatus | null;
|
|
2573
|
+
/**
|
|
2574
|
+
* Populated if this transaction used 3D Secure authentication.
|
|
2575
|
+
*/
|
|
2576
|
+
three_d_secure: Card.ThreeDSecure | null;
|
|
2577
|
+
/**
|
|
2578
|
+
* Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
|
2579
|
+
*/
|
|
2580
|
+
transaction_link_id: string | null;
|
|
2581
|
+
}
|
|
2582
|
+
type Type = 'card' | OtherString;
|
|
2583
|
+
namespace Card {
|
|
2584
|
+
interface Checks {
|
|
2585
|
+
/**
|
|
2586
|
+
* If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
2587
|
+
*/
|
|
2588
|
+
address_line1_check: string | null;
|
|
2589
|
+
/**
|
|
2590
|
+
* If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
2591
|
+
*/
|
|
2592
|
+
address_postal_code_check: string | null;
|
|
2593
|
+
/**
|
|
2594
|
+
* If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
2595
|
+
*/
|
|
2596
|
+
cvc_check: string | null;
|
|
2597
|
+
}
|
|
2598
|
+
interface NetworkToken {
|
|
2599
|
+
/**
|
|
2600
|
+
* Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
|
|
2601
|
+
*/
|
|
2602
|
+
used: boolean;
|
|
2603
|
+
}
|
|
2604
|
+
type RegulatedStatus = 'regulated' | 'unregulated' | OtherString;
|
|
2605
|
+
interface ThreeDSecure {
|
|
2606
|
+
/**
|
|
2607
|
+
* For authenticated transactions: how the customer was authenticated by
|
|
2608
|
+
* the issuing bank.
|
|
2609
|
+
*/
|
|
2610
|
+
authentication_flow: ThreeDSecure.AuthenticationFlow | null;
|
|
2611
|
+
/**
|
|
2612
|
+
* The Electronic Commerce Indicator (ECI). A protocol-level field
|
|
2613
|
+
* indicating what degree of authentication was performed.
|
|
2614
|
+
*/
|
|
2615
|
+
electronic_commerce_indicator: ThreeDSecure.ElectronicCommerceIndicator | null;
|
|
2616
|
+
/**
|
|
2617
|
+
* The exemption requested via 3DS and accepted by the issuer at authentication time.
|
|
2618
|
+
*/
|
|
2619
|
+
exemption_indicator: ThreeDSecure.ExemptionIndicator | null;
|
|
2620
|
+
/**
|
|
2621
|
+
* Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on
|
|
2622
|
+
* the outcome of Stripe's internal risk assessment.
|
|
2623
|
+
*/
|
|
2624
|
+
exemption_indicator_applied?: boolean;
|
|
2625
|
+
/**
|
|
2626
|
+
* Indicates the outcome of 3D Secure authentication.
|
|
2627
|
+
*/
|
|
2628
|
+
result: ThreeDSecure.Result | null;
|
|
2629
|
+
/**
|
|
2630
|
+
* Additional information about why 3D Secure succeeded or failed based
|
|
2631
|
+
* on the `result`.
|
|
2632
|
+
*/
|
|
2633
|
+
result_reason: ThreeDSecure.ResultReason | null;
|
|
2634
|
+
/**
|
|
2635
|
+
* The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
|
|
2636
|
+
* (dsTransId) for this payment.
|
|
2637
|
+
*/
|
|
2638
|
+
transaction_id: string | null;
|
|
2639
|
+
/**
|
|
2640
|
+
* The version of 3D Secure that was used.
|
|
2641
|
+
*/
|
|
2642
|
+
version: ThreeDSecure.Version | null;
|
|
2643
|
+
}
|
|
2644
|
+
namespace ThreeDSecure {
|
|
2645
|
+
type AuthenticationFlow = 'challenge' | 'frictionless' | OtherString;
|
|
2646
|
+
type ElectronicCommerceIndicator = '01' | '02' | '05' | '06' | '07' | OtherString;
|
|
2647
|
+
type ExemptionIndicator = 'low_risk' | 'none' | OtherString;
|
|
2648
|
+
type Result = 'attempt_acknowledged' | 'authenticated' | 'data_share_only' | 'exempted' | 'failed' | 'not_supported' | 'processing_error' | OtherString;
|
|
2649
|
+
type ResultReason = 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected' | OtherString;
|
|
2650
|
+
type Version = '1.0.2' | '2.1.0' | '2.2.0' | '2.3.0' | '2.3.1' | OtherString;
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2272
2655
|
namespace Mobilepay {
|
|
2273
2656
|
interface Card {
|
|
2274
2657
|
/**
|