@pmcretail/mapper-library 0.0.14 → 0.0.16
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/bundles/pmcretail-mapper-library.umd.js +652 -110
- package/bundles/pmcretail-mapper-library.umd.js.map +1 -1
- package/bundles/pmcretail-mapper-library.umd.min.js +1 -1
- package/bundles/pmcretail-mapper-library.umd.min.js.map +1 -1
- package/esm2015/lib/RJ-mapper.class.js +334 -110
- package/esm2015/lib/WebReturn-mapper.class.js +236 -0
- package/esm2015/pmcretail-mapper-library.js +2 -2
- package/esm2015/public-api.js +2 -1
- package/esm5/lib/RJ-mapper.class.js +348 -111
- package/esm5/lib/WebReturn-mapper.class.js +305 -0
- package/esm5/pmcretail-mapper-library.js +2 -2
- package/esm5/public-api.js +2 -1
- package/fesm2015/pmcretail-mapper-library.js +570 -110
- package/fesm2015/pmcretail-mapper-library.js.map +1 -1
- package/fesm5/pmcretail-mapper-library.js +652 -111
- package/fesm5/pmcretail-mapper-library.js.map +1 -1
- package/lib/RJ-mapper.class.d.ts +3 -0
- package/lib/WebReturn-mapper.class.d.ts +19 -0
- package/package.json +1 -1
- package/pmcretail-mapper-library.metadata.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/RJ-mapper.class.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare class RJMapperBuilderClass {
|
|
|
32
32
|
getModifierItem(data: any, lineNo: any): void;
|
|
33
33
|
getTrailerInfo(): this;
|
|
34
34
|
getTenderInfo(): this;
|
|
35
|
+
getNumber(productId: any): any;
|
|
35
36
|
setLineNumberForProducts(): void;
|
|
36
37
|
generateLineNumber(): number;
|
|
37
38
|
initilizeItemCount(): void;
|
|
@@ -62,12 +63,14 @@ export declare class RJMapperBuilderClass {
|
|
|
62
63
|
getState(): "Completed" | "Cancelled";
|
|
63
64
|
returnProduct(element: any, lineDiscount: LineDiscount, transactionDiscount: TransactionDiscount): any;
|
|
64
65
|
addProduct(element: TProduct, lineDiscount: LineDiscount, transactionDiscount: TransactionDiscount): any;
|
|
66
|
+
getSaving(price: any, promotionAmount: any): any;
|
|
65
67
|
getLineNumber(value: any, discountAmount: string): any;
|
|
66
68
|
getDiscountedValue(price: any, discountAmount: any): number;
|
|
67
69
|
getOriginalTax(element: TProduct, VAT: any): number;
|
|
68
70
|
convertToString(value: any): any;
|
|
69
71
|
generateDynamicStockLookUp(): string;
|
|
70
72
|
getAttributes(): any;
|
|
73
|
+
getCaregories(element: any): string;
|
|
71
74
|
getDate(date: string): string;
|
|
72
75
|
getTransactionPromotion(transactionPromotion: any): void;
|
|
73
76
|
getQuantity(element: any): any;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TransactionDocument } from "./mapper-library.model";
|
|
2
|
+
export declare class WebReturnMapperBuilderClass {
|
|
3
|
+
private document;
|
|
4
|
+
private webReturnObject;
|
|
5
|
+
constructor(document: any);
|
|
6
|
+
WebReturnMapper(): this;
|
|
7
|
+
deviceId(deviceId: any): this;
|
|
8
|
+
terminalId(terminalId: any): this;
|
|
9
|
+
orgCode(orgCode: any): this;
|
|
10
|
+
storeId(storeId: any): this;
|
|
11
|
+
storeNodeId(storeNodeId: string): this;
|
|
12
|
+
storeNodeStructure(storeNodeStructure: string): this;
|
|
13
|
+
docId(docId: any): this;
|
|
14
|
+
updateUserID(userID: string): this;
|
|
15
|
+
updateUserName(name: any): this;
|
|
16
|
+
build(): TransactionDocument;
|
|
17
|
+
getText(obj: any): any;
|
|
18
|
+
getUTCDateTime(date: any): string;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"MapperLibraryComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-mapper-library","template":"\n <p>\n mapper-library works!\n </p>\n ","styles":[]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"MapperLibraryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"MapperLibraryComponent"}],"imports":[],"exports":[{"__symbolic":"reference","name":"MapperLibraryComponent"}]}]}],"members":{}},"RJMapperBuilderClass":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"getPosbasketInfo":[{"__symbolic":"method"}],"getheaderInfo":[{"__symbolic":"method"}],"rjMapper":[{"__symbolic":"method"}],"getBasketDiscount":[{"__symbolic":"method"}],"getModifierItem":[{"__symbolic":"method"}],"getTrailerInfo":[{"__symbolic":"method"}],"getTenderInfo":[{"__symbolic":"method"}],"setLineNumberForProducts":[{"__symbolic":"method"}],"generateLineNumber":[{"__symbolic":"method"}],"initilizeItemCount":[{"__symbolic":"method"}],"build":[{"__symbolic":"method"}],"getDescription":[{"__symbolic":"method"}],"setDeviceInfo":[{"__symbolic":"method"}],"removeDecimal":[{"__symbolic":"method"}],"setTransactionNumber":[{"__symbolic":"method"}],"setManifestVersion":[{"__symbolic":"method"}],"setDatabaseSchemaVersion":[{"__symbolic":"method"}],"setBasketType":[{"__symbolic":"method"}],"setTradingRegionID":[{"__symbolic":"method"}],"setCompanyID":[{"__symbolic":"method"}],"setTaxMethodID":[{"__symbolic":"method"}],"setMajorVersion":[{"__symbolic":"method"}],"setMinorVersion":[{"__symbolic":"method"}],"setXMLSchemaVersion":[{"__symbolic":"method"}],"setExternalState":[{"__symbolic":"method"}],"setCashierID":[{"__symbolic":"method"}],"setTerminalNumber":[{"__symbolic":"method"}],"setBasketLanguageID":[{"__symbolic":"method"}],"setBasketCountryID":[{"__symbolic":"method"}],"setBasketCurrencyID":[{"__symbolic":"method"}],"setBranchID":[{"__symbolic":"method"}],"generateId":[{"__symbolic":"method"}],"generateTimezoneoffset":[{"__symbolic":"method"}],"generateKeyword":[{"__symbolic":"method"}],"getState":[{"__symbolic":"method"}],"returnProduct":[{"__symbolic":"method"}],"addProduct":[{"__symbolic":"method"}],"getLineNumber":[{"__symbolic":"method"}],"getDiscountedValue":[{"__symbolic":"method"}],"getOriginalTax":[{"__symbolic":"method"}],"convertToString":[{"__symbolic":"method"}],"generateDynamicStockLookUp":[{"__symbolic":"method"}],"getAttributes":[{"__symbolic":"method"}],"getDate":[{"__symbolic":"method"}],"getTransactionPromotion":[{"__symbolic":"method"}],"getQuantity":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"interface"}},"origins":{"MapperLibraryComponent":"./lib/mapper-library.component","MapperLibraryModule":"./lib/mapper-library.module","RJMapperBuilderClass":"./lib/RJ-mapper.class","ɵa":"./lib/mapper-library.model"},"importAs":"@pmcretail/mapper-library"}
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"MapperLibraryComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-mapper-library","template":"\n <p>\n mapper-library works!\n </p>\n ","styles":[]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"MapperLibraryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"MapperLibraryComponent"}],"imports":[],"exports":[{"__symbolic":"reference","name":"MapperLibraryComponent"}]}]}],"members":{}},"RJMapperBuilderClass":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"getPosbasketInfo":[{"__symbolic":"method"}],"getheaderInfo":[{"__symbolic":"method"}],"rjMapper":[{"__symbolic":"method"}],"getBasketDiscount":[{"__symbolic":"method"}],"getModifierItem":[{"__symbolic":"method"}],"getTrailerInfo":[{"__symbolic":"method"}],"getTenderInfo":[{"__symbolic":"method"}],"getNumber":[{"__symbolic":"method"}],"setLineNumberForProducts":[{"__symbolic":"method"}],"generateLineNumber":[{"__symbolic":"method"}],"initilizeItemCount":[{"__symbolic":"method"}],"build":[{"__symbolic":"method"}],"getDescription":[{"__symbolic":"method"}],"setDeviceInfo":[{"__symbolic":"method"}],"removeDecimal":[{"__symbolic":"method"}],"setTransactionNumber":[{"__symbolic":"method"}],"setManifestVersion":[{"__symbolic":"method"}],"setDatabaseSchemaVersion":[{"__symbolic":"method"}],"setBasketType":[{"__symbolic":"method"}],"setTradingRegionID":[{"__symbolic":"method"}],"setCompanyID":[{"__symbolic":"method"}],"setTaxMethodID":[{"__symbolic":"method"}],"setMajorVersion":[{"__symbolic":"method"}],"setMinorVersion":[{"__symbolic":"method"}],"setXMLSchemaVersion":[{"__symbolic":"method"}],"setExternalState":[{"__symbolic":"method"}],"setCashierID":[{"__symbolic":"method"}],"setTerminalNumber":[{"__symbolic":"method"}],"setBasketLanguageID":[{"__symbolic":"method"}],"setBasketCountryID":[{"__symbolic":"method"}],"setBasketCurrencyID":[{"__symbolic":"method"}],"setBranchID":[{"__symbolic":"method"}],"generateId":[{"__symbolic":"method"}],"generateTimezoneoffset":[{"__symbolic":"method"}],"generateKeyword":[{"__symbolic":"method"}],"getState":[{"__symbolic":"method"}],"returnProduct":[{"__symbolic":"method"}],"addProduct":[{"__symbolic":"method"}],"getSaving":[{"__symbolic":"method"}],"getLineNumber":[{"__symbolic":"method"}],"getDiscountedValue":[{"__symbolic":"method"}],"getOriginalTax":[{"__symbolic":"method"}],"convertToString":[{"__symbolic":"method"}],"generateDynamicStockLookUp":[{"__symbolic":"method"}],"getAttributes":[{"__symbolic":"method"}],"getCaregories":[{"__symbolic":"method"}],"getDate":[{"__symbolic":"method"}],"getTransactionPromotion":[{"__symbolic":"method"}],"getQuantity":[{"__symbolic":"method"}]}},"WebReturnMapperBuilderClass":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[null]}],"WebReturnMapper":[{"__symbolic":"method"}],"deviceId":[{"__symbolic":"method"}],"terminalId":[{"__symbolic":"method"}],"orgCode":[{"__symbolic":"method"}],"storeId":[{"__symbolic":"method"}],"storeNodeId":[{"__symbolic":"method"}],"storeNodeStructure":[{"__symbolic":"method"}],"docId":[{"__symbolic":"method"}],"updateUserID":[{"__symbolic":"method"}],"updateUserName":[{"__symbolic":"method"}],"build":[{"__symbolic":"method"}],"getText":[{"__symbolic":"method"}],"getUTCDateTime":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"interface"}},"origins":{"MapperLibraryComponent":"./lib/mapper-library.component","MapperLibraryModule":"./lib/mapper-library.module","RJMapperBuilderClass":"./lib/RJ-mapper.class","WebReturnMapperBuilderClass":"./lib/WebReturn-mapper.class","ɵa":"./lib/mapper-library.model"},"importAs":"@pmcretail/mapper-library"}
|
package/public-api.d.ts
CHANGED