@captureid/datatypes 1.0.36 → 1.0.38
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 +16 -1
- package/esm2022/lib/model/common/store-object.mjs +23 -2
- package/esm2022/lib/model/payment/payment-detail-object.mjs +22 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/captureid-datatypes.mjs +184 -130
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +15 -1
- package/lib/model/common/store-object.d.ts +22 -1
- package/lib/model/payment/payment-detail-object.d.ts +25 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/enums.d.ts
CHANGED
|
@@ -93,7 +93,8 @@ export declare enum DataType {
|
|
|
93
93
|
STORE = 91,
|
|
94
94
|
CALENDAR = 92,
|
|
95
95
|
TENANT = 93,
|
|
96
|
-
PAYMENTTERMINALSHORT = 94
|
|
96
|
+
PAYMENTTERMINALSHORT = 94,
|
|
97
|
+
STOREINFORMATION = 95
|
|
97
98
|
}
|
|
98
99
|
export declare enum BookingType {
|
|
99
100
|
UNKNOWN = 0,
|
|
@@ -172,6 +173,19 @@ export declare enum WebTemplateType {
|
|
|
172
173
|
WELCOMEPAGE = 1,
|
|
173
174
|
CONFIRMPAGE = 2
|
|
174
175
|
}
|
|
176
|
+
export declare enum PaymentState {
|
|
177
|
+
UNKNOWN = 0,
|
|
178
|
+
PENDING = 1,
|
|
179
|
+
COMPLETED = 2,
|
|
180
|
+
FAILED = 3,
|
|
181
|
+
REFUNDED = 4,
|
|
182
|
+
CANCELLED = 5,
|
|
183
|
+
PARTIAL_REFUND = 6,
|
|
184
|
+
PARTIAL_PAYMENT = 7,
|
|
185
|
+
AUTHORIZED = 8,
|
|
186
|
+
DECLINED = 9,
|
|
187
|
+
PROCESSING = 10
|
|
188
|
+
}
|
|
175
189
|
export declare enum PinState {
|
|
176
190
|
UNKNOWN = 0,
|
|
177
191
|
LOW = 1,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DataObject } from "../data-object";
|
|
2
2
|
import { PaymentTerminal } from "../payment/payment-terminal-object";
|
|
3
|
+
import { Address } from "./address-object";
|
|
4
|
+
import { Image } from "./image-object";
|
|
3
5
|
import { Room } from "./location-object";
|
|
4
6
|
export interface Store {
|
|
5
7
|
id: string;
|
|
@@ -9,9 +11,10 @@ export interface Store {
|
|
|
9
11
|
companyid: string;
|
|
10
12
|
rooms: Room[];
|
|
11
13
|
terminals: PaymentTerminal[];
|
|
14
|
+
images: Image[];
|
|
12
15
|
}
|
|
13
16
|
export declare class Store implements Store {
|
|
14
|
-
constructor(id?: string, name?: string, description?: string, ownerid?: string, companyid?: string, rooms?: Room[], terminals?: PaymentTerminal[]);
|
|
17
|
+
constructor(id?: string, name?: string, description?: string, ownerid?: string, companyid?: string, rooms?: Room[], terminals?: PaymentTerminal[], images?: Image[]);
|
|
15
18
|
}
|
|
16
19
|
export interface StoreObject {
|
|
17
20
|
data: Store[];
|
|
@@ -20,3 +23,21 @@ export declare class StoreObject extends DataObject implements StoreObject {
|
|
|
20
23
|
constructor(data: Store[]);
|
|
21
24
|
getEntryCount(): number;
|
|
22
25
|
}
|
|
26
|
+
export interface StoreInformation {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
url: string;
|
|
31
|
+
address: Address;
|
|
32
|
+
stockid: string[];
|
|
33
|
+
}
|
|
34
|
+
export declare class StoreInformation implements StoreInformation {
|
|
35
|
+
constructor(id?: string, name?: string, description?: string, url?: string, address?: Address, stockid?: string[]);
|
|
36
|
+
}
|
|
37
|
+
export interface StoreInformationObject {
|
|
38
|
+
data: StoreInformation[];
|
|
39
|
+
}
|
|
40
|
+
export declare class StoreInformationObject extends DataObject implements StoreInformationObject {
|
|
41
|
+
constructor(data: StoreInformation[]);
|
|
42
|
+
getEntryCount(): number;
|
|
43
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PaymentState } from "../../enums";
|
|
2
|
+
import { DataObject } from "../data-object";
|
|
3
|
+
export interface Payment {
|
|
4
|
+
id: string;
|
|
5
|
+
cartid: string;
|
|
6
|
+
created: Date;
|
|
7
|
+
state: PaymentState;
|
|
8
|
+
}
|
|
9
|
+
export declare class Payment implements Payment {
|
|
10
|
+
constructor(id?: string, cartid?: string, created?: Date, state?: PaymentState);
|
|
11
|
+
}
|
|
12
|
+
export interface PaymentObject {
|
|
13
|
+
data: Payment[];
|
|
14
|
+
}
|
|
15
|
+
export declare class PaymentObject extends DataObject implements PaymentObject {
|
|
16
|
+
constructor(data: Payment[]);
|
|
17
|
+
getEntryCount(): number;
|
|
18
|
+
}
|
|
19
|
+
export interface PaymentDetail {
|
|
20
|
+
id: string;
|
|
21
|
+
orderno: string;
|
|
22
|
+
amount: number;
|
|
23
|
+
currency: string;
|
|
24
|
+
created: Date;
|
|
25
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export * from './lib/model/esl/esl-association-object';
|
|
|
69
69
|
export * from './lib/model/esl/esl-template-object';
|
|
70
70
|
export * from './lib/model/esl/esl-update-object';
|
|
71
71
|
export * from './lib/model/payment/payment-terminal-object';
|
|
72
|
+
export * from './lib/model/payment/payment-detail-object';
|
|
72
73
|
export * from './lib/model/print/label-object';
|
|
73
74
|
export * from './lib/model/print/print-label-object';
|
|
74
75
|
export * from './lib/model/print/printer-object';
|