@stashfin/grpc 1.2.183 → 1.2.186
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/floatingvideos.d.ts +46 -0
- package/ts/customers/floatingvideos.js +172 -0
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- 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 +67 -0
- package/ts/payments/initiatepayment.js +381 -0
- package/ts/payments/nachregistration.d.ts +51 -0
- package/ts/payments/nachregistration.js +257 -0
- package/ts/payments.d.ts +42 -211
- package/ts/payments.js +28 -1091
package/package.json
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.floatingvideos";
|
|
3
|
+
export interface getFloatingVideosRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface FloatingVideo {
|
|
6
|
+
page_code: string;
|
|
7
|
+
url: string;
|
|
8
|
+
}
|
|
9
|
+
export interface getFloatingVideosResponse {
|
|
10
|
+
videos: FloatingVideo[];
|
|
11
|
+
}
|
|
12
|
+
export declare const getFloatingVideosRequest: {
|
|
13
|
+
encode(_: getFloatingVideosRequest, writer?: _m0.Writer): _m0.Writer;
|
|
14
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getFloatingVideosRequest;
|
|
15
|
+
fromJSON(_: any): getFloatingVideosRequest;
|
|
16
|
+
toJSON(_: getFloatingVideosRequest): unknown;
|
|
17
|
+
create<I extends Exact<DeepPartial<getFloatingVideosRequest>, I>>(base?: I): getFloatingVideosRequest;
|
|
18
|
+
fromPartial<I extends Exact<DeepPartial<getFloatingVideosRequest>, I>>(_: I): getFloatingVideosRequest;
|
|
19
|
+
};
|
|
20
|
+
export declare const FloatingVideo: {
|
|
21
|
+
encode(message: FloatingVideo, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FloatingVideo;
|
|
23
|
+
fromJSON(object: any): FloatingVideo;
|
|
24
|
+
toJSON(message: FloatingVideo): unknown;
|
|
25
|
+
create<I extends Exact<DeepPartial<FloatingVideo>, I>>(base?: I): FloatingVideo;
|
|
26
|
+
fromPartial<I extends Exact<DeepPartial<FloatingVideo>, I>>(object: I): FloatingVideo;
|
|
27
|
+
};
|
|
28
|
+
export declare const getFloatingVideosResponse: {
|
|
29
|
+
encode(message: getFloatingVideosResponse, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getFloatingVideosResponse;
|
|
31
|
+
fromJSON(object: any): getFloatingVideosResponse;
|
|
32
|
+
toJSON(message: getFloatingVideosResponse): unknown;
|
|
33
|
+
create<I extends Exact<DeepPartial<getFloatingVideosResponse>, I>>(base?: I): getFloatingVideosResponse;
|
|
34
|
+
fromPartial<I extends Exact<DeepPartial<getFloatingVideosResponse>, I>>(object: I): getFloatingVideosResponse;
|
|
35
|
+
};
|
|
36
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
37
|
+
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 {} ? {
|
|
38
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
39
|
+
} : Partial<T>;
|
|
40
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
41
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
42
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
43
|
+
} & {
|
|
44
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,172 @@
|
|
|
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.0
|
|
6
|
+
// source: customers/floatingvideos.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.getFloatingVideosResponse = exports.FloatingVideo = exports.getFloatingVideosRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.floatingvideos";
|
|
15
|
+
function createBasegetFloatingVideosRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getFloatingVideosRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasegetFloatingVideosRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.getFloatingVideosRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetFloatingVideosRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseFloatingVideo() {
|
|
53
|
+
return { page_code: "", url: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.FloatingVideo = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.page_code !== "") {
|
|
58
|
+
writer.uint32(10).string(message.page_code);
|
|
59
|
+
}
|
|
60
|
+
if (message.url !== "") {
|
|
61
|
+
writer.uint32(18).string(message.url);
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
67
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
+
const message = createBaseFloatingVideo();
|
|
69
|
+
while (reader.pos < end) {
|
|
70
|
+
const tag = reader.uint32();
|
|
71
|
+
switch (tag >>> 3) {
|
|
72
|
+
case 1:
|
|
73
|
+
if (tag !== 10) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.page_code = reader.string();
|
|
77
|
+
continue;
|
|
78
|
+
case 2:
|
|
79
|
+
if (tag !== 18) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.url = reader.string();
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
reader.skipType(tag & 7);
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
fromJSON(object) {
|
|
93
|
+
return {
|
|
94
|
+
page_code: isSet(object.page_code) ? globalThis.String(object.page_code) : "",
|
|
95
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
toJSON(message) {
|
|
99
|
+
const obj = {};
|
|
100
|
+
if (message.page_code !== "") {
|
|
101
|
+
obj.page_code = message.page_code;
|
|
102
|
+
}
|
|
103
|
+
if (message.url !== "") {
|
|
104
|
+
obj.url = message.url;
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
},
|
|
108
|
+
create(base) {
|
|
109
|
+
return exports.FloatingVideo.fromPartial(base ?? {});
|
|
110
|
+
},
|
|
111
|
+
fromPartial(object) {
|
|
112
|
+
const message = createBaseFloatingVideo();
|
|
113
|
+
message.page_code = object.page_code ?? "";
|
|
114
|
+
message.url = object.url ?? "";
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
function createBasegetFloatingVideosResponse() {
|
|
119
|
+
return { videos: [] };
|
|
120
|
+
}
|
|
121
|
+
exports.getFloatingVideosResponse = {
|
|
122
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
123
|
+
for (const v of message.videos) {
|
|
124
|
+
exports.FloatingVideo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
125
|
+
}
|
|
126
|
+
return writer;
|
|
127
|
+
},
|
|
128
|
+
decode(input, length) {
|
|
129
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
130
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
131
|
+
const message = createBasegetFloatingVideosResponse();
|
|
132
|
+
while (reader.pos < end) {
|
|
133
|
+
const tag = reader.uint32();
|
|
134
|
+
switch (tag >>> 3) {
|
|
135
|
+
case 1:
|
|
136
|
+
if (tag !== 10) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
message.videos.push(exports.FloatingVideo.decode(reader, reader.uint32()));
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
reader.skipType(tag & 7);
|
|
146
|
+
}
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
fromJSON(object) {
|
|
150
|
+
return {
|
|
151
|
+
videos: globalThis.Array.isArray(object?.videos) ? object.videos.map((e) => exports.FloatingVideo.fromJSON(e)) : [],
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
toJSON(message) {
|
|
155
|
+
const obj = {};
|
|
156
|
+
if (message.videos?.length) {
|
|
157
|
+
obj.videos = message.videos.map((e) => exports.FloatingVideo.toJSON(e));
|
|
158
|
+
}
|
|
159
|
+
return obj;
|
|
160
|
+
},
|
|
161
|
+
create(base) {
|
|
162
|
+
return exports.getFloatingVideosResponse.fromPartial(base ?? {});
|
|
163
|
+
},
|
|
164
|
+
fromPartial(object) {
|
|
165
|
+
const message = createBasegetFloatingVideosResponse();
|
|
166
|
+
message.videos = object.videos?.map((e) => exports.FloatingVideo.fromPartial(e)) || [];
|
|
167
|
+
return message;
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
function isSet(value) {
|
|
171
|
+
return value !== null && value !== undefined;
|
|
172
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { createCustomerReferenceRequest, createCustomerReferenceResponse } from
|
|
|
14
14
|
import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
|
|
15
15
|
import { disableMpinRequest, disableMpinResponse } from "./customers/disablempin";
|
|
16
16
|
import { fetchRCProfileRequest, fetchRCProfileResponse } from "./customers/fetchrcprofile";
|
|
17
|
+
import { getFloatingVideosRequest, getFloatingVideosResponse } from "./customers/floatingvideos";
|
|
17
18
|
import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
|
|
18
19
|
import { forgotMpinVerifyRequest, forgotMpinVerifyResponse } from "./customers/forgotmpinverify";
|
|
19
20
|
import { getAddressRequest, getAddressResponse } from "./customers/getaddresslist";
|
|
@@ -601,6 +602,15 @@ export declare const customersService: {
|
|
|
601
602
|
readonly responseSerialize: (value: getAppSubmittedResponse) => Buffer;
|
|
602
603
|
readonly responseDeserialize: (value: Buffer) => getAppSubmittedResponse;
|
|
603
604
|
};
|
|
605
|
+
readonly getFloatingVideos: {
|
|
606
|
+
readonly path: "/service.customers/getFloatingVideos";
|
|
607
|
+
readonly requestStream: false;
|
|
608
|
+
readonly responseStream: false;
|
|
609
|
+
readonly requestSerialize: (value: getFloatingVideosRequest) => Buffer;
|
|
610
|
+
readonly requestDeserialize: (value: Buffer) => getFloatingVideosRequest;
|
|
611
|
+
readonly responseSerialize: (value: getFloatingVideosResponse) => Buffer;
|
|
612
|
+
readonly responseDeserialize: (value: Buffer) => getFloatingVideosResponse;
|
|
613
|
+
};
|
|
604
614
|
};
|
|
605
615
|
export interface customersServer extends UntypedServiceImplementation {
|
|
606
616
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -664,6 +674,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
664
674
|
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
665
675
|
getAddressList: handleUnaryCall<getAddressRequest, getAddressResponse>;
|
|
666
676
|
getAppSubmittedScreen: handleUnaryCall<getAppSubmittedRequest, getAppSubmittedResponse>;
|
|
677
|
+
getFloatingVideos: handleUnaryCall<getFloatingVideosRequest, getFloatingVideosResponse>;
|
|
667
678
|
}
|
|
668
679
|
export interface customersClient extends Client {
|
|
669
680
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -847,6 +858,9 @@ export interface customersClient extends Client {
|
|
|
847
858
|
getAppSubmittedScreen(request: getAppSubmittedRequest, callback: (error: ServiceError | null, response: getAppSubmittedResponse) => void): ClientUnaryCall;
|
|
848
859
|
getAppSubmittedScreen(request: getAppSubmittedRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAppSubmittedResponse) => void): ClientUnaryCall;
|
|
849
860
|
getAppSubmittedScreen(request: getAppSubmittedRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAppSubmittedResponse) => void): ClientUnaryCall;
|
|
861
|
+
getFloatingVideos(request: getFloatingVideosRequest, callback: (error: ServiceError | null, response: getFloatingVideosResponse) => void): ClientUnaryCall;
|
|
862
|
+
getFloatingVideos(request: getFloatingVideosRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getFloatingVideosResponse) => void): ClientUnaryCall;
|
|
863
|
+
getFloatingVideos(request: getFloatingVideosRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getFloatingVideosResponse) => void): ClientUnaryCall;
|
|
850
864
|
}
|
|
851
865
|
export declare const customersClient: {
|
|
852
866
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -23,6 +23,7 @@ const createcustomerreference_1 = require("./customers/createcustomerreference")
|
|
|
23
23
|
const deleteprofile_1 = require("./customers/deleteprofile");
|
|
24
24
|
const disablempin_1 = require("./customers/disablempin");
|
|
25
25
|
const fetchrcprofile_1 = require("./customers/fetchrcprofile");
|
|
26
|
+
const floatingvideos_1 = require("./customers/floatingvideos");
|
|
26
27
|
const forgotmpin_1 = require("./customers/forgotmpin");
|
|
27
28
|
const forgotmpinverify_1 = require("./customers/forgotmpinverify");
|
|
28
29
|
const getaddresslist_1 = require("./customers/getaddresslist");
|
|
@@ -609,5 +610,14 @@ exports.customersService = {
|
|
|
609
610
|
responseSerialize: (value) => Buffer.from(getappsubmittedscreen_1.getAppSubmittedResponse.encode(value).finish()),
|
|
610
611
|
responseDeserialize: (value) => getappsubmittedscreen_1.getAppSubmittedResponse.decode(value),
|
|
611
612
|
},
|
|
613
|
+
getFloatingVideos: {
|
|
614
|
+
path: "/service.customers/getFloatingVideos",
|
|
615
|
+
requestStream: false,
|
|
616
|
+
responseStream: false,
|
|
617
|
+
requestSerialize: (value) => Buffer.from(floatingvideos_1.getFloatingVideosRequest.encode(value).finish()),
|
|
618
|
+
requestDeserialize: (value) => floatingvideos_1.getFloatingVideosRequest.decode(value),
|
|
619
|
+
responseSerialize: (value) => Buffer.from(floatingvideos_1.getFloatingVideosResponse.encode(value).finish()),
|
|
620
|
+
responseDeserialize: (value) => floatingvideos_1.getFloatingVideosResponse.decode(value),
|
|
621
|
+
},
|
|
612
622
|
};
|
|
613
623
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -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.181.0
|
|
5
|
+
// protoc v5.28.0
|
|
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 {};
|