@stashfin/mysql2 1.4.245 → 1.4.247

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.
@@ -0,0 +1,17 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ interface PayeeTable {
3
+ id?: number;
4
+ name?: string;
5
+ acc_number?: string;
6
+ acc_provider?: string;
7
+ acc_type?: string;
8
+ ifsc?: string;
9
+ payee_type?: string;
10
+ code?: string;
11
+ is_active?: boolean;
12
+ created_at?: Date;
13
+ updated_at?: Date;
14
+ }
15
+ export interface PayeeModel extends PayeeTable, RowDataPacket {
16
+ }
17
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,38 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ declare enum TransactionType {
3
+ PAY = "pay",
4
+ MERCHANT = "merchant",
5
+ GLOBAL = "global",
6
+ SELF = "self",
7
+ M2P = "m2p",
8
+ COLLECT = "collect"
9
+ }
10
+ declare enum TransactionStatus {
11
+ SUCCESS = "success",
12
+ FAILED = "failed",
13
+ PENDING = "pending"
14
+ }
15
+ export interface UPITransactionTable {
16
+ id?: number;
17
+ external_txn_id: string;
18
+ customer_id: number;
19
+ mobile: string;
20
+ amount: number;
21
+ note?: string;
22
+ txn_type: TransactionType;
23
+ txn_status: TransactionStatus;
24
+ rrn?: string;
25
+ upi_reference_number?: string;
26
+ payee_id?: number;
27
+ payee_vpa?: string;
28
+ payer_id?: number;
29
+ payer_vpa?: string;
30
+ response_code?: string;
31
+ response_message?: string;
32
+ paid_at?: Date;
33
+ created_at?: Date;
34
+ updated_at?: Date;
35
+ }
36
+ export interface UPITransactionModel extends UPITransactionTable, RowDataPacket {
37
+ }
38
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var TransactionType;
4
+ (function (TransactionType) {
5
+ TransactionType["PAY"] = "pay";
6
+ TransactionType["MERCHANT"] = "merchant";
7
+ TransactionType["GLOBAL"] = "global";
8
+ TransactionType["SELF"] = "self";
9
+ TransactionType["M2P"] = "m2p";
10
+ TransactionType["COLLECT"] = "collect";
11
+ })(TransactionType || (TransactionType = {}));
12
+ var TransactionStatus;
13
+ (function (TransactionStatus) {
14
+ TransactionStatus["SUCCESS"] = "success";
15
+ TransactionStatus["FAILED"] = "failed";
16
+ TransactionStatus["PENDING"] = "pending";
17
+ })(TransactionStatus || (TransactionStatus = {}));
@@ -28,6 +28,8 @@ export interface StateCaptureTable {
28
28
  remarks: string | null;
29
29
  customer_flags: JSONValue | null;
30
30
  approved_by: string | null;
31
+ created_at?: Date | null;
32
+ updated_at?: Date | null;
31
33
  }
32
34
  export interface StateCaptureModel extends StateCaptureTable, RowDataPacket {
33
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.245",
3
+ "version": "1.4.247",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",