@stashfin/grpc 1.5.15 → 1.5.17
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/bbps.d.ts +7 -21
- package/ts/bbps.js +0 -10
- package/ts/bureau/getreport.d.ts +2 -0
- package/ts/bureau/getreport.js +32 -0
- package/ts/eqxpayments.d.ts +0 -59
- package/ts/eqxpayments.js +0 -41
- package/ts/kyc/getselfieurl.d.ts +1 -0
- package/ts/kyc/getselfieurl.js +15 -1
- package/ts/bbps/processwebhookv2.d.ts +0 -157
- package/ts/bbps/processwebhookv2.js +0 -1175
- package/ts/eqxpayments/createmerchant.d.ts +0 -73
- package/ts/eqxpayments/createmerchant.js +0 -397
- package/ts/eqxpayments/createorderv2.d.ts +0 -50
- package/ts/eqxpayments/createorderv2.js +0 -334
- package/ts/eqxpayments/createpaymentcategoryclient.d.ts +0 -74
- package/ts/eqxpayments/createpaymentcategoryclient.js +0 -411
- package/ts/eqxpayments/createpaymentgateway.d.ts +0 -71
- package/ts/eqxpayments/createpaymentgateway.js +0 -369
- package/ts/eqxpayments/getgatewayconfiguration.d.ts +0 -92
- package/ts/eqxpayments/getgatewayconfiguration.js +0 -430
- package/ts/eqxpayments/getmerchantmodeconfigfees.d.ts +0 -106
- package/ts/eqxpayments/getmerchantmodeconfigfees.js +0 -627
- package/ts/eqxpayments/getorderv2.d.ts +0 -41
- package/ts/eqxpayments/getorderv2.js +0 -211
- package/ts/eqxpayments/initiateattemptv2.d.ts +0 -58
- package/ts/eqxpayments/initiateattemptv2.js +0 -374
- package/ts/eqxpayments/listcheckoutoptionsv2.d.ts +0 -96
- package/ts/eqxpayments/listcheckoutoptionsv2.js +0 -489
- package/ts/eqxpayments/listmerchants.d.ts +0 -68
- package/ts/eqxpayments/listmerchants.js +0 -331
- package/ts/eqxpayments/listpaymentcategoryclients.d.ts +0 -87
- package/ts/eqxpayments/listpaymentcategoryclients.js +0 -477
- package/ts/eqxpayments/listpaymentgateways.d.ts +0 -84
- package/ts/eqxpayments/listpaymentgateways.js +0 -433
- package/ts/eqxpayments/updatemerchant.d.ts +0 -73
- package/ts/eqxpayments/updatemerchant.js +0 -397
- package/ts/eqxpayments/updatemerchantmodeconfigfee.d.ts +0 -75
- package/ts/eqxpayments/updatemerchantmodeconfigfee.js +0 -417
- package/ts/eqxpayments/updatepaymentcategoryclient.d.ts +0 -75
- package/ts/eqxpayments/updatepaymentcategoryclient.js +0 -425
- package/ts/eqxpayments/updatepaymentgateway.d.ts +0 -71
- package/ts/eqxpayments/updatepaymentgateway.js +0 -369
|
@@ -1,211 +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.2
|
|
5
|
-
// protoc v6.33.1
|
|
6
|
-
// source: eqxpayments/getorderv2.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 = exports.request = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "eqxpayments.getorderv2";
|
|
15
|
-
function createBaserequest() {
|
|
16
|
-
return { transaction_id: "" };
|
|
17
|
-
}
|
|
18
|
-
exports.request = {
|
|
19
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.transaction_id !== "") {
|
|
21
|
-
writer.uint32(10).string(message.transaction_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 = createBaserequest();
|
|
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.transaction_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 { transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "" };
|
|
48
|
-
},
|
|
49
|
-
toJSON(message) {
|
|
50
|
-
const obj = {};
|
|
51
|
-
if (message.transaction_id !== "") {
|
|
52
|
-
obj.transaction_id = message.transaction_id;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
},
|
|
56
|
-
create(base) {
|
|
57
|
-
return exports.request.fromPartial(base ?? {});
|
|
58
|
-
},
|
|
59
|
-
fromPartial(object) {
|
|
60
|
-
const message = createBaserequest();
|
|
61
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
62
|
-
return message;
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
function createBaseresponse() {
|
|
66
|
-
return {
|
|
67
|
-
transaction_id: "",
|
|
68
|
-
order_ref: "",
|
|
69
|
-
subscriber_id: "",
|
|
70
|
-
status: "",
|
|
71
|
-
final: false,
|
|
72
|
-
last_error_code: "",
|
|
73
|
-
last_error_message: "",
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
exports.response = {
|
|
77
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
78
|
-
if (message.transaction_id !== "") {
|
|
79
|
-
writer.uint32(10).string(message.transaction_id);
|
|
80
|
-
}
|
|
81
|
-
if (message.order_ref !== "") {
|
|
82
|
-
writer.uint32(18).string(message.order_ref);
|
|
83
|
-
}
|
|
84
|
-
if (message.subscriber_id !== "") {
|
|
85
|
-
writer.uint32(26).string(message.subscriber_id);
|
|
86
|
-
}
|
|
87
|
-
if (message.status !== "") {
|
|
88
|
-
writer.uint32(34).string(message.status);
|
|
89
|
-
}
|
|
90
|
-
if (message.final !== false) {
|
|
91
|
-
writer.uint32(40).bool(message.final);
|
|
92
|
-
}
|
|
93
|
-
if (message.last_error_code !== "") {
|
|
94
|
-
writer.uint32(50).string(message.last_error_code);
|
|
95
|
-
}
|
|
96
|
-
if (message.last_error_message !== "") {
|
|
97
|
-
writer.uint32(58).string(message.last_error_message);
|
|
98
|
-
}
|
|
99
|
-
return writer;
|
|
100
|
-
},
|
|
101
|
-
decode(input, length) {
|
|
102
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
103
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
104
|
-
const message = createBaseresponse();
|
|
105
|
-
while (reader.pos < end) {
|
|
106
|
-
const tag = reader.uint32();
|
|
107
|
-
switch (tag >>> 3) {
|
|
108
|
-
case 1:
|
|
109
|
-
if (tag !== 10) {
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
message.transaction_id = reader.string();
|
|
113
|
-
continue;
|
|
114
|
-
case 2:
|
|
115
|
-
if (tag !== 18) {
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
message.order_ref = reader.string();
|
|
119
|
-
continue;
|
|
120
|
-
case 3:
|
|
121
|
-
if (tag !== 26) {
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
message.subscriber_id = reader.string();
|
|
125
|
-
continue;
|
|
126
|
-
case 4:
|
|
127
|
-
if (tag !== 34) {
|
|
128
|
-
break;
|
|
129
|
-
}
|
|
130
|
-
message.status = reader.string();
|
|
131
|
-
continue;
|
|
132
|
-
case 5:
|
|
133
|
-
if (tag !== 40) {
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
message.final = reader.bool();
|
|
137
|
-
continue;
|
|
138
|
-
case 6:
|
|
139
|
-
if (tag !== 50) {
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
message.last_error_code = reader.string();
|
|
143
|
-
continue;
|
|
144
|
-
case 7:
|
|
145
|
-
if (tag !== 58) {
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
|
-
message.last_error_message = reader.string();
|
|
149
|
-
continue;
|
|
150
|
-
}
|
|
151
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
reader.skipType(tag & 7);
|
|
155
|
-
}
|
|
156
|
-
return message;
|
|
157
|
-
},
|
|
158
|
-
fromJSON(object) {
|
|
159
|
-
return {
|
|
160
|
-
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
161
|
-
order_ref: isSet(object.order_ref) ? globalThis.String(object.order_ref) : "",
|
|
162
|
-
subscriber_id: isSet(object.subscriber_id) ? globalThis.String(object.subscriber_id) : "",
|
|
163
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
164
|
-
final: isSet(object.final) ? globalThis.Boolean(object.final) : false,
|
|
165
|
-
last_error_code: isSet(object.last_error_code) ? globalThis.String(object.last_error_code) : "",
|
|
166
|
-
last_error_message: isSet(object.last_error_message) ? globalThis.String(object.last_error_message) : "",
|
|
167
|
-
};
|
|
168
|
-
},
|
|
169
|
-
toJSON(message) {
|
|
170
|
-
const obj = {};
|
|
171
|
-
if (message.transaction_id !== "") {
|
|
172
|
-
obj.transaction_id = message.transaction_id;
|
|
173
|
-
}
|
|
174
|
-
if (message.order_ref !== "") {
|
|
175
|
-
obj.order_ref = message.order_ref;
|
|
176
|
-
}
|
|
177
|
-
if (message.subscriber_id !== "") {
|
|
178
|
-
obj.subscriber_id = message.subscriber_id;
|
|
179
|
-
}
|
|
180
|
-
if (message.status !== "") {
|
|
181
|
-
obj.status = message.status;
|
|
182
|
-
}
|
|
183
|
-
if (message.final !== false) {
|
|
184
|
-
obj.final = message.final;
|
|
185
|
-
}
|
|
186
|
-
if (message.last_error_code !== "") {
|
|
187
|
-
obj.last_error_code = message.last_error_code;
|
|
188
|
-
}
|
|
189
|
-
if (message.last_error_message !== "") {
|
|
190
|
-
obj.last_error_message = message.last_error_message;
|
|
191
|
-
}
|
|
192
|
-
return obj;
|
|
193
|
-
},
|
|
194
|
-
create(base) {
|
|
195
|
-
return exports.response.fromPartial(base ?? {});
|
|
196
|
-
},
|
|
197
|
-
fromPartial(object) {
|
|
198
|
-
const message = createBaseresponse();
|
|
199
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
200
|
-
message.order_ref = object.order_ref ?? "";
|
|
201
|
-
message.subscriber_id = object.subscriber_id ?? "";
|
|
202
|
-
message.status = object.status ?? "";
|
|
203
|
-
message.final = object.final ?? false;
|
|
204
|
-
message.last_error_code = object.last_error_code ?? "";
|
|
205
|
-
message.last_error_message = object.last_error_message ?? "";
|
|
206
|
-
return message;
|
|
207
|
-
},
|
|
208
|
-
};
|
|
209
|
-
function isSet(value) {
|
|
210
|
-
return value !== null && value !== undefined;
|
|
211
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "eqxpayments.initiateattemptv2";
|
|
3
|
-
export interface InitiateAttemptRequestV2 {
|
|
4
|
-
/** JWT from CreateOrderV2 */
|
|
5
|
-
checkout_token: string;
|
|
6
|
-
/** paymode selected by user */
|
|
7
|
-
mode_id: number;
|
|
8
|
-
/** optional idempotency key (UUID) */
|
|
9
|
-
client_attempt_ref: string;
|
|
10
|
-
/** required when mode is NETBANKING */
|
|
11
|
-
bank_code: string;
|
|
12
|
-
}
|
|
13
|
-
export interface InitiateAttemptResponseV2 {
|
|
14
|
-
transaction_id: string;
|
|
15
|
-
attempt_id: string;
|
|
16
|
-
attempt_no: number;
|
|
17
|
-
mode_code: string;
|
|
18
|
-
base_amount: number;
|
|
19
|
-
ccf_minor: number;
|
|
20
|
-
gst_minor: number;
|
|
21
|
-
final_amount: number;
|
|
22
|
-
vendor_code: string;
|
|
23
|
-
merchant_name: string;
|
|
24
|
-
pg_txn_id: string;
|
|
25
|
-
/** redirect/collect flows */
|
|
26
|
-
redirect_url: string;
|
|
27
|
-
/** UPI intent flows */
|
|
28
|
-
intent_string: string;
|
|
29
|
-
/** AWAITING_WEBHOOK|REDIRECTED|AUTHORIZED|CAPTURED */
|
|
30
|
-
state: string;
|
|
31
|
-
}
|
|
32
|
-
export declare const InitiateAttemptRequestV2: {
|
|
33
|
-
encode(message: InitiateAttemptRequestV2, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): InitiateAttemptRequestV2;
|
|
35
|
-
fromJSON(object: any): InitiateAttemptRequestV2;
|
|
36
|
-
toJSON(message: InitiateAttemptRequestV2): unknown;
|
|
37
|
-
create<I extends Exact<DeepPartial<InitiateAttemptRequestV2>, I>>(base?: I): InitiateAttemptRequestV2;
|
|
38
|
-
fromPartial<I extends Exact<DeepPartial<InitiateAttemptRequestV2>, I>>(object: I): InitiateAttemptRequestV2;
|
|
39
|
-
};
|
|
40
|
-
export declare const InitiateAttemptResponseV2: {
|
|
41
|
-
encode(message: InitiateAttemptResponseV2, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): InitiateAttemptResponseV2;
|
|
43
|
-
fromJSON(object: any): InitiateAttemptResponseV2;
|
|
44
|
-
toJSON(message: InitiateAttemptResponseV2): unknown;
|
|
45
|
-
create<I extends Exact<DeepPartial<InitiateAttemptResponseV2>, I>>(base?: I): InitiateAttemptResponseV2;
|
|
46
|
-
fromPartial<I extends Exact<DeepPartial<InitiateAttemptResponseV2>, I>>(object: I): InitiateAttemptResponseV2;
|
|
47
|
-
};
|
|
48
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
49
|
-
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 {} ? {
|
|
50
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
51
|
-
} : Partial<T>;
|
|
52
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
53
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
54
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
55
|
-
} & {
|
|
56
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
57
|
-
};
|
|
58
|
-
export {};
|
|
@@ -1,374 +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.2
|
|
5
|
-
// protoc v6.33.1
|
|
6
|
-
// source: eqxpayments/initiateattemptv2.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.InitiateAttemptResponseV2 = exports.InitiateAttemptRequestV2 = 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 = "eqxpayments.initiateattemptv2";
|
|
16
|
-
function createBaseInitiateAttemptRequestV2() {
|
|
17
|
-
return { checkout_token: "", mode_id: 0, client_attempt_ref: "", bank_code: "" };
|
|
18
|
-
}
|
|
19
|
-
exports.InitiateAttemptRequestV2 = {
|
|
20
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
-
if (message.checkout_token !== "") {
|
|
22
|
-
writer.uint32(10).string(message.checkout_token);
|
|
23
|
-
}
|
|
24
|
-
if (message.mode_id !== 0) {
|
|
25
|
-
writer.uint32(16).int32(message.mode_id);
|
|
26
|
-
}
|
|
27
|
-
if (message.client_attempt_ref !== "") {
|
|
28
|
-
writer.uint32(26).string(message.client_attempt_ref);
|
|
29
|
-
}
|
|
30
|
-
if (message.bank_code !== "") {
|
|
31
|
-
writer.uint32(34).string(message.bank_code);
|
|
32
|
-
}
|
|
33
|
-
return writer;
|
|
34
|
-
},
|
|
35
|
-
decode(input, length) {
|
|
36
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
37
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
-
const message = createBaseInitiateAttemptRequestV2();
|
|
39
|
-
while (reader.pos < end) {
|
|
40
|
-
const tag = reader.uint32();
|
|
41
|
-
switch (tag >>> 3) {
|
|
42
|
-
case 1:
|
|
43
|
-
if (tag !== 10) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
message.checkout_token = reader.string();
|
|
47
|
-
continue;
|
|
48
|
-
case 2:
|
|
49
|
-
if (tag !== 16) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
message.mode_id = reader.int32();
|
|
53
|
-
continue;
|
|
54
|
-
case 3:
|
|
55
|
-
if (tag !== 26) {
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
message.client_attempt_ref = reader.string();
|
|
59
|
-
continue;
|
|
60
|
-
case 4:
|
|
61
|
-
if (tag !== 34) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
message.bank_code = reader.string();
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
reader.skipType(tag & 7);
|
|
71
|
-
}
|
|
72
|
-
return message;
|
|
73
|
-
},
|
|
74
|
-
fromJSON(object) {
|
|
75
|
-
return {
|
|
76
|
-
checkout_token: isSet(object.checkout_token) ? globalThis.String(object.checkout_token) : "",
|
|
77
|
-
mode_id: isSet(object.mode_id) ? globalThis.Number(object.mode_id) : 0,
|
|
78
|
-
client_attempt_ref: isSet(object.client_attempt_ref) ? globalThis.String(object.client_attempt_ref) : "",
|
|
79
|
-
bank_code: isSet(object.bank_code) ? globalThis.String(object.bank_code) : "",
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
toJSON(message) {
|
|
83
|
-
const obj = {};
|
|
84
|
-
if (message.checkout_token !== "") {
|
|
85
|
-
obj.checkout_token = message.checkout_token;
|
|
86
|
-
}
|
|
87
|
-
if (message.mode_id !== 0) {
|
|
88
|
-
obj.mode_id = Math.round(message.mode_id);
|
|
89
|
-
}
|
|
90
|
-
if (message.client_attempt_ref !== "") {
|
|
91
|
-
obj.client_attempt_ref = message.client_attempt_ref;
|
|
92
|
-
}
|
|
93
|
-
if (message.bank_code !== "") {
|
|
94
|
-
obj.bank_code = message.bank_code;
|
|
95
|
-
}
|
|
96
|
-
return obj;
|
|
97
|
-
},
|
|
98
|
-
create(base) {
|
|
99
|
-
return exports.InitiateAttemptRequestV2.fromPartial(base ?? {});
|
|
100
|
-
},
|
|
101
|
-
fromPartial(object) {
|
|
102
|
-
const message = createBaseInitiateAttemptRequestV2();
|
|
103
|
-
message.checkout_token = object.checkout_token ?? "";
|
|
104
|
-
message.mode_id = object.mode_id ?? 0;
|
|
105
|
-
message.client_attempt_ref = object.client_attempt_ref ?? "";
|
|
106
|
-
message.bank_code = object.bank_code ?? "";
|
|
107
|
-
return message;
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
function createBaseInitiateAttemptResponseV2() {
|
|
111
|
-
return {
|
|
112
|
-
transaction_id: "",
|
|
113
|
-
attempt_id: "",
|
|
114
|
-
attempt_no: 0,
|
|
115
|
-
mode_code: "",
|
|
116
|
-
base_amount: 0,
|
|
117
|
-
ccf_minor: 0,
|
|
118
|
-
gst_minor: 0,
|
|
119
|
-
final_amount: 0,
|
|
120
|
-
vendor_code: "",
|
|
121
|
-
merchant_name: "",
|
|
122
|
-
pg_txn_id: "",
|
|
123
|
-
redirect_url: "",
|
|
124
|
-
intent_string: "",
|
|
125
|
-
state: "",
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
exports.InitiateAttemptResponseV2 = {
|
|
129
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
130
|
-
if (message.transaction_id !== "") {
|
|
131
|
-
writer.uint32(10).string(message.transaction_id);
|
|
132
|
-
}
|
|
133
|
-
if (message.attempt_id !== "") {
|
|
134
|
-
writer.uint32(18).string(message.attempt_id);
|
|
135
|
-
}
|
|
136
|
-
if (message.attempt_no !== 0) {
|
|
137
|
-
writer.uint32(24).int32(message.attempt_no);
|
|
138
|
-
}
|
|
139
|
-
if (message.mode_code !== "") {
|
|
140
|
-
writer.uint32(34).string(message.mode_code);
|
|
141
|
-
}
|
|
142
|
-
if (message.base_amount !== 0) {
|
|
143
|
-
writer.uint32(40).int64(message.base_amount);
|
|
144
|
-
}
|
|
145
|
-
if (message.ccf_minor !== 0) {
|
|
146
|
-
writer.uint32(48).int64(message.ccf_minor);
|
|
147
|
-
}
|
|
148
|
-
if (message.gst_minor !== 0) {
|
|
149
|
-
writer.uint32(56).int64(message.gst_minor);
|
|
150
|
-
}
|
|
151
|
-
if (message.final_amount !== 0) {
|
|
152
|
-
writer.uint32(64).int64(message.final_amount);
|
|
153
|
-
}
|
|
154
|
-
if (message.vendor_code !== "") {
|
|
155
|
-
writer.uint32(74).string(message.vendor_code);
|
|
156
|
-
}
|
|
157
|
-
if (message.merchant_name !== "") {
|
|
158
|
-
writer.uint32(82).string(message.merchant_name);
|
|
159
|
-
}
|
|
160
|
-
if (message.pg_txn_id !== "") {
|
|
161
|
-
writer.uint32(90).string(message.pg_txn_id);
|
|
162
|
-
}
|
|
163
|
-
if (message.redirect_url !== "") {
|
|
164
|
-
writer.uint32(98).string(message.redirect_url);
|
|
165
|
-
}
|
|
166
|
-
if (message.intent_string !== "") {
|
|
167
|
-
writer.uint32(106).string(message.intent_string);
|
|
168
|
-
}
|
|
169
|
-
if (message.state !== "") {
|
|
170
|
-
writer.uint32(114).string(message.state);
|
|
171
|
-
}
|
|
172
|
-
return writer;
|
|
173
|
-
},
|
|
174
|
-
decode(input, length) {
|
|
175
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
176
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
177
|
-
const message = createBaseInitiateAttemptResponseV2();
|
|
178
|
-
while (reader.pos < end) {
|
|
179
|
-
const tag = reader.uint32();
|
|
180
|
-
switch (tag >>> 3) {
|
|
181
|
-
case 1:
|
|
182
|
-
if (tag !== 10) {
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
message.transaction_id = reader.string();
|
|
186
|
-
continue;
|
|
187
|
-
case 2:
|
|
188
|
-
if (tag !== 18) {
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
message.attempt_id = reader.string();
|
|
192
|
-
continue;
|
|
193
|
-
case 3:
|
|
194
|
-
if (tag !== 24) {
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
message.attempt_no = reader.int32();
|
|
198
|
-
continue;
|
|
199
|
-
case 4:
|
|
200
|
-
if (tag !== 34) {
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
message.mode_code = reader.string();
|
|
204
|
-
continue;
|
|
205
|
-
case 5:
|
|
206
|
-
if (tag !== 40) {
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
message.base_amount = longToNumber(reader.int64());
|
|
210
|
-
continue;
|
|
211
|
-
case 6:
|
|
212
|
-
if (tag !== 48) {
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
message.ccf_minor = longToNumber(reader.int64());
|
|
216
|
-
continue;
|
|
217
|
-
case 7:
|
|
218
|
-
if (tag !== 56) {
|
|
219
|
-
break;
|
|
220
|
-
}
|
|
221
|
-
message.gst_minor = longToNumber(reader.int64());
|
|
222
|
-
continue;
|
|
223
|
-
case 8:
|
|
224
|
-
if (tag !== 64) {
|
|
225
|
-
break;
|
|
226
|
-
}
|
|
227
|
-
message.final_amount = longToNumber(reader.int64());
|
|
228
|
-
continue;
|
|
229
|
-
case 9:
|
|
230
|
-
if (tag !== 74) {
|
|
231
|
-
break;
|
|
232
|
-
}
|
|
233
|
-
message.vendor_code = reader.string();
|
|
234
|
-
continue;
|
|
235
|
-
case 10:
|
|
236
|
-
if (tag !== 82) {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
message.merchant_name = reader.string();
|
|
240
|
-
continue;
|
|
241
|
-
case 11:
|
|
242
|
-
if (tag !== 90) {
|
|
243
|
-
break;
|
|
244
|
-
}
|
|
245
|
-
message.pg_txn_id = reader.string();
|
|
246
|
-
continue;
|
|
247
|
-
case 12:
|
|
248
|
-
if (tag !== 98) {
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
message.redirect_url = reader.string();
|
|
252
|
-
continue;
|
|
253
|
-
case 13:
|
|
254
|
-
if (tag !== 106) {
|
|
255
|
-
break;
|
|
256
|
-
}
|
|
257
|
-
message.intent_string = reader.string();
|
|
258
|
-
continue;
|
|
259
|
-
case 14:
|
|
260
|
-
if (tag !== 114) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
message.state = reader.string();
|
|
264
|
-
continue;
|
|
265
|
-
}
|
|
266
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
267
|
-
break;
|
|
268
|
-
}
|
|
269
|
-
reader.skipType(tag & 7);
|
|
270
|
-
}
|
|
271
|
-
return message;
|
|
272
|
-
},
|
|
273
|
-
fromJSON(object) {
|
|
274
|
-
return {
|
|
275
|
-
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
276
|
-
attempt_id: isSet(object.attempt_id) ? globalThis.String(object.attempt_id) : "",
|
|
277
|
-
attempt_no: isSet(object.attempt_no) ? globalThis.Number(object.attempt_no) : 0,
|
|
278
|
-
mode_code: isSet(object.mode_code) ? globalThis.String(object.mode_code) : "",
|
|
279
|
-
base_amount: isSet(object.base_amount) ? globalThis.Number(object.base_amount) : 0,
|
|
280
|
-
ccf_minor: isSet(object.ccf_minor) ? globalThis.Number(object.ccf_minor) : 0,
|
|
281
|
-
gst_minor: isSet(object.gst_minor) ? globalThis.Number(object.gst_minor) : 0,
|
|
282
|
-
final_amount: isSet(object.final_amount) ? globalThis.Number(object.final_amount) : 0,
|
|
283
|
-
vendor_code: isSet(object.vendor_code) ? globalThis.String(object.vendor_code) : "",
|
|
284
|
-
merchant_name: isSet(object.merchant_name) ? globalThis.String(object.merchant_name) : "",
|
|
285
|
-
pg_txn_id: isSet(object.pg_txn_id) ? globalThis.String(object.pg_txn_id) : "",
|
|
286
|
-
redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "",
|
|
287
|
-
intent_string: isSet(object.intent_string) ? globalThis.String(object.intent_string) : "",
|
|
288
|
-
state: isSet(object.state) ? globalThis.String(object.state) : "",
|
|
289
|
-
};
|
|
290
|
-
},
|
|
291
|
-
toJSON(message) {
|
|
292
|
-
const obj = {};
|
|
293
|
-
if (message.transaction_id !== "") {
|
|
294
|
-
obj.transaction_id = message.transaction_id;
|
|
295
|
-
}
|
|
296
|
-
if (message.attempt_id !== "") {
|
|
297
|
-
obj.attempt_id = message.attempt_id;
|
|
298
|
-
}
|
|
299
|
-
if (message.attempt_no !== 0) {
|
|
300
|
-
obj.attempt_no = Math.round(message.attempt_no);
|
|
301
|
-
}
|
|
302
|
-
if (message.mode_code !== "") {
|
|
303
|
-
obj.mode_code = message.mode_code;
|
|
304
|
-
}
|
|
305
|
-
if (message.base_amount !== 0) {
|
|
306
|
-
obj.base_amount = Math.round(message.base_amount);
|
|
307
|
-
}
|
|
308
|
-
if (message.ccf_minor !== 0) {
|
|
309
|
-
obj.ccf_minor = Math.round(message.ccf_minor);
|
|
310
|
-
}
|
|
311
|
-
if (message.gst_minor !== 0) {
|
|
312
|
-
obj.gst_minor = Math.round(message.gst_minor);
|
|
313
|
-
}
|
|
314
|
-
if (message.final_amount !== 0) {
|
|
315
|
-
obj.final_amount = Math.round(message.final_amount);
|
|
316
|
-
}
|
|
317
|
-
if (message.vendor_code !== "") {
|
|
318
|
-
obj.vendor_code = message.vendor_code;
|
|
319
|
-
}
|
|
320
|
-
if (message.merchant_name !== "") {
|
|
321
|
-
obj.merchant_name = message.merchant_name;
|
|
322
|
-
}
|
|
323
|
-
if (message.pg_txn_id !== "") {
|
|
324
|
-
obj.pg_txn_id = message.pg_txn_id;
|
|
325
|
-
}
|
|
326
|
-
if (message.redirect_url !== "") {
|
|
327
|
-
obj.redirect_url = message.redirect_url;
|
|
328
|
-
}
|
|
329
|
-
if (message.intent_string !== "") {
|
|
330
|
-
obj.intent_string = message.intent_string;
|
|
331
|
-
}
|
|
332
|
-
if (message.state !== "") {
|
|
333
|
-
obj.state = message.state;
|
|
334
|
-
}
|
|
335
|
-
return obj;
|
|
336
|
-
},
|
|
337
|
-
create(base) {
|
|
338
|
-
return exports.InitiateAttemptResponseV2.fromPartial(base ?? {});
|
|
339
|
-
},
|
|
340
|
-
fromPartial(object) {
|
|
341
|
-
const message = createBaseInitiateAttemptResponseV2();
|
|
342
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
343
|
-
message.attempt_id = object.attempt_id ?? "";
|
|
344
|
-
message.attempt_no = object.attempt_no ?? 0;
|
|
345
|
-
message.mode_code = object.mode_code ?? "";
|
|
346
|
-
message.base_amount = object.base_amount ?? 0;
|
|
347
|
-
message.ccf_minor = object.ccf_minor ?? 0;
|
|
348
|
-
message.gst_minor = object.gst_minor ?? 0;
|
|
349
|
-
message.final_amount = object.final_amount ?? 0;
|
|
350
|
-
message.vendor_code = object.vendor_code ?? "";
|
|
351
|
-
message.merchant_name = object.merchant_name ?? "";
|
|
352
|
-
message.pg_txn_id = object.pg_txn_id ?? "";
|
|
353
|
-
message.redirect_url = object.redirect_url ?? "";
|
|
354
|
-
message.intent_string = object.intent_string ?? "";
|
|
355
|
-
message.state = object.state ?? "";
|
|
356
|
-
return message;
|
|
357
|
-
},
|
|
358
|
-
};
|
|
359
|
-
function longToNumber(long) {
|
|
360
|
-
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
361
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
362
|
-
}
|
|
363
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
364
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
365
|
-
}
|
|
366
|
-
return long.toNumber();
|
|
367
|
-
}
|
|
368
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
369
|
-
minimal_1.default.util.Long = long_1.default;
|
|
370
|
-
minimal_1.default.configure();
|
|
371
|
-
}
|
|
372
|
-
function isSet(value) {
|
|
373
|
-
return value !== null && value !== undefined;
|
|
374
|
-
}
|