@wix/auto_sdk_ecom_delivery-solutions 1.0.7 → 1.0.8
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +14 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +79 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +47 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +19 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{internal/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-DMPoOveb.d.ts → cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +43 -75
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +72 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +170 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +5 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +75 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +20 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +9 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{internal/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-DMPoOveb.d.mts → es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +43 -75
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +69 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +143 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +14 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +79 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +47 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +19 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-3BB4aqZs.d.mts → internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +49 -74
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +72 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +170 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +5 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +75 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +20 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +9 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-3BB4aqZs.d.ts → internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +49 -74
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +69 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +143 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -18
- package/build/index.d.ts +0 -18
- package/build/index.js +0 -256
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -226
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -18
- package/build/internal/index.d.ts +0 -18
- package/build/internal/index.js +0 -256
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -226
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -495
- package/build/internal/meta.d.ts +0 -495
- package/build/internal/meta.js +0 -127
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -100
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -495
- package/build/meta.d.ts +0 -495
- package/build/meta.js +0 -127
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -100
- package/build/meta.mjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
interface DeliveryRatesGateway {
|
|
1
|
+
export interface DeliveryRatesGateway {
|
|
2
2
|
/**
|
|
3
3
|
* @format GUID
|
|
4
4
|
* @readonly
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
id?: string | null;
|
|
7
7
|
}
|
|
8
|
-
interface GetDeliverySolutionsRequest {
|
|
8
|
+
export interface GetDeliverySolutionsRequest {
|
|
9
9
|
/**
|
|
10
10
|
* list of items to delivery that each of them points to delivery profile and delivery rule.
|
|
11
11
|
* @minSize 1
|
|
@@ -42,18 +42,17 @@ interface GetDeliverySolutionsRequest {
|
|
|
42
42
|
/**
|
|
43
43
|
* Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.
|
|
44
44
|
* For example, a Wix Pay Link ID.
|
|
45
|
-
* @internal
|
|
46
45
|
* @maxSize 20
|
|
47
46
|
*/
|
|
48
47
|
externalReferences?: ExternalReference[];
|
|
49
48
|
}
|
|
50
|
-
interface DeliverableItem {
|
|
49
|
+
export interface DeliverableItem {
|
|
51
50
|
/**
|
|
52
51
|
* The ID of the line item.
|
|
53
52
|
* @minLength 1
|
|
54
53
|
* @maxLength 100
|
|
55
54
|
*/
|
|
56
|
-
|
|
55
|
+
id?: string;
|
|
57
56
|
/**
|
|
58
57
|
* Item name.
|
|
59
58
|
* @maxLength 400
|
|
@@ -101,7 +100,7 @@ interface DeliverableItem {
|
|
|
101
100
|
taxIncludedInPrice?: boolean | null;
|
|
102
101
|
}
|
|
103
102
|
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
104
|
-
interface CatalogReference {
|
|
103
|
+
export interface CatalogReference {
|
|
105
104
|
/**
|
|
106
105
|
* ID of the item within the catalog it belongs to.
|
|
107
106
|
* @minLength 1
|
|
@@ -127,7 +126,7 @@ interface CatalogReference {
|
|
|
127
126
|
*/
|
|
128
127
|
options?: Record<string, any> | null;
|
|
129
128
|
}
|
|
130
|
-
interface PhysicalProperties {
|
|
129
|
+
export interface PhysicalProperties {
|
|
131
130
|
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
132
131
|
weight?: number | null;
|
|
133
132
|
/**
|
|
@@ -139,11 +138,11 @@ interface PhysicalProperties {
|
|
|
139
138
|
shippable?: boolean;
|
|
140
139
|
}
|
|
141
140
|
/** Physical address */
|
|
142
|
-
interface Address extends AddressStreetOneOf {
|
|
141
|
+
export interface Address extends AddressStreetOneOf {
|
|
143
142
|
/** Street name and number. */
|
|
144
143
|
streetAddress?: StreetAddress;
|
|
145
144
|
/** Main address line, usually street and number as free text. */
|
|
146
|
-
|
|
145
|
+
addressLine?: string | null;
|
|
147
146
|
/**
|
|
148
147
|
* Country code.
|
|
149
148
|
* @format COUNTRY
|
|
@@ -159,31 +158,31 @@ interface Address extends AddressStreetOneOf {
|
|
|
159
158
|
addressLine2?: string | null;
|
|
160
159
|
}
|
|
161
160
|
/** @oneof */
|
|
162
|
-
interface AddressStreetOneOf {
|
|
161
|
+
export interface AddressStreetOneOf {
|
|
163
162
|
/** Street name and number. */
|
|
164
163
|
streetAddress?: StreetAddress;
|
|
165
164
|
/** Main address line, usually street and number as free text. */
|
|
166
165
|
addressLine?: string | null;
|
|
167
166
|
}
|
|
168
|
-
interface StreetAddress {
|
|
167
|
+
export interface StreetAddress {
|
|
169
168
|
/** Street number. */
|
|
170
169
|
number?: string;
|
|
171
170
|
/** Street name. */
|
|
172
171
|
name?: string;
|
|
173
172
|
}
|
|
174
|
-
interface AddressLocation {
|
|
173
|
+
export interface AddressLocation {
|
|
175
174
|
/** Address latitude. */
|
|
176
175
|
latitude?: number | null;
|
|
177
176
|
/** Address longitude. */
|
|
178
177
|
longitude?: number | null;
|
|
179
178
|
}
|
|
180
|
-
interface Subdivision {
|
|
179
|
+
export interface Subdivision {
|
|
181
180
|
/** Short subdivision code. */
|
|
182
181
|
code?: string;
|
|
183
182
|
/** Subdivision full name. */
|
|
184
183
|
name?: string;
|
|
185
184
|
}
|
|
186
|
-
declare enum SubdivisionType {
|
|
185
|
+
export declare enum SubdivisionType {
|
|
187
186
|
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
188
187
|
/** State */
|
|
189
188
|
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
@@ -199,7 +198,7 @@ declare enum SubdivisionType {
|
|
|
199
198
|
COUNTRY = "COUNTRY"
|
|
200
199
|
}
|
|
201
200
|
/** Full contact details for an address */
|
|
202
|
-
interface FullAddressContactDetails {
|
|
201
|
+
export interface FullAddressContactDetails {
|
|
203
202
|
/** Contact's first name. */
|
|
204
203
|
firstName?: string | null;
|
|
205
204
|
/** Contact's last name. */
|
|
@@ -219,9 +218,9 @@ interface FullAddressContactDetails {
|
|
|
219
218
|
/** Tax info. Currently usable only in Brazil. */
|
|
220
219
|
vatId?: VatId;
|
|
221
220
|
}
|
|
222
|
-
interface VatId {
|
|
221
|
+
export interface VatId {
|
|
223
222
|
/** Customer's tax ID. */
|
|
224
|
-
|
|
223
|
+
id?: string;
|
|
225
224
|
/**
|
|
226
225
|
* Tax type.
|
|
227
226
|
*
|
|
@@ -232,14 +231,14 @@ interface VatId {
|
|
|
232
231
|
type?: VatType;
|
|
233
232
|
}
|
|
234
233
|
/** tax info types */
|
|
235
|
-
declare enum VatType {
|
|
234
|
+
export declare enum VatType {
|
|
236
235
|
UNSPECIFIED = "UNSPECIFIED",
|
|
237
236
|
/** CPF - for individual tax payers. */
|
|
238
237
|
CPF = "CPF",
|
|
239
238
|
/** CNPJ - for corporations */
|
|
240
239
|
CNPJ = "CNPJ"
|
|
241
240
|
}
|
|
242
|
-
declare enum WeightUnit {
|
|
241
|
+
export declare enum WeightUnit {
|
|
243
242
|
/** Weight unit can't be classified due to an error. */
|
|
244
243
|
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
245
244
|
/** Kilograms. */
|
|
@@ -247,7 +246,7 @@ declare enum WeightUnit {
|
|
|
247
246
|
/** Pounds. */
|
|
248
247
|
LB = "LB"
|
|
249
248
|
}
|
|
250
|
-
interface UserPreference {
|
|
249
|
+
export interface UserPreference {
|
|
251
250
|
/**
|
|
252
251
|
* The delivery carrier app id
|
|
253
252
|
* @format GUID
|
|
@@ -259,7 +258,7 @@ interface UserPreference {
|
|
|
259
258
|
*/
|
|
260
259
|
code?: string;
|
|
261
260
|
}
|
|
262
|
-
interface ExternalReference {
|
|
261
|
+
export interface ExternalReference {
|
|
263
262
|
/**
|
|
264
263
|
* ID of the app associated with the purchase flow.
|
|
265
264
|
* For example, the Wix Pay Links app ID.
|
|
@@ -280,7 +279,7 @@ interface ExternalReference {
|
|
|
280
279
|
* Each delivery option has a list of items that can be delivered by it - the chosen one
|
|
281
280
|
* on Errors throw a business error from TC to catch and trigger destination completion
|
|
282
281
|
*/
|
|
283
|
-
interface GetDeliverySolutionsResponse {
|
|
282
|
+
export interface GetDeliverySolutionsResponse {
|
|
284
283
|
/**
|
|
285
284
|
* Delivery Options with their associated items
|
|
286
285
|
* @maxSize 300
|
|
@@ -292,7 +291,7 @@ interface GetDeliverySolutionsResponse {
|
|
|
292
291
|
*/
|
|
293
292
|
errors?: DeliveryCarrierError[];
|
|
294
293
|
}
|
|
295
|
-
interface DeliverySolution {
|
|
294
|
+
export interface DeliverySolution {
|
|
296
295
|
/**
|
|
297
296
|
* Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`.
|
|
298
297
|
* @maxLength 250
|
|
@@ -316,7 +315,7 @@ interface DeliverySolution {
|
|
|
316
315
|
/** If the delivery solution is a partial and doesn't apply to all items. */
|
|
317
316
|
partial?: boolean | null;
|
|
318
317
|
}
|
|
319
|
-
interface DeliveryLogistics {
|
|
318
|
+
export interface DeliveryLogistics {
|
|
320
319
|
/**
|
|
321
320
|
* When the item is expected to be delivered in free text. For example, `"3-5 business days"`.
|
|
322
321
|
* @maxLength 1000
|
|
@@ -332,7 +331,7 @@ interface DeliveryLogistics {
|
|
|
332
331
|
/** Date and Time of the delivery option */
|
|
333
332
|
deliveryTimeSlot?: DeliveryTimeSlot;
|
|
334
333
|
}
|
|
335
|
-
interface PickupDetails {
|
|
334
|
+
export interface PickupDetails {
|
|
336
335
|
/** Pickup address. */
|
|
337
336
|
address?: Address;
|
|
338
337
|
/**
|
|
@@ -344,18 +343,18 @@ interface PickupDetails {
|
|
|
344
343
|
*/
|
|
345
344
|
pickupMethod?: PickupMethod;
|
|
346
345
|
}
|
|
347
|
-
declare enum PickupMethod {
|
|
346
|
+
export declare enum PickupMethod {
|
|
348
347
|
UNKNOWN_METHOD = "UNKNOWN_METHOD",
|
|
349
348
|
STORE_PICKUP = "STORE_PICKUP",
|
|
350
349
|
PICKUP_POINT = "PICKUP_POINT"
|
|
351
350
|
}
|
|
352
|
-
interface DeliveryTimeSlot {
|
|
351
|
+
export interface DeliveryTimeSlot {
|
|
353
352
|
/** starting time of the delivery time slot */
|
|
354
353
|
from?: Date | null;
|
|
355
354
|
/** ending time of the delivery time slot */
|
|
356
355
|
to?: Date | null;
|
|
357
356
|
}
|
|
358
|
-
interface DeliveryCost {
|
|
357
|
+
export interface DeliveryCost {
|
|
359
358
|
/**
|
|
360
359
|
* The shipping rate's price. Must align with the [currency's decimal separator](https://en.wikipedia.org/wiki/ISO_4217#Active_codes).
|
|
361
360
|
* @format DECIMAL_VALUE
|
|
@@ -373,7 +372,7 @@ interface DeliveryCost {
|
|
|
373
372
|
*/
|
|
374
373
|
additionalCharges?: AdditionalCharge[];
|
|
375
374
|
}
|
|
376
|
-
interface AdditionalCharge {
|
|
375
|
+
export interface AdditionalCharge {
|
|
377
376
|
/** Additional charge type. */
|
|
378
377
|
type?: ChargeType;
|
|
379
378
|
/**
|
|
@@ -388,10 +387,10 @@ interface AdditionalCharge {
|
|
|
388
387
|
*/
|
|
389
388
|
price?: string;
|
|
390
389
|
}
|
|
391
|
-
declare enum ChargeType {
|
|
390
|
+
export declare enum ChargeType {
|
|
392
391
|
HANDLING_FEE = "HANDLING_FEE"
|
|
393
392
|
}
|
|
394
|
-
interface DeliveryAllocation {
|
|
393
|
+
export interface DeliveryAllocation {
|
|
395
394
|
/** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */
|
|
396
395
|
deliveryCarrier?: Carrier;
|
|
397
396
|
/** The delivery region that are relevant for this delivery solution. */
|
|
@@ -399,7 +398,7 @@ interface DeliveryAllocation {
|
|
|
399
398
|
/** Populated if the delivery solution is a partially supplied by this carrier. */
|
|
400
399
|
applicableLineItems?: ApplicableLineItems;
|
|
401
400
|
}
|
|
402
|
-
interface Carrier {
|
|
401
|
+
export interface Carrier {
|
|
403
402
|
/**
|
|
404
403
|
* The carrier app id
|
|
405
404
|
* @format GUID
|
|
@@ -411,19 +410,19 @@ interface Carrier {
|
|
|
411
410
|
*/
|
|
412
411
|
code?: string;
|
|
413
412
|
}
|
|
414
|
-
interface Region {
|
|
413
|
+
export interface Region {
|
|
415
414
|
/**
|
|
416
415
|
* The delivery region id.
|
|
417
416
|
* @format GUID
|
|
418
417
|
*/
|
|
419
|
-
|
|
418
|
+
id?: string | null;
|
|
420
419
|
/**
|
|
421
420
|
* The delivery region name.
|
|
422
421
|
* @maxLength 100
|
|
423
422
|
*/
|
|
424
423
|
name?: string | null;
|
|
425
424
|
}
|
|
426
|
-
interface ApplicableLineItems {
|
|
425
|
+
export interface ApplicableLineItems {
|
|
427
426
|
/**
|
|
428
427
|
* Line items that the delivery solution is for.
|
|
429
428
|
* @maxSize 300
|
|
@@ -432,7 +431,7 @@ interface ApplicableLineItems {
|
|
|
432
431
|
*/
|
|
433
432
|
lineItemIds?: string[];
|
|
434
433
|
}
|
|
435
|
-
interface DeliveryCarrierError {
|
|
434
|
+
export interface DeliveryCarrierError {
|
|
436
435
|
/**
|
|
437
436
|
* The carrier app id
|
|
438
437
|
* @format GUID
|
|
@@ -441,7 +440,7 @@ interface DeliveryCarrierError {
|
|
|
441
440
|
/** The error details */
|
|
442
441
|
errorDetails?: Details;
|
|
443
442
|
}
|
|
444
|
-
interface Details extends DetailsKindOneOf {
|
|
443
|
+
export interface Details extends DetailsKindOneOf {
|
|
445
444
|
applicationError?: ApplicationError;
|
|
446
445
|
validationError?: ValidationError;
|
|
447
446
|
systemError?: SystemError;
|
|
@@ -452,12 +451,12 @@ interface Details extends DetailsKindOneOf {
|
|
|
452
451
|
tracing?: Record<string, string>;
|
|
453
452
|
}
|
|
454
453
|
/** @oneof */
|
|
455
|
-
interface DetailsKindOneOf {
|
|
454
|
+
export interface DetailsKindOneOf {
|
|
456
455
|
applicationError?: ApplicationError;
|
|
457
456
|
validationError?: ValidationError;
|
|
458
457
|
systemError?: SystemError;
|
|
459
458
|
}
|
|
460
|
-
interface ApplicationError {
|
|
459
|
+
export interface ApplicationError {
|
|
461
460
|
/** Error code. */
|
|
462
461
|
code?: string;
|
|
463
462
|
/** Description of the error. */
|
|
@@ -497,10 +496,10 @@ interface ApplicationError {
|
|
|
497
496
|
* ]
|
|
498
497
|
* }
|
|
499
498
|
*/
|
|
500
|
-
interface ValidationError {
|
|
499
|
+
export interface ValidationError {
|
|
501
500
|
fieldViolations?: FieldViolation[];
|
|
502
501
|
}
|
|
503
|
-
declare enum RuleType {
|
|
502
|
+
export declare enum RuleType {
|
|
504
503
|
VALIDATION = "VALIDATION",
|
|
505
504
|
OTHER = "OTHER",
|
|
506
505
|
MAX = "MAX",
|
|
@@ -523,7 +522,7 @@ declare enum RuleType {
|
|
|
523
522
|
EXACT_SIZE = "EXACT_SIZE",
|
|
524
523
|
REQUIRED_ONE_OF_FIELD = "REQUIRED_ONE_OF_FIELD"
|
|
525
524
|
}
|
|
526
|
-
interface FieldViolation {
|
|
525
|
+
export interface FieldViolation {
|
|
527
526
|
field?: string;
|
|
528
527
|
description?: string;
|
|
529
528
|
violatedRule?: RuleType;
|
|
@@ -531,38 +530,7 @@ interface FieldViolation {
|
|
|
531
530
|
ruleName?: string | null;
|
|
532
531
|
data?: Record<string, any> | null;
|
|
533
532
|
}
|
|
534
|
-
interface SystemError {
|
|
533
|
+
export interface SystemError {
|
|
535
534
|
/** Error code. */
|
|
536
535
|
errorCode?: string | null;
|
|
537
536
|
}
|
|
538
|
-
interface GetDeliverySolutionsOptions {
|
|
539
|
-
/** Destination the items should deliver to */
|
|
540
|
-
destination: Address;
|
|
541
|
-
/**
|
|
542
|
-
* Origin the items should deliver from
|
|
543
|
-
* @deprecated Origin the items should deliver from
|
|
544
|
-
* @targetRemovalDate 2025-04-01
|
|
545
|
-
*/
|
|
546
|
-
origin?: Address;
|
|
547
|
-
/**
|
|
548
|
-
* Currency - Defaults to site's currency
|
|
549
|
-
* @format CURRENCY
|
|
550
|
-
*/
|
|
551
|
-
currency: string | null;
|
|
552
|
-
/** Contact details */
|
|
553
|
-
contactDetails?: FullAddressContactDetails;
|
|
554
|
-
/** Measure unit - defaults to site's weight unit */
|
|
555
|
-
weightUnit?: WeightUnit;
|
|
556
|
-
/**
|
|
557
|
-
* list of user preferences which are delivery options codes combined with delivery carrier app id
|
|
558
|
-
* @maxSize 5
|
|
559
|
-
*/
|
|
560
|
-
userPreferences?: UserPreference[];
|
|
561
|
-
/**
|
|
562
|
-
* Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
563
|
-
* @format GUID
|
|
564
|
-
*/
|
|
565
|
-
purchaseFlowId?: string | null;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
export { type Address as A, type SystemError as B, ChargeType as C, type DeliverableItem as D, type ExternalReference as E, type FullAddressContactDetails as F, type GetDeliverySolutionsOptions as G, PickupMethod as P, RuleType as R, SubdivisionType as S, type UserPreference as U, VatType as V, WeightUnit as W, type GetDeliverySolutionsResponse as a, type DeliveryRatesGateway as b, type GetDeliverySolutionsRequest as c, type CatalogReference as d, type PhysicalProperties as e, type AddressStreetOneOf as f, type StreetAddress as g, type AddressLocation as h, type Subdivision as i, type VatId as j, type DeliverySolution as k, type DeliveryLogistics as l, type PickupDetails as m, type DeliveryTimeSlot as n, type DeliveryCost as o, type AdditionalCharge as p, type DeliveryAllocation as q, type Carrier as r, type Region as s, type ApplicableLineItems as t, type DeliveryCarrierError as u, type Details as v, type DetailsKindOneOf as w, type ApplicationError as x, type ValidationError as y, type FieldViolation as z };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RuleType = exports.ChargeType = exports.PickupMethod = exports.WeightUnit = exports.VatType = exports.SubdivisionType = void 0;
|
|
4
|
+
var SubdivisionType;
|
|
5
|
+
(function (SubdivisionType) {
|
|
6
|
+
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
7
|
+
/** State */
|
|
8
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
9
|
+
/** County */
|
|
10
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
11
|
+
/** City/town */
|
|
12
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
13
|
+
/** Neighborhood/quarter */
|
|
14
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
15
|
+
/** Street/block */
|
|
16
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
17
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
18
|
+
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
19
|
+
})(SubdivisionType || (exports.SubdivisionType = SubdivisionType = {}));
|
|
20
|
+
/** tax info types */
|
|
21
|
+
var VatType;
|
|
22
|
+
(function (VatType) {
|
|
23
|
+
VatType["UNSPECIFIED"] = "UNSPECIFIED";
|
|
24
|
+
/** CPF - for individual tax payers. */
|
|
25
|
+
VatType["CPF"] = "CPF";
|
|
26
|
+
/** CNPJ - for corporations */
|
|
27
|
+
VatType["CNPJ"] = "CNPJ";
|
|
28
|
+
})(VatType || (exports.VatType = VatType = {}));
|
|
29
|
+
var WeightUnit;
|
|
30
|
+
(function (WeightUnit) {
|
|
31
|
+
/** Weight unit can't be classified due to an error. */
|
|
32
|
+
WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
33
|
+
/** Kilograms. */
|
|
34
|
+
WeightUnit["KG"] = "KG";
|
|
35
|
+
/** Pounds. */
|
|
36
|
+
WeightUnit["LB"] = "LB";
|
|
37
|
+
})(WeightUnit || (exports.WeightUnit = WeightUnit = {}));
|
|
38
|
+
var PickupMethod;
|
|
39
|
+
(function (PickupMethod) {
|
|
40
|
+
PickupMethod["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
|
|
41
|
+
PickupMethod["STORE_PICKUP"] = "STORE_PICKUP";
|
|
42
|
+
PickupMethod["PICKUP_POINT"] = "PICKUP_POINT";
|
|
43
|
+
})(PickupMethod || (exports.PickupMethod = PickupMethod = {}));
|
|
44
|
+
var ChargeType;
|
|
45
|
+
(function (ChargeType) {
|
|
46
|
+
ChargeType["HANDLING_FEE"] = "HANDLING_FEE";
|
|
47
|
+
})(ChargeType || (exports.ChargeType = ChargeType = {}));
|
|
48
|
+
var RuleType;
|
|
49
|
+
(function (RuleType) {
|
|
50
|
+
RuleType["VALIDATION"] = "VALIDATION";
|
|
51
|
+
RuleType["OTHER"] = "OTHER";
|
|
52
|
+
RuleType["MAX"] = "MAX";
|
|
53
|
+
RuleType["MIN"] = "MIN";
|
|
54
|
+
RuleType["MAX_LENGTH"] = "MAX_LENGTH";
|
|
55
|
+
RuleType["MIN_LENGTH"] = "MIN_LENGTH";
|
|
56
|
+
RuleType["MAX_SIZE"] = "MAX_SIZE";
|
|
57
|
+
RuleType["MIN_SIZE"] = "MIN_SIZE";
|
|
58
|
+
RuleType["FORMAT"] = "FORMAT";
|
|
59
|
+
RuleType["DECIMAL_LTE"] = "DECIMAL_LTE";
|
|
60
|
+
RuleType["DECIMAL_GTE"] = "DECIMAL_GTE";
|
|
61
|
+
RuleType["DECIMAL_LT"] = "DECIMAL_LT";
|
|
62
|
+
RuleType["DECIMAL_GT"] = "DECIMAL_GT";
|
|
63
|
+
RuleType["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
|
|
64
|
+
RuleType["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
|
|
65
|
+
RuleType["REQUIRED_FIELD"] = "REQUIRED_FIELD";
|
|
66
|
+
RuleType["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
|
|
67
|
+
RuleType["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
|
|
68
|
+
RuleType["EXACT_LENGTH"] = "EXACT_LENGTH";
|
|
69
|
+
RuleType["EXACT_SIZE"] = "EXACT_SIZE";
|
|
70
|
+
RuleType["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
|
|
71
|
+
})(RuleType || (exports.RuleType = RuleType = {}));
|
|
72
|
+
//# sourceMappingURL=gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js","sourceRoot":"","sources":["../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.ts"],"names":[],"mappings":";;;AAkMA,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,wEAAqD,CAAA;IACrD,YAAY;IACZ,8EAA2D,CAAA;IAC3D,aAAa;IACb,8EAA2D,CAAA;IAC3D,gBAAgB;IAChB,8EAA2D,CAAA;IAC3D,2BAA2B;IAC3B,8EAA2D,CAAA;IAC3D,mBAAmB;IACnB,8EAA2D,CAAA;IAC3D,8IAA8I;IAC9I,sCAAmB,CAAA;AACrB,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B;AAqCD,qBAAqB;AACrB,IAAY,OAMX;AAND,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,uCAAuC;IACvC,sBAAW,CAAA;IACX,8BAA8B;IAC9B,wBAAa,CAAA;AACf,CAAC,EANW,OAAO,uBAAP,OAAO,QAMlB;AAED,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,uDAAuD;IACvD,iEAAmD,CAAA;IACnD,iBAAiB;IACjB,uBAAS,CAAA;IACT,cAAc;IACd,uBAAS,CAAA;AACX,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAyGD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,6CAA6B,CAAA;AAC/B,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AA4CD,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,2CAA6B,CAAA;AAC/B,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AAwHD,IAAY,QAsBX;AAtBD,WAAY,QAAQ;IAClB,qCAAyB,CAAA;IACzB,2BAAe,CAAA;IACf,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,iCAAqB,CAAA;IACrB,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,uCAA2B,CAAA;IAC3B,uCAA2B,CAAA;IAC3B,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,mDAAuC,CAAA;IACvC,qDAAyC,CAAA;IACzC,6CAAiC,CAAA;IACjC,mDAAuC,CAAA;IACvC,iDAAqC,CAAA;IACrC,yCAA6B,CAAA;IAC7B,qCAAyB,CAAA;IACzB,2DAA+C,CAAA;AACjD,CAAC,EAtBW,QAAQ,wBAAR,QAAQ,QAsBnB"}
|