addio-admin-sdk 1.6.74 → 1.6.75-canary-2
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/Interfaces/Cart/index.d.ts +6 -2
- package/dist/Interfaces/Cart/index.js +6 -1
- package/dist/Interfaces/Cart/index.js.map +1 -1
- package/dist/Interfaces/G2/index.d.ts +315 -38
- package/dist/Interfaces/G2/index.js +12 -12
- package/dist/Interfaces/G2/index.js.map +1 -1
- package/dist/Interfaces/Space/index.d.ts +7 -0
- package/dist/lib/Cart/index.js +1 -1
- package/dist/lib/Cart/index.js.map +1 -1
- package/dist/rules/GR/interfaces/cart.d.ts +4 -1
- package/dist/rules/GR/interfaces/cart.js +2 -0
- package/dist/rules/GR/interfaces/cart.js.map +1 -1
- package/dist/rules/GR/utils/cart.d.ts +16 -4
- package/dist/rules/GR/utils/cart.js +84 -4
- package/dist/rules/GR/utils/cart.js.map +1 -1
- package/dist/rules/GR/utils/g2.d.ts +11 -1
- package/dist/rules/GR/utils/g2.js +105 -62
- package/dist/rules/GR/utils/g2.js.map +1 -1
- package/dist/rules/GR/utils/upsells.d.ts +1 -1
- package/dist/rules/GR/utils/upsells.js +3 -3
- package/dist/rules/GR/utils/upsells.js.map +1 -1
- package/dist/services/g2/G2OrderSlip.d.ts +5 -3
- package/dist/services/g2/G2OrderSlip.js +54 -12
- package/dist/services/g2/G2OrderSlip.js.map +1 -1
- package/dist/services/g2/utils.d.ts +1 -1
- package/dist/services/g2/utils.js +176 -147
- package/dist/services/g2/utils.js.map +1 -1
- package/dist/utils/cart.d.ts +24 -11
- package/dist/utils/cart.js +131 -3
- package/dist/utils/cart.js.map +1 -1
- package/dist/utils/data.d.ts +1 -1
- package/dist/utils/data.js +3 -3
- package/dist/utils/data.js.map +1 -1
- package/dist/utils/inventories.d.ts +2 -0
- package/dist/utils/inventories.js +7 -1
- package/dist/utils/inventories.js.map +1 -1
- package/dist/utils/zones.d.ts +3 -2
- package/dist/utils/zones.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ import IMarketplaceOrderData from '../MarketplacePublication/MarketplaceOrderDat
|
|
|
16
16
|
import IPayment from '../Payment';
|
|
17
17
|
import IBaseClass from '../BaseClass';
|
|
18
18
|
import { IBank } from '../PromiseToPurchase';
|
|
19
|
-
import { IG2OrderExternalValues } from '../G2';
|
|
19
|
+
import { IG2OrderExternalValues, IG2ProductExternalValues } from '../G2';
|
|
20
20
|
export declare enum PaymentTypeEnum {
|
|
21
21
|
CREDIT = "credit",
|
|
22
22
|
DEBIT = "debit",
|
|
@@ -323,7 +323,7 @@ export interface IIndexedDeclination {
|
|
|
323
323
|
readonly is_service?: boolean;
|
|
324
324
|
readonly is_other_type?: string;
|
|
325
325
|
readonly hide_inventory?: boolean;
|
|
326
|
-
readonly external_values?:
|
|
326
|
+
readonly external_values?: IG2ProductExternalValues;
|
|
327
327
|
readonly promise_to_purchase_association_ids?: string[];
|
|
328
328
|
}
|
|
329
329
|
export interface IProductUpsell extends IIndexedDeclination {
|
|
@@ -399,6 +399,10 @@ export interface ICartPaymentPayloadOptions {
|
|
|
399
399
|
};
|
|
400
400
|
multi_payment_methods?: IPayment[];
|
|
401
401
|
}
|
|
402
|
+
export declare enum CustomPromoType {
|
|
403
|
+
UNIT_PRICE = "unit_price",
|
|
404
|
+
EXTRA_PROMO = "extra_promo"
|
|
405
|
+
}
|
|
402
406
|
export declare const getPromoCodeError: (errCode: string, locale?: string) => string;
|
|
403
407
|
export declare const getDefaultCart: (cartType?: CartTypeEnum) => ICart;
|
|
404
408
|
export declare const getDefaultCartItem: () => ICartItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDefaultCartItem = exports.getDefaultCart = exports.getPromoCodeError = exports.ActionDoneOnCartEnum = exports.UpdateTypeEnum = exports.CartStatusEnum = exports.CartTypeEnum = exports.CartCustomerEnum = exports.CartContentTypeEnum = exports.CartErrorEnum = exports.CartPromoAppliesToEnum = exports.CustomPaymentTypeEnum = exports.PaymentTypeEnum = void 0;
|
|
3
|
+
exports.getDefaultCartItem = exports.getDefaultCart = exports.getPromoCodeError = exports.CustomPromoType = exports.ActionDoneOnCartEnum = exports.UpdateTypeEnum = exports.CartStatusEnum = exports.CartTypeEnum = exports.CartCustomerEnum = exports.CartContentTypeEnum = exports.CartErrorEnum = exports.CartPromoAppliesToEnum = exports.CustomPaymentTypeEnum = exports.PaymentTypeEnum = void 0;
|
|
4
4
|
var Declination_1 = require("../Declination");
|
|
5
5
|
var locale_1 = require("../../utils/locale");
|
|
6
6
|
var errors_1 = require("../../utils/errors");
|
|
@@ -92,6 +92,11 @@ var ActionDoneOnCartEnum;
|
|
|
92
92
|
ActionDoneOnCartEnum[ActionDoneOnCartEnum["MODIFIED_DISCOUNT_PRICE"] = 3] = "MODIFIED_DISCOUNT_PRICE";
|
|
93
93
|
ActionDoneOnCartEnum[ActionDoneOnCartEnum["OUT_OF_STOCK_OR_NOT_FOUND"] = 4] = "OUT_OF_STOCK_OR_NOT_FOUND";
|
|
94
94
|
})(ActionDoneOnCartEnum = exports.ActionDoneOnCartEnum || (exports.ActionDoneOnCartEnum = {}));
|
|
95
|
+
var CustomPromoType;
|
|
96
|
+
(function (CustomPromoType) {
|
|
97
|
+
CustomPromoType["UNIT_PRICE"] = "unit_price";
|
|
98
|
+
CustomPromoType["EXTRA_PROMO"] = "extra_promo";
|
|
99
|
+
})(CustomPromoType = exports.CustomPromoType || (exports.CustomPromoType = {}));
|
|
95
100
|
var getPromoCodeError = function (errCode, locale) {
|
|
96
101
|
if (locale === void 0) { locale = 'fr'; }
|
|
97
102
|
var message = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/Cart/index.ts"],"names":[],"mappings":";;;AAGA,8CAA+G;AAe/G,6CAAmD;AACnD,6CAAkD;AA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AU,EAAE,EAAE;QACd,aAAa,EAAE;YACd,sBAAsB,EAAE,EAAE;SAC1B;QACD,cAAc,EAAE,EAAE;QAClB,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,CAAC;QACX,QAAQ,EAAE,CAAC;QACX,gBAAgB,EAAE,EAAE;QACpB,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,CAAC;QACR,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,cAAc,CAAC,KAAK;QAC5B,KAAK,EAAE,EAAE;QACT,iBAAiB,EAAE,EAAE;QACrB,MAAM,EAAE,IAAI;KACZ,CAAA;AACF,CAAC,CAAA;AAxBY,QAAA,cAAc,kBAwB1B;AAEM,IAAM,kBAAkB,GAAG;IACjC,OAAO;QACN,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;QACf,GAAG,EAAE,CAAC;QACN,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,aAAa,EAAE;YACd,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,CAAC;SACT;QACD,aAAa,EAAE,EAAE;QACjB,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,IAAA,oCAAsB,GAAE;QACvC,aAAa,EAAE;YACd,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;SACpB;QACD,iBAAiB,EAAE;YAClB,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;SACpB;QACD,0BAA0B,EAAE,KAAK;KAKjC,CAAA;AACF,CAAC,CAAA;AA/BY,QAAA,kBAAkB,sBA+B9B"}
|
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
export interface IG2ProductExternalValues {
|
|
2
|
+
catégorie1?: string;
|
|
3
|
+
catégorie2?: string;
|
|
4
|
+
noArticle?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IG2OrderExternalValues {
|
|
7
|
+
noCommande?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ICustomPriceItem {
|
|
10
|
+
readonly sku: string;
|
|
11
|
+
readonly parent_slug: string;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly price: number;
|
|
14
|
+
readonly reg: number;
|
|
15
|
+
readonly PA_price?: number;
|
|
16
|
+
readonly type: CustomPriceItemTypeEnum;
|
|
17
|
+
readonly percent?: number;
|
|
18
|
+
readonly PA_percent?: number;
|
|
19
|
+
readonly code1?: string;
|
|
20
|
+
readonly code2?: string;
|
|
21
|
+
readonly PA_code?: string;
|
|
22
|
+
readonly prod_type?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare enum CustomPriceItemTypeEnum {
|
|
25
|
+
REG = "regular",
|
|
26
|
+
NORMAL_ESCOMPTE = "normal_escompte",
|
|
27
|
+
ENTENTE = "entente",
|
|
28
|
+
ESCOMPTE = "escompte"
|
|
29
|
+
}
|
|
30
|
+
export declare enum EscomptesDeclinationSkusEnum {
|
|
31
|
+
ESCVRAC = "ESCVRAC",
|
|
32
|
+
ESCOAKS = "ESCOAKS",
|
|
33
|
+
ESCRICHER = "ESCRICHER",
|
|
34
|
+
ESCBOLDUC = "ESCBOLDUC",
|
|
35
|
+
ESCRINOX = "ESCRINOX",
|
|
36
|
+
ESCINSTALL = "ESCINSTALL",
|
|
37
|
+
ESCACC = "ESCACC"
|
|
38
|
+
}
|
|
1
39
|
export interface IG2Customer {
|
|
2
40
|
readonly client: {
|
|
3
41
|
readonly noClient: string;
|
|
@@ -87,10 +125,10 @@ export interface IG2Customer {
|
|
|
87
125
|
readonly limiteDeCrédit: number | null;
|
|
88
126
|
readonly fraisLivraisonMontantFixe: number | null;
|
|
89
127
|
readonly fraisLivraisonMinimum: number | null;
|
|
90
|
-
readonly dateOuverture:
|
|
91
|
-
readonly dateDernièreMAJ:
|
|
92
|
-
readonly créditDateCréation:
|
|
93
|
-
readonly créditDateMAJ:
|
|
128
|
+
readonly dateOuverture: string | null;
|
|
129
|
+
readonly dateDernièreMAJ: string | null;
|
|
130
|
+
readonly créditDateCréation: string | null;
|
|
131
|
+
readonly créditDateMAJ: string | null;
|
|
94
132
|
readonly exemptTPS: boolean;
|
|
95
133
|
readonly exemptTVQ: boolean;
|
|
96
134
|
readonly actif: boolean;
|
|
@@ -153,6 +191,141 @@ export interface IG2Customer {
|
|
|
153
191
|
};
|
|
154
192
|
readonly soumissions: IG2CustomerSoumission[];
|
|
155
193
|
}
|
|
194
|
+
export interface IG2Product {
|
|
195
|
+
noArticle: string | null;
|
|
196
|
+
article: {
|
|
197
|
+
noArticle: string | null;
|
|
198
|
+
alias1: string | null;
|
|
199
|
+
alias2: string | null;
|
|
200
|
+
description: string | null;
|
|
201
|
+
description2: string | null;
|
|
202
|
+
catégorie1: string | null;
|
|
203
|
+
catégorie2: string | null;
|
|
204
|
+
manufacturier: string | null;
|
|
205
|
+
noArticleManufacturier: string | null;
|
|
206
|
+
siteWEBManufacturier: string | null;
|
|
207
|
+
codeUPC: string | null;
|
|
208
|
+
unitéDeMesure: string | null;
|
|
209
|
+
codeGLCoûtVentes: string | null;
|
|
210
|
+
sousCodeGLCoûtVentes1: string | null;
|
|
211
|
+
sousCodeGLCoûtVentes2: string | null;
|
|
212
|
+
codeGLVentes: string | null;
|
|
213
|
+
sousCodeGLVentes1: string | null;
|
|
214
|
+
sousCodeGLVentes2: string | null;
|
|
215
|
+
codeGLStocks: string | null;
|
|
216
|
+
sousCodeGLStocks1: string | null;
|
|
217
|
+
sousCodeGLStocks2: string | null;
|
|
218
|
+
codeGLAchatsDépenses: string | null;
|
|
219
|
+
sousCodeGLAchatsDépenses1: string | null;
|
|
220
|
+
sousCodeGLAchatsDépenses2: string | null;
|
|
221
|
+
codeGLStocksImputés: string | null;
|
|
222
|
+
sousCodeGLStocksImputés1: string | null;
|
|
223
|
+
sousCodeGLStocksImputés2: string | null;
|
|
224
|
+
codeGLAjustementStocks: string | null;
|
|
225
|
+
sousCodeGLAjustementStocks1: string | null;
|
|
226
|
+
sousCodeGLAjustementStocks2: string | null;
|
|
227
|
+
notes: string | null;
|
|
228
|
+
messageInactif: string | null;
|
|
229
|
+
noClassementDouanes: string | null;
|
|
230
|
+
groupePriseInventaire: string | null;
|
|
231
|
+
libre1: string | null;
|
|
232
|
+
libre2: string | null;
|
|
233
|
+
libre3: string | null;
|
|
234
|
+
libre4: string | null;
|
|
235
|
+
libre5: string | null;
|
|
236
|
+
groupeGrandeur: string | null;
|
|
237
|
+
codeTissu: string | null;
|
|
238
|
+
saison: string | null;
|
|
239
|
+
noFournisseur: string | null;
|
|
240
|
+
délaiRéapprovision: number | null;
|
|
241
|
+
typePosting: number | null;
|
|
242
|
+
typeMargeCoûtFixe: number | null;
|
|
243
|
+
typeCréationUPC: number | null;
|
|
244
|
+
fractionnerLotsRéception: number | null;
|
|
245
|
+
entrerCoûtVenteNonStocks: number | null;
|
|
246
|
+
poids: number | null;
|
|
247
|
+
volume: number | null;
|
|
248
|
+
surface: number | null;
|
|
249
|
+
qtéMinimale: number | null;
|
|
250
|
+
qtéSeuilRéapprovision: number | null;
|
|
251
|
+
qtéÉconomique: number | null;
|
|
252
|
+
coûtStandard: number | null;
|
|
253
|
+
margeCoûtFixe: number | null;
|
|
254
|
+
pourcCommission: number | null;
|
|
255
|
+
libreNum1: number | null;
|
|
256
|
+
libreNum2: number | null;
|
|
257
|
+
libreNum3: number | null;
|
|
258
|
+
libreNum4: number | null;
|
|
259
|
+
libreNum5: number | null;
|
|
260
|
+
commerceÉlectronique: boolean;
|
|
261
|
+
taxableTPS: boolean;
|
|
262
|
+
taxableTVQ: boolean;
|
|
263
|
+
stocker: boolean;
|
|
264
|
+
actif: boolean;
|
|
265
|
+
usageAchats: boolean;
|
|
266
|
+
usageVentes: boolean;
|
|
267
|
+
emballage: boolean;
|
|
268
|
+
utiliseCG: boolean;
|
|
269
|
+
saisieNoSérie: boolean;
|
|
270
|
+
dsp: boolean;
|
|
271
|
+
utiliseUPC: boolean;
|
|
272
|
+
};
|
|
273
|
+
image: {
|
|
274
|
+
noArticle: string | null;
|
|
275
|
+
sousCodeArticle1: string | null;
|
|
276
|
+
sousCodeArticle2: string | null;
|
|
277
|
+
imageRéf: string | null;
|
|
278
|
+
image1: string | null;
|
|
279
|
+
image2: string | null;
|
|
280
|
+
image3: string | null;
|
|
281
|
+
image4: string | null;
|
|
282
|
+
image5: string | null;
|
|
283
|
+
};
|
|
284
|
+
classification: {
|
|
285
|
+
noArticle: string | null;
|
|
286
|
+
notesPriseCommandeAchat: string | null;
|
|
287
|
+
notesPriseCommandeVente: string | null;
|
|
288
|
+
crééPar: string | null;
|
|
289
|
+
majPar: string | null;
|
|
290
|
+
noEtat: string | null;
|
|
291
|
+
imageRéfPDVO: string | null;
|
|
292
|
+
fichierATelecharger: string | null;
|
|
293
|
+
fichierATelecharger2: string | null;
|
|
294
|
+
idGroupeMajorationDéfaut: number | null;
|
|
295
|
+
dateCréation: string | null;
|
|
296
|
+
dateMAJ: string | null;
|
|
297
|
+
autorisationRequise: boolean;
|
|
298
|
+
msgQtéStocksPDVO: boolean;
|
|
299
|
+
prixJournalier: boolean;
|
|
300
|
+
};
|
|
301
|
+
messages: {
|
|
302
|
+
noArticle: string | null;
|
|
303
|
+
codeMessage: string | null;
|
|
304
|
+
}[] | null;
|
|
305
|
+
mLs: {
|
|
306
|
+
noArticle: string | null;
|
|
307
|
+
codeLangue: number;
|
|
308
|
+
description: string | null;
|
|
309
|
+
notes: string | null;
|
|
310
|
+
ficheTechnique: string | null;
|
|
311
|
+
fichierATelecharger: string | null;
|
|
312
|
+
fichierATelechargerDescription: string | null;
|
|
313
|
+
}[] | null;
|
|
314
|
+
prix: {
|
|
315
|
+
noArticle: string;
|
|
316
|
+
classePrix: number;
|
|
317
|
+
majPar: string;
|
|
318
|
+
prix: number;
|
|
319
|
+
dateDernièreMAJ: string;
|
|
320
|
+
}[];
|
|
321
|
+
prixQuantites: {
|
|
322
|
+
id: number;
|
|
323
|
+
noArticle: string | null;
|
|
324
|
+
classePrix: number | null;
|
|
325
|
+
quantité: number;
|
|
326
|
+
prix: number;
|
|
327
|
+
}[];
|
|
328
|
+
}
|
|
156
329
|
export interface IG2CustomerSoumission {
|
|
157
330
|
readonly noSoumission: string | null;
|
|
158
331
|
readonly soumission: {
|
|
@@ -254,41 +427,145 @@ export declare enum G2EscompteClientTypeEnum {
|
|
|
254
427
|
GROUPECLIENT_CAT1_ARTICLE = 7,
|
|
255
428
|
GROUPECLIENT_CAT2_ARTICLE = 8
|
|
256
429
|
}
|
|
257
|
-
export interface
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
readonly reg: number;
|
|
263
|
-
readonly PA_price?: number;
|
|
264
|
-
readonly type: CustomPriceItemTypeEnum;
|
|
265
|
-
readonly percent?: number;
|
|
266
|
-
readonly PA_percent?: number;
|
|
267
|
-
readonly code1?: string;
|
|
268
|
-
readonly code2?: string;
|
|
269
|
-
readonly PA_code?: string;
|
|
270
|
-
readonly prod_type?: string;
|
|
430
|
+
export interface IG2Representant {
|
|
431
|
+
noRepresentant: string | null;
|
|
432
|
+
nom: string | null;
|
|
433
|
+
courriel: string | null;
|
|
434
|
+
pourcCommission: number | null;
|
|
271
435
|
}
|
|
272
|
-
export
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
436
|
+
export interface IG2ProvinceTaxation {
|
|
437
|
+
provinceTaxation: {
|
|
438
|
+
noProvince: string | null;
|
|
439
|
+
description: string | null;
|
|
440
|
+
codeGLTPS: string | null;
|
|
441
|
+
sousCodeGLTPS1: string | null;
|
|
442
|
+
sousCodeGLTPS2: string | null;
|
|
443
|
+
codeGLTVP: string | null;
|
|
444
|
+
sousCodeGLTVP1: string | null;
|
|
445
|
+
sousCodeGLTVP2: string | null;
|
|
446
|
+
tpsDescription: string | null;
|
|
447
|
+
tpsDescription2: string | null;
|
|
448
|
+
tvpDescription: string | null;
|
|
449
|
+
tvpDescription2: string | null;
|
|
450
|
+
tauxTPS: number | null;
|
|
451
|
+
tauxTVP: number | null;
|
|
452
|
+
pourcentageDépense: number | null;
|
|
453
|
+
calculerTVPsurTPS: boolean;
|
|
454
|
+
};
|
|
286
455
|
}
|
|
287
|
-
export interface
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
456
|
+
export interface IG2Order {
|
|
457
|
+
noClient: string;
|
|
458
|
+
noProvinceTaxation: string;
|
|
459
|
+
condition: string;
|
|
460
|
+
noRepresentant: string;
|
|
461
|
+
noDivision?: string | null;
|
|
462
|
+
vendua?: string | null;
|
|
463
|
+
noMagasin?: string | null;
|
|
464
|
+
livreaNom?: string | null;
|
|
465
|
+
livreaDepartement?: string | null;
|
|
466
|
+
livreaAdresse?: string | null;
|
|
467
|
+
livreaVille?: string | null;
|
|
468
|
+
livreaProvince?: string | null;
|
|
469
|
+
livreaPays?: string | null;
|
|
470
|
+
livreaCodePostal?: string | null;
|
|
471
|
+
livreaTelephone?: string | null;
|
|
472
|
+
commandePar?: string | null;
|
|
473
|
+
noCommDuClient?: string | null;
|
|
474
|
+
transport?: string | null;
|
|
475
|
+
noEntreprise?: string | null;
|
|
476
|
+
noTVQ?: string | null;
|
|
477
|
+
deviseEtrangere?: string | null;
|
|
478
|
+
codeGLComptesClients?: string | null;
|
|
479
|
+
sousCodeGLComptesClients1?: string | null;
|
|
480
|
+
sousCodeGLComptesClients2?: string | null;
|
|
481
|
+
notes?: string | null;
|
|
482
|
+
description?: string | null;
|
|
483
|
+
noEntrepot?: string | null;
|
|
484
|
+
noProjet?: string | null;
|
|
485
|
+
noProjetSousCode1?: string | null;
|
|
486
|
+
noProjetSousCode2?: string | null;
|
|
487
|
+
libre1?: string | null;
|
|
488
|
+
libre2?: string | null;
|
|
489
|
+
libre3?: string | null;
|
|
490
|
+
noPropositionDePrix?: string | null;
|
|
491
|
+
creePar?: string | null;
|
|
492
|
+
approuveePar?: string | null;
|
|
493
|
+
noFactureAssocie?: string | null;
|
|
494
|
+
joursEcheance?: number | null;
|
|
495
|
+
joursReglementAnticipe?: number | null;
|
|
496
|
+
langue?: number | null;
|
|
497
|
+
commandeSuspendue?: number | null;
|
|
498
|
+
pourcEscReglementAnticipe?: number | null;
|
|
499
|
+
libreNum1?: number | null;
|
|
500
|
+
libreNum2?: number | null;
|
|
501
|
+
libreNum3?: number | null;
|
|
502
|
+
fraisLivraisons?: number | null;
|
|
503
|
+
date?: Date | null;
|
|
504
|
+
dateRequis?: Date | null;
|
|
505
|
+
dateCréation?: Date | null;
|
|
506
|
+
dateMiseAjour?: Date | null;
|
|
507
|
+
dateAnnulation?: Date | null;
|
|
508
|
+
dateApprobation?: Date | null;
|
|
509
|
+
noteDeCredit?: boolean | null;
|
|
510
|
+
exemptTPS?: boolean | null;
|
|
511
|
+
exemptTVQ?: boolean | null;
|
|
512
|
+
calculerTVPsurTPS?: boolean | null;
|
|
513
|
+
echeanceDeFinMois?: boolean | null;
|
|
514
|
+
reglementAnticipeDeFinMois?: boolean | null;
|
|
515
|
+
calculeEscompteAvantTaxes?: boolean | null;
|
|
516
|
+
fraisLivraisonsTaxableTPS?: boolean | null;
|
|
517
|
+
fraisLivraisonsTaxableTVQ?: boolean | null;
|
|
518
|
+
imprime?: boolean | null;
|
|
519
|
+
commandeLivree?: boolean | null;
|
|
520
|
+
masquerPrixDetaillesFacture?: boolean | null;
|
|
521
|
+
details: IG2OrderItem[];
|
|
291
522
|
}
|
|
292
|
-
export interface
|
|
293
|
-
|
|
523
|
+
export interface IG2OrderItem {
|
|
524
|
+
noArticle: string;
|
|
525
|
+
ordreDeTri: number;
|
|
526
|
+
groupeArticleEquivalent: number;
|
|
527
|
+
description?: string | null;
|
|
528
|
+
message?: string | null;
|
|
529
|
+
noProjet?: string | null;
|
|
530
|
+
noProjetSousCode1?: string | null;
|
|
531
|
+
noProjetSousCode2?: string | null;
|
|
532
|
+
libre1?: string | null;
|
|
533
|
+
libre2?: string | null;
|
|
534
|
+
libre3?: string | null;
|
|
535
|
+
sku?: string | null;
|
|
536
|
+
noBonProduction?: string | null;
|
|
537
|
+
noRequisition?: string | null;
|
|
538
|
+
codeAnnulationBO?: string | null;
|
|
539
|
+
noCommis?: string | null;
|
|
540
|
+
codeGLCoutdeVentes?: string | null;
|
|
541
|
+
sousCodeGLCoutdeVentes1?: string | null;
|
|
542
|
+
sousCodeGLCoutdeVentes2?: string | null;
|
|
543
|
+
noFournisseurCoutdeVentes?: string | null;
|
|
544
|
+
notesCoutdeVentes?: string | null;
|
|
545
|
+
codeGLAchatsDepenses?: string | null;
|
|
546
|
+
sousCodeGLAchatsDepenses1?: string | null;
|
|
547
|
+
sousCodeGLAchatsDepenses2?: string | null;
|
|
548
|
+
referenceArticleEquivalent?: number | null;
|
|
549
|
+
noReferencePDVO?: number | null;
|
|
550
|
+
noReferenceNoSequencePDVO?: number | null;
|
|
551
|
+
quantite?: number | null;
|
|
552
|
+
prixUnitaire?: number | null;
|
|
553
|
+
pourcCommission?: number | null;
|
|
554
|
+
pourcEscompte?: number | null;
|
|
555
|
+
poidsUnitaire?: number | null;
|
|
556
|
+
libreNum1?: number | null;
|
|
557
|
+
libreNum2?: number | null;
|
|
558
|
+
libreNum3?: number | null;
|
|
559
|
+
prixDetailSuggere?: number | null;
|
|
560
|
+
prixMinimum?: number | null;
|
|
561
|
+
montantCommission?: number | null;
|
|
562
|
+
coutdeVenteUnitaire?: number | null;
|
|
563
|
+
dateAnnulationBO?: Date | null;
|
|
564
|
+
taxableTPS?: boolean | null;
|
|
565
|
+
taxableTVQ?: boolean | null;
|
|
566
|
+
boAnnule?: boolean | null;
|
|
567
|
+
prixModifieUtilisateur?: boolean | null;
|
|
568
|
+
escompteModifieUtilisateur?: boolean | null;
|
|
569
|
+
articleKit?: boolean | null;
|
|
570
|
+
dsp?: boolean | null;
|
|
294
571
|
}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var G2EscompteClientTypeEnum;
|
|
5
|
-
(function (G2EscompteClientTypeEnum) {
|
|
6
|
-
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT"] = 1] = "CLIENT";
|
|
7
|
-
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_ARTICLE"] = 2] = "CLIENT_ARTICLE";
|
|
8
|
-
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_CAT1_ARTICLE"] = 3] = "CLIENT_CAT1_ARTICLE";
|
|
9
|
-
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_CAT2_ARTICLE"] = 4] = "CLIENT_CAT2_ARTICLE";
|
|
10
|
-
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT"] = 5] = "GROUPECLIENT";
|
|
11
|
-
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_ARTICLE"] = 6] = "GROUPECLIENT_ARTICLE";
|
|
12
|
-
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_CAT1_ARTICLE"] = 7] = "GROUPECLIENT_CAT1_ARTICLE";
|
|
13
|
-
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_CAT2_ARTICLE"] = 8] = "GROUPECLIENT_CAT2_ARTICLE";
|
|
14
|
-
})(G2EscompteClientTypeEnum = exports.G2EscompteClientTypeEnum || (exports.G2EscompteClientTypeEnum = {}));
|
|
3
|
+
exports.G2EscompteClientTypeEnum = exports.EscomptesDeclinationSkusEnum = exports.CustomPriceItemTypeEnum = void 0;
|
|
15
4
|
var CustomPriceItemTypeEnum;
|
|
16
5
|
(function (CustomPriceItemTypeEnum) {
|
|
17
6
|
CustomPriceItemTypeEnum["REG"] = "regular";
|
|
@@ -29,4 +18,15 @@ var EscomptesDeclinationSkusEnum;
|
|
|
29
18
|
EscomptesDeclinationSkusEnum["ESCINSTALL"] = "ESCINSTALL";
|
|
30
19
|
EscomptesDeclinationSkusEnum["ESCACC"] = "ESCACC";
|
|
31
20
|
})(EscomptesDeclinationSkusEnum = exports.EscomptesDeclinationSkusEnum || (exports.EscomptesDeclinationSkusEnum = {}));
|
|
21
|
+
var G2EscompteClientTypeEnum;
|
|
22
|
+
(function (G2EscompteClientTypeEnum) {
|
|
23
|
+
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT"] = 1] = "CLIENT";
|
|
24
|
+
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_ARTICLE"] = 2] = "CLIENT_ARTICLE";
|
|
25
|
+
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_CAT1_ARTICLE"] = 3] = "CLIENT_CAT1_ARTICLE";
|
|
26
|
+
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["CLIENT_CAT2_ARTICLE"] = 4] = "CLIENT_CAT2_ARTICLE";
|
|
27
|
+
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT"] = 5] = "GROUPECLIENT";
|
|
28
|
+
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_ARTICLE"] = 6] = "GROUPECLIENT_ARTICLE";
|
|
29
|
+
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_CAT1_ARTICLE"] = 7] = "GROUPECLIENT_CAT1_ARTICLE";
|
|
30
|
+
G2EscompteClientTypeEnum[G2EscompteClientTypeEnum["GROUPECLIENT_CAT2_ARTICLE"] = 8] = "GROUPECLIENT_CAT2_ARTICLE";
|
|
31
|
+
})(G2EscompteClientTypeEnum = exports.G2EscompteClientTypeEnum || (exports.G2EscompteClientTypeEnum = {}));
|
|
32
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/G2/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Interfaces/G2/index.ts"],"names":[],"mappings":";;;AA8BA,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAClC,0CAAe,CAAA;IACf,8DAAmC,CAAA;IACnC,8CAAmB,CAAA;IACnB,gDAAqB,CAAA;AACtB,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC;AAED,IAAY,4BAQX;AARD,WAAY,4BAA4B;IACvC,mDAAmB,CAAA;IACnB,mDAAmB,CAAA;IACnB,uDAAuB,CAAA;IACvB,uDAAuB,CAAA;IACvB,qDAAqB,CAAA;IACrB,yDAAyB,CAAA;IACzB,iDAAiB,CAAA;AAClB,CAAC,EARW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAQvC;AA8YD,IAAY,wBASX;AATD,WAAY,wBAAwB;IACnC,2EAAU,CAAA;IACV,2FAAc,CAAA;IACd,qGAAmB,CAAA;IACnB,qGAAmB,CAAA;IACnB,uFAAY,CAAA;IACZ,uGAAoB,CAAA;IACpB,iHAAyB,CAAA;IACzB,iHAAyB,CAAA;AAC1B,CAAC,EATW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QASnC"}
|
package/dist/lib/Cart/index.js
CHANGED
|
@@ -2231,7 +2231,7 @@ var Cart = (function (_super) {
|
|
|
2231
2231
|
var itemToCheck = _this._data.items.filter(function (item) { return !!aPromo && !!skuArray_1.includes(item.sku); });
|
|
2232
2232
|
for (var _d = 0, itemToCheck_1 = itemToCheck; _d < itemToCheck_1.length; _d++) {
|
|
2233
2233
|
var anItem = itemToCheck_1[_d];
|
|
2234
|
-
var newAmountToRemove = (0, data_1.getPromoTotalAmount)(_this._data, aPromo, 'number', anItem.sku);
|
|
2234
|
+
var newAmountToRemove = (0, data_1.getPromoTotalAmount)(_this._data.items, aPromo, 'number', anItem.sku);
|
|
2235
2235
|
if (typeof newAmountToRemove !== 'number')
|
|
2236
2236
|
continue;
|
|
2237
2237
|
if (!!anItem && !!anItem.is_service)
|