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.
Files changed (153) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/StripeEventNotificationHandler.js +2 -0
  5. package/cjs/StripeEventNotificationHandler.js.map +1 -1
  6. package/cjs/WorkloadIdentity.js +1 -1
  7. package/cjs/resources/AccountSessions.d.ts +226 -0
  8. package/cjs/resources/Apps/Installs.d.ts +1 -1
  9. package/cjs/resources/Apps/Installs.js +1 -1
  10. package/cjs/resources/Charges.d.ts +383 -0
  11. package/cjs/resources/Checkout/Sessions.d.ts +82 -6
  12. package/cjs/resources/ConfirmationTokens.d.ts +40 -1
  13. package/cjs/resources/CustomerTaxExemptions.d.ts +28 -0
  14. package/cjs/resources/Customers.d.ts +31 -1
  15. package/cjs/resources/Disputes.d.ts +1 -1
  16. package/cjs/resources/Invoices.d.ts +15 -3
  17. package/cjs/resources/Issuing/Cards.d.ts +2 -2
  18. package/cjs/resources/PaymentAttemptRecords.d.ts +140 -1
  19. package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +48 -0
  20. package/cjs/resources/PaymentIntents.d.ts +532 -20
  21. package/cjs/resources/PaymentLinks.d.ts +3 -3
  22. package/cjs/resources/PaymentMethodConfigurations.d.ts +70 -0
  23. package/cjs/resources/PaymentMethods.d.ts +66 -3
  24. package/cjs/resources/PaymentRecords.d.ts +85 -1
  25. package/cjs/resources/QuotePreviewInvoices.d.ts +1 -1
  26. package/cjs/resources/Quotes.d.ts +2 -2
  27. package/cjs/resources/Radar/PaymentEvaluations.d.ts +45 -4
  28. package/cjs/resources/Refunds.d.ts +31 -1
  29. package/cjs/resources/Reporting/ReportRuns.d.ts +4 -0
  30. package/cjs/resources/SetupAttempts.d.ts +4 -0
  31. package/cjs/resources/SetupIntents.d.ts +129 -15
  32. package/cjs/resources/Subscriptions.d.ts +21 -5
  33. package/cjs/resources/Tax/Certificates.d.ts +107 -0
  34. package/cjs/resources/Tax/Certificates.js +35 -0
  35. package/cjs/resources/Tax/Certificates.js.map +1 -0
  36. package/cjs/resources/Tax/FormCorrections.d.ts +29 -0
  37. package/cjs/resources/Tax/FormCorrections.js +4 -0
  38. package/cjs/resources/Tax/FormCorrections.js.map +1 -0
  39. package/cjs/resources/Tax/Forms.d.ts +376 -1
  40. package/cjs/resources/Tax/Forms.js +6 -0
  41. package/cjs/resources/Tax/Forms.js.map +1 -1
  42. package/cjs/resources/Tax/index.d.ts +38 -25
  43. package/cjs/resources/Tax/index.js +2 -0
  44. package/cjs/resources/Tax/index.js.map +1 -1
  45. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +25 -1
  46. package/cjs/resources/Treasury/InboundTransfers.d.ts +22 -0
  47. package/cjs/resources/Treasury/OutboundPayments.d.ts +22 -0
  48. package/cjs/resources/Treasury/OutboundTransfers.d.ts +22 -0
  49. package/cjs/resources/V2/Core/AccountSessions.d.ts +28 -0
  50. package/cjs/resources/V2/Core/ApprovalRequests.d.ts +34 -2
  51. package/cjs/resources/V2/Core/Events.d.ts +85 -5
  52. package/cjs/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
  53. package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js +4 -0
  54. package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
  55. package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
  56. package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js +23 -0
  57. package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
  58. package/cjs/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
  59. package/cjs/resources/V2/Extend/ObjectDefinitions.js +29 -0
  60. package/cjs/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
  61. package/cjs/resources/V2/Extend/index.d.ts +16 -7
  62. package/cjs/resources/V2/Extend/index.js +2 -0
  63. package/cjs/resources/V2/Extend/index.js.map +1 -1
  64. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +34 -2
  65. package/cjs/resources/V2/MoneyManagement/FundingIntents.d.ts +30 -2
  66. package/cjs/resources/V2/MoneyManagement/FundingIntents.js.map +1 -1
  67. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +34 -2
  68. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +32 -2
  69. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
  70. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +34 -2
  71. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +30 -2
  72. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +30 -2
  73. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -1
  74. package/cjs/resources.js +4 -0
  75. package/cjs/resources.js.map +1 -1
  76. package/cjs/stripe.cjs.node.d.ts +459 -0
  77. package/cjs/stripe.cjs.node.js.map +1 -1
  78. package/cjs/stripe.core.js +1 -1
  79. package/esm/StripeEventNotificationHandler.js +2 -0
  80. package/esm/StripeEventNotificationHandler.js.map +1 -1
  81. package/esm/WorkloadIdentity.js +1 -1
  82. package/esm/resources/AccountSessions.d.ts +226 -0
  83. package/esm/resources/Apps/Installs.d.ts +1 -1
  84. package/esm/resources/Apps/Installs.js +1 -1
  85. package/esm/resources/Charges.d.ts +383 -0
  86. package/esm/resources/Checkout/Sessions.d.ts +82 -6
  87. package/esm/resources/ConfirmationTokens.d.ts +40 -1
  88. package/esm/resources/CustomerTaxExemptions.d.ts +28 -0
  89. package/esm/resources/Customers.d.ts +31 -1
  90. package/esm/resources/Disputes.d.ts +1 -1
  91. package/esm/resources/Invoices.d.ts +15 -3
  92. package/esm/resources/Issuing/Cards.d.ts +2 -2
  93. package/esm/resources/PaymentAttemptRecords.d.ts +140 -1
  94. package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +48 -0
  95. package/esm/resources/PaymentIntents.d.ts +532 -20
  96. package/esm/resources/PaymentLinks.d.ts +3 -3
  97. package/esm/resources/PaymentMethodConfigurations.d.ts +70 -0
  98. package/esm/resources/PaymentMethods.d.ts +66 -3
  99. package/esm/resources/PaymentRecords.d.ts +85 -1
  100. package/esm/resources/QuotePreviewInvoices.d.ts +1 -1
  101. package/esm/resources/Quotes.d.ts +2 -2
  102. package/esm/resources/Radar/PaymentEvaluations.d.ts +45 -4
  103. package/esm/resources/Refunds.d.ts +31 -1
  104. package/esm/resources/Reporting/ReportRuns.d.ts +4 -0
  105. package/esm/resources/SetupAttempts.d.ts +4 -0
  106. package/esm/resources/SetupIntents.d.ts +129 -15
  107. package/esm/resources/Subscriptions.d.ts +21 -5
  108. package/esm/resources/Tax/Certificates.d.ts +107 -0
  109. package/esm/resources/Tax/Certificates.js +31 -0
  110. package/esm/resources/Tax/Certificates.js.map +1 -0
  111. package/esm/resources/Tax/FormCorrections.d.ts +29 -0
  112. package/esm/resources/Tax/FormCorrections.js +3 -0
  113. package/esm/resources/Tax/FormCorrections.js.map +1 -0
  114. package/esm/resources/Tax/Forms.d.ts +376 -1
  115. package/esm/resources/Tax/Forms.js +6 -0
  116. package/esm/resources/Tax/Forms.js.map +1 -1
  117. package/esm/resources/Tax/index.d.ts +38 -25
  118. package/esm/resources/Tax/index.js +2 -0
  119. package/esm/resources/Tax/index.js.map +1 -1
  120. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +25 -1
  121. package/esm/resources/Treasury/InboundTransfers.d.ts +22 -0
  122. package/esm/resources/Treasury/OutboundPayments.d.ts +22 -0
  123. package/esm/resources/Treasury/OutboundTransfers.d.ts +22 -0
  124. package/esm/resources/V2/Core/AccountSessions.d.ts +28 -0
  125. package/esm/resources/V2/Core/ApprovalRequests.d.ts +34 -2
  126. package/esm/resources/V2/Core/Events.d.ts +85 -5
  127. package/esm/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
  128. package/esm/resources/V2/Extend/ObjectDefinitionVersions.js +3 -0
  129. package/esm/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
  130. package/esm/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
  131. package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js +19 -0
  132. package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
  133. package/esm/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
  134. package/esm/resources/V2/Extend/ObjectDefinitions.js +25 -0
  135. package/esm/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
  136. package/esm/resources/V2/Extend/index.d.ts +16 -7
  137. package/esm/resources/V2/Extend/index.js +2 -0
  138. package/esm/resources/V2/Extend/index.js.map +1 -1
  139. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +34 -2
  140. package/esm/resources/V2/MoneyManagement/FundingIntents.d.ts +30 -2
  141. package/esm/resources/V2/MoneyManagement/FundingIntents.js.map +1 -1
  142. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +34 -2
  143. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +32 -2
  144. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
  145. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +34 -2
  146. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +30 -2
  147. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +30 -2
  148. package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -1
  149. package/esm/resources.js +4 -0
  150. package/esm/resources.js.map +1 -1
  151. package/esm/stripe.core.js +1 -1
  152. package/esm/stripe.esm.node.js +1 -1
  153. package/package.json +1 -1
@@ -102,6 +102,10 @@ export interface PaymentAttemptRecord {
102
102
  * An arbitrary string attached to the object. Often useful for displaying to users.
103
103
  */
104
104
  description: string | null;
105
+ /**
106
+ * Summary information about disputes associated with this Payment Attempt Record.
107
+ */
108
+ dispute_details?: PaymentAttemptRecord.DisputeDetails | null;
105
109
  /**
106
110
  * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
107
111
  */
@@ -221,16 +225,32 @@ export declare namespace PaymentAttemptRecord {
221
225
  phone: string | null;
222
226
  }
223
227
  type CustomerPresence = 'off_session' | 'on_session' | OtherString;
228
+ interface DisputeDetails {
229
+ /**
230
+ * Total amounts reinstated across all disputes, keyed by currency, with each value containing the total for that currency. Withdrawals are not subtracted from these totals.
231
+ */
232
+ reinstated: {
233
+ [key: string]: DisputeDetails.Reinstated;
234
+ };
235
+ /**
236
+ * Total amounts withdrawn across all disputes, keyed by currency, with each value containing the total for that currency. Reinstatements are not subtracted from these totals.
237
+ */
238
+ withdrawn: {
239
+ [key: string]: DisputeDetails.Withdrawn;
240
+ };
241
+ }
224
242
  interface PaymentMethodDetails {
225
243
  ach_credit_transfer?: PaymentMethodDetails.AchCreditTransfer;
226
244
  ach_debit?: PaymentMethodDetails.AchDebit;
227
245
  acss_debit?: PaymentMethodDetails.AcssDebit;
246
+ aeon_pay?: PaymentMethodDetails.AeonPay;
228
247
  affirm?: PaymentMethodDetails.Affirm;
229
248
  afterpay_clearpay?: PaymentMethodDetails.AfterpayClearpay;
230
249
  alipay?: PaymentMethodDetails.Alipay;
231
250
  alma?: PaymentMethodDetails.Alma;
232
251
  amazon_pay?: PaymentMethodDetails.AmazonPay;
233
252
  au_becs_debit?: PaymentMethodDetails.AuBecsDebit;
253
+ au_pay?: PaymentMethodDetails.AuPay;
234
254
  bacs_debit?: PaymentMethodDetails.BacsDebit;
235
255
  bancontact?: PaymentMethodDetails.Bancontact;
236
256
  billie?: PaymentMethodDetails.Billie;
@@ -256,6 +276,7 @@ export declare namespace PaymentAttemptRecord {
256
276
  */
257
277
  custom?: PaymentMethodDetails.Custom;
258
278
  customer_balance?: PaymentMethodDetails.CustomerBalance;
279
+ dbarai?: PaymentMethodDetails.Dbarai;
259
280
  eps?: PaymentMethodDetails.Eps;
260
281
  fpx?: PaymentMethodDetails.Fpx;
261
282
  getflex?: PaymentMethodDetails.Getflex;
@@ -272,6 +293,7 @@ export declare namespace PaymentAttemptRecord {
272
293
  kr_card?: PaymentMethodDetails.KrCard;
273
294
  link?: PaymentMethodDetails.Link;
274
295
  mb_way?: PaymentMethodDetails.MbWay;
296
+ merpay?: PaymentMethodDetails.Merpay;
275
297
  mobilepay?: PaymentMethodDetails.Mobilepay;
276
298
  momo?: PaymentMethodDetails.Momo;
277
299
  multibanco?: PaymentMethodDetails.Multibanco;
@@ -362,6 +384,28 @@ export declare namespace PaymentAttemptRecord {
362
384
  */
363
385
  phone: string | null;
364
386
  }
387
+ namespace DisputeDetails {
388
+ interface Reinstated {
389
+ /**
390
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
391
+ */
392
+ currency: string;
393
+ /**
394
+ * A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
395
+ */
396
+ value: number;
397
+ }
398
+ interface Withdrawn {
399
+ /**
400
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
401
+ */
402
+ currency: string;
403
+ /**
404
+ * A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
405
+ */
406
+ value: number;
407
+ }
408
+ }
365
409
  namespace PaymentMethodDetails {
366
410
  interface AchCreditTransfer {
367
411
  /**
@@ -437,6 +481,8 @@ export declare namespace PaymentAttemptRecord {
437
481
  */
438
482
  transit_number: string | null;
439
483
  }
484
+ interface AeonPay {
485
+ }
440
486
  interface Affirm {
441
487
  /**
442
488
  * ID of the location that this reader is assigned to.
@@ -511,6 +557,8 @@ export declare namespace PaymentAttemptRecord {
511
557
  */
512
558
  mandate?: string;
513
559
  }
560
+ interface AuPay {
561
+ }
514
562
  interface BacsDebit {
515
563
  /**
516
564
  * Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
@@ -756,6 +804,7 @@ export declare namespace PaymentAttemptRecord {
756
804
  * *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.*
757
805
  */
758
806
  fingerprint: string | null;
807
+ fleet?: CardPresent.Fleet;
759
808
  /**
760
809
  * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
761
810
  */
@@ -885,6 +934,8 @@ export declare namespace PaymentAttemptRecord {
885
934
  }
886
935
  interface CustomerBalance {
887
936
  }
937
+ interface Dbarai {
938
+ }
888
939
  interface Eps {
889
940
  /**
890
941
  * 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`
@@ -1183,6 +1234,8 @@ export declare namespace PaymentAttemptRecord {
1183
1234
  }
1184
1235
  interface MbWay {
1185
1236
  }
1237
+ interface Merpay {
1238
+ }
1186
1239
  interface Mobilepay {
1187
1240
  /**
1188
1241
  * Internal card details
@@ -1346,6 +1399,10 @@ export declare namespace PaymentAttemptRecord {
1346
1399
  verified_name?: string | null;
1347
1400
  }
1348
1401
  interface Paypay {
1402
+ /**
1403
+ * Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
1404
+ */
1405
+ fingerprint?: string;
1349
1406
  /**
1350
1407
  * ID of the multi-use Mandate created by, or used to make, this PayPay payment.
1351
1408
  */
@@ -1816,6 +1873,12 @@ export declare namespace PaymentAttemptRecord {
1816
1873
  }
1817
1874
  }
1818
1875
  namespace CardPresent {
1876
+ interface Fleet {
1877
+ /**
1878
+ * Fleet prompts and values collected for this transaction.
1879
+ */
1880
+ transaction_data: Array<Fleet.TransactionDatum>;
1881
+ }
1819
1882
  interface Multicapture {
1820
1883
  /**
1821
1884
  * Indicates whether or not multiple captures are supported.
@@ -1883,6 +1946,26 @@ export declare namespace PaymentAttemptRecord {
1883
1946
  */
1884
1947
  type: Wallet.Type;
1885
1948
  }
1949
+ namespace Fleet {
1950
+ interface TransactionDatum {
1951
+ /**
1952
+ * The prompt that the Terminal SDK displays to collect this Fleet value.
1953
+ */
1954
+ prompt: TransactionDatum.Prompt;
1955
+ /**
1956
+ * Whether the collected value is printed on the receipt.
1957
+ */
1958
+ receipt_behavior: TransactionDatum.ReceiptBehavior;
1959
+ /**
1960
+ * The value collected for this Fleet prompt.
1961
+ */
1962
+ value: string;
1963
+ }
1964
+ namespace TransactionDatum {
1965
+ 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';
1966
+ type ReceiptBehavior = 'omit' | 'print';
1967
+ }
1968
+ }
1886
1969
  namespace Multicapture {
1887
1970
  type Status = 'available' | 'unavailable';
1888
1971
  }
@@ -2159,6 +2242,61 @@ export interface PaymentAttemptRecordReportAuthenticatedParams {
2159
2242
  * Set of [key-value pairs](https://docs.stripe.com/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`.
2160
2243
  */
2161
2244
  metadata?: Emptyable<MetadataParam>;
2245
+ /**
2246
+ * Information about the Payment Method debited for this payment.
2247
+ */
2248
+ payment_method_details?: PaymentAttemptRecordReportAuthenticatedParams.PaymentMethodDetails;
2249
+ }
2250
+ export declare namespace PaymentAttemptRecordReportAuthenticatedParams {
2251
+ interface PaymentMethodDetails {
2252
+ /**
2253
+ * Information about the card payment method used to make this payment.
2254
+ */
2255
+ card?: PaymentMethodDetails.Card;
2256
+ /**
2257
+ * The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.
2258
+ */
2259
+ type: 'card';
2260
+ }
2261
+ namespace PaymentMethodDetails {
2262
+ interface Card {
2263
+ /**
2264
+ * Populated if this transaction used 3D Secure authentication.
2265
+ */
2266
+ three_d_secure?: Card.ThreeDSecure;
2267
+ }
2268
+ namespace Card {
2269
+ interface ThreeDSecure {
2270
+ /**
2271
+ * For authenticated transactions: Indicates how the issuing bank authenticated the customer.
2272
+ */
2273
+ authentication_flow?: ThreeDSecure.AuthenticationFlow;
2274
+ /**
2275
+ * The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
2276
+ */
2277
+ electronic_commerce_indicator?: ThreeDSecure.ElectronicCommerceIndicator;
2278
+ /**
2279
+ * The exemption requested via 3DS and accepted by the issuer at authentication time.
2280
+ */
2281
+ exemption_indicator?: ThreeDSecure.ExemptionIndicator;
2282
+ /**
2283
+ * Indicates the outcome of 3D Secure authentication.
2284
+ */
2285
+ result: ThreeDSecure.Result;
2286
+ /**
2287
+ * The version of 3D Secure that was used.
2288
+ */
2289
+ version: ThreeDSecure.Version;
2290
+ }
2291
+ namespace ThreeDSecure {
2292
+ type AuthenticationFlow = 'challenge' | 'frictionless' | OtherString;
2293
+ type ElectronicCommerceIndicator = '01' | '02' | '05' | '06' | '07' | OtherString;
2294
+ type ExemptionIndicator = 'low_risk' | 'none' | OtherString;
2295
+ type Result = 'attempt_acknowledged' | 'authenticated' | 'exempted' | OtherString;
2296
+ type Version = '1.0.2' | '2.1.0' | '2.2.0' | '2.3.0' | '2.3.1' | OtherString;
2297
+ }
2298
+ }
2299
+ }
2162
2300
  }
2163
2301
  export interface PaymentAttemptRecordReportAuthorizedParams {
2164
2302
  /**
@@ -2435,7 +2573,7 @@ export declare namespace PaymentAttemptRecordReportGuaranteedParams {
2435
2573
  /**
2436
2574
  * The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.
2437
2575
  */
2438
- type: 'card';
2576
+ type: PaymentMethodDetails.Type;
2439
2577
  }
2440
2578
  interface ProcessorDetails {
2441
2579
  /**
@@ -2454,6 +2592,7 @@ export declare namespace PaymentAttemptRecordReportGuaranteedParams {
2454
2592
  */
2455
2593
  checks?: Card.Checks;
2456
2594
  }
2595
+ type Type = 'card' | 'us_bank_account' | OtherString;
2457
2596
  namespace Card {
2458
2597
  interface Checks {
2459
2598
  /**
@@ -76,6 +76,8 @@ export declare namespace PaymentIntentAmountDetailsLineItem {
76
76
  }
77
77
  interface CardPresent {
78
78
  commodity_code: string | null;
79
+ ev_charging?: CardPresent.EvCharging;
80
+ fleet_data?: CardPresent.FleetData;
79
81
  }
80
82
  interface Klarna {
81
83
  image_url: string | null;
@@ -143,6 +145,52 @@ export declare namespace PaymentIntentAmountDetailsLineItem {
143
145
  service_type?: string;
144
146
  }
145
147
  }
148
+ namespace CardPresent {
149
+ interface EvCharging {
150
+ /**
151
+ * The carbon footprint avoided by the charging session, in grams of CO2.
152
+ */
153
+ carbon_footprint_avoided_grams_co2?: number;
154
+ /**
155
+ * The time the charging session ended, measured in seconds since the Unix epoch.
156
+ */
157
+ charging_ended_at?: number;
158
+ /**
159
+ * The power output capacity of the charging station, in kilowatts (kW).
160
+ */
161
+ charging_power_output_capacity_kw?: number;
162
+ /**
163
+ * The time the charging session started, measured in seconds since the Unix epoch.
164
+ */
165
+ charging_started_at?: number;
166
+ /**
167
+ * The type of connector used for the charging session.
168
+ */
169
+ connector_type?: string;
170
+ /**
171
+ * The estimated distance in kilometers or miles added to the vehicle during the charging session.
172
+ */
173
+ estimated_range_added?: number;
174
+ /**
175
+ * The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
176
+ */
177
+ estimated_range_left?: number;
178
+ /**
179
+ * The maximum power dispensed during the charging session, in kilowatts (kW).
180
+ */
181
+ maximum_power_dispensed_kw?: number;
182
+ }
183
+ interface FleetData {
184
+ /**
185
+ * The type of product being purchased at this line item.
186
+ */
187
+ product_type?: string;
188
+ /**
189
+ * The type of service received at the acceptor location.
190
+ */
191
+ service_type?: string;
192
+ }
193
+ }
146
194
  namespace Paypal {
147
195
  type Category = 'digital_goods' | 'donation' | 'physical_goods' | OtherString;
148
196
  }