@alexochihua/protos 1.0.0
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/README.md +26 -0
- package/buf.gen.yaml +14 -0
- package/buf.yaml +9 -0
- package/dist/generated/kapital/accounts/v1/accounts.d.ts +145 -0
- package/dist/generated/kapital/accounts/v1/accounts.js +787 -0
- package/dist/generated/kapital/accounts/v1/accounts.js.map +1 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.d.ts +39 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js +314 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.d.ts +145 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js +771 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.d.ts +37 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js +290 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards.d.ts +507 -0
- package/dist/generated/kapital/cards/v1/cards.js +2996 -0
- package/dist/generated/kapital/cards/v1/cards.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards_types.d.ts +125 -0
- package/dist/generated/kapital/cards/v1/cards_types.js +1268 -0
- package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -0
- package/dist/generated/kapital/common/v1/error.d.ts +24 -0
- package/dist/generated/kapital/common/v1/error.js +119 -0
- package/dist/generated/kapital/common/v1/error.js.map +1 -0
- package/dist/generated/kapital/common/v1/meta.d.ts +20 -0
- package/dist/generated/kapital/common/v1/meta.js +86 -0
- package/dist/generated/kapital/common/v1/meta.js.map +1 -0
- package/dist/generated/kapital/common/v1/pagination.d.ts +26 -0
- package/dist/generated/kapital/common/v1/pagination.js +149 -0
- package/dist/generated/kapital/common/v1/pagination.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts.d.ts +829 -0
- package/dist/generated/kapital/contracts/v1/contracts.js +5840 -0
- package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.d.ts +293 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js +3101 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +57 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +193 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +37 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +283 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers.d.ts +493 -0
- package/dist/generated/kapital/customers/v1/customers.js +2542 -0
- package/dist/generated/kapital/customers/v1/customers.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers_types.d.ts +95 -0
- package/dist/generated/kapital/customers/v1/customers_types.js +951 -0
- package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments.d.ts +145 -0
- package/dist/generated/kapital/payments/v1/payments.js +915 -0
- package/dist/generated/kapital/payments/v1/payments.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments_types.d.ts +26 -0
- package/dist/generated/kapital/payments/v1/payments_types.js +163 -0
- package/dist/generated/kapital/payments/v1/payments_types.js.map +1 -0
- package/dist/generated/kapital/products/v1/products.d.ts +234 -0
- package/dist/generated/kapital/products/v1/products.js +1369 -0
- package/dist/generated/kapital/products/v1/products.js.map +1 -0
- package/dist/generated/kapital/products/v1/products_types.d.ts +159 -0
- package/dist/generated/kapital/products/v1/products_types.js +1696 -0
- package/dist/generated/kapital/products/v1/products_types.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions.d.ts +122 -0
- package/dist/generated/kapital/transactions/v1/transactions.js +632 -0
- package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.d.ts +99 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js +1023 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/grpc.d.ts +2 -0
- package/dist/runtime/grpc.js +9 -0
- package/dist/runtime/grpc.js.map +1 -0
- package/package.json +195 -0
- package/proto/kapital/accounts/v1/accounts.proto +80 -0
- package/proto/kapital/accounts/v1/accounts_types.proto +31 -0
- package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -0
- package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -0
- package/proto/kapital/cards/v1/cards.proto +298 -0
- package/proto/kapital/cards/v1/cards_types.proto +117 -0
- package/proto/kapital/common/v1/error.proto +18 -0
- package/proto/kapital/common/v1/meta.proto +13 -0
- package/proto/kapital/common/v1/pagination.proto +18 -0
- package/proto/kapital/contracts/v1/contracts.proto +629 -0
- package/proto/kapital/contracts/v1/contracts_types.proto +316 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +28 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +29 -0
- package/proto/kapital/customers/v1/customers.proto +235 -0
- package/proto/kapital/customers/v1/customers_types.proto +87 -0
- package/proto/kapital/payments/v1/payments.proto +94 -0
- package/proto/kapital/payments/v1/payments_types.proto +18 -0
- package/proto/kapital/products/v1/products.proto +139 -0
- package/proto/kapital/products/v1/products_types.proto +156 -0
- package/proto/kapital/transactions/v1/transactions.proto +70 -0
- package/proto/kapital/transactions/v1/transactions_types.proto +91 -0
|
@@ -0,0 +1,915 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.6
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: kapital/payments/v1/payments.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.PaymentsServiceClient = exports.PaymentsServiceService = exports.GetPaymentHistoryResponse = exports.GetPaymentHistoryRequest = exports.CreatePaymentResponse = exports.CreatePaymentRequest = exports.GetExistsContractResponse = exports.GetExistsContractRequest = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const grpc_js_1 = require("@grpc/grpc-js");
|
|
12
|
+
const meta_1 = require("../../common/v1/meta");
|
|
13
|
+
const payments_types_1 = require("./payments_types");
|
|
14
|
+
exports.protobufPackage = "kapital.payments.v1";
|
|
15
|
+
function createBaseGetExistsContractRequest() {
|
|
16
|
+
return { contract_id: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.GetExistsContractRequest = {
|
|
19
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
20
|
+
if (message.contract_id !== "") {
|
|
21
|
+
writer.uint32(10).string(message.contract_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
27
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseGetExistsContractRequest();
|
|
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.contract_id = reader.string();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
reader.skip(tag & 7);
|
|
44
|
+
}
|
|
45
|
+
return message;
|
|
46
|
+
},
|
|
47
|
+
create(base) {
|
|
48
|
+
return exports.GetExistsContractRequest.fromPartial(base ?? {});
|
|
49
|
+
},
|
|
50
|
+
fromPartial(object) {
|
|
51
|
+
const message = createBaseGetExistsContractRequest();
|
|
52
|
+
message.contract_id = object.contract_id ?? "";
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
function createBaseGetExistsContractResponse() {
|
|
57
|
+
return { meta: undefined, contract_id: "", exists: false };
|
|
58
|
+
}
|
|
59
|
+
exports.GetExistsContractResponse = {
|
|
60
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
61
|
+
if (message.meta !== undefined) {
|
|
62
|
+
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
63
|
+
}
|
|
64
|
+
if (message.contract_id !== "") {
|
|
65
|
+
writer.uint32(18).string(message.contract_id);
|
|
66
|
+
}
|
|
67
|
+
if (message.exists !== false) {
|
|
68
|
+
writer.uint32(24).bool(message.exists);
|
|
69
|
+
}
|
|
70
|
+
return writer;
|
|
71
|
+
},
|
|
72
|
+
decode(input, length) {
|
|
73
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
74
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
75
|
+
const message = createBaseGetExistsContractResponse();
|
|
76
|
+
while (reader.pos < end) {
|
|
77
|
+
const tag = reader.uint32();
|
|
78
|
+
switch (tag >>> 3) {
|
|
79
|
+
case 1: {
|
|
80
|
+
if (tag !== 10) {
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
case 2: {
|
|
87
|
+
if (tag !== 18) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.contract_id = reader.string();
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
case 3: {
|
|
94
|
+
if (tag !== 24) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
message.exists = reader.bool();
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
reader.skip(tag & 7);
|
|
105
|
+
}
|
|
106
|
+
return message;
|
|
107
|
+
},
|
|
108
|
+
create(base) {
|
|
109
|
+
return exports.GetExistsContractResponse.fromPartial(base ?? {});
|
|
110
|
+
},
|
|
111
|
+
fromPartial(object) {
|
|
112
|
+
const message = createBaseGetExistsContractResponse();
|
|
113
|
+
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
114
|
+
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
115
|
+
: undefined;
|
|
116
|
+
message.contract_id = object.contract_id ?? "";
|
|
117
|
+
message.exists = object.exists ?? false;
|
|
118
|
+
return message;
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
function createBaseCreatePaymentRequest() {
|
|
122
|
+
return {
|
|
123
|
+
contract_id: "",
|
|
124
|
+
transaction_id: "",
|
|
125
|
+
amount: 0,
|
|
126
|
+
type: "",
|
|
127
|
+
description: "",
|
|
128
|
+
location: "",
|
|
129
|
+
location_type: 0,
|
|
130
|
+
provider_assessed_fee: 0,
|
|
131
|
+
verify_only: 0,
|
|
132
|
+
merchant_id: "",
|
|
133
|
+
partner: "",
|
|
134
|
+
retail_chain: "",
|
|
135
|
+
retail_sale_transaction_key: "",
|
|
136
|
+
store_address_1: "",
|
|
137
|
+
store_address_2: "",
|
|
138
|
+
store_latitude: "",
|
|
139
|
+
store_longitude: "",
|
|
140
|
+
store_number: "",
|
|
141
|
+
store_name: "",
|
|
142
|
+
store_transaction_date: "",
|
|
143
|
+
store_city: "",
|
|
144
|
+
store_zip: "",
|
|
145
|
+
hold_amount: 0,
|
|
146
|
+
hold_expiration_date_time: "",
|
|
147
|
+
hold_description: "",
|
|
148
|
+
hold_external_id: "",
|
|
149
|
+
reference_id: "",
|
|
150
|
+
originator_name: "",
|
|
151
|
+
receiver_name: "",
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
exports.CreatePaymentRequest = {
|
|
155
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
156
|
+
if (message.contract_id !== "") {
|
|
157
|
+
writer.uint32(10).string(message.contract_id);
|
|
158
|
+
}
|
|
159
|
+
if (message.transaction_id !== "") {
|
|
160
|
+
writer.uint32(18).string(message.transaction_id);
|
|
161
|
+
}
|
|
162
|
+
if (message.amount !== 0) {
|
|
163
|
+
writer.uint32(25).double(message.amount);
|
|
164
|
+
}
|
|
165
|
+
if (message.type !== "") {
|
|
166
|
+
writer.uint32(34).string(message.type);
|
|
167
|
+
}
|
|
168
|
+
if (message.description !== "") {
|
|
169
|
+
writer.uint32(42).string(message.description);
|
|
170
|
+
}
|
|
171
|
+
if (message.location !== "") {
|
|
172
|
+
writer.uint32(50).string(message.location);
|
|
173
|
+
}
|
|
174
|
+
if (message.location_type !== 0) {
|
|
175
|
+
writer.uint32(56).int32(message.location_type);
|
|
176
|
+
}
|
|
177
|
+
if (message.provider_assessed_fee !== 0) {
|
|
178
|
+
writer.uint32(65).double(message.provider_assessed_fee);
|
|
179
|
+
}
|
|
180
|
+
if (message.verify_only !== 0) {
|
|
181
|
+
writer.uint32(72).int32(message.verify_only);
|
|
182
|
+
}
|
|
183
|
+
if (message.merchant_id !== "") {
|
|
184
|
+
writer.uint32(82).string(message.merchant_id);
|
|
185
|
+
}
|
|
186
|
+
if (message.partner !== "") {
|
|
187
|
+
writer.uint32(90).string(message.partner);
|
|
188
|
+
}
|
|
189
|
+
if (message.retail_chain !== "") {
|
|
190
|
+
writer.uint32(98).string(message.retail_chain);
|
|
191
|
+
}
|
|
192
|
+
if (message.retail_sale_transaction_key !== "") {
|
|
193
|
+
writer.uint32(106).string(message.retail_sale_transaction_key);
|
|
194
|
+
}
|
|
195
|
+
if (message.store_address_1 !== "") {
|
|
196
|
+
writer.uint32(114).string(message.store_address_1);
|
|
197
|
+
}
|
|
198
|
+
if (message.store_address_2 !== "") {
|
|
199
|
+
writer.uint32(122).string(message.store_address_2);
|
|
200
|
+
}
|
|
201
|
+
if (message.store_latitude !== "") {
|
|
202
|
+
writer.uint32(130).string(message.store_latitude);
|
|
203
|
+
}
|
|
204
|
+
if (message.store_longitude !== "") {
|
|
205
|
+
writer.uint32(138).string(message.store_longitude);
|
|
206
|
+
}
|
|
207
|
+
if (message.store_number !== "") {
|
|
208
|
+
writer.uint32(146).string(message.store_number);
|
|
209
|
+
}
|
|
210
|
+
if (message.store_name !== "") {
|
|
211
|
+
writer.uint32(154).string(message.store_name);
|
|
212
|
+
}
|
|
213
|
+
if (message.store_transaction_date !== "") {
|
|
214
|
+
writer.uint32(162).string(message.store_transaction_date);
|
|
215
|
+
}
|
|
216
|
+
if (message.store_city !== "") {
|
|
217
|
+
writer.uint32(170).string(message.store_city);
|
|
218
|
+
}
|
|
219
|
+
if (message.store_zip !== "") {
|
|
220
|
+
writer.uint32(178).string(message.store_zip);
|
|
221
|
+
}
|
|
222
|
+
if (message.hold_amount !== 0) {
|
|
223
|
+
writer.uint32(185).double(message.hold_amount);
|
|
224
|
+
}
|
|
225
|
+
if (message.hold_expiration_date_time !== "") {
|
|
226
|
+
writer.uint32(194).string(message.hold_expiration_date_time);
|
|
227
|
+
}
|
|
228
|
+
if (message.hold_description !== "") {
|
|
229
|
+
writer.uint32(202).string(message.hold_description);
|
|
230
|
+
}
|
|
231
|
+
if (message.hold_external_id !== "") {
|
|
232
|
+
writer.uint32(210).string(message.hold_external_id);
|
|
233
|
+
}
|
|
234
|
+
if (message.reference_id !== "") {
|
|
235
|
+
writer.uint32(218).string(message.reference_id);
|
|
236
|
+
}
|
|
237
|
+
if (message.originator_name !== "") {
|
|
238
|
+
writer.uint32(226).string(message.originator_name);
|
|
239
|
+
}
|
|
240
|
+
if (message.receiver_name !== "") {
|
|
241
|
+
writer.uint32(234).string(message.receiver_name);
|
|
242
|
+
}
|
|
243
|
+
return writer;
|
|
244
|
+
},
|
|
245
|
+
decode(input, length) {
|
|
246
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
247
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
248
|
+
const message = createBaseCreatePaymentRequest();
|
|
249
|
+
while (reader.pos < end) {
|
|
250
|
+
const tag = reader.uint32();
|
|
251
|
+
switch (tag >>> 3) {
|
|
252
|
+
case 1: {
|
|
253
|
+
if (tag !== 10) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
message.contract_id = reader.string();
|
|
257
|
+
continue;
|
|
258
|
+
}
|
|
259
|
+
case 2: {
|
|
260
|
+
if (tag !== 18) {
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
message.transaction_id = reader.string();
|
|
264
|
+
continue;
|
|
265
|
+
}
|
|
266
|
+
case 3: {
|
|
267
|
+
if (tag !== 25) {
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
message.amount = reader.double();
|
|
271
|
+
continue;
|
|
272
|
+
}
|
|
273
|
+
case 4: {
|
|
274
|
+
if (tag !== 34) {
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
message.type = reader.string();
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
case 5: {
|
|
281
|
+
if (tag !== 42) {
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
284
|
+
message.description = reader.string();
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
case 6: {
|
|
288
|
+
if (tag !== 50) {
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
message.location = reader.string();
|
|
292
|
+
continue;
|
|
293
|
+
}
|
|
294
|
+
case 7: {
|
|
295
|
+
if (tag !== 56) {
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
message.location_type = reader.int32();
|
|
299
|
+
continue;
|
|
300
|
+
}
|
|
301
|
+
case 8: {
|
|
302
|
+
if (tag !== 65) {
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
message.provider_assessed_fee = reader.double();
|
|
306
|
+
continue;
|
|
307
|
+
}
|
|
308
|
+
case 9: {
|
|
309
|
+
if (tag !== 72) {
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
message.verify_only = reader.int32();
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
case 10: {
|
|
316
|
+
if (tag !== 82) {
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
message.merchant_id = reader.string();
|
|
320
|
+
continue;
|
|
321
|
+
}
|
|
322
|
+
case 11: {
|
|
323
|
+
if (tag !== 90) {
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
message.partner = reader.string();
|
|
327
|
+
continue;
|
|
328
|
+
}
|
|
329
|
+
case 12: {
|
|
330
|
+
if (tag !== 98) {
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
message.retail_chain = reader.string();
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
336
|
+
case 13: {
|
|
337
|
+
if (tag !== 106) {
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
message.retail_sale_transaction_key = reader.string();
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
case 14: {
|
|
344
|
+
if (tag !== 114) {
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
message.store_address_1 = reader.string();
|
|
348
|
+
continue;
|
|
349
|
+
}
|
|
350
|
+
case 15: {
|
|
351
|
+
if (tag !== 122) {
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
message.store_address_2 = reader.string();
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
case 16: {
|
|
358
|
+
if (tag !== 130) {
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
message.store_latitude = reader.string();
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
364
|
+
case 17: {
|
|
365
|
+
if (tag !== 138) {
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
message.store_longitude = reader.string();
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
case 18: {
|
|
372
|
+
if (tag !== 146) {
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
message.store_number = reader.string();
|
|
376
|
+
continue;
|
|
377
|
+
}
|
|
378
|
+
case 19: {
|
|
379
|
+
if (tag !== 154) {
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
message.store_name = reader.string();
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
385
|
+
case 20: {
|
|
386
|
+
if (tag !== 162) {
|
|
387
|
+
break;
|
|
388
|
+
}
|
|
389
|
+
message.store_transaction_date = reader.string();
|
|
390
|
+
continue;
|
|
391
|
+
}
|
|
392
|
+
case 21: {
|
|
393
|
+
if (tag !== 170) {
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
message.store_city = reader.string();
|
|
397
|
+
continue;
|
|
398
|
+
}
|
|
399
|
+
case 22: {
|
|
400
|
+
if (tag !== 178) {
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
message.store_zip = reader.string();
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
case 23: {
|
|
407
|
+
if (tag !== 185) {
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
message.hold_amount = reader.double();
|
|
411
|
+
continue;
|
|
412
|
+
}
|
|
413
|
+
case 24: {
|
|
414
|
+
if (tag !== 194) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
message.hold_expiration_date_time = reader.string();
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
case 25: {
|
|
421
|
+
if (tag !== 202) {
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
message.hold_description = reader.string();
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
case 26: {
|
|
428
|
+
if (tag !== 210) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
message.hold_external_id = reader.string();
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
case 27: {
|
|
435
|
+
if (tag !== 218) {
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
message.reference_id = reader.string();
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
case 28: {
|
|
442
|
+
if (tag !== 226) {
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
message.originator_name = reader.string();
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
case 29: {
|
|
449
|
+
if (tag !== 234) {
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
message.receiver_name = reader.string();
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
457
|
+
break;
|
|
458
|
+
}
|
|
459
|
+
reader.skip(tag & 7);
|
|
460
|
+
}
|
|
461
|
+
return message;
|
|
462
|
+
},
|
|
463
|
+
create(base) {
|
|
464
|
+
return exports.CreatePaymentRequest.fromPartial(base ?? {});
|
|
465
|
+
},
|
|
466
|
+
fromPartial(object) {
|
|
467
|
+
const message = createBaseCreatePaymentRequest();
|
|
468
|
+
message.contract_id = object.contract_id ?? "";
|
|
469
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
470
|
+
message.amount = object.amount ?? 0;
|
|
471
|
+
message.type = object.type ?? "";
|
|
472
|
+
message.description = object.description ?? "";
|
|
473
|
+
message.location = object.location ?? "";
|
|
474
|
+
message.location_type = object.location_type ?? 0;
|
|
475
|
+
message.provider_assessed_fee = object.provider_assessed_fee ?? 0;
|
|
476
|
+
message.verify_only = object.verify_only ?? 0;
|
|
477
|
+
message.merchant_id = object.merchant_id ?? "";
|
|
478
|
+
message.partner = object.partner ?? "";
|
|
479
|
+
message.retail_chain = object.retail_chain ?? "";
|
|
480
|
+
message.retail_sale_transaction_key = object.retail_sale_transaction_key ?? "";
|
|
481
|
+
message.store_address_1 = object.store_address_1 ?? "";
|
|
482
|
+
message.store_address_2 = object.store_address_2 ?? "";
|
|
483
|
+
message.store_latitude = object.store_latitude ?? "";
|
|
484
|
+
message.store_longitude = object.store_longitude ?? "";
|
|
485
|
+
message.store_number = object.store_number ?? "";
|
|
486
|
+
message.store_name = object.store_name ?? "";
|
|
487
|
+
message.store_transaction_date = object.store_transaction_date ?? "";
|
|
488
|
+
message.store_city = object.store_city ?? "";
|
|
489
|
+
message.store_zip = object.store_zip ?? "";
|
|
490
|
+
message.hold_amount = object.hold_amount ?? 0;
|
|
491
|
+
message.hold_expiration_date_time = object.hold_expiration_date_time ?? "";
|
|
492
|
+
message.hold_description = object.hold_description ?? "";
|
|
493
|
+
message.hold_external_id = object.hold_external_id ?? "";
|
|
494
|
+
message.reference_id = object.reference_id ?? "";
|
|
495
|
+
message.originator_name = object.originator_name ?? "";
|
|
496
|
+
message.receiver_name = object.receiver_name ?? "";
|
|
497
|
+
return message;
|
|
498
|
+
},
|
|
499
|
+
};
|
|
500
|
+
function createBaseCreatePaymentResponse() {
|
|
501
|
+
return {
|
|
502
|
+
meta: undefined,
|
|
503
|
+
old_balance: 0,
|
|
504
|
+
new_balance: 0,
|
|
505
|
+
fee_amount: "",
|
|
506
|
+
payment_trans_id: "0",
|
|
507
|
+
transaction_id: "",
|
|
508
|
+
hold_id: "0",
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
exports.CreatePaymentResponse = {
|
|
512
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
513
|
+
if (message.meta !== undefined) {
|
|
514
|
+
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
515
|
+
}
|
|
516
|
+
if (message.old_balance !== 0) {
|
|
517
|
+
writer.uint32(17).double(message.old_balance);
|
|
518
|
+
}
|
|
519
|
+
if (message.new_balance !== 0) {
|
|
520
|
+
writer.uint32(25).double(message.new_balance);
|
|
521
|
+
}
|
|
522
|
+
if (message.fee_amount !== "") {
|
|
523
|
+
writer.uint32(34).string(message.fee_amount);
|
|
524
|
+
}
|
|
525
|
+
if (message.payment_trans_id !== "0") {
|
|
526
|
+
writer.uint32(40).int64(message.payment_trans_id);
|
|
527
|
+
}
|
|
528
|
+
if (message.transaction_id !== "") {
|
|
529
|
+
writer.uint32(50).string(message.transaction_id);
|
|
530
|
+
}
|
|
531
|
+
if (message.hold_id !== "0") {
|
|
532
|
+
writer.uint32(56).int64(message.hold_id);
|
|
533
|
+
}
|
|
534
|
+
return writer;
|
|
535
|
+
},
|
|
536
|
+
decode(input, length) {
|
|
537
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
538
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
539
|
+
const message = createBaseCreatePaymentResponse();
|
|
540
|
+
while (reader.pos < end) {
|
|
541
|
+
const tag = reader.uint32();
|
|
542
|
+
switch (tag >>> 3) {
|
|
543
|
+
case 1: {
|
|
544
|
+
if (tag !== 10) {
|
|
545
|
+
break;
|
|
546
|
+
}
|
|
547
|
+
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
548
|
+
continue;
|
|
549
|
+
}
|
|
550
|
+
case 2: {
|
|
551
|
+
if (tag !== 17) {
|
|
552
|
+
break;
|
|
553
|
+
}
|
|
554
|
+
message.old_balance = reader.double();
|
|
555
|
+
continue;
|
|
556
|
+
}
|
|
557
|
+
case 3: {
|
|
558
|
+
if (tag !== 25) {
|
|
559
|
+
break;
|
|
560
|
+
}
|
|
561
|
+
message.new_balance = reader.double();
|
|
562
|
+
continue;
|
|
563
|
+
}
|
|
564
|
+
case 4: {
|
|
565
|
+
if (tag !== 34) {
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
message.fee_amount = reader.string();
|
|
569
|
+
continue;
|
|
570
|
+
}
|
|
571
|
+
case 5: {
|
|
572
|
+
if (tag !== 40) {
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
message.payment_trans_id = reader.int64().toString();
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
case 6: {
|
|
579
|
+
if (tag !== 50) {
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
message.transaction_id = reader.string();
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
case 7: {
|
|
586
|
+
if (tag !== 56) {
|
|
587
|
+
break;
|
|
588
|
+
}
|
|
589
|
+
message.hold_id = reader.int64().toString();
|
|
590
|
+
continue;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
594
|
+
break;
|
|
595
|
+
}
|
|
596
|
+
reader.skip(tag & 7);
|
|
597
|
+
}
|
|
598
|
+
return message;
|
|
599
|
+
},
|
|
600
|
+
create(base) {
|
|
601
|
+
return exports.CreatePaymentResponse.fromPartial(base ?? {});
|
|
602
|
+
},
|
|
603
|
+
fromPartial(object) {
|
|
604
|
+
const message = createBaseCreatePaymentResponse();
|
|
605
|
+
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
606
|
+
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
607
|
+
: undefined;
|
|
608
|
+
message.old_balance = object.old_balance ?? 0;
|
|
609
|
+
message.new_balance = object.new_balance ?? 0;
|
|
610
|
+
message.fee_amount = object.fee_amount ?? "";
|
|
611
|
+
message.payment_trans_id = object.payment_trans_id ?? "0";
|
|
612
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
613
|
+
message.hold_id = object.hold_id ?? "0";
|
|
614
|
+
return message;
|
|
615
|
+
},
|
|
616
|
+
};
|
|
617
|
+
function createBaseGetPaymentHistoryRequest() {
|
|
618
|
+
return {
|
|
619
|
+
contract_id: "",
|
|
620
|
+
provider_id: "",
|
|
621
|
+
transaction_id: "",
|
|
622
|
+
account_number: "",
|
|
623
|
+
start_date: "",
|
|
624
|
+
end_date: "",
|
|
625
|
+
include_related: 0,
|
|
626
|
+
record_count: 0,
|
|
627
|
+
page: 0,
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
exports.GetPaymentHistoryRequest = {
|
|
631
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
632
|
+
if (message.contract_id !== "") {
|
|
633
|
+
writer.uint32(10).string(message.contract_id);
|
|
634
|
+
}
|
|
635
|
+
if (message.provider_id !== "") {
|
|
636
|
+
writer.uint32(18).string(message.provider_id);
|
|
637
|
+
}
|
|
638
|
+
if (message.transaction_id !== "") {
|
|
639
|
+
writer.uint32(26).string(message.transaction_id);
|
|
640
|
+
}
|
|
641
|
+
if (message.account_number !== "") {
|
|
642
|
+
writer.uint32(34).string(message.account_number);
|
|
643
|
+
}
|
|
644
|
+
if (message.start_date !== "") {
|
|
645
|
+
writer.uint32(42).string(message.start_date);
|
|
646
|
+
}
|
|
647
|
+
if (message.end_date !== "") {
|
|
648
|
+
writer.uint32(50).string(message.end_date);
|
|
649
|
+
}
|
|
650
|
+
if (message.include_related !== 0) {
|
|
651
|
+
writer.uint32(56).int32(message.include_related);
|
|
652
|
+
}
|
|
653
|
+
if (message.record_count !== 0) {
|
|
654
|
+
writer.uint32(64).int32(message.record_count);
|
|
655
|
+
}
|
|
656
|
+
if (message.page !== 0) {
|
|
657
|
+
writer.uint32(72).int32(message.page);
|
|
658
|
+
}
|
|
659
|
+
return writer;
|
|
660
|
+
},
|
|
661
|
+
decode(input, length) {
|
|
662
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
663
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
664
|
+
const message = createBaseGetPaymentHistoryRequest();
|
|
665
|
+
while (reader.pos < end) {
|
|
666
|
+
const tag = reader.uint32();
|
|
667
|
+
switch (tag >>> 3) {
|
|
668
|
+
case 1: {
|
|
669
|
+
if (tag !== 10) {
|
|
670
|
+
break;
|
|
671
|
+
}
|
|
672
|
+
message.contract_id = reader.string();
|
|
673
|
+
continue;
|
|
674
|
+
}
|
|
675
|
+
case 2: {
|
|
676
|
+
if (tag !== 18) {
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
message.provider_id = reader.string();
|
|
680
|
+
continue;
|
|
681
|
+
}
|
|
682
|
+
case 3: {
|
|
683
|
+
if (tag !== 26) {
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
message.transaction_id = reader.string();
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
case 4: {
|
|
690
|
+
if (tag !== 34) {
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
message.account_number = reader.string();
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
696
|
+
case 5: {
|
|
697
|
+
if (tag !== 42) {
|
|
698
|
+
break;
|
|
699
|
+
}
|
|
700
|
+
message.start_date = reader.string();
|
|
701
|
+
continue;
|
|
702
|
+
}
|
|
703
|
+
case 6: {
|
|
704
|
+
if (tag !== 50) {
|
|
705
|
+
break;
|
|
706
|
+
}
|
|
707
|
+
message.end_date = reader.string();
|
|
708
|
+
continue;
|
|
709
|
+
}
|
|
710
|
+
case 7: {
|
|
711
|
+
if (tag !== 56) {
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
message.include_related = reader.int32();
|
|
715
|
+
continue;
|
|
716
|
+
}
|
|
717
|
+
case 8: {
|
|
718
|
+
if (tag !== 64) {
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
message.record_count = reader.int32();
|
|
722
|
+
continue;
|
|
723
|
+
}
|
|
724
|
+
case 9: {
|
|
725
|
+
if (tag !== 72) {
|
|
726
|
+
break;
|
|
727
|
+
}
|
|
728
|
+
message.page = reader.int32();
|
|
729
|
+
continue;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
733
|
+
break;
|
|
734
|
+
}
|
|
735
|
+
reader.skip(tag & 7);
|
|
736
|
+
}
|
|
737
|
+
return message;
|
|
738
|
+
},
|
|
739
|
+
create(base) {
|
|
740
|
+
return exports.GetPaymentHistoryRequest.fromPartial(base ?? {});
|
|
741
|
+
},
|
|
742
|
+
fromPartial(object) {
|
|
743
|
+
const message = createBaseGetPaymentHistoryRequest();
|
|
744
|
+
message.contract_id = object.contract_id ?? "";
|
|
745
|
+
message.provider_id = object.provider_id ?? "";
|
|
746
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
747
|
+
message.account_number = object.account_number ?? "";
|
|
748
|
+
message.start_date = object.start_date ?? "";
|
|
749
|
+
message.end_date = object.end_date ?? "";
|
|
750
|
+
message.include_related = object.include_related ?? 0;
|
|
751
|
+
message.record_count = object.record_count ?? 0;
|
|
752
|
+
message.page = object.page ?? 0;
|
|
753
|
+
return message;
|
|
754
|
+
},
|
|
755
|
+
};
|
|
756
|
+
function createBaseGetPaymentHistoryResponse() {
|
|
757
|
+
return {
|
|
758
|
+
meta: undefined,
|
|
759
|
+
transaction_count: 0,
|
|
760
|
+
page: 0,
|
|
761
|
+
total_record_count: 0,
|
|
762
|
+
number_of_pages: 0,
|
|
763
|
+
start_date: "",
|
|
764
|
+
end_date: "",
|
|
765
|
+
payments: [],
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
exports.GetPaymentHistoryResponse = {
|
|
769
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
770
|
+
if (message.meta !== undefined) {
|
|
771
|
+
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
772
|
+
}
|
|
773
|
+
if (message.transaction_count !== 0) {
|
|
774
|
+
writer.uint32(16).int32(message.transaction_count);
|
|
775
|
+
}
|
|
776
|
+
if (message.page !== 0) {
|
|
777
|
+
writer.uint32(24).int32(message.page);
|
|
778
|
+
}
|
|
779
|
+
if (message.total_record_count !== 0) {
|
|
780
|
+
writer.uint32(32).int32(message.total_record_count);
|
|
781
|
+
}
|
|
782
|
+
if (message.number_of_pages !== 0) {
|
|
783
|
+
writer.uint32(40).int32(message.number_of_pages);
|
|
784
|
+
}
|
|
785
|
+
if (message.start_date !== "") {
|
|
786
|
+
writer.uint32(50).string(message.start_date);
|
|
787
|
+
}
|
|
788
|
+
if (message.end_date !== "") {
|
|
789
|
+
writer.uint32(58).string(message.end_date);
|
|
790
|
+
}
|
|
791
|
+
for (const v of message.payments) {
|
|
792
|
+
payments_types_1.Payment.encode(v, writer.uint32(66).fork()).join();
|
|
793
|
+
}
|
|
794
|
+
return writer;
|
|
795
|
+
},
|
|
796
|
+
decode(input, length) {
|
|
797
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
798
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
799
|
+
const message = createBaseGetPaymentHistoryResponse();
|
|
800
|
+
while (reader.pos < end) {
|
|
801
|
+
const tag = reader.uint32();
|
|
802
|
+
switch (tag >>> 3) {
|
|
803
|
+
case 1: {
|
|
804
|
+
if (tag !== 10) {
|
|
805
|
+
break;
|
|
806
|
+
}
|
|
807
|
+
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
808
|
+
continue;
|
|
809
|
+
}
|
|
810
|
+
case 2: {
|
|
811
|
+
if (tag !== 16) {
|
|
812
|
+
break;
|
|
813
|
+
}
|
|
814
|
+
message.transaction_count = reader.int32();
|
|
815
|
+
continue;
|
|
816
|
+
}
|
|
817
|
+
case 3: {
|
|
818
|
+
if (tag !== 24) {
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
message.page = reader.int32();
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
case 4: {
|
|
825
|
+
if (tag !== 32) {
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
message.total_record_count = reader.int32();
|
|
829
|
+
continue;
|
|
830
|
+
}
|
|
831
|
+
case 5: {
|
|
832
|
+
if (tag !== 40) {
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
message.number_of_pages = reader.int32();
|
|
836
|
+
continue;
|
|
837
|
+
}
|
|
838
|
+
case 6: {
|
|
839
|
+
if (tag !== 50) {
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
message.start_date = reader.string();
|
|
843
|
+
continue;
|
|
844
|
+
}
|
|
845
|
+
case 7: {
|
|
846
|
+
if (tag !== 58) {
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
849
|
+
message.end_date = reader.string();
|
|
850
|
+
continue;
|
|
851
|
+
}
|
|
852
|
+
case 8: {
|
|
853
|
+
if (tag !== 66) {
|
|
854
|
+
break;
|
|
855
|
+
}
|
|
856
|
+
message.payments.push(payments_types_1.Payment.decode(reader, reader.uint32()));
|
|
857
|
+
continue;
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
861
|
+
break;
|
|
862
|
+
}
|
|
863
|
+
reader.skip(tag & 7);
|
|
864
|
+
}
|
|
865
|
+
return message;
|
|
866
|
+
},
|
|
867
|
+
create(base) {
|
|
868
|
+
return exports.GetPaymentHistoryResponse.fromPartial(base ?? {});
|
|
869
|
+
},
|
|
870
|
+
fromPartial(object) {
|
|
871
|
+
const message = createBaseGetPaymentHistoryResponse();
|
|
872
|
+
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
873
|
+
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
874
|
+
: undefined;
|
|
875
|
+
message.transaction_count = object.transaction_count ?? 0;
|
|
876
|
+
message.page = object.page ?? 0;
|
|
877
|
+
message.total_record_count = object.total_record_count ?? 0;
|
|
878
|
+
message.number_of_pages = object.number_of_pages ?? 0;
|
|
879
|
+
message.start_date = object.start_date ?? "";
|
|
880
|
+
message.end_date = object.end_date ?? "";
|
|
881
|
+
message.payments = object.payments?.map((e) => payments_types_1.Payment.fromPartial(e)) || [];
|
|
882
|
+
return message;
|
|
883
|
+
},
|
|
884
|
+
};
|
|
885
|
+
exports.PaymentsServiceService = {
|
|
886
|
+
getExistsContract: {
|
|
887
|
+
path: "/kapital.payments.v1.PaymentsService/GetExistsContract",
|
|
888
|
+
requestStream: false,
|
|
889
|
+
responseStream: false,
|
|
890
|
+
requestSerialize: (value) => Buffer.from(exports.GetExistsContractRequest.encode(value).finish()),
|
|
891
|
+
requestDeserialize: (value) => exports.GetExistsContractRequest.decode(value),
|
|
892
|
+
responseSerialize: (value) => Buffer.from(exports.GetExistsContractResponse.encode(value).finish()),
|
|
893
|
+
responseDeserialize: (value) => exports.GetExistsContractResponse.decode(value),
|
|
894
|
+
},
|
|
895
|
+
createPayment: {
|
|
896
|
+
path: "/kapital.payments.v1.PaymentsService/CreatePayment",
|
|
897
|
+
requestStream: false,
|
|
898
|
+
responseStream: false,
|
|
899
|
+
requestSerialize: (value) => Buffer.from(exports.CreatePaymentRequest.encode(value).finish()),
|
|
900
|
+
requestDeserialize: (value) => exports.CreatePaymentRequest.decode(value),
|
|
901
|
+
responseSerialize: (value) => Buffer.from(exports.CreatePaymentResponse.encode(value).finish()),
|
|
902
|
+
responseDeserialize: (value) => exports.CreatePaymentResponse.decode(value),
|
|
903
|
+
},
|
|
904
|
+
getPaymentHistory: {
|
|
905
|
+
path: "/kapital.payments.v1.PaymentsService/GetPaymentHistory",
|
|
906
|
+
requestStream: false,
|
|
907
|
+
responseStream: false,
|
|
908
|
+
requestSerialize: (value) => Buffer.from(exports.GetPaymentHistoryRequest.encode(value).finish()),
|
|
909
|
+
requestDeserialize: (value) => exports.GetPaymentHistoryRequest.decode(value),
|
|
910
|
+
responseSerialize: (value) => Buffer.from(exports.GetPaymentHistoryResponse.encode(value).finish()),
|
|
911
|
+
responseDeserialize: (value) => exports.GetPaymentHistoryResponse.decode(value),
|
|
912
|
+
},
|
|
913
|
+
};
|
|
914
|
+
exports.PaymentsServiceClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.PaymentsServiceService, "kapital.payments.v1.PaymentsService");
|
|
915
|
+
//# sourceMappingURL=payments.js.map
|