@captureid/datatypes 0.0.81 → 0.0.82
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/esm2022/lib/enums.mjs +30 -1
- package/esm2022/lib/model/erp/items/bon-object.mjs +64 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/captureid-datatypes.mjs +163 -73
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +17 -1
- package/lib/model/erp/items/bon-object.d.ts +68 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/enums.d.ts
CHANGED
|
@@ -65,7 +65,9 @@ export declare enum DataType {
|
|
|
65
65
|
USERACCESS = 63,
|
|
66
66
|
RESOURCE = 64,
|
|
67
67
|
MENU = 65,
|
|
68
|
-
COUPON = 66
|
|
68
|
+
COUPON = 66,
|
|
69
|
+
BON = 67,
|
|
70
|
+
ENDOFDAYBON = 68
|
|
69
71
|
}
|
|
70
72
|
export declare enum BookingType {
|
|
71
73
|
UNKNOWN = 0,
|
|
@@ -239,3 +241,17 @@ export declare namespace MessageType {
|
|
|
239
241
|
function valueOf(str: string): number;
|
|
240
242
|
function values(): any[];
|
|
241
243
|
}
|
|
244
|
+
export declare enum Status {
|
|
245
|
+
SUCCESS = 0,
|
|
246
|
+
ERROR = 1,
|
|
247
|
+
INACTIVE = 2,
|
|
248
|
+
DELETED = 3,
|
|
249
|
+
LOCKED = 4,
|
|
250
|
+
UNLOCKED = 5,
|
|
251
|
+
PENDING = 6,
|
|
252
|
+
UNKNOWN = 99
|
|
253
|
+
}
|
|
254
|
+
export declare namespace Status {
|
|
255
|
+
function valueOf(str: string): number;
|
|
256
|
+
function values(): any[];
|
|
257
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Status } from "../../../enums";
|
|
2
|
+
import { Cart } from "../../common/cart-object";
|
|
3
|
+
import { Client } from "../../common/client-object";
|
|
4
|
+
import { Company } from "../../common/company-object";
|
|
5
|
+
import { User } from "../../common/user-object";
|
|
6
|
+
import { DataObject } from "../../data-object";
|
|
7
|
+
export interface BonData {
|
|
8
|
+
id: string;
|
|
9
|
+
terminalid: string;
|
|
10
|
+
additionaltext: string;
|
|
11
|
+
errormessage: string;
|
|
12
|
+
amount: number;
|
|
13
|
+
cardtechnology: string;
|
|
14
|
+
cardname: string;
|
|
15
|
+
cardnumber: string;
|
|
16
|
+
cardsequencenumber: number;
|
|
17
|
+
cardholderauthentication: string;
|
|
18
|
+
printoutneeded: boolean;
|
|
19
|
+
tracenumber: number;
|
|
20
|
+
tracenumberlongformat: number;
|
|
21
|
+
vunumber: string;
|
|
22
|
+
aidauthorisationattribute: string;
|
|
23
|
+
receiptnumber: number;
|
|
24
|
+
currencycode: number;
|
|
25
|
+
dateday: number;
|
|
26
|
+
datemonth: number;
|
|
27
|
+
time: string;
|
|
28
|
+
}
|
|
29
|
+
export declare class BonData implements BonData {
|
|
30
|
+
constructor(id?: string, terminalid?: string, additionaltext?: string, errormessage?: string, amount?: number, cardtechnology?: string, cardname?: string, cardnumber?: string, cardsequencenumber?: number, cardholderauthentication?: string, printoutneeded?: boolean, tracenumber?: number, tracenumberlongformat?: number, vunumber?: string, aidauthorisationattribute?: string, receiptnumber?: number, currencycode?: number, dateday?: number, datemonth?: number, time?: string);
|
|
31
|
+
}
|
|
32
|
+
export interface Bon {
|
|
33
|
+
id: string;
|
|
34
|
+
created: Date;
|
|
35
|
+
user: User;
|
|
36
|
+
cart: Cart;
|
|
37
|
+
pdfdata: Blob;
|
|
38
|
+
bondata: BonData;
|
|
39
|
+
data: string;
|
|
40
|
+
status: Status;
|
|
41
|
+
}
|
|
42
|
+
export declare class Bon implements Bon {
|
|
43
|
+
constructor(id?: string, created?: Date, user?: User, cart?: Cart, pdfdata?: Blob, bondata?: BonData, data?: string, status?: Status);
|
|
44
|
+
}
|
|
45
|
+
export interface EndOfDayBon {
|
|
46
|
+
id: string;
|
|
47
|
+
created: Date;
|
|
48
|
+
company: Company;
|
|
49
|
+
client: Client;
|
|
50
|
+
pdfdata: Blob;
|
|
51
|
+
data: string;
|
|
52
|
+
status: Status;
|
|
53
|
+
}
|
|
54
|
+
export declare class EndOfDayBon implements EndOfDayBon {
|
|
55
|
+
constructor(id?: string, created?: Date, company?: Company, client?: Client, pdfdata?: Blob, data?: string, status?: Status);
|
|
56
|
+
}
|
|
57
|
+
export interface BonObject {
|
|
58
|
+
data: Bon[];
|
|
59
|
+
}
|
|
60
|
+
export declare class BonObject extends DataObject implements BonObject {
|
|
61
|
+
constructor(data: Bon[]);
|
|
62
|
+
}
|
|
63
|
+
export interface EndOfDayBonObject {
|
|
64
|
+
data: EndOfDayBon[];
|
|
65
|
+
}
|
|
66
|
+
export declare class EndOfDayBonObject extends DataObject implements EndOfDayBonObject {
|
|
67
|
+
constructor(data: EndOfDayBon[]);
|
|
68
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from './lib/model/erp/items/booking-object';
|
|
|
45
45
|
export * from './lib/model/erp/items/price-object';
|
|
46
46
|
export * from './lib/model/erp/items/item-short-list-object';
|
|
47
47
|
export * from './lib/model/erp/items/coupon-object';
|
|
48
|
+
export * from './lib/model/erp/items/bon-object';
|
|
48
49
|
export * from './lib/model/esl/esl-object';
|
|
49
50
|
export * from './lib/model/esl/esl-pool-object';
|
|
50
51
|
export * from './lib/model/esl/esl-association-object';
|