@stashfin/grpc 1.2.66 → 1.2.67
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 +1 -1
- package/ts/customers/addaddress.js +1 -1
- package/ts/customers/addbankaccountdetails.js +1 -1
- package/ts/customers/createcustomerreference.js +1 -1
- package/ts/customers/deleteprofile.js +1 -1
- package/ts/customers/forgotmpin.js +1 -1
- package/ts/customers/forgotmpinotp.js +1 -1
- package/ts/customers/getbankaccountdetails.js +1 -1
- package/ts/customers/getbasicinfo.js +1 -1
- package/ts/customers/getcities.js +1 -1
- package/ts/customers/getcustomerbyid.d.ts +0 -1
- package/ts/customers/getcustomerbyid.js +1 -16
- package/ts/customers/getdashboard.js +1 -1
- package/ts/customers/getdashboardmaincard.js +1 -1
- package/ts/customers/getkycweburl.js +1 -1
- package/ts/customers/getprofessionalinfo.js +1 -1
- package/ts/customers/getprofile.d.ts +0 -1
- package/ts/customers/getprofile.js +2 -17
- package/ts/customers/getstates.js +1 -1
- package/ts/customers/getstep.js +1 -1
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/resetmpin.js +1 -1
- package/ts/customers/savebasicdetails.js +1 -1
- package/ts/customers/saveunlocklimit.js +1 -1
- package/ts/customers/sendemailtoken.js +1 -1
- package/ts/customers/sendotp.js +1 -1
- package/ts/customers/setmpin.js +1 -1
- package/ts/customers/step10.js +1 -1
- package/ts/customers/step7.js +1 -1
- package/ts/customers/step8.js +1 -1
- package/ts/customers/step9.js +1 -1
- package/ts/customers/stepstatic.js +1 -1
- package/ts/customers/updatedigilockertxn.js +1 -1
- package/ts/customers/updatedob.js +1 -1
- package/ts/customers/updatehypervergetxn.js +1 -1
- package/ts/customers/validatepan.js +1 -1
- package/ts/customers/verifyemail.js +1 -1
- package/ts/customers/verifympin.js +1 -1
- package/ts/customers/verifyotp.js +1 -1
- package/ts/customers.d.ts +0 -42
- package/ts/customers.js +1 -31
- package/ts/example.js +1 -1
- package/ts/google/protobuf/timestamp.js +1 -1
- package/ts/loans/approveloan.js +1 -1
- package/ts/loans/banklist.js +1 -1
- package/ts/loans/calculateemi.js +1 -1
- package/ts/loans/creditlimit.js +1 -1
- package/ts/loans/loansummary.js +1 -1
- package/ts/loans/paymentallocation.js +1 -1
- package/ts/loans/restructureloan.js +1 -1
- package/ts/loans/transactionlist.js +1 -1
- package/ts/loans/updateinstallments.js +1 -1
- package/ts/loans/updateloan.js +1 -1
- package/ts/loans.d.ts +0 -14
- package/ts/loans.js +1 -11
- package/ts/payments/checkpaymentstatus.d.ts +51 -0
- package/ts/payments/checkpaymentstatus.js +259 -0
- package/ts/payments/getpaymentoptions.d.ts +50 -0
- package/ts/payments/getpaymentoptions.js +233 -0
- package/ts/payments/initiatepayment.d.ts +52 -0
- package/ts/payments/initiatepayment.js +271 -0
- package/ts/payments.d.ts +31 -214
- package/ts/payments.js +22 -1095
- package/ts/stashcash/creditsc.js +1 -1
- package/ts/stashcash/debitsc.js +1 -1
- package/ts/stashcash/getscbalance.js +1 -1
- package/ts/stashcash/getschistory.js +1 -1
- package/ts/stashcash/reversesc.js +1 -1
- package/ts/stashcash.js +1 -1
- package/ts/customers/aa/getbanklist.d.ts +0 -48
- package/ts/customers/aa/getbanklist.js +0 -198
- package/ts/customers/addsuspendedcustomer.d.ts +0 -36
- package/ts/customers/addsuspendedcustomer.js +0 -133
- package/ts/customers/getbanklist.d.ts +0 -48
- package/ts/customers/getbanklist.js +0 -198
- package/ts/customers/step1.d.ts +0 -71
- package/ts/customers/step1.js +0 -423
- package/ts/customers/step2.d.ts +0 -67
- package/ts/customers/step2.js +0 -366
- package/ts/customers/updatelocdisabled.d.ts +0 -35
- package/ts/customers/updatelocdisabled.js +0 -117
- package/ts/loans/getcustomerloanstatus.d.ts +0 -34
- package/ts/loans/getcustomerloanstatus.js +0 -104
package/ts/customers.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customers.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.customersClient = exports.customersService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
-
const getbanklist_1 = require("./customers/aa/getbanklist");
|
|
12
11
|
const addaddress_1 = require("./customers/addaddress");
|
|
13
12
|
const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
|
|
14
|
-
const addsuspendedcustomer_1 = require("./customers/addsuspendedcustomer");
|
|
15
13
|
const createcustomerreference_1 = require("./customers/createcustomerreference");
|
|
16
14
|
const deleteprofile_1 = require("./customers/deleteprofile");
|
|
17
15
|
const forgotmpin_1 = require("./customers/forgotmpin");
|
|
@@ -43,7 +41,6 @@ const stepstatic_1 = require("./customers/stepstatic");
|
|
|
43
41
|
const updatedigilockertxn_1 = require("./customers/updatedigilockertxn");
|
|
44
42
|
const updatedob_1 = require("./customers/updatedob");
|
|
45
43
|
const updatehypervergetxn_1 = require("./customers/updatehypervergetxn");
|
|
46
|
-
const updatelocdisabled_1 = require("./customers/updatelocdisabled");
|
|
47
44
|
const validatepan_1 = require("./customers/validatepan");
|
|
48
45
|
const verifyemail_1 = require("./customers/verifyemail");
|
|
49
46
|
const verifympin_1 = require("./customers/verifympin");
|
|
@@ -437,32 +434,5 @@ exports.customersService = {
|
|
|
437
434
|
responseSerialize: (value) => Buffer.from(deleteprofile_1.deleteProfileResponse.encode(value).finish()),
|
|
438
435
|
responseDeserialize: (value) => deleteprofile_1.deleteProfileResponse.decode(value),
|
|
439
436
|
},
|
|
440
|
-
getBankList: {
|
|
441
|
-
path: "/service.customers/getBankList",
|
|
442
|
-
requestStream: false,
|
|
443
|
-
responseStream: false,
|
|
444
|
-
requestSerialize: (value) => Buffer.from(getbanklist_1.getBankListRequest.encode(value).finish()),
|
|
445
|
-
requestDeserialize: (value) => getbanklist_1.getBankListRequest.decode(value),
|
|
446
|
-
responseSerialize: (value) => Buffer.from(getbanklist_1.getBankListResponse.encode(value).finish()),
|
|
447
|
-
responseDeserialize: (value) => getbanklist_1.getBankListResponse.decode(value),
|
|
448
|
-
},
|
|
449
|
-
addSuspendedCustomer: {
|
|
450
|
-
path: "/service.customers/addSuspendedCustomer",
|
|
451
|
-
requestStream: false,
|
|
452
|
-
responseStream: false,
|
|
453
|
-
requestSerialize: (value) => Buffer.from(addsuspendedcustomer_1.addSuspendedCustomerRequest.encode(value).finish()),
|
|
454
|
-
requestDeserialize: (value) => addsuspendedcustomer_1.addSuspendedCustomerRequest.decode(value),
|
|
455
|
-
responseSerialize: (value) => Buffer.from(addsuspendedcustomer_1.addSuspendedCustomerResponse.encode(value).finish()),
|
|
456
|
-
responseDeserialize: (value) => addsuspendedcustomer_1.addSuspendedCustomerResponse.decode(value),
|
|
457
|
-
},
|
|
458
|
-
updatelocdisabled: {
|
|
459
|
-
path: "/service.customers/updatelocdisabled",
|
|
460
|
-
requestStream: false,
|
|
461
|
-
responseStream: false,
|
|
462
|
-
requestSerialize: (value) => Buffer.from(updatelocdisabled_1.locDisabledRequest.encode(value).finish()),
|
|
463
|
-
requestDeserialize: (value) => updatelocdisabled_1.locDisabledRequest.decode(value),
|
|
464
|
-
responseSerialize: (value) => Buffer.from(updatelocdisabled_1.locDisabledResponse.encode(value).finish()),
|
|
465
|
-
responseDeserialize: (value) => updatelocdisabled_1.locDisabledResponse.decode(value),
|
|
466
|
-
},
|
|
467
437
|
};
|
|
468
438
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/example.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: example.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: google/protobuf/timestamp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/approveloan.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/approveloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/banklist.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/banklist.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/calculateemi.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/calculateemi.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/creditlimit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/creditlimit.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/loansummary.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/loansummary.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/paymentallocation.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/restructureloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/transactionlist.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/updateinstallments.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans/updateloan.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans/updateloan.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
package/ts/loans.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
|
3
3
|
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
4
4
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
5
5
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
6
|
-
import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./loans/getcustomerloanstatus";
|
|
7
6
|
import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
|
|
8
7
|
import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
|
|
9
8
|
import { restructureLoanRequest, restructureLoanResponse } from "./loans/restructureloan";
|
|
@@ -103,15 +102,6 @@ export declare const loansService: {
|
|
|
103
102
|
readonly responseSerialize: (value: loanSummaryResponse) => Buffer;
|
|
104
103
|
readonly responseDeserialize: (value: Buffer) => loanSummaryResponse;
|
|
105
104
|
};
|
|
106
|
-
readonly getCustomerLoanStatus: {
|
|
107
|
-
readonly path: "/service.loans/getCustomerLoanStatus";
|
|
108
|
-
readonly requestStream: false;
|
|
109
|
-
readonly responseStream: false;
|
|
110
|
-
readonly requestSerialize: (value: getCustomerLoanStatusRequest) => Buffer;
|
|
111
|
-
readonly requestDeserialize: (value: Buffer) => getCustomerLoanStatusRequest;
|
|
112
|
-
readonly responseSerialize: (value: getCustomerLoanStatusResponse) => Buffer;
|
|
113
|
-
readonly responseDeserialize: (value: Buffer) => getCustomerLoanStatusResponse;
|
|
114
|
-
};
|
|
115
105
|
};
|
|
116
106
|
export interface loansServer extends UntypedServiceImplementation {
|
|
117
107
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -124,7 +114,6 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
124
114
|
transactionList: handleUnaryCall<transactionListRequest, transactionListResponse>;
|
|
125
115
|
paymentAllocation: handleUnaryCall<paymentAllocationRequest, paymentAllocationResponse>;
|
|
126
116
|
loanSummary: handleUnaryCall<loanSummaryRequest, loanSummaryResponse>;
|
|
127
|
-
getCustomerLoanStatus: handleUnaryCall<getCustomerLoanStatusRequest, getCustomerLoanStatusResponse>;
|
|
128
117
|
}
|
|
129
118
|
export interface loansClient extends Client {
|
|
130
119
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -157,9 +146,6 @@ export interface loansClient extends Client {
|
|
|
157
146
|
loanSummary(request: loanSummaryRequest, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
|
|
158
147
|
loanSummary(request: loanSummaryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
|
|
159
148
|
loanSummary(request: loanSummaryRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
|
|
160
|
-
getCustomerLoanStatus(request: getCustomerLoanStatusRequest, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
|
|
161
|
-
getCustomerLoanStatus(request: getCustomerLoanStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
|
|
162
|
-
getCustomerLoanStatus(request: getCustomerLoanStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
|
|
163
149
|
}
|
|
164
150
|
export declare const loansClient: {
|
|
165
151
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: loans.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -12,7 +12,6 @@ const approveloan_1 = require("./loans/approveloan");
|
|
|
12
12
|
const banklist_1 = require("./loans/banklist");
|
|
13
13
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
14
14
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
15
|
-
const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
|
|
16
15
|
const loansummary_1 = require("./loans/loansummary");
|
|
17
16
|
const paymentallocation_1 = require("./loans/paymentallocation");
|
|
18
17
|
const restructureloan_1 = require("./loans/restructureloan");
|
|
@@ -111,14 +110,5 @@ exports.loansService = {
|
|
|
111
110
|
responseSerialize: (value) => Buffer.from(loansummary_1.loanSummaryResponse.encode(value).finish()),
|
|
112
111
|
responseDeserialize: (value) => loansummary_1.loanSummaryResponse.decode(value),
|
|
113
112
|
},
|
|
114
|
-
getCustomerLoanStatus: {
|
|
115
|
-
path: "/service.loans/getCustomerLoanStatus",
|
|
116
|
-
requestStream: false,
|
|
117
|
-
responseStream: false,
|
|
118
|
-
requestSerialize: (value) => Buffer.from(getcustomerloanstatus_1.getCustomerLoanStatusRequest.encode(value).finish()),
|
|
119
|
-
requestDeserialize: (value) => getcustomerloanstatus_1.getCustomerLoanStatusRequest.decode(value),
|
|
120
|
-
responseSerialize: (value) => Buffer.from(getcustomerloanstatus_1.getCustomerLoanStatusResponse.encode(value).finish()),
|
|
121
|
-
responseDeserialize: (value) => getcustomerloanstatus_1.getCustomerLoanStatusResponse.decode(value),
|
|
122
|
-
},
|
|
123
113
|
};
|
|
124
114
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "payments.checkpaymentstatus";
|
|
3
|
+
export interface request {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
client_id: string;
|
|
6
|
+
external_order_id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface response {
|
|
9
|
+
status: string;
|
|
10
|
+
status_code: number;
|
|
11
|
+
data: response_Data | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface response_Data {
|
|
14
|
+
payment_status: string;
|
|
15
|
+
external_order_id: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const request: {
|
|
18
|
+
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
20
|
+
fromJSON(object: any): request;
|
|
21
|
+
toJSON(message: request): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
24
|
+
};
|
|
25
|
+
export declare const response: {
|
|
26
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
28
|
+
fromJSON(object: any): response;
|
|
29
|
+
toJSON(message: response): unknown;
|
|
30
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
31
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
32
|
+
};
|
|
33
|
+
export declare const response_Data: {
|
|
34
|
+
encode(message: response_Data, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data;
|
|
36
|
+
fromJSON(object: any): response_Data;
|
|
37
|
+
toJSON(message: response_Data): unknown;
|
|
38
|
+
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data;
|
|
39
|
+
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data;
|
|
40
|
+
};
|
|
41
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
42
|
+
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 {} ? {
|
|
43
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
44
|
+
} : Partial<T>;
|
|
45
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
46
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
47
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
48
|
+
} & {
|
|
49
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
|
+
// protoc v3.20.3
|
|
6
|
+
// source: payments/checkpaymentstatus.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.response_Data = exports.response = exports.request = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "payments.checkpaymentstatus";
|
|
16
|
+
function createBaserequest() {
|
|
17
|
+
return { customer_id: 0, client_id: "", external_order_id: "" };
|
|
18
|
+
}
|
|
19
|
+
exports.request = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.customer_id !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.customer_id);
|
|
23
|
+
}
|
|
24
|
+
if (message.client_id !== "") {
|
|
25
|
+
writer.uint32(18).string(message.client_id);
|
|
26
|
+
}
|
|
27
|
+
if (message.external_order_id !== "") {
|
|
28
|
+
writer.uint32(26).string(message.external_order_id);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
decode(input, length) {
|
|
33
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
34
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
+
const message = createBaserequest();
|
|
36
|
+
while (reader.pos < end) {
|
|
37
|
+
const tag = reader.uint32();
|
|
38
|
+
switch (tag >>> 3) {
|
|
39
|
+
case 1:
|
|
40
|
+
if (tag !== 8) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
message.customer_id = longToNumber(reader.int64());
|
|
44
|
+
continue;
|
|
45
|
+
case 2:
|
|
46
|
+
if (tag !== 18) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.client_id = reader.string();
|
|
50
|
+
continue;
|
|
51
|
+
case 3:
|
|
52
|
+
if (tag !== 26) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.external_order_id = reader.string();
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
reader.skipType(tag & 7);
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
fromJSON(object) {
|
|
66
|
+
return {
|
|
67
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
68
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
69
|
+
external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
toJSON(message) {
|
|
73
|
+
const obj = {};
|
|
74
|
+
if (message.customer_id !== 0) {
|
|
75
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
76
|
+
}
|
|
77
|
+
if (message.client_id !== "") {
|
|
78
|
+
obj.client_id = message.client_id;
|
|
79
|
+
}
|
|
80
|
+
if (message.external_order_id !== "") {
|
|
81
|
+
obj.external_order_id = message.external_order_id;
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
},
|
|
85
|
+
create(base) {
|
|
86
|
+
return exports.request.fromPartial(base ?? {});
|
|
87
|
+
},
|
|
88
|
+
fromPartial(object) {
|
|
89
|
+
const message = createBaserequest();
|
|
90
|
+
message.customer_id = object.customer_id ?? 0;
|
|
91
|
+
message.client_id = object.client_id ?? "";
|
|
92
|
+
message.external_order_id = object.external_order_id ?? "";
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
function createBaseresponse() {
|
|
97
|
+
return { status: "", status_code: 0, data: undefined };
|
|
98
|
+
}
|
|
99
|
+
exports.response = {
|
|
100
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
101
|
+
if (message.status !== "") {
|
|
102
|
+
writer.uint32(10).string(message.status);
|
|
103
|
+
}
|
|
104
|
+
if (message.status_code !== 0) {
|
|
105
|
+
writer.uint32(16).int32(message.status_code);
|
|
106
|
+
}
|
|
107
|
+
if (message.data !== undefined) {
|
|
108
|
+
exports.response_Data.encode(message.data, writer.uint32(26).fork()).ldelim();
|
|
109
|
+
}
|
|
110
|
+
return writer;
|
|
111
|
+
},
|
|
112
|
+
decode(input, length) {
|
|
113
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
114
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
115
|
+
const message = createBaseresponse();
|
|
116
|
+
while (reader.pos < end) {
|
|
117
|
+
const tag = reader.uint32();
|
|
118
|
+
switch (tag >>> 3) {
|
|
119
|
+
case 1:
|
|
120
|
+
if (tag !== 10) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
message.status = reader.string();
|
|
124
|
+
continue;
|
|
125
|
+
case 2:
|
|
126
|
+
if (tag !== 16) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
message.status_code = reader.int32();
|
|
130
|
+
continue;
|
|
131
|
+
case 3:
|
|
132
|
+
if (tag !== 26) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
message.data = exports.response_Data.decode(reader, reader.uint32());
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
reader.skipType(tag & 7);
|
|
142
|
+
}
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
fromJSON(object) {
|
|
146
|
+
return {
|
|
147
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
148
|
+
status_code: isSet(object.status_code) ? globalThis.Number(object.status_code) : 0,
|
|
149
|
+
data: isSet(object.data) ? exports.response_Data.fromJSON(object.data) : undefined,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
toJSON(message) {
|
|
153
|
+
const obj = {};
|
|
154
|
+
if (message.status !== "") {
|
|
155
|
+
obj.status = message.status;
|
|
156
|
+
}
|
|
157
|
+
if (message.status_code !== 0) {
|
|
158
|
+
obj.status_code = Math.round(message.status_code);
|
|
159
|
+
}
|
|
160
|
+
if (message.data !== undefined) {
|
|
161
|
+
obj.data = exports.response_Data.toJSON(message.data);
|
|
162
|
+
}
|
|
163
|
+
return obj;
|
|
164
|
+
},
|
|
165
|
+
create(base) {
|
|
166
|
+
return exports.response.fromPartial(base ?? {});
|
|
167
|
+
},
|
|
168
|
+
fromPartial(object) {
|
|
169
|
+
const message = createBaseresponse();
|
|
170
|
+
message.status = object.status ?? "";
|
|
171
|
+
message.status_code = object.status_code ?? 0;
|
|
172
|
+
message.data = (object.data !== undefined && object.data !== null)
|
|
173
|
+
? exports.response_Data.fromPartial(object.data)
|
|
174
|
+
: undefined;
|
|
175
|
+
return message;
|
|
176
|
+
},
|
|
177
|
+
};
|
|
178
|
+
function createBaseresponse_Data() {
|
|
179
|
+
return { payment_status: "", external_order_id: "" };
|
|
180
|
+
}
|
|
181
|
+
exports.response_Data = {
|
|
182
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
183
|
+
if (message.payment_status !== "") {
|
|
184
|
+
writer.uint32(10).string(message.payment_status);
|
|
185
|
+
}
|
|
186
|
+
if (message.external_order_id !== "") {
|
|
187
|
+
writer.uint32(18).string(message.external_order_id);
|
|
188
|
+
}
|
|
189
|
+
return writer;
|
|
190
|
+
},
|
|
191
|
+
decode(input, length) {
|
|
192
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
193
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
194
|
+
const message = createBaseresponse_Data();
|
|
195
|
+
while (reader.pos < end) {
|
|
196
|
+
const tag = reader.uint32();
|
|
197
|
+
switch (tag >>> 3) {
|
|
198
|
+
case 1:
|
|
199
|
+
if (tag !== 10) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
message.payment_status = reader.string();
|
|
203
|
+
continue;
|
|
204
|
+
case 2:
|
|
205
|
+
if (tag !== 18) {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
message.external_order_id = reader.string();
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
reader.skipType(tag & 7);
|
|
215
|
+
}
|
|
216
|
+
return message;
|
|
217
|
+
},
|
|
218
|
+
fromJSON(object) {
|
|
219
|
+
return {
|
|
220
|
+
payment_status: isSet(object.payment_status) ? globalThis.String(object.payment_status) : "",
|
|
221
|
+
external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
|
|
222
|
+
};
|
|
223
|
+
},
|
|
224
|
+
toJSON(message) {
|
|
225
|
+
const obj = {};
|
|
226
|
+
if (message.payment_status !== "") {
|
|
227
|
+
obj.payment_status = message.payment_status;
|
|
228
|
+
}
|
|
229
|
+
if (message.external_order_id !== "") {
|
|
230
|
+
obj.external_order_id = message.external_order_id;
|
|
231
|
+
}
|
|
232
|
+
return obj;
|
|
233
|
+
},
|
|
234
|
+
create(base) {
|
|
235
|
+
return exports.response_Data.fromPartial(base ?? {});
|
|
236
|
+
},
|
|
237
|
+
fromPartial(object) {
|
|
238
|
+
const message = createBaseresponse_Data();
|
|
239
|
+
message.payment_status = object.payment_status ?? "";
|
|
240
|
+
message.external_order_id = object.external_order_id ?? "";
|
|
241
|
+
return message;
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
function longToNumber(long) {
|
|
245
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
246
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
247
|
+
}
|
|
248
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
249
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
250
|
+
}
|
|
251
|
+
return long.toNumber();
|
|
252
|
+
}
|
|
253
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
254
|
+
minimal_1.default.util.Long = long_1.default;
|
|
255
|
+
minimal_1.default.configure();
|
|
256
|
+
}
|
|
257
|
+
function isSet(value) {
|
|
258
|
+
return value !== null && value !== undefined;
|
|
259
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "payments.getpaymentoptions";
|
|
3
|
+
export interface request {
|
|
4
|
+
customer_id: string;
|
|
5
|
+
client_id: string;
|
|
6
|
+
}
|
|
7
|
+
export interface response {
|
|
8
|
+
status: string;
|
|
9
|
+
status_code: number;
|
|
10
|
+
data: response_Data | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface response_Data {
|
|
13
|
+
client_id: string;
|
|
14
|
+
payment_modes: string[];
|
|
15
|
+
}
|
|
16
|
+
export declare const request: {
|
|
17
|
+
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
19
|
+
fromJSON(object: any): request;
|
|
20
|
+
toJSON(message: request): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
23
|
+
};
|
|
24
|
+
export declare const response: {
|
|
25
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
27
|
+
fromJSON(object: any): response;
|
|
28
|
+
toJSON(message: response): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
31
|
+
};
|
|
32
|
+
export declare const response_Data: {
|
|
33
|
+
encode(message: response_Data, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data;
|
|
35
|
+
fromJSON(object: any): response_Data;
|
|
36
|
+
toJSON(message: response_Data): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
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 {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|