@stigg/typescript 0.1.0-alpha.1 → 0.1.0-alpha.3
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 +20 -0
- package/README.md +31 -0
- package/core/pagination.d.mts +11 -5
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +11 -5
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +9 -9
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +9 -9
- package/core/pagination.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v1/coupons.d.mts +100 -86
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +100 -86
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +8 -4
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +8 -4
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +101 -96
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +101 -96
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +11 -7
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +11 -7
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +5 -2
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +5 -2
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +2 -2
- package/resources/v1/customers/payment-method.mjs +2 -2
- package/resources/v1/customers/usage.d.mts +0 -94
- package/resources/v1/customers/usage.d.mts.map +1 -1
- package/resources/v1/customers/usage.d.ts +0 -94
- package/resources/v1/customers/usage.d.ts.map +1 -1
- package/resources/v1/customers/usage.js +0 -11
- package/resources/v1/customers/usage.js.map +1 -1
- package/resources/v1/customers/usage.mjs +0 -11
- package/resources/v1/customers/usage.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +8 -2
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +8 -2
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +2 -2
- package/resources/v1/subscriptions/future-update.mjs +2 -2
- package/resources/v1/subscriptions/index.d.mts +1 -1
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +1 -1
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +1092 -111
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +1092 -111
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +12 -8
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +12 -8
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/v1.d.mts +32 -9
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +32 -9
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/core/pagination.ts +24 -18
- package/src/resources/v1/coupons.ts +223 -212
- package/src/resources/v1/customers/customers.ts +121 -120
- package/src/resources/v1/customers/index.ts +2 -1
- package/src/resources/v1/customers/payment-method.ts +5 -2
- package/src/resources/v1/customers/usage.ts +1 -128
- package/src/resources/v1/index.ts +3 -0
- package/src/resources/v1/subscriptions/future-update.ts +8 -2
- package/src/resources/v1/subscriptions/index.ts +1 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +2201 -153
- package/src/resources/v1/v1.ts +32 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -8,6 +8,7 @@ const PaymentMethodAPI = tslib_1.__importStar(require("./payment-method.js"));
|
|
|
8
8
|
const payment_method_1 = require("./payment-method.js");
|
|
9
9
|
const UsageAPI = tslib_1.__importStar(require("./usage.js"));
|
|
10
10
|
const usage_1 = require("./usage.js");
|
|
11
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
11
12
|
const path_1 = require("../../../internal/utils/path.js");
|
|
12
13
|
class Customers extends resource_1.APIResource {
|
|
13
14
|
constructor() {
|
|
@@ -16,37 +17,40 @@ class Customers extends resource_1.APIResource {
|
|
|
16
17
|
this.usage = new UsageAPI.Usage(this._client);
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* Provision customer
|
|
20
21
|
*/
|
|
21
22
|
create(body, options) {
|
|
22
23
|
return this._client.post('/api/v1/customers', { body, ...options });
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
|
-
* Get a single
|
|
26
|
+
* Get a single customer by ID
|
|
26
27
|
*/
|
|
27
28
|
retrieve(id, options) {
|
|
28
29
|
return this._client.get((0, path_1.path) `/api/v1/customers/${id}`, options);
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
|
-
* Update
|
|
32
|
+
* Update a customer
|
|
32
33
|
*/
|
|
33
34
|
update(id, body, options) {
|
|
34
35
|
return this._client.patch((0, path_1.path) `/api/v1/customers/${id}`, { body, ...options });
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
|
-
* Get a list of
|
|
38
|
+
* Get a list of customers
|
|
38
39
|
*/
|
|
39
40
|
list(query = {}, options) {
|
|
40
|
-
return this._client.
|
|
41
|
+
return this._client.getAPIList('/api/v1/customers', (pagination_1.MyCursorIDPage), {
|
|
42
|
+
query,
|
|
43
|
+
...options,
|
|
44
|
+
});
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
47
|
+
* Archive customer
|
|
44
48
|
*/
|
|
45
49
|
archive(id, options) {
|
|
46
50
|
return this._client.post((0, path_1.path) `/api/v1/customers/${id}/archive`, options);
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
|
-
*
|
|
53
|
+
* Unarchive customer
|
|
50
54
|
*/
|
|
51
55
|
unarchive(id, options) {
|
|
52
56
|
return this._client.post((0, path_1.path) `/api/v1/customers/${id}/unarchive`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,8EAAqD;AACrD,wDAA4E;AAC5E,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,8EAAqD;AACrD,wDAA4E;AAC5E,6DAAoC;AACpC,sCAAgC;AAEhC,4DAAkG;AAElG,0DAAoD;AAEpD,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiD3D,CAAC;IA/CC;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAA0B,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,2BAAoC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,EAAU,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,EAAU,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AAnDD,8BAmDC;AA0ZD,SAAS,CAAC,aAAa,GAAG,8BAAa,CAAC;AACxC,SAAS,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -4,6 +4,7 @@ import * as PaymentMethodAPI from "./payment-method.mjs";
|
|
|
4
4
|
import { PaymentMethod } from "./payment-method.mjs";
|
|
5
5
|
import * as UsageAPI from "./usage.mjs";
|
|
6
6
|
import { Usage } from "./usage.mjs";
|
|
7
|
+
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
7
8
|
import { path } from "../../../internal/utils/path.mjs";
|
|
8
9
|
export class Customers extends APIResource {
|
|
9
10
|
constructor() {
|
|
@@ -12,37 +13,40 @@ export class Customers extends APIResource {
|
|
|
12
13
|
this.usage = new UsageAPI.Usage(this._client);
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Provision customer
|
|
16
17
|
*/
|
|
17
18
|
create(body, options) {
|
|
18
19
|
return this._client.post('/api/v1/customers', { body, ...options });
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
|
-
* Get a single
|
|
22
|
+
* Get a single customer by ID
|
|
22
23
|
*/
|
|
23
24
|
retrieve(id, options) {
|
|
24
25
|
return this._client.get(path `/api/v1/customers/${id}`, options);
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
|
-
* Update
|
|
28
|
+
* Update a customer
|
|
28
29
|
*/
|
|
29
30
|
update(id, body, options) {
|
|
30
31
|
return this._client.patch(path `/api/v1/customers/${id}`, { body, ...options });
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
|
-
* Get a list of
|
|
34
|
+
* Get a list of customers
|
|
34
35
|
*/
|
|
35
36
|
list(query = {}, options) {
|
|
36
|
-
return this._client.
|
|
37
|
+
return this._client.getAPIList('/api/v1/customers', (MyCursorIDPage), {
|
|
38
|
+
query,
|
|
39
|
+
...options,
|
|
40
|
+
});
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
39
|
-
*
|
|
43
|
+
* Archive customer
|
|
40
44
|
*/
|
|
41
45
|
archive(id, options) {
|
|
42
46
|
return this._client.post(path `/api/v1/customers/${id}/archive`, options);
|
|
43
47
|
}
|
|
44
48
|
/**
|
|
45
|
-
*
|
|
49
|
+
* Unarchive customer
|
|
46
50
|
*/
|
|
47
51
|
unarchive(id, options) {
|
|
48
52
|
return this._client.post(path `/api/v1/customers/${id}/unarchive`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAA6B;OAC5C,KAAK,QAAQ;OACb,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAA6B;OAC5C,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE;OAET,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiD3D,CAAC;IA/CC;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,IAA0B,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,cAAoC,CAAA,EAAE;YACxF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,EAAU,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,EAAU,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AA0ZD,SAAS,CAAC,aAAa,GAAG,aAAa,CAAC;AACxC,SAAS,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Customers, type CustomerResponse, type CustomerListResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, } from "./customers.mjs";
|
|
1
|
+
export { Customers, type CustomerResponse, type CustomerListResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerListResponsesMyCursorIDPage, } from "./customers.mjs";
|
|
2
2
|
export { PaymentMethod, type PaymentMethodAttachParams } from "./payment-method.mjs";
|
|
3
|
-
export { Usage
|
|
3
|
+
export { Usage } from "./usage.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mCAAmC,GACzC;OACM,EAAE,aAAa,EAAE,KAAK,yBAAyB,EAAE;OACjD,EAAE,KAAK,EAAE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Customers, type CustomerResponse, type CustomerListResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, } from "./customers.js";
|
|
1
|
+
export { Customers, type CustomerResponse, type CustomerListResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerListResponsesMyCursorIDPage, } from "./customers.js";
|
|
2
2
|
export { PaymentMethod, type PaymentMethodAttachParams } from "./payment-method.js";
|
|
3
|
-
export { Usage
|
|
3
|
+
export { Usage } from "./usage.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mCAAmC,GACzC;OACM,EAAE,aAAa,EAAE,KAAK,yBAAyB,EAAE;OACjD,EAAE,KAAK,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAQqB;AAPnB,sGAAA,SAAS,OAAA;AAQX,sDAAiF;AAAxE,+GAAA,aAAa,OAAA;AACtB,oCAAgC;AAAvB,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAOV;OACM,EAAE,aAAa,EAAkC;OACjD,EAAE,KAAK,EAAE"}
|
|
@@ -4,11 +4,11 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
5
|
export declare class PaymentMethod extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Attach payment method
|
|
8
8
|
*/
|
|
9
9
|
attach(id: string, body: PaymentMethodAttachParams, options?: RequestOptions): APIPromise<CustomersAPI.CustomerResponse>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Detach payment method
|
|
12
12
|
*/
|
|
13
13
|
detach(id: string, options?: RequestOptions): APIPromise<CustomersAPI.CustomerResponse>;
|
|
14
14
|
}
|
|
@@ -25,6 +25,9 @@ export interface PaymentMethodAttachParams {
|
|
|
25
25
|
* The vendor identifier of integration
|
|
26
26
|
*/
|
|
27
27
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
28
|
+
/**
|
|
29
|
+
* Customers selected currency
|
|
30
|
+
*/
|
|
28
31
|
billingCurrency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf' | null;
|
|
29
32
|
}
|
|
30
33
|
export declare namespace PaymentMethod {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/payment-method.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC;IAI5C;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC;CAGxF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,gBAAgB,EACZ,OAAO,GACP,OAAO,GACP,QAAQ,GACR,SAAS,GACT,iBAAiB,GACjB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,UAAU,GACV,WAAW,CAAC;IAEhB,eAAe,CAAC,EACZ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,IAAI,CAAC;CACV;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
1
|
+
{"version":3,"file":"payment-method.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/payment-method.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC;IAI5C;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC;CAGxF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,gBAAgB,EACZ,OAAO,GACP,OAAO,GACP,QAAQ,GACR,SAAS,GACT,iBAAiB,GACjB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,UAAU,GACV,WAAW,CAAC;IAEhB;;OAEG;IACH,eAAe,CAAC,EACZ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,IAAI,CAAC;CACV;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -4,11 +4,11 @@ import { APIPromise } from "../../../core/api-promise.js";
|
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
export declare class PaymentMethod extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Attach payment method
|
|
8
8
|
*/
|
|
9
9
|
attach(id: string, body: PaymentMethodAttachParams, options?: RequestOptions): APIPromise<CustomersAPI.CustomerResponse>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Detach payment method
|
|
12
12
|
*/
|
|
13
13
|
detach(id: string, options?: RequestOptions): APIPromise<CustomersAPI.CustomerResponse>;
|
|
14
14
|
}
|
|
@@ -25,6 +25,9 @@ export interface PaymentMethodAttachParams {
|
|
|
25
25
|
* The vendor identifier of integration
|
|
26
26
|
*/
|
|
27
27
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
28
|
+
/**
|
|
29
|
+
* Customers selected currency
|
|
30
|
+
*/
|
|
28
31
|
billingCurrency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf' | null;
|
|
29
32
|
}
|
|
30
33
|
export declare namespace PaymentMethod {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/payment-method.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC;IAI5C;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC;CAGxF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,gBAAgB,EACZ,OAAO,GACP,OAAO,GACP,QAAQ,GACR,SAAS,GACT,iBAAiB,GACjB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,UAAU,GACV,WAAW,CAAC;IAEhB,eAAe,CAAC,EACZ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,IAAI,CAAC;CACV;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
1
|
+
{"version":3,"file":"payment-method.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/payment-method.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC;IAI5C;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC;CAGxF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,gBAAgB,EACZ,OAAO,GACP,OAAO,GACP,QAAQ,GACR,SAAS,GACT,iBAAiB,GACjB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,UAAU,GACV,WAAW,CAAC;IAEhB;;OAEG;IACH,eAAe,CAAC,EACZ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,IAAI,CAAC;CACV;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -6,13 +6,13 @@ const resource_1 = require("../../../core/resource.js");
|
|
|
6
6
|
const path_1 = require("../../../internal/utils/path.js");
|
|
7
7
|
class PaymentMethod extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Attach payment method
|
|
10
10
|
*/
|
|
11
11
|
attach(id, body, options) {
|
|
12
12
|
return this._client.post((0, path_1.path) `/api/v1/customers/${id}/payment-method`, { body, ...options });
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Detach payment method
|
|
16
16
|
*/
|
|
17
17
|
detach(id, options) {
|
|
18
18
|
return this._client.delete((0, path_1.path) `/api/v1/customers/${id}/payment-method`, options);
|
|
@@ -3,13 +3,13 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
4
|
export class PaymentMethod extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Attach payment method
|
|
7
7
|
*/
|
|
8
8
|
attach(id, body, options) {
|
|
9
9
|
return this._client.post(path `/api/v1/customers/${id}/payment-method`, { body, ...options });
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Detach payment method
|
|
13
13
|
*/
|
|
14
14
|
detach(id, options) {
|
|
15
15
|
return this._client.delete(path `/api/v1/customers/${id}/payment-method`, options);
|
|
@@ -1,98 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
2
|
export declare class Usage extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Perform retrieval on a Usage history
|
|
7
|
-
*/
|
|
8
|
-
retrieve(featureID: string, params: UsageRetrieveParams, options?: RequestOptions): APIPromise<UsageRetrieveResponse>;
|
|
9
|
-
}
|
|
10
|
-
export interface UsageRetrieveResponse {
|
|
11
|
-
data: UsageRetrieveResponse.Data;
|
|
12
|
-
}
|
|
13
|
-
export declare namespace UsageRetrieveResponse {
|
|
14
|
-
interface Data {
|
|
15
|
-
/**
|
|
16
|
-
* Markers for events that affecting feature usage
|
|
17
|
-
*/
|
|
18
|
-
markers: Array<Data.Marker>;
|
|
19
|
-
/**
|
|
20
|
-
* Series of usage history
|
|
21
|
-
*/
|
|
22
|
-
series: Array<Data.Series>;
|
|
23
|
-
}
|
|
24
|
-
namespace Data {
|
|
25
|
-
interface Marker {
|
|
26
|
-
/**
|
|
27
|
-
* Timestamp of the marker
|
|
28
|
-
*/
|
|
29
|
-
timestamp: string;
|
|
30
|
-
/**
|
|
31
|
-
* Type of marker for a usage history point
|
|
32
|
-
*/
|
|
33
|
-
type: 'PERIODIC_RESET' | 'SUBSCRIPTION_CHANGE_RESET';
|
|
34
|
-
}
|
|
35
|
-
interface Series {
|
|
36
|
-
/**
|
|
37
|
-
* Points in the usage history series
|
|
38
|
-
*/
|
|
39
|
-
points: Array<Series.Point>;
|
|
40
|
-
/**
|
|
41
|
-
* Tags for the usage history series
|
|
42
|
-
*/
|
|
43
|
-
tags: Array<Series.Tag>;
|
|
44
|
-
}
|
|
45
|
-
namespace Series {
|
|
46
|
-
interface Point {
|
|
47
|
-
/**
|
|
48
|
-
* Indicates whether there was usage reset in this point, see `markers` for details
|
|
49
|
-
*/
|
|
50
|
-
isResetPoint: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Timestamp of the usage history point
|
|
53
|
-
*/
|
|
54
|
-
timestamp: string;
|
|
55
|
-
/**
|
|
56
|
-
* Value of the usage history point
|
|
57
|
-
*/
|
|
58
|
-
value: number;
|
|
59
|
-
}
|
|
60
|
-
interface Tag {
|
|
61
|
-
/**
|
|
62
|
-
* Key of the tag
|
|
63
|
-
*/
|
|
64
|
-
key: string;
|
|
65
|
-
/**
|
|
66
|
-
* Value of the tag
|
|
67
|
-
*/
|
|
68
|
-
value: string;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
export interface UsageRetrieveParams {
|
|
74
|
-
/**
|
|
75
|
-
* Path param: Customer id
|
|
76
|
-
*/
|
|
77
|
-
customerId: string;
|
|
78
|
-
/**
|
|
79
|
-
* Query param: The start date of the range
|
|
80
|
-
*/
|
|
81
|
-
startDate: string;
|
|
82
|
-
/**
|
|
83
|
-
* Query param: The end date of the range
|
|
84
|
-
*/
|
|
85
|
-
endDate?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Query param
|
|
88
|
-
*/
|
|
89
|
-
groupBy?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Query param: Resource id
|
|
92
|
-
*/
|
|
93
|
-
resourceId?: string | null;
|
|
94
|
-
}
|
|
95
|
-
export declare namespace Usage {
|
|
96
|
-
export { type UsageRetrieveResponse as UsageRetrieveResponse, type UsageRetrieveParams as UsageRetrieveParams, };
|
|
97
3
|
}
|
|
98
4
|
//# sourceMappingURL=usage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG"}
|
|
@@ -1,98 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
2
|
export declare class Usage extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Perform retrieval on a Usage history
|
|
7
|
-
*/
|
|
8
|
-
retrieve(featureID: string, params: UsageRetrieveParams, options?: RequestOptions): APIPromise<UsageRetrieveResponse>;
|
|
9
|
-
}
|
|
10
|
-
export interface UsageRetrieveResponse {
|
|
11
|
-
data: UsageRetrieveResponse.Data;
|
|
12
|
-
}
|
|
13
|
-
export declare namespace UsageRetrieveResponse {
|
|
14
|
-
interface Data {
|
|
15
|
-
/**
|
|
16
|
-
* Markers for events that affecting feature usage
|
|
17
|
-
*/
|
|
18
|
-
markers: Array<Data.Marker>;
|
|
19
|
-
/**
|
|
20
|
-
* Series of usage history
|
|
21
|
-
*/
|
|
22
|
-
series: Array<Data.Series>;
|
|
23
|
-
}
|
|
24
|
-
namespace Data {
|
|
25
|
-
interface Marker {
|
|
26
|
-
/**
|
|
27
|
-
* Timestamp of the marker
|
|
28
|
-
*/
|
|
29
|
-
timestamp: string;
|
|
30
|
-
/**
|
|
31
|
-
* Type of marker for a usage history point
|
|
32
|
-
*/
|
|
33
|
-
type: 'PERIODIC_RESET' | 'SUBSCRIPTION_CHANGE_RESET';
|
|
34
|
-
}
|
|
35
|
-
interface Series {
|
|
36
|
-
/**
|
|
37
|
-
* Points in the usage history series
|
|
38
|
-
*/
|
|
39
|
-
points: Array<Series.Point>;
|
|
40
|
-
/**
|
|
41
|
-
* Tags for the usage history series
|
|
42
|
-
*/
|
|
43
|
-
tags: Array<Series.Tag>;
|
|
44
|
-
}
|
|
45
|
-
namespace Series {
|
|
46
|
-
interface Point {
|
|
47
|
-
/**
|
|
48
|
-
* Indicates whether there was usage reset in this point, see `markers` for details
|
|
49
|
-
*/
|
|
50
|
-
isResetPoint: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Timestamp of the usage history point
|
|
53
|
-
*/
|
|
54
|
-
timestamp: string;
|
|
55
|
-
/**
|
|
56
|
-
* Value of the usage history point
|
|
57
|
-
*/
|
|
58
|
-
value: number;
|
|
59
|
-
}
|
|
60
|
-
interface Tag {
|
|
61
|
-
/**
|
|
62
|
-
* Key of the tag
|
|
63
|
-
*/
|
|
64
|
-
key: string;
|
|
65
|
-
/**
|
|
66
|
-
* Value of the tag
|
|
67
|
-
*/
|
|
68
|
-
value: string;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
export interface UsageRetrieveParams {
|
|
74
|
-
/**
|
|
75
|
-
* Path param: Customer id
|
|
76
|
-
*/
|
|
77
|
-
customerId: string;
|
|
78
|
-
/**
|
|
79
|
-
* Query param: The start date of the range
|
|
80
|
-
*/
|
|
81
|
-
startDate: string;
|
|
82
|
-
/**
|
|
83
|
-
* Query param: The end date of the range
|
|
84
|
-
*/
|
|
85
|
-
endDate?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Query param
|
|
88
|
-
*/
|
|
89
|
-
groupBy?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Query param: Resource id
|
|
92
|
-
*/
|
|
93
|
-
resourceId?: string | null;
|
|
94
|
-
}
|
|
95
|
-
export declare namespace Usage {
|
|
96
|
-
export { type UsageRetrieveResponse as UsageRetrieveResponse, type UsageRetrieveParams as UsageRetrieveParams, };
|
|
97
3
|
}
|
|
98
4
|
//# sourceMappingURL=usage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG"}
|
|
@@ -3,18 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Usage = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
7
6
|
class Usage extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Perform retrieval on a Usage history
|
|
10
|
-
*/
|
|
11
|
-
retrieve(featureID, params, options) {
|
|
12
|
-
const { customerId, ...query } = params;
|
|
13
|
-
return this._client.get((0, path_1.path) `/api/v1/customers/${customerId}/usage/features/${featureID}`, {
|
|
14
|
-
query,
|
|
15
|
-
...options,
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
7
|
}
|
|
19
8
|
exports.Usage = Usage;
|
|
20
9
|
//# sourceMappingURL=usage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,MAAa,KAAM,SAAQ,sBAAW;CAAG;AAAzC,sBAAyC"}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
4
3
|
export class Usage extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Perform retrieval on a Usage history
|
|
7
|
-
*/
|
|
8
|
-
retrieve(featureID, params, options) {
|
|
9
|
-
const { customerId, ...query } = params;
|
|
10
|
-
return this._client.get(path `/api/v1/customers/${customerId}/usage/features/${featureID}`, {
|
|
11
|
-
query,
|
|
12
|
-
...options,
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
4
|
}
|
|
16
5
|
//# sourceMappingURL=usage.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,KAAM,SAAQ,WAAW;CAAG"}
|
package/resources/v1/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Coupons, type CouponCreateResponse, type CouponRetrieveResponse, type CouponListResponse, type CouponCreateParams, type CouponListParams, } from "./coupons.mjs";
|
|
2
|
-
export { Customers, type CustomerResponse, type CustomerListResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, } from "./customers/index.mjs";
|
|
3
|
-
export { Subscriptions, type SubscriptionCreateResponse, type SubscriptionRetrieveResponse, type SubscriptionListResponse, type SubscriptionDelegateResponse, type SubscriptionMigrateResponse, type SubscriptionPreviewResponse, type SubscriptionTransferResponse, type SubscriptionCreateParams, type SubscriptionListParams, type SubscriptionDelegateParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionTransferParams, } from "./subscriptions/index.mjs";
|
|
1
|
+
export { Coupons, type CouponCreateResponse, type CouponRetrieveResponse, type CouponListResponse, type CouponCreateParams, type CouponListParams, type CouponListResponsesMyCursorIDPage, } from "./coupons.mjs";
|
|
2
|
+
export { Customers, type CustomerResponse, type CustomerListResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerListResponsesMyCursorIDPage, } from "./customers/index.mjs";
|
|
3
|
+
export { Subscriptions, type SubscriptionCreateResponse, type SubscriptionRetrieveResponse, type SubscriptionListResponse, type SubscriptionDelegateResponse, type SubscriptionMigrateResponse, type SubscriptionPreviewResponse, type SubscriptionTransferResponse, type SubscriptionCreateParams, type SubscriptionListParams, type SubscriptionDelegateParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions/index.mjs";
|
|
4
4
|
export { V1, type V1CreateEventResponse, type V1CreateUsageResponse, type V1CreateEventParams, type V1CreateUsageParams, } from "./v1.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iCAAiC,GACvC;OACM,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mCAAmC,GACzC;OACM,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,GAC7C;OACM,EACL,EAAE,EACF,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Coupons, type CouponCreateResponse, type CouponRetrieveResponse, type CouponListResponse, type CouponCreateParams, type CouponListParams, } from "./coupons.js";
|
|
2
|
-
export { Customers, type CustomerResponse, type CustomerListResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, } from "./customers/index.js";
|
|
3
|
-
export { Subscriptions, type SubscriptionCreateResponse, type SubscriptionRetrieveResponse, type SubscriptionListResponse, type SubscriptionDelegateResponse, type SubscriptionMigrateResponse, type SubscriptionPreviewResponse, type SubscriptionTransferResponse, type SubscriptionCreateParams, type SubscriptionListParams, type SubscriptionDelegateParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionTransferParams, } from "./subscriptions/index.js";
|
|
1
|
+
export { Coupons, type CouponCreateResponse, type CouponRetrieveResponse, type CouponListResponse, type CouponCreateParams, type CouponListParams, type CouponListResponsesMyCursorIDPage, } from "./coupons.js";
|
|
2
|
+
export { Customers, type CustomerResponse, type CustomerListResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomerListResponsesMyCursorIDPage, } from "./customers/index.js";
|
|
3
|
+
export { Subscriptions, type SubscriptionCreateResponse, type SubscriptionRetrieveResponse, type SubscriptionListResponse, type SubscriptionDelegateResponse, type SubscriptionMigrateResponse, type SubscriptionPreviewResponse, type SubscriptionTransferResponse, type SubscriptionCreateParams, type SubscriptionListParams, type SubscriptionDelegateParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions/index.js";
|
|
4
4
|
export { V1, type V1CreateEventResponse, type V1CreateUsageResponse, type V1CreateEventParams, type V1CreateUsageParams, } from "./v1.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iCAAiC,GACvC;OACM,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mCAAmC,GACzC;OACM,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,GAC7C;OACM,EACL,EAAE,EACF,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,8CAQ2B;AAPzB,kGAAA,SAAS,OAAA;AAQX,kDAgB+B;AAf7B,sGAAA,aAAa,OAAA;AAgBf,8BAMc;AALZ,wFAAA,EAAE,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAOR;OACM,EACL,SAAS,GAOV;OACM,EACL,aAAa,GAed;OACM,EACL,EAAE,GAKH"}
|
|
@@ -3,14 +3,17 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
4
|
export declare class FutureUpdate extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Cancel pending payment update
|
|
7
7
|
*/
|
|
8
8
|
cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<FutureUpdateCancelPendingPaymentResponse>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Cancel scheduled update
|
|
11
11
|
*/
|
|
12
12
|
cancelSchedule(id: string, options?: RequestOptions): APIPromise<FutureUpdateCancelScheduleResponse>;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Response object
|
|
16
|
+
*/
|
|
14
17
|
export interface FutureUpdateCancelPendingPaymentResponse {
|
|
15
18
|
data: FutureUpdateCancelPendingPaymentResponse.Data;
|
|
16
19
|
}
|
|
@@ -22,6 +25,9 @@ export declare namespace FutureUpdateCancelPendingPaymentResponse {
|
|
|
22
25
|
id: string;
|
|
23
26
|
}
|
|
24
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Response object
|
|
30
|
+
*/
|
|
25
31
|
export interface FutureUpdateCancelScheduleResponse {
|
|
26
32
|
data: FutureUpdateCancelScheduleResponse.Data;
|
|
27
33
|
}
|