@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.
Files changed (32) hide show
  1. package/README.md +24 -24
  2. package/bundles/pmcretail-mapper-library.umd.js +4379 -4373
  3. package/bundles/pmcretail-mapper-library.umd.js.map +1 -1
  4. package/esm2015/lib/RJ-mapper.class.js +877 -877
  5. package/esm2015/lib/TransactionDocumentBuilder.js +1244 -1244
  6. package/esm2015/lib/WebReturn-mapper.class.js +326 -326
  7. package/esm2015/lib/WebReturnMagento2RestV1.class.js +275 -269
  8. package/esm2015/lib/WebReturnSalesforceMapper.class.js +409 -409
  9. package/esm2015/lib/basket.service.js +527 -527
  10. package/esm2015/lib/mapper-library.component.js +26 -26
  11. package/esm2015/lib/mapper-library.model.js +41 -41
  12. package/esm2015/lib/mapper-library.module.js +21 -21
  13. package/esm2015/lib/number-util.service.js +42 -42
  14. package/esm2015/pmcretail-mapper-library.js +4 -4
  15. package/esm2015/public-api.js +10 -10
  16. package/fesm2015/pmcretail-mapper-library.js +3743 -3737
  17. package/fesm2015/pmcretail-mapper-library.js.map +1 -1
  18. package/lib/RJ-mapper.class.d.ts +80 -80
  19. package/lib/TransactionDocumentBuilder.d.ts +271 -271
  20. package/lib/WebReturn-mapper.class.d.ts +27 -27
  21. package/lib/WebReturnMagento2RestV1.class.d.ts +30 -30
  22. package/lib/WebReturnMagento2RestV1.class.d.ts.map +1 -1
  23. package/lib/WebReturnSalesforceMapper.class.d.ts +35 -35
  24. package/lib/basket.service.d.ts +105 -105
  25. package/lib/mapper-library.component.d.ts +8 -8
  26. package/lib/mapper-library.model.d.ts +702 -701
  27. package/lib/mapper-library.model.d.ts.map +1 -1
  28. package/lib/mapper-library.module.d.ts +7 -7
  29. package/lib/number-util.service.d.ts +13 -13
  30. package/package.json +2 -2
  31. package/pmcretail-mapper-library.d.ts +5 -5
  32. package/public-api.d.ts +6 -6
@@ -1,36 +1,36 @@
1
- import { CurrencyPipe } from "@angular/common";
2
- import { DELIVERY_METHODS, OrderDetails, TransactionDocument, TransactionPromotion, TProduct } from "./mapper-library.model";
3
- export declare class WebReturnSalesforceMapperBuilderClass {
4
- private currencyPipe?;
5
- className: string;
6
- private orderDetails;
7
- private webReturnObject;
8
- numberUtilService: any;
9
- constructor(orderDetails: OrderDetails, currencyPipe?: CurrencyPipe);
10
- webReturnCommonMapper(): this;
11
- getDeliveryMethod(): "" | DELIVERY_METHODS.DELIVERY | DELIVERY_METHODS.SHIP_TO_STORE;
12
- product(): this;
13
- linePromotion(): this;
14
- transactionPromotion(): this;
15
- getTransactionPromotions(basket: any): TransactionPromotion[];
16
- updateLinePromotionWithCoupon(): this;
17
- updateTransactionPromotionPrtionCalc(): this;
18
- transactionPromotionProductPortionCalc(txDoc: TransactionDocument, promotion: TransactionPromotion): TransactionDocument;
19
- validateProductItemDiscount(product: TProduct): TProduct;
20
- customer(): this;
21
- isInStoreOrder(): this;
22
- externalTransactionDetails(): this;
23
- basketSummary(): this;
24
- deviceId(deviceId: any): this;
25
- terminalId(terminalId: any): this;
26
- orgCode(orgCode: any): this;
27
- storeId(storeId: any): this;
28
- storeNodeId(storeNodeId: string): this;
29
- storeNodeStructure(storeNodeStructure: string): this;
30
- docId(docId: any): this;
31
- updateUserID(userID: string): this;
32
- updateUserName(name: any): this;
33
- build(): TransactionDocument;
34
- getUTCDateTime(date: any): string;
35
- }
1
+ import { CurrencyPipe } from "@angular/common";
2
+ import { DELIVERY_METHODS, OrderDetails, TransactionDocument, TransactionPromotion, TProduct } from "./mapper-library.model";
3
+ export declare class WebReturnSalesforceMapperBuilderClass {
4
+ private currencyPipe?;
5
+ className: string;
6
+ private orderDetails;
7
+ private webReturnObject;
8
+ numberUtilService: any;
9
+ constructor(orderDetails: OrderDetails, currencyPipe?: CurrencyPipe);
10
+ webReturnCommonMapper(): this;
11
+ getDeliveryMethod(): "" | DELIVERY_METHODS.DELIVERY | DELIVERY_METHODS.SHIP_TO_STORE;
12
+ product(): this;
13
+ linePromotion(): this;
14
+ transactionPromotion(): this;
15
+ getTransactionPromotions(basket: any): TransactionPromotion[];
16
+ updateLinePromotionWithCoupon(): this;
17
+ updateTransactionPromotionPrtionCalc(): this;
18
+ transactionPromotionProductPortionCalc(txDoc: TransactionDocument, promotion: TransactionPromotion): TransactionDocument;
19
+ validateProductItemDiscount(product: TProduct): TProduct;
20
+ customer(): this;
21
+ isInStoreOrder(): this;
22
+ externalTransactionDetails(): this;
23
+ basketSummary(): this;
24
+ deviceId(deviceId: any): this;
25
+ terminalId(terminalId: any): this;
26
+ orgCode(orgCode: any): this;
27
+ storeId(storeId: any): this;
28
+ storeNodeId(storeNodeId: string): this;
29
+ storeNodeStructure(storeNodeStructure: string): this;
30
+ docId(docId: any): this;
31
+ updateUserID(userID: string): this;
32
+ updateUserName(name: any): this;
33
+ build(): TransactionDocument;
34
+ getUTCDateTime(date: any): string;
35
+ }
36
36
  //# sourceMappingURL=WebReturnSalesforceMapper.class.d.ts.map
@@ -1,106 +1,106 @@
1
- import { Basket, Product, TransactionPromotion } from './mapper-library.model';
2
- import { TransactionDiscount } from './mapper-library.model';
3
- import { NumberUtilService } from './number-util.service';
4
- export declare class BasketService {
5
- private numberUtilService;
6
- currentBasket: Basket;
7
- private basketSource;
8
- basket: import("rxjs").Observable<any>;
9
- private productSource;
10
- product: import("rxjs").Observable<any>;
11
- private peerSource;
12
- peerSync: import("rxjs").Observable<boolean>;
13
- private scanSource;
14
- scanner: import("rxjs").Observable<boolean>;
15
- private _isMixedBasketSales;
16
- get isMixedBasketSales(): any;
17
- set isMixedBasketSales(v: any);
18
- className: string;
19
- constructor(numberUtilService: NumberUtilService);
20
- updateBasket(basket: Basket): void;
21
- /**
22
- * calculates the total basket value and quantity
23
- * @param null
24
- * @returns void
25
- */
26
- updateBasketTotal(basketDetails: {
27
- quantity: number;
28
- total: number;
29
- products: any;
30
- transactionId: any;
31
- basketTotal: any;
32
- }, basketState: {
33
- updateBasket: (arg0: any) => void;
34
- }): void;
35
- /**
36
- * add Line promotion
37
- * @param null
38
- * @returns basketDetails
39
- */
40
- addlinePromotion(promotionList: {
41
- result: {
42
- linePromotions: string | any[];
43
- };
44
- }, basketDetails: {
45
- products: any;
46
- }): {
47
- products: any;
48
- };
49
- /**
50
- * add Transaction promotion
51
- * @param null
52
- * @returns basketDetails
53
- */
54
- addTransactionPromotion(promotionList: {
55
- result: {
56
- transactionPromotion: any;
57
- };
58
- }, basketdetails: Basket): Basket;
59
- updateProductTotalForSummary(basketDetails: {
60
- total: string | number;
61
- quantity: string | number;
62
- products: any;
63
- }): any;
64
- updateBasketTotalForSummary(basketDetails: any): any;
65
- updateTransactionDiscount(basketDetails: {
66
- transactionDiscount: any[];
67
- basketTotal: number;
68
- }): {
69
- transactionDiscount: any[];
70
- basketTotal: number;
71
- };
72
- updateTransactionPromotion(basketDetails: {
73
- transactionPromotion: any[];
74
- basketTotal: number;
75
- }): {
76
- transactionPromotion: any[];
77
- basketTotal: number;
78
- };
79
- updateBasketTotalWithoutDiscount(basket: Basket): Basket;
80
- updateBasketTotalWithDiscounts(basket: any): Basket;
81
- transactionDiscountAndPromotionProductortionCalculation(basket: Basket): Basket;
82
- transactionPromotionProductPortionCalc(basket: any, promotion: any): any;
83
- transactionDiscountProductPortionCalc(basket: any, discount: any): any;
84
- validateProductItemDiscount(product: Product): Product;
85
- markProduct(product: Product): void;
86
- stopPeerSyncProcess(peerSync: boolean): void;
87
- scanStart(isScanning: boolean): void;
88
- promotionRemainingCalculation(promotion: TransactionPromotion[]): number;
89
- discountRemainingCalculation(discount: TransactionDiscount[]): number;
90
- discountRefundedCalculation(discount: TransactionDiscount[]): number;
91
- generateNewItemLineId(products: Product[]): any;
92
- updateBasketProductDataAsPerQuantity(product: any, quantity: number): Product;
93
- filterProductListWithWebOrder(isWebOrder: boolean): Product[];
94
- filterProductListWithDelivery(): Product[];
95
- filterProductListWithDeliveryGroup(group: string, products: Product[]): Product[];
96
- generateNewDeliveryGroupNumber(products: Product[]): string;
97
- getDeliveryGroupNumbers(products: Product[]): number[];
98
- updateProductsWithNewDeliveryGroupNumber(products: Product[]): void;
99
- calculateEstimatedTime(products: any[]): 0 | {
100
- value: string;
101
- type: string;
102
- };
103
- updateProductsWithDeliveryGroupNumber(oldGroup: string, newGroup: string): void;
104
- getDeliveryInfo(): any;
105
- }
1
+ import { Basket, Product, TransactionPromotion } from './mapper-library.model';
2
+ import { TransactionDiscount } from './mapper-library.model';
3
+ import { NumberUtilService } from './number-util.service';
4
+ export declare class BasketService {
5
+ private numberUtilService;
6
+ currentBasket: Basket;
7
+ private basketSource;
8
+ basket: import("rxjs").Observable<any>;
9
+ private productSource;
10
+ product: import("rxjs").Observable<any>;
11
+ private peerSource;
12
+ peerSync: import("rxjs").Observable<boolean>;
13
+ private scanSource;
14
+ scanner: import("rxjs").Observable<boolean>;
15
+ private _isMixedBasketSales;
16
+ get isMixedBasketSales(): any;
17
+ set isMixedBasketSales(v: any);
18
+ className: string;
19
+ constructor(numberUtilService: NumberUtilService);
20
+ updateBasket(basket: Basket): void;
21
+ /**
22
+ * calculates the total basket value and quantity
23
+ * @param null
24
+ * @returns void
25
+ */
26
+ updateBasketTotal(basketDetails: {
27
+ quantity: number;
28
+ total: number;
29
+ products: any;
30
+ transactionId: any;
31
+ basketTotal: any;
32
+ }, basketState: {
33
+ updateBasket: (arg0: any) => void;
34
+ }): void;
35
+ /**
36
+ * add Line promotion
37
+ * @param null
38
+ * @returns basketDetails
39
+ */
40
+ addlinePromotion(promotionList: {
41
+ result: {
42
+ linePromotions: string | any[];
43
+ };
44
+ }, basketDetails: {
45
+ products: any;
46
+ }): {
47
+ products: any;
48
+ };
49
+ /**
50
+ * add Transaction promotion
51
+ * @param null
52
+ * @returns basketDetails
53
+ */
54
+ addTransactionPromotion(promotionList: {
55
+ result: {
56
+ transactionPromotion: any;
57
+ };
58
+ }, basketdetails: Basket): Basket;
59
+ updateProductTotalForSummary(basketDetails: {
60
+ total: string | number;
61
+ quantity: string | number;
62
+ products: any;
63
+ }): any;
64
+ updateBasketTotalForSummary(basketDetails: any): any;
65
+ updateTransactionDiscount(basketDetails: {
66
+ transactionDiscount: any[];
67
+ basketTotal: number;
68
+ }): {
69
+ transactionDiscount: any[];
70
+ basketTotal: number;
71
+ };
72
+ updateTransactionPromotion(basketDetails: {
73
+ transactionPromotion: any[];
74
+ basketTotal: number;
75
+ }): {
76
+ transactionPromotion: any[];
77
+ basketTotal: number;
78
+ };
79
+ updateBasketTotalWithoutDiscount(basket: Basket): Basket;
80
+ updateBasketTotalWithDiscounts(basket: any): Basket;
81
+ transactionDiscountAndPromotionProductortionCalculation(basket: Basket): Basket;
82
+ transactionPromotionProductPortionCalc(basket: any, promotion: any): any;
83
+ transactionDiscountProductPortionCalc(basket: any, discount: any): any;
84
+ validateProductItemDiscount(product: Product): Product;
85
+ markProduct(product: Product): void;
86
+ stopPeerSyncProcess(peerSync: boolean): void;
87
+ scanStart(isScanning: boolean): void;
88
+ promotionRemainingCalculation(promotion: TransactionPromotion[]): number;
89
+ discountRemainingCalculation(discount: TransactionDiscount[]): number;
90
+ discountRefundedCalculation(discount: TransactionDiscount[]): number;
91
+ generateNewItemLineId(products: Product[]): any;
92
+ updateBasketProductDataAsPerQuantity(product: any, quantity: number): Product;
93
+ filterProductListWithWebOrder(isWebOrder: boolean): Product[];
94
+ filterProductListWithDelivery(): Product[];
95
+ filterProductListWithDeliveryGroup(group: string, products: Product[]): Product[];
96
+ generateNewDeliveryGroupNumber(products: Product[]): string;
97
+ getDeliveryGroupNumbers(products: Product[]): number[];
98
+ updateProductsWithNewDeliveryGroupNumber(products: Product[]): void;
99
+ calculateEstimatedTime(products: any[]): 0 | {
100
+ value: string;
101
+ type: string;
102
+ };
103
+ updateProductsWithDeliveryGroupNumber(oldGroup: string, newGroup: string): void;
104
+ getDeliveryInfo(): any;
105
+ }
106
106
  //# sourceMappingURL=basket.service.d.ts.map
@@ -1,9 +1,9 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class MapperLibraryComponent implements OnInit {
4
- constructor();
5
- ngOnInit(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<MapperLibraryComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<MapperLibraryComponent, "lib-mapper-library", never, {}, {}, never, never>;
8
- }
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MapperLibraryComponent implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapperLibraryComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapperLibraryComponent, "lib-mapper-library", never, {}, {}, never, never>;
8
+ }
9
9
  //# sourceMappingURL=mapper-library.component.d.ts.map