stripe 16.4.0-beta.1 → 16.4.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 (151) hide show
  1. package/CHANGELOG.md +130 -767
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +1 -1
  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/Invoices.js +0 -13
  10. package/cjs/resources/OAuth.js +1 -1
  11. package/cjs/resources/PaymentIntents.js +0 -4
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Terminal/Readers.js +0 -12
  15. package/cjs/resources.js +10 -38
  16. package/cjs/stripe.core.js +3 -6
  17. package/cjs/utils.js +3 -30
  18. package/esm/RequestSender.js +6 -67
  19. package/esm/StripeResource.js +2 -2
  20. package/esm/apiVersion.js +0 -1
  21. package/esm/multipart.js +2 -2
  22. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  23. package/esm/resources/Invoices.js +0 -13
  24. package/esm/resources/OAuth.js +2 -2
  25. package/esm/resources/PaymentIntents.js +0 -4
  26. package/esm/resources/Quotes.js +0 -32
  27. package/esm/resources/SubscriptionSchedules.js +0 -4
  28. package/esm/resources/Terminal/Readers.js +0 -12
  29. package/esm/resources.js +0 -24
  30. package/esm/stripe.core.js +3 -6
  31. package/esm/utils.js +1 -27
  32. package/package.json +1 -1
  33. package/types/AccountLinksResource.d.ts +1 -5
  34. package/types/AccountSessions.d.ts +0 -15
  35. package/types/AccountSessionsResource.d.ts +0 -205
  36. package/types/Accounts.d.ts +1 -88
  37. package/types/AccountsResource.d.ts +0 -204
  38. package/types/Charges.d.ts +0 -67
  39. package/types/ChargesResource.d.ts +0 -1294
  40. package/types/Checkout/Sessions.d.ts +1 -28
  41. package/types/Checkout/SessionsResource.d.ts +1 -15
  42. package/types/ConfirmationTokens.d.ts +5 -62
  43. package/types/Coupons.d.ts +1 -1
  44. package/types/CouponsResource.d.ts +1 -1
  45. package/types/CreditNotes.d.ts +0 -21
  46. package/types/CreditNotesResource.d.ts +0 -51
  47. package/types/CustomersResource.d.ts +0 -2
  48. package/types/Disputes.d.ts +0 -168
  49. package/types/DisputesResource.d.ts +3 -120
  50. package/types/EventTypes.d.ts +17 -426
  51. package/types/Events.d.ts +1 -83
  52. package/types/EventsResource.d.ts +1 -1
  53. package/types/FinancialConnections/Accounts.d.ts +1 -29
  54. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  55. package/types/FinancialConnections/Sessions.d.ts +1 -49
  56. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  57. package/types/Identity/VerificationReports.d.ts +1 -1
  58. package/types/InvoiceItems.d.ts +0 -5
  59. package/types/InvoiceItemsResource.d.ts +0 -98
  60. package/types/InvoiceLineItems.d.ts +0 -22
  61. package/types/Invoices.d.ts +2 -116
  62. package/types/InvoicesResource.d.ts +1784 -5359
  63. package/types/Issuing/CardholdersResource.d.ts +1 -2
  64. package/types/LineItems.d.ts +0 -7
  65. package/types/Mandates.d.ts +0 -77
  66. package/types/PaymentIntents.d.ts +1 -469
  67. package/types/PaymentIntentsResource.d.ts +3377 -6725
  68. package/types/PaymentMethodDomains.d.ts +1 -1
  69. package/types/PaymentMethods.d.ts +0 -62
  70. package/types/PaymentMethodsResource.d.ts +0 -110
  71. package/types/Prices.d.ts +0 -22
  72. package/types/PricesResource.d.ts +0 -22
  73. package/types/Products.d.ts +0 -39
  74. package/types/ProductsResource.d.ts +0 -36
  75. package/types/Quotes.d.ts +1 -578
  76. package/types/QuotesResource.d.ts +266 -3175
  77. package/types/SetupAttempts.d.ts +0 -9
  78. package/types/SetupIntents.d.ts +1 -110
  79. package/types/SetupIntentsResource.d.ts +3 -498
  80. package/types/Sources.d.ts +0 -23
  81. package/types/SubscriptionItems.d.ts +0 -21
  82. package/types/SubscriptionItemsResource.d.ts +0 -109
  83. package/types/SubscriptionSchedules.d.ts +0 -164
  84. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  85. package/types/Subscriptions.d.ts +3 -47
  86. package/types/SubscriptionsResource.d.ts +6 -349
  87. package/types/Terminal/Readers.d.ts +2 -279
  88. package/types/Terminal/ReadersResource.d.ts +1 -208
  89. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  90. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  91. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  92. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  93. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  94. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  95. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  96. package/types/WebhookEndpointsResource.d.ts +2 -50
  97. package/types/index.d.ts +0 -64
  98. package/types/lib.d.ts +0 -12
  99. package/cjs/resources/AccountNotices.js +0 -21
  100. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  101. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  102. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  103. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  104. package/cjs/resources/GiftCards/Cards.js +0 -23
  105. package/cjs/resources/GiftCards/Transactions.js +0 -33
  106. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  107. package/cjs/resources/Margins.js +0 -22
  108. package/cjs/resources/Orders.js +0 -24
  109. package/cjs/resources/QuotePhases.js +0 -22
  110. package/cjs/resources/Tax/Forms.js +0 -20
  111. package/esm/resources/AccountNotices.js +0 -18
  112. package/esm/resources/Capital/FinancingOffers.js +0 -18
  113. package/esm/resources/Capital/FinancingSummary.js +0 -9
  114. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  115. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  116. package/esm/resources/GiftCards/Cards.js +0 -20
  117. package/esm/resources/GiftCards/Transactions.js +0 -30
  118. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  119. package/esm/resources/Margins.js +0 -19
  120. package/esm/resources/Orders.js +0 -21
  121. package/esm/resources/QuotePhases.js +0 -19
  122. package/esm/resources/Tax/Forms.js +0 -17
  123. package/types/AccountNotices.d.ts +0 -110
  124. package/types/AccountNoticesResource.d.ts +0 -98
  125. package/types/Capital/FinancingOffers.d.ts +0 -188
  126. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  127. package/types/Capital/FinancingSummary.d.ts +0 -106
  128. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  129. package/types/Capital/FinancingTransactions.d.ts +0 -135
  130. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  131. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  132. package/types/FinancialConnections/Institutions.d.ts +0 -93
  133. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  134. package/types/GiftCards/Cards.d.ts +0 -118
  135. package/types/GiftCards/CardsResource.d.ts +0 -159
  136. package/types/GiftCards/Transactions.d.ts +0 -129
  137. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  138. package/types/InvoicePayments.d.ts +0 -91
  139. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  140. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  141. package/types/Margins.d.ts +0 -56
  142. package/types/MarginsResource.d.ts +0 -114
  143. package/types/Orders.d.ts +0 -1057
  144. package/types/OrdersResource.d.ts +0 -2711
  145. package/types/QuoteLines.d.ts +0 -634
  146. package/types/QuotePhases.d.ts +0 -198
  147. package/types/QuotePhasesResource.d.ts +0 -67
  148. package/types/QuotePreviewInvoices.d.ts +0 -1530
  149. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
  150. package/types/Tax/Forms.d.ts +0 -133
  151. package/types/Tax/FormsResource.d.ts +0 -90
@@ -1,56 +0,0 @@
1
- // File generated from our OpenAPI spec
2
-
3
- declare module 'stripe' {
4
- namespace Stripe {
5
- /**
6
- * A (partner) margin represents a specific discount distributed in partner reseller programs to business partners who
7
- * resell products and services and earn a discount (margin) for doing so.
8
- */
9
- interface Margin {
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: 'margin';
19
-
20
- /**
21
- * Whether the margin can be applied to invoices, invoice items, or invoice line items. Defaults to `true`.
22
- */
23
- active: boolean;
24
-
25
- /**
26
- * Time at which the object was created. Measured in seconds since the Unix epoch.
27
- */
28
- created: number;
29
-
30
- /**
31
- * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
32
- */
33
- livemode: boolean;
34
-
35
- /**
36
- * 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.
37
- */
38
- metadata: Stripe.Metadata | null;
39
-
40
- /**
41
- * Name of the margin that's displayed on, for example, invoices.
42
- */
43
- name: string | null;
44
-
45
- /**
46
- * 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.
47
- */
48
- percent_off: number;
49
-
50
- /**
51
- * Time at which the object was last updated. Measured in seconds since the Unix epoch.
52
- */
53
- updated: number;
54
- }
55
- }
56
- }
@@ -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
- }