@salable/sdk 1.0.4 → 1.0.5
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/dist/index.es.js +69 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +69 -0
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/ai/conversations/index.d.ts +3 -0
- package/dist/sdk/api/ai/messages/index.d.ts +3 -0
- package/dist/sdk/api/apiKeys/index.d.ts +3 -0
- package/dist/sdk/api/carts/index.d.ts +6 -0
- package/dist/sdk/api/currencyOptions/index.d.ts +3 -0
- package/dist/sdk/api/destinations/index.d.ts +3 -0
- package/dist/sdk/api/entitlements/index.d.ts +3 -0
- package/dist/sdk/api/eventAttempts/index.d.ts +3 -0
- package/dist/sdk/api/events/index.d.ts +3 -0
- package/dist/sdk/api/grantees/index.d.ts +3 -0
- package/dist/sdk/api/groups/index.d.ts +3 -0
- package/dist/sdk/api/lineItems/index.d.ts +3 -0
- package/dist/sdk/api/meters/index.d.ts +3 -0
- package/dist/sdk/api/owners/index.d.ts +3 -0
- package/dist/sdk/api/paymentIntegrations/index.d.ts +3 -0
- package/dist/sdk/api/plans/index.d.ts +3 -0
- package/dist/sdk/api/prices/index.d.ts +3 -0
- package/dist/sdk/api/products/copyToLiveMode/index.d.ts +35 -0
- package/dist/sdk/api/products/exportEscaped/item/index.d.ts +2 -2
- package/dist/sdk/api/products/importEscaped/index.d.ts +2 -2
- package/dist/sdk/api/products/index.d.ts +28 -5
- package/dist/sdk/api/products/item/archive/index.d.ts +2 -2
- package/dist/sdk/api/products/item/index.d.ts +10 -7
- package/dist/sdk/api/receipts/index.d.ts +3 -0
- package/dist/sdk/api/subscriptionPlans/index.d.ts +3 -0
- package/dist/sdk/api/subscriptions/index.d.ts +3 -0
- package/dist/sdk/api/tierTags/index.d.ts +3 -0
- package/dist/sdk/api/tiers/index.d.ts +3 -0
- package/dist/sdk/api/usageRecords/index.d.ts +3 -0
- package/dist/sdk/models/index.d.ts +68 -12
- package/package.json +1 -1
|
@@ -35,6 +35,9 @@ export interface ConversationsRequestBuilder extends BaseRequestBuilder<Conversa
|
|
|
35
35
|
export interface ConversationsRequestBuilderGetQueryParameters {
|
|
36
36
|
after?: string;
|
|
37
37
|
before?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
40
|
+
*/
|
|
38
41
|
limit?: string;
|
|
39
42
|
}
|
|
40
43
|
/**
|
|
@@ -29,6 +29,9 @@ export interface MessagesRequestBuilderGetQueryParameters {
|
|
|
29
29
|
after?: string;
|
|
30
30
|
before?: string;
|
|
31
31
|
conversationId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
34
|
+
*/
|
|
32
35
|
limit?: string;
|
|
33
36
|
}
|
|
34
37
|
/**
|
|
@@ -50,6 +50,9 @@ export interface ApiKeysRequestBuilder extends BaseRequestBuilder<ApiKeysRequest
|
|
|
50
50
|
export interface ApiKeysRequestBuilderGetQueryParameters {
|
|
51
51
|
after?: string;
|
|
52
52
|
before?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
55
|
+
*/
|
|
53
56
|
limit?: string;
|
|
54
57
|
}
|
|
55
58
|
/**
|
|
@@ -59,8 +59,14 @@ export interface CartsRequestBuilderGetQueryParameters {
|
|
|
59
59
|
after?: string;
|
|
60
60
|
before?: string;
|
|
61
61
|
expand?: GetExpandQueryParameterType[];
|
|
62
|
+
/**
|
|
63
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
64
|
+
*/
|
|
62
65
|
limit?: string;
|
|
63
66
|
ownerId?: string[];
|
|
67
|
+
/**
|
|
68
|
+
* Search by cart id
|
|
69
|
+
*/
|
|
64
70
|
search?: string;
|
|
65
71
|
status?: GetStatusQueryParameterType[];
|
|
66
72
|
}
|
|
@@ -35,6 +35,9 @@ export interface CurrencyOptionsRequestBuilderGetQueryParameters {
|
|
|
35
35
|
after?: string;
|
|
36
36
|
before?: string;
|
|
37
37
|
expand?: GetExpandQueryParameterType[];
|
|
38
|
+
/**
|
|
39
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
40
|
+
*/
|
|
38
41
|
limit?: string;
|
|
39
42
|
priceId?: string;
|
|
40
43
|
}
|
|
@@ -36,6 +36,9 @@ export interface DestinationsRequestBuilderGetQueryParameters {
|
|
|
36
36
|
after?: string;
|
|
37
37
|
before?: string;
|
|
38
38
|
eventId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
41
|
+
*/
|
|
39
42
|
limit?: string;
|
|
40
43
|
}
|
|
41
44
|
/**
|
|
@@ -56,6 +56,9 @@ export interface EntitlementsRequestBuilder extends BaseRequestBuilder<Entitleme
|
|
|
56
56
|
export interface EntitlementsRequestBuilderGetQueryParameters {
|
|
57
57
|
after?: string;
|
|
58
58
|
before?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
61
|
+
*/
|
|
59
62
|
limit?: string;
|
|
60
63
|
planId?: string;
|
|
61
64
|
search?: string;
|
|
@@ -45,6 +45,9 @@ export interface EventAttemptsRequestBuilderGetQueryParameters {
|
|
|
45
45
|
after?: string;
|
|
46
46
|
before?: string;
|
|
47
47
|
destinationId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
50
|
+
*/
|
|
48
51
|
limit?: string;
|
|
49
52
|
}
|
|
50
53
|
/**
|
|
@@ -33,6 +33,9 @@ export interface EventsRequestBuilder extends BaseRequestBuilder<EventsRequestBu
|
|
|
33
33
|
export interface EventsRequestBuilderGetQueryParameters {
|
|
34
34
|
after?: string;
|
|
35
35
|
before?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
38
|
+
*/
|
|
36
39
|
limit?: string;
|
|
37
40
|
types?: GetTypesQueryParameterType[];
|
|
38
41
|
}
|
|
@@ -53,6 +53,9 @@ export interface GroupsRequestBuilderGetQueryParameters {
|
|
|
53
53
|
after?: string;
|
|
54
54
|
before?: string;
|
|
55
55
|
expand?: GetExpandQueryParameterType[];
|
|
56
|
+
/**
|
|
57
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
58
|
+
*/
|
|
56
59
|
limit?: string;
|
|
57
60
|
owner?: string;
|
|
58
61
|
}
|
|
@@ -33,6 +33,9 @@ export interface LineItemsRequestBuilder extends BaseRequestBuilder<LineItemsReq
|
|
|
33
33
|
export interface LineItemsRequestBuilderGetQueryParameters {
|
|
34
34
|
after?: string;
|
|
35
35
|
before?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
38
|
+
*/
|
|
36
39
|
limit?: string;
|
|
37
40
|
planId?: string;
|
|
38
41
|
search?: string;
|
|
@@ -26,6 +26,9 @@ export interface MetersRequestBuilder extends BaseRequestBuilder<MetersRequestBu
|
|
|
26
26
|
export interface MetersRequestBuilderGetQueryParameters {
|
|
27
27
|
after?: string;
|
|
28
28
|
before?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
31
|
+
*/
|
|
29
32
|
limit?: string;
|
|
30
33
|
search?: string;
|
|
31
34
|
}
|
|
@@ -35,6 +35,9 @@ export interface OwnersRequestBuilderGetQueryParameters {
|
|
|
35
35
|
after?: string;
|
|
36
36
|
before?: string;
|
|
37
37
|
expand?: GetExpandQueryParameterType[];
|
|
38
|
+
/**
|
|
39
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
40
|
+
*/
|
|
38
41
|
limit?: string;
|
|
39
42
|
search?: string;
|
|
40
43
|
stripeCustomerId?: string;
|
|
@@ -68,6 +68,9 @@ export interface PaymentIntegrationsRequestBuilder extends BaseRequestBuilder<Pa
|
|
|
68
68
|
export interface PaymentIntegrationsRequestBuilderGetQueryParameters {
|
|
69
69
|
after?: string;
|
|
70
70
|
before?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
73
|
+
*/
|
|
71
74
|
limit?: string;
|
|
72
75
|
}
|
|
73
76
|
/**
|
|
@@ -66,6 +66,9 @@ export interface PlansRequestBuilderGetQueryParameters {
|
|
|
66
66
|
interval?: GetIntervalQueryParameterType;
|
|
67
67
|
intervalCount?: string;
|
|
68
68
|
isActive?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
71
|
+
*/
|
|
69
72
|
limit?: string;
|
|
70
73
|
productId?: string;
|
|
71
74
|
search?: string;
|
|
@@ -33,6 +33,9 @@ export interface PricesRequestBuilder extends BaseRequestBuilder<PricesRequestBu
|
|
|
33
33
|
export interface PricesRequestBuilderGetQueryParameters {
|
|
34
34
|
after?: string;
|
|
35
35
|
before?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
38
|
+
*/
|
|
36
39
|
limit?: string;
|
|
37
40
|
}
|
|
38
41
|
/**
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type CopyProductToLiveModeRequestSchema, type CopyToLiveModeSchema } from '../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api/products/copy-to-live-mode
|
|
5
|
+
*/
|
|
6
|
+
export interface CopyToLiveModeRequestBuilder extends BaseRequestBuilder<CopyToLiveModeRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Copies a test mode product and all its associated plans, line items, prices, and entitlements to live mode. This endpoint must be called using a test mode API key.
|
|
9
|
+
* @param body The request body
|
|
10
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
+
* @returns {Promise<CopyToLiveModeSchema>}
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
17
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
18
|
+
*/
|
|
19
|
+
post(body: CopyProductToLiveModeRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CopyToLiveModeSchema | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Copies a test mode product and all its associated plans, line items, prices, and entitlements to live mode. This endpoint must be called using a test mode API key.
|
|
22
|
+
* @param body The request body
|
|
23
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
24
|
+
* @returns {RequestInformation}
|
|
25
|
+
*/
|
|
26
|
+
toPostRequestInformation(body: CopyProductToLiveModeRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Uri template for the request builder.
|
|
30
|
+
*/
|
|
31
|
+
export declare const CopyToLiveModeRequestBuilderUriTemplate = "{+baseurl}/api/products/copy-to-live-mode";
|
|
32
|
+
/**
|
|
33
|
+
* Metadata for all the requests in the request builder.
|
|
34
|
+
*/
|
|
35
|
+
export declare const CopyToLiveModeRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -4,7 +4,7 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ExportItemRequestBuilder extends BaseRequestBuilder<ExportItemRequestBuilder> {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Exports a product and all its associated plans, line items, prices, and entitlements as a YAML file.
|
|
8
8
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
9
|
* @returns {Promise<ArrayBuffer>}
|
|
10
10
|
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
@@ -16,7 +16,7 @@ export interface ExportItemRequestBuilder extends BaseRequestBuilder<ExportItemR
|
|
|
16
16
|
*/
|
|
17
17
|
get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ArrayBuffer | undefined>;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Exports a product and all its associated plans, line items, prices, and entitlements as a YAML file.
|
|
20
20
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
21
21
|
* @returns {RequestInformation}
|
|
22
22
|
*/
|
|
@@ -4,7 +4,7 @@ import { MultipartBody, type BaseRequestBuilder, type RequestConfiguration, type
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ImportRequestBuilder extends BaseRequestBuilder<ImportRequestBuilder> {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Imports a product from a YAML file. Only `.yaml` and `.yml` files are accepted. Only one file can be submitted per request.
|
|
8
8
|
* @param body The request body
|
|
9
9
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
10
|
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
@@ -15,7 +15,7 @@ export interface ImportRequestBuilder extends BaseRequestBuilder<ImportRequestBu
|
|
|
15
15
|
*/
|
|
16
16
|
post(body: MultipartBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Imports a product from a YAML file. Only `.yaml` and `.yml` files are accepted. Only one file can be submitted per request.
|
|
19
19
|
* @param body The request body
|
|
20
20
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
21
21
|
* @returns {RequestInformation}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CreateProductRequestSchema, type CreateProductResponseSchema, type GetProductListSchema } from '../../models/index.js';
|
|
2
|
+
import { type CopyToLiveModeRequestBuilder } from './copyToLiveMode/index.js';
|
|
2
3
|
import { type ExportRequestBuilder } from './exportEscaped/index.js';
|
|
3
4
|
import { type ImportRequestBuilder } from './importEscaped/index.js';
|
|
4
5
|
import { type ProductsItemRequestBuilder } from './item/index.js';
|
|
@@ -9,6 +10,10 @@ export type GetIncludeArchivedQueryParameterType = (typeof GetIncludeArchivedQue
|
|
|
9
10
|
* Builds and executes requests for operations under /api/products
|
|
10
11
|
*/
|
|
11
12
|
export interface ProductsRequestBuilder extends BaseRequestBuilder<ProductsRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* The copyToLiveMode property
|
|
15
|
+
*/
|
|
16
|
+
get copyToLiveMode(): CopyToLiveModeRequestBuilder;
|
|
12
17
|
/**
|
|
13
18
|
* The export property
|
|
14
19
|
*/
|
|
@@ -24,7 +29,7 @@ export interface ProductsRequestBuilder extends BaseRequestBuilder<ProductsReque
|
|
|
24
29
|
*/
|
|
25
30
|
byId(id: string): ProductsItemRequestBuilder;
|
|
26
31
|
/**
|
|
27
|
-
*
|
|
32
|
+
* Returns a list of your products. The products are returned sorted by `createdAt`, with the most recently created products appearing first.
|
|
28
33
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
29
34
|
* @returns {Promise<GetProductListSchema>}
|
|
30
35
|
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
@@ -34,7 +39,7 @@ export interface ProductsRequestBuilder extends BaseRequestBuilder<ProductsReque
|
|
|
34
39
|
*/
|
|
35
40
|
get(requestConfiguration?: RequestConfiguration<ProductsRequestBuilderGetQueryParameters> | undefined): Promise<GetProductListSchema | undefined>;
|
|
36
41
|
/**
|
|
37
|
-
*
|
|
42
|
+
* Creates a new product.
|
|
38
43
|
* @param body The request body
|
|
39
44
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
40
45
|
* @returns {Promise<CreateProductResponseSchema>}
|
|
@@ -46,13 +51,13 @@ export interface ProductsRequestBuilder extends BaseRequestBuilder<ProductsReque
|
|
|
46
51
|
*/
|
|
47
52
|
post(body: CreateProductRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CreateProductResponseSchema | undefined>;
|
|
48
53
|
/**
|
|
49
|
-
*
|
|
54
|
+
* Returns a list of your products. The products are returned sorted by `createdAt`, with the most recently created products appearing first.
|
|
50
55
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
51
56
|
* @returns {RequestInformation}
|
|
52
57
|
*/
|
|
53
58
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProductsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
54
59
|
/**
|
|
55
|
-
*
|
|
60
|
+
* Creates a new product.
|
|
56
61
|
* @param body The request body
|
|
57
62
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
58
63
|
* @returns {RequestInformation}
|
|
@@ -60,14 +65,32 @@ export interface ProductsRequestBuilder extends BaseRequestBuilder<ProductsReque
|
|
|
60
65
|
toPostRequestInformation(body: CreateProductRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
61
66
|
}
|
|
62
67
|
/**
|
|
63
|
-
*
|
|
68
|
+
* Returns a list of your products. The products are returned sorted by `createdAt`, with the most recently created products appearing first.
|
|
64
69
|
*/
|
|
65
70
|
export interface ProductsRequestBuilderGetQueryParameters {
|
|
71
|
+
/**
|
|
72
|
+
* Return records after this cursor for forward pagination. Use the `nextCursor` from a previous response.
|
|
73
|
+
*/
|
|
66
74
|
after?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Return records before this cursor for backwards pagination. Use the `previousCursor` from a previous response.
|
|
77
|
+
*/
|
|
67
78
|
before?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Expand related resources inline. Accepts a comma-separated list. Supported values: `plans`, `settings`.
|
|
81
|
+
*/
|
|
68
82
|
expand?: GetExpandQueryParameterType[];
|
|
83
|
+
/**
|
|
84
|
+
* When set to `true`, includes archived products in the results. Defaults to `false`.
|
|
85
|
+
*/
|
|
69
86
|
includeArchived?: GetIncludeArchivedQueryParameterType;
|
|
87
|
+
/**
|
|
88
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
89
|
+
*/
|
|
70
90
|
limit?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Filter products by name.
|
|
93
|
+
*/
|
|
71
94
|
search?: string;
|
|
72
95
|
}
|
|
73
96
|
/**
|
|
@@ -4,7 +4,7 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ArchiveRequestBuilder extends BaseRequestBuilder<ArchiveRequestBuilder> {
|
|
6
6
|
/**
|
|
7
|
-
* Archives a product. Archived products cannot be modified.
|
|
7
|
+
* Archives a product. Archived products are excluded from list responses by default, cannot be modified, and will not accept new subscriptions. Active subscriptions will remain unaffected.
|
|
8
8
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
9
|
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
10
10
|
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
@@ -16,7 +16,7 @@ export interface ArchiveRequestBuilder extends BaseRequestBuilder<ArchiveRequest
|
|
|
16
16
|
*/
|
|
17
17
|
post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
18
18
|
/**
|
|
19
|
-
* Archives a product. Archived products cannot be modified.
|
|
19
|
+
* Archives a product. Archived products are excluded from list responses by default, cannot be modified, and will not accept new subscriptions. Active subscriptions will remain unaffected.
|
|
20
20
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
21
21
|
* @returns {RequestInformation}
|
|
22
22
|
*/
|
|
@@ -11,7 +11,7 @@ export interface ProductsItemRequestBuilder extends BaseRequestBuilder<ProductsI
|
|
|
11
11
|
*/
|
|
12
12
|
get archive(): ArchiveRequestBuilder;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Permanently deletes a product. A product cannot be deleted if it has been subscribed to.
|
|
15
15
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
16
16
|
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
17
17
|
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
@@ -22,7 +22,7 @@ export interface ProductsItemRequestBuilder extends BaseRequestBuilder<ProductsI
|
|
|
22
22
|
*/
|
|
23
23
|
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Retrieves the details of an existing product.
|
|
26
26
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
27
|
* @returns {Promise<GetProductDetailSchema>}
|
|
28
28
|
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
@@ -34,7 +34,7 @@ export interface ProductsItemRequestBuilder extends BaseRequestBuilder<ProductsI
|
|
|
34
34
|
*/
|
|
35
35
|
get(requestConfiguration?: RequestConfiguration<ProductsItemRequestBuilderGetQueryParameters> | undefined): Promise<GetProductDetailSchema | undefined>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Updates the specified product. Only the fields provided in the request body will be updated.
|
|
38
38
|
* @param body The request body
|
|
39
39
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
40
40
|
* @returns {Promise<UpdateProductResponseSchema>}
|
|
@@ -47,19 +47,19 @@ export interface ProductsItemRequestBuilder extends BaseRequestBuilder<ProductsI
|
|
|
47
47
|
*/
|
|
48
48
|
put(body: UpdateProductRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UpdateProductResponseSchema | undefined>;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Permanently deletes a product. A product cannot be deleted if it has been subscribed to.
|
|
51
51
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
52
52
|
* @returns {RequestInformation}
|
|
53
53
|
*/
|
|
54
54
|
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Retrieves the details of an existing product.
|
|
57
57
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
58
58
|
* @returns {RequestInformation}
|
|
59
59
|
*/
|
|
60
60
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ProductsItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Updates the specified product. Only the fields provided in the request body will be updated.
|
|
63
63
|
* @param body The request body
|
|
64
64
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
65
65
|
* @returns {RequestInformation}
|
|
@@ -67,9 +67,12 @@ export interface ProductsItemRequestBuilder extends BaseRequestBuilder<ProductsI
|
|
|
67
67
|
toPutRequestInformation(body: UpdateProductRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Retrieves the details of an existing product.
|
|
71
71
|
*/
|
|
72
72
|
export interface ProductsItemRequestBuilderGetQueryParameters {
|
|
73
|
+
/**
|
|
74
|
+
* Expand related resources inline. Accepts a comma-separated list. Supported values: `settings`, `plans`.
|
|
75
|
+
*/
|
|
73
76
|
expand?: GetExpandQueryParameterType[];
|
|
74
77
|
}
|
|
75
78
|
/**
|
|
@@ -35,6 +35,9 @@ export interface ReceiptsRequestBuilderGetQueryParameters {
|
|
|
35
35
|
after?: string;
|
|
36
36
|
before?: string;
|
|
37
37
|
expand?: GetExpandQueryParameterType[];
|
|
38
|
+
/**
|
|
39
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
40
|
+
*/
|
|
38
41
|
limit?: string;
|
|
39
42
|
lineItems?: string[];
|
|
40
43
|
owner?: string[];
|
|
@@ -420,6 +420,9 @@ export interface SubscriptionPlansRequestBuilderGetQueryParameters {
|
|
|
420
420
|
after?: string;
|
|
421
421
|
before?: string;
|
|
422
422
|
expand?: GetExpandQueryParameterType[];
|
|
423
|
+
/**
|
|
424
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
425
|
+
*/
|
|
423
426
|
limit?: string;
|
|
424
427
|
owner?: string;
|
|
425
428
|
plans?: string;
|
|
@@ -278,6 +278,9 @@ export interface SubscriptionsRequestBuilderGetQueryParameters {
|
|
|
278
278
|
before?: string;
|
|
279
279
|
expand?: GetExpandQueryParameterType[];
|
|
280
280
|
id?: string;
|
|
281
|
+
/**
|
|
282
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
283
|
+
*/
|
|
281
284
|
limit?: string;
|
|
282
285
|
owner?: string;
|
|
283
286
|
plans?: string[];
|
|
@@ -45,6 +45,9 @@ export interface TierTagsRequestBuilder extends BaseRequestBuilder<TierTagsReque
|
|
|
45
45
|
export interface TierTagsRequestBuilderGetQueryParameters {
|
|
46
46
|
after?: string;
|
|
47
47
|
before?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
50
|
+
*/
|
|
48
51
|
limit?: string;
|
|
49
52
|
search?: string;
|
|
50
53
|
}
|
|
@@ -34,6 +34,9 @@ export interface TiersRequestBuilder extends BaseRequestBuilder<TiersRequestBuil
|
|
|
34
34
|
export interface TiersRequestBuilderGetQueryParameters {
|
|
35
35
|
after?: string;
|
|
36
36
|
before?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
39
|
+
*/
|
|
37
40
|
limit?: string;
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
@@ -30,6 +30,9 @@ export interface UsageRecordsRequestBuilder extends BaseRequestBuilder<UsageReco
|
|
|
30
30
|
export interface UsageRecordsRequestBuilderGetQueryParameters {
|
|
31
31
|
after?: string;
|
|
32
32
|
before?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The number of records returned in a response. Value between 1 and 100. Defaults to 25.
|
|
35
|
+
*/
|
|
33
36
|
limit?: string;
|
|
34
37
|
meterSlug?: string;
|
|
35
38
|
owner?: string;
|