@captureid/datatypes 1.0.37 → 1.0.39
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 +15 -1
- package/esm2022/lib/model/common/store-object.mjs +6 -3
- package/esm2022/lib/model/payment/payment-detail-object.mjs +22 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/captureid-datatypes.mjs +168 -132
- package/fesm2022/captureid-datatypes.mjs.map +1 -1
- package/lib/enums.d.ts +13 -0
- package/lib/model/common/store-object.d.ts +6 -2
- 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
|
@@ -173,6 +173,19 @@ export declare enum WebTemplateType {
|
|
|
173
173
|
WELCOMEPAGE = 1,
|
|
174
174
|
CONFIRMPAGE = 2
|
|
175
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
|
+
}
|
|
176
189
|
export declare enum PinState {
|
|
177
190
|
UNKNOWN = 0,
|
|
178
191
|
LOW = 1,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataObject } from "../data-object";
|
|
2
2
|
import { PaymentTerminal } from "../payment/payment-terminal-object";
|
|
3
3
|
import { Address } from "./address-object";
|
|
4
|
+
import { Image } from "./image-object";
|
|
4
5
|
import { Room } from "./location-object";
|
|
5
6
|
export interface Store {
|
|
6
7
|
id: string;
|
|
@@ -10,9 +11,10 @@ export interface Store {
|
|
|
10
11
|
companyid: string;
|
|
11
12
|
rooms: Room[];
|
|
12
13
|
terminals: PaymentTerminal[];
|
|
14
|
+
images: Image[];
|
|
13
15
|
}
|
|
14
16
|
export declare class Store implements Store {
|
|
15
|
-
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[]);
|
|
16
18
|
}
|
|
17
19
|
export interface StoreObject {
|
|
18
20
|
data: Store[];
|
|
@@ -24,11 +26,13 @@ export declare class StoreObject extends DataObject implements StoreObject {
|
|
|
24
26
|
export interface StoreInformation {
|
|
25
27
|
id: string;
|
|
26
28
|
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
url: string;
|
|
27
31
|
address: Address;
|
|
28
32
|
stockid: string[];
|
|
29
33
|
}
|
|
30
34
|
export declare class StoreInformation implements StoreInformation {
|
|
31
|
-
constructor(id?: string, name?: string, address?: Address, stockid?: string[]);
|
|
35
|
+
constructor(id?: string, name?: string, description?: string, url?: string, address?: Address, stockid?: string[]);
|
|
32
36
|
}
|
|
33
37
|
export interface StoreInformationObject {
|
|
34
38
|
data: StoreInformation[];
|
|
@@ -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';
|