@stigg/typescript 0.1.0-beta.2 → 0.1.0-beta.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 +14 -0
- package/package.json +1 -1
- package/resources/v1/credits/credits.d.mts +78 -7
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +78 -7
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +7 -4
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +7 -4
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +8 -8
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +8 -8
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/index.d.mts +2 -3
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -3
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +1 -3
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +0 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- 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/subscriptions.d.mts +6 -6
- package/resources/v1/subscriptions/subscriptions.d.ts +6 -6
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/credits/credits.ts +99 -16
- package/src/resources/v1/credits/custom-currencies.ts +8 -8
- package/src/resources/v1/credits/index.ts +3 -6
- package/src/resources/v1/index.ts +2 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +6 -6
- package/src/resources/v1/v1.ts +4 -0
- 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
- package/resources/v1/credits/auto-recharge.d.mts +0 -84
- package/resources/v1/credits/auto-recharge.d.mts.map +0 -1
- package/resources/v1/credits/auto-recharge.d.ts +0 -84
- package/resources/v1/credits/auto-recharge.d.ts.map +0 -1
- package/resources/v1/credits/auto-recharge.js +0 -16
- package/resources/v1/credits/auto-recharge.js.map +0 -1
- package/resources/v1/credits/auto-recharge.mjs +0 -12
- package/resources/v1/credits/auto-recharge.mjs.map +0 -1
- package/src/resources/v1/credits/auto-recharge.ts +0 -109
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-beta.
|
|
4
|
+
exports.VERSION = '0.1.0-beta.3'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.3'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
-
export declare class AutoRecharge extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
7
|
-
* Returns default settings if no configuration exists.
|
|
8
|
-
*/
|
|
9
|
-
getAutoRecharge(query: AutoRechargeGetAutoRechargeParams, options?: RequestOptions): APIPromise<AutoRechargeGetAutoRechargeResponse>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Response object
|
|
13
|
-
*/
|
|
14
|
-
export interface AutoRechargeGetAutoRechargeResponse {
|
|
15
|
-
/**
|
|
16
|
-
* Automatic recharge configuration for a customer and currency
|
|
17
|
-
*/
|
|
18
|
-
data: AutoRechargeGetAutoRechargeResponse.Data;
|
|
19
|
-
}
|
|
20
|
-
export declare namespace AutoRechargeGetAutoRechargeResponse {
|
|
21
|
-
/**
|
|
22
|
-
* Automatic recharge configuration for a customer and currency
|
|
23
|
-
*/
|
|
24
|
-
interface Data {
|
|
25
|
-
/**
|
|
26
|
-
* The unique configuration ID
|
|
27
|
-
*/
|
|
28
|
-
id: string | null;
|
|
29
|
-
/**
|
|
30
|
-
* Timestamp of when the record was created
|
|
31
|
-
*/
|
|
32
|
-
createdAt: string | null;
|
|
33
|
-
/**
|
|
34
|
-
* The currency ID for this configuration
|
|
35
|
-
*/
|
|
36
|
-
currencyId: string;
|
|
37
|
-
/**
|
|
38
|
-
* The customer ID this configuration belongs to
|
|
39
|
-
*/
|
|
40
|
-
customerId: string;
|
|
41
|
-
/**
|
|
42
|
-
* Expiration period for auto-recharge grants (1_MONTH or 1_YEAR)
|
|
43
|
-
*/
|
|
44
|
-
grantExpirationPeriod: '1_MONTH' | '1_YEAR';
|
|
45
|
-
/**
|
|
46
|
-
* Whether automatic recharge is enabled
|
|
47
|
-
*/
|
|
48
|
-
isEnabled: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Maximum monthly spend limit for automatic recharges
|
|
51
|
-
*/
|
|
52
|
-
maxSpendLimit: number | null;
|
|
53
|
-
/**
|
|
54
|
-
* The target credit balance to recharge to
|
|
55
|
-
*/
|
|
56
|
-
targetBalance: number;
|
|
57
|
-
/**
|
|
58
|
-
* The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT)
|
|
59
|
-
*/
|
|
60
|
-
thresholdType: 'CREDIT_AMOUNT' | 'DOLLAR_AMOUNT';
|
|
61
|
-
/**
|
|
62
|
-
* The threshold value that triggers a recharge
|
|
63
|
-
*/
|
|
64
|
-
thresholdValue: number;
|
|
65
|
-
/**
|
|
66
|
-
* Timestamp of when the record was last updated
|
|
67
|
-
*/
|
|
68
|
-
updatedAt: string | null;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
export interface AutoRechargeGetAutoRechargeParams {
|
|
72
|
-
/**
|
|
73
|
-
* Filter by currency ID (required)
|
|
74
|
-
*/
|
|
75
|
-
currencyId: string;
|
|
76
|
-
/**
|
|
77
|
-
* Filter by customer ID (required)
|
|
78
|
-
*/
|
|
79
|
-
customerId: string;
|
|
80
|
-
}
|
|
81
|
-
export declare namespace AutoRecharge {
|
|
82
|
-
export { type AutoRechargeGetAutoRechargeResponse as AutoRechargeGetAutoRechargeResponse, type AutoRechargeGetAutoRechargeParams as AutoRechargeGetAutoRechargeParams, };
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=auto-recharge.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-recharge.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/auto-recharge.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,eAAe,CACb,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;CAGnD;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,IAAI,EAAE,mCAAmC,CAAC,IAAI,CAAC;CAChD;AAED,yBAAiB,mCAAmC,CAAC;IACnD;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,qBAAqB,EAAE,SAAS,GAAG,QAAQ,CAAC;QAE5C;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAE7B;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,aAAa,EAAE,eAAe,GAAG,eAAe,CAAC;QAEjD;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
-
export declare class AutoRecharge extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
7
|
-
* Returns default settings if no configuration exists.
|
|
8
|
-
*/
|
|
9
|
-
getAutoRecharge(query: AutoRechargeGetAutoRechargeParams, options?: RequestOptions): APIPromise<AutoRechargeGetAutoRechargeResponse>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Response object
|
|
13
|
-
*/
|
|
14
|
-
export interface AutoRechargeGetAutoRechargeResponse {
|
|
15
|
-
/**
|
|
16
|
-
* Automatic recharge configuration for a customer and currency
|
|
17
|
-
*/
|
|
18
|
-
data: AutoRechargeGetAutoRechargeResponse.Data;
|
|
19
|
-
}
|
|
20
|
-
export declare namespace AutoRechargeGetAutoRechargeResponse {
|
|
21
|
-
/**
|
|
22
|
-
* Automatic recharge configuration for a customer and currency
|
|
23
|
-
*/
|
|
24
|
-
interface Data {
|
|
25
|
-
/**
|
|
26
|
-
* The unique configuration ID
|
|
27
|
-
*/
|
|
28
|
-
id: string | null;
|
|
29
|
-
/**
|
|
30
|
-
* Timestamp of when the record was created
|
|
31
|
-
*/
|
|
32
|
-
createdAt: string | null;
|
|
33
|
-
/**
|
|
34
|
-
* The currency ID for this configuration
|
|
35
|
-
*/
|
|
36
|
-
currencyId: string;
|
|
37
|
-
/**
|
|
38
|
-
* The customer ID this configuration belongs to
|
|
39
|
-
*/
|
|
40
|
-
customerId: string;
|
|
41
|
-
/**
|
|
42
|
-
* Expiration period for auto-recharge grants (1_MONTH or 1_YEAR)
|
|
43
|
-
*/
|
|
44
|
-
grantExpirationPeriod: '1_MONTH' | '1_YEAR';
|
|
45
|
-
/**
|
|
46
|
-
* Whether automatic recharge is enabled
|
|
47
|
-
*/
|
|
48
|
-
isEnabled: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Maximum monthly spend limit for automatic recharges
|
|
51
|
-
*/
|
|
52
|
-
maxSpendLimit: number | null;
|
|
53
|
-
/**
|
|
54
|
-
* The target credit balance to recharge to
|
|
55
|
-
*/
|
|
56
|
-
targetBalance: number;
|
|
57
|
-
/**
|
|
58
|
-
* The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT)
|
|
59
|
-
*/
|
|
60
|
-
thresholdType: 'CREDIT_AMOUNT' | 'DOLLAR_AMOUNT';
|
|
61
|
-
/**
|
|
62
|
-
* The threshold value that triggers a recharge
|
|
63
|
-
*/
|
|
64
|
-
thresholdValue: number;
|
|
65
|
-
/**
|
|
66
|
-
* Timestamp of when the record was last updated
|
|
67
|
-
*/
|
|
68
|
-
updatedAt: string | null;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
export interface AutoRechargeGetAutoRechargeParams {
|
|
72
|
-
/**
|
|
73
|
-
* Filter by currency ID (required)
|
|
74
|
-
*/
|
|
75
|
-
currencyId: string;
|
|
76
|
-
/**
|
|
77
|
-
* Filter by customer ID (required)
|
|
78
|
-
*/
|
|
79
|
-
customerId: string;
|
|
80
|
-
}
|
|
81
|
-
export declare namespace AutoRecharge {
|
|
82
|
-
export { type AutoRechargeGetAutoRechargeResponse as AutoRechargeGetAutoRechargeResponse, type AutoRechargeGetAutoRechargeParams as AutoRechargeGetAutoRechargeParams, };
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=auto-recharge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-recharge.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/auto-recharge.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,eAAe,CACb,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;CAGnD;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,IAAI,EAAE,mCAAmC,CAAC,IAAI,CAAC;CAChD;AAED,yBAAiB,mCAAmC,CAAC;IACnD;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,qBAAqB,EAAE,SAAS,GAAG,QAAQ,CAAC;QAE5C;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAE7B;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,aAAa,EAAE,eAAe,GAAG,eAAe,CAAC;QAEjD;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AutoRecharge = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
class AutoRecharge extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
9
|
-
* Returns default settings if no configuration exists.
|
|
10
|
-
*/
|
|
11
|
-
getAutoRecharge(query, options) {
|
|
12
|
-
return this._client.get('/api/v1/credits/auto-recharge', { query, ...options });
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.AutoRecharge = AutoRecharge;
|
|
16
|
-
//# sourceMappingURL=auto-recharge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-recharge.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/auto-recharge.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;OAGG;IACH,eAAe,CACb,KAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAXD,oCAWC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
export class AutoRecharge extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
6
|
-
* Returns default settings if no configuration exists.
|
|
7
|
-
*/
|
|
8
|
-
getAutoRecharge(query, options) {
|
|
9
|
-
return this._client.get('/api/v1/credits/auto-recharge', { query, ...options });
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=auto-recharge.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-recharge.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/auto-recharge.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,eAAe,CACb,KAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class AutoRecharge extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
10
|
-
* Returns default settings if no configuration exists.
|
|
11
|
-
*/
|
|
12
|
-
getAutoRecharge(
|
|
13
|
-
query: AutoRechargeGetAutoRechargeParams,
|
|
14
|
-
options?: RequestOptions,
|
|
15
|
-
): APIPromise<AutoRechargeGetAutoRechargeResponse> {
|
|
16
|
-
return this._client.get('/api/v1/credits/auto-recharge', { query, ...options });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Response object
|
|
22
|
-
*/
|
|
23
|
-
export interface AutoRechargeGetAutoRechargeResponse {
|
|
24
|
-
/**
|
|
25
|
-
* Automatic recharge configuration for a customer and currency
|
|
26
|
-
*/
|
|
27
|
-
data: AutoRechargeGetAutoRechargeResponse.Data;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export namespace AutoRechargeGetAutoRechargeResponse {
|
|
31
|
-
/**
|
|
32
|
-
* Automatic recharge configuration for a customer and currency
|
|
33
|
-
*/
|
|
34
|
-
export interface Data {
|
|
35
|
-
/**
|
|
36
|
-
* The unique configuration ID
|
|
37
|
-
*/
|
|
38
|
-
id: string | null;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Timestamp of when the record was created
|
|
42
|
-
*/
|
|
43
|
-
createdAt: string | null;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The currency ID for this configuration
|
|
47
|
-
*/
|
|
48
|
-
currencyId: string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The customer ID this configuration belongs to
|
|
52
|
-
*/
|
|
53
|
-
customerId: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Expiration period for auto-recharge grants (1_MONTH or 1_YEAR)
|
|
57
|
-
*/
|
|
58
|
-
grantExpirationPeriod: '1_MONTH' | '1_YEAR';
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Whether automatic recharge is enabled
|
|
62
|
-
*/
|
|
63
|
-
isEnabled: boolean;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Maximum monthly spend limit for automatic recharges
|
|
67
|
-
*/
|
|
68
|
-
maxSpendLimit: number | null;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* The target credit balance to recharge to
|
|
72
|
-
*/
|
|
73
|
-
targetBalance: number;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT)
|
|
77
|
-
*/
|
|
78
|
-
thresholdType: 'CREDIT_AMOUNT' | 'DOLLAR_AMOUNT';
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* The threshold value that triggers a recharge
|
|
82
|
-
*/
|
|
83
|
-
thresholdValue: number;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Timestamp of when the record was last updated
|
|
87
|
-
*/
|
|
88
|
-
updatedAt: string | null;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface AutoRechargeGetAutoRechargeParams {
|
|
93
|
-
/**
|
|
94
|
-
* Filter by currency ID (required)
|
|
95
|
-
*/
|
|
96
|
-
currencyId: string;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Filter by customer ID (required)
|
|
100
|
-
*/
|
|
101
|
-
customerId: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export declare namespace AutoRecharge {
|
|
105
|
-
export {
|
|
106
|
-
type AutoRechargeGetAutoRechargeResponse as AutoRechargeGetAutoRechargeResponse,
|
|
107
|
-
type AutoRechargeGetAutoRechargeParams as AutoRechargeGetAutoRechargeParams,
|
|
108
|
-
};
|
|
109
|
-
}
|