@stashfin/grpc 1.2.458 → 1.2.459

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.458",
3
+ "version": "1.2.459",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -92,17 +92,29 @@ export interface getCustomerByIdResponse {
92
92
  max_loc_limit?: number | undefined;
93
93
  enach_amount: number;
94
94
  new_sanctioned_limit: number;
95
- banner_sequence: BannerSequenceMessage | undefined;
95
+ banner_sequence: {
96
+ [key: string]: string;
97
+ };
96
98
  banner_journey_status: {
97
99
  [key: string]: string;
98
100
  };
99
- banner_lead_status: BannerSequenceMessage | undefined;
101
+ banner_lead_status: {
102
+ [key: string]: string;
103
+ };
100
104
  created_at: string;
101
105
  }
106
+ export interface getCustomerByIdResponse_BannerSequenceEntry {
107
+ key: string;
108
+ value: string;
109
+ }
102
110
  export interface getCustomerByIdResponse_BannerJourneyStatusEntry {
103
111
  key: string;
104
112
  value: string;
105
113
  }
114
+ export interface getCustomerByIdResponse_BannerLeadStatusEntry {
115
+ key: string;
116
+ value: string;
117
+ }
106
118
  export interface Address {
107
119
  house_flat_no?: string | undefined;
108
120
  address_line_1?: string | undefined;
@@ -117,9 +129,7 @@ export interface BankDetails {
117
129
  bank_name?: string | undefined;
118
130
  account_number?: string | undefined;
119
131
  ifsc_code?: string | undefined;
120
- }
121
- export interface BannerSequenceMessage {
122
- lamf?: string | undefined;
132
+ holder_name?: string | undefined;
123
133
  }
124
134
  export declare const getCustomerByIdRequest: {
125
135
  encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
@@ -137,6 +147,14 @@ export declare const getCustomerByIdResponse: {
137
147
  create<I extends Exact<DeepPartial<getCustomerByIdResponse>, I>>(base?: I): getCustomerByIdResponse;
138
148
  fromPartial<I extends Exact<DeepPartial<getCustomerByIdResponse>, I>>(object: I): getCustomerByIdResponse;
139
149
  };
150
+ export declare const getCustomerByIdResponse_BannerSequenceEntry: {
151
+ encode(message: getCustomerByIdResponse_BannerSequenceEntry, writer?: _m0.Writer): _m0.Writer;
152
+ decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByIdResponse_BannerSequenceEntry;
153
+ fromJSON(object: any): getCustomerByIdResponse_BannerSequenceEntry;
154
+ toJSON(message: getCustomerByIdResponse_BannerSequenceEntry): unknown;
155
+ create<I extends Exact<DeepPartial<getCustomerByIdResponse_BannerSequenceEntry>, I>>(base?: I): getCustomerByIdResponse_BannerSequenceEntry;
156
+ fromPartial<I extends Exact<DeepPartial<getCustomerByIdResponse_BannerSequenceEntry>, I>>(object: I): getCustomerByIdResponse_BannerSequenceEntry;
157
+ };
140
158
  export declare const getCustomerByIdResponse_BannerJourneyStatusEntry: {
141
159
  encode(message: getCustomerByIdResponse_BannerJourneyStatusEntry, writer?: _m0.Writer): _m0.Writer;
142
160
  decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByIdResponse_BannerJourneyStatusEntry;
@@ -145,6 +163,14 @@ export declare const getCustomerByIdResponse_BannerJourneyStatusEntry: {
145
163
  create<I extends Exact<DeepPartial<getCustomerByIdResponse_BannerJourneyStatusEntry>, I>>(base?: I): getCustomerByIdResponse_BannerJourneyStatusEntry;
146
164
  fromPartial<I extends Exact<DeepPartial<getCustomerByIdResponse_BannerJourneyStatusEntry>, I>>(object: I): getCustomerByIdResponse_BannerJourneyStatusEntry;
147
165
  };
166
+ export declare const getCustomerByIdResponse_BannerLeadStatusEntry: {
167
+ encode(message: getCustomerByIdResponse_BannerLeadStatusEntry, writer?: _m0.Writer): _m0.Writer;
168
+ decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByIdResponse_BannerLeadStatusEntry;
169
+ fromJSON(object: any): getCustomerByIdResponse_BannerLeadStatusEntry;
170
+ toJSON(message: getCustomerByIdResponse_BannerLeadStatusEntry): unknown;
171
+ create<I extends Exact<DeepPartial<getCustomerByIdResponse_BannerLeadStatusEntry>, I>>(base?: I): getCustomerByIdResponse_BannerLeadStatusEntry;
172
+ fromPartial<I extends Exact<DeepPartial<getCustomerByIdResponse_BannerLeadStatusEntry>, I>>(object: I): getCustomerByIdResponse_BannerLeadStatusEntry;
173
+ };
148
174
  export declare const Address: {
149
175
  encode(message: Address, writer?: _m0.Writer): _m0.Writer;
150
176
  decode(input: _m0.Reader | Uint8Array, length?: number): Address;
@@ -161,14 +187,6 @@ export declare const BankDetails: {
161
187
  create<I extends Exact<DeepPartial<BankDetails>, I>>(base?: I): BankDetails;
162
188
  fromPartial<I extends Exact<DeepPartial<BankDetails>, I>>(object: I): BankDetails;
163
189
  };
164
- export declare const BannerSequenceMessage: {
165
- encode(message: BannerSequenceMessage, writer?: _m0.Writer): _m0.Writer;
166
- decode(input: _m0.Reader | Uint8Array, length?: number): BannerSequenceMessage;
167
- fromJSON(object: any): BannerSequenceMessage;
168
- toJSON(message: BannerSequenceMessage): unknown;
169
- create<I extends Exact<DeepPartial<BannerSequenceMessage>, I>>(base?: I): BannerSequenceMessage;
170
- fromPartial<I extends Exact<DeepPartial<BannerSequenceMessage>, I>>(object: I): BannerSequenceMessage;
171
- };
172
190
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
173
191
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
174
192
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.BannerSequenceMessage = exports.BankDetails = exports.Address = exports.getCustomerByIdResponse_BannerJourneyStatusEntry = exports.getCustomerByIdResponse = exports.getCustomerByIdRequest = exports.protobufPackage = void 0;
11
+ exports.BankDetails = exports.Address = exports.getCustomerByIdResponse_BannerLeadStatusEntry = exports.getCustomerByIdResponse_BannerJourneyStatusEntry = exports.getCustomerByIdResponse_BannerSequenceEntry = exports.getCustomerByIdResponse = exports.getCustomerByIdRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
@@ -153,9 +153,9 @@ function createBasegetCustomerByIdResponse() {
153
153
  max_loc_limit: undefined,
154
154
  enach_amount: 0,
155
155
  new_sanctioned_limit: 0,
156
- banner_sequence: undefined,
156
+ banner_sequence: {},
157
157
  banner_journey_status: {},
158
- banner_lead_status: undefined,
158
+ banner_lead_status: {},
159
159
  created_at: "",
160
160
  };
161
161
  }
@@ -425,16 +425,18 @@ exports.getCustomerByIdResponse = {
425
425
  if (message.new_sanctioned_limit !== 0) {
426
426
  writer.uint32(717).float(message.new_sanctioned_limit);
427
427
  }
428
- if (message.banner_sequence !== undefined) {
429
- exports.BannerSequenceMessage.encode(message.banner_sequence, writer.uint32(722).fork()).ldelim();
430
- }
428
+ Object.entries(message.banner_sequence).forEach(([key, value]) => {
429
+ exports.getCustomerByIdResponse_BannerSequenceEntry.encode({ key: key, value }, writer.uint32(722).fork())
430
+ .ldelim();
431
+ });
431
432
  Object.entries(message.banner_journey_status).forEach(([key, value]) => {
432
433
  exports.getCustomerByIdResponse_BannerJourneyStatusEntry.encode({ key: key, value }, writer.uint32(730).fork())
433
434
  .ldelim();
434
435
  });
435
- if (message.banner_lead_status !== undefined) {
436
- exports.BannerSequenceMessage.encode(message.banner_lead_status, writer.uint32(738).fork()).ldelim();
437
- }
436
+ Object.entries(message.banner_lead_status).forEach(([key, value]) => {
437
+ exports.getCustomerByIdResponse_BannerLeadStatusEntry.encode({ key: key, value }, writer.uint32(738).fork())
438
+ .ldelim();
439
+ });
438
440
  if (message.created_at !== "") {
439
441
  writer.uint32(746).string(message.created_at);
440
442
  }
@@ -979,7 +981,10 @@ exports.getCustomerByIdResponse = {
979
981
  if (tag !== 722) {
980
982
  break;
981
983
  }
982
- message.banner_sequence = exports.BannerSequenceMessage.decode(reader, reader.uint32());
984
+ const entry90 = exports.getCustomerByIdResponse_BannerSequenceEntry.decode(reader, reader.uint32());
985
+ if (entry90.value !== undefined) {
986
+ message.banner_sequence[entry90.key] = entry90.value;
987
+ }
983
988
  continue;
984
989
  case 91:
985
990
  if (tag !== 730) {
@@ -994,7 +999,10 @@ exports.getCustomerByIdResponse = {
994
999
  if (tag !== 738) {
995
1000
  break;
996
1001
  }
997
- message.banner_lead_status = exports.BannerSequenceMessage.decode(reader, reader.uint32());
1002
+ const entry92 = exports.getCustomerByIdResponse_BannerLeadStatusEntry.decode(reader, reader.uint32());
1003
+ if (entry92.value !== undefined) {
1004
+ message.banner_lead_status[entry92.key] = entry92.value;
1005
+ }
998
1006
  continue;
999
1007
  case 93:
1000
1008
  if (tag !== 746) {
@@ -1100,18 +1108,24 @@ exports.getCustomerByIdResponse = {
1100
1108
  max_loc_limit: isSet(object.max_loc_limit) ? globalThis.Number(object.max_loc_limit) : undefined,
1101
1109
  enach_amount: isSet(object.enach_amount) ? globalThis.Number(object.enach_amount) : 0,
1102
1110
  new_sanctioned_limit: isSet(object.new_sanctioned_limit) ? globalThis.Number(object.new_sanctioned_limit) : 0,
1103
- banner_sequence: isSet(object.banner_sequence)
1104
- ? exports.BannerSequenceMessage.fromJSON(object.banner_sequence)
1105
- : undefined,
1111
+ banner_sequence: isObject(object.banner_sequence)
1112
+ ? Object.entries(object.banner_sequence).reduce((acc, [key, value]) => {
1113
+ acc[key] = String(value);
1114
+ return acc;
1115
+ }, {})
1116
+ : {},
1106
1117
  banner_journey_status: isObject(object.banner_journey_status)
1107
1118
  ? Object.entries(object.banner_journey_status).reduce((acc, [key, value]) => {
1108
1119
  acc[key] = String(value);
1109
1120
  return acc;
1110
1121
  }, {})
1111
1122
  : {},
1112
- banner_lead_status: isSet(object.banner_lead_status)
1113
- ? exports.BannerSequenceMessage.fromJSON(object.banner_lead_status)
1114
- : undefined,
1123
+ banner_lead_status: isObject(object.banner_lead_status)
1124
+ ? Object.entries(object.banner_lead_status).reduce((acc, [key, value]) => {
1125
+ acc[key] = String(value);
1126
+ return acc;
1127
+ }, {})
1128
+ : {},
1115
1129
  created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
1116
1130
  };
1117
1131
  },
@@ -1381,8 +1395,14 @@ exports.getCustomerByIdResponse = {
1381
1395
  if (message.new_sanctioned_limit !== 0) {
1382
1396
  obj.new_sanctioned_limit = message.new_sanctioned_limit;
1383
1397
  }
1384
- if (message.banner_sequence !== undefined) {
1385
- obj.banner_sequence = exports.BannerSequenceMessage.toJSON(message.banner_sequence);
1398
+ if (message.banner_sequence) {
1399
+ const entries = Object.entries(message.banner_sequence);
1400
+ if (entries.length > 0) {
1401
+ obj.banner_sequence = {};
1402
+ entries.forEach(([k, v]) => {
1403
+ obj.banner_sequence[k] = v;
1404
+ });
1405
+ }
1386
1406
  }
1387
1407
  if (message.banner_journey_status) {
1388
1408
  const entries = Object.entries(message.banner_journey_status);
@@ -1393,8 +1413,14 @@ exports.getCustomerByIdResponse = {
1393
1413
  });
1394
1414
  }
1395
1415
  }
1396
- if (message.banner_lead_status !== undefined) {
1397
- obj.banner_lead_status = exports.BannerSequenceMessage.toJSON(message.banner_lead_status);
1416
+ if (message.banner_lead_status) {
1417
+ const entries = Object.entries(message.banner_lead_status);
1418
+ if (entries.length > 0) {
1419
+ obj.banner_lead_status = {};
1420
+ entries.forEach(([k, v]) => {
1421
+ obj.banner_lead_status[k] = v;
1422
+ });
1423
+ }
1398
1424
  }
1399
1425
  if (message.created_at !== "") {
1400
1426
  obj.created_at = message.created_at;
@@ -1502,22 +1528,94 @@ exports.getCustomerByIdResponse = {
1502
1528
  message.max_loc_limit = object.max_loc_limit ?? undefined;
1503
1529
  message.enach_amount = object.enach_amount ?? 0;
1504
1530
  message.new_sanctioned_limit = object.new_sanctioned_limit ?? 0;
1505
- message.banner_sequence = (object.banner_sequence !== undefined && object.banner_sequence !== null)
1506
- ? exports.BannerSequenceMessage.fromPartial(object.banner_sequence)
1507
- : undefined;
1531
+ message.banner_sequence = Object.entries(object.banner_sequence ?? {}).reduce((acc, [key, value]) => {
1532
+ if (value !== undefined) {
1533
+ acc[key] = globalThis.String(value);
1534
+ }
1535
+ return acc;
1536
+ }, {});
1508
1537
  message.banner_journey_status = Object.entries(object.banner_journey_status ?? {}).reduce((acc, [key, value]) => {
1509
1538
  if (value !== undefined) {
1510
1539
  acc[key] = globalThis.String(value);
1511
1540
  }
1512
1541
  return acc;
1513
1542
  }, {});
1514
- message.banner_lead_status = (object.banner_lead_status !== undefined && object.banner_lead_status !== null)
1515
- ? exports.BannerSequenceMessage.fromPartial(object.banner_lead_status)
1516
- : undefined;
1543
+ message.banner_lead_status = Object.entries(object.banner_lead_status ?? {}).reduce((acc, [key, value]) => {
1544
+ if (value !== undefined) {
1545
+ acc[key] = globalThis.String(value);
1546
+ }
1547
+ return acc;
1548
+ }, {});
1517
1549
  message.created_at = object.created_at ?? "";
1518
1550
  return message;
1519
1551
  },
1520
1552
  };
1553
+ function createBasegetCustomerByIdResponse_BannerSequenceEntry() {
1554
+ return { key: "", value: "" };
1555
+ }
1556
+ exports.getCustomerByIdResponse_BannerSequenceEntry = {
1557
+ encode(message, writer = minimal_1.default.Writer.create()) {
1558
+ if (message.key !== "") {
1559
+ writer.uint32(10).string(message.key);
1560
+ }
1561
+ if (message.value !== "") {
1562
+ writer.uint32(18).string(message.value);
1563
+ }
1564
+ return writer;
1565
+ },
1566
+ decode(input, length) {
1567
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1568
+ let end = length === undefined ? reader.len : reader.pos + length;
1569
+ const message = createBasegetCustomerByIdResponse_BannerSequenceEntry();
1570
+ while (reader.pos < end) {
1571
+ const tag = reader.uint32();
1572
+ switch (tag >>> 3) {
1573
+ case 1:
1574
+ if (tag !== 10) {
1575
+ break;
1576
+ }
1577
+ message.key = reader.string();
1578
+ continue;
1579
+ case 2:
1580
+ if (tag !== 18) {
1581
+ break;
1582
+ }
1583
+ message.value = reader.string();
1584
+ continue;
1585
+ }
1586
+ if ((tag & 7) === 4 || tag === 0) {
1587
+ break;
1588
+ }
1589
+ reader.skipType(tag & 7);
1590
+ }
1591
+ return message;
1592
+ },
1593
+ fromJSON(object) {
1594
+ return {
1595
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
1596
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
1597
+ };
1598
+ },
1599
+ toJSON(message) {
1600
+ const obj = {};
1601
+ if (message.key !== "") {
1602
+ obj.key = message.key;
1603
+ }
1604
+ if (message.value !== "") {
1605
+ obj.value = message.value;
1606
+ }
1607
+ return obj;
1608
+ },
1609
+ create(base) {
1610
+ return exports.getCustomerByIdResponse_BannerSequenceEntry.fromPartial(base ?? {});
1611
+ },
1612
+ fromPartial(object) {
1613
+ const message = createBasegetCustomerByIdResponse_BannerSequenceEntry();
1614
+ message.key = object.key ?? "";
1615
+ message.value = object.value ?? "";
1616
+ return message;
1617
+ },
1618
+ };
1521
1619
  function createBasegetCustomerByIdResponse_BannerJourneyStatusEntry() {
1522
1620
  return { key: "", value: "" };
1523
1621
  }
@@ -1584,6 +1682,72 @@ exports.getCustomerByIdResponse_BannerJourneyStatusEntry = {
1584
1682
  return message;
1585
1683
  },
1586
1684
  };
1685
+ function createBasegetCustomerByIdResponse_BannerLeadStatusEntry() {
1686
+ return { key: "", value: "" };
1687
+ }
1688
+ exports.getCustomerByIdResponse_BannerLeadStatusEntry = {
1689
+ encode(message, writer = minimal_1.default.Writer.create()) {
1690
+ if (message.key !== "") {
1691
+ writer.uint32(10).string(message.key);
1692
+ }
1693
+ if (message.value !== "") {
1694
+ writer.uint32(18).string(message.value);
1695
+ }
1696
+ return writer;
1697
+ },
1698
+ decode(input, length) {
1699
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1700
+ let end = length === undefined ? reader.len : reader.pos + length;
1701
+ const message = createBasegetCustomerByIdResponse_BannerLeadStatusEntry();
1702
+ while (reader.pos < end) {
1703
+ const tag = reader.uint32();
1704
+ switch (tag >>> 3) {
1705
+ case 1:
1706
+ if (tag !== 10) {
1707
+ break;
1708
+ }
1709
+ message.key = reader.string();
1710
+ continue;
1711
+ case 2:
1712
+ if (tag !== 18) {
1713
+ break;
1714
+ }
1715
+ message.value = reader.string();
1716
+ continue;
1717
+ }
1718
+ if ((tag & 7) === 4 || tag === 0) {
1719
+ break;
1720
+ }
1721
+ reader.skipType(tag & 7);
1722
+ }
1723
+ return message;
1724
+ },
1725
+ fromJSON(object) {
1726
+ return {
1727
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
1728
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
1729
+ };
1730
+ },
1731
+ toJSON(message) {
1732
+ const obj = {};
1733
+ if (message.key !== "") {
1734
+ obj.key = message.key;
1735
+ }
1736
+ if (message.value !== "") {
1737
+ obj.value = message.value;
1738
+ }
1739
+ return obj;
1740
+ },
1741
+ create(base) {
1742
+ return exports.getCustomerByIdResponse_BannerLeadStatusEntry.fromPartial(base ?? {});
1743
+ },
1744
+ fromPartial(object) {
1745
+ const message = createBasegetCustomerByIdResponse_BannerLeadStatusEntry();
1746
+ message.key = object.key ?? "";
1747
+ message.value = object.value ?? "";
1748
+ return message;
1749
+ },
1750
+ };
1587
1751
  function createBaseAddress() {
1588
1752
  return {
1589
1753
  house_flat_no: undefined,
@@ -1729,7 +1893,13 @@ exports.Address = {
1729
1893
  },
1730
1894
  };
1731
1895
  function createBaseBankDetails() {
1732
- return { bank_id: undefined, bank_name: undefined, account_number: undefined, ifsc_code: undefined };
1896
+ return {
1897
+ bank_id: undefined,
1898
+ bank_name: undefined,
1899
+ account_number: undefined,
1900
+ ifsc_code: undefined,
1901
+ holder_name: undefined,
1902
+ };
1733
1903
  }
1734
1904
  exports.BankDetails = {
1735
1905
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -1745,6 +1915,9 @@ exports.BankDetails = {
1745
1915
  if (message.ifsc_code !== undefined) {
1746
1916
  writer.uint32(34).string(message.ifsc_code);
1747
1917
  }
1918
+ if (message.holder_name !== undefined) {
1919
+ writer.uint32(42).string(message.holder_name);
1920
+ }
1748
1921
  return writer;
1749
1922
  },
1750
1923
  decode(input, length) {
@@ -1778,6 +1951,12 @@ exports.BankDetails = {
1778
1951
  }
1779
1952
  message.ifsc_code = reader.string();
1780
1953
  continue;
1954
+ case 5:
1955
+ if (tag !== 42) {
1956
+ break;
1957
+ }
1958
+ message.holder_name = reader.string();
1959
+ continue;
1781
1960
  }
1782
1961
  if ((tag & 7) === 4 || tag === 0) {
1783
1962
  break;
@@ -1792,6 +1971,7 @@ exports.BankDetails = {
1792
1971
  bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : undefined,
1793
1972
  account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : undefined,
1794
1973
  ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : undefined,
1974
+ holder_name: isSet(object.holder_name) ? globalThis.String(object.holder_name) : undefined,
1795
1975
  };
1796
1976
  },
1797
1977
  toJSON(message) {
@@ -1808,6 +1988,9 @@ exports.BankDetails = {
1808
1988
  if (message.ifsc_code !== undefined) {
1809
1989
  obj.ifsc_code = message.ifsc_code;
1810
1990
  }
1991
+ if (message.holder_name !== undefined) {
1992
+ obj.holder_name = message.holder_name;
1993
+ }
1811
1994
  return obj;
1812
1995
  },
1813
1996
  create(base) {
@@ -1819,56 +2002,7 @@ exports.BankDetails = {
1819
2002
  message.bank_name = object.bank_name ?? undefined;
1820
2003
  message.account_number = object.account_number ?? undefined;
1821
2004
  message.ifsc_code = object.ifsc_code ?? undefined;
1822
- return message;
1823
- },
1824
- };
1825
- function createBaseBannerSequenceMessage() {
1826
- return { lamf: undefined };
1827
- }
1828
- exports.BannerSequenceMessage = {
1829
- encode(message, writer = minimal_1.default.Writer.create()) {
1830
- if (message.lamf !== undefined) {
1831
- writer.uint32(10).string(message.lamf);
1832
- }
1833
- return writer;
1834
- },
1835
- decode(input, length) {
1836
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
1837
- let end = length === undefined ? reader.len : reader.pos + length;
1838
- const message = createBaseBannerSequenceMessage();
1839
- while (reader.pos < end) {
1840
- const tag = reader.uint32();
1841
- switch (tag >>> 3) {
1842
- case 1:
1843
- if (tag !== 10) {
1844
- break;
1845
- }
1846
- message.lamf = reader.string();
1847
- continue;
1848
- }
1849
- if ((tag & 7) === 4 || tag === 0) {
1850
- break;
1851
- }
1852
- reader.skipType(tag & 7);
1853
- }
1854
- return message;
1855
- },
1856
- fromJSON(object) {
1857
- return { lamf: isSet(object.lamf) ? globalThis.String(object.lamf) : undefined };
1858
- },
1859
- toJSON(message) {
1860
- const obj = {};
1861
- if (message.lamf !== undefined) {
1862
- obj.lamf = message.lamf;
1863
- }
1864
- return obj;
1865
- },
1866
- create(base) {
1867
- return exports.BannerSequenceMessage.fromPartial(base ?? {});
1868
- },
1869
- fromPartial(object) {
1870
- const message = createBaseBannerSequenceMessage();
1871
- message.lamf = object.lamf ?? undefined;
2005
+ message.holder_name = object.holder_name ?? undefined;
1872
2006
  return message;
1873
2007
  },
1874
2008
  };
@@ -0,0 +1,44 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "upi.initiateTransaction";
3
+ export interface initiateTransactionRequest {
4
+ mobile: string;
5
+ amount: number;
6
+ note?: string | undefined;
7
+ txn_type: string;
8
+ txn_status: string;
9
+ payee_vpa?: string | undefined;
10
+ payer_vpa?: string | undefined;
11
+ }
12
+ export interface initiateTransactionResponse {
13
+ seq_no: string;
14
+ txn_hash: string;
15
+ status: string;
16
+ message: string;
17
+ }
18
+ export declare const initiateTransactionRequest: {
19
+ encode(message: initiateTransactionRequest, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): initiateTransactionRequest;
21
+ fromJSON(object: any): initiateTransactionRequest;
22
+ toJSON(message: initiateTransactionRequest): unknown;
23
+ create<I extends Exact<DeepPartial<initiateTransactionRequest>, I>>(base?: I): initiateTransactionRequest;
24
+ fromPartial<I extends Exact<DeepPartial<initiateTransactionRequest>, I>>(object: I): initiateTransactionRequest;
25
+ };
26
+ export declare const initiateTransactionResponse: {
27
+ encode(message: initiateTransactionResponse, writer?: _m0.Writer): _m0.Writer;
28
+ decode(input: _m0.Reader | Uint8Array, length?: number): initiateTransactionResponse;
29
+ fromJSON(object: any): initiateTransactionResponse;
30
+ toJSON(message: initiateTransactionResponse): unknown;
31
+ create<I extends Exact<DeepPartial<initiateTransactionResponse>, I>>(base?: I): initiateTransactionResponse;
32
+ fromPartial<I extends Exact<DeepPartial<initiateTransactionResponse>, I>>(object: I): initiateTransactionResponse;
33
+ };
34
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
35
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
36
+ [K in keyof T]?: DeepPartial<T[K]>;
37
+ } : Partial<T>;
38
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
39
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
40
+ [K in keyof P]: Exact<P[K], I[K]>;
41
+ } & {
42
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
43
+ };
44
+ export {};
@@ -0,0 +1,255 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
+ // source: upi/initiatetransaction.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.initiateTransactionResponse = exports.initiateTransactionRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "upi.initiateTransaction";
15
+ function createBaseinitiateTransactionRequest() {
16
+ return {
17
+ mobile: "",
18
+ amount: 0,
19
+ note: undefined,
20
+ txn_type: "",
21
+ txn_status: "",
22
+ payee_vpa: undefined,
23
+ payer_vpa: undefined,
24
+ };
25
+ }
26
+ exports.initiateTransactionRequest = {
27
+ encode(message, writer = minimal_1.default.Writer.create()) {
28
+ if (message.mobile !== "") {
29
+ writer.uint32(10).string(message.mobile);
30
+ }
31
+ if (message.amount !== 0) {
32
+ writer.uint32(21).float(message.amount);
33
+ }
34
+ if (message.note !== undefined) {
35
+ writer.uint32(26).string(message.note);
36
+ }
37
+ if (message.txn_type !== "") {
38
+ writer.uint32(34).string(message.txn_type);
39
+ }
40
+ if (message.txn_status !== "") {
41
+ writer.uint32(42).string(message.txn_status);
42
+ }
43
+ if (message.payee_vpa !== undefined) {
44
+ writer.uint32(50).string(message.payee_vpa);
45
+ }
46
+ if (message.payer_vpa !== undefined) {
47
+ writer.uint32(58).string(message.payer_vpa);
48
+ }
49
+ return writer;
50
+ },
51
+ decode(input, length) {
52
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
53
+ let end = length === undefined ? reader.len : reader.pos + length;
54
+ const message = createBaseinitiateTransactionRequest();
55
+ while (reader.pos < end) {
56
+ const tag = reader.uint32();
57
+ switch (tag >>> 3) {
58
+ case 1:
59
+ if (tag !== 10) {
60
+ break;
61
+ }
62
+ message.mobile = reader.string();
63
+ continue;
64
+ case 2:
65
+ if (tag !== 21) {
66
+ break;
67
+ }
68
+ message.amount = reader.float();
69
+ continue;
70
+ case 3:
71
+ if (tag !== 26) {
72
+ break;
73
+ }
74
+ message.note = reader.string();
75
+ continue;
76
+ case 4:
77
+ if (tag !== 34) {
78
+ break;
79
+ }
80
+ message.txn_type = reader.string();
81
+ continue;
82
+ case 5:
83
+ if (tag !== 42) {
84
+ break;
85
+ }
86
+ message.txn_status = reader.string();
87
+ continue;
88
+ case 6:
89
+ if (tag !== 50) {
90
+ break;
91
+ }
92
+ message.payee_vpa = reader.string();
93
+ continue;
94
+ case 7:
95
+ if (tag !== 58) {
96
+ break;
97
+ }
98
+ message.payer_vpa = reader.string();
99
+ continue;
100
+ }
101
+ if ((tag & 7) === 4 || tag === 0) {
102
+ break;
103
+ }
104
+ reader.skipType(tag & 7);
105
+ }
106
+ return message;
107
+ },
108
+ fromJSON(object) {
109
+ return {
110
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
111
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
112
+ note: isSet(object.note) ? globalThis.String(object.note) : undefined,
113
+ txn_type: isSet(object.txn_type) ? globalThis.String(object.txn_type) : "",
114
+ txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
115
+ payee_vpa: isSet(object.payee_vpa) ? globalThis.String(object.payee_vpa) : undefined,
116
+ payer_vpa: isSet(object.payer_vpa) ? globalThis.String(object.payer_vpa) : undefined,
117
+ };
118
+ },
119
+ toJSON(message) {
120
+ const obj = {};
121
+ if (message.mobile !== "") {
122
+ obj.mobile = message.mobile;
123
+ }
124
+ if (message.amount !== 0) {
125
+ obj.amount = message.amount;
126
+ }
127
+ if (message.note !== undefined) {
128
+ obj.note = message.note;
129
+ }
130
+ if (message.txn_type !== "") {
131
+ obj.txn_type = message.txn_type;
132
+ }
133
+ if (message.txn_status !== "") {
134
+ obj.txn_status = message.txn_status;
135
+ }
136
+ if (message.payee_vpa !== undefined) {
137
+ obj.payee_vpa = message.payee_vpa;
138
+ }
139
+ if (message.payer_vpa !== undefined) {
140
+ obj.payer_vpa = message.payer_vpa;
141
+ }
142
+ return obj;
143
+ },
144
+ create(base) {
145
+ return exports.initiateTransactionRequest.fromPartial(base ?? {});
146
+ },
147
+ fromPartial(object) {
148
+ const message = createBaseinitiateTransactionRequest();
149
+ message.mobile = object.mobile ?? "";
150
+ message.amount = object.amount ?? 0;
151
+ message.note = object.note ?? undefined;
152
+ message.txn_type = object.txn_type ?? "";
153
+ message.txn_status = object.txn_status ?? "";
154
+ message.payee_vpa = object.payee_vpa ?? undefined;
155
+ message.payer_vpa = object.payer_vpa ?? undefined;
156
+ return message;
157
+ },
158
+ };
159
+ function createBaseinitiateTransactionResponse() {
160
+ return { seq_no: "", txn_hash: "", status: "", message: "" };
161
+ }
162
+ exports.initiateTransactionResponse = {
163
+ encode(message, writer = minimal_1.default.Writer.create()) {
164
+ if (message.seq_no !== "") {
165
+ writer.uint32(10).string(message.seq_no);
166
+ }
167
+ if (message.txn_hash !== "") {
168
+ writer.uint32(18).string(message.txn_hash);
169
+ }
170
+ if (message.status !== "") {
171
+ writer.uint32(26).string(message.status);
172
+ }
173
+ if (message.message !== "") {
174
+ writer.uint32(34).string(message.message);
175
+ }
176
+ return writer;
177
+ },
178
+ decode(input, length) {
179
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
180
+ let end = length === undefined ? reader.len : reader.pos + length;
181
+ const message = createBaseinitiateTransactionResponse();
182
+ while (reader.pos < end) {
183
+ const tag = reader.uint32();
184
+ switch (tag >>> 3) {
185
+ case 1:
186
+ if (tag !== 10) {
187
+ break;
188
+ }
189
+ message.seq_no = reader.string();
190
+ continue;
191
+ case 2:
192
+ if (tag !== 18) {
193
+ break;
194
+ }
195
+ message.txn_hash = reader.string();
196
+ continue;
197
+ case 3:
198
+ if (tag !== 26) {
199
+ break;
200
+ }
201
+ message.status = reader.string();
202
+ continue;
203
+ case 4:
204
+ if (tag !== 34) {
205
+ break;
206
+ }
207
+ message.message = reader.string();
208
+ continue;
209
+ }
210
+ if ((tag & 7) === 4 || tag === 0) {
211
+ break;
212
+ }
213
+ reader.skipType(tag & 7);
214
+ }
215
+ return message;
216
+ },
217
+ fromJSON(object) {
218
+ return {
219
+ seq_no: isSet(object.seq_no) ? globalThis.String(object.seq_no) : "",
220
+ txn_hash: isSet(object.txn_hash) ? globalThis.String(object.txn_hash) : "",
221
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
222
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
223
+ };
224
+ },
225
+ toJSON(message) {
226
+ const obj = {};
227
+ if (message.seq_no !== "") {
228
+ obj.seq_no = message.seq_no;
229
+ }
230
+ if (message.txn_hash !== "") {
231
+ obj.txn_hash = message.txn_hash;
232
+ }
233
+ if (message.status !== "") {
234
+ obj.status = message.status;
235
+ }
236
+ if (message.message !== "") {
237
+ obj.message = message.message;
238
+ }
239
+ return obj;
240
+ },
241
+ create(base) {
242
+ return exports.initiateTransactionResponse.fromPartial(base ?? {});
243
+ },
244
+ fromPartial(object) {
245
+ const message = createBaseinitiateTransactionResponse();
246
+ message.seq_no = object.seq_no ?? "";
247
+ message.txn_hash = object.txn_hash ?? "";
248
+ message.status = object.status ?? "";
249
+ message.message = object.message ?? "";
250
+ return message;
251
+ },
252
+ };
253
+ function isSet(value) {
254
+ return value !== null && value !== undefined;
255
+ }
@@ -0,0 +1,49 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "upi.updateDeviceLinking";
3
+ export interface updateDeviceLinkingRequest {
4
+ acc_number: string;
5
+ acc_ref_number: string;
6
+ acc_type: string;
7
+ acc_name: string;
8
+ aeba?: string | undefined;
9
+ mbeba?: string | undefined;
10
+ ifsc: string;
11
+ vpa?: string | undefined;
12
+ mmid?: string | undefined;
13
+ default_credit: string;
14
+ default_debit: string;
15
+ status: string;
16
+ is_primary?: string | undefined;
17
+ is_active?: string | undefined;
18
+ }
19
+ export interface updateDeviceLinkingResponse {
20
+ acc_number: string;
21
+ message: string;
22
+ }
23
+ export declare const updateDeviceLinkingRequest: {
24
+ encode(message: updateDeviceLinkingRequest, writer?: _m0.Writer): _m0.Writer;
25
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateDeviceLinkingRequest;
26
+ fromJSON(object: any): updateDeviceLinkingRequest;
27
+ toJSON(message: updateDeviceLinkingRequest): unknown;
28
+ create<I extends Exact<DeepPartial<updateDeviceLinkingRequest>, I>>(base?: I): updateDeviceLinkingRequest;
29
+ fromPartial<I extends Exact<DeepPartial<updateDeviceLinkingRequest>, I>>(object: I): updateDeviceLinkingRequest;
30
+ };
31
+ export declare const updateDeviceLinkingResponse: {
32
+ encode(message: updateDeviceLinkingResponse, writer?: _m0.Writer): _m0.Writer;
33
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateDeviceLinkingResponse;
34
+ fromJSON(object: any): updateDeviceLinkingResponse;
35
+ toJSON(message: updateDeviceLinkingResponse): unknown;
36
+ create<I extends Exact<DeepPartial<updateDeviceLinkingResponse>, I>>(base?: I): updateDeviceLinkingResponse;
37
+ fromPartial<I extends Exact<DeepPartial<updateDeviceLinkingResponse>, I>>(object: I): updateDeviceLinkingResponse;
38
+ };
39
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
40
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
41
+ [K in keyof T]?: DeepPartial<T[K]>;
42
+ } : Partial<T>;
43
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
44
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
45
+ [K in keyof P]: Exact<P[K], I[K]>;
46
+ } & {
47
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
48
+ };
49
+ export {};
@@ -0,0 +1,332 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
+ // source: upi/updatedevicelinking.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.updateDeviceLinkingResponse = exports.updateDeviceLinkingRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "upi.updateDeviceLinking";
15
+ function createBaseupdateDeviceLinkingRequest() {
16
+ return {
17
+ acc_number: "",
18
+ acc_ref_number: "",
19
+ acc_type: "",
20
+ acc_name: "",
21
+ aeba: undefined,
22
+ mbeba: undefined,
23
+ ifsc: "",
24
+ vpa: undefined,
25
+ mmid: undefined,
26
+ default_credit: "",
27
+ default_debit: "",
28
+ status: "",
29
+ is_primary: undefined,
30
+ is_active: undefined,
31
+ };
32
+ }
33
+ exports.updateDeviceLinkingRequest = {
34
+ encode(message, writer = minimal_1.default.Writer.create()) {
35
+ if (message.acc_number !== "") {
36
+ writer.uint32(10).string(message.acc_number);
37
+ }
38
+ if (message.acc_ref_number !== "") {
39
+ writer.uint32(18).string(message.acc_ref_number);
40
+ }
41
+ if (message.acc_type !== "") {
42
+ writer.uint32(26).string(message.acc_type);
43
+ }
44
+ if (message.acc_name !== "") {
45
+ writer.uint32(34).string(message.acc_name);
46
+ }
47
+ if (message.aeba !== undefined) {
48
+ writer.uint32(42).string(message.aeba);
49
+ }
50
+ if (message.mbeba !== undefined) {
51
+ writer.uint32(50).string(message.mbeba);
52
+ }
53
+ if (message.ifsc !== "") {
54
+ writer.uint32(58).string(message.ifsc);
55
+ }
56
+ if (message.vpa !== undefined) {
57
+ writer.uint32(66).string(message.vpa);
58
+ }
59
+ if (message.mmid !== undefined) {
60
+ writer.uint32(74).string(message.mmid);
61
+ }
62
+ if (message.default_credit !== "") {
63
+ writer.uint32(82).string(message.default_credit);
64
+ }
65
+ if (message.default_debit !== "") {
66
+ writer.uint32(90).string(message.default_debit);
67
+ }
68
+ if (message.status !== "") {
69
+ writer.uint32(98).string(message.status);
70
+ }
71
+ if (message.is_primary !== undefined) {
72
+ writer.uint32(106).string(message.is_primary);
73
+ }
74
+ if (message.is_active !== undefined) {
75
+ writer.uint32(114).string(message.is_active);
76
+ }
77
+ return writer;
78
+ },
79
+ decode(input, length) {
80
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
81
+ let end = length === undefined ? reader.len : reader.pos + length;
82
+ const message = createBaseupdateDeviceLinkingRequest();
83
+ while (reader.pos < end) {
84
+ const tag = reader.uint32();
85
+ switch (tag >>> 3) {
86
+ case 1:
87
+ if (tag !== 10) {
88
+ break;
89
+ }
90
+ message.acc_number = reader.string();
91
+ continue;
92
+ case 2:
93
+ if (tag !== 18) {
94
+ break;
95
+ }
96
+ message.acc_ref_number = reader.string();
97
+ continue;
98
+ case 3:
99
+ if (tag !== 26) {
100
+ break;
101
+ }
102
+ message.acc_type = reader.string();
103
+ continue;
104
+ case 4:
105
+ if (tag !== 34) {
106
+ break;
107
+ }
108
+ message.acc_name = reader.string();
109
+ continue;
110
+ case 5:
111
+ if (tag !== 42) {
112
+ break;
113
+ }
114
+ message.aeba = reader.string();
115
+ continue;
116
+ case 6:
117
+ if (tag !== 50) {
118
+ break;
119
+ }
120
+ message.mbeba = reader.string();
121
+ continue;
122
+ case 7:
123
+ if (tag !== 58) {
124
+ break;
125
+ }
126
+ message.ifsc = reader.string();
127
+ continue;
128
+ case 8:
129
+ if (tag !== 66) {
130
+ break;
131
+ }
132
+ message.vpa = reader.string();
133
+ continue;
134
+ case 9:
135
+ if (tag !== 74) {
136
+ break;
137
+ }
138
+ message.mmid = reader.string();
139
+ continue;
140
+ case 10:
141
+ if (tag !== 82) {
142
+ break;
143
+ }
144
+ message.default_credit = reader.string();
145
+ continue;
146
+ case 11:
147
+ if (tag !== 90) {
148
+ break;
149
+ }
150
+ message.default_debit = reader.string();
151
+ continue;
152
+ case 12:
153
+ if (tag !== 98) {
154
+ break;
155
+ }
156
+ message.status = reader.string();
157
+ continue;
158
+ case 13:
159
+ if (tag !== 106) {
160
+ break;
161
+ }
162
+ message.is_primary = reader.string();
163
+ continue;
164
+ case 14:
165
+ if (tag !== 114) {
166
+ break;
167
+ }
168
+ message.is_active = reader.string();
169
+ continue;
170
+ }
171
+ if ((tag & 7) === 4 || tag === 0) {
172
+ break;
173
+ }
174
+ reader.skipType(tag & 7);
175
+ }
176
+ return message;
177
+ },
178
+ fromJSON(object) {
179
+ return {
180
+ acc_number: isSet(object.acc_number) ? globalThis.String(object.acc_number) : "",
181
+ acc_ref_number: isSet(object.acc_ref_number) ? globalThis.String(object.acc_ref_number) : "",
182
+ acc_type: isSet(object.acc_type) ? globalThis.String(object.acc_type) : "",
183
+ acc_name: isSet(object.acc_name) ? globalThis.String(object.acc_name) : "",
184
+ aeba: isSet(object.aeba) ? globalThis.String(object.aeba) : undefined,
185
+ mbeba: isSet(object.mbeba) ? globalThis.String(object.mbeba) : undefined,
186
+ ifsc: isSet(object.ifsc) ? globalThis.String(object.ifsc) : "",
187
+ vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : undefined,
188
+ mmid: isSet(object.mmid) ? globalThis.String(object.mmid) : undefined,
189
+ default_credit: isSet(object.default_credit) ? globalThis.String(object.default_credit) : "",
190
+ default_debit: isSet(object.default_debit) ? globalThis.String(object.default_debit) : "",
191
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
192
+ is_primary: isSet(object.is_primary) ? globalThis.String(object.is_primary) : undefined,
193
+ is_active: isSet(object.is_active) ? globalThis.String(object.is_active) : undefined,
194
+ };
195
+ },
196
+ toJSON(message) {
197
+ const obj = {};
198
+ if (message.acc_number !== "") {
199
+ obj.acc_number = message.acc_number;
200
+ }
201
+ if (message.acc_ref_number !== "") {
202
+ obj.acc_ref_number = message.acc_ref_number;
203
+ }
204
+ if (message.acc_type !== "") {
205
+ obj.acc_type = message.acc_type;
206
+ }
207
+ if (message.acc_name !== "") {
208
+ obj.acc_name = message.acc_name;
209
+ }
210
+ if (message.aeba !== undefined) {
211
+ obj.aeba = message.aeba;
212
+ }
213
+ if (message.mbeba !== undefined) {
214
+ obj.mbeba = message.mbeba;
215
+ }
216
+ if (message.ifsc !== "") {
217
+ obj.ifsc = message.ifsc;
218
+ }
219
+ if (message.vpa !== undefined) {
220
+ obj.vpa = message.vpa;
221
+ }
222
+ if (message.mmid !== undefined) {
223
+ obj.mmid = message.mmid;
224
+ }
225
+ if (message.default_credit !== "") {
226
+ obj.default_credit = message.default_credit;
227
+ }
228
+ if (message.default_debit !== "") {
229
+ obj.default_debit = message.default_debit;
230
+ }
231
+ if (message.status !== "") {
232
+ obj.status = message.status;
233
+ }
234
+ if (message.is_primary !== undefined) {
235
+ obj.is_primary = message.is_primary;
236
+ }
237
+ if (message.is_active !== undefined) {
238
+ obj.is_active = message.is_active;
239
+ }
240
+ return obj;
241
+ },
242
+ create(base) {
243
+ return exports.updateDeviceLinkingRequest.fromPartial(base ?? {});
244
+ },
245
+ fromPartial(object) {
246
+ const message = createBaseupdateDeviceLinkingRequest();
247
+ message.acc_number = object.acc_number ?? "";
248
+ message.acc_ref_number = object.acc_ref_number ?? "";
249
+ message.acc_type = object.acc_type ?? "";
250
+ message.acc_name = object.acc_name ?? "";
251
+ message.aeba = object.aeba ?? undefined;
252
+ message.mbeba = object.mbeba ?? undefined;
253
+ message.ifsc = object.ifsc ?? "";
254
+ message.vpa = object.vpa ?? undefined;
255
+ message.mmid = object.mmid ?? undefined;
256
+ message.default_credit = object.default_credit ?? "";
257
+ message.default_debit = object.default_debit ?? "";
258
+ message.status = object.status ?? "";
259
+ message.is_primary = object.is_primary ?? undefined;
260
+ message.is_active = object.is_active ?? undefined;
261
+ return message;
262
+ },
263
+ };
264
+ function createBaseupdateDeviceLinkingResponse() {
265
+ return { acc_number: "", message: "" };
266
+ }
267
+ exports.updateDeviceLinkingResponse = {
268
+ encode(message, writer = minimal_1.default.Writer.create()) {
269
+ if (message.acc_number !== "") {
270
+ writer.uint32(10).string(message.acc_number);
271
+ }
272
+ if (message.message !== "") {
273
+ writer.uint32(18).string(message.message);
274
+ }
275
+ return writer;
276
+ },
277
+ decode(input, length) {
278
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
279
+ let end = length === undefined ? reader.len : reader.pos + length;
280
+ const message = createBaseupdateDeviceLinkingResponse();
281
+ while (reader.pos < end) {
282
+ const tag = reader.uint32();
283
+ switch (tag >>> 3) {
284
+ case 1:
285
+ if (tag !== 10) {
286
+ break;
287
+ }
288
+ message.acc_number = reader.string();
289
+ continue;
290
+ case 2:
291
+ if (tag !== 18) {
292
+ break;
293
+ }
294
+ message.message = reader.string();
295
+ continue;
296
+ }
297
+ if ((tag & 7) === 4 || tag === 0) {
298
+ break;
299
+ }
300
+ reader.skipType(tag & 7);
301
+ }
302
+ return message;
303
+ },
304
+ fromJSON(object) {
305
+ return {
306
+ acc_number: isSet(object.acc_number) ? globalThis.String(object.acc_number) : "",
307
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
308
+ };
309
+ },
310
+ toJSON(message) {
311
+ const obj = {};
312
+ if (message.acc_number !== "") {
313
+ obj.acc_number = message.acc_number;
314
+ }
315
+ if (message.message !== "") {
316
+ obj.message = message.message;
317
+ }
318
+ return obj;
319
+ },
320
+ create(base) {
321
+ return exports.updateDeviceLinkingResponse.fromPartial(base ?? {});
322
+ },
323
+ fromPartial(object) {
324
+ const message = createBaseupdateDeviceLinkingResponse();
325
+ message.acc_number = object.acc_number ?? "";
326
+ message.message = object.message ?? "";
327
+ return message;
328
+ },
329
+ };
330
+ function isSet(value) {
331
+ return value !== null && value !== undefined;
332
+ }
package/ts/upi.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
2
  import { getAvailableVPARequest, getAvailableVPAResponse } from "./upi/getavailablevpa";
3
3
  import { getListedAccountProvidersRequest, getListedAccountProvidersResponse } from "./upi/getlistedaccountproviders";
4
+ import { initiateTransactionRequest, initiateTransactionResponse } from "./upi/initiatetransaction";
4
5
  import { updateDeviceBindingRequest, updateDeviceBindingResponse } from "./upi/updatedevicebinding";
6
+ import { updateDeviceLinkingRequest, updateDeviceLinkingResponse } from "./upi/updatedevicelinking";
5
7
  export declare const protobufPackage = "service";
6
8
  export type upiService = typeof upiService;
7
9
  export declare const upiService: {
@@ -23,6 +25,15 @@ export declare const upiService: {
23
25
  readonly responseSerialize: (value: updateDeviceBindingResponse) => Buffer;
24
26
  readonly responseDeserialize: (value: Buffer) => updateDeviceBindingResponse;
25
27
  };
28
+ readonly updateDeviceLinking: {
29
+ readonly path: "/service.upi/updateDeviceLinking";
30
+ readonly requestStream: false;
31
+ readonly responseStream: false;
32
+ readonly requestSerialize: (value: updateDeviceLinkingRequest) => Buffer;
33
+ readonly requestDeserialize: (value: Buffer) => updateDeviceLinkingRequest;
34
+ readonly responseSerialize: (value: updateDeviceLinkingResponse) => Buffer;
35
+ readonly responseDeserialize: (value: Buffer) => updateDeviceLinkingResponse;
36
+ };
26
37
  readonly getAvailableVpa: {
27
38
  readonly path: "/service.upi/getAvailableVPA";
28
39
  readonly requestStream: false;
@@ -32,11 +43,22 @@ export declare const upiService: {
32
43
  readonly responseSerialize: (value: getAvailableVPAResponse) => Buffer;
33
44
  readonly responseDeserialize: (value: Buffer) => getAvailableVPAResponse;
34
45
  };
46
+ readonly initiateTransaction: {
47
+ readonly path: "/service.upi/initiateTransaction";
48
+ readonly requestStream: false;
49
+ readonly responseStream: false;
50
+ readonly requestSerialize: (value: initiateTransactionRequest) => Buffer;
51
+ readonly requestDeserialize: (value: Buffer) => initiateTransactionRequest;
52
+ readonly responseSerialize: (value: initiateTransactionResponse) => Buffer;
53
+ readonly responseDeserialize: (value: Buffer) => initiateTransactionResponse;
54
+ };
35
55
  };
36
56
  export interface upiServer extends UntypedServiceImplementation {
37
57
  getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
38
58
  updateDeviceBinding: handleUnaryCall<updateDeviceBindingRequest, updateDeviceBindingResponse>;
59
+ updateDeviceLinking: handleUnaryCall<updateDeviceLinkingRequest, updateDeviceLinkingResponse>;
39
60
  getAvailableVpa: handleUnaryCall<getAvailableVPARequest, getAvailableVPAResponse>;
61
+ initiateTransaction: handleUnaryCall<initiateTransactionRequest, initiateTransactionResponse>;
40
62
  }
41
63
  export interface upiClient extends Client {
42
64
  getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
@@ -45,9 +67,15 @@ export interface upiClient extends Client {
45
67
  updateDeviceBinding(request: updateDeviceBindingRequest, callback: (error: ServiceError | null, response: updateDeviceBindingResponse) => void): ClientUnaryCall;
46
68
  updateDeviceBinding(request: updateDeviceBindingRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateDeviceBindingResponse) => void): ClientUnaryCall;
47
69
  updateDeviceBinding(request: updateDeviceBindingRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateDeviceBindingResponse) => void): ClientUnaryCall;
70
+ updateDeviceLinking(request: updateDeviceLinkingRequest, callback: (error: ServiceError | null, response: updateDeviceLinkingResponse) => void): ClientUnaryCall;
71
+ updateDeviceLinking(request: updateDeviceLinkingRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateDeviceLinkingResponse) => void): ClientUnaryCall;
72
+ updateDeviceLinking(request: updateDeviceLinkingRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateDeviceLinkingResponse) => void): ClientUnaryCall;
48
73
  getAvailableVpa(request: getAvailableVPARequest, callback: (error: ServiceError | null, response: getAvailableVPAResponse) => void): ClientUnaryCall;
49
74
  getAvailableVpa(request: getAvailableVPARequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAvailableVPAResponse) => void): ClientUnaryCall;
50
75
  getAvailableVpa(request: getAvailableVPARequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAvailableVPAResponse) => void): ClientUnaryCall;
76
+ initiateTransaction(request: initiateTransactionRequest, callback: (error: ServiceError | null, response: initiateTransactionResponse) => void): ClientUnaryCall;
77
+ initiateTransaction(request: initiateTransactionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiateTransactionResponse) => void): ClientUnaryCall;
78
+ initiateTransaction(request: initiateTransactionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiateTransactionResponse) => void): ClientUnaryCall;
51
79
  }
52
80
  export declare const upiClient: {
53
81
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
package/ts/upi.js CHANGED
@@ -10,7 +10,9 @@ exports.upiClient = exports.upiService = exports.protobufPackage = void 0;
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
11
  const getavailablevpa_1 = require("./upi/getavailablevpa");
12
12
  const getlistedaccountproviders_1 = require("./upi/getlistedaccountproviders");
13
+ const initiatetransaction_1 = require("./upi/initiatetransaction");
13
14
  const updatedevicebinding_1 = require("./upi/updatedevicebinding");
15
+ const updatedevicelinking_1 = require("./upi/updatedevicelinking");
14
16
  exports.protobufPackage = "service";
15
17
  exports.upiService = {
16
18
  getListedAccountProviders: {
@@ -31,6 +33,15 @@ exports.upiService = {
31
33
  responseSerialize: (value) => Buffer.from(updatedevicebinding_1.updateDeviceBindingResponse.encode(value).finish()),
32
34
  responseDeserialize: (value) => updatedevicebinding_1.updateDeviceBindingResponse.decode(value),
33
35
  },
36
+ updateDeviceLinking: {
37
+ path: "/service.upi/updateDeviceLinking",
38
+ requestStream: false,
39
+ responseStream: false,
40
+ requestSerialize: (value) => Buffer.from(updatedevicelinking_1.updateDeviceLinkingRequest.encode(value).finish()),
41
+ requestDeserialize: (value) => updatedevicelinking_1.updateDeviceLinkingRequest.decode(value),
42
+ responseSerialize: (value) => Buffer.from(updatedevicelinking_1.updateDeviceLinkingResponse.encode(value).finish()),
43
+ responseDeserialize: (value) => updatedevicelinking_1.updateDeviceLinkingResponse.decode(value),
44
+ },
34
45
  getAvailableVpa: {
35
46
  path: "/service.upi/getAvailableVPA",
36
47
  requestStream: false,
@@ -40,5 +51,14 @@ exports.upiService = {
40
51
  responseSerialize: (value) => Buffer.from(getavailablevpa_1.getAvailableVPAResponse.encode(value).finish()),
41
52
  responseDeserialize: (value) => getavailablevpa_1.getAvailableVPAResponse.decode(value),
42
53
  },
54
+ initiateTransaction: {
55
+ path: "/service.upi/initiateTransaction",
56
+ requestStream: false,
57
+ responseStream: false,
58
+ requestSerialize: (value) => Buffer.from(initiatetransaction_1.initiateTransactionRequest.encode(value).finish()),
59
+ requestDeserialize: (value) => initiatetransaction_1.initiateTransactionRequest.decode(value),
60
+ responseSerialize: (value) => Buffer.from(initiatetransaction_1.initiateTransactionResponse.encode(value).finish()),
61
+ responseDeserialize: (value) => initiatetransaction_1.initiateTransactionResponse.decode(value),
62
+ },
43
63
  };
44
64
  exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");