plac-micro-common 1.3.91 → 1.3.92

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.
@@ -77,3 +77,24 @@ export declare enum AppPaymentStatus {
77
77
  Cancelled = "cancelled",
78
78
  Voided = "voided"
79
79
  }
80
+ export declare enum PaymentMethod {
81
+ DirectDebit = "Direct Debit",
82
+ Cheque = "Cheque",
83
+ CreditCard = "Credit Card",
84
+ BankTransfer = "Bank Transfer",
85
+ Cash = "Cash",
86
+ Other = "Other"
87
+ }
88
+ export declare enum CreditCardType {
89
+ Visa = "Visa",
90
+ Master = "Master",
91
+ AmericanExpress = "American Express",
92
+ Other = "Other"
93
+ }
94
+ export declare enum PaymentMode {
95
+ Monthly = "Monthly",
96
+ Quarterly = "Quarterly",
97
+ SemiAnnually = "Semi-Annually",
98
+ Annually = "Annually",
99
+ Single = "Single"
100
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = exports.AppFormType = void 0;
3
+ exports.PaymentMode = exports.CreditCardType = exports.PaymentMethod = exports.AppPaymentStatus = exports.AppPaymentType = exports.AppDocumentType = exports.UwAnswerValueType = exports.AppCoverageType = exports.AppPhLaRelation = exports.AppPersonRole = exports.ApplicationActionType = exports.ApplicationStatus = exports.AppFormType = void 0;
4
4
  var AppFormType;
5
5
  (function (AppFormType) {
6
6
  AppFormType["Base"] = "base";
@@ -100,3 +100,27 @@ var AppPaymentStatus;
100
100
  AppPaymentStatus["Cancelled"] = "cancelled";
101
101
  AppPaymentStatus["Voided"] = "voided";
102
102
  })(AppPaymentStatus || (exports.AppPaymentStatus = AppPaymentStatus = {}));
103
+ var PaymentMethod;
104
+ (function (PaymentMethod) {
105
+ PaymentMethod["DirectDebit"] = "Direct Debit";
106
+ PaymentMethod["Cheque"] = "Cheque";
107
+ PaymentMethod["CreditCard"] = "Credit Card";
108
+ PaymentMethod["BankTransfer"] = "Bank Transfer";
109
+ PaymentMethod["Cash"] = "Cash";
110
+ PaymentMethod["Other"] = "Other";
111
+ })(PaymentMethod || (exports.PaymentMethod = PaymentMethod = {}));
112
+ var CreditCardType;
113
+ (function (CreditCardType) {
114
+ CreditCardType["Visa"] = "Visa";
115
+ CreditCardType["Master"] = "Master";
116
+ CreditCardType["AmericanExpress"] = "American Express";
117
+ CreditCardType["Other"] = "Other";
118
+ })(CreditCardType || (exports.CreditCardType = CreditCardType = {}));
119
+ var PaymentMode;
120
+ (function (PaymentMode) {
121
+ PaymentMode["Monthly"] = "Monthly";
122
+ PaymentMode["Quarterly"] = "Quarterly";
123
+ PaymentMode["SemiAnnually"] = "Semi-Annually";
124
+ PaymentMode["Annually"] = "Annually";
125
+ PaymentMode["Single"] = "Single";
126
+ })(PaymentMode || (exports.PaymentMode = PaymentMode = {}));
@@ -1,3 +1,4 @@
1
+ import { CreditCardType, PaymentMethod, PaymentMode } from "../application.type";
1
2
  export interface IBaseAppFormData {
2
3
  application_no: string;
3
4
  form_type: "PH = LA" | "PH != LA";
@@ -48,11 +49,11 @@ interface IPolicyInfo {
48
49
  products: IPolicyProductInfo[];
49
50
  rider: IPolicyProductInfo;
50
51
  total_premium: string;
51
- payment_mode: "Monthly" | "Quarterly" | "Semi-Annually" | "Annually" | "Single";
52
- payment_method: "Direct Debit" | "Cheque" | "Credit Card" | "Bank Transfer" | "Cash" | "Other";
52
+ payment_mode: PaymentMode;
53
+ payment_method: PaymentMethod;
53
54
  cheque_info: string;
54
55
  credit_card_info: string;
55
- credit_card_type: "Visa" | "Master" | "American Express" | "";
56
+ credit_card_type: CreditCardType;
56
57
  credit_card_expiry_date: string;
57
58
  other_payment_method_desc: string;
58
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.91",
3
+ "version": "1.3.92",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {