stripe 22.1.0-beta.1 → 22.1.0-beta.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.
- package/CHANGELOG.md +66 -0
- package/VERSION +1 -1
- package/cjs/Types.d.ts +1 -1
- package/cjs/Webhooks.d.ts +11 -1
- package/cjs/Webhooks.js +7 -7
- package/cjs/Webhooks.js.map +1 -1
- package/cjs/lib.d.ts +7 -1
- package/cjs/net/FetchHttpClient.js +4 -1
- package/cjs/net/FetchHttpClient.js.map +1 -1
- package/cjs/resources/Apps/index.d.ts +5 -1
- package/cjs/resources/Apps/index.js.map +1 -1
- package/cjs/resources/Billing/Analytics/index.d.ts +3 -1
- package/cjs/resources/Billing/Analytics/index.js.map +1 -1
- package/cjs/resources/Billing/index.d.ts +33 -7
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/BillingPortal/index.d.ts +7 -2
- package/cjs/resources/BillingPortal/index.js.map +1 -1
- package/cjs/resources/Capital/index.d.ts +9 -3
- package/cjs/resources/Capital/index.js.map +1 -1
- package/cjs/resources/Checkout/index.d.ts +7 -1
- package/cjs/resources/Checkout/index.js.map +1 -1
- package/cjs/resources/Climate/index.d.ts +12 -3
- package/cjs/resources/Climate/index.js.map +1 -1
- package/cjs/resources/Entitlements/index.d.ts +9 -2
- package/cjs/resources/Entitlements/index.js.map +1 -1
- package/cjs/resources/FinancialConnections/index.d.ts +23 -5
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/Forwarding/index.d.ts +4 -1
- package/cjs/resources/Forwarding/index.js.map +1 -1
- package/cjs/resources/Identity/index.d.ts +10 -2
- package/cjs/resources/Identity/index.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +52 -11
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/Privacy/index.d.ts +10 -1
- package/cjs/resources/Privacy/index.js.map +1 -1
- package/cjs/resources/ProductCatalog/index.d.ts +2 -1
- package/cjs/resources/ProductCatalog/index.js.map +1 -1
- package/cjs/resources/Radar/index.d.ts +16 -4
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Reporting/index.d.ts +7 -2
- package/cjs/resources/Reporting/index.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +8 -3
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/Sigma/index.d.ts +3 -1
- package/cjs/resources/Sigma/index.js.map +1 -1
- package/cjs/resources/Tax/index.d.ts +29 -7
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/Terminal/index.d.ts +32 -6
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/index.js.map +1 -1
- package/cjs/resources/TestHelpers/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/index.js.map +1 -1
- package/cjs/resources/TestHelpers/index.d.ts +6 -1
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Treasury/index.d.ts +44 -10
- package/cjs/resources/Treasury/index.js.map +1 -1
- package/cjs/resources/V2/Billing/index.d.ts +29 -7
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Core/Vault/index.d.ts +15 -2
- package/cjs/resources/V2/Core/Vault/index.js.map +1 -1
- package/cjs/resources/V2/Core/index.d.ts +29 -6
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/index.d.ts +55 -14
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
- package/cjs/resources/V2/TestHelpers/index.js.map +1 -1
- package/cjs/resources/V2/index.d.ts +3 -0
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +4 -1
- package/cjs/stripe.cjs.node.js +3 -1
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.cjs.worker.d.ts +4 -1
- package/cjs/stripe.cjs.worker.js +3 -1
- package/cjs/stripe.cjs.worker.js.map +1 -1
- package/cjs/stripe.core.d.ts +5 -4
- package/cjs/stripe.core.js +1 -1
- package/cjs/stripe.core.js.map +1 -1
- package/esm/Types.d.ts +1 -1
- package/esm/Webhooks.d.ts +11 -1
- package/esm/Webhooks.js +7 -7
- package/esm/Webhooks.js.map +1 -1
- package/esm/lib.d.ts +7 -1
- package/esm/net/FetchHttpClient.js +4 -1
- package/esm/net/FetchHttpClient.js.map +1 -1
- package/esm/resources/Apps/index.d.ts +5 -1
- package/esm/resources/Apps/index.js.map +1 -1
- package/esm/resources/Billing/Analytics/index.d.ts +3 -1
- package/esm/resources/Billing/Analytics/index.js +1 -1
- package/esm/resources/Billing/Analytics/index.js.map +1 -1
- package/esm/resources/Billing/index.d.ts +33 -7
- package/esm/resources/Billing/index.js +2 -2
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/BillingPortal/index.d.ts +7 -2
- package/esm/resources/BillingPortal/index.js +2 -2
- package/esm/resources/BillingPortal/index.js.map +1 -1
- package/esm/resources/Capital/index.d.ts +9 -3
- package/esm/resources/Capital/index.js +1 -1
- package/esm/resources/Capital/index.js.map +1 -1
- package/esm/resources/Checkout/index.d.ts +7 -1
- package/esm/resources/Checkout/index.js +1 -1
- package/esm/resources/Checkout/index.js.map +1 -1
- package/esm/resources/Climate/index.d.ts +12 -3
- package/esm/resources/Climate/index.js +2 -2
- package/esm/resources/Climate/index.js.map +1 -1
- package/esm/resources/Entitlements/index.d.ts +9 -2
- package/esm/resources/Entitlements/index.js +1 -1
- package/esm/resources/Entitlements/index.js.map +1 -1
- package/esm/resources/FinancialConnections/index.d.ts +23 -5
- package/esm/resources/FinancialConnections/index.js +5 -5
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/Forwarding/index.d.ts +4 -1
- package/esm/resources/Forwarding/index.js +1 -1
- package/esm/resources/Forwarding/index.js.map +1 -1
- package/esm/resources/Identity/index.d.ts +10 -2
- package/esm/resources/Identity/index.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +52 -11
- package/esm/resources/Issuing/index.js +5 -5
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/Privacy/index.d.ts +10 -1
- package/esm/resources/Privacy/index.js +1 -1
- package/esm/resources/Privacy/index.js.map +1 -1
- package/esm/resources/ProductCatalog/index.d.ts +2 -1
- package/esm/resources/ProductCatalog/index.js +1 -1
- package/esm/resources/ProductCatalog/index.js.map +1 -1
- package/esm/resources/Radar/index.d.ts +16 -4
- package/esm/resources/Radar/index.js +2 -2
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Reporting/index.d.ts +7 -2
- package/esm/resources/Reporting/index.js +2 -2
- package/esm/resources/Reporting/index.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +8 -3
- package/esm/resources/Reserve/index.js +1 -1
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/Sigma/index.d.ts +3 -1
- package/esm/resources/Sigma/index.js.map +1 -1
- package/esm/resources/Tax/index.d.ts +29 -7
- package/esm/resources/Tax/index.js +4 -4
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/Terminal/index.d.ts +32 -6
- package/esm/resources/Terminal/index.js +5 -5
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/index.js +3 -3
- package/esm/resources/TestHelpers/Issuing/index.js.map +1 -1
- package/esm/resources/TestHelpers/Terminal/index.js +1 -1
- package/esm/resources/TestHelpers/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/index.js +5 -5
- package/esm/resources/TestHelpers/Treasury/index.js.map +1 -1
- package/esm/resources/TestHelpers/index.d.ts +6 -1
- package/esm/resources/TestHelpers/index.js +4 -4
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Treasury/index.d.ts +44 -10
- package/esm/resources/Treasury/index.js +7 -7
- package/esm/resources/Treasury/index.js.map +1 -1
- package/esm/resources/V2/Billing/index.d.ts +29 -7
- package/esm/resources/V2/Billing/index.js +3 -3
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Core/Vault/index.d.ts +15 -2
- package/esm/resources/V2/Core/Vault/index.js +2 -2
- package/esm/resources/V2/Core/Vault/index.js.map +1 -1
- package/esm/resources/V2/Core/index.d.ts +29 -6
- package/esm/resources/V2/Core/index.js +2 -2
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/index.d.ts +55 -14
- package/esm/resources/V2/MoneyManagement/index.js +7 -7
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
- package/esm/resources/V2/TestHelpers/index.js +1 -1
- package/esm/resources/V2/TestHelpers/index.js.map +1 -1
- package/esm/resources/V2/index.d.ts +3 -0
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/stripe.core.d.ts +5 -4
- package/esm/stripe.core.js +1 -1
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +5 -4
- package/esm/stripe.esm.node.js +1 -1
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,74 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 22.1.0-beta.2 - 2026-04-08
|
|
4
|
+
Please review the [changelog for 22.0.1](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#2201---2026-04-08) for more information about changes in this release.
|
|
5
|
+
|
|
3
6
|
## 22.1.0-beta.1 - 2026-04-02
|
|
4
7
|
Please review the [changelog for 22.0.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#2200---2026-04-02) for more information about changes in this release.
|
|
5
8
|
|
|
9
|
+
## 22.0.0 - 2026-04-02
|
|
10
|
+
This release uses the same pinned API version to `2026-03-25.dahlia` as the last major release. The breaking changes in this release are prefixed with ⚠️ below. There's also a [detailed migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v22) to simplify your upgrade process.
|
|
11
|
+
|
|
12
|
+
* [#2619](https://github.com/stripe/stripe-node/pull/2619) Improved TypeScript support in the Node SDK
|
|
13
|
+
* Moved the types from the partially manually maintained and partially generated types folder to be inline with the implementation in TypeScript files.
|
|
14
|
+
* Removed top-level “stripe” ambient module. This allows import aliasing for the stripe package.
|
|
15
|
+
* ⚠️ `Stripe.StripeContext` is no longer exported as a type. Use `Stripe.StripeContextType` instead.
|
|
16
|
+
* ⚠️ `Stripe.errors.StripeError` is no longer a type. Use `typeof Stripe.errors.StripeError` or `Stripe.ErrorType` instead.
|
|
17
|
+
* ⚠️ CJS entry point no longer exports .default or .Stripe as separate properties.
|
|
18
|
+
* ⚠️ Stripe import is now a true ES6 class. Use `new Stripe()` to create a StripeClient instead of calling it:
|
|
19
|
+
```javascript
|
|
20
|
+
// Before
|
|
21
|
+
const stripeClient = Stripe("sk_test_...");
|
|
22
|
+
|
|
23
|
+
// After
|
|
24
|
+
const stripeClient = new Stripe("sk_test_...");
|
|
25
|
+
```
|
|
26
|
+
* [#2645](https://github.com/stripe/stripe-node/pull/2645) ⚠️ Remove `stripeMethod` and standardize how function args are handled (including removing callback support)
|
|
27
|
+
|
|
28
|
+
- ⚠️ Refactor how incoming method arguments are parsed. Type signatures for API methods should be _much_ more accurate and reliable now
|
|
29
|
+
- ⚠️ Remove support for providing callbacks to API methods. Use `async / await` instead
|
|
30
|
+
- ⚠️ Remove support for passing a plain API key as a function arg. If supplied on a per-request basis, it should be in the `RequestOptions` under the `apiKey` property
|
|
31
|
+
- ⚠️ Keys from `params` and `options` objects are no longer mixed. If present on a method, `RequestParams` must always come first and `RequestOptions` must always come second. To supply options without params, pass `undefined` as the first argument explicitly
|
|
32
|
+
- ⚠️ Removed methods from `StripeResource`: `createFullPath`, `createResourcePathWithSymbols`, `extend`, `method` and `_joinUrlParts`. These were mostly intended for internal use and we no longer need them
|
|
33
|
+
|
|
34
|
+
As a result, the following call patterns are no longer supported:
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
stripe.customers.retrieve('cus_123', 'sk_test_123')
|
|
38
|
+
stripe.customers.create({name: 'david', host: 'example.com'}, 'sk_test_123')
|
|
39
|
+
stripe.customers.create({apiKey: 'sk_test_123'})
|
|
40
|
+
stripe.customers.list(customers => {
|
|
41
|
+
// do something with customers
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If those look familiar, head over to the [migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v22) to update your code.
|
|
46
|
+
* [#2643](https://github.com/stripe/stripe-node/pull/2643) ⚠️ Removed per-request host override. To use a custom host, set it in the client configuration. All requests from that client will use that host.
|
|
47
|
+
|
|
48
|
+
Before:
|
|
49
|
+
```ts
|
|
50
|
+
import Stripe from 'stripe';
|
|
51
|
+
const stripe = new Stripe('sk_test_...');
|
|
52
|
+
|
|
53
|
+
const customer = await stripe.customers.create({
|
|
54
|
+
email: 'customer@example.com',
|
|
55
|
+
}, {host: 'example.com'});
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
After:
|
|
59
|
+
```ts
|
|
60
|
+
import Stripe from 'stripe';
|
|
61
|
+
const stripe = new Stripe('sk_test_...', {host: 'example.com'});
|
|
62
|
+
|
|
63
|
+
// goes to example.com
|
|
64
|
+
const customer = await stripe.customers.create({
|
|
65
|
+
email: 'customer@example.com',
|
|
66
|
+
});
|
|
67
|
+
```
|
|
68
|
+
* [#2619](https://github.com/stripe/stripe-node/pull/2619) Improved TypeScript support in the Node SDK
|
|
69
|
+
* [#2638](https://github.com/stripe/stripe-node/pull/2638) Converted V2/Amount.ts to V2/V2Amount.ts
|
|
70
|
+
* [#2635](https://github.com/stripe/stripe-node/pull/2635) Updated stripe.spec.ts test and constructEvent.tolerance type
|
|
71
|
+
|
|
6
72
|
## 21.1.0-beta.2 - 2026-03-26
|
|
7
73
|
* [#2627](https://github.com/stripe/stripe-node/pull/2627) Fix export for Stripe.Decimal in CJS and ESM. Resolves [#2625](https://github.com/stripe/stripe-node/issues/2625)
|
|
8
74
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
22.1.0-beta.
|
|
1
|
+
22.1.0-beta.2
|
package/cjs/Types.d.ts
CHANGED
package/cjs/Webhooks.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { CryptoProvider } from './crypto/CryptoProvider.js';
|
|
2
2
|
import { PlatformFunctions } from './platform/PlatformFunctions.js';
|
|
3
3
|
import { Event } from './resources/Events.js';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Value of the `stripe-signature` header from Stripe.
|
|
6
|
+
* Typically a string.
|
|
7
|
+
*
|
|
8
|
+
* Note that this is typed to accept an array of strings
|
|
9
|
+
* so that it works seamlessly with express's types,
|
|
10
|
+
* but will throw if an array is passed in practice
|
|
11
|
+
* since express should never return this header as an array,
|
|
12
|
+
* only a string.
|
|
13
|
+
*/
|
|
14
|
+
type WebhookHeader = string | string[] | Uint8Array;
|
|
5
15
|
type WebhookTestHeaderOptions = {
|
|
6
16
|
timestamp: number;
|
|
7
17
|
payload: string;
|
package/cjs/Webhooks.js
CHANGED
|
@@ -90,6 +90,13 @@ function createWebhooks(platformFunctions) {
|
|
|
90
90
|
return `${details.timestamp}.${payload}`;
|
|
91
91
|
}
|
|
92
92
|
function parseEventDetails(encodedPayload, encodedHeader, expectedScheme) {
|
|
93
|
+
// Express's type for `Request#headers` is `string | []string`
|
|
94
|
+
// which is because the `set-cookie` header is an array,
|
|
95
|
+
// but no other headers are an array (docs: https://nodejs.org/api/http.html#http_message_headers)
|
|
96
|
+
// (Express's Request class is an extension of http.IncomingMessage, and doesn't appear to be relevantly modified: https://github.com/expressjs/express/blob/master/lib/request.js#L31)
|
|
97
|
+
if (Array.isArray(encodedHeader)) {
|
|
98
|
+
throw new Error('Unexpected: An array was passed as a header, which should not be possible for the stripe-signature header.');
|
|
99
|
+
}
|
|
93
100
|
if (!encodedPayload) {
|
|
94
101
|
throw new Error_js_1.StripeSignatureVerificationError(encodedHeader, encodedPayload, {
|
|
95
102
|
message: 'No webhook payload was provided.',
|
|
@@ -101,13 +108,6 @@ function createWebhooks(platformFunctions) {
|
|
|
101
108
|
const decodedPayload = encodedPayload instanceof Uint8Array
|
|
102
109
|
? textDecoder.decode(encodedPayload)
|
|
103
110
|
: encodedPayload;
|
|
104
|
-
// Express's type for `Request#headers` is `string | []string`
|
|
105
|
-
// which is because the `set-cookie` header is an array,
|
|
106
|
-
// but no other headers are an array (docs: https://nodejs.org/api/http.html#http_message_headers)
|
|
107
|
-
// (Express's Request class is an extension of http.IncomingMessage, and doesn't appear to be relevantly modified: https://github.com/expressjs/express/blob/master/lib/request.js#L31)
|
|
108
|
-
if (Array.isArray(encodedHeader)) {
|
|
109
|
-
throw new Error('Unexpected: An array was passed as a header, which should not be possible for the stripe-signature header.');
|
|
110
|
-
}
|
|
111
111
|
if (encodedHeader == null || encodedHeader == '') {
|
|
112
112
|
throw new Error_js_1.StripeSignatureVerificationError(encodedHeader, encodedPayload, {
|
|
113
113
|
message: 'No stripe-signature header value was provided.',
|
package/cjs/Webhooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Webhooks.js","sourceRoot":"","sources":["../src/Webhooks.ts"],"names":[],"mappings":";;;AAAA,yCAAyE;AACzE,kEAGoC;
|
|
1
|
+
{"version":3,"file":"Webhooks.js","sourceRoot":"","sources":["../src/Webhooks.ts"],"names":[],"mappings":";;;AAAA,yCAAyE;AACzE,kEAGoC;AA+EpC,SAAgB,cAAc,CAC5B,iBAAoC;IAEpC,MAAM,OAAO,GAAkB;QAC7B,iBAAiB,EAAE,GAAG;QACtB,SAAS,EAAE,IAAI;QACf,cAAc,CACZ,OAAuB,EACvB,MAAqB,EACrB,MAAc,EACd,SAAkB,EAClB,cAA+B,EAC/B,UAAmB;YAEnB,IAAI;gBACF,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;oBACnB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBAED,cAAc,GAAG,cAAc,IAAI,iB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C,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,SAAS,CAAC,eAAe,CAAC;QACxD,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,IAAI,iBAAiB,EAAE,CAAC;QAClE,MAAM,aAAa,GAAG,GAAG,SAAS,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QAErD,MAAM,oBAAoB,GAAG,CAAC,SAAiB,EAAU,EAAE;YACzD,OAAO,KAAK,SAAS,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;QACjD,CAAC,CAAC;QAEF,OAAO;YACL,GAAG,IAAI;YACP,SAAS;YACT,MAAM;YACN,cAAc;YACd,aAAa;YACb,oBAAoB;SACrB,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAE9B,OAAO,OAAO,CAAC;AACjB,CAAC;AA9aD,wCA8aC"}
|
package/cjs/lib.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
/// <reference types="node" />
|
|
5
5
|
import { Agent } from 'http';
|
|
6
|
+
import { RequestAuthenticator } from './Types.js';
|
|
6
7
|
import { ApiVersion } from './apiVersion.js';
|
|
7
8
|
import { HttpClient } from './net/HttpClient.js';
|
|
8
9
|
import { StripeContext } from './StripeContext.js';
|
|
@@ -26,6 +27,11 @@ export interface StripeConfig {
|
|
|
26
27
|
* @docs https://stripe.com/docs/api/versioning
|
|
27
28
|
*/
|
|
28
29
|
apiVersion?: LatestApiVersion;
|
|
30
|
+
/**
|
|
31
|
+
* Provide a custom authenticator function for all requests.
|
|
32
|
+
* Cannot be used together with apiKey (the first constructor argument).
|
|
33
|
+
*/
|
|
34
|
+
authenticator?: RequestAuthenticator;
|
|
29
35
|
/**
|
|
30
36
|
* Optionally indicate that you are using TypeScript.
|
|
31
37
|
* This currently has no runtime effect other than adding "TypeScript" to your user-agent.
|
|
@@ -85,7 +91,7 @@ export interface StripeConfig {
|
|
|
85
91
|
/**
|
|
86
92
|
* An account on whose behalf you wish to make every request. See https://docs.stripe.com/context for more information.
|
|
87
93
|
*/
|
|
88
|
-
stripeContext?: string;
|
|
94
|
+
stripeContext?: string | StripeContext;
|
|
89
95
|
}
|
|
90
96
|
export interface RequestOptions {
|
|
91
97
|
/**
|
|
@@ -91,7 +91,10 @@ class FetchHttpClient extends HttpClient_js_1.HttpClient {
|
|
|
91
91
|
}
|
|
92
92
|
async makeRequest(host, port, path, method, headers, requestData, protocol, timeout) {
|
|
93
93
|
const isInsecureConnection = protocol === 'http';
|
|
94
|
-
|
|
94
|
+
if (!path.startsWith('/')) {
|
|
95
|
+
throw new Error(`Only relative paths are supported, got: "${path}"`);
|
|
96
|
+
}
|
|
97
|
+
const url = new URL(`${isInsecureConnection ? 'http' : 'https'}://${host}${path}`);
|
|
95
98
|
url.port = port;
|
|
96
99
|
// For methods which expect payloads, we should always pass a body value
|
|
97
100
|
// even when it is empty. Without this, some JS runtimes (eg. Deno) will
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchHttpClient.js","sourceRoot":"","sources":["../../src/net/FetchHttpClient.ts"],"names":[],"mappings":";;;AACA,0CAAiD;AACjD,mDAKyB;AAQzB;;;;;;;GAOG;AACH,MAAa,eAAgB,SAAQ,0BAAU;IAI7C,YAAY,OAAsB;QAChC,KAAK,EAAE,CAAC;QAER,uCAAuC;QACvC,IAAI,CAAC,OAAO,EAAE;YACZ,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE;gBACrB,MAAM,IAAI,KAAK,CACb,wEAAwE;oBACtE,0CAA0C,CAC7C,CAAC;aACH;YACD,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC;SAC5B;QAED,4CAA4C;QAC5C,sEAAsE;QACtE,sFAAsF;QACtF,IAAI,UAAU,CAAC,eAAe,EAAE;YAC9B,8CAA8C;YA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CAAC,MAAM,IAAI,CAAC,EAAE;gBAC9C,MAAM,IAAI,KAAK,CACb,8JAA8J,CAC/J,CAAC;aACH;YAED,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;SACjC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AAlDD,0DAkDC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { Secret, SecretResource } from './Secrets.js';
|
|
2
|
+
import { Apps as AppsNamespace0, Secret, SecretResource } from './Secrets.js';
|
|
3
3
|
export { Secret } from './Secrets.js';
|
|
4
4
|
export declare class Apps {
|
|
5
5
|
private readonly stripe;
|
|
@@ -7,5 +7,9 @@ export declare class Apps {
|
|
|
7
7
|
constructor(stripe: Stripe);
|
|
8
8
|
}
|
|
9
9
|
export declare namespace Apps {
|
|
10
|
+
export type SecretListParams = AppsNamespace0.SecretListParams;
|
|
11
|
+
export type SecretCreateParams = AppsNamespace0.SecretCreateParams;
|
|
12
|
+
export type SecretFindParams = AppsNamespace0.SecretFindParams;
|
|
13
|
+
export type SecretDeleteWhereParams = AppsNamespace0.SecretDeleteWhereParams;
|
|
10
14
|
export { Secret };
|
|
11
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Apps/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Apps/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,6CAA4E;AAI5E,MAAa,IAAI;IAGf,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,2BAAc,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACF;AAND,oBAMC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Stripe } from '../../../stripe.core.js';
|
|
2
|
-
import { MeterUsage, MeterUsageResource } from './MeterUsage.js';
|
|
2
|
+
import { Billing as BillingNamespace0, MeterUsage, MeterUsageResource } from './MeterUsage.js';
|
|
3
3
|
import { MeterUsageRow } from './MeterUsageRows.js';
|
|
4
4
|
export { MeterUsage } from './MeterUsage.js';
|
|
5
|
+
export { MeterUsageRow } from './MeterUsageRows.js';
|
|
5
6
|
export declare class Analytics {
|
|
6
7
|
private readonly stripe;
|
|
7
8
|
meterUsages: MeterUsageResource;
|
|
8
9
|
constructor(stripe: Stripe);
|
|
9
10
|
}
|
|
10
11
|
export declare namespace Analytics {
|
|
12
|
+
export type MeterUsageRetrieveParams = BillingNamespace0.Analytics.MeterUsageRetrieveParams;
|
|
11
13
|
export { MeterUsage };
|
|
12
14
|
export { MeterUsageRow };
|
|
13
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/Billing/Analytics/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/Billing/Analytics/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,mDAIyB;AAMzB,MAAa,SAAS;IAGpB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,WAAW,GAAG,IAAI,kCAAkB,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;CACF;AAND,8BAMC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { Alert, AlertResource } from './Alerts.js';
|
|
3
|
-
import { CreditBalanceSummary, CreditBalanceSummaryResource } from './CreditBalanceSummary.js';
|
|
4
|
-
import { CreditBalanceTransaction, CreditBalanceTransactionResource } from './CreditBalanceTransactions.js';
|
|
5
|
-
import { CreditGrant, CreditGrantResource } from './CreditGrants.js';
|
|
6
|
-
import { Meter, MeterResource } from './Meters.js';
|
|
7
|
-
import { MeterEvent, MeterEventResource } from './MeterEvents.js';
|
|
8
|
-
import { MeterEventAdjustment, MeterEventAdjustmentResource } from './MeterEventAdjustments.js';
|
|
2
|
+
import { Billing as BillingNamespace0, Alert, AlertResource } from './Alerts.js';
|
|
3
|
+
import { Billing as BillingNamespace1, CreditBalanceSummary, CreditBalanceSummaryResource } from './CreditBalanceSummary.js';
|
|
4
|
+
import { Billing as BillingNamespace2, CreditBalanceTransaction, CreditBalanceTransactionResource } from './CreditBalanceTransactions.js';
|
|
5
|
+
import { Billing as BillingNamespace3, CreditGrant, CreditGrantResource } from './CreditGrants.js';
|
|
6
|
+
import { Billing as BillingNamespace4, Meter, MeterResource } from './Meters.js';
|
|
7
|
+
import { Billing as BillingNamespace5, MeterEvent, MeterEventResource } from './MeterEvents.js';
|
|
8
|
+
import { Billing as BillingNamespace6, MeterEventAdjustment, MeterEventAdjustmentResource } from './MeterEventAdjustments.js';
|
|
9
9
|
import { AlertTriggered } from './AlertTriggereds.js';
|
|
10
10
|
import { MeterEventSummary } from './MeterEventSummaries.js';
|
|
11
11
|
import { Analytics } from './Analytics/index.js';
|
|
@@ -16,6 +16,8 @@ export { CreditGrant } from './CreditGrants.js';
|
|
|
16
16
|
export { Meter } from './Meters.js';
|
|
17
17
|
export { MeterEvent } from './MeterEvents.js';
|
|
18
18
|
export { MeterEventAdjustment } from './MeterEventAdjustments.js';
|
|
19
|
+
export { AlertTriggered } from './AlertTriggereds.js';
|
|
20
|
+
export { MeterEventSummary } from './MeterEventSummaries.js';
|
|
19
21
|
export declare class Billing {
|
|
20
22
|
private readonly stripe;
|
|
21
23
|
alerts: AlertResource;
|
|
@@ -29,12 +31,36 @@ export declare class Billing {
|
|
|
29
31
|
constructor(stripe: Stripe);
|
|
30
32
|
}
|
|
31
33
|
export declare namespace Billing {
|
|
34
|
+
export type AlertListParams = BillingNamespace0.AlertListParams;
|
|
35
|
+
export type AlertCreateParams = BillingNamespace0.AlertCreateParams;
|
|
36
|
+
export type AlertRetrieveParams = BillingNamespace0.AlertRetrieveParams;
|
|
37
|
+
export type AlertActivateParams = BillingNamespace0.AlertActivateParams;
|
|
38
|
+
export type AlertArchiveParams = BillingNamespace0.AlertArchiveParams;
|
|
39
|
+
export type AlertDeactivateParams = BillingNamespace0.AlertDeactivateParams;
|
|
32
40
|
export { Alert };
|
|
41
|
+
export type CreditBalanceSummaryRetrieveParams = BillingNamespace1.CreditBalanceSummaryRetrieveParams;
|
|
33
42
|
export { CreditBalanceSummary };
|
|
43
|
+
export type CreditBalanceTransactionListParams = BillingNamespace2.CreditBalanceTransactionListParams;
|
|
44
|
+
export type CreditBalanceTransactionRetrieveParams = BillingNamespace2.CreditBalanceTransactionRetrieveParams;
|
|
34
45
|
export { CreditBalanceTransaction };
|
|
46
|
+
export type CreditGrantListParams = BillingNamespace3.CreditGrantListParams;
|
|
47
|
+
export type CreditGrantCreateParams = BillingNamespace3.CreditGrantCreateParams;
|
|
48
|
+
export type CreditGrantRetrieveParams = BillingNamespace3.CreditGrantRetrieveParams;
|
|
49
|
+
export type CreditGrantUpdateParams = BillingNamespace3.CreditGrantUpdateParams;
|
|
50
|
+
export type CreditGrantExpireParams = BillingNamespace3.CreditGrantExpireParams;
|
|
51
|
+
export type CreditGrantVoidGrantParams = BillingNamespace3.CreditGrantVoidGrantParams;
|
|
35
52
|
export { CreditGrant };
|
|
53
|
+
export type MeterListParams = BillingNamespace4.MeterListParams;
|
|
54
|
+
export type MeterCreateParams = BillingNamespace4.MeterCreateParams;
|
|
55
|
+
export type MeterRetrieveParams = BillingNamespace4.MeterRetrieveParams;
|
|
56
|
+
export type MeterUpdateParams = BillingNamespace4.MeterUpdateParams;
|
|
57
|
+
export type MeterDeactivateParams = BillingNamespace4.MeterDeactivateParams;
|
|
58
|
+
export type MeterReactivateParams = BillingNamespace4.MeterReactivateParams;
|
|
59
|
+
export type MeterListEventSummariesParams = BillingNamespace4.MeterListEventSummariesParams;
|
|
36
60
|
export { Meter };
|
|
61
|
+
export type MeterEventCreateParams = BillingNamespace5.MeterEventCreateParams;
|
|
37
62
|
export { MeterEvent };
|
|
63
|
+
export type MeterEventAdjustmentCreateParams = BillingNamespace6.MeterEventAdjustmentCreateParams;
|
|
38
64
|
export { MeterEventAdjustment };
|
|
39
65
|
export { AlertTriggered };
|
|
40
66
|
export { MeterEventSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Billing/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Billing/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,2CAA+E;AAC/E,uEAImC;AACnC,iFAIwC;AACxC,uDAI2B;AAC3B,2CAA+E;AAC/E,qDAI0B;AAC1B,yEAIoC;AAGpC,mDAA+C;AAY/C,MAAa,OAAO;IAUlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,sBAAsB,GAAG,IAAI,sDAA4B,CAAC,MAAM,CAAC,CAAC;QACvE,IAAI,CAAC,yBAAyB,GAAG,IAAI,+DAAgC,CACnE,MAAM,CACP,CAAC;QACF,IAAI,CAAC,YAAY,GAAG,IAAI,qCAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,IAAI,mCAAkB,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,qBAAqB,GAAG,IAAI,uDAA4B,CAAC,MAAM,CAAC,CAAC;QACtE,IAAI,CAAC,SAAS,GAAG,IAAI,oBAAS,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;CACF;AAtBD,0BAsBC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { Configuration, ConfigurationResource } from './Configurations.js';
|
|
3
|
-
import { Session, SessionResource } from './Sessions.js';
|
|
2
|
+
import { BillingPortal as BillingPortalNamespace0, Configuration, ConfigurationResource } from './Configurations.js';
|
|
3
|
+
import { BillingPortal as BillingPortalNamespace1, Session, SessionResource } from './Sessions.js';
|
|
4
4
|
export { Configuration } from './Configurations.js';
|
|
5
5
|
export { Session } from './Sessions.js';
|
|
6
6
|
export declare class BillingPortal {
|
|
@@ -10,6 +10,11 @@ export declare class BillingPortal {
|
|
|
10
10
|
constructor(stripe: Stripe);
|
|
11
11
|
}
|
|
12
12
|
export declare namespace BillingPortal {
|
|
13
|
+
export type ConfigurationListParams = BillingPortalNamespace0.ConfigurationListParams;
|
|
14
|
+
export type ConfigurationCreateParams = BillingPortalNamespace0.ConfigurationCreateParams;
|
|
15
|
+
export type ConfigurationRetrieveParams = BillingPortalNamespace0.ConfigurationRetrieveParams;
|
|
16
|
+
export type ConfigurationUpdateParams = BillingPortalNamespace0.ConfigurationUpdateParams;
|
|
13
17
|
export { Configuration };
|
|
18
|
+
export type SessionCreateParams = BillingPortalNamespace1.SessionCreateParams;
|
|
14
19
|
export { Session };
|
|
15
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/BillingPortal/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/BillingPortal/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,2DAI6B;AAC7B,+CAIuB;AAKvB,MAAa,aAAa;IAIxB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,cAAc,GAAG,IAAI,yCAAqB,CAAC,MAAM,CAAC,CAAC;QACxD,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAAe,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF;AARD,sCAQC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { FinancingOffer, FinancingOfferResource } from './FinancingOffers.js';
|
|
3
|
-
import { FinancingSummary, FinancingSummaryResource } from './FinancingSummary.js';
|
|
4
|
-
import { FinancingTransaction, FinancingTransactionResource } from './FinancingTransactions.js';
|
|
2
|
+
import { Capital as CapitalNamespace0, FinancingOffer, FinancingOfferResource } from './FinancingOffers.js';
|
|
3
|
+
import { Capital as CapitalNamespace1, FinancingSummary, FinancingSummaryResource } from './FinancingSummary.js';
|
|
4
|
+
import { Capital as CapitalNamespace2, FinancingTransaction, FinancingTransactionResource } from './FinancingTransactions.js';
|
|
5
5
|
export { FinancingOffer } from './FinancingOffers.js';
|
|
6
6
|
export { FinancingSummary } from './FinancingSummary.js';
|
|
7
7
|
export { FinancingTransaction } from './FinancingTransactions.js';
|
|
@@ -13,7 +13,13 @@ export declare class Capital {
|
|
|
13
13
|
constructor(stripe: Stripe);
|
|
14
14
|
}
|
|
15
15
|
export declare namespace Capital {
|
|
16
|
+
export type FinancingOfferListParams = CapitalNamespace0.FinancingOfferListParams;
|
|
17
|
+
export type FinancingOfferRetrieveParams = CapitalNamespace0.FinancingOfferRetrieveParams;
|
|
18
|
+
export type FinancingOfferMarkDeliveredParams = CapitalNamespace0.FinancingOfferMarkDeliveredParams;
|
|
16
19
|
export { FinancingOffer };
|
|
20
|
+
export type FinancingSummaryRetrieveParams = CapitalNamespace1.FinancingSummaryRetrieveParams;
|
|
17
21
|
export { FinancingSummary };
|
|
22
|
+
export type FinancingTransactionListParams = CapitalNamespace2.FinancingTransactionListParams;
|
|
23
|
+
export type FinancingTransactionRetrieveParams = CapitalNamespace2.FinancingTransactionRetrieveParams;
|
|
18
24
|
export { FinancingTransaction };
|
|
19
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Capital/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Capital/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,6DAI8B;AAC9B,+DAI+B;AAC/B,yEAIoC;AAMpC,MAAa,OAAO;IAKlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,2CAAsB,CAAC,MAAM,CAAC,CAAC;QAC1D,IAAI,CAAC,kBAAkB,GAAG,IAAI,8CAAwB,CAAC,MAAM,CAAC,CAAC;QAC/D,IAAI,CAAC,qBAAqB,GAAG,IAAI,uDAA4B,CAAC,MAAM,CAAC,CAAC;IACxE,CAAC;CACF;AAVD,0BAUC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { Session, SessionResource } from './Sessions.js';
|
|
2
|
+
import { Checkout as CheckoutNamespace0, Session, SessionResource } from './Sessions.js';
|
|
3
3
|
export { Session } from './Sessions.js';
|
|
4
4
|
export declare class Checkout {
|
|
5
5
|
private readonly stripe;
|
|
@@ -7,5 +7,11 @@ export declare class Checkout {
|
|
|
7
7
|
constructor(stripe: Stripe);
|
|
8
8
|
}
|
|
9
9
|
export declare namespace Checkout {
|
|
10
|
+
export type SessionListParams = CheckoutNamespace0.SessionListParams;
|
|
11
|
+
export type SessionCreateParams = CheckoutNamespace0.SessionCreateParams;
|
|
12
|
+
export type SessionRetrieveParams = CheckoutNamespace0.SessionRetrieveParams;
|
|
13
|
+
export type SessionUpdateParams = CheckoutNamespace0.SessionUpdateParams;
|
|
14
|
+
export type SessionExpireParams = CheckoutNamespace0.SessionExpireParams;
|
|
15
|
+
export type SessionListLineItemsParams = CheckoutNamespace0.SessionListLineItemsParams;
|
|
10
16
|
export { Session };
|
|
11
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Checkout/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Checkout/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,+CAIuB;AAIvB,MAAa,QAAQ;IAGnB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAAe,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF;AAND,4BAMC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { Order, OrderResource } from './Orders.js';
|
|
3
|
-
import { Product, ProductResource } from './Products.js';
|
|
4
|
-
import { Supplier, SupplierResource } from './Suppliers.js';
|
|
2
|
+
import { Climate as ClimateNamespace0, Order, OrderResource } from './Orders.js';
|
|
3
|
+
import { Climate as ClimateNamespace1, Product, ProductResource } from './Products.js';
|
|
4
|
+
import { Climate as ClimateNamespace2, Supplier, SupplierResource } from './Suppliers.js';
|
|
5
5
|
export { Order } from './Orders.js';
|
|
6
6
|
export { Product } from './Products.js';
|
|
7
7
|
export { Supplier } from './Suppliers.js';
|
|
@@ -13,7 +13,16 @@ export declare class Climate {
|
|
|
13
13
|
constructor(stripe: Stripe);
|
|
14
14
|
}
|
|
15
15
|
export declare namespace Climate {
|
|
16
|
+
export type OrderListParams = ClimateNamespace0.OrderListParams;
|
|
17
|
+
export type OrderCreateParams = ClimateNamespace0.OrderCreateParams;
|
|
18
|
+
export type OrderRetrieveParams = ClimateNamespace0.OrderRetrieveParams;
|
|
19
|
+
export type OrderUpdateParams = ClimateNamespace0.OrderUpdateParams;
|
|
20
|
+
export type OrderCancelParams = ClimateNamespace0.OrderCancelParams;
|
|
16
21
|
export { Order };
|
|
22
|
+
export type ProductListParams = ClimateNamespace1.ProductListParams;
|
|
23
|
+
export type ProductRetrieveParams = ClimateNamespace1.ProductRetrieveParams;
|
|
17
24
|
export { Product };
|
|
25
|
+
export type SupplierListParams = ClimateNamespace2.SupplierListParams;
|
|
26
|
+
export type SupplierRetrieveParams = ClimateNamespace2.SupplierRetrieveParams;
|
|
18
27
|
export { Supplier };
|
|
19
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Climate/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Climate/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,2CAA+E;AAC/E,+CAIuB;AACvB,iDAIwB;AAMxB,MAAa,OAAO;IAKlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAAe,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,IAAI,+BAAgB,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;CACF;AAVD,0BAUC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { ActiveEntitlement, ActiveEntitlementResource } from './ActiveEntitlements.js';
|
|
3
|
-
import { Feature, FeatureResource } from './Features.js';
|
|
2
|
+
import { Entitlements as EntitlementsNamespace0, ActiveEntitlement, ActiveEntitlementResource } from './ActiveEntitlements.js';
|
|
3
|
+
import { Entitlements as EntitlementsNamespace1, Feature, FeatureResource } from './Features.js';
|
|
4
4
|
import { ActiveEntitlementSummary } from './ActiveEntitlementSummaries.js';
|
|
5
5
|
export { ActiveEntitlement } from './ActiveEntitlements.js';
|
|
6
6
|
export { Feature } from './Features.js';
|
|
7
|
+
export { ActiveEntitlementSummary } from './ActiveEntitlementSummaries.js';
|
|
7
8
|
export declare class Entitlements {
|
|
8
9
|
private readonly stripe;
|
|
9
10
|
activeEntitlements: ActiveEntitlementResource;
|
|
@@ -11,7 +12,13 @@ export declare class Entitlements {
|
|
|
11
12
|
constructor(stripe: Stripe);
|
|
12
13
|
}
|
|
13
14
|
export declare namespace Entitlements {
|
|
15
|
+
export type ActiveEntitlementListParams = EntitlementsNamespace0.ActiveEntitlementListParams;
|
|
16
|
+
export type ActiveEntitlementRetrieveParams = EntitlementsNamespace0.ActiveEntitlementRetrieveParams;
|
|
14
17
|
export { ActiveEntitlement };
|
|
18
|
+
export type FeatureListParams = EntitlementsNamespace1.FeatureListParams;
|
|
19
|
+
export type FeatureCreateParams = EntitlementsNamespace1.FeatureCreateParams;
|
|
20
|
+
export type FeatureRetrieveParams = EntitlementsNamespace1.FeatureRetrieveParams;
|
|
21
|
+
export type FeatureUpdateParams = EntitlementsNamespace1.FeatureUpdateParams;
|
|
15
22
|
export { Feature };
|
|
16
23
|
export { ActiveEntitlementSummary };
|
|
17
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Entitlements/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Entitlements/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,mEAIiC;AACjC,+CAIuB;AAOvB,MAAa,YAAY;IAIvB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,kBAAkB,GAAG,IAAI,iDAAyB,CAAC,MAAM,CAAC,CAAC;QAChE,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAAe,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF;AARD,oCAQC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { Account, AccountResource } from './Accounts.js';
|
|
3
|
-
import { Authorization, AuthorizationResource } from './Authorizations.js';
|
|
4
|
-
import { Institution, InstitutionResource } from './Institutions.js';
|
|
5
|
-
import { Session, SessionResource } from './Sessions.js';
|
|
6
|
-
import { Transaction, TransactionResource } from './Transactions.js';
|
|
2
|
+
import { FinancialConnections as FinancialConnectionsNamespace0, Account, AccountResource } from './Accounts.js';
|
|
3
|
+
import { FinancialConnections as FinancialConnectionsNamespace1, Authorization, AuthorizationResource } from './Authorizations.js';
|
|
4
|
+
import { FinancialConnections as FinancialConnectionsNamespace2, Institution, InstitutionResource } from './Institutions.js';
|
|
5
|
+
import { FinancialConnections as FinancialConnectionsNamespace3, Session, SessionResource } from './Sessions.js';
|
|
6
|
+
import { FinancialConnections as FinancialConnectionsNamespace4, Transaction, TransactionResource } from './Transactions.js';
|
|
7
7
|
import { AccountOwner } from './AccountOwners.js';
|
|
8
8
|
import { AccountOwnership } from './AccountOwnerships.js';
|
|
9
9
|
import { AccountInferredBalance } from './AccountInferredBalances.js';
|
|
@@ -12,6 +12,9 @@ export { Authorization } from './Authorizations.js';
|
|
|
12
12
|
export { Institution } from './Institutions.js';
|
|
13
13
|
export { Session } from './Sessions.js';
|
|
14
14
|
export { Transaction } from './Transactions.js';
|
|
15
|
+
export { AccountOwner } from './AccountOwners.js';
|
|
16
|
+
export { AccountOwnership } from './AccountOwnerships.js';
|
|
17
|
+
export { AccountInferredBalance } from './AccountInferredBalances.js';
|
|
15
18
|
export declare class FinancialConnections {
|
|
16
19
|
private readonly stripe;
|
|
17
20
|
accounts: AccountResource;
|
|
@@ -22,10 +25,25 @@ export declare class FinancialConnections {
|
|
|
22
25
|
constructor(stripe: Stripe);
|
|
23
26
|
}
|
|
24
27
|
export declare namespace FinancialConnections {
|
|
28
|
+
export type AccountListParams = FinancialConnectionsNamespace0.AccountListParams;
|
|
29
|
+
export type AccountRetrieveParams = FinancialConnectionsNamespace0.AccountRetrieveParams;
|
|
30
|
+
export type AccountDisconnectParams = FinancialConnectionsNamespace0.AccountDisconnectParams;
|
|
31
|
+
export type AccountRefreshParams = FinancialConnectionsNamespace0.AccountRefreshParams;
|
|
32
|
+
export type AccountSubscribeParams = FinancialConnectionsNamespace0.AccountSubscribeParams;
|
|
33
|
+
export type AccountUnsubscribeParams = FinancialConnectionsNamespace0.AccountUnsubscribeParams;
|
|
34
|
+
export type AccountListInferredBalancesParams = FinancialConnectionsNamespace0.AccountListInferredBalancesParams;
|
|
35
|
+
export type AccountListOwnersParams = FinancialConnectionsNamespace0.AccountListOwnersParams;
|
|
25
36
|
export { Account };
|
|
37
|
+
export type AuthorizationRetrieveParams = FinancialConnectionsNamespace1.AuthorizationRetrieveParams;
|
|
26
38
|
export { Authorization };
|
|
39
|
+
export type InstitutionListParams = FinancialConnectionsNamespace2.InstitutionListParams;
|
|
40
|
+
export type InstitutionRetrieveParams = FinancialConnectionsNamespace2.InstitutionRetrieveParams;
|
|
27
41
|
export { Institution };
|
|
42
|
+
export type SessionRetrieveParams = FinancialConnectionsNamespace3.SessionRetrieveParams;
|
|
43
|
+
export type SessionCreateParams = FinancialConnectionsNamespace3.SessionCreateParams;
|
|
28
44
|
export { Session };
|
|
45
|
+
export type TransactionListParams = FinancialConnectionsNamespace4.TransactionListParams;
|
|
46
|
+
export type TransactionRetrieveParams = FinancialConnectionsNamespace4.TransactionRetrieveParams;
|
|
29
47
|
export { Transaction };
|
|
30
48
|
export { AccountOwner };
|
|
31
49
|
export { AccountOwnership };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/FinancialConnections/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/FinancialConnections/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,+CAIuB;AACvB,2DAI6B;AAC7B,uDAI2B;AAC3B,+CAIuB;AACvB,uDAI2B;AAc3B,MAAa,oBAAoB;IAO/B,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAAe,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,cAAc,GAAG,IAAI,yCAAqB,CAAC,MAAM,CAAC,CAAC;QACxD,IAAI,CAAC,YAAY,GAAG,IAAI,qCAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAAe,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,IAAI,qCAAmB,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;CACF;AAdD,oDAcC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { Request, RequestResource } from './Requests.js';
|
|
2
|
+
import { Forwarding as ForwardingNamespace0, Request, RequestResource } from './Requests.js';
|
|
3
3
|
export { Request } from './Requests.js';
|
|
4
4
|
export declare class Forwarding {
|
|
5
5
|
private readonly stripe;
|
|
@@ -7,5 +7,8 @@ export declare class Forwarding {
|
|
|
7
7
|
constructor(stripe: Stripe);
|
|
8
8
|
}
|
|
9
9
|
export declare namespace Forwarding {
|
|
10
|
+
export type RequestListParams = ForwardingNamespace0.RequestListParams;
|
|
11
|
+
export type RequestCreateParams = ForwardingNamespace0.RequestCreateParams;
|
|
12
|
+
export type RequestRetrieveParams = ForwardingNamespace0.RequestRetrieveParams;
|
|
10
13
|
export { Request };
|
|
11
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Forwarding/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Forwarding/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,+CAIuB;AAIvB,MAAa,UAAU;IAGrB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAAe,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF;AAND,gCAMC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Stripe } from '../../stripe.core.js';
|
|
2
|
-
import { VerificationReport, VerificationReportResource } from './VerificationReports.js';
|
|
3
|
-
import { VerificationSession, VerificationSessionResource } from './VerificationSessions.js';
|
|
2
|
+
import { Identity as IdentityNamespace0, VerificationReport, VerificationReportResource } from './VerificationReports.js';
|
|
3
|
+
import { Identity as IdentityNamespace1, VerificationSession, VerificationSessionResource } from './VerificationSessions.js';
|
|
4
4
|
export { VerificationReport } from './VerificationReports.js';
|
|
5
5
|
export { VerificationSession } from './VerificationSessions.js';
|
|
6
6
|
export declare class Identity {
|
|
@@ -10,6 +10,14 @@ export declare class Identity {
|
|
|
10
10
|
constructor(stripe: Stripe);
|
|
11
11
|
}
|
|
12
12
|
export declare namespace Identity {
|
|
13
|
+
export type VerificationReportListParams = IdentityNamespace0.VerificationReportListParams;
|
|
14
|
+
export type VerificationReportRetrieveParams = IdentityNamespace0.VerificationReportRetrieveParams;
|
|
13
15
|
export { VerificationReport };
|
|
16
|
+
export type VerificationSessionListParams = IdentityNamespace1.VerificationSessionListParams;
|
|
17
|
+
export type VerificationSessionCreateParams = IdentityNamespace1.VerificationSessionCreateParams;
|
|
18
|
+
export type VerificationSessionRetrieveParams = IdentityNamespace1.VerificationSessionRetrieveParams;
|
|
19
|
+
export type VerificationSessionUpdateParams = IdentityNamespace1.VerificationSessionUpdateParams;
|
|
20
|
+
export type VerificationSessionCancelParams = IdentityNamespace1.VerificationSessionCancelParams;
|
|
21
|
+
export type VerificationSessionRedactParams = IdentityNamespace1.VerificationSessionRedactParams;
|
|
14
22
|
export { VerificationSession };
|
|
15
23
|
}
|