stripe 20.2.0-alpha.1 → 20.2.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.
Files changed (261) hide show
  1. package/CHANGELOG.md +45 -460
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +1 -9
  5. package/cjs/StripeEventNotificationHandler.js +118 -0
  6. package/cjs/resources/PaymentMethods.js +0 -4
  7. package/cjs/resources/Reserve/Holds.js +14 -0
  8. package/cjs/resources/{ProductCatalog/TrialOffers.js → Reserve/Plans.js} +3 -6
  9. package/cjs/resources/{SharedPayment/GrantedTokens.js → Reserve/Releases.js} +8 -3
  10. package/cjs/resources.js +11 -77
  11. package/cjs/stripe.core.js +5 -1
  12. package/esm/Error.js +0 -7
  13. package/esm/StripeEventNotificationHandler.js +114 -0
  14. package/esm/resources/PaymentMethods.js +0 -4
  15. package/esm/resources/Reserve/Holds.js +11 -0
  16. package/esm/resources/Reserve/Plans.js +6 -0
  17. package/esm/resources/Reserve/Releases.js +14 -0
  18. package/esm/resources.js +7 -72
  19. package/esm/stripe.core.js +5 -1
  20. package/package.json +1 -1
  21. package/types/AccountSessions.d.ts +0 -18
  22. package/types/AccountSessionsResource.d.ts +0 -21
  23. package/types/AccountsResource.d.ts +12 -136
  24. package/types/ApplicationFees.d.ts +1 -6
  25. package/types/Balance.d.ts +0 -82
  26. package/types/BalanceTransactions.d.ts +1 -2
  27. package/types/Billing/AlertTriggereds.d.ts +0 -15
  28. package/types/Billing/Alerts.d.ts +1 -116
  29. package/types/Billing/AlertsResource.d.ts +2 -149
  30. package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -5
  31. package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -7
  32. package/types/Billing/CreditBalanceSummary.d.ts +2 -118
  33. package/types/Billing/CreditBalanceSummaryResource.d.ts +0 -12
  34. package/types/Billing/CreditBalanceTransactions.d.ts +2 -118
  35. package/types/Billing/CreditGrants.d.ts +1 -71
  36. package/types/Billing/CreditGrantsResource.d.ts +1 -32
  37. package/types/Billing/MeterEventSummaries.d.ts +0 -7
  38. package/types/Billing/Meters.d.ts +0 -5
  39. package/types/Billing/MetersResource.d.ts +0 -17
  40. package/types/Cards.d.ts +0 -14
  41. package/types/Charges.d.ts +0 -14
  42. package/types/Checkout/Sessions.d.ts +0 -58
  43. package/types/Checkout/SessionsResource.d.ts +0 -78
  44. package/types/ConfirmationTokens.d.ts +0 -14
  45. package/types/Discounts.d.ts +0 -10
  46. package/types/Errors.d.ts +0 -6
  47. package/types/Identity/VerificationReports.d.ts +0 -10
  48. package/types/Identity/VerificationReportsResource.d.ts +0 -5
  49. package/types/InvoiceItems.d.ts +3 -118
  50. package/types/InvoiceLineItems.d.ts +8 -127
  51. package/types/Invoices.d.ts +0 -13
  52. package/types/InvoicesResource.d.ts +0 -201
  53. package/types/Issuing/Cards.d.ts +0 -10
  54. package/types/Issuing/CardsResource.d.ts +0 -33
  55. package/types/PaymentIntents.d.ts +1 -45
  56. package/types/PaymentIntentsResource.d.ts +5 -126
  57. package/types/PaymentLinksResource.d.ts +0 -14
  58. package/types/PaymentMethods.d.ts +0 -14
  59. package/types/PaymentMethodsResource.d.ts +0 -20
  60. package/types/Persons.d.ts +0 -28
  61. package/types/ProductsResource.d.ts +0 -24
  62. package/types/QuoteLines.d.ts +0 -17
  63. package/types/QuotePreviewInvoices.d.ts +0 -13
  64. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -126
  65. package/types/Quotes.d.ts +0 -282
  66. package/types/QuotesResource.d.ts +44 -662
  67. package/types/Reserve/Holds.d.ts +104 -0
  68. package/types/Reserve/HoldsResource.d.ts +76 -0
  69. package/types/Reserve/Plans.d.ts +103 -0
  70. package/types/{SharedPayment/GrantedTokensResource.d.ts → Reserve/PlansResource.d.ts} +7 -7
  71. package/types/Reserve/Releases.d.ts +105 -0
  72. package/types/Reserve/ReleasesResource.d.ts +60 -0
  73. package/types/SetupIntents.d.ts +0 -21
  74. package/types/SetupIntentsResource.d.ts +0 -90
  75. package/types/SubscriptionItems.d.ts +0 -13
  76. package/types/SubscriptionItemsResource.d.ts +0 -34
  77. package/types/SubscriptionSchedules.d.ts +0 -124
  78. package/types/SubscriptionSchedulesResource.d.ts +0 -238
  79. package/types/Subscriptions.d.ts +0 -22
  80. package/types/SubscriptionsResource.d.ts +0 -34
  81. package/types/TokensResource.d.ts +0 -68
  82. package/types/Transfers.d.ts +0 -4
  83. package/types/TransfersResource.d.ts +0 -2
  84. package/types/V2/Billing/Cadences.d.ts +0 -45
  85. package/types/V2/Billing/CadencesResource.d.ts +3 -32
  86. package/types/V2/Core/AccountTokensResource.d.ts +0 -245
  87. package/types/V2/Core/Accounts.d.ts +1 -1473
  88. package/types/V2/Core/AccountsResource.d.ts +0 -1644
  89. package/types/V2/Core/EventTypes.d.ts +702 -4551
  90. package/types/V2/Core/Events.d.ts +0 -61
  91. package/types/V2/Core/EventsResource.d.ts +1 -11
  92. package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -21
  93. package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -21
  94. package/types/V2/EventMisc.d.ts +37 -0
  95. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +1 -31
  96. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -7
  97. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +1 -4
  98. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -18
  99. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -8
  100. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -7
  101. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -12
  102. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -12
  103. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -34
  104. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -5
  105. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -5
  106. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -62
  107. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +1 -34
  108. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +1 -61
  109. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +1 -6
  110. package/types/WebhookEndpointsResource.d.ts +2 -1
  111. package/types/Webhooks.d.ts +0 -2
  112. package/types/index.d.ts +25 -122
  113. package/types/test/typescriptTest.ts +27 -0
  114. package/cjs/resources/BalanceTransfers.js +0 -9
  115. package/cjs/resources/DelegatedCheckout/RequestedSessions.js +0 -28
  116. package/cjs/resources/Identity/BlocklistEntries.js +0 -25
  117. package/cjs/resources/Issuing/Programs.js +0 -22
  118. package/cjs/resources/Radar/AccountEvaluations.js +0 -20
  119. package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +0 -16
  120. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -16
  121. package/cjs/resources/V2/Billing/CustomPricingUnits.js +0 -25
  122. package/cjs/resources/V2/Billing/Intents/Actions.js +0 -17
  123. package/cjs/resources/V2/Billing/Intents.js +0 -36
  124. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -12
  125. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +0 -17
  126. package/cjs/resources/V2/Billing/LicenseFees.js +0 -27
  127. package/cjs/resources/V2/Billing/LicensedItems.js +0 -25
  128. package/cjs/resources/V2/Billing/MeteredItems.js +0 -22
  129. package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -12
  130. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +0 -26
  131. package/cjs/resources/V2/Billing/PricingPlans/Components.js +0 -29
  132. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +0 -17
  133. package/cjs/resources/V2/Billing/PricingPlans.js +0 -29
  134. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +0 -29
  135. package/cjs/resources/V2/Billing/RateCards/Rates.js +0 -25
  136. package/cjs/resources/V2/Billing/RateCards/Versions.js +0 -17
  137. package/cjs/resources/V2/Billing/RateCards.js +0 -29
  138. package/cjs/resources/V2/Billing/ServiceActions.js +0 -20
  139. package/cjs/resources/V2/Core/ClaimableSandboxes.js +0 -16
  140. package/cjs/resources/V2/Iam/ApiKeys.js +0 -24
  141. package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +0 -21
  142. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +0 -20
  143. package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -29
  144. package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +0 -20
  145. package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +0 -33
  146. package/cjs/resources/V2/Reporting/ReportRuns.js +0 -13
  147. package/cjs/resources/V2/Reporting/Reports.js +0 -12
  148. package/cjs/resources/V2/Tax/ManualRules.js +0 -23
  149. package/cjs/resources/V2/TestHelpers/MoneyManagement.js +0 -12
  150. package/esm/resources/BalanceTransfers.js +0 -6
  151. package/esm/resources/DelegatedCheckout/RequestedSessions.js +0 -25
  152. package/esm/resources/Identity/BlocklistEntries.js +0 -22
  153. package/esm/resources/Issuing/Programs.js +0 -19
  154. package/esm/resources/ProductCatalog/TrialOffers.js +0 -9
  155. package/esm/resources/Radar/AccountEvaluations.js +0 -17
  156. package/esm/resources/SharedPayment/GrantedTokens.js +0 -9
  157. package/esm/resources/TestHelpers/Capital/FinancingOffers.js +0 -13
  158. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -13
  159. package/esm/resources/V2/Billing/CustomPricingUnits.js +0 -22
  160. package/esm/resources/V2/Billing/Intents/Actions.js +0 -14
  161. package/esm/resources/V2/Billing/Intents.js +0 -33
  162. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -9
  163. package/esm/resources/V2/Billing/LicenseFees/Versions.js +0 -14
  164. package/esm/resources/V2/Billing/LicenseFees.js +0 -24
  165. package/esm/resources/V2/Billing/LicensedItems.js +0 -22
  166. package/esm/resources/V2/Billing/MeteredItems.js +0 -19
  167. package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -9
  168. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +0 -23
  169. package/esm/resources/V2/Billing/PricingPlans/Components.js +0 -26
  170. package/esm/resources/V2/Billing/PricingPlans/Versions.js +0 -14
  171. package/esm/resources/V2/Billing/PricingPlans.js +0 -26
  172. package/esm/resources/V2/Billing/RateCardSubscriptions.js +0 -26
  173. package/esm/resources/V2/Billing/RateCards/Rates.js +0 -22
  174. package/esm/resources/V2/Billing/RateCards/Versions.js +0 -14
  175. package/esm/resources/V2/Billing/RateCards.js +0 -26
  176. package/esm/resources/V2/Billing/ServiceActions.js +0 -17
  177. package/esm/resources/V2/Core/ClaimableSandboxes.js +0 -13
  178. package/esm/resources/V2/Iam/ApiKeys.js +0 -21
  179. package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +0 -18
  180. package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +0 -17
  181. package/esm/resources/V2/Payments/OffSessionPayments.js +0 -26
  182. package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +0 -17
  183. package/esm/resources/V2/Payments/SettlementAllocationIntents.js +0 -30
  184. package/esm/resources/V2/Reporting/ReportRuns.js +0 -10
  185. package/esm/resources/V2/Reporting/Reports.js +0 -9
  186. package/esm/resources/V2/Tax/ManualRules.js +0 -20
  187. package/esm/resources/V2/TestHelpers/MoneyManagement.js +0 -9
  188. package/types/BalanceTransfers.d.ts +0 -122
  189. package/types/BalanceTransfersResource.d.ts +0 -87
  190. package/types/DelegatedCheckout/RequestedSessions.d.ts +0 -465
  191. package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +0 -701
  192. package/types/Identity/BlocklistEntries.d.ts +0 -78
  193. package/types/Identity/BlocklistEntriesResource.d.ts +0 -146
  194. package/types/Issuing/Programs.d.ts +0 -42
  195. package/types/Issuing/ProgramsResource.d.ts +0 -96
  196. package/types/PaymentMethodBalances.d.ts +0 -63
  197. package/types/ProductCatalog/TrialOffers.d.ts +0 -77
  198. package/types/ProductCatalog/TrialOffersResource.d.ts +0 -80
  199. package/types/Radar/AccountEvaluations.d.ts +0 -88
  200. package/types/Radar/AccountEvaluationsResource.d.ts +0 -148
  201. package/types/SharedPayment/GrantedTokens.d.ts +0 -102
  202. package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +0 -130
  203. package/types/TestHelpers/SharedPayment/GrantedTokensResource.d.ts +0 -87
  204. package/types/TransitBalances.d.ts +0 -40
  205. package/types/V2/Billing/CustomPricingUnits.d.ts +0 -56
  206. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +0 -122
  207. package/types/V2/Billing/IntentActions.d.ts +0 -564
  208. package/types/V2/Billing/Intents/ActionsResource.d.ts +0 -58
  209. package/types/V2/Billing/Intents.d.ts +0 -117
  210. package/types/V2/Billing/IntentsResource.d.ts +0 -674
  211. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +0 -64
  212. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +0 -28
  213. package/types/V2/Billing/LicenseFeeVersions.d.ts +0 -106
  214. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +0 -58
  215. package/types/V2/Billing/LicenseFees.d.ts +0 -164
  216. package/types/V2/Billing/LicenseFeesResource.d.ts +0 -290
  217. package/types/V2/Billing/LicensedItems.d.ts +0 -73
  218. package/types/V2/Billing/LicensedItemsResource.d.ts +0 -157
  219. package/types/V2/Billing/MeteredItems.d.ts +0 -101
  220. package/types/V2/Billing/MeteredItemsResource.d.ts +0 -189
  221. package/types/V2/Billing/PricingPlanComponents.d.ts +0 -109
  222. package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +0 -57
  223. package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +0 -40
  224. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +0 -144
  225. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +0 -120
  226. package/types/V2/Billing/PricingPlanVersions.d.ts +0 -49
  227. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +0 -197
  228. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +0 -58
  229. package/types/V2/Billing/PricingPlans.d.ts +0 -84
  230. package/types/V2/Billing/PricingPlansResource.d.ts +0 -151
  231. package/types/V2/Billing/RateCardRates.d.ts +0 -144
  232. package/types/V2/Billing/RateCardSubscriptions.d.ts +0 -144
  233. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +0 -157
  234. package/types/V2/Billing/RateCardVersions.d.ts +0 -39
  235. package/types/V2/Billing/RateCards/RatesResource.d.ts +0 -203
  236. package/types/V2/Billing/RateCards/VersionsResource.d.ts +0 -58
  237. package/types/V2/Billing/RateCards.d.ts +0 -98
  238. package/types/V2/Billing/RateCardsResource.d.ts +0 -162
  239. package/types/V2/Billing/ServiceActions.d.ts +0 -298
  240. package/types/V2/Billing/ServiceActionsResource.d.ts +0 -394
  241. package/types/V2/Core/ClaimableSandboxes.d.ts +0 -132
  242. package/types/V2/Core/ClaimableSandboxesResource.d.ts +0 -74
  243. package/types/V2/Iam/ApiKeys.d.ts +0 -154
  244. package/types/V2/Iam/ApiKeysResource.d.ts +0 -215
  245. package/types/V2/MoneyManagement/CurrencyConversions.d.ts +0 -98
  246. package/types/V2/MoneyManagement/CurrencyConversionsResource.d.ts +0 -141
  247. package/types/V2/MoneyManagement/RecipientVerifications.d.ts +0 -112
  248. package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +0 -77
  249. package/types/V2/Payments/OffSessionPayments.d.ts +0 -249
  250. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -306
  251. package/types/V2/Payments/SettlementAllocationIntentSplits.d.ts +0 -111
  252. package/types/V2/Payments/SettlementAllocationIntents/SplitsResource.d.ts +0 -126
  253. package/types/V2/Payments/SettlementAllocationIntents.d.ts +0 -122
  254. package/types/V2/Payments/SettlementAllocationIntentsResource.d.ts +0 -168
  255. package/types/V2/Reporting/ReportRuns.d.ts +0 -154
  256. package/types/V2/Reporting/ReportRunsResource.d.ts +0 -75
  257. package/types/V2/Reporting/Reports.d.ts +0 -120
  258. package/types/V2/Reporting/ReportsResource.d.ts +0 -30
  259. package/types/V2/Tax/ManualRules.d.ts +0 -142
  260. package/types/V2/Tax/ManualRulesResource.d.ts +0 -292
  261. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +0 -49
@@ -1,465 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- namespace DelegatedCheckout {
6
- /**
7
- * A requested session is a session that has been requested by a customer.
8
- */
9
- interface RequestedSession {
10
- /**
11
- * Unique identifier for the object.
12
- */
13
- id: string;
14
-
15
- /**
16
- * String representing the object's type. Objects of the same type share the same value.
17
- */
18
- object: 'delegated_checkout.requested_session';
19
-
20
- /**
21
- * The subtotal amount of the requested session.
22
- */
23
- amount_subtotal: number | null;
24
-
25
- /**
26
- * The total amount of the requested session.
27
- */
28
- amount_total: number | null;
29
-
30
- /**
31
- * Time at which the object was created. Measured in seconds since the Unix epoch.
32
- */
33
- created_at: number;
34
-
35
- /**
36
- * 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).
37
- */
38
- currency: string;
39
-
40
- /**
41
- * The customer for this requested session.
42
- */
43
- customer: string | null;
44
-
45
- /**
46
- * Time at which the requested session expires. Measured in seconds since the Unix epoch.
47
- */
48
- expires_at: number;
49
-
50
- /**
51
- * The details of the fulfillment.
52
- */
53
- fulfillment_details: RequestedSession.FulfillmentDetails | null;
54
-
55
- /**
56
- * The line items to be purchased.
57
- */
58
- line_item_details: Array<RequestedSession.LineItemDetail>;
59
-
60
- /**
61
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
62
- */
63
- livemode: boolean;
64
-
65
- /**
66
- * 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.
67
- */
68
- metadata: Stripe.Metadata | null;
69
-
70
- /**
71
- * The details of the order.
72
- */
73
- order_details: RequestedSession.OrderDetails | null;
74
-
75
- /**
76
- * The payment method used for the requested session.
77
- */
78
- payment_method: string | null;
79
-
80
- /**
81
- * The preview of the payment method to be created when the requested session is confirmed.
82
- */
83
- payment_method_preview: RequestedSession.PaymentMethodPreview | null;
84
-
85
- seller_details: RequestedSession.SellerDetails;
86
-
87
- /**
88
- * Whether or not the payment method should be saved for future use.
89
- */
90
- setup_future_usage: 'on_session' | null;
91
-
92
- /**
93
- * The metadata shared with the seller.
94
- */
95
- shared_metadata: {
96
- [key: string]: string;
97
- } | null;
98
-
99
- /**
100
- * The SPT used for payment.
101
- */
102
- shared_payment_issued_token: string | null;
103
-
104
- /**
105
- * The status of the requested session.
106
- */
107
- status: RequestedSession.Status;
108
-
109
- total_details: RequestedSession.TotalDetails;
110
-
111
- /**
112
- * Time at which the object was last updated. Measured in seconds since the Unix epoch.
113
- */
114
- updated_at: number;
115
- }
116
-
117
- namespace RequestedSession {
118
- interface FulfillmentDetails {
119
- /**
120
- * The fulfillment address.
121
- */
122
- address: Stripe.Address | null;
123
-
124
- /**
125
- * The email address for the fulfillment details.
126
- */
127
- email: string | null;
128
-
129
- /**
130
- * The fulfillment options.
131
- */
132
- fulfillment_options: Array<
133
- FulfillmentDetails.FulfillmentOption
134
- > | null;
135
-
136
- /**
137
- * The name for the fulfillment details.
138
- */
139
- name: string | null;
140
-
141
- /**
142
- * The phone number for the fulfillment details.
143
- */
144
- phone: string | null;
145
-
146
- /**
147
- * The fulfillment option.
148
- */
149
- selected_fulfillment_option: FulfillmentDetails.SelectedFulfillmentOption | null;
150
- }
151
-
152
- namespace FulfillmentDetails {
153
- interface FulfillmentOption {
154
- /**
155
- * The shipping option.
156
- */
157
- shipping: FulfillmentOption.Shipping | null;
158
-
159
- /**
160
- * The type of the fulfillment option.
161
- */
162
- type: string;
163
- }
164
-
165
- namespace FulfillmentOption {
166
- interface Shipping {
167
- /**
168
- * The shipping options.
169
- */
170
- shipping_options: Array<Shipping.ShippingOption> | null;
171
- }
172
-
173
- namespace Shipping {
174
- interface ShippingOption {
175
- /**
176
- * The description of the shipping option.
177
- */
178
- description: string | null;
179
-
180
- /**
181
- * The display name of the shipping option.
182
- */
183
- display_name: string;
184
-
185
- /**
186
- * The earliest delivery time of the shipping option.
187
- */
188
- earliest_delivery_time: number | null;
189
-
190
- /**
191
- * The key of the shipping option.
192
- */
193
- key: string;
194
-
195
- /**
196
- * The latest delivery time of the shipping option.
197
- */
198
- latest_delivery_time: number | null;
199
-
200
- /**
201
- * The shipping amount of the shipping option.
202
- */
203
- shipping_amount: number;
204
- }
205
- }
206
- }
207
-
208
- interface SelectedFulfillmentOption {
209
- /**
210
- * The shipping option.
211
- */
212
- shipping: SelectedFulfillmentOption.Shipping | null;
213
-
214
- /**
215
- * The type of the selected fulfillment option.
216
- */
217
- type: string;
218
- }
219
-
220
- namespace SelectedFulfillmentOption {
221
- interface Shipping {
222
- /**
223
- * The shipping option.
224
- */
225
- shipping_option: string | null;
226
- }
227
- }
228
- }
229
-
230
- interface LineItemDetail {
231
- /**
232
- * The total discount for this line item. If no discount were applied, defaults to 0.
233
- */
234
- amount_discount: number;
235
-
236
- /**
237
- * The total before any discounts or taxes are applied.
238
- */
239
- amount_subtotal: number;
240
-
241
- /**
242
- * The description of the line item.
243
- */
244
- description: string | null;
245
-
246
- /**
247
- * The images of the line item.
248
- */
249
- images: Array<string> | null;
250
-
251
- /**
252
- * The key of the line item.
253
- */
254
- key: string;
255
-
256
- /**
257
- * The name of the line item.
258
- */
259
- name: string;
260
-
261
- product_details?: LineItemDetail.ProductDetails;
262
-
263
- /**
264
- * The quantity of the line item.
265
- */
266
- quantity: number;
267
-
268
- /**
269
- * The SKU ID of the line item.
270
- */
271
- sku_id: string;
272
-
273
- /**
274
- * The per-unit amount of the item before any discounts or taxes are applied.
275
- */
276
- unit_amount: number;
277
- }
278
-
279
- namespace LineItemDetail {
280
- interface ProductDetails {
281
- /**
282
- * Custom attributes for the product.
283
- */
284
- custom_attributes: Array<ProductDetails.CustomAttribute> | null;
285
-
286
- /**
287
- * The description of the product.
288
- */
289
- description: string | null;
290
-
291
- /**
292
- * Disclosures for the product.
293
- */
294
- disclosures: Array<ProductDetails.Disclosure> | null;
295
-
296
- /**
297
- * The images of the product.
298
- */
299
- images: Array<string> | null;
300
-
301
- /**
302
- * The title of the product.
303
- */
304
- title: string;
305
- }
306
-
307
- namespace ProductDetails {
308
- interface CustomAttribute {
309
- /**
310
- * The display name of the custom attribute.
311
- */
312
- display_name: string;
313
-
314
- /**
315
- * The value of the custom attribute.
316
- */
317
- value: string;
318
- }
319
-
320
- interface Disclosure {
321
- /**
322
- * The content of the disclosure.
323
- */
324
- content: string;
325
-
326
- /**
327
- * The content type of the disclosure.
328
- */
329
- content_type: Disclosure.ContentType;
330
-
331
- /**
332
- * The type of disclosure.
333
- */
334
- type: 'disclaimer';
335
- }
336
-
337
- namespace Disclosure {
338
- type ContentType = 'link' | 'markdown' | 'plain';
339
- }
340
- }
341
- }
342
-
343
- interface OrderDetails {
344
- /**
345
- * The seller's order identifier.
346
- */
347
- order_id: string | null;
348
-
349
- /**
350
- * The URL to the order status.
351
- */
352
- order_status_url: string | null;
353
- }
354
-
355
- interface PaymentMethodPreview {
356
- /**
357
- * The billing details of the payment method.
358
- */
359
- billing_details: PaymentMethodPreview.BillingDetails | null;
360
-
361
- /**
362
- * The card details of the payment method.
363
- */
364
- card: PaymentMethodPreview.Card | null;
365
-
366
- /**
367
- * The type of the payment method.
368
- */
369
- type: string;
370
- }
371
-
372
- namespace PaymentMethodPreview {
373
- interface BillingDetails {
374
- /**
375
- * The billing address.
376
- */
377
- address: Stripe.Address | null;
378
-
379
- /**
380
- * The email address for the billing details.
381
- */
382
- email: string | null;
383
-
384
- /**
385
- * The name for the billing details.
386
- */
387
- name: string | null;
388
-
389
- /**
390
- * The phone number for the billing details.
391
- */
392
- phone: string | null;
393
- }
394
-
395
- interface Card {
396
- /**
397
- * The expiry month of the card.
398
- */
399
- exp_month: number;
400
-
401
- /**
402
- * The expiry year of the card.
403
- */
404
- exp_year: number;
405
-
406
- /**
407
- * The last 4 digits of the card number.
408
- */
409
- last4: string;
410
- }
411
- }
412
-
413
- interface SellerDetails {}
414
-
415
- type Status = 'completed' | 'expired' | 'open';
416
-
417
- interface TotalDetails {
418
- /**
419
- * The amount of order-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
420
- */
421
- amount_cart_discount: number | null;
422
-
423
- /**
424
- * The amount fulfillment of the total details.
425
- */
426
- amount_fulfillment: number | null;
427
-
428
- /**
429
- * The amount of item-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
430
- */
431
- amount_items_discount: number | null;
432
-
433
- /**
434
- * The amount tax of the total details.
435
- */
436
- amount_tax: number | null;
437
-
438
- /**
439
- * The applicable fees of the total details.
440
- */
441
- applicable_fees: Array<TotalDetails.ApplicableFee> | null;
442
- }
443
-
444
- namespace TotalDetails {
445
- interface ApplicableFee {
446
- /**
447
- * The amount of the applicable fee.
448
- */
449
- amount: number;
450
-
451
- /**
452
- * The description of the applicable fee.
453
- */
454
- description: string | null;
455
-
456
- /**
457
- * The display name of the applicable fee.
458
- */
459
- display_name: string;
460
- }
461
- }
462
- }
463
- }
464
- }
465
- }