dodopayments 2.24.0 → 2.25.0
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 +9 -0
- package/bin/migration-config.json +15 -169
- package/client.d.mts +2 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -8
- package/client.d.ts.map +1 -1
- package/client.js +0 -6
- package/client.js.map +1 -1
- package/client.mjs +0 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/customers/customers.d.mts +8 -1
- package/resources/customers/customers.d.mts.map +1 -1
- package/resources/customers/customers.d.ts +8 -1
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +8 -0
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +8 -0
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/index.d.mts +1 -1
- package/resources/customers/index.d.mts.map +1 -1
- package/resources/customers/index.d.ts +1 -1
- package/resources/customers/index.d.ts.map +1 -1
- package/resources/customers/index.js.map +1 -1
- package/resources/customers/index.mjs.map +1 -1
- package/resources/disputes.d.mts +12 -0
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +12 -0
- package/resources/disputes.d.ts.map +1 -1
- package/resources/index.d.mts +1 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -2
- package/resources/index.mjs.map +1 -1
- package/resources/invoices/payments.d.mts +0 -1
- package/resources/invoices/payments.d.mts.map +1 -1
- package/resources/invoices/payments.d.ts +0 -1
- package/resources/invoices/payments.d.ts.map +1 -1
- package/resources/invoices/payments.js +0 -7
- package/resources/invoices/payments.js.map +1 -1
- package/resources/invoices/payments.mjs +0 -7
- package/resources/invoices/payments.mjs.map +1 -1
- package/src/client.ts +2 -34
- package/src/resources/customers/customers.ts +21 -0
- package/src/resources/customers/index.ts +1 -0
- package/src/resources/disputes.ts +15 -0
- package/src/resources/index.ts +1 -14
- package/src/resources/invoices/payments.ts +0 -8
- 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/product-collections/groups/groups.d.mts +0 -107
- package/resources/product-collections/groups/groups.d.mts.map +0 -1
- package/resources/product-collections/groups/groups.d.ts +0 -107
- package/resources/product-collections/groups/groups.d.ts.map +0 -1
- package/resources/product-collections/groups/groups.js +0 -37
- package/resources/product-collections/groups/groups.js.map +0 -1
- package/resources/product-collections/groups/groups.mjs +0 -32
- package/resources/product-collections/groups/groups.mjs.map +0 -1
- package/resources/product-collections/groups/index.d.mts +0 -3
- package/resources/product-collections/groups/index.d.mts.map +0 -1
- package/resources/product-collections/groups/index.d.ts +0 -3
- package/resources/product-collections/groups/index.d.ts.map +0 -1
- package/resources/product-collections/groups/index.js +0 -9
- package/resources/product-collections/groups/index.js.map +0 -1
- package/resources/product-collections/groups/index.mjs +0 -4
- package/resources/product-collections/groups/index.mjs.map +0 -1
- package/resources/product-collections/groups/items.d.mts +0 -91
- package/resources/product-collections/groups/items.d.mts.map +0 -1
- package/resources/product-collections/groups/items.d.ts +0 -91
- package/resources/product-collections/groups/items.d.ts.map +0 -1
- package/resources/product-collections/groups/items.js +0 -30
- package/resources/product-collections/groups/items.js.map +0 -1
- package/resources/product-collections/groups/items.mjs +0 -26
- package/resources/product-collections/groups/items.mjs.map +0 -1
- package/resources/product-collections/groups.d.mts +0 -2
- package/resources/product-collections/groups.d.mts.map +0 -1
- package/resources/product-collections/groups.d.ts +0 -2
- package/resources/product-collections/groups.d.ts.map +0 -1
- package/resources/product-collections/groups.js +0 -6
- package/resources/product-collections/groups.js.map +0 -1
- package/resources/product-collections/groups.mjs +0 -3
- package/resources/product-collections/groups.mjs.map +0 -1
- package/resources/product-collections/index.d.mts +0 -3
- package/resources/product-collections/index.d.mts.map +0 -1
- package/resources/product-collections/index.d.ts +0 -3
- package/resources/product-collections/index.d.ts.map +0 -1
- package/resources/product-collections/index.js +0 -9
- package/resources/product-collections/index.js.map +0 -1
- package/resources/product-collections/index.mjs +0 -4
- package/resources/product-collections/index.mjs.map +0 -1
- package/resources/product-collections/product-collections.d.mts +0 -307
- package/resources/product-collections/product-collections.d.mts.map +0 -1
- package/resources/product-collections/product-collections.d.ts +0 -307
- package/resources/product-collections/product-collections.d.ts.map +0 -1
- package/resources/product-collections/product-collections.js +0 -49
- package/resources/product-collections/product-collections.js.map +0 -1
- package/resources/product-collections/product-collections.mjs +0 -44
- package/resources/product-collections/product-collections.mjs.map +0 -1
- package/resources/product-collections.d.mts +0 -2
- package/resources/product-collections.d.mts.map +0 -1
- package/resources/product-collections.d.ts +0 -2
- package/resources/product-collections.d.ts.map +0 -1
- package/resources/product-collections.js +0 -6
- package/resources/product-collections.js.map +0 -1
- package/resources/product-collections.mjs +0 -3
- package/resources/product-collections.mjs.map +0 -1
- package/resources/your-webhook-url.d.mts +0 -85
- package/resources/your-webhook-url.d.mts.map +0 -1
- package/resources/your-webhook-url.d.ts +0 -85
- package/resources/your-webhook-url.d.ts.map +0 -1
- package/resources/your-webhook-url.js +0 -26
- package/resources/your-webhook-url.js.map +0 -1
- package/resources/your-webhook-url.mjs +0 -22
- package/resources/your-webhook-url.mjs.map +0 -1
- package/src/resources/product-collections/groups/groups.ts +0 -174
- package/src/resources/product-collections/groups/index.ts +0 -16
- package/src/resources/product-collections/groups/items.ts +0 -149
- package/src/resources/product-collections/groups.ts +0 -3
- package/src/resources/product-collections/index.ts +0 -22
- package/src/resources/product-collections/product-collections.ts +0 -472
- package/src/resources/product-collections.ts +0 -3
- package/src/resources/your-webhook-url.ts +0 -138
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as MiscAPI from "../../misc.js";
|
|
3
|
-
import * as ProductsAPI from "../../products/products.js";
|
|
4
|
-
import * as ItemsAPI from "./items.js";
|
|
5
|
-
import { ItemCreateParams, ItemCreateResponse, ItemDeleteParams, ItemUpdateParams, Items } from "./items.js";
|
|
6
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
8
|
-
export declare class Groups extends APIResource {
|
|
9
|
-
items: ItemsAPI.Items;
|
|
10
|
-
create(id: string, body: GroupCreateParams, options?: RequestOptions): APIPromise<GroupCreateResponse>;
|
|
11
|
-
update(groupID: string, params: GroupUpdateParams, options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
delete(groupID: string, params: GroupDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
13
|
-
}
|
|
14
|
-
export interface GroupCreateResponse {
|
|
15
|
-
group_id: string;
|
|
16
|
-
products: Array<GroupCreateResponse.Product>;
|
|
17
|
-
status: boolean;
|
|
18
|
-
group_name?: string | null;
|
|
19
|
-
}
|
|
20
|
-
export declare namespace GroupCreateResponse {
|
|
21
|
-
interface Product {
|
|
22
|
-
id: string;
|
|
23
|
-
addons_count: number;
|
|
24
|
-
files_count: number;
|
|
25
|
-
/**
|
|
26
|
-
* Whether this product has any credit entitlements attached
|
|
27
|
-
*/
|
|
28
|
-
has_credit_entitlements: boolean;
|
|
29
|
-
is_recurring: boolean;
|
|
30
|
-
license_key_enabled: boolean;
|
|
31
|
-
meters_count: number;
|
|
32
|
-
product_id: string;
|
|
33
|
-
status: boolean;
|
|
34
|
-
currency?: MiscAPI.Currency | null;
|
|
35
|
-
description?: string | null;
|
|
36
|
-
name?: string | null;
|
|
37
|
-
price?: number | null;
|
|
38
|
-
/**
|
|
39
|
-
* One-time price details.
|
|
40
|
-
*/
|
|
41
|
-
price_detail?: ProductsAPI.Price | null;
|
|
42
|
-
/**
|
|
43
|
-
* Represents the different categories of taxation applicable to various products
|
|
44
|
-
* and services.
|
|
45
|
-
*/
|
|
46
|
-
tax_category?: MiscAPI.TaxCategory | null;
|
|
47
|
-
tax_inclusive?: boolean | null;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export interface GroupCreateParams {
|
|
51
|
-
/**
|
|
52
|
-
* Products in this group
|
|
53
|
-
*/
|
|
54
|
-
products: Array<GroupCreateParams.Product>;
|
|
55
|
-
/**
|
|
56
|
-
* Optional group name. Multiple groups can have null names, but named groups must
|
|
57
|
-
* be unique per collection
|
|
58
|
-
*/
|
|
59
|
-
group_name?: string | null;
|
|
60
|
-
/**
|
|
61
|
-
* Status of the group (defaults to true if not provided)
|
|
62
|
-
*/
|
|
63
|
-
status?: boolean | null;
|
|
64
|
-
}
|
|
65
|
-
export declare namespace GroupCreateParams {
|
|
66
|
-
interface Product {
|
|
67
|
-
/**
|
|
68
|
-
* Product ID to include in the group
|
|
69
|
-
*/
|
|
70
|
-
product_id: string;
|
|
71
|
-
/**
|
|
72
|
-
* Status of the product in this group (defaults to true if not provided)
|
|
73
|
-
*/
|
|
74
|
-
status?: boolean | null;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
export interface GroupUpdateParams {
|
|
78
|
-
/**
|
|
79
|
-
* Path param: Product Collection Id
|
|
80
|
-
*/
|
|
81
|
-
id: string;
|
|
82
|
-
/**
|
|
83
|
-
* Body param: Optional group name update: Some(Some(name)) = set name, Some(None)
|
|
84
|
-
* = clear name, None = no change
|
|
85
|
-
*/
|
|
86
|
-
group_name?: string | null;
|
|
87
|
-
/**
|
|
88
|
-
* Body param: Optional new order for products in this group (array of
|
|
89
|
-
* product_collection_group_pdts UUIDs)
|
|
90
|
-
*/
|
|
91
|
-
product_order?: Array<string> | null;
|
|
92
|
-
/**
|
|
93
|
-
* Body param: Optional status update
|
|
94
|
-
*/
|
|
95
|
-
status?: boolean | null;
|
|
96
|
-
}
|
|
97
|
-
export interface GroupDeleteParams {
|
|
98
|
-
/**
|
|
99
|
-
* Product Collection Id
|
|
100
|
-
*/
|
|
101
|
-
id: string;
|
|
102
|
-
}
|
|
103
|
-
export declare namespace Groups {
|
|
104
|
-
export { type GroupCreateResponse as GroupCreateResponse, type GroupCreateParams as GroupCreateParams, type GroupUpdateParams as GroupUpdateParams, type GroupDeleteParams as GroupDeleteParams, };
|
|
105
|
-
export { Items as Items, type ItemCreateResponse as ItemCreateResponse, type ItemCreateParams as ItemCreateParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, };
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=groups.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,WAAW;OAChB,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE;OACnF,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAItG,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAS9F,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO/F;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAE7C,MAAM,EAAE,OAAO,CAAC;IAEhB,UAAU,CAAC,EAAE,MAAM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MAAM,CAAC;IAEX;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,37 +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.Groups = void 0;
|
|
5
|
-
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const ItemsAPI = tslib_1.__importStar(require("./items.js"));
|
|
8
|
-
const items_1 = require("./items.js");
|
|
9
|
-
const headers_1 = require("../../../internal/headers.js");
|
|
10
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
11
|
-
class Groups extends resource_1.APIResource {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.items = new ItemsAPI.Items(this._client);
|
|
15
|
-
}
|
|
16
|
-
create(id, body, options) {
|
|
17
|
-
return this._client.post((0, path_1.path) `/product-collections/${id}/groups`, { body, ...options });
|
|
18
|
-
}
|
|
19
|
-
update(groupID, params, options) {
|
|
20
|
-
const { id, ...body } = params;
|
|
21
|
-
return this._client.patch((0, path_1.path) `/product-collections/${id}/groups/${groupID}`, {
|
|
22
|
-
body,
|
|
23
|
-
...options,
|
|
24
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
delete(groupID, params, options) {
|
|
28
|
-
const { id } = params;
|
|
29
|
-
return this._client.delete((0, path_1.path) `/product-collections/${id}/groups/${groupID}`, {
|
|
30
|
-
...options,
|
|
31
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.Groups = Groups;
|
|
36
|
-
Groups.Items = items_1.Items;
|
|
37
|
-
//# sourceMappingURL=groups.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,6DAAoC;AACpC,sCAA0G;AAE1G,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsB3D,CAAC;IApBC,MAAM,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,WAAW,OAAO,EAAE,EAAE;YAC5E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,WAAW,OAAO,EAAE,EAAE;YAC7E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,wBAuBC;AAyHD,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import * as ItemsAPI from "./items.mjs";
|
|
4
|
-
import { Items } from "./items.mjs";
|
|
5
|
-
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
7
|
-
export class Groups extends APIResource {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.items = new ItemsAPI.Items(this._client);
|
|
11
|
-
}
|
|
12
|
-
create(id, body, options) {
|
|
13
|
-
return this._client.post(path `/product-collections/${id}/groups`, { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
update(groupID, params, options) {
|
|
16
|
-
const { id, ...body } = params;
|
|
17
|
-
return this._client.patch(path `/product-collections/${id}/groups/${groupID}`, {
|
|
18
|
-
body,
|
|
19
|
-
...options,
|
|
20
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
delete(groupID, params, options) {
|
|
24
|
-
const { id } = params;
|
|
25
|
-
return this._client.delete(path `/product-collections/${id}/groups/${groupID}`, {
|
|
26
|
-
...options,
|
|
27
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
Groups.Items = Items;
|
|
32
|
-
//# sourceMappingURL=groups.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,QAAQ;OACb,EAA4E,KAAK,EAAE;OAEnF,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsB3D,CAAC;IApBC,MAAM,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,wBAAwB,EAAE,WAAW,OAAO,EAAE,EAAE;YAC5E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,EAAE,WAAW,OAAO,EAAE,EAAE;YAC7E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAyHD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { Groups, type GroupCreateResponse, type GroupCreateParams, type GroupUpdateParams, type GroupDeleteParams, } from "./groups.mjs";
|
|
2
|
-
export { Items, type ItemCreateResponse, type ItemCreateParams, type ItemUpdateParams, type ItemDeleteParams, } from "./items.mjs";
|
|
3
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { Groups, type GroupCreateResponse, type GroupCreateParams, type GroupUpdateParams, type GroupDeleteParams, } from "./groups.js";
|
|
2
|
-
export { Items, type ItemCreateResponse, type ItemCreateParams, type ItemUpdateParams, type ItemDeleteParams, } from "./items.js";
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB"}
|
|
@@ -1,9 +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.Items = exports.Groups = void 0;
|
|
5
|
-
var groups_1 = require("./groups.js");
|
|
6
|
-
Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
|
|
7
|
-
var items_1 = require("./items.js");
|
|
8
|
-
Object.defineProperty(exports, "Items", { enumerable: true, get: function () { return items_1.Items; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,oCAMiB;AALf,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAKP;OACM,EACL,KAAK,GAKN"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as MiscAPI from "../../misc.mjs";
|
|
3
|
-
import * as ProductsAPI from "../../products/products.mjs";
|
|
4
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
|
-
export declare class Items extends APIResource {
|
|
7
|
-
create(groupID: string, params: ItemCreateParams, options?: RequestOptions): APIPromise<ItemCreateResponse>;
|
|
8
|
-
update(itemID: string, params: ItemUpdateParams, options?: RequestOptions): APIPromise<void>;
|
|
9
|
-
delete(itemID: string, params: ItemDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
10
|
-
}
|
|
11
|
-
export type ItemCreateResponse = Array<ItemCreateResponse.ItemCreateResponseItem>;
|
|
12
|
-
export declare namespace ItemCreateResponse {
|
|
13
|
-
interface ItemCreateResponseItem {
|
|
14
|
-
id: string;
|
|
15
|
-
addons_count: number;
|
|
16
|
-
files_count: number;
|
|
17
|
-
/**
|
|
18
|
-
* Whether this product has any credit entitlements attached
|
|
19
|
-
*/
|
|
20
|
-
has_credit_entitlements: boolean;
|
|
21
|
-
is_recurring: boolean;
|
|
22
|
-
license_key_enabled: boolean;
|
|
23
|
-
meters_count: number;
|
|
24
|
-
product_id: string;
|
|
25
|
-
status: boolean;
|
|
26
|
-
currency?: MiscAPI.Currency | null;
|
|
27
|
-
description?: string | null;
|
|
28
|
-
name?: string | null;
|
|
29
|
-
price?: number | null;
|
|
30
|
-
/**
|
|
31
|
-
* One-time price details.
|
|
32
|
-
*/
|
|
33
|
-
price_detail?: ProductsAPI.Price | null;
|
|
34
|
-
/**
|
|
35
|
-
* Represents the different categories of taxation applicable to various products
|
|
36
|
-
* and services.
|
|
37
|
-
*/
|
|
38
|
-
tax_category?: MiscAPI.TaxCategory | null;
|
|
39
|
-
tax_inclusive?: boolean | null;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export interface ItemCreateParams {
|
|
43
|
-
/**
|
|
44
|
-
* Path param: Product Collection Id
|
|
45
|
-
*/
|
|
46
|
-
id: string;
|
|
47
|
-
/**
|
|
48
|
-
* Body param: Products to add to the group
|
|
49
|
-
*/
|
|
50
|
-
products: Array<ItemCreateParams.Product>;
|
|
51
|
-
}
|
|
52
|
-
export declare namespace ItemCreateParams {
|
|
53
|
-
interface Product {
|
|
54
|
-
/**
|
|
55
|
-
* Product ID to include in the group
|
|
56
|
-
*/
|
|
57
|
-
product_id: string;
|
|
58
|
-
/**
|
|
59
|
-
* Status of the product in this group (defaults to true if not provided)
|
|
60
|
-
*/
|
|
61
|
-
status?: boolean | null;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export interface ItemUpdateParams {
|
|
65
|
-
/**
|
|
66
|
-
* Path param: Product Collection Id
|
|
67
|
-
*/
|
|
68
|
-
id: string;
|
|
69
|
-
/**
|
|
70
|
-
* Path param: Product Collection Group Id
|
|
71
|
-
*/
|
|
72
|
-
group_id: string;
|
|
73
|
-
/**
|
|
74
|
-
* Body param: Status of the product in the group
|
|
75
|
-
*/
|
|
76
|
-
status: boolean;
|
|
77
|
-
}
|
|
78
|
-
export interface ItemDeleteParams {
|
|
79
|
-
/**
|
|
80
|
-
* Product Collection Id
|
|
81
|
-
*/
|
|
82
|
-
id: string;
|
|
83
|
-
/**
|
|
84
|
-
* Product Collection Group Id
|
|
85
|
-
*/
|
|
86
|
-
group_id: string;
|
|
87
|
-
}
|
|
88
|
-
export declare namespace Items {
|
|
89
|
-
export { type ItemCreateResponse as ItemCreateResponse, type ItemCreateParams as ItemCreateParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, };
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=items.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.mts","sourceRoot":"","sources":["../../../src/resources/product-coll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K,GAAG,IAAI,CAAC;QAExC;;;WAGG;QACH,YAAY,CAAC,EAAE,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;QAE1C,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KAChC;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;CAC3C;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,OAAO;QACtB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as MiscAPI from "../../misc.js";
|
|
3
|
-
import * as ProductsAPI from "../../products/products.js";
|
|
4
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
-
export declare class Items extends APIResource {
|
|
7
|
-
create(groupID: string, params: ItemCreateParams, options?: RequestOptions): APIPromise<ItemCreateResponse>;
|
|
8
|
-
update(itemID: string, params: ItemUpdateParams, options?: RequestOptions): APIPromise<void>;
|
|
9
|
-
delete(itemID: string, params: ItemDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
10
|
-
}
|
|
11
|
-
export type ItemCreateResponse = Array<ItemCreateResponse.ItemCreateResponseItem>;
|
|
12
|
-
export declare namespace ItemCreateResponse {
|
|
13
|
-
interface ItemCreateResponseItem {
|
|
14
|
-
id: string;
|
|
15
|
-
addons_count: number;
|
|
16
|
-
files_count: number;
|
|
17
|
-
/**
|
|
18
|
-
* Whether this product has any credit entitlements attached
|
|
19
|
-
*/
|
|
20
|
-
has_credit_entitlements: boolean;
|
|
21
|
-
is_recurring: boolean;
|
|
22
|
-
license_key_enabled: boolean;
|
|
23
|
-
meters_count: number;
|
|
24
|
-
product_id: string;
|
|
25
|
-
status: boolean;
|
|
26
|
-
currency?: MiscAPI.Currency | null;
|
|
27
|
-
description?: string | null;
|
|
28
|
-
name?: string | null;
|
|
29
|
-
price?: number | null;
|
|
30
|
-
/**
|
|
31
|
-
* One-time price details.
|
|
32
|
-
*/
|
|
33
|
-
price_detail?: ProductsAPI.Price | null;
|
|
34
|
-
/**
|
|
35
|
-
* Represents the different categories of taxation applicable to various products
|
|
36
|
-
* and services.
|
|
37
|
-
*/
|
|
38
|
-
tax_category?: MiscAPI.TaxCategory | null;
|
|
39
|
-
tax_inclusive?: boolean | null;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export interface ItemCreateParams {
|
|
43
|
-
/**
|
|
44
|
-
* Path param: Product Collection Id
|
|
45
|
-
*/
|
|
46
|
-
id: string;
|
|
47
|
-
/**
|
|
48
|
-
* Body param: Products to add to the group
|
|
49
|
-
*/
|
|
50
|
-
products: Array<ItemCreateParams.Product>;
|
|
51
|
-
}
|
|
52
|
-
export declare namespace ItemCreateParams {
|
|
53
|
-
interface Product {
|
|
54
|
-
/**
|
|
55
|
-
* Product ID to include in the group
|
|
56
|
-
*/
|
|
57
|
-
product_id: string;
|
|
58
|
-
/**
|
|
59
|
-
* Status of the product in this group (defaults to true if not provided)
|
|
60
|
-
*/
|
|
61
|
-
status?: boolean | null;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export interface ItemUpdateParams {
|
|
65
|
-
/**
|
|
66
|
-
* Path param: Product Collection Id
|
|
67
|
-
*/
|
|
68
|
-
id: string;
|
|
69
|
-
/**
|
|
70
|
-
* Path param: Product Collection Group Id
|
|
71
|
-
*/
|
|
72
|
-
group_id: string;
|
|
73
|
-
/**
|
|
74
|
-
* Body param: Status of the product in the group
|
|
75
|
-
*/
|
|
76
|
-
status: boolean;
|
|
77
|
-
}
|
|
78
|
-
export interface ItemDeleteParams {
|
|
79
|
-
/**
|
|
80
|
-
* Product Collection Id
|
|
81
|
-
*/
|
|
82
|
-
id: string;
|
|
83
|
-
/**
|
|
84
|
-
* Product Collection Group Id
|
|
85
|
-
*/
|
|
86
|
-
group_id: string;
|
|
87
|
-
}
|
|
88
|
-
export declare namespace Items {
|
|
89
|
-
export { type ItemCreateResponse as ItemCreateResponse, type ItemCreateParams as ItemCreateParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, };
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=items.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAKjC,MAAM,CAAC,M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BAAiB,gBAAgB,CAAC;IAChC,UAAiB,OAAO;QACtB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,30 +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.Items = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
-
class Items extends resource_1.APIResource {
|
|
9
|
-
create(groupID, params, options) {
|
|
10
|
-
const { id, ...body } = params;
|
|
11
|
-
return this._client.post((0, path_1.path) `/product-collections/${id}/groups/${groupID}/items`, { body, ...options });
|
|
12
|
-
}
|
|
13
|
-
update(itemID, params, options) {
|
|
14
|
-
const { id, group_id, ...body } = params;
|
|
15
|
-
return this._client.patch((0, path_1.path) `/product-collections/${id}/groups/${group_id}/items/${itemID}`, {
|
|
16
|
-
body,
|
|
17
|
-
...options,
|
|
18
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
delete(itemID, params, options) {
|
|
22
|
-
const { id, group_id } = params;
|
|
23
|
-
return this._client.delete((0, path_1.path) `/product-collections/${id}/groups/${group_id}/items/${itemID}`, {
|
|
24
|
-
...options,
|
|
25
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.Items = Items;
|
|
30
|
-
//# sourceMappingURL=items.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC,MAAM,CACJ,OAAe,EACf,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,WAAW,OAAO,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,WAAW,QAAQ,UAAU,MAAM,EAAE,EAAE;YAC7F,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,WAAW,QAAQ,UAAU,MAAM,EAAE,EAAE;YAC9F,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA1BD,sBA0BC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
-
export class Items extends APIResource {
|
|
6
|
-
create(groupID, params, options) {
|
|
7
|
-
const { id, ...body } = params;
|
|
8
|
-
return this._client.post(path `/product-collections/${id}/groups/${groupID}/items`, { body, ...options });
|
|
9
|
-
}
|
|
10
|
-
update(itemID, params, options) {
|
|
11
|
-
const { id, group_id, ...body } = params;
|
|
12
|
-
return this._client.patch(path `/product-collections/${id}/groups/${group_id}/items/${itemID}`, {
|
|
13
|
-
body,
|
|
14
|
-
...options,
|
|
15
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
delete(itemID, params, options) {
|
|
19
|
-
const { id, group_id } = params;
|
|
20
|
-
return this._client.delete(path `/product-collections/${id}/groups/${group_id}/items/${itemID}`, {
|
|
21
|
-
...options,
|
|
22
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=items.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"items.mjs","sourceRoot":"","sources":["../../../src/resources/product-collections/groups/items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC,MAAM,CACJ,OAAe,EACf,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,EAAE,WAAW,OAAO,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,wBAAwB,EAAE,WAAW,QAAQ,UAAU,MAAM,EAAE,EAAE;YAC7F,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,EAAE,WAAW,QAAQ,UAAU,MAAM,EAAE,EAAE;YAC9F,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/product-collections/groups.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/resources/product-collections/groups.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +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
|
-
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./groups/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=groups.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/resources/product-collections/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/product-collections/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { Groups, type GroupCreateResponse, type GroupCreateParams, type GroupUpdateParams, type GroupDeleteParams, } from "./groups/index.mjs";
|
|
2
|
-
export { ProductCollections, type ProductCollectionCreateResponse, type ProductCollectionRetrieveResponse, type ProductCollectionListResponse, type ProductCollectionUnarchiveResponse, type ProductCollectionUpdateImagesResponse, type ProductCollectionCreateParams, type ProductCollectionUpdateParams, type ProductCollectionListParams, type ProductCollectionUpdateImagesParams, type ProductCollectionListResponsesDefaultPageNumberPagination, } from "./product-collections.mjs";
|
|
3
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/product-collections/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,kBAAkB,EAClB,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,qCAAqC,EAC1C,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,mCAAmC,EACxC,KAAK,yDAAyD,GAC/D"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { Groups, type GroupCreateResponse, type GroupCreateParams, type GroupUpdateParams, type GroupDeleteParams, } from "./groups/index.js";
|
|
2
|
-
export { ProductCollections, type ProductCollectionCreateResponse, type ProductCollectionRetrieveResponse, type ProductCollectionListResponse, type ProductCollectionUnarchiveResponse, type ProductCollectionUpdateImagesResponse, type ProductCollectionCreateParams, type ProductCollectionUpdateParams, type ProductCollectionListParams, type ProductCollectionUpdateImagesParams, type ProductCollectionListResponsesDefaultPageNumberPagination, } from "./product-collections.js";
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/product-collections/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,kBAAkB,EAClB,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,qCAAqC,EAC1C,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,mCAAmC,EACxC,KAAK,yDAAyD,GAC/D"}
|
|
@@ -1,9 +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.ProductCollections = exports.Groups = void 0;
|
|
5
|
-
var index_1 = require("./groups/index.js");
|
|
6
|
-
Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return index_1.Groups; } });
|
|
7
|
-
var product_collections_1 = require("./product-collections.js");
|
|
8
|
-
Object.defineProperty(exports, "ProductCollections", { enumerable: true, get: function () { return product_collections_1.ProductCollections; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/product-collections/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2CAMwB;AALtB,+FAAA,MAAM,OAAA;AAMR,gEAY+B;AAX7B,yHAAA,kBAAkB,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/product-collections/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAKP;OACM,EACL,kBAAkB,GAWnB"}
|