@augno/sdk 0.17.0 → 0.18.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 +7 -3
- package/package.json +1 -1
- package/resources/finance/payment-terms.d.mts +5 -5
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +5 -5
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs.map +1 -1
- package/resources/operations/carriers/carriers.d.mts +5 -5
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +5 -5
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +5 -5
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +5 -5
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/shipments/actions.d.mts +3 -3
- package/resources/operations/shipments/actions.d.mts.map +1 -1
- package/resources/operations/shipments/actions.d.ts +3 -3
- package/resources/operations/shipments/actions.d.ts.map +1 -1
- package/resources/operations/shipping-terms.d.mts +5 -5
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +5 -5
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/sales/account-prices/account-prices.d.mts +999 -0
- package/resources/sales/account-prices/account-prices.d.mts.map +1 -0
- package/resources/sales/account-prices/account-prices.d.ts +999 -0
- package/resources/sales/account-prices/account-prices.d.ts.map +1 -0
- package/resources/sales/account-prices/account-prices.js +143 -0
- package/resources/sales/account-prices/account-prices.js.map +1 -0
- package/resources/sales/account-prices/account-prices.mjs +138 -0
- package/resources/sales/account-prices/account-prices.mjs.map +1 -0
- package/resources/sales/account-prices/actions.d.mts +58 -0
- package/resources/sales/account-prices/actions.d.mts.map +1 -0
- package/resources/sales/account-prices/actions.d.ts +58 -0
- package/resources/sales/account-prices/actions.d.ts.map +1 -0
- package/resources/sales/account-prices/actions.js +44 -0
- package/resources/sales/account-prices/actions.js.map +1 -0
- package/resources/sales/account-prices/actions.mjs +40 -0
- package/resources/sales/account-prices/actions.mjs.map +1 -0
- package/resources/sales/account-prices/index.d.mts +3 -0
- package/resources/sales/account-prices/index.d.mts.map +1 -0
- package/resources/sales/account-prices/index.d.ts +3 -0
- package/resources/sales/account-prices/index.d.ts.map +1 -0
- package/resources/sales/account-prices/index.js +9 -0
- package/resources/sales/account-prices/index.js.map +1 -0
- package/resources/sales/account-prices/index.mjs +4 -0
- package/resources/sales/account-prices/index.mjs.map +1 -0
- package/resources/sales/account-prices.d.mts +2 -0
- package/resources/sales/account-prices.d.mts.map +1 -0
- package/resources/sales/account-prices.d.ts +2 -0
- package/resources/sales/account-prices.d.ts.map +1 -0
- package/resources/sales/account-prices.js +6 -0
- package/resources/sales/account-prices.js.map +1 -0
- package/resources/sales/account-prices.mjs +3 -0
- package/resources/sales/account-prices.mjs.map +1 -0
- package/resources/sales/customers/actions.d.mts +2 -2
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +2 -2
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +6 -564
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +6 -564
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/index.d.mts +6 -3
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +6 -3
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js +15 -9
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs +3 -0
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/order-discounts/actions.d.mts +85 -0
- package/resources/sales/order-discounts/actions.d.mts.map +1 -0
- package/resources/sales/order-discounts/actions.d.ts +85 -0
- package/resources/sales/order-discounts/actions.d.ts.map +1 -0
- package/resources/sales/order-discounts/actions.js +35 -0
- package/resources/sales/order-discounts/actions.js.map +1 -0
- package/resources/sales/order-discounts/actions.mjs +31 -0
- package/resources/sales/order-discounts/actions.mjs.map +1 -0
- package/resources/sales/order-discounts/index.d.mts +3 -0
- package/resources/sales/order-discounts/index.d.mts.map +1 -0
- package/resources/sales/order-discounts/index.d.ts +3 -0
- package/resources/sales/order-discounts/index.d.ts.map +1 -0
- package/resources/sales/order-discounts/index.js +9 -0
- package/resources/sales/order-discounts/index.js.map +1 -0
- package/resources/sales/order-discounts/index.mjs +4 -0
- package/resources/sales/order-discounts/index.mjs.map +1 -0
- package/resources/sales/order-discounts/order-discounts.d.mts +365 -0
- package/resources/sales/order-discounts/order-discounts.d.mts.map +1 -0
- package/resources/sales/order-discounts/order-discounts.d.ts +365 -0
- package/resources/sales/order-discounts/order-discounts.d.ts.map +1 -0
- package/resources/sales/order-discounts/order-discounts.js +125 -0
- package/resources/sales/order-discounts/order-discounts.js.map +1 -0
- package/resources/sales/order-discounts/order-discounts.mjs +120 -0
- package/resources/sales/order-discounts/order-discounts.mjs.map +1 -0
- package/resources/sales/order-discounts.d.mts +2 -0
- package/resources/sales/order-discounts.d.mts.map +1 -0
- package/resources/sales/order-discounts.d.ts +2 -0
- package/resources/sales/order-discounts.d.ts.map +1 -0
- package/resources/sales/order-discounts.js +6 -0
- package/resources/sales/order-discounts.js.map +1 -0
- package/resources/sales/order-discounts.mjs +3 -0
- package/resources/sales/order-discounts.mjs.map +1 -0
- package/resources/sales/priorities.d.mts +4 -44
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +4 -44
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.mjs.map +1 -1
- package/resources/sales/sales-orders/index.d.mts +1 -1
- package/resources/sales/sales-orders/index.d.mts.map +1 -1
- package/resources/sales/sales-orders/index.d.ts +1 -1
- package/resources/sales/sales-orders/index.d.ts.map +1 -1
- package/resources/sales/sales-orders/index.js.map +1 -1
- package/resources/sales/sales-orders/index.mjs.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.mts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.mts.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.ts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.mts +10 -69
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +10 -69
- package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +18 -6
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +18 -6
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js +12 -0
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs +12 -0
- package/resources/sales/sales.mjs.map +1 -1
- package/resources/sales/volume-discounts.d.mts +684 -0
- package/resources/sales/volume-discounts.d.mts.map +1 -0
- package/resources/sales/volume-discounts.d.ts +684 -0
- package/resources/sales/volume-discounts.d.ts.map +1 -0
- package/resources/sales/volume-discounts.js +152 -0
- package/resources/sales/volume-discounts.js.map +1 -0
- package/resources/sales/volume-discounts.mjs +148 -0
- package/resources/sales/volume-discounts.mjs.map +1 -0
- package/src/resources/finance/payment-terms.ts +8 -5
- package/src/resources/operations/carriers/carriers.ts +5 -5
- package/src/resources/operations/carriers/service-levels.ts +5 -5
- package/src/resources/operations/shipments/actions.ts +3 -3
- package/src/resources/operations/shipping-terms.ts +8 -5
- package/src/resources/sales/account-prices/account-prices.ts +1191 -0
- package/src/resources/sales/account-prices/actions.ts +74 -0
- package/src/resources/sales/account-prices/index.ts +27 -0
- package/src/resources/sales/account-prices.ts +3 -0
- package/src/resources/sales/customers/actions.ts +6 -2
- package/src/resources/sales/customers/customers.ts +5 -658
- package/src/resources/sales/customers/index.ts +0 -11
- package/src/resources/sales/index.ts +50 -13
- package/src/resources/sales/order-discounts/actions.ts +102 -0
- package/src/resources/sales/order-discounts/index.ts +13 -0
- package/src/resources/sales/order-discounts/order-discounts.ts +442 -0
- package/src/resources/sales/order-discounts.ts +3 -0
- package/src/resources/sales/priorities.ts +3 -51
- package/src/resources/sales/sales-orders/index.ts +0 -1
- package/src/resources/sales/sales-orders/lines/lines.ts +2 -2
- package/src/resources/sales/sales-orders/sales-orders.ts +9 -79
- package/src/resources/sales/sales.ts +113 -26
- package/src/resources/sales/volume-discounts.ts +813 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-prices.d.ts","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/account-prices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,gBAAgB;OACrB,KAAK,UAAU;OACf,KAAK,iBAAiB;OACtB,KAAK,QAAQ;OACb,KAAK,YAAY;OACjB,KAAK,eAAe;OACpB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,EAAE,2BAA2B,EAAE,OAAO,EAAE,sBAAsB,EAAE;OAChE,EA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gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,143 @@
|
|
|
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.AccountPrices = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ActionsAPI = tslib_1.__importStar(require("./actions.js"));
|
|
8
|
+
const actions_1 = require("./actions.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
/**
|
|
11
|
+
* List and manage account prices.
|
|
12
|
+
*/
|
|
13
|
+
class AccountPrices extends resource_1.APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns a paginated list of account prices, newest first.
|
|
20
|
+
*
|
|
21
|
+
* The search term matches the recipient customer's name or their customer number.
|
|
22
|
+
* Customer portal users always see only the prices that apply to their own
|
|
23
|
+
* account, whatever `recipient_account_id` is set to.
|
|
24
|
+
*
|
|
25
|
+
* This endpoint requires the permissions: `discounts:read`, `customers:read`,
|
|
26
|
+
* `suppliers:read`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const listAccountPrice =
|
|
31
|
+
* await client.sales.accountPrices.list();
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
list(query = {}, options) {
|
|
35
|
+
return this._client.get('/v1/sales/account-prices', { query, ...options });
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns an account price by ID.
|
|
39
|
+
*
|
|
40
|
+
* A customer portal user can only retrieve a price whose recipient is their own
|
|
41
|
+
* account or its parent; any other price is reported as not found.
|
|
42
|
+
*
|
|
43
|
+
* This endpoint requires the permissions: `discounts:read`, `customers:read`,
|
|
44
|
+
* `suppliers:read`.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const accountPrice =
|
|
49
|
+
* await client.sales.accountPrices.retrieve(
|
|
50
|
+
* 'acpr_7l4j483kf32p',
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
retrieve(id, query = {}, options) {
|
|
55
|
+
return this._client.get((0, path_1.path) `/v1/sales/account-prices/${id}`, { query, ...options });
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Creates a customer-specific price for a product line.
|
|
59
|
+
*
|
|
60
|
+
* When a sales order line for the recipient matches the price's product line and
|
|
61
|
+
* attributes, this price replaces the unit price the line would otherwise be
|
|
62
|
+
* given, including the effect of any volume discount. If more than one account
|
|
63
|
+
* price matches a line, the most recently created one wins.
|
|
64
|
+
*
|
|
65
|
+
* This endpoint requires the permission: `discounts:create`.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const accountPrice =
|
|
70
|
+
* await client.sales.accountPrices.create({
|
|
71
|
+
* product_line_id: 'pdln_k9bnlgvxhxjh',
|
|
72
|
+
* rate: {
|
|
73
|
+
* value: '25.50',
|
|
74
|
+
* numerator_unit_id: 'un_82bd37dae5po',
|
|
75
|
+
* denominator_unit_id: 'un_82bd37dae5po',
|
|
76
|
+
* },
|
|
77
|
+
* recipient_account_id: 'ac_ykxoradjoeb3',
|
|
78
|
+
* attribute_ids: ['at_rf1w295jt5ia'],
|
|
79
|
+
* category_ids: ['ic_d06g9c6yc9ck'],
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
create(params, options) {
|
|
84
|
+
const { include, ...body } = params;
|
|
85
|
+
return this._client.post('/v1/sales/account-prices', { query: { include }, body, ...options });
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Partially updates an account price.
|
|
89
|
+
*
|
|
90
|
+
* Only the provided fields are changed. If `category_ids` or `attribute_ids` are
|
|
91
|
+
* provided, they replace the existing set entirely.
|
|
92
|
+
*
|
|
93
|
+
* Order lines that have already been priced keep the unit price they were given;
|
|
94
|
+
* the new price applies to lines priced after the change.
|
|
95
|
+
*
|
|
96
|
+
* This endpoint requires the permission: `discounts:update`.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const accountPrice =
|
|
101
|
+
* await client.sales.accountPrices.update(
|
|
102
|
+
* 'acpr_7l4j483kf32p',
|
|
103
|
+
* {
|
|
104
|
+
* rate: {
|
|
105
|
+
* value: '30.000000000000000000000000000000',
|
|
106
|
+
* numerator_unit_id: 'un_82bd37dae5po',
|
|
107
|
+
* denominator_unit_id: 'un_82bd37dae5po',
|
|
108
|
+
* },
|
|
109
|
+
* },
|
|
110
|
+
* );
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
update(id, params = {}, options) {
|
|
114
|
+
const { include, ...body } = params ?? {};
|
|
115
|
+
return this._client.patch((0, path_1.path) `/v1/sales/account-prices/${id}`, { query: { include }, body, ...options });
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Deletes an account price.
|
|
119
|
+
*
|
|
120
|
+
* The price's category and attribute associations and its rate record are removed
|
|
121
|
+
* with it. Deletion is permanent; further requests against the deleted ID return
|
|
122
|
+
* an error.
|
|
123
|
+
*
|
|
124
|
+
* Order lines that have already been priced keep the unit price they were given;
|
|
125
|
+
* only lines priced after the deletion revert to standard pricing.
|
|
126
|
+
*
|
|
127
|
+
* This endpoint requires the permission: `discounts:delete`.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```ts
|
|
131
|
+
* const accountPrice =
|
|
132
|
+
* await client.sales.accountPrices.delete(
|
|
133
|
+
* 'acpr_7l4j483kf32p',
|
|
134
|
+
* );
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
delete(id, options) {
|
|
138
|
+
return this._client.delete((0, path_1.path) `/v1/sales/account-prices/${id}`, options);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
exports.AccountPrices = AccountPrices;
|
|
142
|
+
AccountPrices.Actions = actions_1.Actions;
|
|
143
|
+
//# sourceMappingURL=account-prices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-prices.js","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/account-prices.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AASrD,iEAAwC;AACxC,0CAAyF;AAGzF,0DAAoD;AAEpD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2IrE,CAAC;IAzIC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ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"../../../core/resource.mjs";
|
|
3
|
+
import * as ActionsAPI from "./actions.mjs";
|
|
4
|
+
import { Actions } from "./actions.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* List and manage account prices.
|
|
8
|
+
*/
|
|
9
|
+
export class AccountPrices extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.actions = new ActionsAPI.Actions(this._client);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns a paginated list of account prices, newest first.
|
|
16
|
+
*
|
|
17
|
+
* The search term matches the recipient customer's name or their customer number.
|
|
18
|
+
* Customer portal users always see only the prices that apply to their own
|
|
19
|
+
* account, whatever `recipient_account_id` is set to.
|
|
20
|
+
*
|
|
21
|
+
* This endpoint requires the permissions: `discounts:read`, `customers:read`,
|
|
22
|
+
* `suppliers:read`.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const listAccountPrice =
|
|
27
|
+
* await client.sales.accountPrices.list();
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(query = {}, options) {
|
|
31
|
+
return this._client.get('/v1/sales/account-prices', { query, ...options });
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Returns an account price by ID.
|
|
35
|
+
*
|
|
36
|
+
* A customer portal user can only retrieve a price whose recipient is their own
|
|
37
|
+
* account or its parent; any other price is reported as not found.
|
|
38
|
+
*
|
|
39
|
+
* This endpoint requires the permissions: `discounts:read`, `customers:read`,
|
|
40
|
+
* `suppliers:read`.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const accountPrice =
|
|
45
|
+
* await client.sales.accountPrices.retrieve(
|
|
46
|
+
* 'acpr_7l4j483kf32p',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
retrieve(id, query = {}, options) {
|
|
51
|
+
return this._client.get(path `/v1/sales/account-prices/${id}`, { query, ...options });
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Creates a customer-specific price for a product line.
|
|
55
|
+
*
|
|
56
|
+
* When a sales order line for the recipient matches the price's product line and
|
|
57
|
+
* attributes, this price replaces the unit price the line would otherwise be
|
|
58
|
+
* given, including the effect of any volume discount. If more than one account
|
|
59
|
+
* price matches a line, the most recently created one wins.
|
|
60
|
+
*
|
|
61
|
+
* This endpoint requires the permission: `discounts:create`.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const accountPrice =
|
|
66
|
+
* await client.sales.accountPrices.create({
|
|
67
|
+
* product_line_id: 'pdln_k9bnlgvxhxjh',
|
|
68
|
+
* rate: {
|
|
69
|
+
* value: '25.50',
|
|
70
|
+
* numerator_unit_id: 'un_82bd37dae5po',
|
|
71
|
+
* denominator_unit_id: 'un_82bd37dae5po',
|
|
72
|
+
* },
|
|
73
|
+
* recipient_account_id: 'ac_ykxoradjoeb3',
|
|
74
|
+
* attribute_ids: ['at_rf1w295jt5ia'],
|
|
75
|
+
* category_ids: ['ic_d06g9c6yc9ck'],
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
create(params, options) {
|
|
80
|
+
const { include, ...body } = params;
|
|
81
|
+
return this._client.post('/v1/sales/account-prices', { query: { include }, body, ...options });
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Partially updates an account price.
|
|
85
|
+
*
|
|
86
|
+
* Only the provided fields are changed. If `category_ids` or `attribute_ids` are
|
|
87
|
+
* provided, they replace the existing set entirely.
|
|
88
|
+
*
|
|
89
|
+
* Order lines that have already been priced keep the unit price they were given;
|
|
90
|
+
* the new price applies to lines priced after the change.
|
|
91
|
+
*
|
|
92
|
+
* This endpoint requires the permission: `discounts:update`.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* const accountPrice =
|
|
97
|
+
* await client.sales.accountPrices.update(
|
|
98
|
+
* 'acpr_7l4j483kf32p',
|
|
99
|
+
* {
|
|
100
|
+
* rate: {
|
|
101
|
+
* value: '30.000000000000000000000000000000',
|
|
102
|
+
* numerator_unit_id: 'un_82bd37dae5po',
|
|
103
|
+
* denominator_unit_id: 'un_82bd37dae5po',
|
|
104
|
+
* },
|
|
105
|
+
* },
|
|
106
|
+
* );
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
update(id, params = {}, options) {
|
|
110
|
+
const { include, ...body } = params ?? {};
|
|
111
|
+
return this._client.patch(path `/v1/sales/account-prices/${id}`, { query: { include }, body, ...options });
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Deletes an account price.
|
|
115
|
+
*
|
|
116
|
+
* The price's category and attribute associations and its rate record are removed
|
|
117
|
+
* with it. Deletion is permanent; further requests against the deleted ID return
|
|
118
|
+
* an error.
|
|
119
|
+
*
|
|
120
|
+
* Order lines that have already been priced keep the unit price they were given;
|
|
121
|
+
* only lines priced after the deletion revert to standard pricing.
|
|
122
|
+
*
|
|
123
|
+
* This endpoint requires the permission: `discounts:delete`.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```ts
|
|
127
|
+
* const accountPrice =
|
|
128
|
+
* await client.sales.accountPrices.delete(
|
|
129
|
+
* 'acpr_7l4j483kf32p',
|
|
130
|
+
* );
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
delete(id, options) {
|
|
134
|
+
return this._client.delete(path `/v1/sales/account-prices/${id}`, options);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
AccountPrices.Actions = Actions;
|
|
138
|
+
//# sourceMappingURL=account-prices.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-prices.mjs","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/account-prices.ts"],"names":[],"mappings":"AAAA,sFAAsF;OA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,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAs+BD,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as JobsAPI from "../../core/jobs.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* List and manage account prices.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Actions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Starts a customer's price list and returns the job that tracks it.
|
|
11
|
+
*
|
|
12
|
+
* The document covers every product the customer may order, grouped by product
|
|
13
|
+
* line and then by the SKUs that share a price, with the attributes that vary
|
|
14
|
+
* shown as columns. Prices are calculated by the same engine that prices a sales
|
|
15
|
+
* order, so they include the customer's contracted prices and any volume discount
|
|
16
|
+
* they qualify for; a volume break becomes its own price column only where it
|
|
17
|
+
* actually changes a price.
|
|
18
|
+
*
|
|
19
|
+
* Pricing a whole catalog takes too long to hold a request open for, so the PDF is
|
|
20
|
+
* rendered in the background. Poll the returned job and download the file it names
|
|
21
|
+
* once it completes.
|
|
22
|
+
*
|
|
23
|
+
* This endpoint requires the permission: `discounts:read`.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const job =
|
|
28
|
+
* await client.sales.accountPrices.actions.exportPriceList({
|
|
29
|
+
* customer_id: 'ac_opnlh43ymyee',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
exportPriceList(params: ActionExportPriceListParams, options?: RequestOptions): APIPromise<JobsAPI.Job>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Request to export a customer's price list.
|
|
37
|
+
*/
|
|
38
|
+
export interface ExportPriceListRequest {
|
|
39
|
+
/**
|
|
40
|
+
* ID of the customer whose prices are listed.
|
|
41
|
+
*/
|
|
42
|
+
customer_id: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ActionExportPriceListParams {
|
|
45
|
+
/**
|
|
46
|
+
* Body param: ID of the customer whose prices are listed.
|
|
47
|
+
*/
|
|
48
|
+
customer_id: string;
|
|
49
|
+
/**
|
|
50
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
51
|
+
* are returned as `null`.
|
|
52
|
+
*/
|
|
53
|
+
include?: Array<'created_by' | 'created_by.role'>;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace Actions {
|
|
56
|
+
export { type ExportPriceListRequest as ExportPriceListRequest, type ActionExportPriceListParams as ActionExportPriceListParams, };
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=actions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,eAAe,CAAC,MAAM,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC;CAQxG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,iBAAiB,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as JobsAPI from "../../core/jobs.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* List and manage account prices.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Actions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Starts a customer's price list and returns the job that tracks it.
|
|
11
|
+
*
|
|
12
|
+
* The document covers every product the customer may order, grouped by product
|
|
13
|
+
* line and then by the SKUs that share a price, with the attributes that vary
|
|
14
|
+
* shown as columns. Prices are calculated by the same engine that prices a sales
|
|
15
|
+
* order, so they include the customer's contracted prices and any volume discount
|
|
16
|
+
* they qualify for; a volume break becomes its own price column only where it
|
|
17
|
+
* actually changes a price.
|
|
18
|
+
*
|
|
19
|
+
* Pricing a whole catalog takes too long to hold a request open for, so the PDF is
|
|
20
|
+
* rendered in the background. Poll the returned job and download the file it names
|
|
21
|
+
* once it completes.
|
|
22
|
+
*
|
|
23
|
+
* This endpoint requires the permission: `discounts:read`.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const job =
|
|
28
|
+
* await client.sales.accountPrices.actions.exportPriceList({
|
|
29
|
+
* customer_id: 'ac_opnlh43ymyee',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
exportPriceList(params: ActionExportPriceListParams, options?: RequestOptions): APIPromise<JobsAPI.Job>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Request to export a customer's price list.
|
|
37
|
+
*/
|
|
38
|
+
export interface ExportPriceListRequest {
|
|
39
|
+
/**
|
|
40
|
+
* ID of the customer whose prices are listed.
|
|
41
|
+
*/
|
|
42
|
+
customer_id: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ActionExportPriceListParams {
|
|
45
|
+
/**
|
|
46
|
+
* Body param: ID of the customer whose prices are listed.
|
|
47
|
+
*/
|
|
48
|
+
customer_id: string;
|
|
49
|
+
/**
|
|
50
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
51
|
+
* are returned as `null`.
|
|
52
|
+
*/
|
|
53
|
+
include?: Array<'created_by' | 'created_by.role'>;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace Actions {
|
|
56
|
+
export { type ExportPriceListRequest as ExportPriceListRequest, type ActionExportPriceListParams as ActionExportPriceListParams, };
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,eAAe,CAAC,MAAM,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC;CAQxG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,iBAAiB,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.Actions = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* List and manage account prices.
|
|
8
|
+
*/
|
|
9
|
+
class Actions extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Starts a customer's price list and returns the job that tracks it.
|
|
12
|
+
*
|
|
13
|
+
* The document covers every product the customer may order, grouped by product
|
|
14
|
+
* line and then by the SKUs that share a price, with the attributes that vary
|
|
15
|
+
* shown as columns. Prices are calculated by the same engine that prices a sales
|
|
16
|
+
* order, so they include the customer's contracted prices and any volume discount
|
|
17
|
+
* they qualify for; a volume break becomes its own price column only where it
|
|
18
|
+
* actually changes a price.
|
|
19
|
+
*
|
|
20
|
+
* Pricing a whole catalog takes too long to hold a request open for, so the PDF is
|
|
21
|
+
* rendered in the background. Poll the returned job and download the file it names
|
|
22
|
+
* once it completes.
|
|
23
|
+
*
|
|
24
|
+
* This endpoint requires the permission: `discounts:read`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const job =
|
|
29
|
+
* await client.sales.accountPrices.actions.exportPriceList({
|
|
30
|
+
* customer_id: 'ac_opnlh43ymyee',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
exportPriceList(params, options) {
|
|
35
|
+
const { include, ...body } = params;
|
|
36
|
+
return this._client.post('/v1/sales/account-prices/actions/export-price-list', {
|
|
37
|
+
query: { include },
|
|
38
|
+
body,
|
|
39
|
+
...options,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.Actions = Actions;
|
|
44
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,eAAe,CAAC,MAAmC,EAAE,OAAwB;QAC3E,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oDAAoD,EAAE;YAC7E,KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAjCD,0BAiCC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* List and manage account prices.
|
|
5
|
+
*/
|
|
6
|
+
export class Actions extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Starts a customer's price list and returns the job that tracks it.
|
|
9
|
+
*
|
|
10
|
+
* The document covers every product the customer may order, grouped by product
|
|
11
|
+
* line and then by the SKUs that share a price, with the attributes that vary
|
|
12
|
+
* shown as columns. Prices are calculated by the same engine that prices a sales
|
|
13
|
+
* order, so they include the customer's contracted prices and any volume discount
|
|
14
|
+
* they qualify for; a volume break becomes its own price column only where it
|
|
15
|
+
* actually changes a price.
|
|
16
|
+
*
|
|
17
|
+
* Pricing a whole catalog takes too long to hold a request open for, so the PDF is
|
|
18
|
+
* rendered in the background. Poll the returned job and download the file it names
|
|
19
|
+
* once it completes.
|
|
20
|
+
*
|
|
21
|
+
* This endpoint requires the permission: `discounts:read`.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const job =
|
|
26
|
+
* await client.sales.accountPrices.actions.exportPriceList({
|
|
27
|
+
* customer_id: 'ac_opnlh43ymyee',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
exportPriceList(params, options) {
|
|
32
|
+
const { include, ...body } = params;
|
|
33
|
+
return this._client.post('/v1/sales/account-prices/actions/export-price-list', {
|
|
34
|
+
query: { include },
|
|
35
|
+
body,
|
|
36
|
+
...options,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=actions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,eAAe,CAAC,MAAmC,EAAE,OAAwB;QAC3E,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oDAAoD,EAAE;YAC7E,KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AccountPrices, type AccountPrice, type Carrier, type CreateAccountPriceRequest, type Customer, type CustomerContactInfo, type CustomerDefaults, type CustomerFreightPreferences, type CustomerNotificationPreferences, type ListAccountPrice, type ListCustomer, type ListServiceLevel, type PaymentTerm, type Priority, type ServiceLevel, type ShippingTerm, type UpdateAccountPriceRequest, type AccountPriceDeleteResponse, type AccountPriceListParams, type AccountPriceRetrieveParams, type AccountPriceCreateParams, type AccountPriceUpdateParams, } from "./account-prices.mjs";
|
|
2
|
+
export { Actions, type ExportPriceListRequest, type ActionExportPriceListParams } from "./actions.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EAAE,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,2BAA2B,EAAE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AccountPrices, type AccountPrice, type Carrier, type CreateAccountPriceRequest, type Customer, type CustomerContactInfo, type CustomerDefaults, type CustomerFreightPreferences, type CustomerNotificationPreferences, type ListAccountPrice, type ListCustomer, type ListServiceLevel, type PaymentTerm, type Priority, type ServiceLevel, type ShippingTerm, type UpdateAccountPriceRequest, type AccountPriceDeleteResponse, type AccountPriceListParams, type AccountPriceRetrieveParams, type AccountPriceCreateParams, type AccountPriceUpdateParams, } from "./account-prices.js";
|
|
2
|
+
export { Actions, type ExportPriceListRequest, type ActionExportPriceListParams } from "./actions.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EAAE,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,2BAA2B,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Actions = exports.AccountPrices = void 0;
|
|
5
|
+
var account_prices_1 = require("./account-prices.js");
|
|
6
|
+
Object.defineProperty(exports, "AccountPrices", { enumerable: true, get: function () { return account_prices_1.AccountPrices; } });
|
|
7
|
+
var actions_1 = require("./actions.js");
|
|
8
|
+
Object.defineProperty(exports, "Actions", { enumerable: true, get: function () { return actions_1.Actions; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAuB0B;AAtBxB,+GAAA,aAAa,OAAA;AAuBf,wCAAmG;AAA1F,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/sales/account-prices/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAsBd;OACM,EAAE,OAAO,EAAiE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-prices.d.mts","sourceRoot":"","sources":["../../src/resources/sales/account-prices.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-prices.d.ts","sourceRoot":"","sources":["../../src/resources/sales/account-prices.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
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("./account-prices/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=account-prices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-prices.js","sourceRoot":"","sources":["../../src/resources/sales/account-prices.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-prices.mjs","sourceRoot":"","sources":["../../src/resources/sales/account-prices.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as AccountPricesAPI from "../account-prices/account-prices.mjs";
|
|
3
3
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
5
|
/**
|
|
@@ -29,7 +29,7 @@ export declare class Actions extends APIResource {
|
|
|
29
29
|
* );
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
merge(id: string, params: ActionMergeParams, options?: RequestOptions): APIPromise<
|
|
32
|
+
merge(id: string, params: ActionMergeParams, options?: RequestOptions): APIPromise<AccountPricesAPI.Customer>;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Request to merge source customers into a target customer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/customers/actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../../src/resources/sales/customers/actions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC;CAQzC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEnC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CACX,iBAAiB,GACjB,iBAAiB,GACjB,MAAM,GACN,gBAAgB,GAChB,6BAA6B,GAC7B,4CAA4C,GAC5C,mCAAmC,GACnC,uBAAuB,GACvB,wBAAwB,GACxB,oBAAoB,GACpB,yBAAyB,GACzB,mBAAmB,GACnB,cAAc,GACd,qBAAqB,GACrB,UAAU,GACV,0BAA0B,GAC1B,cAAc,GACd,gBAAgB,GAChB,cAAc,GACd,mBAAmB,CACtB,CAAC;CACH;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC7G"}
|