@captureid/datatypes 1.0.51 → 1.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.
package/lib/enums.d.ts CHANGED
@@ -397,3 +397,34 @@ export declare namespace CouponType {
397
397
  function valueOf(str: string): number;
398
398
  function values(): any[];
399
399
  }
400
+ export declare enum PaymentStatus {
401
+ STATUS_UNKNOWN = 0,
402
+ STATUS_MESSAGE = 1,
403
+ STATUS_DATA = 2
404
+ }
405
+ export declare namespace PaymentStatus {
406
+ function valueOf(str: string): number;
407
+ function values(): any[];
408
+ }
409
+ export declare enum PaymentCommand {
410
+ COMMAND_UNKNOWN = 0,
411
+ COMMAND_PAY = 1,
412
+ COMMAND_UPDATE_CART = 2,
413
+ COMMAND_PREPARE_PAYMENT = 3,
414
+ COMMAND_REPORT = 4,
415
+ COMMAND_REPRINT = 5,
416
+ COMMAND_STATUS = 6
417
+ }
418
+ export declare namespace PaymentCommand {
419
+ function valueOf(str: string): number;
420
+ function values(): any[];
421
+ }
422
+ export declare enum PaymentEventType {
423
+ EVENT_UNKNOWN = 0,
424
+ EVENT_PAYMENT = 1,
425
+ EVENT_HEARTBEAT = 10
426
+ }
427
+ export declare namespace PaymentEventType {
428
+ function valueOf(str: string): number;
429
+ function values(): any[];
430
+ }
@@ -0,0 +1,22 @@
1
+ import { DataType, PaymentCommand, PaymentEventType, PaymentStatus } from "../../enums";
2
+ export interface PaymentEvent {
3
+ eventtype: PaymentEventType;
4
+ status: PaymentStatus;
5
+ datatype: DataType;
6
+ payment: PamentDTO;
7
+ command: PaymentCommand;
8
+ message: string;
9
+ }
10
+ export declare class PaymentEvent implements PaymentEvent {
11
+ constructor();
12
+ }
13
+ export interface PamentDTO {
14
+ userid: string;
15
+ cartid: string;
16
+ buildingid: string;
17
+ terminalid: string;
18
+ price: number;
19
+ }
20
+ export declare class PamentDTO implements PamentDTO {
21
+ constructor(userid?: string, cartid?: string, buildingid?: string, terminalid?: string, price?: number);
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"
package/public-api.d.ts CHANGED
@@ -70,6 +70,7 @@ export * from './lib/model/esl/esl-pool-object';
70
70
  export * from './lib/model/esl/esl-association-object';
71
71
  export * from './lib/model/esl/esl-template-object';
72
72
  export * from './lib/model/esl/esl-update-object';
73
+ export * from './lib/model/event/payment-event';
73
74
  export * from './lib/model/labeldesigner/label-designer-object';
74
75
  export * from './lib/model/payment/payment-terminal-object';
75
76
  export * from './lib/model/payment/payment-detail-object';