@stashfin/grpc 1.2.263 → 1.2.264
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/bureau/getreport.d.ts +3 -3
- package/ts/customers.d.ts +0 -28
- package/ts/customers.js +0 -20
- package/ts/decisionengine/decisionengine.d.ts +0 -1
- package/ts/decisionengine/decisionengine.js +4 -18
- package/ts/loans/approveloan.d.ts +0 -1
- package/ts/loans/approveloan.js +4 -19
- package/ts/loans/fcppayment.d.ts +1 -0
- package/ts/loans/fcppayment.js +17 -3
- package/ts/loans/foreclosepayment.d.ts +1 -0
- package/ts/loans/foreclosepayment.js +17 -3
- package/ts/loans/getloanbyid.d.ts +0 -1
- package/ts/loans/getloanbyid.js +0 -15
- package/ts/loans/loansummary.d.ts +0 -1
- package/ts/loans/loansummary.js +4 -19
- package/ts/loans/refund.d.ts +1 -0
- package/ts/loans/refund.js +17 -3
- package/ts/loans/rollback.d.ts +1 -0
- package/ts/loans/rollback.js +17 -3
- package/ts/loans/updateinstallments.d.ts +2 -0
- package/ts/loans/updateinstallments.js +43 -6
- package/ts/loans.d.ts +0 -14
- package/ts/loans.js +0 -10
- package/ts/customers/getpaymentoptions.d.ts +0 -51
- package/ts/customers/getpaymentoptions.js +0 -243
- package/ts/customers/updatecategory.d.ts +0 -36
- package/ts/customers/updatecategory.js +0 -147
- package/ts/loans/getusedlimit.d.ts +0 -35
- package/ts/loans/getusedlimit.js +0 -117
package/ts/loans/refund.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.refundResponse = exports.refundRequest = exports.protobufPackage = void
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.refund";
|
|
15
15
|
function createBaserefundRequest() {
|
|
16
|
-
return { amount: 0, customerid: 0, loan_id: 0, mode: "" };
|
|
16
|
+
return { amount: 0, customerid: 0, loan_id: 0, payment_id: 0, mode: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.refundRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,8 +26,11 @@ exports.refundRequest = {
|
|
|
26
26
|
if (message.loan_id !== 0) {
|
|
27
27
|
writer.uint32(24).int32(message.loan_id);
|
|
28
28
|
}
|
|
29
|
+
if (message.payment_id !== 0) {
|
|
30
|
+
writer.uint32(32).int32(message.payment_id);
|
|
31
|
+
}
|
|
29
32
|
if (message.mode !== "") {
|
|
30
|
-
writer.uint32(
|
|
33
|
+
writer.uint32(42).string(message.mode);
|
|
31
34
|
}
|
|
32
35
|
return writer;
|
|
33
36
|
},
|
|
@@ -57,7 +60,13 @@ exports.refundRequest = {
|
|
|
57
60
|
message.loan_id = reader.int32();
|
|
58
61
|
continue;
|
|
59
62
|
case 4:
|
|
60
|
-
if (tag !==
|
|
63
|
+
if (tag !== 32) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.payment_id = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 42) {
|
|
61
70
|
break;
|
|
62
71
|
}
|
|
63
72
|
message.mode = reader.string();
|
|
@@ -75,6 +84,7 @@ exports.refundRequest = {
|
|
|
75
84
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
76
85
|
customerid: isSet(object.customerid) ? globalThis.Number(object.customerid) : 0,
|
|
77
86
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
87
|
+
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
78
88
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
79
89
|
};
|
|
80
90
|
},
|
|
@@ -89,6 +99,9 @@ exports.refundRequest = {
|
|
|
89
99
|
if (message.loan_id !== 0) {
|
|
90
100
|
obj.loan_id = Math.round(message.loan_id);
|
|
91
101
|
}
|
|
102
|
+
if (message.payment_id !== 0) {
|
|
103
|
+
obj.payment_id = Math.round(message.payment_id);
|
|
104
|
+
}
|
|
92
105
|
if (message.mode !== "") {
|
|
93
106
|
obj.mode = message.mode;
|
|
94
107
|
}
|
|
@@ -102,6 +115,7 @@ exports.refundRequest = {
|
|
|
102
115
|
message.amount = object.amount ?? 0;
|
|
103
116
|
message.customerid = object.customerid ?? 0;
|
|
104
117
|
message.loan_id = object.loan_id ?? 0;
|
|
118
|
+
message.payment_id = object.payment_id ?? 0;
|
|
105
119
|
message.mode = object.mode ?? "";
|
|
106
120
|
return message;
|
|
107
121
|
},
|
package/ts/loans/rollback.d.ts
CHANGED
package/ts/loans/rollback.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.rollbackResponse = exports.rollbackRequest = exports.protobufPackage = v
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.rollback";
|
|
15
15
|
function createBaserollbackRequest() {
|
|
16
|
-
return { amount: 0, customerid: 0, loan_id: 0, mode: "" };
|
|
16
|
+
return { amount: 0, customerid: 0, loan_id: 0, payment_id: 0, mode: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.rollbackRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,8 +26,11 @@ exports.rollbackRequest = {
|
|
|
26
26
|
if (message.loan_id !== 0) {
|
|
27
27
|
writer.uint32(24).int32(message.loan_id);
|
|
28
28
|
}
|
|
29
|
+
if (message.payment_id !== 0) {
|
|
30
|
+
writer.uint32(32).int32(message.payment_id);
|
|
31
|
+
}
|
|
29
32
|
if (message.mode !== "") {
|
|
30
|
-
writer.uint32(
|
|
33
|
+
writer.uint32(42).string(message.mode);
|
|
31
34
|
}
|
|
32
35
|
return writer;
|
|
33
36
|
},
|
|
@@ -57,7 +60,13 @@ exports.rollbackRequest = {
|
|
|
57
60
|
message.loan_id = reader.int32();
|
|
58
61
|
continue;
|
|
59
62
|
case 4:
|
|
60
|
-
if (tag !==
|
|
63
|
+
if (tag !== 32) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.payment_id = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 42) {
|
|
61
70
|
break;
|
|
62
71
|
}
|
|
63
72
|
message.mode = reader.string();
|
|
@@ -75,6 +84,7 @@ exports.rollbackRequest = {
|
|
|
75
84
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
76
85
|
customerid: isSet(object.customerid) ? globalThis.Number(object.customerid) : 0,
|
|
77
86
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
87
|
+
payment_id: isSet(object.payment_id) ? globalThis.Number(object.payment_id) : 0,
|
|
78
88
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
79
89
|
};
|
|
80
90
|
},
|
|
@@ -89,6 +99,9 @@ exports.rollbackRequest = {
|
|
|
89
99
|
if (message.loan_id !== 0) {
|
|
90
100
|
obj.loan_id = Math.round(message.loan_id);
|
|
91
101
|
}
|
|
102
|
+
if (message.payment_id !== 0) {
|
|
103
|
+
obj.payment_id = Math.round(message.payment_id);
|
|
104
|
+
}
|
|
92
105
|
if (message.mode !== "") {
|
|
93
106
|
obj.mode = message.mode;
|
|
94
107
|
}
|
|
@@ -102,6 +115,7 @@ exports.rollbackRequest = {
|
|
|
102
115
|
message.amount = object.amount ?? 0;
|
|
103
116
|
message.customerid = object.customerid ?? 0;
|
|
104
117
|
message.loan_id = object.loan_id ?? 0;
|
|
118
|
+
message.payment_id = object.payment_id ?? 0;
|
|
105
119
|
message.mode = object.mode ?? "";
|
|
106
120
|
return message;
|
|
107
121
|
},
|
|
@@ -4,8 +4,10 @@ export interface updateInstallmentsRequest {
|
|
|
4
4
|
installment_id: number;
|
|
5
5
|
r_principal: number;
|
|
6
6
|
r_interest: number;
|
|
7
|
+
r_penalty: number;
|
|
7
8
|
r_pif_principal: number;
|
|
8
9
|
r_pif_interest: number;
|
|
10
|
+
r_pif_penalty: number;
|
|
9
11
|
amount: number;
|
|
10
12
|
}
|
|
11
13
|
export interface updateInstallmentsResponse {
|
|
@@ -13,7 +13,16 @@ exports.updateInstallmentsResponse = exports.updateInstallmentsRequest = exports
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.updateinstallments";
|
|
15
15
|
function createBaseupdateInstallmentsRequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {
|
|
17
|
+
installment_id: 0,
|
|
18
|
+
r_principal: 0,
|
|
19
|
+
r_interest: 0,
|
|
20
|
+
r_penalty: 0,
|
|
21
|
+
r_pif_principal: 0,
|
|
22
|
+
r_pif_interest: 0,
|
|
23
|
+
r_pif_penalty: 0,
|
|
24
|
+
amount: 0,
|
|
25
|
+
};
|
|
17
26
|
}
|
|
18
27
|
exports.updateInstallmentsRequest = {
|
|
19
28
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -26,14 +35,20 @@ exports.updateInstallmentsRequest = {
|
|
|
26
35
|
if (message.r_interest !== 0) {
|
|
27
36
|
writer.uint32(24).int32(message.r_interest);
|
|
28
37
|
}
|
|
38
|
+
if (message.r_penalty !== 0) {
|
|
39
|
+
writer.uint32(32).int32(message.r_penalty);
|
|
40
|
+
}
|
|
29
41
|
if (message.r_pif_principal !== 0) {
|
|
30
|
-
writer.uint32(
|
|
42
|
+
writer.uint32(40).int32(message.r_pif_principal);
|
|
31
43
|
}
|
|
32
44
|
if (message.r_pif_interest !== 0) {
|
|
33
|
-
writer.uint32(
|
|
45
|
+
writer.uint32(48).int32(message.r_pif_interest);
|
|
46
|
+
}
|
|
47
|
+
if (message.r_pif_penalty !== 0) {
|
|
48
|
+
writer.uint32(56).int32(message.r_pif_penalty);
|
|
34
49
|
}
|
|
35
50
|
if (message.amount !== 0) {
|
|
36
|
-
writer.uint32(
|
|
51
|
+
writer.uint32(64).int32(message.amount);
|
|
37
52
|
}
|
|
38
53
|
return writer;
|
|
39
54
|
},
|
|
@@ -66,18 +81,30 @@ exports.updateInstallmentsRequest = {
|
|
|
66
81
|
if (tag !== 32) {
|
|
67
82
|
break;
|
|
68
83
|
}
|
|
69
|
-
message.
|
|
84
|
+
message.r_penalty = reader.int32();
|
|
70
85
|
continue;
|
|
71
86
|
case 5:
|
|
72
87
|
if (tag !== 40) {
|
|
73
88
|
break;
|
|
74
89
|
}
|
|
75
|
-
message.
|
|
90
|
+
message.r_pif_principal = reader.int32();
|
|
76
91
|
continue;
|
|
77
92
|
case 6:
|
|
78
93
|
if (tag !== 48) {
|
|
79
94
|
break;
|
|
80
95
|
}
|
|
96
|
+
message.r_pif_interest = reader.int32();
|
|
97
|
+
continue;
|
|
98
|
+
case 7:
|
|
99
|
+
if (tag !== 56) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.r_pif_penalty = reader.int32();
|
|
103
|
+
continue;
|
|
104
|
+
case 8:
|
|
105
|
+
if (tag !== 64) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
81
108
|
message.amount = reader.int32();
|
|
82
109
|
continue;
|
|
83
110
|
}
|
|
@@ -93,8 +120,10 @@ exports.updateInstallmentsRequest = {
|
|
|
93
120
|
installment_id: isSet(object.installment_id) ? globalThis.Number(object.installment_id) : 0,
|
|
94
121
|
r_principal: isSet(object.r_principal) ? globalThis.Number(object.r_principal) : 0,
|
|
95
122
|
r_interest: isSet(object.r_interest) ? globalThis.Number(object.r_interest) : 0,
|
|
123
|
+
r_penalty: isSet(object.r_penalty) ? globalThis.Number(object.r_penalty) : 0,
|
|
96
124
|
r_pif_principal: isSet(object.r_pif_principal) ? globalThis.Number(object.r_pif_principal) : 0,
|
|
97
125
|
r_pif_interest: isSet(object.r_pif_interest) ? globalThis.Number(object.r_pif_interest) : 0,
|
|
126
|
+
r_pif_penalty: isSet(object.r_pif_penalty) ? globalThis.Number(object.r_pif_penalty) : 0,
|
|
98
127
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
99
128
|
};
|
|
100
129
|
},
|
|
@@ -109,12 +138,18 @@ exports.updateInstallmentsRequest = {
|
|
|
109
138
|
if (message.r_interest !== 0) {
|
|
110
139
|
obj.r_interest = Math.round(message.r_interest);
|
|
111
140
|
}
|
|
141
|
+
if (message.r_penalty !== 0) {
|
|
142
|
+
obj.r_penalty = Math.round(message.r_penalty);
|
|
143
|
+
}
|
|
112
144
|
if (message.r_pif_principal !== 0) {
|
|
113
145
|
obj.r_pif_principal = Math.round(message.r_pif_principal);
|
|
114
146
|
}
|
|
115
147
|
if (message.r_pif_interest !== 0) {
|
|
116
148
|
obj.r_pif_interest = Math.round(message.r_pif_interest);
|
|
117
149
|
}
|
|
150
|
+
if (message.r_pif_penalty !== 0) {
|
|
151
|
+
obj.r_pif_penalty = Math.round(message.r_pif_penalty);
|
|
152
|
+
}
|
|
118
153
|
if (message.amount !== 0) {
|
|
119
154
|
obj.amount = Math.round(message.amount);
|
|
120
155
|
}
|
|
@@ -128,8 +163,10 @@ exports.updateInstallmentsRequest = {
|
|
|
128
163
|
message.installment_id = object.installment_id ?? 0;
|
|
129
164
|
message.r_principal = object.r_principal ?? 0;
|
|
130
165
|
message.r_interest = object.r_interest ?? 0;
|
|
166
|
+
message.r_penalty = object.r_penalty ?? 0;
|
|
131
167
|
message.r_pif_principal = object.r_pif_principal ?? 0;
|
|
132
168
|
message.r_pif_interest = object.r_pif_interest ?? 0;
|
|
169
|
+
message.r_pif_penalty = object.r_pif_penalty ?? 0;
|
|
133
170
|
message.amount = object.amount ?? 0;
|
|
134
171
|
return message;
|
|
135
172
|
},
|
package/ts/loans.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import { getNextdueAmountRequest, getNextdueAmountResponse } from "./loans/getne
|
|
|
15
15
|
import { getPendingEmiAmountRequest, getPendingEmiAmountResponse } from "./loans/getpendingemiamount";
|
|
16
16
|
import { getSummaryStaticFieldsRequest, getSummaryStaticFieldsResponse } from "./loans/getsummarystaticfields";
|
|
17
17
|
import { getTransactionStatusRequest, getTransactionStatusResponse } from "./loans/gettransactionstatus";
|
|
18
|
-
import { getUsedLimitfoRequest, getUsedLimitfoResponse } from "./loans/getusedlimit";
|
|
19
18
|
import { getVirtualBankInfoRequest, getVirtualBankInfoResponse } from "./loans/getvirtualbankinfo";
|
|
20
19
|
import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
|
|
21
20
|
import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
|
|
@@ -303,15 +302,6 @@ export declare const loansService: {
|
|
|
303
302
|
readonly responseSerialize: (value: updateTransactionStatusResponse) => Buffer;
|
|
304
303
|
readonly responseDeserialize: (value: Buffer) => updateTransactionStatusResponse;
|
|
305
304
|
};
|
|
306
|
-
readonly getUsedLimit: {
|
|
307
|
-
readonly path: "/service.loans/getUsedLimit";
|
|
308
|
-
readonly requestStream: false;
|
|
309
|
-
readonly responseStream: false;
|
|
310
|
-
readonly requestSerialize: (value: getUsedLimitfoRequest) => Buffer;
|
|
311
|
-
readonly requestDeserialize: (value: Buffer) => getUsedLimitfoRequest;
|
|
312
|
-
readonly responseSerialize: (value: getUsedLimitfoResponse) => Buffer;
|
|
313
|
-
readonly responseDeserialize: (value: Buffer) => getUsedLimitfoResponse;
|
|
314
|
-
};
|
|
315
305
|
};
|
|
316
306
|
export interface loansServer extends UntypedServiceImplementation {
|
|
317
307
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -344,7 +334,6 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
344
334
|
getVirtualBankInfo: handleUnaryCall<getVirtualBankInfoRequest, getVirtualBankInfoResponse>;
|
|
345
335
|
gettransactionstatus: handleUnaryCall<getTransactionStatusRequest, getTransactionStatusResponse>;
|
|
346
336
|
updatetransactionstatus: handleUnaryCall<updateTransactionStatusRequest, updateTransactionStatusResponse>;
|
|
347
|
-
getUsedLimit: handleUnaryCall<getUsedLimitfoRequest, getUsedLimitfoResponse>;
|
|
348
337
|
}
|
|
349
338
|
export interface loansClient extends Client {
|
|
350
339
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -437,9 +426,6 @@ export interface loansClient extends Client {
|
|
|
437
426
|
updatetransactionstatus(request: updateTransactionStatusRequest, callback: (error: ServiceError | null, response: updateTransactionStatusResponse) => void): ClientUnaryCall;
|
|
438
427
|
updatetransactionstatus(request: updateTransactionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateTransactionStatusResponse) => void): ClientUnaryCall;
|
|
439
428
|
updatetransactionstatus(request: updateTransactionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateTransactionStatusResponse) => void): ClientUnaryCall;
|
|
440
|
-
getUsedLimit(request: getUsedLimitfoRequest, callback: (error: ServiceError | null, response: getUsedLimitfoResponse) => void): ClientUnaryCall;
|
|
441
|
-
getUsedLimit(request: getUsedLimitfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getUsedLimitfoResponse) => void): ClientUnaryCall;
|
|
442
|
-
getUsedLimit(request: getUsedLimitfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getUsedLimitfoResponse) => void): ClientUnaryCall;
|
|
443
429
|
}
|
|
444
430
|
export declare const loansClient: {
|
|
445
431
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -24,7 +24,6 @@ const getnextdueamount_1 = require("./loans/getnextdueamount");
|
|
|
24
24
|
const getpendingemiamount_1 = require("./loans/getpendingemiamount");
|
|
25
25
|
const getsummarystaticfields_1 = require("./loans/getsummarystaticfields");
|
|
26
26
|
const gettransactionstatus_1 = require("./loans/gettransactionstatus");
|
|
27
|
-
const getusedlimit_1 = require("./loans/getusedlimit");
|
|
28
27
|
const getvirtualbankinfo_1 = require("./loans/getvirtualbankinfo");
|
|
29
28
|
const loansummary_1 = require("./loans/loansummary");
|
|
30
29
|
const paymentallocation_1 = require("./loans/paymentallocation");
|
|
@@ -311,14 +310,5 @@ exports.loansService = {
|
|
|
311
310
|
responseSerialize: (value) => Buffer.from(updatetransactionstatus_1.updateTransactionStatusResponse.encode(value).finish()),
|
|
312
311
|
responseDeserialize: (value) => updatetransactionstatus_1.updateTransactionStatusResponse.decode(value),
|
|
313
312
|
},
|
|
314
|
-
getUsedLimit: {
|
|
315
|
-
path: "/service.loans/getUsedLimit",
|
|
316
|
-
requestStream: false,
|
|
317
|
-
responseStream: false,
|
|
318
|
-
requestSerialize: (value) => Buffer.from(getusedlimit_1.getUsedLimitfoRequest.encode(value).finish()),
|
|
319
|
-
requestDeserialize: (value) => getusedlimit_1.getUsedLimitfoRequest.decode(value),
|
|
320
|
-
responseSerialize: (value) => Buffer.from(getusedlimit_1.getUsedLimitfoResponse.encode(value).finish()),
|
|
321
|
-
responseDeserialize: (value) => getusedlimit_1.getUsedLimitfoResponse.decode(value),
|
|
322
|
-
},
|
|
323
313
|
};
|
|
324
314
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "customers.getpaymentoptions";
|
|
3
|
-
export interface paymentOptionRequest {
|
|
4
|
-
order_id: string;
|
|
5
|
-
}
|
|
6
|
-
export interface paymentOptionResponse {
|
|
7
|
-
options: PaymentOption[];
|
|
8
|
-
}
|
|
9
|
-
export interface PaymentOption {
|
|
10
|
-
modes: string[];
|
|
11
|
-
gateway: string;
|
|
12
|
-
amount: number;
|
|
13
|
-
service_fee: number;
|
|
14
|
-
other_fees: number;
|
|
15
|
-
total_amount: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const paymentOptionRequest: {
|
|
18
|
-
encode(message: paymentOptionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): paymentOptionRequest;
|
|
20
|
-
fromJSON(object: any): paymentOptionRequest;
|
|
21
|
-
toJSON(message: paymentOptionRequest): unknown;
|
|
22
|
-
create<I extends Exact<DeepPartial<paymentOptionRequest>, I>>(base?: I): paymentOptionRequest;
|
|
23
|
-
fromPartial<I extends Exact<DeepPartial<paymentOptionRequest>, I>>(object: I): paymentOptionRequest;
|
|
24
|
-
};
|
|
25
|
-
export declare const paymentOptionResponse: {
|
|
26
|
-
encode(message: paymentOptionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): paymentOptionResponse;
|
|
28
|
-
fromJSON(object: any): paymentOptionResponse;
|
|
29
|
-
toJSON(message: paymentOptionResponse): unknown;
|
|
30
|
-
create<I extends Exact<DeepPartial<paymentOptionResponse>, I>>(base?: I): paymentOptionResponse;
|
|
31
|
-
fromPartial<I extends Exact<DeepPartial<paymentOptionResponse>, I>>(object: I): paymentOptionResponse;
|
|
32
|
-
};
|
|
33
|
-
export declare const PaymentOption: {
|
|
34
|
-
encode(message: PaymentOption, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PaymentOption;
|
|
36
|
-
fromJSON(object: any): PaymentOption;
|
|
37
|
-
toJSON(message: PaymentOption): unknown;
|
|
38
|
-
create<I extends Exact<DeepPartial<PaymentOption>, I>>(base?: I): PaymentOption;
|
|
39
|
-
fromPartial<I extends Exact<DeepPartial<PaymentOption>, I>>(object: I): PaymentOption;
|
|
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 {};
|
|
@@ -1,243 +0,0 @@
|
|
|
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: customers/getpaymentoptions.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.PaymentOption = exports.paymentOptionResponse = exports.paymentOptionRequest = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "customers.getpaymentoptions";
|
|
15
|
-
function createBasepaymentOptionRequest() {
|
|
16
|
-
return { order_id: "" };
|
|
17
|
-
}
|
|
18
|
-
exports.paymentOptionRequest = {
|
|
19
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.order_id !== "") {
|
|
21
|
-
writer.uint32(10).string(message.order_id);
|
|
22
|
-
}
|
|
23
|
-
return writer;
|
|
24
|
-
},
|
|
25
|
-
decode(input, length) {
|
|
26
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message = createBasepaymentOptionRequest();
|
|
29
|
-
while (reader.pos < end) {
|
|
30
|
-
const tag = reader.uint32();
|
|
31
|
-
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
if (tag !== 10) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
message.order_id = reader.string();
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
reader.skipType(tag & 7);
|
|
43
|
-
}
|
|
44
|
-
return message;
|
|
45
|
-
},
|
|
46
|
-
fromJSON(object) {
|
|
47
|
-
return { order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "" };
|
|
48
|
-
},
|
|
49
|
-
toJSON(message) {
|
|
50
|
-
const obj = {};
|
|
51
|
-
if (message.order_id !== "") {
|
|
52
|
-
obj.order_id = message.order_id;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
},
|
|
56
|
-
create(base) {
|
|
57
|
-
return exports.paymentOptionRequest.fromPartial(base ?? {});
|
|
58
|
-
},
|
|
59
|
-
fromPartial(object) {
|
|
60
|
-
const message = createBasepaymentOptionRequest();
|
|
61
|
-
message.order_id = object.order_id ?? "";
|
|
62
|
-
return message;
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
function createBasepaymentOptionResponse() {
|
|
66
|
-
return { options: [] };
|
|
67
|
-
}
|
|
68
|
-
exports.paymentOptionResponse = {
|
|
69
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
for (const v of message.options) {
|
|
71
|
-
exports.PaymentOption.encode(v, writer.uint32(10).fork()).ldelim();
|
|
72
|
-
}
|
|
73
|
-
return writer;
|
|
74
|
-
},
|
|
75
|
-
decode(input, length) {
|
|
76
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message = createBasepaymentOptionResponse();
|
|
79
|
-
while (reader.pos < end) {
|
|
80
|
-
const tag = reader.uint32();
|
|
81
|
-
switch (tag >>> 3) {
|
|
82
|
-
case 1:
|
|
83
|
-
if (tag !== 10) {
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
message.options.push(exports.PaymentOption.decode(reader, reader.uint32()));
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
-
break;
|
|
91
|
-
}
|
|
92
|
-
reader.skipType(tag & 7);
|
|
93
|
-
}
|
|
94
|
-
return message;
|
|
95
|
-
},
|
|
96
|
-
fromJSON(object) {
|
|
97
|
-
return {
|
|
98
|
-
options: globalThis.Array.isArray(object?.options)
|
|
99
|
-
? object.options.map((e) => exports.PaymentOption.fromJSON(e))
|
|
100
|
-
: [],
|
|
101
|
-
};
|
|
102
|
-
},
|
|
103
|
-
toJSON(message) {
|
|
104
|
-
const obj = {};
|
|
105
|
-
if (message.options?.length) {
|
|
106
|
-
obj.options = message.options.map((e) => exports.PaymentOption.toJSON(e));
|
|
107
|
-
}
|
|
108
|
-
return obj;
|
|
109
|
-
},
|
|
110
|
-
create(base) {
|
|
111
|
-
return exports.paymentOptionResponse.fromPartial(base ?? {});
|
|
112
|
-
},
|
|
113
|
-
fromPartial(object) {
|
|
114
|
-
const message = createBasepaymentOptionResponse();
|
|
115
|
-
message.options = object.options?.map((e) => exports.PaymentOption.fromPartial(e)) || [];
|
|
116
|
-
return message;
|
|
117
|
-
},
|
|
118
|
-
};
|
|
119
|
-
function createBasePaymentOption() {
|
|
120
|
-
return { modes: [], gateway: "", amount: 0, service_fee: 0, other_fees: 0, total_amount: 0 };
|
|
121
|
-
}
|
|
122
|
-
exports.PaymentOption = {
|
|
123
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
124
|
-
for (const v of message.modes) {
|
|
125
|
-
writer.uint32(10).string(v);
|
|
126
|
-
}
|
|
127
|
-
if (message.gateway !== "") {
|
|
128
|
-
writer.uint32(18).string(message.gateway);
|
|
129
|
-
}
|
|
130
|
-
if (message.amount !== 0) {
|
|
131
|
-
writer.uint32(25).double(message.amount);
|
|
132
|
-
}
|
|
133
|
-
if (message.service_fee !== 0) {
|
|
134
|
-
writer.uint32(33).double(message.service_fee);
|
|
135
|
-
}
|
|
136
|
-
if (message.other_fees !== 0) {
|
|
137
|
-
writer.uint32(41).double(message.other_fees);
|
|
138
|
-
}
|
|
139
|
-
if (message.total_amount !== 0) {
|
|
140
|
-
writer.uint32(49).double(message.total_amount);
|
|
141
|
-
}
|
|
142
|
-
return writer;
|
|
143
|
-
},
|
|
144
|
-
decode(input, length) {
|
|
145
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
146
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
147
|
-
const message = createBasePaymentOption();
|
|
148
|
-
while (reader.pos < end) {
|
|
149
|
-
const tag = reader.uint32();
|
|
150
|
-
switch (tag >>> 3) {
|
|
151
|
-
case 1:
|
|
152
|
-
if (tag !== 10) {
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
message.modes.push(reader.string());
|
|
156
|
-
continue;
|
|
157
|
-
case 2:
|
|
158
|
-
if (tag !== 18) {
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
message.gateway = reader.string();
|
|
162
|
-
continue;
|
|
163
|
-
case 3:
|
|
164
|
-
if (tag !== 25) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
message.amount = reader.double();
|
|
168
|
-
continue;
|
|
169
|
-
case 4:
|
|
170
|
-
if (tag !== 33) {
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
message.service_fee = reader.double();
|
|
174
|
-
continue;
|
|
175
|
-
case 5:
|
|
176
|
-
if (tag !== 41) {
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
message.other_fees = reader.double();
|
|
180
|
-
continue;
|
|
181
|
-
case 6:
|
|
182
|
-
if (tag !== 49) {
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
message.total_amount = reader.double();
|
|
186
|
-
continue;
|
|
187
|
-
}
|
|
188
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
reader.skipType(tag & 7);
|
|
192
|
-
}
|
|
193
|
-
return message;
|
|
194
|
-
},
|
|
195
|
-
fromJSON(object) {
|
|
196
|
-
return {
|
|
197
|
-
modes: globalThis.Array.isArray(object?.modes) ? object.modes.map((e) => globalThis.String(e)) : [],
|
|
198
|
-
gateway: isSet(object.gateway) ? globalThis.String(object.gateway) : "",
|
|
199
|
-
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
200
|
-
service_fee: isSet(object.service_fee) ? globalThis.Number(object.service_fee) : 0,
|
|
201
|
-
other_fees: isSet(object.other_fees) ? globalThis.Number(object.other_fees) : 0,
|
|
202
|
-
total_amount: isSet(object.total_amount) ? globalThis.Number(object.total_amount) : 0,
|
|
203
|
-
};
|
|
204
|
-
},
|
|
205
|
-
toJSON(message) {
|
|
206
|
-
const obj = {};
|
|
207
|
-
if (message.modes?.length) {
|
|
208
|
-
obj.modes = message.modes;
|
|
209
|
-
}
|
|
210
|
-
if (message.gateway !== "") {
|
|
211
|
-
obj.gateway = message.gateway;
|
|
212
|
-
}
|
|
213
|
-
if (message.amount !== 0) {
|
|
214
|
-
obj.amount = message.amount;
|
|
215
|
-
}
|
|
216
|
-
if (message.service_fee !== 0) {
|
|
217
|
-
obj.service_fee = message.service_fee;
|
|
218
|
-
}
|
|
219
|
-
if (message.other_fees !== 0) {
|
|
220
|
-
obj.other_fees = message.other_fees;
|
|
221
|
-
}
|
|
222
|
-
if (message.total_amount !== 0) {
|
|
223
|
-
obj.total_amount = message.total_amount;
|
|
224
|
-
}
|
|
225
|
-
return obj;
|
|
226
|
-
},
|
|
227
|
-
create(base) {
|
|
228
|
-
return exports.PaymentOption.fromPartial(base ?? {});
|
|
229
|
-
},
|
|
230
|
-
fromPartial(object) {
|
|
231
|
-
const message = createBasePaymentOption();
|
|
232
|
-
message.modes = object.modes?.map((e) => e) || [];
|
|
233
|
-
message.gateway = object.gateway ?? "";
|
|
234
|
-
message.amount = object.amount ?? 0;
|
|
235
|
-
message.service_fee = object.service_fee ?? 0;
|
|
236
|
-
message.other_fees = object.other_fees ?? 0;
|
|
237
|
-
message.total_amount = object.total_amount ?? 0;
|
|
238
|
-
return message;
|
|
239
|
-
},
|
|
240
|
-
};
|
|
241
|
-
function isSet(value) {
|
|
242
|
-
return value !== null && value !== undefined;
|
|
243
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "customers.updatecategory";
|
|
3
|
-
export interface updateCategoryRequest {
|
|
4
|
-
customer_id: number;
|
|
5
|
-
category: string;
|
|
6
|
-
}
|
|
7
|
-
export interface updateCategoryResponse {
|
|
8
|
-
status: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const updateCategoryRequest: {
|
|
11
|
-
encode(message: updateCategoryRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): updateCategoryRequest;
|
|
13
|
-
fromJSON(object: any): updateCategoryRequest;
|
|
14
|
-
toJSON(message: updateCategoryRequest): unknown;
|
|
15
|
-
create<I extends Exact<DeepPartial<updateCategoryRequest>, I>>(base?: I): updateCategoryRequest;
|
|
16
|
-
fromPartial<I extends Exact<DeepPartial<updateCategoryRequest>, I>>(object: I): updateCategoryRequest;
|
|
17
|
-
};
|
|
18
|
-
export declare const updateCategoryResponse: {
|
|
19
|
-
encode(message: updateCategoryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): updateCategoryResponse;
|
|
21
|
-
fromJSON(object: any): updateCategoryResponse;
|
|
22
|
-
toJSON(message: updateCategoryResponse): unknown;
|
|
23
|
-
create<I extends Exact<DeepPartial<updateCategoryResponse>, I>>(base?: I): updateCategoryResponse;
|
|
24
|
-
fromPartial<I extends Exact<DeepPartial<updateCategoryResponse>, I>>(object: I): updateCategoryResponse;
|
|
25
|
-
};
|
|
26
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
-
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 {} ? {
|
|
28
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
-
} : Partial<T>;
|
|
30
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
-
} & {
|
|
34
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
-
};
|
|
36
|
-
export {};
|