@stashfin/mysql2 1.4.87 → 1.4.89

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.
@@ -8,9 +8,8 @@ export type JSONArray = Array<JSONValue>;
8
8
  export interface BBPSProvidersTable {
9
9
  id: number;
10
10
  name: string;
11
- alias: string;
12
11
  logo: string;
13
- state: string;
12
+ coverage: string;
14
13
  customer_params: JSONValue;
15
14
  utilityid: number;
16
15
  vendorid: number;
@@ -0,0 +1,21 @@
1
+ import { RowDataPacket } from 'mysql2';
2
+ export type JSONPrimitive = string | number | boolean | null;
3
+ export type JSONValue = JSONObject | JSONArray;
4
+ export type JSONObject = {
5
+ [member: string]: JSONPrimitive;
6
+ };
7
+ export type JSONArray = Array<JSONValue>;
8
+ export interface BannerTable {
9
+ id: number;
10
+ name: string;
11
+ image_url: string;
12
+ web_url?: string | null;
13
+ landing_page?: string | null;
14
+ api_mode?: string | null;
15
+ app_version: number;
16
+ status: string;
17
+ created_at: Date;
18
+ updated_at: Date;
19
+ }
20
+ export interface BannerModel extends BannerTable, RowDataPacket {
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -146,7 +146,6 @@ export interface CustomerDocumentsTable {
146
146
  aadhaar_url?: string | null;
147
147
  address_proof_url?: string | null;
148
148
  selfiee_url?: string | null;
149
- account_analytics_url?: string | null;
150
149
  created_at?: Date | null;
151
150
  updated_at?: Date | null;
152
151
  }
@@ -208,14 +207,14 @@ export interface AaTransactionsTable {
208
207
  amount?: number | null;
209
208
  balance?: number | null;
210
209
  category?: string | null;
211
- category_code?: string | null;
210
+ categoryCode?: string | null;
212
211
  customer_id?: number | null;
213
- merchant_name?: string | null;
212
+ merchantName?: string | null;
214
213
  narration?: string | null;
215
214
  payment_mode?: string | null;
216
215
  reference?: string | null;
217
- sub_category?: string | null;
218
- txn_date?: string | null;
216
+ subcategory?: string | null;
217
+ txn_date?: Date | null;
219
218
  txn_id?: string | null;
220
219
  type?: string | null;
221
220
  created_at?: Date | null;
@@ -0,0 +1,14 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ interface ClientPaymentModes {
3
+ modes: string[];
4
+ gateway_id: string;
5
+ }
6
+ export interface PaymentClientsModel {
7
+ client_id: string;
8
+ client_iss: string;
9
+ client_secret: string;
10
+ client_payment_modes: ClientPaymentModes[];
11
+ }
12
+ export interface PaymentClientsTable extends PaymentClientsModel, RowDataPacket {
13
+ }
14
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export interface PaymentGatewayModel {
3
+ gateway_id: string;
4
+ gateway_name: string;
5
+ gateway_access_key_id: string;
6
+ gateway_secret: string;
7
+ currency: string;
8
+ callback_url: string;
9
+ create_order_url: string;
10
+ initiate_payment_url: string;
11
+ process_refund_url: string;
12
+ check_transaction_status_url: string;
13
+ }
14
+ export interface PaymentGatewayTable extends PaymentGatewayModel, RowDataPacket {
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export interface PaymentsModel {
3
+ customer_id: number;
4
+ customer_info: JSON;
5
+ mobile: string;
6
+ external_order_id?: string;
7
+ gateway_id: string;
8
+ fees?: JSON;
9
+ gateway_data?: JSON;
10
+ amount: number;
11
+ mode: string;
12
+ status: string;
13
+ client_id: string;
14
+ notes?: JSON;
15
+ created_date: Date;
16
+ updated_date: Date;
17
+ }
18
+ export interface PaymentsTable extends PaymentsModel, RowDataPacket {
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export interface PaymentAddOnsTable {
3
+ customer_id: number;
4
+ linked_payment_order_id: string;
5
+ plan_id?: string;
6
+ type: string;
7
+ amount: number;
8
+ meta_data: JSON;
9
+ }
10
+ export interface PaymentAddOnsModel extends PaymentAddOnsTable, RowDataPacket {
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,40 @@
1
+ import { RowDataPacket } from "mysql2";
2
+ export interface NachRegistrationTable {
3
+ id: number;
4
+ gateway: string;
5
+ customer_id: bigint;
6
+ transaction_id?: string;
7
+ status?: string;
8
+ max_amount?: number;
9
+ mandate_start_date?: Date;
10
+ mandate_end_date?: Date;
11
+ umrn?: string;
12
+ gateway_ref_no?: string;
13
+ created_date: Date;
14
+ updated_date: Date;
15
+ mandate_type?: string;
16
+ gateway_error_code?: string;
17
+ gateway_error_msg?: string;
18
+ customer_info?: JSON;
19
+ }
20
+ export interface NachPresentationTable {
21
+ id: bigint;
22
+ gateway: string;
23
+ customer_id: bigint;
24
+ transaction_id?: string;
25
+ umrn?: string;
26
+ status: string;
27
+ amount?: number;
28
+ collection_date?: Date;
29
+ presentation_date: Date;
30
+ created_date: Date;
31
+ updated_date?: Date;
32
+ mandate_type?: string;
33
+ gateway_error_code?: string;
34
+ gateway_error_msg?: string;
35
+ is_presented_to_gateway?: boolean;
36
+ }
37
+ export interface NachPresentationModel extends NachPresentationTable, RowDataPacket {
38
+ }
39
+ export interface NachRegistrationModel extends NachRegistrationTable, RowDataPacket {
40
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/mysql2",
3
- "version": "1.4.87",
3
+ "version": "1.4.89",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",