@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 { ShippingMethodMatrixBasis } from '../enums/shipping-method-matrix-basis';
|
|
4
|
+
import { ShippingMethodPricingType } from '../enums/shipping-method-pricing-type';
|
|
3
5
|
export declare class Shipping {
|
|
4
6
|
client: Client;
|
|
5
7
|
constructor(client: Client);
|
|
@@ -11,10 +13,69 @@ export declare class Shipping {
|
|
|
11
13
|
shippingMethodsList(): Promise<{}>;
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
16
|
+
* @param {string} params.code - Stable method code, unique per tenant (e.g. standard, express).
|
|
17
|
+
* @param {string} params.name - Display name.
|
|
18
|
+
* @param {string} params.carrier - Carrier anchor for the upcoming carrier connect (dynamic rates, tracking links).
|
|
19
|
+
* @param {string[]} params.countries - Allowed ISO 3166-1 alpha-2 codes; null or empty = worldwide.
|
|
20
|
+
* @param {string} params.currency - ISO 4217 code (default EUR).
|
|
21
|
+
* @param {string} params.description -
|
|
22
|
+
* @param {boolean} params.enabled - Only enabled methods appear in rate responses (default false).
|
|
23
|
+
* @param {number} params.etaDaysMax - Delivery-time estimate for the checkout (days, upper bound).
|
|
24
|
+
* @param {number} params.etaDaysMin - Delivery-time estimate for the checkout (days, lower bound).
|
|
25
|
+
* @param {number} params.freeAbove - Free shipping at or above this order value — wins over every pricing model.
|
|
26
|
+
* @param {object} params.labels - Localized display names keyed by locale (e.g. {de, en}).
|
|
27
|
+
* @param {string} params.matrixAttribute - Attribute name for matrix_basis 'attribute'.
|
|
28
|
+
* @param {ShippingMethodMatrixBasis} params.matrixBasis - The measure a matrix method prices over; 'attribute' reads matrix_attribute from the rate request.
|
|
29
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
30
|
+
* @param {number} params.position - Sort order in the checkout (default 0).
|
|
31
|
+
* @param {number} params.price - The fixed price (default 0) — ignored for 'free' and 'matrix'.
|
|
32
|
+
* @param {ShippingMethodPricingType} params.pricingType - Pricing model (default 'fixed'): one price, no price, or tiered over a measure.
|
|
14
33
|
* @throws {RevenexxException}
|
|
15
34
|
* @returns {Promise<Models.ShippingMethod>}
|
|
16
35
|
*/
|
|
17
|
-
shippingMethodsCreate(
|
|
36
|
+
shippingMethodsCreate(params: {
|
|
37
|
+
code: string;
|
|
38
|
+
name: string;
|
|
39
|
+
carrier?: string;
|
|
40
|
+
countries?: string[];
|
|
41
|
+
currency?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
enabled?: boolean;
|
|
44
|
+
etaDaysMax?: number;
|
|
45
|
+
etaDaysMin?: number;
|
|
46
|
+
freeAbove?: number;
|
|
47
|
+
labels?: object;
|
|
48
|
+
matrixAttribute?: string;
|
|
49
|
+
matrixBasis?: ShippingMethodMatrixBasis;
|
|
50
|
+
metadata?: object;
|
|
51
|
+
position?: number;
|
|
52
|
+
price?: number;
|
|
53
|
+
pricingType?: ShippingMethodPricingType;
|
|
54
|
+
}): Promise<Models.ShippingMethod>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @param {string} code - Stable method code, unique per tenant (e.g. standard, express).
|
|
58
|
+
* @param {string} name - Display name.
|
|
59
|
+
* @param {string} carrier - Carrier anchor for the upcoming carrier connect (dynamic rates, tracking links).
|
|
60
|
+
* @param {string[]} countries - Allowed ISO 3166-1 alpha-2 codes; null or empty = worldwide.
|
|
61
|
+
* @param {string} currency - ISO 4217 code (default EUR).
|
|
62
|
+
* @param {string} description -
|
|
63
|
+
* @param {boolean} enabled - Only enabled methods appear in rate responses (default false).
|
|
64
|
+
* @param {number} etaDaysMax - Delivery-time estimate for the checkout (days, upper bound).
|
|
65
|
+
* @param {number} etaDaysMin - Delivery-time estimate for the checkout (days, lower bound).
|
|
66
|
+
* @param {number} freeAbove - Free shipping at or above this order value — wins over every pricing model.
|
|
67
|
+
* @param {object} labels - Localized display names keyed by locale (e.g. {de, en}).
|
|
68
|
+
* @param {string} matrixAttribute - Attribute name for matrix_basis 'attribute'.
|
|
69
|
+
* @param {ShippingMethodMatrixBasis} matrixBasis - The measure a matrix method prices over; 'attribute' reads matrix_attribute from the rate request.
|
|
70
|
+
* @param {object} metadata - Free-form metadata.
|
|
71
|
+
* @param {number} position - Sort order in the checkout (default 0).
|
|
72
|
+
* @param {number} price - The fixed price (default 0) — ignored for 'free' and 'matrix'.
|
|
73
|
+
* @param {ShippingMethodPricingType} pricingType - Pricing model (default 'fixed'): one price, no price, or tiered over a measure.
|
|
74
|
+
* @throws {RevenexxException}
|
|
75
|
+
* @returns {Promise<Models.ShippingMethod>}
|
|
76
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
77
|
+
*/
|
|
78
|
+
shippingMethodsCreate(code: string, name: string, carrier?: string, countries?: string[], currency?: string, description?: string, enabled?: boolean, etaDaysMax?: number, etaDaysMin?: number, freeAbove?: number, labels?: object, matrixAttribute?: string, matrixBasis?: ShippingMethodMatrixBasis, metadata?: object, position?: number, price?: number, pricingType?: ShippingMethodPricingType): Promise<Models.ShippingMethod>;
|
|
18
79
|
/**
|
|
19
80
|
*
|
|
20
81
|
* @throws {RevenexxException}
|
|
@@ -58,20 +119,71 @@ export declare class Shipping {
|
|
|
58
119
|
/**
|
|
59
120
|
*
|
|
60
121
|
* @param {string} params.id -
|
|
122
|
+
* @param {string} params.carrier - Carrier anchor for the upcoming carrier connect (dynamic rates, tracking links).
|
|
123
|
+
* @param {string} params.code - Stable method code, unique per tenant (e.g. standard, express).
|
|
124
|
+
* @param {string[]} params.countries - Allowed ISO 3166-1 alpha-2 codes; null or empty = worldwide.
|
|
125
|
+
* @param {string} params.currency - ISO 4217 code (default EUR).
|
|
126
|
+
* @param {string} params.description -
|
|
127
|
+
* @param {boolean} params.enabled - Only enabled methods appear in rate responses (default false).
|
|
128
|
+
* @param {number} params.etaDaysMax - Delivery-time estimate for the checkout (days, upper bound).
|
|
129
|
+
* @param {number} params.etaDaysMin - Delivery-time estimate for the checkout (days, lower bound).
|
|
130
|
+
* @param {number} params.freeAbove - Free shipping at or above this order value — wins over every pricing model.
|
|
131
|
+
* @param {object} params.labels - Localized display names keyed by locale (e.g. {de, en}).
|
|
132
|
+
* @param {string} params.matrixAttribute - Attribute name for matrix_basis 'attribute'.
|
|
133
|
+
* @param {ShippingMethodMatrixBasis} params.matrixBasis - The measure a matrix method prices over; 'attribute' reads matrix_attribute from the rate request.
|
|
134
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
135
|
+
* @param {string} params.name - Display name.
|
|
136
|
+
* @param {number} params.position - Sort order in the checkout (default 0).
|
|
137
|
+
* @param {number} params.price - The fixed price (default 0) — ignored for 'free' and 'matrix'.
|
|
138
|
+
* @param {ShippingMethodPricingType} params.pricingType - Pricing model (default 'fixed'): one price, no price, or tiered over a measure.
|
|
61
139
|
* @throws {RevenexxException}
|
|
62
140
|
* @returns {Promise<Models.ShippingMethod>}
|
|
63
141
|
*/
|
|
64
142
|
shippingMethodsUpdate(params: {
|
|
65
143
|
id: string;
|
|
144
|
+
carrier?: string;
|
|
145
|
+
code?: string;
|
|
146
|
+
countries?: string[];
|
|
147
|
+
currency?: string;
|
|
148
|
+
description?: string;
|
|
149
|
+
enabled?: boolean;
|
|
150
|
+
etaDaysMax?: number;
|
|
151
|
+
etaDaysMin?: number;
|
|
152
|
+
freeAbove?: number;
|
|
153
|
+
labels?: object;
|
|
154
|
+
matrixAttribute?: string;
|
|
155
|
+
matrixBasis?: ShippingMethodMatrixBasis;
|
|
156
|
+
metadata?: object;
|
|
157
|
+
name?: string;
|
|
158
|
+
position?: number;
|
|
159
|
+
price?: number;
|
|
160
|
+
pricingType?: ShippingMethodPricingType;
|
|
66
161
|
}): Promise<Models.ShippingMethod>;
|
|
67
162
|
/**
|
|
68
163
|
*
|
|
69
164
|
* @param {string} id -
|
|
165
|
+
* @param {string} carrier - Carrier anchor for the upcoming carrier connect (dynamic rates, tracking links).
|
|
166
|
+
* @param {string} code - Stable method code, unique per tenant (e.g. standard, express).
|
|
167
|
+
* @param {string[]} countries - Allowed ISO 3166-1 alpha-2 codes; null or empty = worldwide.
|
|
168
|
+
* @param {string} currency - ISO 4217 code (default EUR).
|
|
169
|
+
* @param {string} description -
|
|
170
|
+
* @param {boolean} enabled - Only enabled methods appear in rate responses (default false).
|
|
171
|
+
* @param {number} etaDaysMax - Delivery-time estimate for the checkout (days, upper bound).
|
|
172
|
+
* @param {number} etaDaysMin - Delivery-time estimate for the checkout (days, lower bound).
|
|
173
|
+
* @param {number} freeAbove - Free shipping at or above this order value — wins over every pricing model.
|
|
174
|
+
* @param {object} labels - Localized display names keyed by locale (e.g. {de, en}).
|
|
175
|
+
* @param {string} matrixAttribute - Attribute name for matrix_basis 'attribute'.
|
|
176
|
+
* @param {ShippingMethodMatrixBasis} matrixBasis - The measure a matrix method prices over; 'attribute' reads matrix_attribute from the rate request.
|
|
177
|
+
* @param {object} metadata - Free-form metadata.
|
|
178
|
+
* @param {string} name - Display name.
|
|
179
|
+
* @param {number} position - Sort order in the checkout (default 0).
|
|
180
|
+
* @param {number} price - The fixed price (default 0) — ignored for 'free' and 'matrix'.
|
|
181
|
+
* @param {ShippingMethodPricingType} pricingType - Pricing model (default 'fixed'): one price, no price, or tiered over a measure.
|
|
70
182
|
* @throws {RevenexxException}
|
|
71
183
|
* @returns {Promise<Models.ShippingMethod>}
|
|
72
184
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
73
185
|
*/
|
|
74
|
-
shippingMethodsUpdate(id: string): Promise<Models.ShippingMethod>;
|
|
186
|
+
shippingMethodsUpdate(id: string, carrier?: string, code?: string, countries?: string[], currency?: string, description?: string, enabled?: boolean, etaDaysMax?: number, etaDaysMin?: number, freeAbove?: number, labels?: object, matrixAttribute?: string, matrixBasis?: ShippingMethodMatrixBasis, metadata?: object, name?: string, position?: number, price?: number, pricingType?: ShippingMethodPricingType): Promise<Models.ShippingMethod>;
|
|
75
187
|
/**
|
|
76
188
|
*
|
|
77
189
|
* @param {string} params.methodId -
|
|
@@ -92,37 +204,49 @@ export declare class Shipping {
|
|
|
92
204
|
/**
|
|
93
205
|
*
|
|
94
206
|
* @param {string} params.methodId -
|
|
207
|
+
* @param {number} params.fromValue - Tier threshold (default 0) — the tier with the highest from_value at or below the measured value wins.
|
|
208
|
+
* @param {number} params.position - Sort order (default 0; bulk replace derives it from the array index).
|
|
209
|
+
* @param {number} params.price - Price of this tier (default 0).
|
|
95
210
|
* @throws {RevenexxException}
|
|
96
211
|
* @returns {Promise<Models.ShippingRateTier>}
|
|
97
212
|
*/
|
|
98
213
|
shippingTiersCreate(params: {
|
|
99
214
|
methodId: string;
|
|
215
|
+
fromValue?: number;
|
|
216
|
+
position?: number;
|
|
217
|
+
price?: number;
|
|
100
218
|
}): Promise<Models.ShippingRateTier>;
|
|
101
219
|
/**
|
|
102
220
|
*
|
|
103
221
|
* @param {string} methodId -
|
|
222
|
+
* @param {number} fromValue - Tier threshold (default 0) — the tier with the highest from_value at or below the measured value wins.
|
|
223
|
+
* @param {number} position - Sort order (default 0; bulk replace derives it from the array index).
|
|
224
|
+
* @param {number} price - Price of this tier (default 0).
|
|
104
225
|
* @throws {RevenexxException}
|
|
105
226
|
* @returns {Promise<Models.ShippingRateTier>}
|
|
106
227
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
107
228
|
*/
|
|
108
|
-
shippingTiersCreate(methodId: string): Promise<Models.ShippingRateTier>;
|
|
229
|
+
shippingTiersCreate(methodId: string, fromValue?: number, position?: number, price?: number): Promise<Models.ShippingRateTier>;
|
|
109
230
|
/**
|
|
110
231
|
*
|
|
111
232
|
* @param {string} params.methodId -
|
|
233
|
+
* @param {Models.ShippingRateTierReplaceItem[]} params.tiers - The complete new tier set (set semantics) — positions are derived from the array order.
|
|
112
234
|
* @throws {RevenexxException}
|
|
113
235
|
* @returns {Promise<{}>}
|
|
114
236
|
*/
|
|
115
237
|
shippingTiersReplace(params: {
|
|
116
238
|
methodId: string;
|
|
239
|
+
tiers: Models.ShippingRateTierReplaceItem[];
|
|
117
240
|
}): Promise<{}>;
|
|
118
241
|
/**
|
|
119
242
|
*
|
|
120
243
|
* @param {string} methodId -
|
|
244
|
+
* @param {Models.ShippingRateTierReplaceItem[]} tiers - The complete new tier set (set semantics) — positions are derived from the array order.
|
|
121
245
|
* @throws {RevenexxException}
|
|
122
246
|
* @returns {Promise<{}>}
|
|
123
247
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
124
248
|
*/
|
|
125
|
-
shippingTiersReplace(methodId: string): Promise<{}>;
|
|
249
|
+
shippingTiersReplace(methodId: string, tiers: Models.ShippingRateTierReplaceItem[]): Promise<{}>;
|
|
126
250
|
/**
|
|
127
251
|
*
|
|
128
252
|
* @param {string} params.methodId -
|
|
@@ -167,26 +291,64 @@ export declare class Shipping {
|
|
|
167
291
|
*
|
|
168
292
|
* @param {string} params.methodId -
|
|
169
293
|
* @param {string} params.id -
|
|
294
|
+
* @param {number} params.fromValue - Tier threshold (default 0) — the tier with the highest from_value at or below the measured value wins.
|
|
295
|
+
* @param {number} params.position - Sort order (default 0; bulk replace derives it from the array index).
|
|
296
|
+
* @param {number} params.price - Price of this tier (default 0).
|
|
170
297
|
* @throws {RevenexxException}
|
|
171
298
|
* @returns {Promise<Models.ShippingRateTier>}
|
|
172
299
|
*/
|
|
173
300
|
shippingTiersUpdate(params: {
|
|
174
301
|
methodId: string;
|
|
175
302
|
id: string;
|
|
303
|
+
fromValue?: number;
|
|
304
|
+
position?: number;
|
|
305
|
+
price?: number;
|
|
176
306
|
}): Promise<Models.ShippingRateTier>;
|
|
177
307
|
/**
|
|
178
308
|
*
|
|
179
309
|
* @param {string} methodId -
|
|
180
310
|
* @param {string} id -
|
|
311
|
+
* @param {number} fromValue - Tier threshold (default 0) — the tier with the highest from_value at or below the measured value wins.
|
|
312
|
+
* @param {number} position - Sort order (default 0; bulk replace derives it from the array index).
|
|
313
|
+
* @param {number} price - Price of this tier (default 0).
|
|
181
314
|
* @throws {RevenexxException}
|
|
182
315
|
* @returns {Promise<Models.ShippingRateTier>}
|
|
183
316
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
184
317
|
*/
|
|
185
|
-
shippingTiersUpdate(methodId: string, id: string): Promise<Models.ShippingRateTier>;
|
|
318
|
+
shippingTiersUpdate(methodId: string, id: string, fromValue?: number, position?: number, price?: number): Promise<Models.ShippingRateTier>;
|
|
186
319
|
/**
|
|
187
320
|
*
|
|
321
|
+
* @param {object} params.attributes - Measure values for attribute matrices, keyed by attribute name.
|
|
322
|
+
* @param {string} params.country - Destination ISO 3166-1 alpha-2 code — checked against method country restrictions.
|
|
323
|
+
* @param {string} params.currency - Echoed into the rates (default 'EUR').
|
|
324
|
+
* @param {string} params.marketId - Buyer market for tax resolution (else inferred from country, else first market).
|
|
325
|
+
* @param {number} params.orderValue - Order value (default 0) — drives free-above thresholds and order_value matrices.
|
|
326
|
+
* @param {number} params.quantity - Total quantity — measure for quantity matrices.
|
|
327
|
+
* @param {number} params.weight - Total weight — measure for weight matrices.
|
|
188
328
|
* @throws {RevenexxException}
|
|
189
329
|
* @returns {Promise<{}>}
|
|
190
330
|
*/
|
|
191
|
-
shippingRates(
|
|
331
|
+
shippingRates(params?: {
|
|
332
|
+
attributes?: object;
|
|
333
|
+
country?: string;
|
|
334
|
+
currency?: string;
|
|
335
|
+
marketId?: string;
|
|
336
|
+
orderValue?: number;
|
|
337
|
+
quantity?: number;
|
|
338
|
+
weight?: number;
|
|
339
|
+
}): Promise<{}>;
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @param {object} attributes - Measure values for attribute matrices, keyed by attribute name.
|
|
343
|
+
* @param {string} country - Destination ISO 3166-1 alpha-2 code — checked against method country restrictions.
|
|
344
|
+
* @param {string} currency - Echoed into the rates (default 'EUR').
|
|
345
|
+
* @param {string} marketId - Buyer market for tax resolution (else inferred from country, else first market).
|
|
346
|
+
* @param {number} orderValue - Order value (default 0) — drives free-above thresholds and order_value matrices.
|
|
347
|
+
* @param {number} quantity - Total quantity — measure for quantity matrices.
|
|
348
|
+
* @param {number} weight - Total weight — measure for weight matrices.
|
|
349
|
+
* @throws {RevenexxException}
|
|
350
|
+
* @returns {Promise<{}>}
|
|
351
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
352
|
+
*/
|
|
353
|
+
shippingRates(attributes?: object, country?: string, currency?: string, marketId?: string, orderValue?: number, quantity?: number, weight?: number): Promise<{}>;
|
|
192
354
|
}
|