@stigg/typescript 0.1.0-alpha.1 → 0.1.0-alpha.11
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 +158 -0
- package/README.md +40 -0
- package/client.d.mts +6 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -8
- package/client.d.ts.map +1 -1
- package/client.js +23 -21
- package/client.js.map +1 -1
- package/client.mjs +24 -22
- package/client.mjs.map +1 -1
- 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/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +1298 -0
- package/resources/v1/addons/addons.d.mts.map +1 -0
- package/resources/v1/addons/addons.d.ts +1298 -0
- package/resources/v1/addons/addons.d.ts.map +1 -0
- package/resources/v1/addons/addons.js +78 -0
- package/resources/v1/addons/addons.js.map +1 -0
- package/resources/v1/addons/addons.mjs +73 -0
- package/resources/v1/addons/addons.mjs.map +1 -0
- package/resources/v1/addons/entitlements.d.mts +747 -0
- package/resources/v1/addons/entitlements.d.mts.map +1 -0
- package/resources/v1/addons/entitlements.d.ts +747 -0
- package/resources/v1/addons/entitlements.d.ts.map +1 -0
- package/resources/v1/addons/entitlements.js +36 -0
- package/resources/v1/addons/entitlements.js.map +1 -0
- package/resources/v1/addons/entitlements.mjs +32 -0
- package/resources/v1/addons/entitlements.mjs.map +1 -0
- package/resources/v1/addons/index.d.mts +3 -0
- package/resources/v1/addons/index.d.mts.map +1 -0
- package/resources/v1/addons/index.d.ts +3 -0
- package/resources/v1/addons/index.d.ts.map +1 -0
- package/resources/v1/addons/index.js +9 -0
- package/resources/v1/addons/index.js.map +1 -0
- package/resources/v1/addons/index.mjs +4 -0
- package/resources/v1/addons/index.mjs.map +1 -0
- package/resources/v1/addons.d.mts +2 -0
- package/resources/v1/addons.d.mts.map +1 -0
- package/resources/v1/addons.d.ts +2 -0
- package/resources/v1/addons.d.ts.map +1 -0
- package/resources/v1/addons.js +6 -0
- package/resources/v1/addons.js.map +1 -0
- package/resources/v1/addons.mjs +3 -0
- package/resources/v1/addons.mjs.map +1 -0
- package/resources/v1/coupons.d.mts +154 -157
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +154 -157
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +21 -4
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +21 -4
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +247 -118
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +247 -118
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +37 -16
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +37 -16
- 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 +3 -3
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +7 -2
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +7 -2
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +4 -2
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +4 -2
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +498 -0
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -0
- package/resources/v1/customers/promotional-entitlements.d.ts +498 -0
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -0
- package/resources/v1/customers/promotional-entitlements.js +32 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -0
- package/resources/v1/customers/promotional-entitlements.mjs +28 -0
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -0
- package/resources/v1/events.d.mts +63 -0
- package/resources/v1/events.d.mts.map +1 -0
- package/resources/v1/events.d.ts +63 -0
- package/resources/v1/events.d.ts.map +1 -0
- package/resources/v1/events.js +16 -0
- package/resources/v1/events.js.map +1 -0
- package/resources/v1/events.mjs +12 -0
- package/resources/v1/events.mjs.map +1 -0
- package/resources/v1/features.d.mts +444 -0
- package/resources/v1/features.d.mts.map +1 -0
- package/resources/v1/features.d.ts +444 -0
- package/resources/v1/features.d.ts.map +1 -0
- package/resources/v1/features.js +51 -0
- package/resources/v1/features.js.map +1 -0
- package/resources/v1/features.mjs +47 -0
- package/resources/v1/features.mjs.map +1 -0
- package/resources/v1/index.d.mts +10 -4
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +10 -4
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +17 -5
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +7 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +747 -0
- package/resources/v1/plans/entitlements.d.mts.map +1 -0
- package/resources/v1/plans/entitlements.d.ts +747 -0
- package/resources/v1/plans/entitlements.d.ts.map +1 -0
- package/resources/v1/plans/entitlements.js +36 -0
- package/resources/v1/plans/entitlements.js.map +1 -0
- package/resources/v1/plans/entitlements.mjs +32 -0
- package/resources/v1/plans/entitlements.mjs.map +1 -0
- package/resources/v1/plans/index.d.mts +3 -0
- package/resources/v1/plans/index.d.mts.map +1 -0
- package/resources/v1/plans/index.d.ts +3 -0
- package/resources/v1/plans/index.d.ts.map +1 -0
- package/resources/v1/plans/index.js +9 -0
- package/resources/v1/plans/index.js.map +1 -0
- package/resources/v1/plans/index.mjs +4 -0
- package/resources/v1/plans/index.mjs.map +1 -0
- package/resources/v1/plans/plans.d.mts +973 -0
- package/resources/v1/plans/plans.d.mts.map +1 -0
- package/resources/v1/plans/plans.d.ts +973 -0
- package/resources/v1/plans/plans.d.ts.map +1 -0
- package/resources/v1/plans/plans.js +76 -0
- package/resources/v1/plans/plans.js.map +1 -0
- package/resources/v1/plans/plans.mjs +71 -0
- package/resources/v1/plans/plans.mjs.map +1 -0
- package/resources/v1/plans.d.mts +2 -0
- package/resources/v1/plans.d.mts.map +1 -0
- package/resources/v1/plans.d.ts +2 -0
- package/resources/v1/plans.d.ts.map +1 -0
- package/resources/v1/plans.js +6 -0
- package/resources/v1/plans.js.map +1 -0
- package/resources/v1/plans.mjs +3 -0
- package/resources/v1/plans.mjs.map +1 -0
- package/resources/v1/products.d.mts +332 -0
- package/resources/v1/products.d.mts.map +1 -0
- package/resources/v1/products.d.ts +332 -0
- package/resources/v1/products.d.ts.map +1 -0
- package/resources/v1/products.js +52 -0
- package/resources/v1/products.js.map +1 -0
- package/resources/v1/products.mjs +48 -0
- package/resources/v1/products.mjs.map +1 -0
- package/resources/v1/subscriptions/future-update.d.mts +12 -19
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +12 -19
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +3 -2
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +3 -2
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -2
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -2
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js +5 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +3 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +34 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -0
- package/resources/v1/subscriptions/invoice.d.ts +34 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -0
- package/resources/v1/subscriptions/invoice.js +17 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -0
- package/resources/v1/subscriptions/invoice.mjs +13 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -0
- package/resources/v1/subscriptions/subscriptions.d.mts +1565 -518
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +1565 -518
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +52 -12
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +53 -13
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +98 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -0
- package/resources/v1/subscriptions/usage.d.ts +98 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -0
- package/resources/v1/subscriptions/usage.js +24 -0
- package/resources/v1/subscriptions/usage.js.map +1 -0
- package/resources/v1/subscriptions/usage.mjs +20 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -0
- package/resources/v1/usage.d.mts +230 -0
- package/resources/v1/usage.d.mts.map +1 -0
- package/resources/v1/usage.d.ts +230 -0
- package/resources/v1/usage.d.ts.map +1 -0
- package/resources/v1/usage.js +24 -0
- package/resources/v1/usage.js.map +1 -0
- package/resources/v1/usage.mjs +20 -0
- package/resources/v1/usage.mjs.map +1 -0
- package/resources/v1/v1.d.mts +30 -149
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +30 -149
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +24 -12
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +24 -12
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +33 -40
- package/src/core/pagination.ts +24 -18
- package/src/internal/parse.ts +6 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/resources/index.ts +1 -7
- package/src/resources/v1/addons/addons.ts +3245 -0
- package/src/resources/v1/addons/entitlements.ts +976 -0
- package/src/resources/v1/addons/index.ts +26 -0
- package/src/resources/v1/addons.ts +3 -0
- package/src/resources/v1/coupons.ts +311 -436
- package/src/resources/v1/customers/customers.ts +334 -153
- package/src/resources/v1/customers/index.ts +17 -2
- package/src/resources/v1/customers/payment-method.ts +7 -2
- package/src/resources/v1/customers/promotional-entitlements.ts +669 -0
- package/src/resources/v1/events.ts +74 -0
- package/src/resources/v1/features.ts +571 -0
- package/src/resources/v1/index.ts +73 -15
- package/src/resources/v1/plans/entitlements.ts +968 -0
- package/src/resources/v1/plans/index.ts +24 -0
- package/src/resources/v1/plans/plans.ts +2032 -0
- package/src/resources/v1/plans.ts +3 -0
- package/src/resources/v1/products.ts +423 -0
- package/src/resources/v1/subscriptions/future-update.ts +12 -27
- package/src/resources/v1/subscriptions/index.ts +16 -11
- package/src/resources/v1/subscriptions/invoice.ts +42 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +3341 -832
- package/src/resources/v1/subscriptions/usage.ts +126 -0
- package/src/resources/v1/usage.ts +284 -0
- package/src/resources/v1/v1.ts +174 -197
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/v1/customers/usage.d.mts +0 -98
- package/resources/v1/customers/usage.d.mts.map +0 -1
- package/resources/v1/customers/usage.d.ts +0 -98
- package/resources/v1/customers/usage.d.ts.map +0 -1
- package/resources/v1/customers/usage.js +0 -20
- package/resources/v1/customers/usage.js.map +0 -1
- package/resources/v1/customers/usage.mjs +0 -16
- package/resources/v1/customers/usage.mjs.map +0 -1
- package/src/resources/v1/customers/usage.ts +0 -132
|
@@ -3,67 +3,121 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as PaymentMethodAPI from './payment-method';
|
|
5
5
|
import { PaymentMethod, PaymentMethodAttachParams } from './payment-method';
|
|
6
|
-
import * as
|
|
7
|
-
import {
|
|
6
|
+
import * as PromotionalEntitlementsAPI from './promotional-entitlements';
|
|
7
|
+
import {
|
|
8
|
+
PromotionalEntitlementCreateParams,
|
|
9
|
+
PromotionalEntitlementCreateResponse,
|
|
10
|
+
PromotionalEntitlementListParams,
|
|
11
|
+
PromotionalEntitlementListResponse,
|
|
12
|
+
PromotionalEntitlementListResponsesMyCursorIDPage,
|
|
13
|
+
PromotionalEntitlementRevokeParams,
|
|
14
|
+
PromotionalEntitlementRevokeResponse,
|
|
15
|
+
PromotionalEntitlements,
|
|
16
|
+
} from './promotional-entitlements';
|
|
8
17
|
import { APIPromise } from '../../../core/api-promise';
|
|
18
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
9
19
|
import { RequestOptions } from '../../../internal/request-options';
|
|
10
20
|
import { path } from '../../../internal/utils/path';
|
|
11
21
|
|
|
12
22
|
export class Customers extends APIResource {
|
|
13
23
|
paymentMethod: PaymentMethodAPI.PaymentMethod = new PaymentMethodAPI.PaymentMethod(this._client);
|
|
14
|
-
|
|
24
|
+
promotionalEntitlements: PromotionalEntitlementsAPI.PromotionalEntitlements =
|
|
25
|
+
new PromotionalEntitlementsAPI.PromotionalEntitlements(this._client);
|
|
15
26
|
|
|
16
27
|
/**
|
|
17
|
-
*
|
|
18
|
-
|
|
19
|
-
create(body: CustomerCreateParams, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
20
|
-
return this._client.post('/api/v1/customers', { body, ...options });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Get a single Customer by id
|
|
28
|
+
* Retrieves a customer by their unique identifier, including billing information
|
|
29
|
+
* and subscription status.
|
|
25
30
|
*/
|
|
26
31
|
retrieve(id: string, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
27
32
|
return this._client.get(path`/api/v1/customers/${id}`, options);
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
/**
|
|
31
|
-
*
|
|
36
|
+
* Updates an existing customer's properties such as name, email, and billing
|
|
37
|
+
* information.
|
|
32
38
|
*/
|
|
33
39
|
update(id: string, body: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
34
40
|
return this._client.patch(path`/api/v1/customers/${id}`, { body, ...options });
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
/**
|
|
38
|
-
*
|
|
44
|
+
* Retrieves a paginated list of customers in the environment.
|
|
39
45
|
*/
|
|
40
46
|
list(
|
|
41
47
|
query: CustomerListParams | null | undefined = {},
|
|
42
48
|
options?: RequestOptions,
|
|
43
|
-
):
|
|
44
|
-
return this._client.
|
|
49
|
+
): PagePromise<CustomerListResponsesMyCursorIDPage, CustomerListResponse> {
|
|
50
|
+
return this._client.getAPIList('/api/v1/customers', MyCursorIDPage<CustomerListResponse>, {
|
|
51
|
+
query,
|
|
52
|
+
...options,
|
|
53
|
+
});
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
/**
|
|
48
|
-
*
|
|
57
|
+
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
58
|
+
* subscriptions.
|
|
49
59
|
*/
|
|
50
60
|
archive(id: string, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
51
61
|
return this._client.post(path`/api/v1/customers/${id}/archive`, options);
|
|
52
62
|
}
|
|
53
63
|
|
|
54
64
|
/**
|
|
55
|
-
*
|
|
65
|
+
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
66
|
+
* external systems.
|
|
67
|
+
*/
|
|
68
|
+
import(body: CustomerImportParams, options?: RequestOptions): APIPromise<CustomerImportResponse> {
|
|
69
|
+
return this._client.post('/api/v1/customers/import', { body, ...options });
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Retrieves a paginated list of resources within the same customer.
|
|
74
|
+
*/
|
|
75
|
+
listResources(
|
|
76
|
+
id: string,
|
|
77
|
+
query: CustomerListResourcesParams | null | undefined = {},
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): PagePromise<CustomerListResourcesResponsesMyCursorIDPage, CustomerListResourcesResponse> {
|
|
80
|
+
return this._client.getAPIList(
|
|
81
|
+
path`/api/v1/customers/${id}/resources`,
|
|
82
|
+
MyCursorIDPage<CustomerListResourcesResponse>,
|
|
83
|
+
{ query, ...options },
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Creates a new customer and optionally provisions an initial subscription in a
|
|
89
|
+
* single operation.
|
|
90
|
+
*/
|
|
91
|
+
provision(body: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
92
|
+
return this._client.post('/api/v1/customers', { body, ...options });
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
56
97
|
*/
|
|
57
98
|
unarchive(id: string, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
58
99
|
return this._client.post(path`/api/v1/customers/${id}/unarchive`, options);
|
|
59
100
|
}
|
|
60
101
|
}
|
|
61
102
|
|
|
103
|
+
export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResponse>;
|
|
104
|
+
|
|
105
|
+
export type CustomerListResourcesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResourcesResponse>;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Response object
|
|
109
|
+
*/
|
|
62
110
|
export interface CustomerResponse {
|
|
111
|
+
/**
|
|
112
|
+
* A customer can be either an organization or an individual
|
|
113
|
+
*/
|
|
63
114
|
data: CustomerResponse.Data;
|
|
64
115
|
}
|
|
65
116
|
|
|
66
117
|
export namespace CustomerResponse {
|
|
118
|
+
/**
|
|
119
|
+
* A customer can be either an organization or an individual
|
|
120
|
+
*/
|
|
67
121
|
export interface Data {
|
|
68
122
|
/**
|
|
69
123
|
* Customer slug
|
|
@@ -147,128 +201,9 @@ export namespace CustomerResponse {
|
|
|
147
201
|
type: 'CARD' | 'BANK' | 'CASH_APP';
|
|
148
202
|
}
|
|
149
203
|
|
|
150
|
-
export interface Integration {
|
|
151
|
-
/**
|
|
152
|
-
* Integration details
|
|
153
|
-
*/
|
|
154
|
-
id: string;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Synced entity id
|
|
158
|
-
*/
|
|
159
|
-
syncedEntityId: string | null;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The vendor identifier of integration
|
|
163
|
-
*/
|
|
164
|
-
vendorIdentifier:
|
|
165
|
-
| 'AUTH0'
|
|
166
|
-
| 'ZUORA'
|
|
167
|
-
| 'STRIPE'
|
|
168
|
-
| 'HUBSPOT'
|
|
169
|
-
| 'AWS_MARKETPLACE'
|
|
170
|
-
| 'SNOWFLAKE'
|
|
171
|
-
| 'SALESFORCE'
|
|
172
|
-
| 'BIG_QUERY'
|
|
173
|
-
| 'OPEN_FGA'
|
|
174
|
-
| 'APP_STORE';
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface CustomerListResponse {
|
|
180
|
-
data: Array<CustomerListResponse.Data>;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export namespace CustomerListResponse {
|
|
184
|
-
export interface Data {
|
|
185
|
-
/**
|
|
186
|
-
* Customer slug
|
|
187
|
-
*/
|
|
188
|
-
id: string;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Timestamp of when the record was deleted
|
|
192
|
-
*/
|
|
193
|
-
archivedAt: string | null;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Timestamp of when the record was created
|
|
197
|
-
*/
|
|
198
|
-
createdAt: string;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Cursor ID for query pagination
|
|
202
|
-
*/
|
|
203
|
-
cursorId: string;
|
|
204
|
-
|
|
205
204
|
/**
|
|
206
|
-
*
|
|
205
|
+
* External billing or CRM integration link
|
|
207
206
|
*/
|
|
208
|
-
updatedAt: string;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Customer level coupon
|
|
212
|
-
*/
|
|
213
|
-
couponId?: string | null;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* The default payment method details
|
|
217
|
-
*/
|
|
218
|
-
defaultPaymentMethod?: Data.DefaultPaymentMethod | null;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* The email of the customer
|
|
222
|
-
*/
|
|
223
|
-
email?: string | null;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* List of integrations
|
|
227
|
-
*/
|
|
228
|
-
integrations?: Array<Data.Integration>;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Additional metadata
|
|
232
|
-
*/
|
|
233
|
-
metadata?: { [key: string]: string };
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* The name of the customer
|
|
237
|
-
*/
|
|
238
|
-
name?: string | null;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export namespace Data {
|
|
242
|
-
/**
|
|
243
|
-
* The default payment method details
|
|
244
|
-
*/
|
|
245
|
-
export interface DefaultPaymentMethod {
|
|
246
|
-
/**
|
|
247
|
-
* The default payment method id
|
|
248
|
-
*/
|
|
249
|
-
billingId: string | null;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The expiration month of the default payment method
|
|
253
|
-
*/
|
|
254
|
-
cardExpiryMonth: number | null;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* The expiration year of the default payment method
|
|
258
|
-
*/
|
|
259
|
-
cardExpiryYear: number | null;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* The last 4 digits of the default payment method
|
|
263
|
-
*/
|
|
264
|
-
cardLast4Digits: string | null;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* The default payment method type
|
|
268
|
-
*/
|
|
269
|
-
type: 'CARD' | 'BANK' | 'CASH_APP';
|
|
270
|
-
}
|
|
271
|
-
|
|
272
207
|
export interface Integration {
|
|
273
208
|
/**
|
|
274
209
|
* Integration details
|
|
@@ -298,12 +233,30 @@ export namespace CustomerListResponse {
|
|
|
298
233
|
}
|
|
299
234
|
}
|
|
300
235
|
|
|
301
|
-
|
|
236
|
+
/**
|
|
237
|
+
* A customer can be either an organization or an individual
|
|
238
|
+
*/
|
|
239
|
+
export interface CustomerListResponse {
|
|
302
240
|
/**
|
|
303
241
|
* Customer slug
|
|
304
242
|
*/
|
|
305
243
|
id: string;
|
|
306
244
|
|
|
245
|
+
/**
|
|
246
|
+
* Timestamp of when the record was deleted
|
|
247
|
+
*/
|
|
248
|
+
archivedAt: string | null;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Timestamp of when the record was created
|
|
252
|
+
*/
|
|
253
|
+
createdAt: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Timestamp of when the record was last updated
|
|
257
|
+
*/
|
|
258
|
+
updatedAt: string;
|
|
259
|
+
|
|
307
260
|
/**
|
|
308
261
|
* Customer level coupon
|
|
309
262
|
*/
|
|
@@ -312,7 +265,7 @@ export interface CustomerCreateParams {
|
|
|
312
265
|
/**
|
|
313
266
|
* The default payment method details
|
|
314
267
|
*/
|
|
315
|
-
defaultPaymentMethod?:
|
|
268
|
+
defaultPaymentMethod?: CustomerListResponse.DefaultPaymentMethod | null;
|
|
316
269
|
|
|
317
270
|
/**
|
|
318
271
|
* The email of the customer
|
|
@@ -322,7 +275,7 @@ export interface CustomerCreateParams {
|
|
|
322
275
|
/**
|
|
323
276
|
* List of integrations
|
|
324
277
|
*/
|
|
325
|
-
integrations?: Array<
|
|
278
|
+
integrations?: Array<CustomerListResponse.Integration>;
|
|
326
279
|
|
|
327
280
|
/**
|
|
328
281
|
* Additional metadata
|
|
@@ -335,7 +288,7 @@ export interface CustomerCreateParams {
|
|
|
335
288
|
name?: string | null;
|
|
336
289
|
}
|
|
337
290
|
|
|
338
|
-
export namespace
|
|
291
|
+
export namespace CustomerListResponse {
|
|
339
292
|
/**
|
|
340
293
|
* The default payment method details
|
|
341
294
|
*/
|
|
@@ -366,6 +319,9 @@ export namespace CustomerCreateParams {
|
|
|
366
319
|
type: 'CARD' | 'BANK' | 'CASH_APP';
|
|
367
320
|
}
|
|
368
321
|
|
|
322
|
+
/**
|
|
323
|
+
* External billing or CRM integration link
|
|
324
|
+
*/
|
|
369
325
|
export interface Integration {
|
|
370
326
|
/**
|
|
371
327
|
* Integration details
|
|
@@ -394,6 +350,48 @@ export namespace CustomerCreateParams {
|
|
|
394
350
|
}
|
|
395
351
|
}
|
|
396
352
|
|
|
353
|
+
/**
|
|
354
|
+
* Response object
|
|
355
|
+
*/
|
|
356
|
+
export interface CustomerImportResponse {
|
|
357
|
+
/**
|
|
358
|
+
* List of newly created customer IDs from the import operation.
|
|
359
|
+
*/
|
|
360
|
+
data: CustomerImportResponse.Data;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export namespace CustomerImportResponse {
|
|
364
|
+
/**
|
|
365
|
+
* List of newly created customer IDs from the import operation.
|
|
366
|
+
*/
|
|
367
|
+
export interface Data {
|
|
368
|
+
/**
|
|
369
|
+
* Customer IDs created during import
|
|
370
|
+
*/
|
|
371
|
+
newCustomers: Array<string>;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Resource object that belongs to a customer
|
|
377
|
+
*/
|
|
378
|
+
export interface CustomerListResourcesResponse {
|
|
379
|
+
/**
|
|
380
|
+
* Resource slug
|
|
381
|
+
*/
|
|
382
|
+
id: string;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Timestamp of when the record was created
|
|
386
|
+
*/
|
|
387
|
+
createdAt: string;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Timestamp of when the record was last updated
|
|
391
|
+
*/
|
|
392
|
+
updatedAt: string;
|
|
393
|
+
}
|
|
394
|
+
|
|
397
395
|
export interface CustomerUpdateParams {
|
|
398
396
|
/**
|
|
399
397
|
* Customer level coupon
|
|
@@ -422,6 +420,9 @@ export interface CustomerUpdateParams {
|
|
|
422
420
|
}
|
|
423
421
|
|
|
424
422
|
export namespace CustomerUpdateParams {
|
|
423
|
+
/**
|
|
424
|
+
* External billing or CRM integration link
|
|
425
|
+
*/
|
|
425
426
|
export interface Integration {
|
|
426
427
|
/**
|
|
427
428
|
* Integration details
|
|
@@ -450,40 +451,220 @@ export namespace CustomerUpdateParams {
|
|
|
450
451
|
}
|
|
451
452
|
}
|
|
452
453
|
|
|
453
|
-
export interface CustomerListParams {
|
|
454
|
+
export interface CustomerListParams extends MyCursorIDPageParams {
|
|
454
455
|
/**
|
|
455
|
-
*
|
|
456
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
456
457
|
*/
|
|
457
|
-
|
|
458
|
+
createdAt?: CustomerListParams.CreatedAt;
|
|
458
459
|
|
|
459
460
|
/**
|
|
460
|
-
*
|
|
461
|
+
* Filter by exact customer email address
|
|
461
462
|
*/
|
|
462
|
-
|
|
463
|
+
email?: string;
|
|
463
464
|
|
|
464
465
|
/**
|
|
465
|
-
*
|
|
466
|
+
* Filter by exact customer name
|
|
466
467
|
*/
|
|
467
|
-
|
|
468
|
+
name?: string;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export namespace CustomerListParams {
|
|
472
|
+
/**
|
|
473
|
+
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
474
|
+
*/
|
|
475
|
+
export interface CreatedAt {
|
|
476
|
+
/**
|
|
477
|
+
* Greater than the specified createdAt value
|
|
478
|
+
*/
|
|
479
|
+
gt?: string;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Greater than or equal to the specified createdAt value
|
|
483
|
+
*/
|
|
484
|
+
gte?: string;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Less than the specified createdAt value
|
|
488
|
+
*/
|
|
489
|
+
lt?: string;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Less than or equal to the specified createdAt value
|
|
493
|
+
*/
|
|
494
|
+
lte?: string;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export interface CustomerImportParams {
|
|
499
|
+
/**
|
|
500
|
+
* List of customer objects to import
|
|
501
|
+
*/
|
|
502
|
+
customers: Array<CustomerImportParams.Customer>;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export namespace CustomerImportParams {
|
|
506
|
+
export interface Customer {
|
|
507
|
+
/**
|
|
508
|
+
* Customer slug
|
|
509
|
+
*/
|
|
510
|
+
id: string;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* The email of the customer
|
|
514
|
+
*/
|
|
515
|
+
email: string | null;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* The name of the customer
|
|
519
|
+
*/
|
|
520
|
+
name: string | null;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Additional metadata
|
|
524
|
+
*/
|
|
525
|
+
metadata?: { [key: string]: string };
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Billing provider payment method id
|
|
529
|
+
*/
|
|
530
|
+
paymentMethodId?: string;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Timestamp of when the record was last updated
|
|
534
|
+
*/
|
|
535
|
+
updatedAt?: string;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export interface CustomerListResourcesParams extends MyCursorIDPageParams {}
|
|
540
|
+
|
|
541
|
+
export interface CustomerProvisionParams {
|
|
542
|
+
/**
|
|
543
|
+
* Customer slug
|
|
544
|
+
*/
|
|
545
|
+
id: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Customer level coupon
|
|
549
|
+
*/
|
|
550
|
+
couponId?: string | null;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The default payment method details
|
|
554
|
+
*/
|
|
555
|
+
defaultPaymentMethod?: CustomerProvisionParams.DefaultPaymentMethod | null;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* The email of the customer
|
|
559
|
+
*/
|
|
560
|
+
email?: string | null;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* List of integrations
|
|
564
|
+
*/
|
|
565
|
+
integrations?: Array<CustomerProvisionParams.Integration>;
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Additional metadata
|
|
569
|
+
*/
|
|
570
|
+
metadata?: { [key: string]: string };
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* The name of the customer
|
|
574
|
+
*/
|
|
575
|
+
name?: string | null;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export namespace CustomerProvisionParams {
|
|
579
|
+
/**
|
|
580
|
+
* The default payment method details
|
|
581
|
+
*/
|
|
582
|
+
export interface DefaultPaymentMethod {
|
|
583
|
+
/**
|
|
584
|
+
* The default payment method id
|
|
585
|
+
*/
|
|
586
|
+
billingId: string | null;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* The expiration month of the default payment method
|
|
590
|
+
*/
|
|
591
|
+
cardExpiryMonth: number | null;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* The expiration year of the default payment method
|
|
595
|
+
*/
|
|
596
|
+
cardExpiryYear: number | null;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* The last 4 digits of the default payment method
|
|
600
|
+
*/
|
|
601
|
+
cardLast4Digits: string | null;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* The default payment method type
|
|
605
|
+
*/
|
|
606
|
+
type: 'CARD' | 'BANK' | 'CASH_APP';
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* External billing or CRM integration link
|
|
611
|
+
*/
|
|
612
|
+
export interface Integration {
|
|
613
|
+
/**
|
|
614
|
+
* Integration details
|
|
615
|
+
*/
|
|
616
|
+
id: string;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Synced entity id
|
|
620
|
+
*/
|
|
621
|
+
syncedEntityId: string | null;
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* The vendor identifier of integration
|
|
625
|
+
*/
|
|
626
|
+
vendorIdentifier:
|
|
627
|
+
| 'AUTH0'
|
|
628
|
+
| 'ZUORA'
|
|
629
|
+
| 'STRIPE'
|
|
630
|
+
| 'HUBSPOT'
|
|
631
|
+
| 'AWS_MARKETPLACE'
|
|
632
|
+
| 'SNOWFLAKE'
|
|
633
|
+
| 'SALESFORCE'
|
|
634
|
+
| 'BIG_QUERY'
|
|
635
|
+
| 'OPEN_FGA'
|
|
636
|
+
| 'APP_STORE';
|
|
637
|
+
}
|
|
468
638
|
}
|
|
469
639
|
|
|
470
640
|
Customers.PaymentMethod = PaymentMethod;
|
|
471
|
-
Customers.
|
|
641
|
+
Customers.PromotionalEntitlements = PromotionalEntitlements;
|
|
472
642
|
|
|
473
643
|
export declare namespace Customers {
|
|
474
644
|
export {
|
|
475
645
|
type CustomerResponse as CustomerResponse,
|
|
476
646
|
type CustomerListResponse as CustomerListResponse,
|
|
477
|
-
type
|
|
647
|
+
type CustomerImportResponse as CustomerImportResponse,
|
|
648
|
+
type CustomerListResourcesResponse as CustomerListResourcesResponse,
|
|
649
|
+
type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage,
|
|
650
|
+
type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage,
|
|
478
651
|
type CustomerUpdateParams as CustomerUpdateParams,
|
|
479
652
|
type CustomerListParams as CustomerListParams,
|
|
653
|
+
type CustomerImportParams as CustomerImportParams,
|
|
654
|
+
type CustomerListResourcesParams as CustomerListResourcesParams,
|
|
655
|
+
type CustomerProvisionParams as CustomerProvisionParams,
|
|
480
656
|
};
|
|
481
657
|
|
|
482
658
|
export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams };
|
|
483
659
|
|
|
484
660
|
export {
|
|
485
|
-
|
|
486
|
-
type
|
|
487
|
-
type
|
|
661
|
+
PromotionalEntitlements as PromotionalEntitlements,
|
|
662
|
+
type PromotionalEntitlementCreateResponse as PromotionalEntitlementCreateResponse,
|
|
663
|
+
type PromotionalEntitlementListResponse as PromotionalEntitlementListResponse,
|
|
664
|
+
type PromotionalEntitlementRevokeResponse as PromotionalEntitlementRevokeResponse,
|
|
665
|
+
type PromotionalEntitlementListResponsesMyCursorIDPage as PromotionalEntitlementListResponsesMyCursorIDPage,
|
|
666
|
+
type PromotionalEntitlementCreateParams as PromotionalEntitlementCreateParams,
|
|
667
|
+
type PromotionalEntitlementListParams as PromotionalEntitlementListParams,
|
|
668
|
+
type PromotionalEntitlementRevokeParams as PromotionalEntitlementRevokeParams,
|
|
488
669
|
};
|
|
489
670
|
}
|
|
@@ -4,9 +4,24 @@ export {
|
|
|
4
4
|
Customers,
|
|
5
5
|
type CustomerResponse,
|
|
6
6
|
type CustomerListResponse,
|
|
7
|
-
type
|
|
7
|
+
type CustomerImportResponse,
|
|
8
|
+
type CustomerListResourcesResponse,
|
|
8
9
|
type CustomerUpdateParams,
|
|
9
10
|
type CustomerListParams,
|
|
11
|
+
type CustomerImportParams,
|
|
12
|
+
type CustomerListResourcesParams,
|
|
13
|
+
type CustomerProvisionParams,
|
|
14
|
+
type CustomerListResponsesMyCursorIDPage,
|
|
15
|
+
type CustomerListResourcesResponsesMyCursorIDPage,
|
|
10
16
|
} from './customers';
|
|
11
17
|
export { PaymentMethod, type PaymentMethodAttachParams } from './payment-method';
|
|
12
|
-
export {
|
|
18
|
+
export {
|
|
19
|
+
PromotionalEntitlements,
|
|
20
|
+
type PromotionalEntitlementCreateResponse,
|
|
21
|
+
type PromotionalEntitlementListResponse,
|
|
22
|
+
type PromotionalEntitlementRevokeResponse,
|
|
23
|
+
type PromotionalEntitlementCreateParams,
|
|
24
|
+
type PromotionalEntitlementListParams,
|
|
25
|
+
type PromotionalEntitlementRevokeParams,
|
|
26
|
+
type PromotionalEntitlementListResponsesMyCursorIDPage,
|
|
27
|
+
} from './promotional-entitlements';
|
|
@@ -8,7 +8,8 @@ import { path } from '../../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class PaymentMethod extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Attaches a payment method to a customer for billing. Required for paid
|
|
12
|
+
* subscriptions when integrated with a billing provider.
|
|
12
13
|
*/
|
|
13
14
|
attach(
|
|
14
15
|
id: string,
|
|
@@ -19,7 +20,8 @@ export class PaymentMethod extends APIResource {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
+
* Removes the payment method from a customer. Ensure active paid subscriptions
|
|
24
|
+
* have an alternative payment method.
|
|
23
25
|
*/
|
|
24
26
|
detach(id: string, options?: RequestOptions): APIPromise<CustomersAPI.CustomerResponse> {
|
|
25
27
|
return this._client.delete(path`/api/v1/customers/${id}/payment-method`, options);
|
|
@@ -52,6 +54,9 @@ export interface PaymentMethodAttachParams {
|
|
|
52
54
|
| 'OPEN_FGA'
|
|
53
55
|
| 'APP_STORE';
|
|
54
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Customers selected currency
|
|
59
|
+
*/
|
|
55
60
|
billingCurrency?:
|
|
56
61
|
| 'usd'
|
|
57
62
|
| 'aed'
|