@stashfin/grpc 1.2.299 → 1.2.301
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/cb/cbpaynow.d.ts +37 -0
- package/ts/customers/cb/cbpaynow.js +147 -0
- package/ts/customers/freedom/freedompaynow.d.ts +1 -0
- package/ts/customers/freedom/freedompaynow.js +19 -5
- package/ts/customers.d.ts +11 -11
- package/ts/customers.js +7 -7
- package/ts/growth/initiatepayment.js +4 -18
- package/ts/loans/getvirtualaccountnumber.d.ts +1 -1
- package/ts/loans/getvirtualaccountnumber.js +9 -9
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.cb.cbpaynow";
|
|
3
|
+
export interface cbPayNowRequest {
|
|
4
|
+
amount: number;
|
|
5
|
+
mode: string;
|
|
6
|
+
order_id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface cbPayNowResponse {
|
|
9
|
+
web_url: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const cbPayNowRequest: {
|
|
12
|
+
encode(message: cbPayNowRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): cbPayNowRequest;
|
|
14
|
+
fromJSON(object: any): cbPayNowRequest;
|
|
15
|
+
toJSON(message: cbPayNowRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<cbPayNowRequest>, I>>(base?: I): cbPayNowRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<cbPayNowRequest>, I>>(object: I): cbPayNowRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const cbPayNowResponse: {
|
|
20
|
+
encode(message: cbPayNowResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): cbPayNowResponse;
|
|
22
|
+
fromJSON(object: any): cbPayNowResponse;
|
|
23
|
+
toJSON(message: cbPayNowResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<cbPayNowResponse>, I>>(base?: I): cbPayNowResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<cbPayNowResponse>, I>>(object: I): cbPayNowResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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 {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
|
+
// source: customers/cb/cbpaynow.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.cbPayNowResponse = exports.cbPayNowRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.cb.cbpaynow";
|
|
15
|
+
function createBasecbPayNowRequest() {
|
|
16
|
+
return { amount: 0, mode: "", order_id: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.cbPayNowRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.amount !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.amount);
|
|
22
|
+
}
|
|
23
|
+
if (message.mode !== "") {
|
|
24
|
+
writer.uint32(18).string(message.mode);
|
|
25
|
+
}
|
|
26
|
+
if (message.order_id !== "") {
|
|
27
|
+
writer.uint32(26).string(message.order_id);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBasecbPayNowRequest();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 8) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.amount = reader.int32();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.mode = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.order_id = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
reader.skipType(tag & 7);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromJSON(object) {
|
|
65
|
+
return {
|
|
66
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
67
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
68
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.amount !== 0) {
|
|
74
|
+
obj.amount = Math.round(message.amount);
|
|
75
|
+
}
|
|
76
|
+
if (message.mode !== "") {
|
|
77
|
+
obj.mode = message.mode;
|
|
78
|
+
}
|
|
79
|
+
if (message.order_id !== "") {
|
|
80
|
+
obj.order_id = message.order_id;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.cbPayNowRequest.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBasecbPayNowRequest();
|
|
89
|
+
message.amount = object.amount ?? 0;
|
|
90
|
+
message.mode = object.mode ?? "";
|
|
91
|
+
message.order_id = object.order_id ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBasecbPayNowResponse() {
|
|
96
|
+
return { web_url: "" };
|
|
97
|
+
}
|
|
98
|
+
exports.cbPayNowResponse = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.web_url !== "") {
|
|
101
|
+
writer.uint32(10).string(message.web_url);
|
|
102
|
+
}
|
|
103
|
+
return writer;
|
|
104
|
+
},
|
|
105
|
+
decode(input, length) {
|
|
106
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
+
const message = createBasecbPayNowResponse();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
if (tag !== 10) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.web_url = reader.string();
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
}
|
|
124
|
+
return message;
|
|
125
|
+
},
|
|
126
|
+
fromJSON(object) {
|
|
127
|
+
return { web_url: isSet(object.web_url) ? globalThis.String(object.web_url) : "" };
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
if (message.web_url !== "") {
|
|
132
|
+
obj.web_url = message.web_url;
|
|
133
|
+
}
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.cbPayNowResponse.fromPartial(base ?? {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
const message = createBasecbPayNowResponse();
|
|
141
|
+
message.web_url = object.web_url ?? "";
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
function isSet(value) {
|
|
146
|
+
return value !== null && value !== undefined;
|
|
147
|
+
}
|
|
@@ -13,15 +13,18 @@ exports.freedomPayNowResponse = exports.freedomPayNowRequest = exports.protobufP
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.freedom.freedompaynow";
|
|
15
15
|
function createBasefreedomPayNowRequest() {
|
|
16
|
-
return { mode: "", order_id: "" };
|
|
16
|
+
return { amount: 0, mode: "", order_id: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.freedomPayNowRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.amount !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.amount);
|
|
22
|
+
}
|
|
20
23
|
if (message.mode !== "") {
|
|
21
|
-
writer.uint32(
|
|
24
|
+
writer.uint32(18).string(message.mode);
|
|
22
25
|
}
|
|
23
26
|
if (message.order_id !== "") {
|
|
24
|
-
writer.uint32(
|
|
27
|
+
writer.uint32(26).string(message.order_id);
|
|
25
28
|
}
|
|
26
29
|
return writer;
|
|
27
30
|
},
|
|
@@ -33,15 +36,21 @@ exports.freedomPayNowRequest = {
|
|
|
33
36
|
const tag = reader.uint32();
|
|
34
37
|
switch (tag >>> 3) {
|
|
35
38
|
case 1:
|
|
36
|
-
if (tag !==
|
|
39
|
+
if (tag !== 8) {
|
|
37
40
|
break;
|
|
38
41
|
}
|
|
39
|
-
message.
|
|
42
|
+
message.amount = reader.int32();
|
|
40
43
|
continue;
|
|
41
44
|
case 2:
|
|
42
45
|
if (tag !== 18) {
|
|
43
46
|
break;
|
|
44
47
|
}
|
|
48
|
+
message.mode = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
45
54
|
message.order_id = reader.string();
|
|
46
55
|
continue;
|
|
47
56
|
}
|
|
@@ -54,12 +63,16 @@ exports.freedomPayNowRequest = {
|
|
|
54
63
|
},
|
|
55
64
|
fromJSON(object) {
|
|
56
65
|
return {
|
|
66
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
57
67
|
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
58
68
|
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
59
69
|
};
|
|
60
70
|
},
|
|
61
71
|
toJSON(message) {
|
|
62
72
|
const obj = {};
|
|
73
|
+
if (message.amount !== 0) {
|
|
74
|
+
obj.amount = Math.round(message.amount);
|
|
75
|
+
}
|
|
63
76
|
if (message.mode !== "") {
|
|
64
77
|
obj.mode = message.mode;
|
|
65
78
|
}
|
|
@@ -73,6 +86,7 @@ exports.freedomPayNowRequest = {
|
|
|
73
86
|
},
|
|
74
87
|
fromPartial(object) {
|
|
75
88
|
const message = createBasefreedomPayNowRequest();
|
|
89
|
+
message.amount = object.amount ?? 0;
|
|
76
90
|
message.mode = object.mode ?? "";
|
|
77
91
|
message.order_id = object.order_id ?? "";
|
|
78
92
|
return message;
|
package/ts/customers.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ import { addSuspendedCustomerRequest, addSuspendedCustomerResponse } from "./cus
|
|
|
11
11
|
import { AddUserAppsRequest, AddUserAppsResponse } from "./customers/adduserapps";
|
|
12
12
|
import { bulkSMSRequest, bulkSMSResponse } from "./customers/bulksms";
|
|
13
13
|
import { getCbRejectedDataRequest, getCbRejectedDataResponse } from "./customers/cb/cbapplicationrejecteddata";
|
|
14
|
+
import { cbPayNowRequest, cbPayNowResponse } from "./customers/cb/cbpaynow";
|
|
14
15
|
import { cBSignupRequest, cBSignupResponse } from "./customers/cb/cbsignup";
|
|
15
16
|
import { getCBTxnStatusRequest, getCBTxnStatusResponse } from "./customers/cb/getcbtxnstatus";
|
|
16
17
|
import { getCreditBuilderRequest, getCreditBuilderResponse } from "./customers/cb/getcreditbuilder";
|
|
17
18
|
import { getPaymentSummaryRequest, getPaymentSummaryResponse } from "./customers/cb/getpaymentsummary";
|
|
18
19
|
import { lessCsImproveRequest, lessCsImproveResponse } from "./customers/cb/lesscsimprove";
|
|
19
20
|
import { moreCsImproveRequest, moreCsImproveResponse } from "./customers/cb/morecsimprove";
|
|
20
|
-
import { payNowRequest, payNowResponse } from "./customers/cb/paynow";
|
|
21
21
|
import { saveCreditBuilderRequest, saveCreditBuilderResponse } from "./customers/cb/savecreditbuilder";
|
|
22
22
|
import { updateCBTxnStatusRequest, updateCBTxnStatusResponse } from "./customers/cb/updatecbtxnstatus";
|
|
23
23
|
import { changeMpinRequest, changeMpinResponse } from "./customers/changempin";
|
|
@@ -710,14 +710,14 @@ export declare const customersService: {
|
|
|
710
710
|
readonly responseSerialize: (value: cBSignupResponse) => Buffer;
|
|
711
711
|
readonly responseDeserialize: (value: Buffer) => cBSignupResponse;
|
|
712
712
|
};
|
|
713
|
-
readonly
|
|
714
|
-
readonly path: "/service.customers/
|
|
713
|
+
readonly cbPayNow: {
|
|
714
|
+
readonly path: "/service.customers/cbPayNow";
|
|
715
715
|
readonly requestStream: false;
|
|
716
716
|
readonly responseStream: false;
|
|
717
|
-
readonly requestSerialize: (value:
|
|
718
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
719
|
-
readonly responseSerialize: (value:
|
|
720
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
717
|
+
readonly requestSerialize: (value: cbPayNowRequest) => Buffer;
|
|
718
|
+
readonly requestDeserialize: (value: Buffer) => cbPayNowRequest;
|
|
719
|
+
readonly responseSerialize: (value: cbPayNowResponse) => Buffer;
|
|
720
|
+
readonly responseDeserialize: (value: Buffer) => cbPayNowResponse;
|
|
721
721
|
};
|
|
722
722
|
readonly getPdBankList: {
|
|
723
723
|
readonly path: "/service.customers/getPdBankList";
|
|
@@ -961,7 +961,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
961
961
|
getEnachTxnStatus: handleUnaryCall<getTxnStatusRequest, getTxnStatusResponse>;
|
|
962
962
|
updateEnachTxnStatus: handleUnaryCall<updateEnachTxnStatusRequest, updateEnachTxnStatusResponse>;
|
|
963
963
|
cBSignup: handleUnaryCall<cBSignupRequest, cBSignupResponse>;
|
|
964
|
-
|
|
964
|
+
cbPayNow: handleUnaryCall<cbPayNowRequest, cbPayNowResponse>;
|
|
965
965
|
getPdBankList: handleUnaryCall<getPdBankListRequest, getPdBankListResponse>;
|
|
966
966
|
validateBankDetails: handleUnaryCall<validateBankAccountRequest, validateBankAccountResponse>;
|
|
967
967
|
getRpdTransactionStatus: handleUnaryCall<getRpdTransactionStatusRequest, getRpdTransactionStatusResponse>;
|
|
@@ -1190,9 +1190,9 @@ export interface customersClient extends Client {
|
|
|
1190
1190
|
cBSignup(request: cBSignupRequest, callback: (error: ServiceError | null, response: cBSignupResponse) => void): ClientUnaryCall;
|
|
1191
1191
|
cBSignup(request: cBSignupRequest, metadata: Metadata, callback: (error: ServiceError | null, response: cBSignupResponse) => void): ClientUnaryCall;
|
|
1192
1192
|
cBSignup(request: cBSignupRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: cBSignupResponse) => void): ClientUnaryCall;
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1193
|
+
cbPayNow(request: cbPayNowRequest, callback: (error: ServiceError | null, response: cbPayNowResponse) => void): ClientUnaryCall;
|
|
1194
|
+
cbPayNow(request: cbPayNowRequest, metadata: Metadata, callback: (error: ServiceError | null, response: cbPayNowResponse) => void): ClientUnaryCall;
|
|
1195
|
+
cbPayNow(request: cbPayNowRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: cbPayNowResponse) => void): ClientUnaryCall;
|
|
1196
1196
|
getPdBankList(request: getPdBankListRequest, callback: (error: ServiceError | null, response: getPdBankListResponse) => void): ClientUnaryCall;
|
|
1197
1197
|
getPdBankList(request: getPdBankListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getPdBankListResponse) => void): ClientUnaryCall;
|
|
1198
1198
|
getPdBankList(request: getPdBankListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getPdBankListResponse) => void): ClientUnaryCall;
|
package/ts/customers.js
CHANGED
|
@@ -20,13 +20,13 @@ const addsuspendedcustomer_1 = require("./customers/addsuspendedcustomer");
|
|
|
20
20
|
const adduserapps_1 = require("./customers/adduserapps");
|
|
21
21
|
const bulksms_1 = require("./customers/bulksms");
|
|
22
22
|
const cbapplicationrejecteddata_1 = require("./customers/cb/cbapplicationrejecteddata");
|
|
23
|
+
const cbpaynow_1 = require("./customers/cb/cbpaynow");
|
|
23
24
|
const cbsignup_1 = require("./customers/cb/cbsignup");
|
|
24
25
|
const getcbtxnstatus_1 = require("./customers/cb/getcbtxnstatus");
|
|
25
26
|
const getcreditbuilder_1 = require("./customers/cb/getcreditbuilder");
|
|
26
27
|
const getpaymentsummary_1 = require("./customers/cb/getpaymentsummary");
|
|
27
28
|
const lesscsimprove_1 = require("./customers/cb/lesscsimprove");
|
|
28
29
|
const morecsimprove_1 = require("./customers/cb/morecsimprove");
|
|
29
|
-
const paynow_1 = require("./customers/cb/paynow");
|
|
30
30
|
const savecreditbuilder_1 = require("./customers/cb/savecreditbuilder");
|
|
31
31
|
const updatecbtxnstatus_1 = require("./customers/cb/updatecbtxnstatus");
|
|
32
32
|
const changempin_1 = require("./customers/changempin");
|
|
@@ -718,14 +718,14 @@ exports.customersService = {
|
|
|
718
718
|
responseSerialize: (value) => Buffer.from(cbsignup_1.cBSignupResponse.encode(value).finish()),
|
|
719
719
|
responseDeserialize: (value) => cbsignup_1.cBSignupResponse.decode(value),
|
|
720
720
|
},
|
|
721
|
-
|
|
722
|
-
path: "/service.customers/
|
|
721
|
+
cbPayNow: {
|
|
722
|
+
path: "/service.customers/cbPayNow",
|
|
723
723
|
requestStream: false,
|
|
724
724
|
responseStream: false,
|
|
725
|
-
requestSerialize: (value) => Buffer.from(
|
|
726
|
-
requestDeserialize: (value) =>
|
|
727
|
-
responseSerialize: (value) => Buffer.from(
|
|
728
|
-
responseDeserialize: (value) =>
|
|
725
|
+
requestSerialize: (value) => Buffer.from(cbpaynow_1.cbPayNowRequest.encode(value).finish()),
|
|
726
|
+
requestDeserialize: (value) => cbpaynow_1.cbPayNowRequest.decode(value),
|
|
727
|
+
responseSerialize: (value) => Buffer.from(cbpaynow_1.cbPayNowResponse.encode(value).finish()),
|
|
728
|
+
responseDeserialize: (value) => cbpaynow_1.cbPayNowResponse.decode(value),
|
|
729
729
|
},
|
|
730
730
|
getPdBankList: {
|
|
731
731
|
path: "/service.customers/getPdBankList",
|
|
@@ -10,7 +10,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.initiatepaymentresponse = exports.redirectdata = exports.initiatepaymentrequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
-
const long_1 = __importDefault(require("long"));
|
|
14
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
14
|
exports.protobufPackage = "growth.initiatepayment";
|
|
16
15
|
function createBaseinitiatepaymentrequest() {
|
|
@@ -25,7 +24,7 @@ exports.initiatepaymentrequest = {
|
|
|
25
24
|
writer.uint32(18).string(message.report_type);
|
|
26
25
|
}
|
|
27
26
|
if (message.amount !== 0) {
|
|
28
|
-
writer.uint32(
|
|
27
|
+
writer.uint32(25).double(message.amount);
|
|
29
28
|
}
|
|
30
29
|
return writer;
|
|
31
30
|
},
|
|
@@ -49,10 +48,10 @@ exports.initiatepaymentrequest = {
|
|
|
49
48
|
message.report_type = reader.string();
|
|
50
49
|
continue;
|
|
51
50
|
case 3:
|
|
52
|
-
if (tag !==
|
|
51
|
+
if (tag !== 25) {
|
|
53
52
|
break;
|
|
54
53
|
}
|
|
55
|
-
message.amount =
|
|
54
|
+
message.amount = reader.double();
|
|
56
55
|
continue;
|
|
57
56
|
}
|
|
58
57
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -78,7 +77,7 @@ exports.initiatepaymentrequest = {
|
|
|
78
77
|
obj.report_type = message.report_type;
|
|
79
78
|
}
|
|
80
79
|
if (message.amount !== 0) {
|
|
81
|
-
obj.amount =
|
|
80
|
+
obj.amount = message.amount;
|
|
82
81
|
}
|
|
83
82
|
return obj;
|
|
84
83
|
},
|
|
@@ -239,19 +238,6 @@ exports.initiatepaymentresponse = {
|
|
|
239
238
|
return message;
|
|
240
239
|
},
|
|
241
240
|
};
|
|
242
|
-
function longToNumber(long) {
|
|
243
|
-
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
244
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
245
|
-
}
|
|
246
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
247
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
248
|
-
}
|
|
249
|
-
return long.toNumber();
|
|
250
|
-
}
|
|
251
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
252
|
-
minimal_1.default.util.Long = long_1.default;
|
|
253
|
-
minimal_1.default.configure();
|
|
254
|
-
}
|
|
255
241
|
function isSet(value) {
|
|
256
242
|
return value !== null && value !== undefined;
|
|
257
243
|
}
|
|
@@ -4,7 +4,7 @@ export interface getVirtualAccountNumberRequest {
|
|
|
4
4
|
customer_id: number;
|
|
5
5
|
}
|
|
6
6
|
export interface getVirtualAccountNumberResponse {
|
|
7
|
-
account_number:
|
|
7
|
+
account_number: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const getVirtualAccountNumberRequest: {
|
|
10
10
|
encode(message: getVirtualAccountNumberRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -63,12 +63,12 @@ exports.getVirtualAccountNumberRequest = {
|
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
function createBasegetVirtualAccountNumberResponse() {
|
|
66
|
-
return { account_number:
|
|
66
|
+
return { account_number: "" };
|
|
67
67
|
}
|
|
68
68
|
exports.getVirtualAccountNumberResponse = {
|
|
69
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.account_number !==
|
|
71
|
-
writer.uint32(
|
|
70
|
+
if (message.account_number !== "") {
|
|
71
|
+
writer.uint32(10).string(message.account_number);
|
|
72
72
|
}
|
|
73
73
|
return writer;
|
|
74
74
|
},
|
|
@@ -80,10 +80,10 @@ exports.getVirtualAccountNumberResponse = {
|
|
|
80
80
|
const tag = reader.uint32();
|
|
81
81
|
switch (tag >>> 3) {
|
|
82
82
|
case 1:
|
|
83
|
-
if (tag !==
|
|
83
|
+
if (tag !== 10) {
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
|
-
message.account_number = reader.
|
|
86
|
+
message.account_number = reader.string();
|
|
87
87
|
continue;
|
|
88
88
|
}
|
|
89
89
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -94,12 +94,12 @@ exports.getVirtualAccountNumberResponse = {
|
|
|
94
94
|
return message;
|
|
95
95
|
},
|
|
96
96
|
fromJSON(object) {
|
|
97
|
-
return { account_number: isSet(object.account_number) ? globalThis.
|
|
97
|
+
return { account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "" };
|
|
98
98
|
},
|
|
99
99
|
toJSON(message) {
|
|
100
100
|
const obj = {};
|
|
101
|
-
if (message.account_number !==
|
|
102
|
-
obj.account_number =
|
|
101
|
+
if (message.account_number !== "") {
|
|
102
|
+
obj.account_number = message.account_number;
|
|
103
103
|
}
|
|
104
104
|
return obj;
|
|
105
105
|
},
|
|
@@ -108,7 +108,7 @@ exports.getVirtualAccountNumberResponse = {
|
|
|
108
108
|
},
|
|
109
109
|
fromPartial(object) {
|
|
110
110
|
const message = createBasegetVirtualAccountNumberResponse();
|
|
111
|
-
message.account_number = object.account_number ??
|
|
111
|
+
message.account_number = object.account_number ?? "";
|
|
112
112
|
return message;
|
|
113
113
|
},
|
|
114
114
|
};
|