stripe 17.8.0-beta.1 → 18.0.0

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 (208) hide show
  1. package/CHANGELOG.md +246 -1075
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  7. package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
  8. package/cjs/resources/Invoices.js +0 -26
  9. package/cjs/resources/PaymentIntents.js +0 -8
  10. package/cjs/resources/Quotes.js +0 -32
  11. package/cjs/resources/SubscriptionItems.js +0 -9
  12. package/cjs/resources/SubscriptionSchedules.js +0 -4
  13. package/cjs/resources/Terminal/Readers.js +0 -12
  14. package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
  15. package/cjs/resources.js +12 -48
  16. package/cjs/stripe.core.js +3 -14
  17. package/esm/apiVersion.js +1 -1
  18. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  19. package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
  20. package/esm/resources/Invoices.js +0 -26
  21. package/esm/resources/PaymentIntents.js +0 -8
  22. package/esm/resources/Quotes.js +0 -32
  23. package/esm/resources/SubscriptionItems.js +0 -9
  24. package/esm/resources/SubscriptionSchedules.js +0 -4
  25. package/esm/resources/Terminal/Readers.js +0 -12
  26. package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
  27. package/esm/resources.js +1 -33
  28. package/esm/stripe.core.js +3 -14
  29. package/package.json +1 -1
  30. package/types/AccountLinksResource.d.ts +1 -5
  31. package/types/AccountSessions.d.ts +0 -45
  32. package/types/AccountSessionsResource.d.ts +0 -243
  33. package/types/Accounts.d.ts +48 -211
  34. package/types/AccountsResource.d.ts +86 -503
  35. package/types/ApplicationFees.d.ts +1 -1
  36. package/types/BalanceTransactions.d.ts +3 -1
  37. package/types/BalanceTransactionsResource.d.ts +1 -1
  38. package/types/BankAccounts.d.ts +9 -1
  39. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  40. package/types/Billing/CreditGrants.d.ts +2 -2
  41. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  42. package/types/Billing/Meters.d.ts +1 -1
  43. package/types/Billing/MetersResource.d.ts +2 -2
  44. package/types/Capabilities.d.ts +8 -0
  45. package/types/Cards.d.ts +1 -9
  46. package/types/Charges.d.ts +56 -153
  47. package/types/ChargesResource.d.ts +1 -1295
  48. package/types/Checkout/Sessions.d.ts +62 -336
  49. package/types/Checkout/SessionsResource.d.ts +69 -287
  50. package/types/ConfirmationTokens.d.ts +50 -99
  51. package/types/Coupons.d.ts +1 -1
  52. package/types/CouponsResource.d.ts +1 -1
  53. package/types/CreditNoteLineItems.d.ts +24 -22
  54. package/types/CreditNotes.d.ts +26 -23
  55. package/types/CreditNotesResource.d.ts +0 -15
  56. package/types/CustomerBalanceTransactions.d.ts +8 -1
  57. package/types/Customers.d.ts +3 -3
  58. package/types/CustomersResource.d.ts +3 -21
  59. package/types/EventTypes.d.ts +85 -545
  60. package/types/Events.d.ts +8 -93
  61. package/types/FinancialConnections/Accounts.d.ts +1 -29
  62. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  63. package/types/FinancialConnections/Sessions.d.ts +1 -49
  64. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  65. package/types/InvoiceItems.d.ts +60 -31
  66. package/types/InvoiceItemsResource.d.ts +26 -120
  67. package/types/InvoiceLineItems.d.ts +154 -91
  68. package/types/InvoicePayments.d.ts +2 -16
  69. package/types/InvoicePaymentsResource.d.ts +74 -0
  70. package/types/Invoices.d.ts +93 -214
  71. package/types/InvoicesResource.d.ts +307 -6599
  72. package/types/Issuing/Authorizations.d.ts +1 -1
  73. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  74. package/types/Issuing/CardholdersResource.d.ts +1 -2
  75. package/types/Issuing/Transactions.d.ts +0 -2
  76. package/types/Issuing/TransactionsResource.d.ts +0 -5
  77. package/types/LineItems.d.ts +0 -32
  78. package/types/Mandates.d.ts +8 -77
  79. package/types/PaymentIntents.d.ts +56 -648
  80. package/types/PaymentIntentsResource.d.ts +4120 -8122
  81. package/types/PaymentLinks.d.ts +49 -6
  82. package/types/PaymentLinksResource.d.ts +77 -12
  83. package/types/PaymentMethodConfigurations.d.ts +63 -135
  84. package/types/PaymentMethodConfigurationsResource.d.ts +116 -216
  85. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  86. package/types/PaymentMethods.d.ts +50 -99
  87. package/types/PaymentMethodsResource.d.ts +53 -148
  88. package/types/Persons.d.ts +17 -9
  89. package/types/Plans.d.ts +0 -7
  90. package/types/PlansResource.d.ts +0 -7
  91. package/types/Prices.d.ts +0 -33
  92. package/types/PricesResource.d.ts +2 -35
  93. package/types/Products.d.ts +0 -39
  94. package/types/ProductsResource.d.ts +0 -36
  95. package/types/Quotes.d.ts +1 -591
  96. package/types/QuotesResource.d.ts +200 -2532
  97. package/types/Refunds.d.ts +18 -14
  98. package/types/Reviews.d.ts +3 -2
  99. package/types/SetupAttempts.d.ts +15 -38
  100. package/types/SetupIntents.d.ts +3 -111
  101. package/types/SetupIntentsResource.d.ts +155 -642
  102. package/types/Sources.d.ts +0 -29
  103. package/types/SubscriptionItems.d.ts +9 -34
  104. package/types/SubscriptionItemsResource.d.ts +2 -203
  105. package/types/SubscriptionSchedules.d.ts +0 -251
  106. package/types/SubscriptionSchedulesResource.d.ts +9 -1333
  107. package/types/Subscriptions.d.ts +4 -124
  108. package/types/SubscriptionsResource.d.ts +10 -455
  109. package/types/Tax/RegistrationsResource.d.ts +1 -1
  110. package/types/Terminal/Configurations.d.ts +86 -3
  111. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  112. package/types/Terminal/Readers.d.ts +0 -290
  113. package/types/Terminal/ReadersResource.d.ts +0 -215
  114. package/types/TestHelpers/ConfirmationTokensResource.d.ts +50 -103
  115. package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
  116. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  117. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  118. package/types/TokensResource.d.ts +6 -1
  119. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  120. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  121. package/types/Treasury/FinancialAccountsResource.d.ts +1 -38
  122. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  123. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  124. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  125. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  126. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  127. package/types/V2/Core/EventsResource.d.ts +0 -5
  128. package/types/V2/EventDestinations.d.ts +1 -1
  129. package/types/V2/Events.d.ts +1 -1
  130. package/types/WebhookEndpointsResource.d.ts +19 -71
  131. package/types/index.d.ts +2 -64
  132. package/types/lib.d.ts +1 -1
  133. package/types/test/typescriptTest.ts +3 -6
  134. package/cjs/resources/AccountNotices.js +0 -21
  135. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  136. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  137. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  138. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  139. package/cjs/resources/GiftCards/Cards.js +0 -23
  140. package/cjs/resources/GiftCards/Transactions.js +0 -33
  141. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  142. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  143. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  144. package/cjs/resources/Margins.js +0 -22
  145. package/cjs/resources/Orders.js +0 -24
  146. package/cjs/resources/PaymentRecords.js +0 -29
  147. package/cjs/resources/Tax/Associations.js +0 -9
  148. package/cjs/resources/Tax/Forms.js +0 -20
  149. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  150. package/esm/resources/AccountNotices.js +0 -18
  151. package/esm/resources/Capital/FinancingOffers.js +0 -18
  152. package/esm/resources/Capital/FinancingSummary.js +0 -9
  153. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  154. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  155. package/esm/resources/GiftCards/Cards.js +0 -20
  156. package/esm/resources/GiftCards/Transactions.js +0 -30
  157. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  158. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  159. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  160. package/esm/resources/Margins.js +0 -19
  161. package/esm/resources/Orders.js +0 -21
  162. package/esm/resources/PaymentRecords.js +0 -26
  163. package/esm/resources/Tax/Associations.js +0 -6
  164. package/esm/resources/Tax/Forms.js +0 -17
  165. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  166. package/types/AccountNotices.d.ts +0 -113
  167. package/types/AccountNoticesResource.d.ts +0 -98
  168. package/types/Billing/MeterErrorReports.d.ts +0 -106
  169. package/types/Capital/FinancingOffers.d.ts +0 -188
  170. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  171. package/types/Capital/FinancingSummary.d.ts +0 -106
  172. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  173. package/types/Capital/FinancingTransactions.d.ts +0 -135
  174. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  175. package/types/Deprecations.d.ts +0 -215
  176. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  177. package/types/FinancialConnections/Institutions.d.ts +0 -93
  178. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  179. package/types/GiftCards/Cards.d.ts +0 -118
  180. package/types/GiftCards/CardsResource.d.ts +0 -159
  181. package/types/GiftCards/Transactions.d.ts +0 -129
  182. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  183. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  184. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  185. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  186. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  187. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  188. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  189. package/types/Issuing/Settlements.d.ts +0 -103
  190. package/types/Margins.d.ts +0 -56
  191. package/types/MarginsResource.d.ts +0 -114
  192. package/types/Orders.d.ts +0 -1189
  193. package/types/OrdersResource.d.ts +0 -2981
  194. package/types/PaymentAttemptRecords.d.ts +0 -242
  195. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  196. package/types/PaymentRecords.d.ts +0 -242
  197. package/types/PaymentRecordsResource.d.ts +0 -455
  198. package/types/QuoteLines.d.ts +0 -634
  199. package/types/QuotePreviewInvoices.d.ts +0 -1658
  200. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  201. package/types/Tax/Associations.d.ts +0 -126
  202. package/types/Tax/AssociationsResource.d.ts +0 -29
  203. package/types/Tax/Forms.d.ts +0 -220
  204. package/types/Tax/FormsResource.d.ts +0 -107
  205. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  206. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
  207. package/types/UsageRecordSummaries.d.ts +0 -56
  208. package/types/UsageRecords.d.ts +0 -45
@@ -1603,7 +1603,7 @@ declare module 'stripe' {
1603
1603
  namespace Us {
1604
1604
  interface LocalAmusementTax {
1605
1605
  /**
1606
- * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), and `68081` (Schiller Park).
1606
+ * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `64343` (River Grove), and `68081` (Schiller Park).
1607
1607
  */
1608
1608
  jurisdiction: string;
1609
1609
  }
@@ -48,12 +48,14 @@ declare module 'stripe' {
48
48
  tipping?: Configuration.Tipping;
49
49
 
50
50
  verifone_p400?: Configuration.VerifoneP400;
51
+
52
+ wifi?: Configuration.Wifi;
51
53
  }
52
54
 
53
55
  namespace Configuration {
54
56
  interface BbposWiseposE {
55
57
  /**
56
- * A File ID representing an image you would like displayed on the reader.
58
+ * A File ID representing an image to display on the reader
57
59
  */
58
60
  splashscreen?: string | Stripe.File;
59
61
  }
@@ -79,7 +81,7 @@ declare module 'stripe' {
79
81
 
80
82
  interface StripeS700 {
81
83
  /**
82
- * A File ID representing an image you would like displayed on the reader.
84
+ * A File ID representing an image to display on the reader
83
85
  */
84
86
  splashscreen?: string | Stripe.File;
85
87
  }
@@ -394,10 +396,91 @@ declare module 'stripe' {
394
396
 
395
397
  interface VerifoneP400 {
396
398
  /**
397
- * A File ID representing an image you would like displayed on the reader.
399
+ * A File ID representing an image to display on the reader
398
400
  */
399
401
  splashscreen?: string | Stripe.File;
400
402
  }
403
+
404
+ interface Wifi {
405
+ enterprise_eap_peap?: Wifi.EnterpriseEapPeap;
406
+
407
+ enterprise_eap_tls?: Wifi.EnterpriseEapTls;
408
+
409
+ personal_psk?: Wifi.PersonalPsk;
410
+
411
+ /**
412
+ * Security type of the WiFi network. The hash with the corresponding name contains the credentials for this security type.
413
+ */
414
+ type: Wifi.Type;
415
+ }
416
+
417
+ namespace Wifi {
418
+ interface EnterpriseEapPeap {
419
+ /**
420
+ * A File ID representing a PEM file containing the server certificate
421
+ */
422
+ ca_certificate_file?: string;
423
+
424
+ /**
425
+ * Password for connecting to the WiFi network
426
+ */
427
+ password: string;
428
+
429
+ /**
430
+ * Name of the WiFi network
431
+ */
432
+ ssid: string;
433
+
434
+ /**
435
+ * Username for connecting to the WiFi network
436
+ */
437
+ username: string;
438
+ }
439
+
440
+ interface EnterpriseEapTls {
441
+ /**
442
+ * A File ID representing a PEM file containing the server certificate
443
+ */
444
+ ca_certificate_file?: string;
445
+
446
+ /**
447
+ * A File ID representing a PEM file containing the client certificate
448
+ */
449
+ client_certificate_file: string;
450
+
451
+ /**
452
+ * A File ID representing a PEM file containing the client RSA private key
453
+ */
454
+ private_key_file: string;
455
+
456
+ /**
457
+ * Password for the private key file
458
+ */
459
+ private_key_file_password?: string;
460
+
461
+ /**
462
+ * Name of the WiFi network
463
+ */
464
+ ssid: string;
465
+ }
466
+
467
+ interface PersonalPsk {
468
+ /**
469
+ * Password for connecting to the WiFi network
470
+ */
471
+ password: string;
472
+
473
+ /**
474
+ * Name of the WiFi network
475
+ */
476
+ ssid: string;
477
+ }
478
+
479
+ type Type =
480
+ | 'enterprise_eap_peap'
481
+ | 'enterprise_eap_tls'
482
+ | 'personal_psk';
483
+ }
401
484
  }
402
485
 
403
486
  /**
@@ -43,12 +43,17 @@ declare module 'stripe' {
43
43
  * An object containing device type specific settings for Verifone P400 readers
44
44
  */
45
45
  verifone_p400?: ConfigurationCreateParams.VerifoneP400;
46
+
47
+ /**
48
+ * Configurations for connecting to a WiFi network.
49
+ */
50
+ wifi?: Stripe.Emptyable<ConfigurationCreateParams.Wifi>;
46
51
  }
47
52
 
48
53
  namespace ConfigurationCreateParams {
49
54
  interface BbposWiseposE {
50
55
  /**
51
- * A File ID representing an image you would like displayed on the reader.
56
+ * A File ID representing an image to display on the reader
52
57
  */
53
58
  splashscreen?: Stripe.Emptyable<string>;
54
59
  }
@@ -441,6 +446,96 @@ declare module 'stripe' {
441
446
  */
442
447
  splashscreen?: Stripe.Emptyable<string>;
443
448
  }
449
+
450
+ interface Wifi {
451
+ /**
452
+ * Credentials for a WPA-Enterprise WiFi network using the EAP-PEAP authentication method.
453
+ */
454
+ enterprise_eap_peap?: Wifi.EnterpriseEapPeap;
455
+
456
+ /**
457
+ * Credentials for a WPA-Enterprise WiFi network using the EAP-TLS authentication method.
458
+ */
459
+ enterprise_eap_tls?: Wifi.EnterpriseEapTls;
460
+
461
+ /**
462
+ * Credentials for a WPA-Personal WiFi network.
463
+ */
464
+ personal_psk?: Wifi.PersonalPsk;
465
+
466
+ /**
467
+ * Security type of the WiFi network. Fill out the hash with the corresponding name to provide the set of credentials for this security type.
468
+ */
469
+ type: Wifi.Type;
470
+ }
471
+
472
+ namespace Wifi {
473
+ interface EnterpriseEapPeap {
474
+ /**
475
+ * A File ID representing a PEM file containing the server certificate
476
+ */
477
+ ca_certificate_file?: string;
478
+
479
+ /**
480
+ * Password for connecting to the WiFi network
481
+ */
482
+ password: string;
483
+
484
+ /**
485
+ * Name of the WiFi network
486
+ */
487
+ ssid: string;
488
+
489
+ /**
490
+ * Username for connecting to the WiFi network
491
+ */
492
+ username: string;
493
+ }
494
+
495
+ interface EnterpriseEapTls {
496
+ /**
497
+ * A File ID representing a PEM file containing the server certificate
498
+ */
499
+ ca_certificate_file?: string;
500
+
501
+ /**
502
+ * A File ID representing a PEM file containing the client certificate
503
+ */
504
+ client_certificate_file: string;
505
+
506
+ /**
507
+ * A File ID representing a PEM file containing the client RSA private key
508
+ */
509
+ private_key_file: string;
510
+
511
+ /**
512
+ * Password for the private key file
513
+ */
514
+ private_key_file_password?: string;
515
+
516
+ /**
517
+ * Name of the WiFi network
518
+ */
519
+ ssid: string;
520
+ }
521
+
522
+ interface PersonalPsk {
523
+ /**
524
+ * Password for connecting to the WiFi network
525
+ */
526
+ password: string;
527
+
528
+ /**
529
+ * Name of the WiFi network
530
+ */
531
+ ssid: string;
532
+ }
533
+
534
+ type Type =
535
+ | 'enterprise_eap_peap'
536
+ | 'enterprise_eap_tls'
537
+ | 'personal_psk';
538
+ }
444
539
  }
445
540
 
446
541
  interface ConfigurationRetrieveParams {
@@ -496,12 +591,17 @@ declare module 'stripe' {
496
591
  verifone_p400?: Stripe.Emptyable<
497
592
  ConfigurationUpdateParams.VerifoneP400
498
593
  >;
594
+
595
+ /**
596
+ * Configurations for connecting to a WiFi network.
597
+ */
598
+ wifi?: Stripe.Emptyable<ConfigurationUpdateParams.Wifi>;
499
599
  }
500
600
 
501
601
  namespace ConfigurationUpdateParams {
502
602
  interface BbposWiseposE {
503
603
  /**
504
- * A File ID representing an image you would like displayed on the reader.
604
+ * A File ID representing an image to display on the reader
505
605
  */
506
606
  splashscreen?: Stripe.Emptyable<string>;
507
607
  }
@@ -894,6 +994,96 @@ declare module 'stripe' {
894
994
  */
895
995
  splashscreen?: Stripe.Emptyable<string>;
896
996
  }
997
+
998
+ interface Wifi {
999
+ /**
1000
+ * Credentials for a WPA-Enterprise WiFi network using the EAP-PEAP authentication method.
1001
+ */
1002
+ enterprise_eap_peap?: Wifi.EnterpriseEapPeap;
1003
+
1004
+ /**
1005
+ * Credentials for a WPA-Enterprise WiFi network using the EAP-TLS authentication method.
1006
+ */
1007
+ enterprise_eap_tls?: Wifi.EnterpriseEapTls;
1008
+
1009
+ /**
1010
+ * Credentials for a WPA-Personal WiFi network.
1011
+ */
1012
+ personal_psk?: Wifi.PersonalPsk;
1013
+
1014
+ /**
1015
+ * Security type of the WiFi network. Fill out the hash with the corresponding name to provide the set of credentials for this security type.
1016
+ */
1017
+ type: Wifi.Type;
1018
+ }
1019
+
1020
+ namespace Wifi {
1021
+ interface EnterpriseEapPeap {
1022
+ /**
1023
+ * A File ID representing a PEM file containing the server certificate
1024
+ */
1025
+ ca_certificate_file?: string;
1026
+
1027
+ /**
1028
+ * Password for connecting to the WiFi network
1029
+ */
1030
+ password: string;
1031
+
1032
+ /**
1033
+ * Name of the WiFi network
1034
+ */
1035
+ ssid: string;
1036
+
1037
+ /**
1038
+ * Username for connecting to the WiFi network
1039
+ */
1040
+ username: string;
1041
+ }
1042
+
1043
+ interface EnterpriseEapTls {
1044
+ /**
1045
+ * A File ID representing a PEM file containing the server certificate
1046
+ */
1047
+ ca_certificate_file?: string;
1048
+
1049
+ /**
1050
+ * A File ID representing a PEM file containing the client certificate
1051
+ */
1052
+ client_certificate_file: string;
1053
+
1054
+ /**
1055
+ * A File ID representing a PEM file containing the client RSA private key
1056
+ */
1057
+ private_key_file: string;
1058
+
1059
+ /**
1060
+ * Password for the private key file
1061
+ */
1062
+ private_key_file_password?: string;
1063
+
1064
+ /**
1065
+ * Name of the WiFi network
1066
+ */
1067
+ ssid: string;
1068
+ }
1069
+
1070
+ interface PersonalPsk {
1071
+ /**
1072
+ * Password for connecting to the WiFi network
1073
+ */
1074
+ password: string;
1075
+
1076
+ /**
1077
+ * Name of the WiFi network
1078
+ */
1079
+ ssid: string;
1080
+ }
1081
+
1082
+ type Type =
1083
+ | 'enterprise_eap_peap'
1084
+ | 'enterprise_eap_tls'
1085
+ | 'personal_psk';
1086
+ }
897
1087
  }
898
1088
 
899
1089
  interface ConfigurationListParams extends PaginationParams {
@@ -97,21 +97,6 @@ declare module 'stripe' {
97
97
 
98
98
  namespace Reader {
99
99
  interface Action {
100
- /**
101
- * Represents a reader action to collect customer inputs
102
- */
103
- collect_inputs?: Action.CollectInputs;
104
-
105
- /**
106
- * Represents a reader action to collect a payment method
107
- */
108
- collect_payment_method?: Action.CollectPaymentMethod;
109
-
110
- /**
111
- * Represents a reader action to confirm a payment
112
- */
113
- confirm_payment_intent?: Action.ConfirmPaymentIntent;
114
-
115
100
  /**
116
101
  * Failure code, only set if status is `failed`.
117
102
  */
@@ -154,274 +139,7 @@ declare module 'stripe' {
154
139
  }
155
140
 
156
141
  namespace Action {
157
- interface CollectInputs {
158
- /**
159
- * List of inputs to be collected.
160
- */
161
- inputs: Array<CollectInputs.Input>;
162
-
163
- /**
164
- * 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.
165
- */
166
- metadata: Stripe.Metadata | null;
167
- }
168
-
169
- namespace CollectInputs {
170
- interface Input {
171
- /**
172
- * Default text of input being collected.
173
- */
174
- custom_text: Input.CustomText | null;
175
-
176
- /**
177
- * Information about a email being collected using a reader
178
- */
179
- email?: Input.Email;
180
-
181
- /**
182
- * Information about a number being collected using a reader
183
- */
184
- numeric?: Input.Numeric;
185
-
186
- /**
187
- * Information about a phone number being collected using a reader
188
- */
189
- phone?: Input.Phone;
190
-
191
- /**
192
- * Indicate that this input is required, disabling the skip button.
193
- */
194
- required: boolean | null;
195
-
196
- /**
197
- * Information about a selection being collected using a reader
198
- */
199
- selection?: Input.Selection;
200
-
201
- /**
202
- * Information about a signature being collected using a reader
203
- */
204
- signature?: Input.Signature;
205
-
206
- /**
207
- * Indicate that this input was skipped by the user.
208
- */
209
- skipped?: boolean;
210
-
211
- /**
212
- * Information about text being collected using a reader
213
- */
214
- text?: Input.Text;
215
-
216
- /**
217
- * List of toggles being collected. Values are present if collection is complete.
218
- */
219
- toggles: Array<Input.Toggle> | null;
220
-
221
- /**
222
- * Type of input being collected.
223
- */
224
- type: Input.Type;
225
- }
226
-
227
- namespace Input {
228
- interface CustomText {
229
- /**
230
- * Customize the default description for this input
231
- */
232
- description: string | null;
233
-
234
- /**
235
- * Customize the default label for this input's skip button
236
- */
237
- skip_button: string | null;
238
-
239
- /**
240
- * Customize the default label for this input's submit button
241
- */
242
- submit_button: string | null;
243
-
244
- /**
245
- * Customize the default title for this input
246
- */
247
- title: string | null;
248
- }
249
-
250
- interface Email {
251
- /**
252
- * The collected email address
253
- */
254
- value: string | null;
255
- }
256
-
257
- interface Numeric {
258
- /**
259
- * The collected number
260
- */
261
- value: string | null;
262
- }
263
-
264
- interface Phone {
265
- /**
266
- * The collected phone number
267
- */
268
- value: string | null;
269
- }
270
-
271
- interface Selection {
272
- /**
273
- * List of possible choices to be selected
274
- */
275
- choices: Array<Selection.Choice>;
276
-
277
- /**
278
- * The value of the selected choice
279
- */
280
- value: string | null;
281
- }
282
-
283
- namespace Selection {
284
- interface Choice {
285
- /**
286
- * The button style for the choice
287
- */
288
- style: Choice.Style | null;
289
-
290
- /**
291
- * A value to be selected
292
- */
293
- value: string;
294
- }
295
-
296
- namespace Choice {
297
- type Style = 'primary' | 'secondary';
298
- }
299
- }
300
-
301
- interface Signature {
302
- /**
303
- * The File ID of a collected signature image
304
- */
305
- value: string | null;
306
- }
307
-
308
- interface Text {
309
- /**
310
- * The collected text value
311
- */
312
- value: string | null;
313
- }
314
-
315
- interface Toggle {
316
- /**
317
- * The toggle's default value
318
- */
319
- default_value: Toggle.DefaultValue | null;
320
-
321
- /**
322
- * The toggle's description text
323
- */
324
- description: string | null;
325
-
326
- /**
327
- * The toggle's title text
328
- */
329
- title: string | null;
330
-
331
- /**
332
- * The toggle's collected value
333
- */
334
- value: Toggle.Value | null;
335
- }
336
-
337
- namespace Toggle {
338
- type DefaultValue = 'disabled' | 'enabled';
339
-
340
- type Value = 'disabled' | 'enabled';
341
- }
342
-
343
- type Type =
344
- | 'email'
345
- | 'numeric'
346
- | 'phone'
347
- | 'selection'
348
- | 'signature'
349
- | 'text';
350
- }
351
- }
352
-
353
- interface CollectPaymentMethod {
354
- /**
355
- * Account the payment intent belongs to.
356
- */
357
- account?: string;
358
-
359
- /**
360
- * Represents a per-transaction override of a reader configuration
361
- */
362
- collect_config?: CollectPaymentMethod.CollectConfig;
363
-
364
- /**
365
- * Most recent PaymentIntent processed by the reader.
366
- */
367
- payment_intent: string | Stripe.PaymentIntent;
368
-
369
- /**
370
- * PaymentMethod objects represent your customer's payment instruments.
371
- * You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
372
- * Customer objects to store instrument details for future payments.
373
- *
374
- * Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
375
- */
376
- payment_method?: Stripe.PaymentMethod;
377
- }
378
-
379
- namespace CollectPaymentMethod {
380
- interface CollectConfig {
381
- /**
382
- * Enable customer initiated cancellation when processing this payment.
383
- */
384
- enable_customer_cancellation?: boolean;
385
-
386
- /**
387
- * Override showing a tipping selection screen on this transaction.
388
- */
389
- skip_tipping?: boolean;
390
-
391
- /**
392
- * Represents a per-transaction tipping configuration
393
- */
394
- tipping?: CollectConfig.Tipping;
395
- }
396
-
397
- namespace CollectConfig {
398
- interface Tipping {
399
- /**
400
- * Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
401
- */
402
- amount_eligible?: number;
403
- }
404
- }
405
- }
406
-
407
- interface ConfirmPaymentIntent {
408
- /**
409
- * Account the payment intent belongs to.
410
- */
411
- account?: string;
412
-
413
- /**
414
- * Most recent PaymentIntent processed by the reader.
415
- */
416
- payment_intent: string | Stripe.PaymentIntent;
417
- }
418
-
419
142
  interface ProcessPaymentIntent {
420
- /**
421
- * Account the payment intent belongs to.
422
- */
423
- account?: string;
424
-
425
143
  /**
426
144
  * Most recent PaymentIntent processed by the reader.
427
145
  */
@@ -488,11 +206,6 @@ declare module 'stripe' {
488
206
  }
489
207
 
490
208
  interface RefundPayment {
491
- /**
492
- * Account the payment intent belongs to.
493
- */
494
- account?: string;
495
-
496
209
  /**
497
210
  * The amount being refunded.
498
211
  */
@@ -608,9 +321,6 @@ declare module 'stripe' {
608
321
  type Status = 'failed' | 'in_progress' | 'succeeded';
609
322
 
610
323
  type Type =
611
- | 'collect_inputs'
612
- | 'collect_payment_method'
613
- | 'confirm_payment_intent'
614
324
  | 'process_payment_intent'
615
325
  | 'process_setup_intent'
616
326
  | 'refund_payment'