@revenexx/sdk 0.0.4 → 0.0.6
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/cjs/sdk.js +13491 -6163
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13464 -6162
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13491 -6163
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/address-type.ts +4 -0
- package/src/enums/cart-export-format.ts +4 -0
- package/src/enums/cart-io-apply-mode.ts +5 -0
- package/src/enums/cart-io-direction.ts +4 -0
- package/src/enums/cart-io-entity.ts +4 -0
- package/src/enums/cart-io-format.ts +4 -0
- package/src/enums/cart-item-type.ts +5 -0
- package/src/enums/channel-status.ts +4 -0
- package/src/enums/channel-type.ts +7 -0
- package/src/enums/contact-role.ts +6 -0
- package/src/enums/contact-status.ts +5 -0
- package/src/enums/location-type.ts +6 -0
- package/src/enums/market-status.ts +4 -0
- package/src/enums/order-comment-visibility.ts +4 -0
- package/src/enums/order-item-type.ts +5 -0
- package/src/enums/order-list-kind.ts +4 -0
- package/src/enums/order-payment-status.ts +9 -0
- package/src/enums/organization-status.ts +4 -0
- package/src/enums/page-status.ts +5 -0
- package/src/enums/payment-fee-type.ts +5 -0
- package/src/enums/payment-method-kind.ts +4 -0
- package/src/enums/price-entry-type.ts +4 -0
- package/src/enums/price-list-status.ts +4 -0
- package/src/enums/shipping-method-matrix-basis.ts +6 -0
- package/src/enums/shipping-method-pricing-type.ts +5 -0
- package/src/enums/store-asset-request-visibility.ts +4 -0
- package/src/enums/visibility.ts +4 -0
- package/src/index.ts +28 -2
- package/src/models.ts +5309 -1009
- package/src/services/apps.ts +154 -154
- package/src/services/avatars.ts +57 -57
- package/src/services/carts.ts +739 -104
- package/src/services/channels.ts +147 -19
- package/src/services/customers.ts +809 -69
- package/src/services/greetings.ts +18 -18
- package/src/services/inventories.ts +620 -65
- package/src/services/locale.ts +16 -16
- package/src/services/markets.ts +690 -75
- package/src/services/messaging.ts +273 -273
- package/src/services/orderlists.ts +889 -0
- package/src/services/orders.ts +692 -137
- package/src/services/pages.ts +661 -155
- package/src/services/payments.ts +591 -64
- package/src/services/prices.ts +585 -59
- package/src/services/products.ts +1908 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +451 -59
- package/src/services/sites.ts +116 -116
- package/src/services/storage.ts +933 -599
- package/src/services/tokens.ts +14 -14
- package/types/enums/address-type.d.ts +4 -0
- package/types/enums/cart-export-format.d.ts +4 -0
- package/types/enums/cart-io-apply-mode.d.ts +5 -0
- package/types/enums/cart-io-direction.d.ts +4 -0
- package/types/enums/cart-io-entity.d.ts +4 -0
- package/types/enums/cart-io-format.d.ts +4 -0
- package/types/enums/cart-item-type.d.ts +5 -0
- package/types/enums/channel-status.d.ts +4 -0
- package/types/enums/channel-type.d.ts +7 -0
- package/types/enums/contact-role.d.ts +6 -0
- package/types/enums/contact-status.d.ts +5 -0
- package/types/enums/location-type.d.ts +6 -0
- package/types/enums/market-status.d.ts +4 -0
- package/types/enums/order-comment-visibility.d.ts +4 -0
- package/types/enums/order-item-type.d.ts +5 -0
- package/types/enums/order-list-kind.d.ts +4 -0
- package/types/enums/order-payment-status.d.ts +9 -0
- package/types/enums/organization-status.d.ts +4 -0
- package/types/enums/page-status.d.ts +5 -0
- package/types/enums/payment-fee-type.d.ts +5 -0
- package/types/enums/payment-method-kind.d.ts +4 -0
- package/types/enums/price-entry-type.d.ts +4 -0
- package/types/enums/price-list-status.d.ts +4 -0
- package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
- package/types/enums/shipping-method-pricing-type.d.ts +5 -0
- package/types/enums/store-asset-request-visibility.d.ts +4 -0
- package/types/enums/visibility.d.ts +4 -0
- package/types/index.d.ts +28 -2
- package/types/models.d.ts +5170 -1010
- package/types/services/carts.d.ts +271 -12
- package/types/services/channels.d.ts +54 -2
- package/types/services/customers.d.ts +298 -12
- package/types/services/inventories.d.ts +225 -11
- package/types/services/markets.d.ts +235 -6
- package/types/services/orderlists.d.ts +324 -0
- package/types/services/orders.d.ts +238 -16
- package/types/services/pages.d.ts +190 -6
- package/types/services/payments.d.ts +221 -7
- package/types/services/prices.d.ts +218 -6
- package/types/services/products.d.ts +672 -32
- package/types/services/shipping.d.ts +168 -6
- package/types/services/storage.d.ts +353 -285
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
+
import { PriceListStatus } from '../enums/price-list-status';
|
|
4
|
+
import { PriceEntryType } from '../enums/price-entry-type';
|
|
3
5
|
export declare class Prices {
|
|
4
6
|
client: Client;
|
|
5
7
|
constructor(client: Client);
|
|
@@ -11,10 +13,66 @@ export declare class Prices {
|
|
|
11
13
|
pricesListsList(): Promise<{}>;
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
16
|
+
* @param {string} params.code - Unique list code per tenant.
|
|
17
|
+
* @param {string} params.name -
|
|
18
|
+
* @param {string} params.channelId - Scope: only this channel.
|
|
19
|
+
* @param {string} params.contactId - Scope: only this contact — beats every other scope.
|
|
20
|
+
* @param {string} params.currency - ISO 4217 code (default EUR) — resolution only considers lists matching the requested currency.
|
|
21
|
+
* @param {string} params.description -
|
|
22
|
+
* @param {boolean} params.isDefault - Default lists resolve last within their group.
|
|
23
|
+
* @param {object} params.labels - Localised names ({de, en, …}).
|
|
24
|
+
* @param {string} params.marketId - Scope: only this market.
|
|
25
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
26
|
+
* @param {string} params.organizationId - Scope: only this organization.
|
|
27
|
+
* @param {number} params.priority - Tie-breaker within a specificity group (higher wins, default 0).
|
|
28
|
+
* @param {PriceListStatus} params.status - Default 'active' — only active lists resolve.
|
|
29
|
+
* @param {boolean} params.taxIncluded - Gross (true) or net (false, default) prices.
|
|
30
|
+
* @param {string} params.validFrom - Validity window start.
|
|
31
|
+
* @param {string} params.validUntil - Validity window end.
|
|
14
32
|
* @throws {RevenexxException}
|
|
15
33
|
* @returns {Promise<Models.PriceList>}
|
|
16
34
|
*/
|
|
17
|
-
pricesListsCreate(
|
|
35
|
+
pricesListsCreate(params: {
|
|
36
|
+
code: string;
|
|
37
|
+
name: string;
|
|
38
|
+
channelId?: string;
|
|
39
|
+
contactId?: string;
|
|
40
|
+
currency?: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
isDefault?: boolean;
|
|
43
|
+
labels?: object;
|
|
44
|
+
marketId?: string;
|
|
45
|
+
metadata?: object;
|
|
46
|
+
organizationId?: string;
|
|
47
|
+
priority?: number;
|
|
48
|
+
status?: PriceListStatus;
|
|
49
|
+
taxIncluded?: boolean;
|
|
50
|
+
validFrom?: string;
|
|
51
|
+
validUntil?: string;
|
|
52
|
+
}): Promise<Models.PriceList>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @param {string} code - Unique list code per tenant.
|
|
56
|
+
* @param {string} name -
|
|
57
|
+
* @param {string} channelId - Scope: only this channel.
|
|
58
|
+
* @param {string} contactId - Scope: only this contact — beats every other scope.
|
|
59
|
+
* @param {string} currency - ISO 4217 code (default EUR) — resolution only considers lists matching the requested currency.
|
|
60
|
+
* @param {string} description -
|
|
61
|
+
* @param {boolean} isDefault - Default lists resolve last within their group.
|
|
62
|
+
* @param {object} labels - Localised names ({de, en, …}).
|
|
63
|
+
* @param {string} marketId - Scope: only this market.
|
|
64
|
+
* @param {object} metadata - Free-form metadata.
|
|
65
|
+
* @param {string} organizationId - Scope: only this organization.
|
|
66
|
+
* @param {number} priority - Tie-breaker within a specificity group (higher wins, default 0).
|
|
67
|
+
* @param {PriceListStatus} status - Default 'active' — only active lists resolve.
|
|
68
|
+
* @param {boolean} taxIncluded - Gross (true) or net (false, default) prices.
|
|
69
|
+
* @param {string} validFrom - Validity window start.
|
|
70
|
+
* @param {string} validUntil - Validity window end.
|
|
71
|
+
* @throws {RevenexxException}
|
|
72
|
+
* @returns {Promise<Models.PriceList>}
|
|
73
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
74
|
+
*/
|
|
75
|
+
pricesListsCreate(code: string, name: string, channelId?: string, contactId?: string, currency?: string, description?: string, isDefault?: boolean, labels?: object, marketId?: string, metadata?: object, organizationId?: string, priority?: number, status?: PriceListStatus, taxIncluded?: boolean, validFrom?: string, validUntil?: string): Promise<Models.PriceList>;
|
|
18
76
|
/**
|
|
19
77
|
*
|
|
20
78
|
* @throws {RevenexxException}
|
|
@@ -58,20 +116,68 @@ export declare class Prices {
|
|
|
58
116
|
/**
|
|
59
117
|
*
|
|
60
118
|
* @param {string} params.id -
|
|
119
|
+
* @param {string} params.channelId - Scope: only this channel.
|
|
120
|
+
* @param {string} params.code - Unique list code per tenant.
|
|
121
|
+
* @param {string} params.contactId - Scope: only this contact — beats every other scope.
|
|
122
|
+
* @param {string} params.currency - ISO 4217 code (default EUR) — resolution only considers lists matching the requested currency.
|
|
123
|
+
* @param {string} params.description -
|
|
124
|
+
* @param {boolean} params.isDefault - Default lists resolve last within their group.
|
|
125
|
+
* @param {object} params.labels - Localised names ({de, en, …}).
|
|
126
|
+
* @param {string} params.marketId - Scope: only this market.
|
|
127
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
128
|
+
* @param {string} params.name -
|
|
129
|
+
* @param {string} params.organizationId - Scope: only this organization.
|
|
130
|
+
* @param {number} params.priority - Tie-breaker within a specificity group (higher wins, default 0).
|
|
131
|
+
* @param {PriceListStatus} params.status - Default 'active' — only active lists resolve.
|
|
132
|
+
* @param {boolean} params.taxIncluded - Gross (true) or net (false, default) prices.
|
|
133
|
+
* @param {string} params.validFrom - Validity window start.
|
|
134
|
+
* @param {string} params.validUntil - Validity window end.
|
|
61
135
|
* @throws {RevenexxException}
|
|
62
136
|
* @returns {Promise<Models.PriceList>}
|
|
63
137
|
*/
|
|
64
138
|
pricesListsUpdate(params: {
|
|
65
139
|
id: string;
|
|
140
|
+
channelId?: string;
|
|
141
|
+
code?: string;
|
|
142
|
+
contactId?: string;
|
|
143
|
+
currency?: string;
|
|
144
|
+
description?: string;
|
|
145
|
+
isDefault?: boolean;
|
|
146
|
+
labels?: object;
|
|
147
|
+
marketId?: string;
|
|
148
|
+
metadata?: object;
|
|
149
|
+
name?: string;
|
|
150
|
+
organizationId?: string;
|
|
151
|
+
priority?: number;
|
|
152
|
+
status?: PriceListStatus;
|
|
153
|
+
taxIncluded?: boolean;
|
|
154
|
+
validFrom?: string;
|
|
155
|
+
validUntil?: string;
|
|
66
156
|
}): Promise<Models.PriceList>;
|
|
67
157
|
/**
|
|
68
158
|
*
|
|
69
159
|
* @param {string} id -
|
|
160
|
+
* @param {string} channelId - Scope: only this channel.
|
|
161
|
+
* @param {string} code - Unique list code per tenant.
|
|
162
|
+
* @param {string} contactId - Scope: only this contact — beats every other scope.
|
|
163
|
+
* @param {string} currency - ISO 4217 code (default EUR) — resolution only considers lists matching the requested currency.
|
|
164
|
+
* @param {string} description -
|
|
165
|
+
* @param {boolean} isDefault - Default lists resolve last within their group.
|
|
166
|
+
* @param {object} labels - Localised names ({de, en, …}).
|
|
167
|
+
* @param {string} marketId - Scope: only this market.
|
|
168
|
+
* @param {object} metadata - Free-form metadata.
|
|
169
|
+
* @param {string} name -
|
|
170
|
+
* @param {string} organizationId - Scope: only this organization.
|
|
171
|
+
* @param {number} priority - Tie-breaker within a specificity group (higher wins, default 0).
|
|
172
|
+
* @param {PriceListStatus} status - Default 'active' — only active lists resolve.
|
|
173
|
+
* @param {boolean} taxIncluded - Gross (true) or net (false, default) prices.
|
|
174
|
+
* @param {string} validFrom - Validity window start.
|
|
175
|
+
* @param {string} validUntil - Validity window end.
|
|
70
176
|
* @throws {RevenexxException}
|
|
71
177
|
* @returns {Promise<Models.PriceList>}
|
|
72
178
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
73
179
|
*/
|
|
74
|
-
pricesListsUpdate(id: string): Promise<Models.PriceList>;
|
|
180
|
+
pricesListsUpdate(id: string, channelId?: string, code?: string, contactId?: string, currency?: string, description?: string, isDefault?: boolean, labels?: object, marketId?: string, metadata?: object, name?: string, organizationId?: string, priority?: number, status?: PriceListStatus, taxIncluded?: boolean, validFrom?: string, validUntil?: string): Promise<Models.PriceList>;
|
|
75
181
|
/**
|
|
76
182
|
*
|
|
77
183
|
* @param {string} params.listId -
|
|
@@ -92,37 +198,87 @@ export declare class Prices {
|
|
|
92
198
|
/**
|
|
93
199
|
*
|
|
94
200
|
* @param {string} params.listId -
|
|
201
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
202
|
+
* @param {PriceEntryType} params.priceType - Default 'standard'; 'on_request' is the explicit no-price marker — it stops resolution and answers "price on request".
|
|
203
|
+
* @param {string} params.productId - Priced product.
|
|
204
|
+
* @param {number} params.quantityMin - Tier threshold (Staffelpreis): this price applies from this quantity (default 1).
|
|
205
|
+
* @param {string} params.sku - Priced SKU (alternative to product_id).
|
|
206
|
+
* @param {string} params.unit -
|
|
207
|
+
* @param {number} params.unitPrice - Per-unit price (default 0).
|
|
208
|
+
* @param {string} params.validFrom - Per-entry validity start (promo prices).
|
|
209
|
+
* @param {string} params.validUntil - Per-entry validity end.
|
|
95
210
|
* @throws {RevenexxException}
|
|
96
211
|
* @returns {Promise<Models.PriceEntry>}
|
|
97
212
|
*/
|
|
98
213
|
pricesEntriesCreate(params: {
|
|
99
214
|
listId: string;
|
|
215
|
+
metadata?: object;
|
|
216
|
+
priceType?: PriceEntryType;
|
|
217
|
+
productId?: string;
|
|
218
|
+
quantityMin?: number;
|
|
219
|
+
sku?: string;
|
|
220
|
+
unit?: string;
|
|
221
|
+
unitPrice?: number;
|
|
222
|
+
validFrom?: string;
|
|
223
|
+
validUntil?: string;
|
|
100
224
|
}): Promise<Models.PriceEntry>;
|
|
101
225
|
/**
|
|
102
226
|
*
|
|
103
227
|
* @param {string} listId -
|
|
228
|
+
* @param {object} metadata - Free-form metadata.
|
|
229
|
+
* @param {PriceEntryType} priceType - Default 'standard'; 'on_request' is the explicit no-price marker — it stops resolution and answers "price on request".
|
|
230
|
+
* @param {string} productId - Priced product.
|
|
231
|
+
* @param {number} quantityMin - Tier threshold (Staffelpreis): this price applies from this quantity (default 1).
|
|
232
|
+
* @param {string} sku - Priced SKU (alternative to product_id).
|
|
233
|
+
* @param {string} unit -
|
|
234
|
+
* @param {number} unitPrice - Per-unit price (default 0).
|
|
235
|
+
* @param {string} validFrom - Per-entry validity start (promo prices).
|
|
236
|
+
* @param {string} validUntil - Per-entry validity end.
|
|
104
237
|
* @throws {RevenexxException}
|
|
105
238
|
* @returns {Promise<Models.PriceEntry>}
|
|
106
239
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
107
240
|
*/
|
|
108
|
-
pricesEntriesCreate(listId: string): Promise<Models.PriceEntry>;
|
|
241
|
+
pricesEntriesCreate(listId: string, metadata?: object, priceType?: PriceEntryType, productId?: string, quantityMin?: number, sku?: string, unit?: string, unitPrice?: number, validFrom?: string, validUntil?: string): Promise<Models.PriceEntry>;
|
|
109
242
|
/**
|
|
110
243
|
*
|
|
111
244
|
* @param {string} params.listId -
|
|
245
|
+
* @param {Models.PriceEntryReplaceItem[]} params.entries - The complete new entry set (set semantics).
|
|
112
246
|
* @throws {RevenexxException}
|
|
113
247
|
* @returns {Promise<{}>}
|
|
114
248
|
*/
|
|
115
249
|
pricesEntriesReplace(params: {
|
|
116
250
|
listId: string;
|
|
251
|
+
entries: Models.PriceEntryReplaceItem[];
|
|
117
252
|
}): Promise<{}>;
|
|
118
253
|
/**
|
|
119
254
|
*
|
|
120
255
|
* @param {string} listId -
|
|
256
|
+
* @param {Models.PriceEntryReplaceItem[]} entries - The complete new entry set (set semantics).
|
|
121
257
|
* @throws {RevenexxException}
|
|
122
258
|
* @returns {Promise<{}>}
|
|
123
259
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
124
260
|
*/
|
|
125
|
-
pricesEntriesReplace(listId: string): Promise<{}>;
|
|
261
|
+
pricesEntriesReplace(listId: string, entries: Models.PriceEntryReplaceItem[]): Promise<{}>;
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @param {string} params.listId -
|
|
265
|
+
* @param {Models.PriceEntryReplaceItem[]} params.entries - The complete new entry set (set semantics).
|
|
266
|
+
* @throws {RevenexxException}
|
|
267
|
+
* @returns {Promise<{}>}
|
|
268
|
+
*/
|
|
269
|
+
pricesEntriesBulk(params: {
|
|
270
|
+
listId: string;
|
|
271
|
+
entries: Models.PriceEntryReplaceItem[];
|
|
272
|
+
}): Promise<{}>;
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @param {string} listId -
|
|
276
|
+
* @param {Models.PriceEntryReplaceItem[]} entries - The complete new entry set (set semantics).
|
|
277
|
+
* @throws {RevenexxException}
|
|
278
|
+
* @returns {Promise<{}>}
|
|
279
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
280
|
+
*/
|
|
281
|
+
pricesEntriesBulk(listId: string, entries: Models.PriceEntryReplaceItem[]): Promise<{}>;
|
|
126
282
|
/**
|
|
127
283
|
*
|
|
128
284
|
* @param {string} params.listId -
|
|
@@ -167,26 +323,82 @@ export declare class Prices {
|
|
|
167
323
|
*
|
|
168
324
|
* @param {string} params.listId -
|
|
169
325
|
* @param {string} params.id -
|
|
326
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
327
|
+
* @param {PriceEntryType} params.priceType - Default 'standard'; 'on_request' is the explicit no-price marker — it stops resolution and answers "price on request".
|
|
328
|
+
* @param {string} params.productId - Priced product.
|
|
329
|
+
* @param {number} params.quantityMin - Tier threshold (Staffelpreis): this price applies from this quantity (default 1).
|
|
330
|
+
* @param {string} params.sku - Priced SKU (alternative to product_id).
|
|
331
|
+
* @param {string} params.unit -
|
|
332
|
+
* @param {number} params.unitPrice - Per-unit price (default 0).
|
|
333
|
+
* @param {string} params.validFrom - Per-entry validity start (promo prices).
|
|
334
|
+
* @param {string} params.validUntil - Per-entry validity end.
|
|
170
335
|
* @throws {RevenexxException}
|
|
171
336
|
* @returns {Promise<Models.PriceEntry>}
|
|
172
337
|
*/
|
|
173
338
|
pricesEntriesUpdate(params: {
|
|
174
339
|
listId: string;
|
|
175
340
|
id: string;
|
|
341
|
+
metadata?: object;
|
|
342
|
+
priceType?: PriceEntryType;
|
|
343
|
+
productId?: string;
|
|
344
|
+
quantityMin?: number;
|
|
345
|
+
sku?: string;
|
|
346
|
+
unit?: string;
|
|
347
|
+
unitPrice?: number;
|
|
348
|
+
validFrom?: string;
|
|
349
|
+
validUntil?: string;
|
|
176
350
|
}): Promise<Models.PriceEntry>;
|
|
177
351
|
/**
|
|
178
352
|
*
|
|
179
353
|
* @param {string} listId -
|
|
180
354
|
* @param {string} id -
|
|
355
|
+
* @param {object} metadata - Free-form metadata.
|
|
356
|
+
* @param {PriceEntryType} priceType - Default 'standard'; 'on_request' is the explicit no-price marker — it stops resolution and answers "price on request".
|
|
357
|
+
* @param {string} productId - Priced product.
|
|
358
|
+
* @param {number} quantityMin - Tier threshold (Staffelpreis): this price applies from this quantity (default 1).
|
|
359
|
+
* @param {string} sku - Priced SKU (alternative to product_id).
|
|
360
|
+
* @param {string} unit -
|
|
361
|
+
* @param {number} unitPrice - Per-unit price (default 0).
|
|
362
|
+
* @param {string} validFrom - Per-entry validity start (promo prices).
|
|
363
|
+
* @param {string} validUntil - Per-entry validity end.
|
|
181
364
|
* @throws {RevenexxException}
|
|
182
365
|
* @returns {Promise<Models.PriceEntry>}
|
|
183
366
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
184
367
|
*/
|
|
185
|
-
pricesEntriesUpdate(listId: string, id: string): Promise<Models.PriceEntry>;
|
|
368
|
+
pricesEntriesUpdate(listId: string, id: string, metadata?: object, priceType?: PriceEntryType, productId?: string, quantityMin?: number, sku?: string, unit?: string, unitPrice?: number, validFrom?: string, validUntil?: string): Promise<Models.PriceEntry>;
|
|
186
369
|
/**
|
|
187
370
|
*
|
|
371
|
+
* @param {Models.PriceResolveItem[]} params.items - Items to price (at most 200 per call).
|
|
372
|
+
* @param {string} params.at - Point in time for validity windows (ISO 8601 timestamp, default now).
|
|
373
|
+
* @param {string} params.channelId - Buyer context: channel.
|
|
374
|
+
* @param {string} params.contactId - Buyer context: contact — most specific scope.
|
|
375
|
+
* @param {string} params.currency - ISO 4217 code (default EUR) — only lists in this currency resolve.
|
|
376
|
+
* @param {string} params.marketId - Buyer context: market.
|
|
377
|
+
* @param {string} params.organizationId - Buyer context: organization.
|
|
188
378
|
* @throws {RevenexxException}
|
|
189
379
|
* @returns {Promise<{}>}
|
|
190
380
|
*/
|
|
191
|
-
pricesResolve(
|
|
381
|
+
pricesResolve(params: {
|
|
382
|
+
items: Models.PriceResolveItem[];
|
|
383
|
+
at?: string;
|
|
384
|
+
channelId?: string;
|
|
385
|
+
contactId?: string;
|
|
386
|
+
currency?: string;
|
|
387
|
+
marketId?: string;
|
|
388
|
+
organizationId?: string;
|
|
389
|
+
}): Promise<{}>;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @param {Models.PriceResolveItem[]} items - Items to price (at most 200 per call).
|
|
393
|
+
* @param {string} at - Point in time for validity windows (ISO 8601 timestamp, default now).
|
|
394
|
+
* @param {string} channelId - Buyer context: channel.
|
|
395
|
+
* @param {string} contactId - Buyer context: contact — most specific scope.
|
|
396
|
+
* @param {string} currency - ISO 4217 code (default EUR) — only lists in this currency resolve.
|
|
397
|
+
* @param {string} marketId - Buyer context: market.
|
|
398
|
+
* @param {string} organizationId - Buyer context: organization.
|
|
399
|
+
* @throws {RevenexxException}
|
|
400
|
+
* @returns {Promise<{}>}
|
|
401
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
402
|
+
*/
|
|
403
|
+
pricesResolve(items: Models.PriceResolveItem[], at?: string, channelId?: string, contactId?: string, currency?: string, marketId?: string, organizationId?: string): Promise<{}>;
|
|
192
404
|
}
|