@pmcretail/mapper-library 0.0.49 → 0.0.52
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/README.md +24 -24
- package/bundles/pmcretail-mapper-library.umd.js +4379 -4373
- package/bundles/pmcretail-mapper-library.umd.js.map +1 -1
- package/esm2015/lib/RJ-mapper.class.js +877 -877
- package/esm2015/lib/TransactionDocumentBuilder.js +1244 -1244
- package/esm2015/lib/WebReturn-mapper.class.js +326 -326
- package/esm2015/lib/WebReturnMagento2RestV1.class.js +275 -269
- package/esm2015/lib/WebReturnSalesforceMapper.class.js +409 -409
- package/esm2015/lib/basket.service.js +527 -527
- package/esm2015/lib/mapper-library.component.js +26 -26
- package/esm2015/lib/mapper-library.model.js +41 -41
- package/esm2015/lib/mapper-library.module.js +21 -21
- package/esm2015/lib/number-util.service.js +42 -42
- package/esm2015/pmcretail-mapper-library.js +4 -4
- package/esm2015/public-api.js +10 -10
- package/fesm2015/pmcretail-mapper-library.js +3743 -3737
- package/fesm2015/pmcretail-mapper-library.js.map +1 -1
- package/lib/RJ-mapper.class.d.ts +80 -80
- package/lib/TransactionDocumentBuilder.d.ts +271 -271
- package/lib/WebReturn-mapper.class.d.ts +27 -27
- package/lib/WebReturnMagento2RestV1.class.d.ts +30 -30
- package/lib/WebReturnMagento2RestV1.class.d.ts.map +1 -1
- package/lib/WebReturnSalesforceMapper.class.d.ts +35 -35
- package/lib/basket.service.d.ts +105 -105
- package/lib/mapper-library.component.d.ts +8 -8
- package/lib/mapper-library.model.d.ts +702 -701
- package/lib/mapper-library.model.d.ts.map +1 -1
- package/lib/mapper-library.module.d.ts +7 -7
- package/lib/number-util.service.d.ts +13 -13
- package/package.json +2 -2
- package/pmcretail-mapper-library.d.ts +5 -5
- package/public-api.d.ts +6 -6
|
@@ -1,702 +1,703 @@
|
|
|
1
|
-
export declare enum TRANSACTION_TYPE {
|
|
2
|
-
SALE = "SALE",
|
|
3
|
-
REFUND = "REFUND",
|
|
4
|
-
SALE_REFUND = "SALE_REFUND",
|
|
5
|
-
SALE_EXCHANGE = "SALE_EXCHANGE",
|
|
6
|
-
VOID = "VOID",
|
|
7
|
-
WEB_RETURNS = "WEB_RETURNS"
|
|
8
|
-
}
|
|
9
|
-
export interface ItemDiscount {
|
|
10
|
-
trnDiscountsPortion: number;
|
|
11
|
-
trnPromotionsPortion: number;
|
|
12
|
-
refundPortion: number;
|
|
13
|
-
currentRefundPortion?: number;
|
|
14
|
-
}
|
|
15
|
-
export declare enum DELIVERY_METHODS {
|
|
16
|
-
DELIVERY = 1,
|
|
17
|
-
DROP_SHIP = 2,
|
|
18
|
-
COLLECT_FROM_STORE = 3,
|
|
19
|
-
SHIP_TO_STORE = 4
|
|
20
|
-
}
|
|
21
|
-
export interface ProductChange {
|
|
22
|
-
itemLineId?: number;
|
|
23
|
-
SKU: string;
|
|
24
|
-
quantity: number;
|
|
25
|
-
selectedPrice?: number;
|
|
26
|
-
lineDiscount?: LineDiscount;
|
|
27
|
-
linePromotions?: LinePromotions;
|
|
28
|
-
exchange?: Exchange;
|
|
29
|
-
refundedQuantity?: number;
|
|
30
|
-
refundPromotionalQuantity?: number;
|
|
31
|
-
refunded?: boolean;
|
|
32
|
-
refundedTotal?: number;
|
|
33
|
-
refundedReason?: string;
|
|
34
|
-
refundedReasonDescription?: string;
|
|
35
|
-
isChecked?: boolean;
|
|
36
|
-
sealed?: boolean;
|
|
37
|
-
isLastExchanged?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Product
|
|
41
|
-
*/
|
|
42
|
-
export interface Product extends ProductChange {
|
|
43
|
-
itemLineId?: number;
|
|
44
|
-
status: number;
|
|
45
|
-
subGroup: number;
|
|
46
|
-
brand: string;
|
|
47
|
-
currency: string;
|
|
48
|
-
category: string;
|
|
49
|
-
countryofOrigin: string;
|
|
50
|
-
productId: string;
|
|
51
|
-
productType: number;
|
|
52
|
-
name?: string;
|
|
53
|
-
imageUrls: [string];
|
|
54
|
-
isImageFailToLoad?: boolean;
|
|
55
|
-
size: string;
|
|
56
|
-
type: string;
|
|
57
|
-
season: number;
|
|
58
|
-
productGroup: number;
|
|
59
|
-
styleCode: string;
|
|
60
|
-
nodeStructure: NodeStructure[];
|
|
61
|
-
barcode: string;
|
|
62
|
-
price: Price[];
|
|
63
|
-
colour: string;
|
|
64
|
-
description: string;
|
|
65
|
-
totalLinePrice: number;
|
|
66
|
-
total: number;
|
|
67
|
-
addedInBasket?: boolean;
|
|
68
|
-
selectedVAT?: number;
|
|
69
|
-
selectedVATCode?: string;
|
|
70
|
-
selectedRRPPrice?: number;
|
|
71
|
-
lineDiscount?: LineDiscount;
|
|
72
|
-
exchange?: Exchange;
|
|
73
|
-
refundPromotionalQuantity?: number;
|
|
74
|
-
exchangeReason?: string;
|
|
75
|
-
exchangeQuantity?: number;
|
|
76
|
-
itemDiscounts: ItemDiscount;
|
|
77
|
-
giftCardNumberIssued?: string;
|
|
78
|
-
giftCardAmount?: number;
|
|
79
|
-
giftCardRecipientEmail?: string;
|
|
80
|
-
giftCardExpiryDate?: string;
|
|
81
|
-
giftCardRecipientName?: string;
|
|
82
|
-
giftCard?: boolean;
|
|
83
|
-
discountable: boolean;
|
|
84
|
-
excludePromotion: boolean;
|
|
85
|
-
categories: Categories[];
|
|
86
|
-
descriptions: Descriptions[];
|
|
87
|
-
barcodes: string[];
|
|
88
|
-
externalId: string;
|
|
89
|
-
createdDate: string;
|
|
90
|
-
updatedDate: string;
|
|
91
|
-
createdBy: string;
|
|
92
|
-
updatedBy: string;
|
|
93
|
-
attributes: CoreAttribute[];
|
|
94
|
-
id: string;
|
|
95
|
-
long_description: string;
|
|
96
|
-
isWebOrder?: boolean;
|
|
97
|
-
fullfilmentId: string;
|
|
98
|
-
fullfilmentLocationName?: string;
|
|
99
|
-
deliveryMethod?: string;
|
|
100
|
-
deliveryGroup?: string;
|
|
101
|
-
selectedInventory?: InventoryInfo;
|
|
102
|
-
leadTime?: leadTime;
|
|
103
|
-
}
|
|
104
|
-
export interface leadTime {
|
|
105
|
-
type: string;
|
|
106
|
-
value: string;
|
|
107
|
-
}
|
|
108
|
-
export interface Exchange {
|
|
109
|
-
exchangeId: number;
|
|
110
|
-
lineItemId: number;
|
|
111
|
-
reason: string;
|
|
112
|
-
quantity: number;
|
|
113
|
-
newItems: Product[];
|
|
114
|
-
}
|
|
115
|
-
export interface Categories {
|
|
116
|
-
id: string;
|
|
117
|
-
parentId: string;
|
|
118
|
-
name: string;
|
|
119
|
-
categoryId: string;
|
|
120
|
-
status: boolean;
|
|
121
|
-
}
|
|
122
|
-
export interface Descriptions {
|
|
123
|
-
name: string;
|
|
124
|
-
countryCode: string;
|
|
125
|
-
value: string;
|
|
126
|
-
}
|
|
127
|
-
export interface CoreAttribute {
|
|
128
|
-
name: string;
|
|
129
|
-
value: string;
|
|
130
|
-
searchable: boolean;
|
|
131
|
-
countryCode: string;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Basket
|
|
135
|
-
*/
|
|
136
|
-
export interface Basket {
|
|
137
|
-
subsidiaryId?: string;
|
|
138
|
-
products: Product[];
|
|
139
|
-
transactionDiscount: any[];
|
|
140
|
-
quantity: number;
|
|
141
|
-
total: number;
|
|
142
|
-
saleTotal: number;
|
|
143
|
-
discountTotal?: number;
|
|
144
|
-
transactionId?: string;
|
|
145
|
-
offlineTransactionId?: string;
|
|
146
|
-
baseCurrency: string;
|
|
147
|
-
basketTotal?: number;
|
|
148
|
-
refundTotal?: number;
|
|
149
|
-
transactionPromotion?: TransactionPromotion[];
|
|
150
|
-
customer?: any;
|
|
151
|
-
exchange?: Exchange[];
|
|
152
|
-
inStoreFlag?: boolean;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Price
|
|
156
|
-
*/
|
|
157
|
-
export interface Price {
|
|
158
|
-
VAT: number;
|
|
159
|
-
VATCode: string;
|
|
160
|
-
salesPrice: number;
|
|
161
|
-
currencyCode: string;
|
|
162
|
-
RRPPrice: number;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Node structure
|
|
166
|
-
*/
|
|
167
|
-
interface NodeStructure {
|
|
168
|
-
status: boolean;
|
|
169
|
-
name: string;
|
|
170
|
-
nodeType: string;
|
|
171
|
-
isOverride: boolean;
|
|
172
|
-
nodeId: string;
|
|
173
|
-
parentId: string;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Line Discount
|
|
177
|
-
*/
|
|
178
|
-
export interface LineDiscount {
|
|
179
|
-
itemLineId: string;
|
|
180
|
-
discountAmount: number;
|
|
181
|
-
discountType: string;
|
|
182
|
-
name?: string;
|
|
183
|
-
unitPrice: number;
|
|
184
|
-
discountedLinePrice?: number;
|
|
185
|
-
priceManagerOverride?: UserOverride;
|
|
186
|
-
priceOverrideReasonCode?: string;
|
|
187
|
-
priceOverrideReasonName?: string;
|
|
188
|
-
priceOverrideAmount?: number;
|
|
189
|
-
percentageDiscountManagerOverride?: UserOverride;
|
|
190
|
-
percentageDiscountReasonCode?: string;
|
|
191
|
-
percentageDiscountReasonName?: string;
|
|
192
|
-
percentageDiscountValue?: number;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* User Override
|
|
196
|
-
*/
|
|
197
|
-
export interface UserOverride {
|
|
198
|
-
userId: string;
|
|
199
|
-
automaticApprove: string;
|
|
200
|
-
originalUserId: string;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* line Promotions
|
|
204
|
-
*/
|
|
205
|
-
export interface LinePromotions {
|
|
206
|
-
trigger: Trigger[];
|
|
207
|
-
itemLineId: number;
|
|
208
|
-
promotionId: string;
|
|
209
|
-
displayText: string;
|
|
210
|
-
promotionType: string;
|
|
211
|
-
promotionAmount: number;
|
|
212
|
-
name: string;
|
|
213
|
-
promotionInfo: string;
|
|
214
|
-
promotionLinePrice: number;
|
|
215
|
-
refunded?: boolean;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* trigger
|
|
219
|
-
*/
|
|
220
|
-
export interface Trigger {
|
|
221
|
-
itemLineId: string;
|
|
222
|
-
quantity?: number;
|
|
223
|
-
totalQuantity?: number;
|
|
224
|
-
linePromotionAmount?: number;
|
|
225
|
-
promotionAmount?: number;
|
|
226
|
-
refundedReason?: string;
|
|
227
|
-
refundedReasonDescription?: string;
|
|
228
|
-
promotionId?: string;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Transaction Promotion
|
|
232
|
-
*/
|
|
233
|
-
export interface TransactionPromotion {
|
|
234
|
-
displayText: string;
|
|
235
|
-
name: string;
|
|
236
|
-
promotionAmount: number;
|
|
237
|
-
promotionId: string;
|
|
238
|
-
promotionInfo: string;
|
|
239
|
-
promotionType: string;
|
|
240
|
-
itemLineIds: number[];
|
|
241
|
-
type?: string;
|
|
242
|
-
subLevelType?: PROMOTION_LEVEL;
|
|
243
|
-
trigger?: Trigger[];
|
|
244
|
-
couponCode?: string;
|
|
245
|
-
}
|
|
246
|
-
export interface RefundProductChange {
|
|
247
|
-
itemLineId?: number;
|
|
248
|
-
refundedQuantity?: number;
|
|
249
|
-
refundedPromotionalQuantity?: number;
|
|
250
|
-
refundTotal?: number;
|
|
251
|
-
refundedReason?: string;
|
|
252
|
-
refundedReasonDescription?: string;
|
|
253
|
-
refundWithPromotion: boolean;
|
|
254
|
-
isLastExchanged?: boolean;
|
|
255
|
-
}
|
|
256
|
-
export interface InventoryInfo {
|
|
257
|
-
storeName: string;
|
|
258
|
-
storeId: string;
|
|
259
|
-
quantityAvailable: number;
|
|
260
|
-
quantityRequired: number;
|
|
261
|
-
}
|
|
262
|
-
export interface InventoryRequestInfo extends InventoryInfo {
|
|
263
|
-
requestedQuantity: number;
|
|
264
|
-
requestedAction: DELIVERY_METHODS;
|
|
265
|
-
}
|
|
266
|
-
export interface DeliveryInfo {
|
|
267
|
-
groups: DeliveryGroupInfo[];
|
|
268
|
-
}
|
|
269
|
-
export interface DeliveryGroupInfo {
|
|
270
|
-
groupNumber: number;
|
|
271
|
-
items: Product[];
|
|
272
|
-
estimate?: Estimate;
|
|
273
|
-
}
|
|
274
|
-
export interface Estimate {
|
|
275
|
-
type: string;
|
|
276
|
-
value: string;
|
|
277
|
-
}
|
|
278
|
-
export interface TransactionDocument {
|
|
279
|
-
transactionId?: string;
|
|
280
|
-
subsidiaryId?: string;
|
|
281
|
-
offlineTransactionId?: string;
|
|
282
|
-
transactionRef?: string;
|
|
283
|
-
dateTime?: string;
|
|
284
|
-
orgCode: string;
|
|
285
|
-
storeId: string;
|
|
286
|
-
storeNodeId: string;
|
|
287
|
-
storeNodeStructure: string;
|
|
288
|
-
deviceId: string;
|
|
289
|
-
terminalId: string;
|
|
290
|
-
initiatingModule: string;
|
|
291
|
-
export: boolean;
|
|
292
|
-
userId?: string;
|
|
293
|
-
userName?: string;
|
|
294
|
-
customer?: Customer;
|
|
295
|
-
basket: any;
|
|
296
|
-
basketSummary: BasketSummary;
|
|
297
|
-
baseCurrency: string;
|
|
298
|
-
splitPayment?: boolean;
|
|
299
|
-
isPaymentCompleted?: boolean;
|
|
300
|
-
paymentDetails?: any;
|
|
301
|
-
type?: string;
|
|
302
|
-
operationStatus?: string;
|
|
303
|
-
createdAt?: string;
|
|
304
|
-
updatedAt?: string;
|
|
305
|
-
transCompletedAt?: string;
|
|
306
|
-
id?: string;
|
|
307
|
-
saleTotal?: number;
|
|
308
|
-
reasonCode?: string;
|
|
309
|
-
reasonDescription?: string;
|
|
310
|
-
override?: UserOverride;
|
|
311
|
-
originalTransId?: string;
|
|
312
|
-
originalExternalId?: string;
|
|
313
|
-
apiResponse?: APIResponse;
|
|
314
|
-
unreferencedRefund?: boolean;
|
|
315
|
-
giftedReceipt?: boolean;
|
|
316
|
-
currentTransactionDetails?: any;
|
|
317
|
-
isChecked?: boolean;
|
|
318
|
-
externalTransactionDetails?: externalTransactionDetails[];
|
|
319
|
-
refundRequest?: any[];
|
|
320
|
-
isInStoreOrder?: boolean;
|
|
321
|
-
}
|
|
322
|
-
export interface APIResponse {
|
|
323
|
-
internalId?: number;
|
|
324
|
-
tranid?: string;
|
|
325
|
-
}
|
|
326
|
-
export interface CurrentTransactionDetails {
|
|
327
|
-
products: Product[];
|
|
328
|
-
lineDiscount?: LineDiscount[];
|
|
329
|
-
linePromotion?: LinePromotions[];
|
|
330
|
-
transactionPromotion?: TransactionPromotion[];
|
|
331
|
-
transactionDiscount?: TransactionDiscount[];
|
|
332
|
-
basketSummary?: BasketSummary;
|
|
333
|
-
taxBreakdown?: TaxBreakdown;
|
|
334
|
-
totalTaxSummary?: TotalTaxSummary[];
|
|
335
|
-
}
|
|
336
|
-
export interface BasketSummary {
|
|
337
|
-
totalItems?: number;
|
|
338
|
-
saleTotal?: number;
|
|
339
|
-
VATTotal?: number;
|
|
340
|
-
discountTotal?: number;
|
|
341
|
-
basketTotal?: number;
|
|
342
|
-
refundTotal?: number;
|
|
343
|
-
shippingTotal?: number;
|
|
344
|
-
basketTotalWithShippingTotal?: number;
|
|
345
|
-
inStore?: BasketSummaryDetails;
|
|
346
|
-
webOrder?: BasketSummaryDetails;
|
|
347
|
-
cnc?: BasketSummaryDetails;
|
|
348
|
-
}
|
|
349
|
-
export interface BasketSummaryDetails {
|
|
350
|
-
totalItems?: number;
|
|
351
|
-
saleTotal?: number;
|
|
352
|
-
VATTotal?: number;
|
|
353
|
-
discountTotal?: number;
|
|
354
|
-
basketTotal?: number;
|
|
355
|
-
refundTotal?: number;
|
|
356
|
-
shippingTotal?: number;
|
|
357
|
-
basketTotalWithShippingTotal?: number;
|
|
358
|
-
}
|
|
359
|
-
export interface TransactionDiscount {
|
|
360
|
-
discountAmount: number;
|
|
361
|
-
discountType: String;
|
|
362
|
-
reasonCode: string;
|
|
363
|
-
override?: UserOverride;
|
|
364
|
-
itemLineIds?: number[];
|
|
365
|
-
}
|
|
366
|
-
export interface TBasket {
|
|
367
|
-
products: TProduct[];
|
|
368
|
-
lineDiscount: LineDiscount[];
|
|
369
|
-
exchange: Exchange[];
|
|
370
|
-
linePromotion: LinePromotions[];
|
|
371
|
-
transactionPromotion?: TransactionPromotion[];
|
|
372
|
-
transactionDiscount?: TransactionDiscount[];
|
|
373
|
-
taxBreakdown?: TaxBreakdown;
|
|
374
|
-
totalTaxSummary?: TotalTaxSummary[];
|
|
375
|
-
}
|
|
376
|
-
export interface TExchange {
|
|
377
|
-
exchangeId?: number;
|
|
378
|
-
lineItemId?: number;
|
|
379
|
-
reason?: string;
|
|
380
|
-
quantity?: number;
|
|
381
|
-
newItems?: TNewItems[];
|
|
382
|
-
}
|
|
383
|
-
export interface TNewItems {
|
|
384
|
-
lineItemId: number;
|
|
385
|
-
Quantity: number;
|
|
386
|
-
}
|
|
387
|
-
export interface TProduct {
|
|
388
|
-
itemLineId: string;
|
|
389
|
-
SKU: string;
|
|
390
|
-
description: string;
|
|
391
|
-
imageUrls: [string];
|
|
392
|
-
price: number;
|
|
393
|
-
taxCode?: string;
|
|
394
|
-
taxPercent?: string;
|
|
395
|
-
quantity: number;
|
|
396
|
-
refundedQuantity?: number;
|
|
397
|
-
refundedPromotionalQuantity?: number;
|
|
398
|
-
refunded?: boolean;
|
|
399
|
-
refundedTotal?: number;
|
|
400
|
-
refundedReason?: string;
|
|
401
|
-
refundedReasonDescription?: string;
|
|
402
|
-
selectedRRPPrice?: number;
|
|
403
|
-
totalLinePrice: number;
|
|
404
|
-
barCode?: string;
|
|
405
|
-
barcodes?: string[];
|
|
406
|
-
flagged?: boolean;
|
|
407
|
-
exchange?: Exchange;
|
|
408
|
-
excludePromotion: boolean;
|
|
409
|
-
discountable?: boolean;
|
|
410
|
-
itemDiscounts?: ItemDiscounts;
|
|
411
|
-
isLastExchanged?: boolean;
|
|
412
|
-
fullfilmentId: string;
|
|
413
|
-
fullfilmentLocationName: string;
|
|
414
|
-
deliveryMethod?: string;
|
|
415
|
-
deliveryGroup?: string;
|
|
416
|
-
giftCardNumberIssued?: string;
|
|
417
|
-
giftCardAmount?: number;
|
|
418
|
-
giftCardRecipientEmail?: string;
|
|
419
|
-
giftCardExpiryDate?: string;
|
|
420
|
-
giftCardRecipientName?: string;
|
|
421
|
-
giftCard?: boolean;
|
|
422
|
-
currency?: string;
|
|
423
|
-
isWebOrder?: boolean;
|
|
424
|
-
leadTime?: leadTime;
|
|
425
|
-
lineDiscount?: any;
|
|
426
|
-
attributes?: CoreAttribute[];
|
|
427
|
-
}
|
|
428
|
-
export interface ItemDiscounts {
|
|
429
|
-
trnDiscountsPortion: number;
|
|
430
|
-
trnPromotionsPortion: number;
|
|
431
|
-
refundPortion: number;
|
|
432
|
-
}
|
|
433
|
-
export interface Customer {
|
|
434
|
-
id: string;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
1
|
+
export declare enum TRANSACTION_TYPE {
|
|
2
|
+
SALE = "SALE",
|
|
3
|
+
REFUND = "REFUND",
|
|
4
|
+
SALE_REFUND = "SALE_REFUND",
|
|
5
|
+
SALE_EXCHANGE = "SALE_EXCHANGE",
|
|
6
|
+
VOID = "VOID",
|
|
7
|
+
WEB_RETURNS = "WEB_RETURNS"
|
|
8
|
+
}
|
|
9
|
+
export interface ItemDiscount {
|
|
10
|
+
trnDiscountsPortion: number;
|
|
11
|
+
trnPromotionsPortion: number;
|
|
12
|
+
refundPortion: number;
|
|
13
|
+
currentRefundPortion?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare enum DELIVERY_METHODS {
|
|
16
|
+
DELIVERY = 1,
|
|
17
|
+
DROP_SHIP = 2,
|
|
18
|
+
COLLECT_FROM_STORE = 3,
|
|
19
|
+
SHIP_TO_STORE = 4
|
|
20
|
+
}
|
|
21
|
+
export interface ProductChange {
|
|
22
|
+
itemLineId?: number;
|
|
23
|
+
SKU: string;
|
|
24
|
+
quantity: number;
|
|
25
|
+
selectedPrice?: number;
|
|
26
|
+
lineDiscount?: LineDiscount;
|
|
27
|
+
linePromotions?: LinePromotions;
|
|
28
|
+
exchange?: Exchange;
|
|
29
|
+
refundedQuantity?: number;
|
|
30
|
+
refundPromotionalQuantity?: number;
|
|
31
|
+
refunded?: boolean;
|
|
32
|
+
refundedTotal?: number;
|
|
33
|
+
refundedReason?: string;
|
|
34
|
+
refundedReasonDescription?: string;
|
|
35
|
+
isChecked?: boolean;
|
|
36
|
+
sealed?: boolean;
|
|
37
|
+
isLastExchanged?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Product
|
|
41
|
+
*/
|
|
42
|
+
export interface Product extends ProductChange {
|
|
43
|
+
itemLineId?: number;
|
|
44
|
+
status: number;
|
|
45
|
+
subGroup: number;
|
|
46
|
+
brand: string;
|
|
47
|
+
currency: string;
|
|
48
|
+
category: string;
|
|
49
|
+
countryofOrigin: string;
|
|
50
|
+
productId: string;
|
|
51
|
+
productType: number;
|
|
52
|
+
name?: string;
|
|
53
|
+
imageUrls: [string];
|
|
54
|
+
isImageFailToLoad?: boolean;
|
|
55
|
+
size: string;
|
|
56
|
+
type: string;
|
|
57
|
+
season: number;
|
|
58
|
+
productGroup: number;
|
|
59
|
+
styleCode: string;
|
|
60
|
+
nodeStructure: NodeStructure[];
|
|
61
|
+
barcode: string;
|
|
62
|
+
price: Price[];
|
|
63
|
+
colour: string;
|
|
64
|
+
description: string;
|
|
65
|
+
totalLinePrice: number;
|
|
66
|
+
total: number;
|
|
67
|
+
addedInBasket?: boolean;
|
|
68
|
+
selectedVAT?: number;
|
|
69
|
+
selectedVATCode?: string;
|
|
70
|
+
selectedRRPPrice?: number;
|
|
71
|
+
lineDiscount?: LineDiscount;
|
|
72
|
+
exchange?: Exchange;
|
|
73
|
+
refundPromotionalQuantity?: number;
|
|
74
|
+
exchangeReason?: string;
|
|
75
|
+
exchangeQuantity?: number;
|
|
76
|
+
itemDiscounts: ItemDiscount;
|
|
77
|
+
giftCardNumberIssued?: string;
|
|
78
|
+
giftCardAmount?: number;
|
|
79
|
+
giftCardRecipientEmail?: string;
|
|
80
|
+
giftCardExpiryDate?: string;
|
|
81
|
+
giftCardRecipientName?: string;
|
|
82
|
+
giftCard?: boolean;
|
|
83
|
+
discountable: boolean;
|
|
84
|
+
excludePromotion: boolean;
|
|
85
|
+
categories: Categories[];
|
|
86
|
+
descriptions: Descriptions[];
|
|
87
|
+
barcodes: string[];
|
|
88
|
+
externalId: string;
|
|
89
|
+
createdDate: string;
|
|
90
|
+
updatedDate: string;
|
|
91
|
+
createdBy: string;
|
|
92
|
+
updatedBy: string;
|
|
93
|
+
attributes: CoreAttribute[];
|
|
94
|
+
id: string;
|
|
95
|
+
long_description: string;
|
|
96
|
+
isWebOrder?: boolean;
|
|
97
|
+
fullfilmentId: string;
|
|
98
|
+
fullfilmentLocationName?: string;
|
|
99
|
+
deliveryMethod?: string;
|
|
100
|
+
deliveryGroup?: string;
|
|
101
|
+
selectedInventory?: InventoryInfo;
|
|
102
|
+
leadTime?: leadTime;
|
|
103
|
+
}
|
|
104
|
+
export interface leadTime {
|
|
105
|
+
type: string;
|
|
106
|
+
value: string;
|
|
107
|
+
}
|
|
108
|
+
export interface Exchange {
|
|
109
|
+
exchangeId: number;
|
|
110
|
+
lineItemId: number;
|
|
111
|
+
reason: string;
|
|
112
|
+
quantity: number;
|
|
113
|
+
newItems: Product[];
|
|
114
|
+
}
|
|
115
|
+
export interface Categories {
|
|
116
|
+
id: string;
|
|
117
|
+
parentId: string;
|
|
118
|
+
name: string;
|
|
119
|
+
categoryId: string;
|
|
120
|
+
status: boolean;
|
|
121
|
+
}
|
|
122
|
+
export interface Descriptions {
|
|
123
|
+
name: string;
|
|
124
|
+
countryCode: string;
|
|
125
|
+
value: string;
|
|
126
|
+
}
|
|
127
|
+
export interface CoreAttribute {
|
|
128
|
+
name: string;
|
|
129
|
+
value: string;
|
|
130
|
+
searchable: boolean;
|
|
131
|
+
countryCode: string;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Basket
|
|
135
|
+
*/
|
|
136
|
+
export interface Basket {
|
|
137
|
+
subsidiaryId?: string;
|
|
138
|
+
products: Product[];
|
|
139
|
+
transactionDiscount: any[];
|
|
140
|
+
quantity: number;
|
|
141
|
+
total: number;
|
|
142
|
+
saleTotal: number;
|
|
143
|
+
discountTotal?: number;
|
|
144
|
+
transactionId?: string;
|
|
145
|
+
offlineTransactionId?: string;
|
|
146
|
+
baseCurrency: string;
|
|
147
|
+
basketTotal?: number;
|
|
148
|
+
refundTotal?: number;
|
|
149
|
+
transactionPromotion?: TransactionPromotion[];
|
|
150
|
+
customer?: any;
|
|
151
|
+
exchange?: Exchange[];
|
|
152
|
+
inStoreFlag?: boolean;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Price
|
|
156
|
+
*/
|
|
157
|
+
export interface Price {
|
|
158
|
+
VAT: number;
|
|
159
|
+
VATCode: string;
|
|
160
|
+
salesPrice: number;
|
|
161
|
+
currencyCode: string;
|
|
162
|
+
RRPPrice: number;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Node structure
|
|
166
|
+
*/
|
|
167
|
+
interface NodeStructure {
|
|
168
|
+
status: boolean;
|
|
169
|
+
name: string;
|
|
170
|
+
nodeType: string;
|
|
171
|
+
isOverride: boolean;
|
|
172
|
+
nodeId: string;
|
|
173
|
+
parentId: string;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Line Discount
|
|
177
|
+
*/
|
|
178
|
+
export interface LineDiscount {
|
|
179
|
+
itemLineId: string;
|
|
180
|
+
discountAmount: number;
|
|
181
|
+
discountType: string;
|
|
182
|
+
name?: string;
|
|
183
|
+
unitPrice: number;
|
|
184
|
+
discountedLinePrice?: number;
|
|
185
|
+
priceManagerOverride?: UserOverride;
|
|
186
|
+
priceOverrideReasonCode?: string;
|
|
187
|
+
priceOverrideReasonName?: string;
|
|
188
|
+
priceOverrideAmount?: number;
|
|
189
|
+
percentageDiscountManagerOverride?: UserOverride;
|
|
190
|
+
percentageDiscountReasonCode?: string;
|
|
191
|
+
percentageDiscountReasonName?: string;
|
|
192
|
+
percentageDiscountValue?: number;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* User Override
|
|
196
|
+
*/
|
|
197
|
+
export interface UserOverride {
|
|
198
|
+
userId: string;
|
|
199
|
+
automaticApprove: string;
|
|
200
|
+
originalUserId: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* line Promotions
|
|
204
|
+
*/
|
|
205
|
+
export interface LinePromotions {
|
|
206
|
+
trigger: Trigger[];
|
|
207
|
+
itemLineId: number;
|
|
208
|
+
promotionId: string;
|
|
209
|
+
displayText: string;
|
|
210
|
+
promotionType: string;
|
|
211
|
+
promotionAmount: number;
|
|
212
|
+
name: string;
|
|
213
|
+
promotionInfo: string;
|
|
214
|
+
promotionLinePrice: number;
|
|
215
|
+
refunded?: boolean;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* trigger
|
|
219
|
+
*/
|
|
220
|
+
export interface Trigger {
|
|
221
|
+
itemLineId: string;
|
|
222
|
+
quantity?: number;
|
|
223
|
+
totalQuantity?: number;
|
|
224
|
+
linePromotionAmount?: number;
|
|
225
|
+
promotionAmount?: number;
|
|
226
|
+
refundedReason?: string;
|
|
227
|
+
refundedReasonDescription?: string;
|
|
228
|
+
promotionId?: string;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Transaction Promotion
|
|
232
|
+
*/
|
|
233
|
+
export interface TransactionPromotion {
|
|
234
|
+
displayText: string;
|
|
235
|
+
name: string;
|
|
236
|
+
promotionAmount: number;
|
|
237
|
+
promotionId: string;
|
|
238
|
+
promotionInfo: string;
|
|
239
|
+
promotionType: string;
|
|
240
|
+
itemLineIds: number[];
|
|
241
|
+
type?: string;
|
|
242
|
+
subLevelType?: PROMOTION_LEVEL;
|
|
243
|
+
trigger?: Trigger[];
|
|
244
|
+
couponCode?: string;
|
|
245
|
+
}
|
|
246
|
+
export interface RefundProductChange {
|
|
247
|
+
itemLineId?: number;
|
|
248
|
+
refundedQuantity?: number;
|
|
249
|
+
refundedPromotionalQuantity?: number;
|
|
250
|
+
refundTotal?: number;
|
|
251
|
+
refundedReason?: string;
|
|
252
|
+
refundedReasonDescription?: string;
|
|
253
|
+
refundWithPromotion: boolean;
|
|
254
|
+
isLastExchanged?: boolean;
|
|
255
|
+
}
|
|
256
|
+
export interface InventoryInfo {
|
|
257
|
+
storeName: string;
|
|
258
|
+
storeId: string;
|
|
259
|
+
quantityAvailable: number;
|
|
260
|
+
quantityRequired: number;
|
|
261
|
+
}
|
|
262
|
+
export interface InventoryRequestInfo extends InventoryInfo {
|
|
263
|
+
requestedQuantity: number;
|
|
264
|
+
requestedAction: DELIVERY_METHODS;
|
|
265
|
+
}
|
|
266
|
+
export interface DeliveryInfo {
|
|
267
|
+
groups: DeliveryGroupInfo[];
|
|
268
|
+
}
|
|
269
|
+
export interface DeliveryGroupInfo {
|
|
270
|
+
groupNumber: number;
|
|
271
|
+
items: Product[];
|
|
272
|
+
estimate?: Estimate;
|
|
273
|
+
}
|
|
274
|
+
export interface Estimate {
|
|
275
|
+
type: string;
|
|
276
|
+
value: string;
|
|
277
|
+
}
|
|
278
|
+
export interface TransactionDocument {
|
|
279
|
+
transactionId?: string;
|
|
280
|
+
subsidiaryId?: string;
|
|
281
|
+
offlineTransactionId?: string;
|
|
282
|
+
transactionRef?: string;
|
|
283
|
+
dateTime?: string;
|
|
284
|
+
orgCode: string;
|
|
285
|
+
storeId: string;
|
|
286
|
+
storeNodeId: string;
|
|
287
|
+
storeNodeStructure: string;
|
|
288
|
+
deviceId: string;
|
|
289
|
+
terminalId: string;
|
|
290
|
+
initiatingModule: string;
|
|
291
|
+
export: boolean;
|
|
292
|
+
userId?: string;
|
|
293
|
+
userName?: string;
|
|
294
|
+
customer?: Customer;
|
|
295
|
+
basket: any;
|
|
296
|
+
basketSummary: BasketSummary;
|
|
297
|
+
baseCurrency: string;
|
|
298
|
+
splitPayment?: boolean;
|
|
299
|
+
isPaymentCompleted?: boolean;
|
|
300
|
+
paymentDetails?: any;
|
|
301
|
+
type?: string;
|
|
302
|
+
operationStatus?: string;
|
|
303
|
+
createdAt?: string;
|
|
304
|
+
updatedAt?: string;
|
|
305
|
+
transCompletedAt?: string;
|
|
306
|
+
id?: string;
|
|
307
|
+
saleTotal?: number;
|
|
308
|
+
reasonCode?: string;
|
|
309
|
+
reasonDescription?: string;
|
|
310
|
+
override?: UserOverride;
|
|
311
|
+
originalTransId?: string;
|
|
312
|
+
originalExternalId?: string;
|
|
313
|
+
apiResponse?: APIResponse;
|
|
314
|
+
unreferencedRefund?: boolean;
|
|
315
|
+
giftedReceipt?: boolean;
|
|
316
|
+
currentTransactionDetails?: any;
|
|
317
|
+
isChecked?: boolean;
|
|
318
|
+
externalTransactionDetails?: externalTransactionDetails[];
|
|
319
|
+
refundRequest?: any[];
|
|
320
|
+
isInStoreOrder?: boolean;
|
|
321
|
+
}
|
|
322
|
+
export interface APIResponse {
|
|
323
|
+
internalId?: number;
|
|
324
|
+
tranid?: string;
|
|
325
|
+
}
|
|
326
|
+
export interface CurrentTransactionDetails {
|
|
327
|
+
products: Product[];
|
|
328
|
+
lineDiscount?: LineDiscount[];
|
|
329
|
+
linePromotion?: LinePromotions[];
|
|
330
|
+
transactionPromotion?: TransactionPromotion[];
|
|
331
|
+
transactionDiscount?: TransactionDiscount[];
|
|
332
|
+
basketSummary?: BasketSummary;
|
|
333
|
+
taxBreakdown?: TaxBreakdown;
|
|
334
|
+
totalTaxSummary?: TotalTaxSummary[];
|
|
335
|
+
}
|
|
336
|
+
export interface BasketSummary {
|
|
337
|
+
totalItems?: number;
|
|
338
|
+
saleTotal?: number;
|
|
339
|
+
VATTotal?: number;
|
|
340
|
+
discountTotal?: number;
|
|
341
|
+
basketTotal?: number;
|
|
342
|
+
refundTotal?: number;
|
|
343
|
+
shippingTotal?: number;
|
|
344
|
+
basketTotalWithShippingTotal?: number;
|
|
345
|
+
inStore?: BasketSummaryDetails;
|
|
346
|
+
webOrder?: BasketSummaryDetails;
|
|
347
|
+
cnc?: BasketSummaryDetails;
|
|
348
|
+
}
|
|
349
|
+
export interface BasketSummaryDetails {
|
|
350
|
+
totalItems?: number;
|
|
351
|
+
saleTotal?: number;
|
|
352
|
+
VATTotal?: number;
|
|
353
|
+
discountTotal?: number;
|
|
354
|
+
basketTotal?: number;
|
|
355
|
+
refundTotal?: number;
|
|
356
|
+
shippingTotal?: number;
|
|
357
|
+
basketTotalWithShippingTotal?: number;
|
|
358
|
+
}
|
|
359
|
+
export interface TransactionDiscount {
|
|
360
|
+
discountAmount: number;
|
|
361
|
+
discountType: String;
|
|
362
|
+
reasonCode: string;
|
|
363
|
+
override?: UserOverride;
|
|
364
|
+
itemLineIds?: number[];
|
|
365
|
+
}
|
|
366
|
+
export interface TBasket {
|
|
367
|
+
products: TProduct[];
|
|
368
|
+
lineDiscount: LineDiscount[];
|
|
369
|
+
exchange: Exchange[];
|
|
370
|
+
linePromotion: LinePromotions[];
|
|
371
|
+
transactionPromotion?: TransactionPromotion[];
|
|
372
|
+
transactionDiscount?: TransactionDiscount[];
|
|
373
|
+
taxBreakdown?: TaxBreakdown;
|
|
374
|
+
totalTaxSummary?: TotalTaxSummary[];
|
|
375
|
+
}
|
|
376
|
+
export interface TExchange {
|
|
377
|
+
exchangeId?: number;
|
|
378
|
+
lineItemId?: number;
|
|
379
|
+
reason?: string;
|
|
380
|
+
quantity?: number;
|
|
381
|
+
newItems?: TNewItems[];
|
|
382
|
+
}
|
|
383
|
+
export interface TNewItems {
|
|
384
|
+
lineItemId: number;
|
|
385
|
+
Quantity: number;
|
|
386
|
+
}
|
|
387
|
+
export interface TProduct {
|
|
388
|
+
itemLineId: string;
|
|
389
|
+
SKU: string;
|
|
390
|
+
description: string;
|
|
391
|
+
imageUrls: [string];
|
|
392
|
+
price: number;
|
|
393
|
+
taxCode?: string;
|
|
394
|
+
taxPercent?: string;
|
|
395
|
+
quantity: number;
|
|
396
|
+
refundedQuantity?: number;
|
|
397
|
+
refundedPromotionalQuantity?: number;
|
|
398
|
+
refunded?: boolean;
|
|
399
|
+
refundedTotal?: number;
|
|
400
|
+
refundedReason?: string;
|
|
401
|
+
refundedReasonDescription?: string;
|
|
402
|
+
selectedRRPPrice?: number;
|
|
403
|
+
totalLinePrice: number;
|
|
404
|
+
barCode?: string;
|
|
405
|
+
barcodes?: string[];
|
|
406
|
+
flagged?: boolean;
|
|
407
|
+
exchange?: Exchange;
|
|
408
|
+
excludePromotion: boolean;
|
|
409
|
+
discountable?: boolean;
|
|
410
|
+
itemDiscounts?: ItemDiscounts;
|
|
411
|
+
isLastExchanged?: boolean;
|
|
412
|
+
fullfilmentId: string;
|
|
413
|
+
fullfilmentLocationName: string;
|
|
414
|
+
deliveryMethod?: string;
|
|
415
|
+
deliveryGroup?: string;
|
|
416
|
+
giftCardNumberIssued?: string;
|
|
417
|
+
giftCardAmount?: number;
|
|
418
|
+
giftCardRecipientEmail?: string;
|
|
419
|
+
giftCardExpiryDate?: string;
|
|
420
|
+
giftCardRecipientName?: string;
|
|
421
|
+
giftCard?: boolean;
|
|
422
|
+
currency?: string;
|
|
423
|
+
isWebOrder?: boolean;
|
|
424
|
+
leadTime?: leadTime;
|
|
425
|
+
lineDiscount?: any;
|
|
426
|
+
attributes?: CoreAttribute[];
|
|
427
|
+
}
|
|
428
|
+
export interface ItemDiscounts {
|
|
429
|
+
trnDiscountsPortion: number;
|
|
430
|
+
trnPromotionsPortion: number;
|
|
431
|
+
refundPortion: number;
|
|
432
|
+
}
|
|
433
|
+
export interface Customer {
|
|
434
|
+
id: string;
|
|
435
|
+
customerId?: string;
|
|
436
|
+
title?: string;
|
|
437
|
+
firstName: string;
|
|
438
|
+
lastName: string;
|
|
439
|
+
email: string;
|
|
440
|
+
postCode: string;
|
|
441
|
+
telephone?: string;
|
|
442
|
+
billingAddress?: Address | Address[] | any;
|
|
443
|
+
shippingAddress?: Address | Address[] | any;
|
|
444
|
+
shipmentDetails?: ShipmentDetails[];
|
|
445
|
+
addressDetail?: string;
|
|
446
|
+
noCustomerSelected?: boolean;
|
|
447
|
+
externalId?: string;
|
|
448
|
+
}
|
|
449
|
+
export interface Address {
|
|
450
|
+
id?: string;
|
|
451
|
+
countryCode?: string;
|
|
452
|
+
address1?: string;
|
|
453
|
+
address2?: string;
|
|
454
|
+
address3?: string;
|
|
455
|
+
city?: string;
|
|
456
|
+
county?: string;
|
|
457
|
+
postCode?: string;
|
|
458
|
+
country?: string;
|
|
459
|
+
}
|
|
460
|
+
export interface ShipmentDetails {
|
|
461
|
+
id?: string;
|
|
462
|
+
deliveryGroup?: string;
|
|
463
|
+
}
|
|
464
|
+
export interface PaymentDetails {
|
|
465
|
+
cardNumber?: any;
|
|
466
|
+
sqNo?: number;
|
|
467
|
+
result?: string;
|
|
468
|
+
currency: string;
|
|
469
|
+
amount: string;
|
|
470
|
+
authcode?: string;
|
|
471
|
+
pan?: string;
|
|
472
|
+
cardType?: string;
|
|
473
|
+
transactionDate?: string;
|
|
474
|
+
mid?: string;
|
|
475
|
+
tid?: string;
|
|
476
|
+
cvm?: string;
|
|
477
|
+
hostReferenceId?: string;
|
|
478
|
+
aid?: string;
|
|
479
|
+
receiptNo?: string;
|
|
480
|
+
expirydate?: string;
|
|
481
|
+
transactionReference: string;
|
|
482
|
+
applicationVersion?: string;
|
|
483
|
+
entryMethod?: string;
|
|
484
|
+
transactionType: string;
|
|
485
|
+
totalamount: string;
|
|
486
|
+
paymentType?: string;
|
|
487
|
+
}
|
|
488
|
+
export interface TaxBreakdown {
|
|
489
|
+
taxLines: TaxLine[];
|
|
490
|
+
totalTaxableAmount: number;
|
|
491
|
+
}
|
|
492
|
+
export interface TotalTaxSummary {
|
|
493
|
+
VATCode: string;
|
|
494
|
+
VAT: number;
|
|
495
|
+
PreTaxSum: number;
|
|
496
|
+
TaxSum: number;
|
|
497
|
+
TXrateSum: number;
|
|
498
|
+
}
|
|
499
|
+
export interface TaxLine {
|
|
500
|
+
itemLineId: number;
|
|
501
|
+
taxableAmount: number;
|
|
502
|
+
taxLineTotal: number;
|
|
503
|
+
VAT: number;
|
|
504
|
+
VATCode: string;
|
|
505
|
+
PreTax: number;
|
|
506
|
+
}
|
|
507
|
+
export declare enum DISCOUNTTYPE {
|
|
508
|
+
PERCENT = "Percent",
|
|
509
|
+
AMOUNT = "AMOUNT"
|
|
510
|
+
}
|
|
511
|
+
export interface TransactionInfo {
|
|
512
|
+
shippingId?: string;
|
|
513
|
+
externalShippingId?: string;
|
|
514
|
+
invoiceId?: string;
|
|
515
|
+
}
|
|
516
|
+
export interface Coupons {
|
|
517
|
+
name?: string;
|
|
518
|
+
id?: string;
|
|
519
|
+
}
|
|
520
|
+
export interface externalTransactionDetails {
|
|
521
|
+
uniqueId?: string;
|
|
522
|
+
providerType?: string;
|
|
523
|
+
details?: TransactionInfo;
|
|
524
|
+
coupons?: Coupons[];
|
|
525
|
+
}
|
|
526
|
+
export declare enum INITIATING_MODULE {
|
|
527
|
+
EBASKET = "eBasket"
|
|
528
|
+
}
|
|
529
|
+
export interface pendingMethod {
|
|
530
|
+
_type?: string;
|
|
531
|
+
type?: string;
|
|
532
|
+
message?: string;
|
|
533
|
+
path?: string;
|
|
534
|
+
details?: ShipmentId;
|
|
535
|
+
}
|
|
536
|
+
export interface ShipmentId {
|
|
537
|
+
shipmentId?: string;
|
|
538
|
+
}
|
|
539
|
+
export interface CustomerAddress {
|
|
540
|
+
_type?: string;
|
|
541
|
+
email?: string;
|
|
542
|
+
address1?: string;
|
|
543
|
+
city?: string;
|
|
544
|
+
country_code?: string;
|
|
545
|
+
first_name?: string;
|
|
546
|
+
full_name?: string;
|
|
547
|
+
id?: string;
|
|
548
|
+
last_name?: string;
|
|
549
|
+
phone?: string;
|
|
550
|
+
salutation?: string;
|
|
551
|
+
c_area?: string;
|
|
552
|
+
c_email?: string;
|
|
553
|
+
c_phoneWhatsApp?: string;
|
|
554
|
+
c_strValue?: string;
|
|
555
|
+
postal_code?: string;
|
|
556
|
+
}
|
|
557
|
+
export interface CustomerInfo {
|
|
558
|
+
_type?: string;
|
|
559
|
+
customer_id?: string;
|
|
560
|
+
email?: string;
|
|
561
|
+
}
|
|
562
|
+
export interface GroupedTaxItem {
|
|
563
|
+
_type?: string;
|
|
564
|
+
tax_rate?: number;
|
|
565
|
+
tax_value?: number;
|
|
566
|
+
}
|
|
567
|
+
export interface additionalNotes {
|
|
568
|
+
_type?: string;
|
|
569
|
+
link?: string;
|
|
570
|
+
}
|
|
571
|
+
export interface ProductItem {
|
|
572
|
+
_type?: string;
|
|
573
|
+
adjusted_tax?: number;
|
|
574
|
+
base_price?: number;
|
|
575
|
+
bonus_product_line_item?: boolean;
|
|
576
|
+
gift?: boolean;
|
|
577
|
+
item_id?: string;
|
|
578
|
+
item_text?: string;
|
|
579
|
+
price?: number;
|
|
580
|
+
price_adjustments?: PriceAdjustment[];
|
|
581
|
+
price_after_item_discount?: number;
|
|
582
|
+
price_after_order_discount?: number;
|
|
583
|
+
product_id?: string;
|
|
584
|
+
product_name?: string;
|
|
585
|
+
quantity?: number;
|
|
586
|
+
shipment_id?: string;
|
|
587
|
+
tax?: number;
|
|
588
|
+
tax_basis?: number;
|
|
589
|
+
tax_class_id?: string;
|
|
590
|
+
tax_rate?: number;
|
|
591
|
+
c_osuObjectData?: string;
|
|
592
|
+
}
|
|
593
|
+
export interface ShippingMethod {
|
|
594
|
+
_type?: string;
|
|
595
|
+
description?: string;
|
|
596
|
+
id?: string;
|
|
597
|
+
name?: string;
|
|
598
|
+
price?: number;
|
|
599
|
+
c_approachingThresholdMessage?: string;
|
|
600
|
+
c_estimatedArrivalTime?: string;
|
|
601
|
+
c_isEmail?: boolean;
|
|
602
|
+
c_storePickupEnabled?: boolean;
|
|
603
|
+
c_thresholdValue?: number;
|
|
604
|
+
}
|
|
605
|
+
export interface shipment {
|
|
606
|
+
_type?: string;
|
|
607
|
+
adjusted_merchandize_total_tax?: number;
|
|
608
|
+
adjusted_shipping_total_tax?: number;
|
|
609
|
+
gift?: boolean;
|
|
610
|
+
merchandize_total_tax?: number;
|
|
611
|
+
product_sub_total?: number;
|
|
612
|
+
product_total?: number;
|
|
613
|
+
shipment_id?: string;
|
|
614
|
+
shipment_total?: number;
|
|
615
|
+
shipping_address?: CustomerAddress;
|
|
616
|
+
shipping_method?: ShippingMethod;
|
|
617
|
+
shipping_status?: string;
|
|
618
|
+
shipping_total?: number;
|
|
619
|
+
shipping_total_tax?: number;
|
|
620
|
+
tax_total?: number;
|
|
621
|
+
c_fromStoreId?: string;
|
|
622
|
+
}
|
|
623
|
+
export interface ShippingItem {
|
|
624
|
+
_type?: string;
|
|
625
|
+
adjusted_tax?: number;
|
|
626
|
+
base_price?: number;
|
|
627
|
+
item_id?: string;
|
|
628
|
+
item_text?: string;
|
|
629
|
+
price?: number;
|
|
630
|
+
price_after_item_discount?: number;
|
|
631
|
+
shipment_id?: string;
|
|
632
|
+
tax?: number;
|
|
633
|
+
tax_basis?: number;
|
|
634
|
+
tax_class_id?: string;
|
|
635
|
+
tax_rate?: number;
|
|
636
|
+
}
|
|
637
|
+
export interface AppliedDiscount {
|
|
638
|
+
_type?: string;
|
|
639
|
+
amount?: number;
|
|
640
|
+
percentage?: number;
|
|
641
|
+
type?: string;
|
|
642
|
+
}
|
|
643
|
+
export interface PriceAdjustment {
|
|
644
|
+
_type?: string;
|
|
645
|
+
applied_discount?: AppliedDiscount;
|
|
646
|
+
coupon_code?: string;
|
|
647
|
+
creation_date?: string;
|
|
648
|
+
custom?: boolean;
|
|
649
|
+
item_text?: string;
|
|
650
|
+
last_modified?: string;
|
|
651
|
+
manual?: boolean;
|
|
652
|
+
price?: number;
|
|
653
|
+
price_adjustment_id?: string;
|
|
654
|
+
promotion_id?: string;
|
|
655
|
+
promotion_link?: string;
|
|
656
|
+
}
|
|
657
|
+
export interface OrderDetails {
|
|
658
|
+
_v?: string;
|
|
659
|
+
_type?: string;
|
|
660
|
+
_resource_state?: string;
|
|
661
|
+
_flash?: pendingMethod[];
|
|
662
|
+
adjusted_merchandize_total_tax?: number;
|
|
663
|
+
adjusted_shipping_total_tax?: number;
|
|
664
|
+
agent_basket?: boolean;
|
|
665
|
+
basket_id?: string;
|
|
666
|
+
billing_address?: CustomerAddress;
|
|
667
|
+
channel_type?: string;
|
|
668
|
+
creation_date?: string;
|
|
669
|
+
currency?: string;
|
|
670
|
+
customer_info?: CustomerInfo;
|
|
671
|
+
grouped_tax_items?: GroupedTaxItem[];
|
|
672
|
+
last_modified?: string;
|
|
673
|
+
merchandize_total_tax?: number;
|
|
674
|
+
notes?: additionalNotes;
|
|
675
|
+
order_price_adjustments?: PriceAdjustment[];
|
|
676
|
+
order_no?: string;
|
|
677
|
+
order_total?: number;
|
|
678
|
+
product_items?: ProductItem[];
|
|
679
|
+
product_sub_total?: number;
|
|
680
|
+
product_total?: number;
|
|
681
|
+
shipments?: shipment[];
|
|
682
|
+
shipping_items?: ShippingItem[];
|
|
683
|
+
shipping_total?: number;
|
|
684
|
+
shipping_total_tax?: number;
|
|
685
|
+
taxation?: string;
|
|
686
|
+
tax_rounded_at_group?: boolean;
|
|
687
|
+
tax_total?: number;
|
|
688
|
+
c_isInStoreOrder?: boolean;
|
|
689
|
+
}
|
|
690
|
+
export declare enum PROVIDERS {
|
|
691
|
+
SALESFORCE = "Salesforce",
|
|
692
|
+
MAGENTO = "Magento",
|
|
693
|
+
MAGENTO2 = "Magento2"
|
|
694
|
+
}
|
|
695
|
+
export declare enum PROMOTION_LEVEL {
|
|
696
|
+
LINE = "LINE",
|
|
697
|
+
TRANSACTION = "TRANSACTION"
|
|
698
|
+
}
|
|
699
|
+
export declare enum PROMOTION_TYPE {
|
|
700
|
+
COUPON = "COUPON"
|
|
701
|
+
}
|
|
702
|
+
export {};
|
|
702
703
|
//# sourceMappingURL=mapper-library.model.d.ts.map
|