stripe 16.11.0-beta.1 → 16.11.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 (170) hide show
  1. package/CHANGELOG.md +124 -831
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +2 -2
  6. package/cjs/apiVersion.js +1 -2
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/InvoiceRenderingTemplates.js +25 -0
  10. package/cjs/resources/Invoices.js +0 -17
  11. package/cjs/resources/OAuth.js +1 -1
  12. package/cjs/resources/PaymentIntents.js +0 -4
  13. package/cjs/resources/Quotes.js +0 -32
  14. package/cjs/resources/SubscriptionSchedules.js +0 -4
  15. package/cjs/resources/Terminal/Readers.js +0 -12
  16. package/cjs/resources.js +12 -42
  17. package/cjs/stripe.core.js +3 -6
  18. package/cjs/utils.js +3 -30
  19. package/esm/RequestSender.js +6 -67
  20. package/esm/StripeResource.js +3 -3
  21. package/esm/apiVersion.js +0 -1
  22. package/esm/multipart.js +2 -2
  23. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  24. package/esm/resources/InvoiceRenderingTemplates.js +22 -0
  25. package/esm/resources/Invoices.js +0 -17
  26. package/esm/resources/OAuth.js +2 -2
  27. package/esm/resources/PaymentIntents.js +0 -4
  28. package/esm/resources/Quotes.js +0 -32
  29. package/esm/resources/SubscriptionSchedules.js +0 -4
  30. package/esm/resources/Terminal/Readers.js +0 -12
  31. package/esm/resources.js +1 -28
  32. package/esm/stripe.core.js +3 -6
  33. package/esm/utils.js +1 -27
  34. package/package.json +1 -1
  35. package/types/AccountLinksResource.d.ts +1 -5
  36. package/types/AccountSessions.d.ts +0 -45
  37. package/types/AccountSessionsResource.d.ts +0 -278
  38. package/types/Accounts.d.ts +1 -113
  39. package/types/AccountsResource.d.ts +0 -270
  40. package/types/Charges.d.ts +0 -71
  41. package/types/ChargesResource.d.ts +0 -1294
  42. package/types/Checkout/Sessions.d.ts +13 -296
  43. package/types/Checkout/SessionsResource.d.ts +14 -350
  44. package/types/ConfirmationTokens.d.ts +0 -67
  45. package/types/Coupons.d.ts +1 -1
  46. package/types/CouponsResource.d.ts +1 -1
  47. package/types/CreditNotes.d.ts +0 -21
  48. package/types/CreditNotesResource.d.ts +0 -51
  49. package/types/Customers.d.ts +5 -0
  50. package/types/CustomersResource.d.ts +10 -3
  51. package/types/Disputes.d.ts +0 -152
  52. package/types/DisputesResource.d.ts +0 -120
  53. package/types/EventTypes.d.ts +0 -477
  54. package/types/Events.d.ts +0 -86
  55. package/types/FinancialConnections/Accounts.d.ts +1 -29
  56. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  57. package/types/FinancialConnections/Sessions.d.ts +1 -49
  58. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  59. package/types/InvoiceItems.d.ts +0 -5
  60. package/types/InvoiceItemsResource.d.ts +0 -98
  61. package/types/InvoiceLineItems.d.ts +2 -24
  62. package/types/{Margins.d.ts → InvoiceRenderingTemplates.d.ts} +13 -15
  63. package/types/InvoiceRenderingTemplatesResource.d.ts +93 -0
  64. package/types/Invoices.d.ts +11 -117
  65. package/types/InvoicesResource.d.ts +1855 -5493
  66. package/types/Issuing/CardholdersResource.d.ts +1 -2
  67. package/types/Issuing/Cards.d.ts +2 -1
  68. package/types/LineItems.d.ts +0 -7
  69. package/types/Mandates.d.ts +0 -77
  70. package/types/PaymentIntents.d.ts +1 -503
  71. package/types/PaymentIntentsResource.d.ts +3464 -7064
  72. package/types/PaymentLinks.d.ts +6 -2
  73. package/types/PaymentLinksResource.d.ts +18 -4
  74. package/types/PaymentMethodConfigurations.d.ts +0 -36
  75. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  76. package/types/PaymentMethods.d.ts +0 -67
  77. package/types/PaymentMethodsResource.d.ts +0 -88
  78. package/types/Prices.d.ts +0 -22
  79. package/types/PricesResource.d.ts +0 -22
  80. package/types/Products.d.ts +0 -39
  81. package/types/ProductsResource.d.ts +0 -36
  82. package/types/Quotes.d.ts +1 -596
  83. package/types/QuotesResource.d.ts +200 -2532
  84. package/types/SetupAttempts.d.ts +0 -10
  85. package/types/SetupIntents.d.ts +1 -111
  86. package/types/SetupIntentsResource.d.ts +3 -522
  87. package/types/Sources.d.ts +0 -23
  88. package/types/SubscriptionItems.d.ts +0 -21
  89. package/types/SubscriptionItemsResource.d.ts +0 -109
  90. package/types/SubscriptionSchedules.d.ts +0 -200
  91. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  92. package/types/Subscriptions.d.ts +1 -82
  93. package/types/SubscriptionsResource.d.ts +8 -347
  94. package/types/Terminal/LocationsResource.d.ts +1 -1
  95. package/types/Terminal/Readers.d.ts +0 -278
  96. package/types/Terminal/ReadersResource.d.ts +0 -208
  97. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -63
  98. package/types/TestHelpers/TestClocks.d.ts +1 -1
  99. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  100. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  101. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  102. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  103. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  104. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  105. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  106. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  107. package/types/WebhookEndpointsResource.d.ts +0 -56
  108. package/types/index.d.ts +3 -71
  109. package/types/lib.d.ts +0 -12
  110. package/cjs/resources/AccountNotices.js +0 -21
  111. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  112. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  113. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  114. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  115. package/cjs/resources/GiftCards/Cards.js +0 -23
  116. package/cjs/resources/GiftCards/Transactions.js +0 -33
  117. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  118. package/cjs/resources/Margins.js +0 -22
  119. package/cjs/resources/Orders.js +0 -24
  120. package/cjs/resources/QuotePhases.js +0 -22
  121. package/cjs/resources/Tax/Associations.js +0 -9
  122. package/cjs/resources/Tax/Forms.js +0 -20
  123. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  124. package/esm/resources/AccountNotices.js +0 -18
  125. package/esm/resources/Capital/FinancingOffers.js +0 -18
  126. package/esm/resources/Capital/FinancingSummary.js +0 -9
  127. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  128. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  129. package/esm/resources/GiftCards/Cards.js +0 -20
  130. package/esm/resources/GiftCards/Transactions.js +0 -30
  131. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  132. package/esm/resources/Margins.js +0 -19
  133. package/esm/resources/Orders.js +0 -21
  134. package/esm/resources/QuotePhases.js +0 -19
  135. package/esm/resources/Tax/Associations.js +0 -6
  136. package/esm/resources/Tax/Forms.js +0 -17
  137. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  138. package/types/AccountNotices.d.ts +0 -113
  139. package/types/AccountNoticesResource.d.ts +0 -98
  140. package/types/Billing/MeterErrorReports.d.ts +0 -106
  141. package/types/Capital/FinancingOffers.d.ts +0 -188
  142. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  143. package/types/Capital/FinancingSummary.d.ts +0 -106
  144. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  145. package/types/Capital/FinancingTransactions.d.ts +0 -135
  146. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  147. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  148. package/types/FinancialConnections/Institutions.d.ts +0 -93
  149. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  150. package/types/GiftCards/Cards.d.ts +0 -118
  151. package/types/GiftCards/CardsResource.d.ts +0 -159
  152. package/types/GiftCards/Transactions.d.ts +0 -129
  153. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  154. package/types/InvoicePayments.d.ts +0 -138
  155. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  156. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  157. package/types/MarginsResource.d.ts +0 -114
  158. package/types/Orders.d.ts +0 -1084
  159. package/types/OrdersResource.d.ts +0 -2765
  160. package/types/QuoteLines.d.ts +0 -634
  161. package/types/QuotePhases.d.ts +0 -198
  162. package/types/QuotePhasesResource.d.ts +0 -67
  163. package/types/QuotePreviewInvoices.d.ts +0 -1532
  164. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  165. package/types/Tax/Associations.d.ts +0 -126
  166. package/types/Tax/AssociationsResource.d.ts +0 -29
  167. package/types/Tax/Forms.d.ts +0 -133
  168. package/types/Tax/FormsResource.d.ts +0 -90
  169. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  170. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -1,114 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- interface MarginCreateParams {
6
- /**
7
- * Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied.
8
- */
9
- percent_off: number;
10
-
11
- /**
12
- * Whether the margin can be applied to invoices, invoice items, or invoice line items or not. Defaults to `true`.
13
- */
14
- active?: boolean;
15
-
16
- /**
17
- * Specifies which fields in the response should be expanded.
18
- */
19
- expand?: Array<string>;
20
-
21
- /**
22
- * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
23
- */
24
- metadata?: Stripe.MetadataParam;
25
-
26
- /**
27
- * Name of the margin, which is displayed to customers, such as on invoices.
28
- */
29
- name?: string;
30
- }
31
-
32
- interface MarginRetrieveParams {
33
- /**
34
- * Specifies which fields in the response should be expanded.
35
- */
36
- expand?: Array<string>;
37
- }
38
-
39
- interface MarginUpdateParams {
40
- /**
41
- * Whether the margin can be applied to invoices, invoice items, or invoice line items or not.
42
- */
43
- active?: boolean;
44
-
45
- /**
46
- * Specifies which fields in the response should be expanded.
47
- */
48
- expand?: Array<string>;
49
-
50
- /**
51
- * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
52
- */
53
- metadata?: Stripe.MetadataParam;
54
-
55
- /**
56
- * Name of the margin, which is displayed to customers, such as on invoices.
57
- */
58
- name?: string;
59
- }
60
-
61
- interface MarginListParams extends PaginationParams {
62
- /**
63
- * Only return margins that are active or inactive. For example, pass `true` to only list active margins.
64
- */
65
- active?: boolean;
66
-
67
- /**
68
- * Specifies which fields in the response should be expanded.
69
- */
70
- expand?: Array<string>;
71
- }
72
-
73
- class MarginsResource {
74
- /**
75
- * Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount. A margin has a percent_off which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item.
76
- */
77
- create(
78
- params: MarginCreateParams,
79
- options?: RequestOptions
80
- ): Promise<Stripe.Response<Stripe.Margin>>;
81
-
82
- /**
83
- * Retrieve a margin object with the given ID.
84
- */
85
- retrieve(
86
- id: string,
87
- params?: MarginRetrieveParams,
88
- options?: RequestOptions
89
- ): Promise<Stripe.Response<Stripe.Margin>>;
90
- retrieve(
91
- id: string,
92
- options?: RequestOptions
93
- ): Promise<Stripe.Response<Stripe.Margin>>;
94
-
95
- /**
96
- * Update the specified margin object. Certain fields of the margin object are not editable.
97
- */
98
- update(
99
- id: string,
100
- params?: MarginUpdateParams,
101
- options?: RequestOptions
102
- ): Promise<Stripe.Response<Stripe.Margin>>;
103
-
104
- /**
105
- * Retrieve a list of your margins.
106
- */
107
- list(
108
- params?: MarginListParams,
109
- options?: RequestOptions
110
- ): ApiListPromise<Stripe.Margin>;
111
- list(options?: RequestOptions): ApiListPromise<Stripe.Margin>;
112
- }
113
- }
114
- }