@alexochihua/protos 1.0.0 → 1.0.2
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 +2 -2
- package/dist/generated/kapital/cards/v1/cards.d.ts +2 -436
- package/dist/generated/kapital/cards/v1/cards.js +36 -2795
- package/dist/generated/kapital/cards/v1/cards.js.map +1 -1
- package/dist/generated/kapital/cards/v1/cards_types.d.ts +25 -109
- package/dist/generated/kapital/cards/v1/cards_types.js +150 -1075
- package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -1
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery.d.ts +153 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js +711 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js.map +1 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.d.ts +54 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js +494 -0
- package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js.map +1 -0
- package/dist/generated/kapital/commissions/v1/commissions.d.ts +130 -0
- package/dist/generated/kapital/commissions/v1/commissions.js +588 -0
- package/dist/generated/kapital/commissions/v1/commissions.js.map +1 -0
- package/dist/generated/kapital/commissions/v1/commissions_types.d.ts +25 -0
- package/dist/generated/kapital/commissions/v1/commissions_types.js +151 -0
- package/dist/generated/kapital/commissions/v1/commissions_types.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +105 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +603 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +11 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +128 -1
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -1
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.d.ts +119 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js +471 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js.map +1 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.d.ts +22 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js +108 -0
- package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers_types.d.ts +8 -1
- package/dist/generated/kapital/customers/v1/customers_types.js +100 -9
- package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -1
- package/dist/generated/kapital/offers/v1/offers.d.ts +172 -0
- package/dist/generated/kapital/offers/v1/offers.js +1097 -0
- package/dist/generated/kapital/offers/v1/offers.js.map +1 -0
- package/dist/generated/kapital/offers/v1/offers_types.d.ts +58 -0
- package/dist/generated/kapital/offers/v1/offers_types.js +542 -0
- package/dist/generated/kapital/offers/v1/offers_types.js.map +1 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +994 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js +5049 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +165 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +1751 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -0
- package/dist/generated/kapital/product_groups/v1/product_groups.d.ts +283 -0
- package/dist/generated/kapital/product_groups/v1/product_groups.js +1444 -0
- package/dist/generated/kapital/product_groups/v1/product_groups.js.map +1 -0
- package/dist/generated/kapital/product_groups/v1/product_groups_types.d.ts +52 -0
- package/dist/generated/kapital/product_groups/v1/product_groups_types.js +460 -0
- package/dist/generated/kapital/product_groups/v1/product_groups_types.js.map +1 -0
- package/dist/index.d.ts +25 -13
- package/dist/index.js +26 -14
- package/dist/index.js.map +1 -1
- package/package.json +277 -193
- package/proto/kapital/cards/v1/cards.proto +3 -269
- package/proto/kapital/cards/v1/cards_types.proto +26 -110
- package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -0
- package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -0
- package/proto/kapital/commissions/v1/commissions.proto +69 -0
- package/proto/kapital/commissions/v1/commissions_types.proto +21 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +56 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +11 -0
- package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -0
- package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -0
- package/proto/kapital/customers/v1/customers_types.proto +10 -3
- package/proto/kapital/offers/v1/offers.proto +111 -0
- package/proto/kapital/offers/v1/offers_types.proto +54 -0
- package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -0
- package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -0
- package/proto/kapital/product_groups/v1/product_groups.proto +150 -0
- package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -0
|
@@ -5,2476 +5,27 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: kapital/cards/v1/cards.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CardsServiceClient = exports.CardsServiceService = exports.
|
|
8
|
+
exports.CardsServiceClient = exports.CardsServiceService = exports.GetCardResponse = exports.GetCardRequest = exports.GetExistsCardResponse = exports.GetExistsCardRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
12
12
|
const meta_1 = require("../../common/v1/meta");
|
|
13
13
|
const cards_types_1 = require("./cards_types");
|
|
14
14
|
exports.protobufPackage = "kapital.cards.v1";
|
|
15
|
-
function
|
|
16
|
-
return {
|
|
17
|
-
}
|
|
18
|
-
exports.GetExistsCustomerRequest = {
|
|
19
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
20
|
-
if (message.customer_id !== "") {
|
|
21
|
-
writer.uint32(10).string(message.customer_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 = createBaseGetExistsCustomerRequest();
|
|
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.customer_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.GetExistsCustomerRequest.fromPartial(base ?? {});
|
|
49
|
-
},
|
|
50
|
-
fromPartial(object) {
|
|
51
|
-
const message = createBaseGetExistsCustomerRequest();
|
|
52
|
-
message.customer_id = object.customer_id ?? "";
|
|
53
|
-
return message;
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
function createBaseGetExistsCustomerResponse() {
|
|
57
|
-
return { meta: undefined, customer_id: "", exists: false };
|
|
58
|
-
}
|
|
59
|
-
exports.GetExistsCustomerResponse = {
|
|
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.customer_id !== "") {
|
|
65
|
-
writer.uint32(18).string(message.customer_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 = createBaseGetExistsCustomerResponse();
|
|
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.customer_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.GetExistsCustomerResponse.fromPartial(base ?? {});
|
|
110
|
-
},
|
|
111
|
-
fromPartial(object) {
|
|
112
|
-
const message = createBaseGetExistsCustomerResponse();
|
|
113
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
114
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
115
|
-
: undefined;
|
|
116
|
-
message.customer_id = object.customer_id ?? "";
|
|
117
|
-
message.exists = object.exists ?? false;
|
|
118
|
-
return message;
|
|
119
|
-
},
|
|
120
|
-
};
|
|
121
|
-
function createBaseGetExistsContractRequest() {
|
|
122
|
-
return { contract_id: "" };
|
|
123
|
-
}
|
|
124
|
-
exports.GetExistsContractRequest = {
|
|
125
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
126
|
-
if (message.contract_id !== "") {
|
|
127
|
-
writer.uint32(10).string(message.contract_id);
|
|
128
|
-
}
|
|
129
|
-
return writer;
|
|
130
|
-
},
|
|
131
|
-
decode(input, length) {
|
|
132
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
133
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
134
|
-
const message = createBaseGetExistsContractRequest();
|
|
135
|
-
while (reader.pos < end) {
|
|
136
|
-
const tag = reader.uint32();
|
|
137
|
-
switch (tag >>> 3) {
|
|
138
|
-
case 1: {
|
|
139
|
-
if (tag !== 10) {
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
message.contract_id = reader.string();
|
|
143
|
-
continue;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
reader.skip(tag & 7);
|
|
150
|
-
}
|
|
151
|
-
return message;
|
|
152
|
-
},
|
|
153
|
-
create(base) {
|
|
154
|
-
return exports.GetExistsContractRequest.fromPartial(base ?? {});
|
|
155
|
-
},
|
|
156
|
-
fromPartial(object) {
|
|
157
|
-
const message = createBaseGetExistsContractRequest();
|
|
158
|
-
message.contract_id = object.contract_id ?? "";
|
|
159
|
-
return message;
|
|
160
|
-
},
|
|
161
|
-
};
|
|
162
|
-
function createBaseGetExistsContractResponse() {
|
|
163
|
-
return { meta: undefined, contract_id: "", exists: false };
|
|
164
|
-
}
|
|
165
|
-
exports.GetExistsContractResponse = {
|
|
166
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
167
|
-
if (message.meta !== undefined) {
|
|
168
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
169
|
-
}
|
|
170
|
-
if (message.contract_id !== "") {
|
|
171
|
-
writer.uint32(18).string(message.contract_id);
|
|
172
|
-
}
|
|
173
|
-
if (message.exists !== false) {
|
|
174
|
-
writer.uint32(24).bool(message.exists);
|
|
175
|
-
}
|
|
176
|
-
return writer;
|
|
177
|
-
},
|
|
178
|
-
decode(input, length) {
|
|
179
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
180
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
181
|
-
const message = createBaseGetExistsContractResponse();
|
|
182
|
-
while (reader.pos < end) {
|
|
183
|
-
const tag = reader.uint32();
|
|
184
|
-
switch (tag >>> 3) {
|
|
185
|
-
case 1: {
|
|
186
|
-
if (tag !== 10) {
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
190
|
-
continue;
|
|
191
|
-
}
|
|
192
|
-
case 2: {
|
|
193
|
-
if (tag !== 18) {
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
message.contract_id = reader.string();
|
|
197
|
-
continue;
|
|
198
|
-
}
|
|
199
|
-
case 3: {
|
|
200
|
-
if (tag !== 24) {
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
message.exists = reader.bool();
|
|
204
|
-
continue;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
reader.skip(tag & 7);
|
|
211
|
-
}
|
|
212
|
-
return message;
|
|
213
|
-
},
|
|
214
|
-
create(base) {
|
|
215
|
-
return exports.GetExistsContractResponse.fromPartial(base ?? {});
|
|
216
|
-
},
|
|
217
|
-
fromPartial(object) {
|
|
218
|
-
const message = createBaseGetExistsContractResponse();
|
|
219
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
220
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
221
|
-
: undefined;
|
|
222
|
-
message.contract_id = object.contract_id ?? "";
|
|
223
|
-
message.exists = object.exists ?? false;
|
|
224
|
-
return message;
|
|
225
|
-
},
|
|
226
|
-
};
|
|
227
|
-
function createBaseGetExistsCardRequest() {
|
|
228
|
-
return { card_id: "" };
|
|
229
|
-
}
|
|
230
|
-
exports.GetExistsCardRequest = {
|
|
231
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
232
|
-
if (message.card_id !== "") {
|
|
233
|
-
writer.uint32(10).string(message.card_id);
|
|
234
|
-
}
|
|
235
|
-
return writer;
|
|
236
|
-
},
|
|
237
|
-
decode(input, length) {
|
|
238
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
239
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
240
|
-
const message = createBaseGetExistsCardRequest();
|
|
241
|
-
while (reader.pos < end) {
|
|
242
|
-
const tag = reader.uint32();
|
|
243
|
-
switch (tag >>> 3) {
|
|
244
|
-
case 1: {
|
|
245
|
-
if (tag !== 10) {
|
|
246
|
-
break;
|
|
247
|
-
}
|
|
248
|
-
message.card_id = reader.string();
|
|
249
|
-
continue;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
reader.skip(tag & 7);
|
|
256
|
-
}
|
|
257
|
-
return message;
|
|
258
|
-
},
|
|
259
|
-
create(base) {
|
|
260
|
-
return exports.GetExistsCardRequest.fromPartial(base ?? {});
|
|
261
|
-
},
|
|
262
|
-
fromPartial(object) {
|
|
263
|
-
const message = createBaseGetExistsCardRequest();
|
|
264
|
-
message.card_id = object.card_id ?? "";
|
|
265
|
-
return message;
|
|
266
|
-
},
|
|
267
|
-
};
|
|
268
|
-
function createBaseGetExistsCardResponse() {
|
|
269
|
-
return { meta: undefined, card_id: "", exists: false };
|
|
270
|
-
}
|
|
271
|
-
exports.GetExistsCardResponse = {
|
|
272
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
273
|
-
if (message.meta !== undefined) {
|
|
274
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
275
|
-
}
|
|
276
|
-
if (message.card_id !== "") {
|
|
277
|
-
writer.uint32(18).string(message.card_id);
|
|
278
|
-
}
|
|
279
|
-
if (message.exists !== false) {
|
|
280
|
-
writer.uint32(24).bool(message.exists);
|
|
281
|
-
}
|
|
282
|
-
return writer;
|
|
283
|
-
},
|
|
284
|
-
decode(input, length) {
|
|
285
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
286
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
287
|
-
const message = createBaseGetExistsCardResponse();
|
|
288
|
-
while (reader.pos < end) {
|
|
289
|
-
const tag = reader.uint32();
|
|
290
|
-
switch (tag >>> 3) {
|
|
291
|
-
case 1: {
|
|
292
|
-
if (tag !== 10) {
|
|
293
|
-
break;
|
|
294
|
-
}
|
|
295
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
296
|
-
continue;
|
|
297
|
-
}
|
|
298
|
-
case 2: {
|
|
299
|
-
if (tag !== 18) {
|
|
300
|
-
break;
|
|
301
|
-
}
|
|
302
|
-
message.card_id = reader.string();
|
|
303
|
-
continue;
|
|
304
|
-
}
|
|
305
|
-
case 3: {
|
|
306
|
-
if (tag !== 24) {
|
|
307
|
-
break;
|
|
308
|
-
}
|
|
309
|
-
message.exists = reader.bool();
|
|
310
|
-
continue;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
314
|
-
break;
|
|
315
|
-
}
|
|
316
|
-
reader.skip(tag & 7);
|
|
317
|
-
}
|
|
318
|
-
return message;
|
|
319
|
-
},
|
|
320
|
-
create(base) {
|
|
321
|
-
return exports.GetExistsCardResponse.fromPartial(base ?? {});
|
|
322
|
-
},
|
|
323
|
-
fromPartial(object) {
|
|
324
|
-
const message = createBaseGetExistsCardResponse();
|
|
325
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
326
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
327
|
-
: undefined;
|
|
328
|
-
message.card_id = object.card_id ?? "";
|
|
329
|
-
message.exists = object.exists ?? false;
|
|
330
|
-
return message;
|
|
331
|
-
},
|
|
332
|
-
};
|
|
333
|
-
function createBaseGetContractCardsRequest() {
|
|
334
|
-
return { customer_id: "", provider_id: "", transaction_id: "", included_related: undefined };
|
|
335
|
-
}
|
|
336
|
-
exports.GetContractCardsRequest = {
|
|
337
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
338
|
-
if (message.customer_id !== "") {
|
|
339
|
-
writer.uint32(10).string(message.customer_id);
|
|
340
|
-
}
|
|
341
|
-
if (message.provider_id !== "") {
|
|
342
|
-
writer.uint32(18).string(message.provider_id);
|
|
343
|
-
}
|
|
344
|
-
if (message.transaction_id !== "") {
|
|
345
|
-
writer.uint32(26).string(message.transaction_id);
|
|
346
|
-
}
|
|
347
|
-
if (message.included_related !== undefined) {
|
|
348
|
-
writer.uint32(32).int32(message.included_related);
|
|
349
|
-
}
|
|
350
|
-
return writer;
|
|
351
|
-
},
|
|
352
|
-
decode(input, length) {
|
|
353
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
354
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
355
|
-
const message = createBaseGetContractCardsRequest();
|
|
356
|
-
while (reader.pos < end) {
|
|
357
|
-
const tag = reader.uint32();
|
|
358
|
-
switch (tag >>> 3) {
|
|
359
|
-
case 1: {
|
|
360
|
-
if (tag !== 10) {
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
message.customer_id = reader.string();
|
|
364
|
-
continue;
|
|
365
|
-
}
|
|
366
|
-
case 2: {
|
|
367
|
-
if (tag !== 18) {
|
|
368
|
-
break;
|
|
369
|
-
}
|
|
370
|
-
message.provider_id = reader.string();
|
|
371
|
-
continue;
|
|
372
|
-
}
|
|
373
|
-
case 3: {
|
|
374
|
-
if (tag !== 26) {
|
|
375
|
-
break;
|
|
376
|
-
}
|
|
377
|
-
message.transaction_id = reader.string();
|
|
378
|
-
continue;
|
|
379
|
-
}
|
|
380
|
-
case 4: {
|
|
381
|
-
if (tag !== 32) {
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
message.included_related = reader.int32();
|
|
385
|
-
continue;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
389
|
-
break;
|
|
390
|
-
}
|
|
391
|
-
reader.skip(tag & 7);
|
|
392
|
-
}
|
|
393
|
-
return message;
|
|
394
|
-
},
|
|
395
|
-
create(base) {
|
|
396
|
-
return exports.GetContractCardsRequest.fromPartial(base ?? {});
|
|
397
|
-
},
|
|
398
|
-
fromPartial(object) {
|
|
399
|
-
const message = createBaseGetContractCardsRequest();
|
|
400
|
-
message.customer_id = object.customer_id ?? "";
|
|
401
|
-
message.provider_id = object.provider_id ?? "";
|
|
402
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
403
|
-
message.included_related = object.included_related ?? undefined;
|
|
404
|
-
return message;
|
|
405
|
-
},
|
|
406
|
-
};
|
|
407
|
-
function createBaseGetContractCardsResponse() {
|
|
408
|
-
return { meta: undefined, customer: undefined, contracts: [] };
|
|
409
|
-
}
|
|
410
|
-
exports.GetContractCardsResponse = {
|
|
411
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
412
|
-
if (message.meta !== undefined) {
|
|
413
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
414
|
-
}
|
|
415
|
-
if (message.customer !== undefined) {
|
|
416
|
-
cards_types_1.CustomerContractCards.encode(message.customer, writer.uint32(18).fork()).join();
|
|
417
|
-
}
|
|
418
|
-
for (const v of message.contracts) {
|
|
419
|
-
cards_types_1.CardContractCards.encode(v, writer.uint32(26).fork()).join();
|
|
420
|
-
}
|
|
421
|
-
return writer;
|
|
422
|
-
},
|
|
423
|
-
decode(input, length) {
|
|
424
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
425
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
426
|
-
const message = createBaseGetContractCardsResponse();
|
|
427
|
-
while (reader.pos < end) {
|
|
428
|
-
const tag = reader.uint32();
|
|
429
|
-
switch (tag >>> 3) {
|
|
430
|
-
case 1: {
|
|
431
|
-
if (tag !== 10) {
|
|
432
|
-
break;
|
|
433
|
-
}
|
|
434
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
435
|
-
continue;
|
|
436
|
-
}
|
|
437
|
-
case 2: {
|
|
438
|
-
if (tag !== 18) {
|
|
439
|
-
break;
|
|
440
|
-
}
|
|
441
|
-
message.customer = cards_types_1.CustomerContractCards.decode(reader, reader.uint32());
|
|
442
|
-
continue;
|
|
443
|
-
}
|
|
444
|
-
case 3: {
|
|
445
|
-
if (tag !== 26) {
|
|
446
|
-
break;
|
|
447
|
-
}
|
|
448
|
-
message.contracts.push(cards_types_1.CardContractCards.decode(reader, reader.uint32()));
|
|
449
|
-
continue;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
453
|
-
break;
|
|
454
|
-
}
|
|
455
|
-
reader.skip(tag & 7);
|
|
456
|
-
}
|
|
457
|
-
return message;
|
|
458
|
-
},
|
|
459
|
-
create(base) {
|
|
460
|
-
return exports.GetContractCardsResponse.fromPartial(base ?? {});
|
|
461
|
-
},
|
|
462
|
-
fromPartial(object) {
|
|
463
|
-
const message = createBaseGetContractCardsResponse();
|
|
464
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
465
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
466
|
-
: undefined;
|
|
467
|
-
message.customer = (object.customer !== undefined && object.customer !== null)
|
|
468
|
-
? cards_types_1.CustomerContractCards.fromPartial(object.customer)
|
|
469
|
-
: undefined;
|
|
470
|
-
message.contracts = object.contracts?.map((e) => cards_types_1.CardContractCards.fromPartial(e)) || [];
|
|
471
|
-
return message;
|
|
472
|
-
},
|
|
473
|
-
};
|
|
474
|
-
function createBaseGetCardRequest() {
|
|
475
|
-
return { card_id: "", provider_id: "", transaction_id: "" };
|
|
476
|
-
}
|
|
477
|
-
exports.GetCardRequest = {
|
|
478
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
479
|
-
if (message.card_id !== "") {
|
|
480
|
-
writer.uint32(10).string(message.card_id);
|
|
481
|
-
}
|
|
482
|
-
if (message.provider_id !== "") {
|
|
483
|
-
writer.uint32(18).string(message.provider_id);
|
|
484
|
-
}
|
|
485
|
-
if (message.transaction_id !== "") {
|
|
486
|
-
writer.uint32(26).string(message.transaction_id);
|
|
487
|
-
}
|
|
488
|
-
return writer;
|
|
489
|
-
},
|
|
490
|
-
decode(input, length) {
|
|
491
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
492
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
493
|
-
const message = createBaseGetCardRequest();
|
|
494
|
-
while (reader.pos < end) {
|
|
495
|
-
const tag = reader.uint32();
|
|
496
|
-
switch (tag >>> 3) {
|
|
497
|
-
case 1: {
|
|
498
|
-
if (tag !== 10) {
|
|
499
|
-
break;
|
|
500
|
-
}
|
|
501
|
-
message.card_id = reader.string();
|
|
502
|
-
continue;
|
|
503
|
-
}
|
|
504
|
-
case 2: {
|
|
505
|
-
if (tag !== 18) {
|
|
506
|
-
break;
|
|
507
|
-
}
|
|
508
|
-
message.provider_id = reader.string();
|
|
509
|
-
continue;
|
|
510
|
-
}
|
|
511
|
-
case 3: {
|
|
512
|
-
if (tag !== 26) {
|
|
513
|
-
break;
|
|
514
|
-
}
|
|
515
|
-
message.transaction_id = reader.string();
|
|
516
|
-
continue;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
520
|
-
break;
|
|
521
|
-
}
|
|
522
|
-
reader.skip(tag & 7);
|
|
523
|
-
}
|
|
524
|
-
return message;
|
|
525
|
-
},
|
|
526
|
-
create(base) {
|
|
527
|
-
return exports.GetCardRequest.fromPartial(base ?? {});
|
|
528
|
-
},
|
|
529
|
-
fromPartial(object) {
|
|
530
|
-
const message = createBaseGetCardRequest();
|
|
531
|
-
message.card_id = object.card_id ?? "";
|
|
532
|
-
message.provider_id = object.provider_id ?? "";
|
|
533
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
534
|
-
return message;
|
|
535
|
-
},
|
|
536
|
-
};
|
|
537
|
-
function createBaseGetCardResponse() {
|
|
538
|
-
return {
|
|
539
|
-
meta: undefined,
|
|
540
|
-
card_number: "",
|
|
541
|
-
expiry_date: undefined,
|
|
542
|
-
card_security_code: undefined,
|
|
543
|
-
status: "",
|
|
544
|
-
card_id: "",
|
|
545
|
-
external_card_id: undefined,
|
|
546
|
-
pmt_ref_no: "",
|
|
547
|
-
first_name: undefined,
|
|
548
|
-
middle_name: undefined,
|
|
549
|
-
last_name: undefined,
|
|
550
|
-
encrypted_card_number: undefined,
|
|
551
|
-
encrypted_expiry_date: undefined,
|
|
552
|
-
emboss_uuid: undefined,
|
|
553
|
-
embossed_cards: [],
|
|
554
|
-
freeze_info: undefined,
|
|
555
|
-
pin_fail_count: undefined,
|
|
556
|
-
pin_fail_date: undefined,
|
|
557
|
-
spend_controls: undefined,
|
|
558
|
-
ssn: undefined,
|
|
559
|
-
card_format: undefined,
|
|
560
|
-
card_type: undefined,
|
|
561
|
-
address_1: undefined,
|
|
562
|
-
address_2: undefined,
|
|
563
|
-
city: undefined,
|
|
564
|
-
state: undefined,
|
|
565
|
-
postal_code: undefined,
|
|
566
|
-
country_code: undefined,
|
|
567
|
-
preferred_name: undefined,
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
exports.GetCardResponse = {
|
|
571
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
572
|
-
if (message.meta !== undefined) {
|
|
573
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
574
|
-
}
|
|
575
|
-
if (message.card_number !== "") {
|
|
576
|
-
writer.uint32(18).string(message.card_number);
|
|
577
|
-
}
|
|
578
|
-
if (message.expiry_date !== undefined) {
|
|
579
|
-
writer.uint32(26).string(message.expiry_date);
|
|
580
|
-
}
|
|
581
|
-
if (message.card_security_code !== undefined) {
|
|
582
|
-
writer.uint32(34).string(message.card_security_code);
|
|
583
|
-
}
|
|
584
|
-
if (message.status !== "") {
|
|
585
|
-
writer.uint32(42).string(message.status);
|
|
586
|
-
}
|
|
587
|
-
if (message.card_id !== "") {
|
|
588
|
-
writer.uint32(50).string(message.card_id);
|
|
589
|
-
}
|
|
590
|
-
if (message.external_card_id !== undefined) {
|
|
591
|
-
writer.uint32(58).string(message.external_card_id);
|
|
592
|
-
}
|
|
593
|
-
if (message.pmt_ref_no !== "") {
|
|
594
|
-
writer.uint32(66).string(message.pmt_ref_no);
|
|
595
|
-
}
|
|
596
|
-
if (message.first_name !== undefined) {
|
|
597
|
-
writer.uint32(74).string(message.first_name);
|
|
598
|
-
}
|
|
599
|
-
if (message.middle_name !== undefined) {
|
|
600
|
-
writer.uint32(82).string(message.middle_name);
|
|
601
|
-
}
|
|
602
|
-
if (message.last_name !== undefined) {
|
|
603
|
-
writer.uint32(90).string(message.last_name);
|
|
604
|
-
}
|
|
605
|
-
if (message.encrypted_card_number !== undefined) {
|
|
606
|
-
writer.uint32(98).string(message.encrypted_card_number);
|
|
607
|
-
}
|
|
608
|
-
if (message.encrypted_expiry_date !== undefined) {
|
|
609
|
-
writer.uint32(106).string(message.encrypted_expiry_date);
|
|
610
|
-
}
|
|
611
|
-
if (message.emboss_uuid !== undefined) {
|
|
612
|
-
writer.uint32(114).string(message.emboss_uuid);
|
|
613
|
-
}
|
|
614
|
-
for (const v of message.embossed_cards) {
|
|
615
|
-
cards_types_1.EmbossedCard.encode(v, writer.uint32(122).fork()).join();
|
|
616
|
-
}
|
|
617
|
-
if (message.freeze_info !== undefined) {
|
|
618
|
-
cards_types_1.FreezeInfo.encode(message.freeze_info, writer.uint32(130).fork()).join();
|
|
619
|
-
}
|
|
620
|
-
if (message.pin_fail_count !== undefined) {
|
|
621
|
-
writer.uint32(138).string(message.pin_fail_count);
|
|
622
|
-
}
|
|
623
|
-
if (message.pin_fail_date !== undefined) {
|
|
624
|
-
writer.uint32(146).string(message.pin_fail_date);
|
|
625
|
-
}
|
|
626
|
-
if (message.spend_controls !== undefined) {
|
|
627
|
-
cards_types_1.SpendControls.encode(message.spend_controls, writer.uint32(154).fork()).join();
|
|
628
|
-
}
|
|
629
|
-
if (message.ssn !== undefined) {
|
|
630
|
-
writer.uint32(162).string(message.ssn);
|
|
631
|
-
}
|
|
632
|
-
if (message.card_format !== undefined) {
|
|
633
|
-
writer.uint32(170).string(message.card_format);
|
|
634
|
-
}
|
|
635
|
-
if (message.card_type !== undefined) {
|
|
636
|
-
writer.uint32(178).string(message.card_type);
|
|
637
|
-
}
|
|
638
|
-
if (message.address_1 !== undefined) {
|
|
639
|
-
writer.uint32(186).string(message.address_1);
|
|
640
|
-
}
|
|
641
|
-
if (message.address_2 !== undefined) {
|
|
642
|
-
writer.uint32(194).string(message.address_2);
|
|
643
|
-
}
|
|
644
|
-
if (message.city !== undefined) {
|
|
645
|
-
writer.uint32(202).string(message.city);
|
|
646
|
-
}
|
|
647
|
-
if (message.state !== undefined) {
|
|
648
|
-
writer.uint32(210).string(message.state);
|
|
649
|
-
}
|
|
650
|
-
if (message.postal_code !== undefined) {
|
|
651
|
-
writer.uint32(218).string(message.postal_code);
|
|
652
|
-
}
|
|
653
|
-
if (message.country_code !== undefined) {
|
|
654
|
-
writer.uint32(226).string(message.country_code);
|
|
655
|
-
}
|
|
656
|
-
if (message.preferred_name !== undefined) {
|
|
657
|
-
writer.uint32(234).string(message.preferred_name);
|
|
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 = createBaseGetCardResponse();
|
|
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.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
673
|
-
continue;
|
|
674
|
-
}
|
|
675
|
-
case 2: {
|
|
676
|
-
if (tag !== 18) {
|
|
677
|
-
break;
|
|
678
|
-
}
|
|
679
|
-
message.card_number = reader.string();
|
|
680
|
-
continue;
|
|
681
|
-
}
|
|
682
|
-
case 3: {
|
|
683
|
-
if (tag !== 26) {
|
|
684
|
-
break;
|
|
685
|
-
}
|
|
686
|
-
message.expiry_date = reader.string();
|
|
687
|
-
continue;
|
|
688
|
-
}
|
|
689
|
-
case 4: {
|
|
690
|
-
if (tag !== 34) {
|
|
691
|
-
break;
|
|
692
|
-
}
|
|
693
|
-
message.card_security_code = reader.string();
|
|
694
|
-
continue;
|
|
695
|
-
}
|
|
696
|
-
case 5: {
|
|
697
|
-
if (tag !== 42) {
|
|
698
|
-
break;
|
|
699
|
-
}
|
|
700
|
-
message.status = reader.string();
|
|
701
|
-
continue;
|
|
702
|
-
}
|
|
703
|
-
case 6: {
|
|
704
|
-
if (tag !== 50) {
|
|
705
|
-
break;
|
|
706
|
-
}
|
|
707
|
-
message.card_id = reader.string();
|
|
708
|
-
continue;
|
|
709
|
-
}
|
|
710
|
-
case 7: {
|
|
711
|
-
if (tag !== 58) {
|
|
712
|
-
break;
|
|
713
|
-
}
|
|
714
|
-
message.external_card_id = reader.string();
|
|
715
|
-
continue;
|
|
716
|
-
}
|
|
717
|
-
case 8: {
|
|
718
|
-
if (tag !== 66) {
|
|
719
|
-
break;
|
|
720
|
-
}
|
|
721
|
-
message.pmt_ref_no = reader.string();
|
|
722
|
-
continue;
|
|
723
|
-
}
|
|
724
|
-
case 9: {
|
|
725
|
-
if (tag !== 74) {
|
|
726
|
-
break;
|
|
727
|
-
}
|
|
728
|
-
message.first_name = reader.string();
|
|
729
|
-
continue;
|
|
730
|
-
}
|
|
731
|
-
case 10: {
|
|
732
|
-
if (tag !== 82) {
|
|
733
|
-
break;
|
|
734
|
-
}
|
|
735
|
-
message.middle_name = reader.string();
|
|
736
|
-
continue;
|
|
737
|
-
}
|
|
738
|
-
case 11: {
|
|
739
|
-
if (tag !== 90) {
|
|
740
|
-
break;
|
|
741
|
-
}
|
|
742
|
-
message.last_name = reader.string();
|
|
743
|
-
continue;
|
|
744
|
-
}
|
|
745
|
-
case 12: {
|
|
746
|
-
if (tag !== 98) {
|
|
747
|
-
break;
|
|
748
|
-
}
|
|
749
|
-
message.encrypted_card_number = reader.string();
|
|
750
|
-
continue;
|
|
751
|
-
}
|
|
752
|
-
case 13: {
|
|
753
|
-
if (tag !== 106) {
|
|
754
|
-
break;
|
|
755
|
-
}
|
|
756
|
-
message.encrypted_expiry_date = reader.string();
|
|
757
|
-
continue;
|
|
758
|
-
}
|
|
759
|
-
case 14: {
|
|
760
|
-
if (tag !== 114) {
|
|
761
|
-
break;
|
|
762
|
-
}
|
|
763
|
-
message.emboss_uuid = reader.string();
|
|
764
|
-
continue;
|
|
765
|
-
}
|
|
766
|
-
case 15: {
|
|
767
|
-
if (tag !== 122) {
|
|
768
|
-
break;
|
|
769
|
-
}
|
|
770
|
-
message.embossed_cards.push(cards_types_1.EmbossedCard.decode(reader, reader.uint32()));
|
|
771
|
-
continue;
|
|
772
|
-
}
|
|
773
|
-
case 16: {
|
|
774
|
-
if (tag !== 130) {
|
|
775
|
-
break;
|
|
776
|
-
}
|
|
777
|
-
message.freeze_info = cards_types_1.FreezeInfo.decode(reader, reader.uint32());
|
|
778
|
-
continue;
|
|
779
|
-
}
|
|
780
|
-
case 17: {
|
|
781
|
-
if (tag !== 138) {
|
|
782
|
-
break;
|
|
783
|
-
}
|
|
784
|
-
message.pin_fail_count = reader.string();
|
|
785
|
-
continue;
|
|
786
|
-
}
|
|
787
|
-
case 18: {
|
|
788
|
-
if (tag !== 146) {
|
|
789
|
-
break;
|
|
790
|
-
}
|
|
791
|
-
message.pin_fail_date = reader.string();
|
|
792
|
-
continue;
|
|
793
|
-
}
|
|
794
|
-
case 19: {
|
|
795
|
-
if (tag !== 154) {
|
|
796
|
-
break;
|
|
797
|
-
}
|
|
798
|
-
message.spend_controls = cards_types_1.SpendControls.decode(reader, reader.uint32());
|
|
799
|
-
continue;
|
|
800
|
-
}
|
|
801
|
-
case 20: {
|
|
802
|
-
if (tag !== 162) {
|
|
803
|
-
break;
|
|
804
|
-
}
|
|
805
|
-
message.ssn = reader.string();
|
|
806
|
-
continue;
|
|
807
|
-
}
|
|
808
|
-
case 21: {
|
|
809
|
-
if (tag !== 170) {
|
|
810
|
-
break;
|
|
811
|
-
}
|
|
812
|
-
message.card_format = reader.string();
|
|
813
|
-
continue;
|
|
814
|
-
}
|
|
815
|
-
case 22: {
|
|
816
|
-
if (tag !== 178) {
|
|
817
|
-
break;
|
|
818
|
-
}
|
|
819
|
-
message.card_type = reader.string();
|
|
820
|
-
continue;
|
|
821
|
-
}
|
|
822
|
-
case 23: {
|
|
823
|
-
if (tag !== 186) {
|
|
824
|
-
break;
|
|
825
|
-
}
|
|
826
|
-
message.address_1 = reader.string();
|
|
827
|
-
continue;
|
|
828
|
-
}
|
|
829
|
-
case 24: {
|
|
830
|
-
if (tag !== 194) {
|
|
831
|
-
break;
|
|
832
|
-
}
|
|
833
|
-
message.address_2 = reader.string();
|
|
834
|
-
continue;
|
|
835
|
-
}
|
|
836
|
-
case 25: {
|
|
837
|
-
if (tag !== 202) {
|
|
838
|
-
break;
|
|
839
|
-
}
|
|
840
|
-
message.city = reader.string();
|
|
841
|
-
continue;
|
|
842
|
-
}
|
|
843
|
-
case 26: {
|
|
844
|
-
if (tag !== 210) {
|
|
845
|
-
break;
|
|
846
|
-
}
|
|
847
|
-
message.state = reader.string();
|
|
848
|
-
continue;
|
|
849
|
-
}
|
|
850
|
-
case 27: {
|
|
851
|
-
if (tag !== 218) {
|
|
852
|
-
break;
|
|
853
|
-
}
|
|
854
|
-
message.postal_code = reader.string();
|
|
855
|
-
continue;
|
|
856
|
-
}
|
|
857
|
-
case 28: {
|
|
858
|
-
if (tag !== 226) {
|
|
859
|
-
break;
|
|
860
|
-
}
|
|
861
|
-
message.country_code = reader.string();
|
|
862
|
-
continue;
|
|
863
|
-
}
|
|
864
|
-
case 29: {
|
|
865
|
-
if (tag !== 234) {
|
|
866
|
-
break;
|
|
867
|
-
}
|
|
868
|
-
message.preferred_name = reader.string();
|
|
869
|
-
continue;
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
873
|
-
break;
|
|
874
|
-
}
|
|
875
|
-
reader.skip(tag & 7);
|
|
876
|
-
}
|
|
877
|
-
return message;
|
|
878
|
-
},
|
|
879
|
-
create(base) {
|
|
880
|
-
return exports.GetCardResponse.fromPartial(base ?? {});
|
|
881
|
-
},
|
|
882
|
-
fromPartial(object) {
|
|
883
|
-
const message = createBaseGetCardResponse();
|
|
884
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
885
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
886
|
-
: undefined;
|
|
887
|
-
message.card_number = object.card_number ?? "";
|
|
888
|
-
message.expiry_date = object.expiry_date ?? undefined;
|
|
889
|
-
message.card_security_code = object.card_security_code ?? undefined;
|
|
890
|
-
message.status = object.status ?? "";
|
|
891
|
-
message.card_id = object.card_id ?? "";
|
|
892
|
-
message.external_card_id = object.external_card_id ?? undefined;
|
|
893
|
-
message.pmt_ref_no = object.pmt_ref_no ?? "";
|
|
894
|
-
message.first_name = object.first_name ?? undefined;
|
|
895
|
-
message.middle_name = object.middle_name ?? undefined;
|
|
896
|
-
message.last_name = object.last_name ?? undefined;
|
|
897
|
-
message.encrypted_card_number = object.encrypted_card_number ?? undefined;
|
|
898
|
-
message.encrypted_expiry_date = object.encrypted_expiry_date ?? undefined;
|
|
899
|
-
message.emboss_uuid = object.emboss_uuid ?? undefined;
|
|
900
|
-
message.embossed_cards = object.embossed_cards?.map((e) => cards_types_1.EmbossedCard.fromPartial(e)) || [];
|
|
901
|
-
message.freeze_info = (object.freeze_info !== undefined && object.freeze_info !== null)
|
|
902
|
-
? cards_types_1.FreezeInfo.fromPartial(object.freeze_info)
|
|
903
|
-
: undefined;
|
|
904
|
-
message.pin_fail_count = object.pin_fail_count ?? undefined;
|
|
905
|
-
message.pin_fail_date = object.pin_fail_date ?? undefined;
|
|
906
|
-
message.spend_controls = (object.spend_controls !== undefined && object.spend_controls !== null)
|
|
907
|
-
? cards_types_1.SpendControls.fromPartial(object.spend_controls)
|
|
908
|
-
: undefined;
|
|
909
|
-
message.ssn = object.ssn ?? undefined;
|
|
910
|
-
message.card_format = object.card_format ?? undefined;
|
|
911
|
-
message.card_type = object.card_type ?? undefined;
|
|
912
|
-
message.address_1 = object.address_1 ?? undefined;
|
|
913
|
-
message.address_2 = object.address_2 ?? undefined;
|
|
914
|
-
message.city = object.city ?? undefined;
|
|
915
|
-
message.state = object.state ?? undefined;
|
|
916
|
-
message.postal_code = object.postal_code ?? undefined;
|
|
917
|
-
message.country_code = object.country_code ?? undefined;
|
|
918
|
-
message.preferred_name = object.preferred_name ?? undefined;
|
|
919
|
-
return message;
|
|
920
|
-
},
|
|
921
|
-
};
|
|
922
|
-
function createBaseActivateCardRequest() {
|
|
923
|
-
return {
|
|
924
|
-
card_id: "",
|
|
925
|
-
provider_id: "",
|
|
926
|
-
transaction_id: "",
|
|
927
|
-
card_expiry_date: undefined,
|
|
928
|
-
card_security_code: undefined,
|
|
929
|
-
card_number_last_4: undefined,
|
|
930
|
-
deactivate_temporary_cards: undefined,
|
|
931
|
-
};
|
|
932
|
-
}
|
|
933
|
-
exports.ActivateCardRequest = {
|
|
934
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
935
|
-
if (message.card_id !== "") {
|
|
936
|
-
writer.uint32(10).string(message.card_id);
|
|
937
|
-
}
|
|
938
|
-
if (message.provider_id !== "") {
|
|
939
|
-
writer.uint32(18).string(message.provider_id);
|
|
940
|
-
}
|
|
941
|
-
if (message.transaction_id !== "") {
|
|
942
|
-
writer.uint32(26).string(message.transaction_id);
|
|
943
|
-
}
|
|
944
|
-
if (message.card_expiry_date !== undefined) {
|
|
945
|
-
writer.uint32(34).string(message.card_expiry_date);
|
|
946
|
-
}
|
|
947
|
-
if (message.card_security_code !== undefined) {
|
|
948
|
-
writer.uint32(42).string(message.card_security_code);
|
|
949
|
-
}
|
|
950
|
-
if (message.card_number_last_4 !== undefined) {
|
|
951
|
-
writer.uint32(50).string(message.card_number_last_4);
|
|
952
|
-
}
|
|
953
|
-
if (message.deactivate_temporary_cards !== undefined) {
|
|
954
|
-
writer.uint32(56).int32(message.deactivate_temporary_cards);
|
|
955
|
-
}
|
|
956
|
-
return writer;
|
|
957
|
-
},
|
|
958
|
-
decode(input, length) {
|
|
959
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
960
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
961
|
-
const message = createBaseActivateCardRequest();
|
|
962
|
-
while (reader.pos < end) {
|
|
963
|
-
const tag = reader.uint32();
|
|
964
|
-
switch (tag >>> 3) {
|
|
965
|
-
case 1: {
|
|
966
|
-
if (tag !== 10) {
|
|
967
|
-
break;
|
|
968
|
-
}
|
|
969
|
-
message.card_id = reader.string();
|
|
970
|
-
continue;
|
|
971
|
-
}
|
|
972
|
-
case 2: {
|
|
973
|
-
if (tag !== 18) {
|
|
974
|
-
break;
|
|
975
|
-
}
|
|
976
|
-
message.provider_id = reader.string();
|
|
977
|
-
continue;
|
|
978
|
-
}
|
|
979
|
-
case 3: {
|
|
980
|
-
if (tag !== 26) {
|
|
981
|
-
break;
|
|
982
|
-
}
|
|
983
|
-
message.transaction_id = reader.string();
|
|
984
|
-
continue;
|
|
985
|
-
}
|
|
986
|
-
case 4: {
|
|
987
|
-
if (tag !== 34) {
|
|
988
|
-
break;
|
|
989
|
-
}
|
|
990
|
-
message.card_expiry_date = reader.string();
|
|
991
|
-
continue;
|
|
992
|
-
}
|
|
993
|
-
case 5: {
|
|
994
|
-
if (tag !== 42) {
|
|
995
|
-
break;
|
|
996
|
-
}
|
|
997
|
-
message.card_security_code = reader.string();
|
|
998
|
-
continue;
|
|
999
|
-
}
|
|
1000
|
-
case 6: {
|
|
1001
|
-
if (tag !== 50) {
|
|
1002
|
-
break;
|
|
1003
|
-
}
|
|
1004
|
-
message.card_number_last_4 = reader.string();
|
|
1005
|
-
continue;
|
|
1006
|
-
}
|
|
1007
|
-
case 7: {
|
|
1008
|
-
if (tag !== 56) {
|
|
1009
|
-
break;
|
|
1010
|
-
}
|
|
1011
|
-
message.deactivate_temporary_cards = reader.int32();
|
|
1012
|
-
continue;
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1016
|
-
break;
|
|
1017
|
-
}
|
|
1018
|
-
reader.skip(tag & 7);
|
|
1019
|
-
}
|
|
1020
|
-
return message;
|
|
1021
|
-
},
|
|
1022
|
-
create(base) {
|
|
1023
|
-
return exports.ActivateCardRequest.fromPartial(base ?? {});
|
|
1024
|
-
},
|
|
1025
|
-
fromPartial(object) {
|
|
1026
|
-
const message = createBaseActivateCardRequest();
|
|
1027
|
-
message.card_id = object.card_id ?? "";
|
|
1028
|
-
message.provider_id = object.provider_id ?? "";
|
|
1029
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
1030
|
-
message.card_expiry_date = object.card_expiry_date ?? undefined;
|
|
1031
|
-
message.card_security_code = object.card_security_code ?? undefined;
|
|
1032
|
-
message.card_number_last_4 = object.card_number_last_4 ?? undefined;
|
|
1033
|
-
message.deactivate_temporary_cards = object.deactivate_temporary_cards ?? undefined;
|
|
1034
|
-
return message;
|
|
1035
|
-
},
|
|
1036
|
-
};
|
|
1037
|
-
function createBaseActivateCardResponse() {
|
|
1038
|
-
return { meta: undefined, card_number_last_4: "", emboss_uuid: "" };
|
|
1039
|
-
}
|
|
1040
|
-
exports.ActivateCardResponse = {
|
|
1041
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1042
|
-
if (message.meta !== undefined) {
|
|
1043
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
1044
|
-
}
|
|
1045
|
-
if (message.card_number_last_4 !== "") {
|
|
1046
|
-
writer.uint32(18).string(message.card_number_last_4);
|
|
1047
|
-
}
|
|
1048
|
-
if (message.emboss_uuid !== "") {
|
|
1049
|
-
writer.uint32(26).string(message.emboss_uuid);
|
|
1050
|
-
}
|
|
1051
|
-
return writer;
|
|
1052
|
-
},
|
|
1053
|
-
decode(input, length) {
|
|
1054
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1055
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1056
|
-
const message = createBaseActivateCardResponse();
|
|
1057
|
-
while (reader.pos < end) {
|
|
1058
|
-
const tag = reader.uint32();
|
|
1059
|
-
switch (tag >>> 3) {
|
|
1060
|
-
case 1: {
|
|
1061
|
-
if (tag !== 10) {
|
|
1062
|
-
break;
|
|
1063
|
-
}
|
|
1064
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
1065
|
-
continue;
|
|
1066
|
-
}
|
|
1067
|
-
case 2: {
|
|
1068
|
-
if (tag !== 18) {
|
|
1069
|
-
break;
|
|
1070
|
-
}
|
|
1071
|
-
message.card_number_last_4 = reader.string();
|
|
1072
|
-
continue;
|
|
1073
|
-
}
|
|
1074
|
-
case 3: {
|
|
1075
|
-
if (tag !== 26) {
|
|
1076
|
-
break;
|
|
1077
|
-
}
|
|
1078
|
-
message.emboss_uuid = reader.string();
|
|
1079
|
-
continue;
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1083
|
-
break;
|
|
1084
|
-
}
|
|
1085
|
-
reader.skip(tag & 7);
|
|
1086
|
-
}
|
|
1087
|
-
return message;
|
|
1088
|
-
},
|
|
1089
|
-
create(base) {
|
|
1090
|
-
return exports.ActivateCardResponse.fromPartial(base ?? {});
|
|
1091
|
-
},
|
|
1092
|
-
fromPartial(object) {
|
|
1093
|
-
const message = createBaseActivateCardResponse();
|
|
1094
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
1095
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
1096
|
-
: undefined;
|
|
1097
|
-
message.card_number_last_4 = object.card_number_last_4 ?? "";
|
|
1098
|
-
message.emboss_uuid = object.emboss_uuid ?? "";
|
|
1099
|
-
return message;
|
|
1100
|
-
},
|
|
1101
|
-
};
|
|
1102
|
-
function createBaseReplaceLostStolenCardRequest() {
|
|
1103
|
-
return {
|
|
1104
|
-
card_id: "",
|
|
1105
|
-
provider_id: "",
|
|
1106
|
-
transaction_id: "",
|
|
1107
|
-
by_pass_rep_fee: undefined,
|
|
1108
|
-
card_status: undefined,
|
|
1109
|
-
card_number_last_4: undefined,
|
|
1110
|
-
};
|
|
1111
|
-
}
|
|
1112
|
-
exports.ReplaceLostStolenCardRequest = {
|
|
1113
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1114
|
-
if (message.card_id !== "") {
|
|
1115
|
-
writer.uint32(10).string(message.card_id);
|
|
1116
|
-
}
|
|
1117
|
-
if (message.provider_id !== "") {
|
|
1118
|
-
writer.uint32(18).string(message.provider_id);
|
|
1119
|
-
}
|
|
1120
|
-
if (message.transaction_id !== "") {
|
|
1121
|
-
writer.uint32(26).string(message.transaction_id);
|
|
1122
|
-
}
|
|
1123
|
-
if (message.by_pass_rep_fee !== undefined) {
|
|
1124
|
-
writer.uint32(34).string(message.by_pass_rep_fee);
|
|
1125
|
-
}
|
|
1126
|
-
if (message.card_status !== undefined) {
|
|
1127
|
-
writer.uint32(42).string(message.card_status);
|
|
1128
|
-
}
|
|
1129
|
-
if (message.card_number_last_4 !== undefined) {
|
|
1130
|
-
writer.uint32(50).string(message.card_number_last_4);
|
|
1131
|
-
}
|
|
1132
|
-
return writer;
|
|
1133
|
-
},
|
|
1134
|
-
decode(input, length) {
|
|
1135
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1136
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1137
|
-
const message = createBaseReplaceLostStolenCardRequest();
|
|
1138
|
-
while (reader.pos < end) {
|
|
1139
|
-
const tag = reader.uint32();
|
|
1140
|
-
switch (tag >>> 3) {
|
|
1141
|
-
case 1: {
|
|
1142
|
-
if (tag !== 10) {
|
|
1143
|
-
break;
|
|
1144
|
-
}
|
|
1145
|
-
message.card_id = reader.string();
|
|
1146
|
-
continue;
|
|
1147
|
-
}
|
|
1148
|
-
case 2: {
|
|
1149
|
-
if (tag !== 18) {
|
|
1150
|
-
break;
|
|
1151
|
-
}
|
|
1152
|
-
message.provider_id = reader.string();
|
|
1153
|
-
continue;
|
|
1154
|
-
}
|
|
1155
|
-
case 3: {
|
|
1156
|
-
if (tag !== 26) {
|
|
1157
|
-
break;
|
|
1158
|
-
}
|
|
1159
|
-
message.transaction_id = reader.string();
|
|
1160
|
-
continue;
|
|
1161
|
-
}
|
|
1162
|
-
case 4: {
|
|
1163
|
-
if (tag !== 34) {
|
|
1164
|
-
break;
|
|
1165
|
-
}
|
|
1166
|
-
message.by_pass_rep_fee = reader.string();
|
|
1167
|
-
continue;
|
|
1168
|
-
}
|
|
1169
|
-
case 5: {
|
|
1170
|
-
if (tag !== 42) {
|
|
1171
|
-
break;
|
|
1172
|
-
}
|
|
1173
|
-
message.card_status = reader.string();
|
|
1174
|
-
continue;
|
|
1175
|
-
}
|
|
1176
|
-
case 6: {
|
|
1177
|
-
if (tag !== 50) {
|
|
1178
|
-
break;
|
|
1179
|
-
}
|
|
1180
|
-
message.card_number_last_4 = reader.string();
|
|
1181
|
-
continue;
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1185
|
-
break;
|
|
1186
|
-
}
|
|
1187
|
-
reader.skip(tag & 7);
|
|
1188
|
-
}
|
|
1189
|
-
return message;
|
|
1190
|
-
},
|
|
1191
|
-
create(base) {
|
|
1192
|
-
return exports.ReplaceLostStolenCardRequest.fromPartial(base ?? {});
|
|
1193
|
-
},
|
|
1194
|
-
fromPartial(object) {
|
|
1195
|
-
const message = createBaseReplaceLostStolenCardRequest();
|
|
1196
|
-
message.card_id = object.card_id ?? "";
|
|
1197
|
-
message.provider_id = object.provider_id ?? "";
|
|
1198
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
1199
|
-
message.by_pass_rep_fee = object.by_pass_rep_fee ?? undefined;
|
|
1200
|
-
message.card_status = object.card_status ?? undefined;
|
|
1201
|
-
message.card_number_last_4 = object.card_number_last_4 ?? undefined;
|
|
1202
|
-
return message;
|
|
1203
|
-
},
|
|
1204
|
-
};
|
|
1205
|
-
function createBaseReplaceLostStolenCardResponse() {
|
|
1206
|
-
return {
|
|
1207
|
-
meta: undefined,
|
|
1208
|
-
card_number: "",
|
|
1209
|
-
emboss_uuid: "",
|
|
1210
|
-
expiry_date: "",
|
|
1211
|
-
card_security_code: "",
|
|
1212
|
-
status: "",
|
|
1213
|
-
card_id: "",
|
|
1214
|
-
external_card_id: "",
|
|
1215
|
-
pmt_ref_number: "",
|
|
1216
|
-
};
|
|
1217
|
-
}
|
|
1218
|
-
exports.ReplaceLostStolenCardResponse = {
|
|
1219
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1220
|
-
if (message.meta !== undefined) {
|
|
1221
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
1222
|
-
}
|
|
1223
|
-
if (message.card_number !== "") {
|
|
1224
|
-
writer.uint32(18).string(message.card_number);
|
|
1225
|
-
}
|
|
1226
|
-
if (message.emboss_uuid !== "") {
|
|
1227
|
-
writer.uint32(26).string(message.emboss_uuid);
|
|
1228
|
-
}
|
|
1229
|
-
if (message.expiry_date !== "") {
|
|
1230
|
-
writer.uint32(34).string(message.expiry_date);
|
|
1231
|
-
}
|
|
1232
|
-
if (message.card_security_code !== "") {
|
|
1233
|
-
writer.uint32(42).string(message.card_security_code);
|
|
1234
|
-
}
|
|
1235
|
-
if (message.status !== "") {
|
|
1236
|
-
writer.uint32(50).string(message.status);
|
|
1237
|
-
}
|
|
1238
|
-
if (message.card_id !== "") {
|
|
1239
|
-
writer.uint32(58).string(message.card_id);
|
|
1240
|
-
}
|
|
1241
|
-
if (message.external_card_id !== "") {
|
|
1242
|
-
writer.uint32(66).string(message.external_card_id);
|
|
1243
|
-
}
|
|
1244
|
-
if (message.pmt_ref_number !== "") {
|
|
1245
|
-
writer.uint32(74).string(message.pmt_ref_number);
|
|
1246
|
-
}
|
|
1247
|
-
return writer;
|
|
1248
|
-
},
|
|
1249
|
-
decode(input, length) {
|
|
1250
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1251
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1252
|
-
const message = createBaseReplaceLostStolenCardResponse();
|
|
1253
|
-
while (reader.pos < end) {
|
|
1254
|
-
const tag = reader.uint32();
|
|
1255
|
-
switch (tag >>> 3) {
|
|
1256
|
-
case 1: {
|
|
1257
|
-
if (tag !== 10) {
|
|
1258
|
-
break;
|
|
1259
|
-
}
|
|
1260
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
1261
|
-
continue;
|
|
1262
|
-
}
|
|
1263
|
-
case 2: {
|
|
1264
|
-
if (tag !== 18) {
|
|
1265
|
-
break;
|
|
1266
|
-
}
|
|
1267
|
-
message.card_number = reader.string();
|
|
1268
|
-
continue;
|
|
1269
|
-
}
|
|
1270
|
-
case 3: {
|
|
1271
|
-
if (tag !== 26) {
|
|
1272
|
-
break;
|
|
1273
|
-
}
|
|
1274
|
-
message.emboss_uuid = reader.string();
|
|
1275
|
-
continue;
|
|
1276
|
-
}
|
|
1277
|
-
case 4: {
|
|
1278
|
-
if (tag !== 34) {
|
|
1279
|
-
break;
|
|
1280
|
-
}
|
|
1281
|
-
message.expiry_date = reader.string();
|
|
1282
|
-
continue;
|
|
1283
|
-
}
|
|
1284
|
-
case 5: {
|
|
1285
|
-
if (tag !== 42) {
|
|
1286
|
-
break;
|
|
1287
|
-
}
|
|
1288
|
-
message.card_security_code = reader.string();
|
|
1289
|
-
continue;
|
|
1290
|
-
}
|
|
1291
|
-
case 6: {
|
|
1292
|
-
if (tag !== 50) {
|
|
1293
|
-
break;
|
|
1294
|
-
}
|
|
1295
|
-
message.status = reader.string();
|
|
1296
|
-
continue;
|
|
1297
|
-
}
|
|
1298
|
-
case 7: {
|
|
1299
|
-
if (tag !== 58) {
|
|
1300
|
-
break;
|
|
1301
|
-
}
|
|
1302
|
-
message.card_id = reader.string();
|
|
1303
|
-
continue;
|
|
1304
|
-
}
|
|
1305
|
-
case 8: {
|
|
1306
|
-
if (tag !== 66) {
|
|
1307
|
-
break;
|
|
1308
|
-
}
|
|
1309
|
-
message.external_card_id = reader.string();
|
|
1310
|
-
continue;
|
|
1311
|
-
}
|
|
1312
|
-
case 9: {
|
|
1313
|
-
if (tag !== 74) {
|
|
1314
|
-
break;
|
|
1315
|
-
}
|
|
1316
|
-
message.pmt_ref_number = reader.string();
|
|
1317
|
-
continue;
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1321
|
-
break;
|
|
1322
|
-
}
|
|
1323
|
-
reader.skip(tag & 7);
|
|
1324
|
-
}
|
|
1325
|
-
return message;
|
|
1326
|
-
},
|
|
1327
|
-
create(base) {
|
|
1328
|
-
return exports.ReplaceLostStolenCardResponse.fromPartial(base ?? {});
|
|
1329
|
-
},
|
|
1330
|
-
fromPartial(object) {
|
|
1331
|
-
const message = createBaseReplaceLostStolenCardResponse();
|
|
1332
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
1333
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
1334
|
-
: undefined;
|
|
1335
|
-
message.card_number = object.card_number ?? "";
|
|
1336
|
-
message.emboss_uuid = object.emboss_uuid ?? "";
|
|
1337
|
-
message.expiry_date = object.expiry_date ?? "";
|
|
1338
|
-
message.card_security_code = object.card_security_code ?? "";
|
|
1339
|
-
message.status = object.status ?? "";
|
|
1340
|
-
message.card_id = object.card_id ?? "";
|
|
1341
|
-
message.external_card_id = object.external_card_id ?? "";
|
|
1342
|
-
message.pmt_ref_number = object.pmt_ref_number ?? "";
|
|
1343
|
-
return message;
|
|
1344
|
-
},
|
|
1345
|
-
};
|
|
1346
|
-
function createBaseVerifyCvvRequest() {
|
|
1347
|
-
return {
|
|
1348
|
-
card_id: "",
|
|
1349
|
-
provider_id: "",
|
|
1350
|
-
transaction_id: "",
|
|
1351
|
-
card_number: "",
|
|
1352
|
-
card_security_code: "",
|
|
1353
|
-
card_expiry_date: undefined,
|
|
1354
|
-
};
|
|
1355
|
-
}
|
|
1356
|
-
exports.VerifyCvvRequest = {
|
|
1357
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1358
|
-
if (message.card_id !== "") {
|
|
1359
|
-
writer.uint32(10).string(message.card_id);
|
|
1360
|
-
}
|
|
1361
|
-
if (message.provider_id !== "") {
|
|
1362
|
-
writer.uint32(18).string(message.provider_id);
|
|
1363
|
-
}
|
|
1364
|
-
if (message.transaction_id !== "") {
|
|
1365
|
-
writer.uint32(26).string(message.transaction_id);
|
|
1366
|
-
}
|
|
1367
|
-
if (message.card_number !== "") {
|
|
1368
|
-
writer.uint32(34).string(message.card_number);
|
|
1369
|
-
}
|
|
1370
|
-
if (message.card_security_code !== "") {
|
|
1371
|
-
writer.uint32(42).string(message.card_security_code);
|
|
1372
|
-
}
|
|
1373
|
-
if (message.card_expiry_date !== undefined) {
|
|
1374
|
-
writer.uint32(50).string(message.card_expiry_date);
|
|
1375
|
-
}
|
|
1376
|
-
return writer;
|
|
1377
|
-
},
|
|
1378
|
-
decode(input, length) {
|
|
1379
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1380
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1381
|
-
const message = createBaseVerifyCvvRequest();
|
|
1382
|
-
while (reader.pos < end) {
|
|
1383
|
-
const tag = reader.uint32();
|
|
1384
|
-
switch (tag >>> 3) {
|
|
1385
|
-
case 1: {
|
|
1386
|
-
if (tag !== 10) {
|
|
1387
|
-
break;
|
|
1388
|
-
}
|
|
1389
|
-
message.card_id = reader.string();
|
|
1390
|
-
continue;
|
|
1391
|
-
}
|
|
1392
|
-
case 2: {
|
|
1393
|
-
if (tag !== 18) {
|
|
1394
|
-
break;
|
|
1395
|
-
}
|
|
1396
|
-
message.provider_id = reader.string();
|
|
1397
|
-
continue;
|
|
1398
|
-
}
|
|
1399
|
-
case 3: {
|
|
1400
|
-
if (tag !== 26) {
|
|
1401
|
-
break;
|
|
1402
|
-
}
|
|
1403
|
-
message.transaction_id = reader.string();
|
|
1404
|
-
continue;
|
|
1405
|
-
}
|
|
1406
|
-
case 4: {
|
|
1407
|
-
if (tag !== 34) {
|
|
1408
|
-
break;
|
|
1409
|
-
}
|
|
1410
|
-
message.card_number = reader.string();
|
|
1411
|
-
continue;
|
|
1412
|
-
}
|
|
1413
|
-
case 5: {
|
|
1414
|
-
if (tag !== 42) {
|
|
1415
|
-
break;
|
|
1416
|
-
}
|
|
1417
|
-
message.card_security_code = reader.string();
|
|
1418
|
-
continue;
|
|
1419
|
-
}
|
|
1420
|
-
case 6: {
|
|
1421
|
-
if (tag !== 50) {
|
|
1422
|
-
break;
|
|
1423
|
-
}
|
|
1424
|
-
message.card_expiry_date = reader.string();
|
|
1425
|
-
continue;
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1429
|
-
break;
|
|
1430
|
-
}
|
|
1431
|
-
reader.skip(tag & 7);
|
|
1432
|
-
}
|
|
1433
|
-
return message;
|
|
1434
|
-
},
|
|
1435
|
-
create(base) {
|
|
1436
|
-
return exports.VerifyCvvRequest.fromPartial(base ?? {});
|
|
1437
|
-
},
|
|
1438
|
-
fromPartial(object) {
|
|
1439
|
-
const message = createBaseVerifyCvvRequest();
|
|
1440
|
-
message.card_id = object.card_id ?? "";
|
|
1441
|
-
message.provider_id = object.provider_id ?? "";
|
|
1442
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
1443
|
-
message.card_number = object.card_number ?? "";
|
|
1444
|
-
message.card_security_code = object.card_security_code ?? "";
|
|
1445
|
-
message.card_expiry_date = object.card_expiry_date ?? undefined;
|
|
1446
|
-
return message;
|
|
1447
|
-
},
|
|
1448
|
-
};
|
|
1449
|
-
function createBaseVerifyCvvResponse() {
|
|
1450
|
-
return { meta: undefined, verified: false };
|
|
1451
|
-
}
|
|
1452
|
-
exports.VerifyCvvResponse = {
|
|
1453
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1454
|
-
if (message.meta !== undefined) {
|
|
1455
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
1456
|
-
}
|
|
1457
|
-
if (message.verified !== false) {
|
|
1458
|
-
writer.uint32(16).bool(message.verified);
|
|
1459
|
-
}
|
|
1460
|
-
return writer;
|
|
1461
|
-
},
|
|
1462
|
-
decode(input, length) {
|
|
1463
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1464
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1465
|
-
const message = createBaseVerifyCvvResponse();
|
|
1466
|
-
while (reader.pos < end) {
|
|
1467
|
-
const tag = reader.uint32();
|
|
1468
|
-
switch (tag >>> 3) {
|
|
1469
|
-
case 1: {
|
|
1470
|
-
if (tag !== 10) {
|
|
1471
|
-
break;
|
|
1472
|
-
}
|
|
1473
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
1474
|
-
continue;
|
|
1475
|
-
}
|
|
1476
|
-
case 2: {
|
|
1477
|
-
if (tag !== 16) {
|
|
1478
|
-
break;
|
|
1479
|
-
}
|
|
1480
|
-
message.verified = reader.bool();
|
|
1481
|
-
continue;
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1485
|
-
break;
|
|
1486
|
-
}
|
|
1487
|
-
reader.skip(tag & 7);
|
|
1488
|
-
}
|
|
1489
|
-
return message;
|
|
1490
|
-
},
|
|
1491
|
-
create(base) {
|
|
1492
|
-
return exports.VerifyCvvResponse.fromPartial(base ?? {});
|
|
1493
|
-
},
|
|
1494
|
-
fromPartial(object) {
|
|
1495
|
-
const message = createBaseVerifyCvvResponse();
|
|
1496
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
1497
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
1498
|
-
: undefined;
|
|
1499
|
-
message.verified = object.verified ?? false;
|
|
1500
|
-
return message;
|
|
1501
|
-
},
|
|
1502
|
-
};
|
|
1503
|
-
function createBaseVoidAddCardRequest() {
|
|
1504
|
-
return { card_id: "", provider_id: "", transaction_id: "" };
|
|
1505
|
-
}
|
|
1506
|
-
exports.VoidAddCardRequest = {
|
|
1507
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1508
|
-
if (message.card_id !== "") {
|
|
1509
|
-
writer.uint32(10).string(message.card_id);
|
|
1510
|
-
}
|
|
1511
|
-
if (message.provider_id !== "") {
|
|
1512
|
-
writer.uint32(18).string(message.provider_id);
|
|
1513
|
-
}
|
|
1514
|
-
if (message.transaction_id !== "") {
|
|
1515
|
-
writer.uint32(26).string(message.transaction_id);
|
|
1516
|
-
}
|
|
1517
|
-
return writer;
|
|
1518
|
-
},
|
|
1519
|
-
decode(input, length) {
|
|
1520
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1521
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1522
|
-
const message = createBaseVoidAddCardRequest();
|
|
1523
|
-
while (reader.pos < end) {
|
|
1524
|
-
const tag = reader.uint32();
|
|
1525
|
-
switch (tag >>> 3) {
|
|
1526
|
-
case 1: {
|
|
1527
|
-
if (tag !== 10) {
|
|
1528
|
-
break;
|
|
1529
|
-
}
|
|
1530
|
-
message.card_id = reader.string();
|
|
1531
|
-
continue;
|
|
1532
|
-
}
|
|
1533
|
-
case 2: {
|
|
1534
|
-
if (tag !== 18) {
|
|
1535
|
-
break;
|
|
1536
|
-
}
|
|
1537
|
-
message.provider_id = reader.string();
|
|
1538
|
-
continue;
|
|
1539
|
-
}
|
|
1540
|
-
case 3: {
|
|
1541
|
-
if (tag !== 26) {
|
|
1542
|
-
break;
|
|
1543
|
-
}
|
|
1544
|
-
message.transaction_id = reader.string();
|
|
1545
|
-
continue;
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1549
|
-
break;
|
|
1550
|
-
}
|
|
1551
|
-
reader.skip(tag & 7);
|
|
1552
|
-
}
|
|
1553
|
-
return message;
|
|
1554
|
-
},
|
|
1555
|
-
create(base) {
|
|
1556
|
-
return exports.VoidAddCardRequest.fromPartial(base ?? {});
|
|
1557
|
-
},
|
|
1558
|
-
fromPartial(object) {
|
|
1559
|
-
const message = createBaseVoidAddCardRequest();
|
|
1560
|
-
message.card_id = object.card_id ?? "";
|
|
1561
|
-
message.provider_id = object.provider_id ?? "";
|
|
1562
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
1563
|
-
return message;
|
|
1564
|
-
},
|
|
1565
|
-
};
|
|
1566
|
-
function createBaseVoidAddCardResponse() {
|
|
1567
|
-
return { meta: undefined, voided: false };
|
|
1568
|
-
}
|
|
1569
|
-
exports.VoidAddCardResponse = {
|
|
1570
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1571
|
-
if (message.meta !== undefined) {
|
|
1572
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
1573
|
-
}
|
|
1574
|
-
if (message.voided !== false) {
|
|
1575
|
-
writer.uint32(16).bool(message.voided);
|
|
1576
|
-
}
|
|
1577
|
-
return writer;
|
|
1578
|
-
},
|
|
1579
|
-
decode(input, length) {
|
|
1580
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1581
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1582
|
-
const message = createBaseVoidAddCardResponse();
|
|
1583
|
-
while (reader.pos < end) {
|
|
1584
|
-
const tag = reader.uint32();
|
|
1585
|
-
switch (tag >>> 3) {
|
|
1586
|
-
case 1: {
|
|
1587
|
-
if (tag !== 10) {
|
|
1588
|
-
break;
|
|
1589
|
-
}
|
|
1590
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
1591
|
-
continue;
|
|
1592
|
-
}
|
|
1593
|
-
case 2: {
|
|
1594
|
-
if (tag !== 16) {
|
|
1595
|
-
break;
|
|
1596
|
-
}
|
|
1597
|
-
message.voided = reader.bool();
|
|
1598
|
-
continue;
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1602
|
-
break;
|
|
1603
|
-
}
|
|
1604
|
-
reader.skip(tag & 7);
|
|
1605
|
-
}
|
|
1606
|
-
return message;
|
|
1607
|
-
},
|
|
1608
|
-
create(base) {
|
|
1609
|
-
return exports.VoidAddCardResponse.fromPartial(base ?? {});
|
|
1610
|
-
},
|
|
1611
|
-
fromPartial(object) {
|
|
1612
|
-
const message = createBaseVoidAddCardResponse();
|
|
1613
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
1614
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
1615
|
-
: undefined;
|
|
1616
|
-
message.voided = object.voided ?? false;
|
|
1617
|
-
return message;
|
|
1618
|
-
},
|
|
1619
|
-
};
|
|
1620
|
-
function createBaseReissueCardRequest() {
|
|
1621
|
-
return {
|
|
1622
|
-
card_id: "",
|
|
1623
|
-
provider_id: "",
|
|
1624
|
-
transaction_id: "",
|
|
1625
|
-
new_pan: undefined,
|
|
1626
|
-
new_expiry_date: undefined,
|
|
1627
|
-
emboss: undefined,
|
|
1628
|
-
old_card_status: undefined,
|
|
1629
|
-
by_pass_mail_fee: undefined,
|
|
1630
|
-
};
|
|
1631
|
-
}
|
|
1632
|
-
exports.ReissueCardRequest = {
|
|
1633
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1634
|
-
if (message.card_id !== "") {
|
|
1635
|
-
writer.uint32(10).string(message.card_id);
|
|
1636
|
-
}
|
|
1637
|
-
if (message.provider_id !== "") {
|
|
1638
|
-
writer.uint32(18).string(message.provider_id);
|
|
1639
|
-
}
|
|
1640
|
-
if (message.transaction_id !== "") {
|
|
1641
|
-
writer.uint32(26).string(message.transaction_id);
|
|
1642
|
-
}
|
|
1643
|
-
if (message.new_pan !== undefined) {
|
|
1644
|
-
writer.uint32(34).string(message.new_pan);
|
|
1645
|
-
}
|
|
1646
|
-
if (message.new_expiry_date !== undefined) {
|
|
1647
|
-
writer.uint32(42).string(message.new_expiry_date);
|
|
1648
|
-
}
|
|
1649
|
-
if (message.emboss !== undefined) {
|
|
1650
|
-
writer.uint32(50).string(message.emboss);
|
|
1651
|
-
}
|
|
1652
|
-
if (message.old_card_status !== undefined) {
|
|
1653
|
-
writer.uint32(58).string(message.old_card_status);
|
|
1654
|
-
}
|
|
1655
|
-
if (message.by_pass_mail_fee !== undefined) {
|
|
1656
|
-
writer.uint32(66).string(message.by_pass_mail_fee);
|
|
1657
|
-
}
|
|
1658
|
-
return writer;
|
|
1659
|
-
},
|
|
1660
|
-
decode(input, length) {
|
|
1661
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1662
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1663
|
-
const message = createBaseReissueCardRequest();
|
|
1664
|
-
while (reader.pos < end) {
|
|
1665
|
-
const tag = reader.uint32();
|
|
1666
|
-
switch (tag >>> 3) {
|
|
1667
|
-
case 1: {
|
|
1668
|
-
if (tag !== 10) {
|
|
1669
|
-
break;
|
|
1670
|
-
}
|
|
1671
|
-
message.card_id = reader.string();
|
|
1672
|
-
continue;
|
|
1673
|
-
}
|
|
1674
|
-
case 2: {
|
|
1675
|
-
if (tag !== 18) {
|
|
1676
|
-
break;
|
|
1677
|
-
}
|
|
1678
|
-
message.provider_id = reader.string();
|
|
1679
|
-
continue;
|
|
1680
|
-
}
|
|
1681
|
-
case 3: {
|
|
1682
|
-
if (tag !== 26) {
|
|
1683
|
-
break;
|
|
1684
|
-
}
|
|
1685
|
-
message.transaction_id = reader.string();
|
|
1686
|
-
continue;
|
|
1687
|
-
}
|
|
1688
|
-
case 4: {
|
|
1689
|
-
if (tag !== 34) {
|
|
1690
|
-
break;
|
|
1691
|
-
}
|
|
1692
|
-
message.new_pan = reader.string();
|
|
1693
|
-
continue;
|
|
1694
|
-
}
|
|
1695
|
-
case 5: {
|
|
1696
|
-
if (tag !== 42) {
|
|
1697
|
-
break;
|
|
1698
|
-
}
|
|
1699
|
-
message.new_expiry_date = reader.string();
|
|
1700
|
-
continue;
|
|
1701
|
-
}
|
|
1702
|
-
case 6: {
|
|
1703
|
-
if (tag !== 50) {
|
|
1704
|
-
break;
|
|
1705
|
-
}
|
|
1706
|
-
message.emboss = reader.string();
|
|
1707
|
-
continue;
|
|
1708
|
-
}
|
|
1709
|
-
case 7: {
|
|
1710
|
-
if (tag !== 58) {
|
|
1711
|
-
break;
|
|
1712
|
-
}
|
|
1713
|
-
message.old_card_status = reader.string();
|
|
1714
|
-
continue;
|
|
1715
|
-
}
|
|
1716
|
-
case 8: {
|
|
1717
|
-
if (tag !== 66) {
|
|
1718
|
-
break;
|
|
1719
|
-
}
|
|
1720
|
-
message.by_pass_mail_fee = reader.string();
|
|
1721
|
-
continue;
|
|
1722
|
-
}
|
|
1723
|
-
}
|
|
1724
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1725
|
-
break;
|
|
1726
|
-
}
|
|
1727
|
-
reader.skip(tag & 7);
|
|
1728
|
-
}
|
|
1729
|
-
return message;
|
|
1730
|
-
},
|
|
1731
|
-
create(base) {
|
|
1732
|
-
return exports.ReissueCardRequest.fromPartial(base ?? {});
|
|
1733
|
-
},
|
|
1734
|
-
fromPartial(object) {
|
|
1735
|
-
const message = createBaseReissueCardRequest();
|
|
1736
|
-
message.card_id = object.card_id ?? "";
|
|
1737
|
-
message.provider_id = object.provider_id ?? "";
|
|
1738
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
1739
|
-
message.new_pan = object.new_pan ?? undefined;
|
|
1740
|
-
message.new_expiry_date = object.new_expiry_date ?? undefined;
|
|
1741
|
-
message.emboss = object.emboss ?? undefined;
|
|
1742
|
-
message.old_card_status = object.old_card_status ?? undefined;
|
|
1743
|
-
message.by_pass_mail_fee = object.by_pass_mail_fee ?? undefined;
|
|
1744
|
-
return message;
|
|
1745
|
-
},
|
|
1746
|
-
};
|
|
1747
|
-
function createBaseReissueCardResponse() {
|
|
1748
|
-
return {
|
|
1749
|
-
meta: undefined,
|
|
1750
|
-
prn: "",
|
|
1751
|
-
prod_id: "",
|
|
1752
|
-
app_date: "",
|
|
1753
|
-
status: "",
|
|
1754
|
-
active_flag: "",
|
|
1755
|
-
bill_cycle_day: 0,
|
|
1756
|
-
group_id: "",
|
|
1757
|
-
start_date: "",
|
|
1758
|
-
contract_number: "",
|
|
1759
|
-
new_emboss_uuid: "",
|
|
1760
|
-
cards: [],
|
|
1761
|
-
};
|
|
1762
|
-
}
|
|
1763
|
-
exports.ReissueCardResponse = {
|
|
1764
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1765
|
-
if (message.meta !== undefined) {
|
|
1766
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
1767
|
-
}
|
|
1768
|
-
if (message.prn !== "") {
|
|
1769
|
-
writer.uint32(18).string(message.prn);
|
|
1770
|
-
}
|
|
1771
|
-
if (message.prod_id !== "") {
|
|
1772
|
-
writer.uint32(26).string(message.prod_id);
|
|
1773
|
-
}
|
|
1774
|
-
if (message.app_date !== "") {
|
|
1775
|
-
writer.uint32(34).string(message.app_date);
|
|
1776
|
-
}
|
|
1777
|
-
if (message.status !== "") {
|
|
1778
|
-
writer.uint32(42).string(message.status);
|
|
1779
|
-
}
|
|
1780
|
-
if (message.active_flag !== "") {
|
|
1781
|
-
writer.uint32(50).string(message.active_flag);
|
|
1782
|
-
}
|
|
1783
|
-
if (message.bill_cycle_day !== 0) {
|
|
1784
|
-
writer.uint32(56).int32(message.bill_cycle_day);
|
|
1785
|
-
}
|
|
1786
|
-
if (message.group_id !== "") {
|
|
1787
|
-
writer.uint32(66).string(message.group_id);
|
|
1788
|
-
}
|
|
1789
|
-
if (message.start_date !== "") {
|
|
1790
|
-
writer.uint32(74).string(message.start_date);
|
|
1791
|
-
}
|
|
1792
|
-
if (message.contract_number !== "") {
|
|
1793
|
-
writer.uint32(82).string(message.contract_number);
|
|
1794
|
-
}
|
|
1795
|
-
if (message.new_emboss_uuid !== "") {
|
|
1796
|
-
writer.uint32(90).string(message.new_emboss_uuid);
|
|
1797
|
-
}
|
|
1798
|
-
for (const v of message.cards) {
|
|
1799
|
-
cards_types_1.ContractCardReissue.encode(v, writer.uint32(98).fork()).join();
|
|
1800
|
-
}
|
|
1801
|
-
return writer;
|
|
1802
|
-
},
|
|
1803
|
-
decode(input, length) {
|
|
1804
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1805
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1806
|
-
const message = createBaseReissueCardResponse();
|
|
1807
|
-
while (reader.pos < end) {
|
|
1808
|
-
const tag = reader.uint32();
|
|
1809
|
-
switch (tag >>> 3) {
|
|
1810
|
-
case 1: {
|
|
1811
|
-
if (tag !== 10) {
|
|
1812
|
-
break;
|
|
1813
|
-
}
|
|
1814
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
1815
|
-
continue;
|
|
1816
|
-
}
|
|
1817
|
-
case 2: {
|
|
1818
|
-
if (tag !== 18) {
|
|
1819
|
-
break;
|
|
1820
|
-
}
|
|
1821
|
-
message.prn = reader.string();
|
|
1822
|
-
continue;
|
|
1823
|
-
}
|
|
1824
|
-
case 3: {
|
|
1825
|
-
if (tag !== 26) {
|
|
1826
|
-
break;
|
|
1827
|
-
}
|
|
1828
|
-
message.prod_id = reader.string();
|
|
1829
|
-
continue;
|
|
1830
|
-
}
|
|
1831
|
-
case 4: {
|
|
1832
|
-
if (tag !== 34) {
|
|
1833
|
-
break;
|
|
1834
|
-
}
|
|
1835
|
-
message.app_date = reader.string();
|
|
1836
|
-
continue;
|
|
1837
|
-
}
|
|
1838
|
-
case 5: {
|
|
1839
|
-
if (tag !== 42) {
|
|
1840
|
-
break;
|
|
1841
|
-
}
|
|
1842
|
-
message.status = reader.string();
|
|
1843
|
-
continue;
|
|
1844
|
-
}
|
|
1845
|
-
case 6: {
|
|
1846
|
-
if (tag !== 50) {
|
|
1847
|
-
break;
|
|
1848
|
-
}
|
|
1849
|
-
message.active_flag = reader.string();
|
|
1850
|
-
continue;
|
|
1851
|
-
}
|
|
1852
|
-
case 7: {
|
|
1853
|
-
if (tag !== 56) {
|
|
1854
|
-
break;
|
|
1855
|
-
}
|
|
1856
|
-
message.bill_cycle_day = reader.int32();
|
|
1857
|
-
continue;
|
|
1858
|
-
}
|
|
1859
|
-
case 8: {
|
|
1860
|
-
if (tag !== 66) {
|
|
1861
|
-
break;
|
|
1862
|
-
}
|
|
1863
|
-
message.group_id = reader.string();
|
|
1864
|
-
continue;
|
|
1865
|
-
}
|
|
1866
|
-
case 9: {
|
|
1867
|
-
if (tag !== 74) {
|
|
1868
|
-
break;
|
|
1869
|
-
}
|
|
1870
|
-
message.start_date = reader.string();
|
|
1871
|
-
continue;
|
|
1872
|
-
}
|
|
1873
|
-
case 10: {
|
|
1874
|
-
if (tag !== 82) {
|
|
1875
|
-
break;
|
|
1876
|
-
}
|
|
1877
|
-
message.contract_number = reader.string();
|
|
1878
|
-
continue;
|
|
1879
|
-
}
|
|
1880
|
-
case 11: {
|
|
1881
|
-
if (tag !== 90) {
|
|
1882
|
-
break;
|
|
1883
|
-
}
|
|
1884
|
-
message.new_emboss_uuid = reader.string();
|
|
1885
|
-
continue;
|
|
1886
|
-
}
|
|
1887
|
-
case 12: {
|
|
1888
|
-
if (tag !== 98) {
|
|
1889
|
-
break;
|
|
1890
|
-
}
|
|
1891
|
-
message.cards.push(cards_types_1.ContractCardReissue.decode(reader, reader.uint32()));
|
|
1892
|
-
continue;
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1896
|
-
break;
|
|
1897
|
-
}
|
|
1898
|
-
reader.skip(tag & 7);
|
|
1899
|
-
}
|
|
1900
|
-
return message;
|
|
1901
|
-
},
|
|
1902
|
-
create(base) {
|
|
1903
|
-
return exports.ReissueCardResponse.fromPartial(base ?? {});
|
|
1904
|
-
},
|
|
1905
|
-
fromPartial(object) {
|
|
1906
|
-
const message = createBaseReissueCardResponse();
|
|
1907
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
1908
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
1909
|
-
: undefined;
|
|
1910
|
-
message.prn = object.prn ?? "";
|
|
1911
|
-
message.prod_id = object.prod_id ?? "";
|
|
1912
|
-
message.app_date = object.app_date ?? "";
|
|
1913
|
-
message.status = object.status ?? "";
|
|
1914
|
-
message.active_flag = object.active_flag ?? "";
|
|
1915
|
-
message.bill_cycle_day = object.bill_cycle_day ?? 0;
|
|
1916
|
-
message.group_id = object.group_id ?? "";
|
|
1917
|
-
message.start_date = object.start_date ?? "";
|
|
1918
|
-
message.contract_number = object.contract_number ?? "";
|
|
1919
|
-
message.new_emboss_uuid = object.new_emboss_uuid ?? "";
|
|
1920
|
-
message.cards = object.cards?.map((e) => cards_types_1.ContractCardReissue.fromPartial(e)) || [];
|
|
1921
|
-
return message;
|
|
1922
|
-
},
|
|
1923
|
-
};
|
|
1924
|
-
function createBaseCreateSingleUseVirtualCardRequest() {
|
|
1925
|
-
return { provider_id: "", transaction_id: "", primary_account_number: "", prod_id: 0, credit_limit: 0 };
|
|
1926
|
-
}
|
|
1927
|
-
exports.CreateSingleUseVirtualCardRequest = {
|
|
1928
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1929
|
-
if (message.provider_id !== "") {
|
|
1930
|
-
writer.uint32(10).string(message.provider_id);
|
|
1931
|
-
}
|
|
1932
|
-
if (message.transaction_id !== "") {
|
|
1933
|
-
writer.uint32(18).string(message.transaction_id);
|
|
1934
|
-
}
|
|
1935
|
-
if (message.primary_account_number !== "") {
|
|
1936
|
-
writer.uint32(26).string(message.primary_account_number);
|
|
1937
|
-
}
|
|
1938
|
-
if (message.prod_id !== 0) {
|
|
1939
|
-
writer.uint32(32).int32(message.prod_id);
|
|
1940
|
-
}
|
|
1941
|
-
if (message.credit_limit !== 0) {
|
|
1942
|
-
writer.uint32(41).double(message.credit_limit);
|
|
1943
|
-
}
|
|
1944
|
-
return writer;
|
|
1945
|
-
},
|
|
1946
|
-
decode(input, length) {
|
|
1947
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1948
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1949
|
-
const message = createBaseCreateSingleUseVirtualCardRequest();
|
|
1950
|
-
while (reader.pos < end) {
|
|
1951
|
-
const tag = reader.uint32();
|
|
1952
|
-
switch (tag >>> 3) {
|
|
1953
|
-
case 1: {
|
|
1954
|
-
if (tag !== 10) {
|
|
1955
|
-
break;
|
|
1956
|
-
}
|
|
1957
|
-
message.provider_id = reader.string();
|
|
1958
|
-
continue;
|
|
1959
|
-
}
|
|
1960
|
-
case 2: {
|
|
1961
|
-
if (tag !== 18) {
|
|
1962
|
-
break;
|
|
1963
|
-
}
|
|
1964
|
-
message.transaction_id = reader.string();
|
|
1965
|
-
continue;
|
|
1966
|
-
}
|
|
1967
|
-
case 3: {
|
|
1968
|
-
if (tag !== 26) {
|
|
1969
|
-
break;
|
|
1970
|
-
}
|
|
1971
|
-
message.primary_account_number = reader.string();
|
|
1972
|
-
continue;
|
|
1973
|
-
}
|
|
1974
|
-
case 4: {
|
|
1975
|
-
if (tag !== 32) {
|
|
1976
|
-
break;
|
|
1977
|
-
}
|
|
1978
|
-
message.prod_id = reader.int32();
|
|
1979
|
-
continue;
|
|
1980
|
-
}
|
|
1981
|
-
case 5: {
|
|
1982
|
-
if (tag !== 41) {
|
|
1983
|
-
break;
|
|
1984
|
-
}
|
|
1985
|
-
message.credit_limit = reader.double();
|
|
1986
|
-
continue;
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1990
|
-
break;
|
|
1991
|
-
}
|
|
1992
|
-
reader.skip(tag & 7);
|
|
1993
|
-
}
|
|
1994
|
-
return message;
|
|
1995
|
-
},
|
|
1996
|
-
create(base) {
|
|
1997
|
-
return exports.CreateSingleUseVirtualCardRequest.fromPartial(base ?? {});
|
|
1998
|
-
},
|
|
1999
|
-
fromPartial(object) {
|
|
2000
|
-
const message = createBaseCreateSingleUseVirtualCardRequest();
|
|
2001
|
-
message.provider_id = object.provider_id ?? "";
|
|
2002
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
2003
|
-
message.primary_account_number = object.primary_account_number ?? "";
|
|
2004
|
-
message.prod_id = object.prod_id ?? 0;
|
|
2005
|
-
message.credit_limit = object.credit_limit ?? 0;
|
|
2006
|
-
return message;
|
|
2007
|
-
},
|
|
2008
|
-
};
|
|
2009
|
-
function createBaseCreateSingleUseVirtualCardResponse() {
|
|
2010
|
-
return { meta: undefined, pmt_ref_number: "", card_id: "" };
|
|
2011
|
-
}
|
|
2012
|
-
exports.CreateSingleUseVirtualCardResponse = {
|
|
2013
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2014
|
-
if (message.meta !== undefined) {
|
|
2015
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
2016
|
-
}
|
|
2017
|
-
if (message.pmt_ref_number !== "") {
|
|
2018
|
-
writer.uint32(18).string(message.pmt_ref_number);
|
|
2019
|
-
}
|
|
2020
|
-
if (message.card_id !== "") {
|
|
2021
|
-
writer.uint32(26).string(message.card_id);
|
|
2022
|
-
}
|
|
2023
|
-
return writer;
|
|
2024
|
-
},
|
|
2025
|
-
decode(input, length) {
|
|
2026
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2027
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2028
|
-
const message = createBaseCreateSingleUseVirtualCardResponse();
|
|
2029
|
-
while (reader.pos < end) {
|
|
2030
|
-
const tag = reader.uint32();
|
|
2031
|
-
switch (tag >>> 3) {
|
|
2032
|
-
case 1: {
|
|
2033
|
-
if (tag !== 10) {
|
|
2034
|
-
break;
|
|
2035
|
-
}
|
|
2036
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
2037
|
-
continue;
|
|
2038
|
-
}
|
|
2039
|
-
case 2: {
|
|
2040
|
-
if (tag !== 18) {
|
|
2041
|
-
break;
|
|
2042
|
-
}
|
|
2043
|
-
message.pmt_ref_number = reader.string();
|
|
2044
|
-
continue;
|
|
2045
|
-
}
|
|
2046
|
-
case 3: {
|
|
2047
|
-
if (tag !== 26) {
|
|
2048
|
-
break;
|
|
2049
|
-
}
|
|
2050
|
-
message.card_id = reader.string();
|
|
2051
|
-
continue;
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2055
|
-
break;
|
|
2056
|
-
}
|
|
2057
|
-
reader.skip(tag & 7);
|
|
2058
|
-
}
|
|
2059
|
-
return message;
|
|
2060
|
-
},
|
|
2061
|
-
create(base) {
|
|
2062
|
-
return exports.CreateSingleUseVirtualCardResponse.fromPartial(base ?? {});
|
|
2063
|
-
},
|
|
2064
|
-
fromPartial(object) {
|
|
2065
|
-
const message = createBaseCreateSingleUseVirtualCardResponse();
|
|
2066
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
2067
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
2068
|
-
: undefined;
|
|
2069
|
-
message.pmt_ref_number = object.pmt_ref_number ?? "";
|
|
2070
|
-
message.card_id = object.card_id ?? "";
|
|
2071
|
-
return message;
|
|
2072
|
-
},
|
|
2073
|
-
};
|
|
2074
|
-
function createBaseModifyStatusRequest() {
|
|
2075
|
-
return {
|
|
2076
|
-
provider_id: "",
|
|
2077
|
-
transaction_id: "",
|
|
2078
|
-
contract_id: "",
|
|
2079
|
-
type: 0,
|
|
2080
|
-
start_date: undefined,
|
|
2081
|
-
end_date: undefined,
|
|
2082
|
-
by_pass_rep_fee: undefined,
|
|
2083
|
-
card_number_last_4: undefined,
|
|
2084
|
-
closure_reason: undefined,
|
|
2085
|
-
by_pass_mail_fee: undefined,
|
|
2086
|
-
};
|
|
2087
|
-
}
|
|
2088
|
-
exports.ModifyStatusRequest = {
|
|
2089
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2090
|
-
if (message.provider_id !== "") {
|
|
2091
|
-
writer.uint32(10).string(message.provider_id);
|
|
2092
|
-
}
|
|
2093
|
-
if (message.transaction_id !== "") {
|
|
2094
|
-
writer.uint32(18).string(message.transaction_id);
|
|
2095
|
-
}
|
|
2096
|
-
if (message.contract_id !== "") {
|
|
2097
|
-
writer.uint32(26).string(message.contract_id);
|
|
2098
|
-
}
|
|
2099
|
-
if (message.type !== 0) {
|
|
2100
|
-
writer.uint32(32).int32(message.type);
|
|
2101
|
-
}
|
|
2102
|
-
if (message.start_date !== undefined) {
|
|
2103
|
-
writer.uint32(42).string(message.start_date);
|
|
2104
|
-
}
|
|
2105
|
-
if (message.end_date !== undefined) {
|
|
2106
|
-
writer.uint32(50).string(message.end_date);
|
|
2107
|
-
}
|
|
2108
|
-
if (message.by_pass_rep_fee !== undefined) {
|
|
2109
|
-
writer.uint32(58).string(message.by_pass_rep_fee);
|
|
2110
|
-
}
|
|
2111
|
-
if (message.card_number_last_4 !== undefined) {
|
|
2112
|
-
writer.uint32(66).string(message.card_number_last_4);
|
|
2113
|
-
}
|
|
2114
|
-
if (message.closure_reason !== undefined) {
|
|
2115
|
-
writer.uint32(74).string(message.closure_reason);
|
|
2116
|
-
}
|
|
2117
|
-
if (message.by_pass_mail_fee !== undefined) {
|
|
2118
|
-
writer.uint32(82).string(message.by_pass_mail_fee);
|
|
2119
|
-
}
|
|
2120
|
-
return writer;
|
|
2121
|
-
},
|
|
2122
|
-
decode(input, length) {
|
|
2123
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2124
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2125
|
-
const message = createBaseModifyStatusRequest();
|
|
2126
|
-
while (reader.pos < end) {
|
|
2127
|
-
const tag = reader.uint32();
|
|
2128
|
-
switch (tag >>> 3) {
|
|
2129
|
-
case 1: {
|
|
2130
|
-
if (tag !== 10) {
|
|
2131
|
-
break;
|
|
2132
|
-
}
|
|
2133
|
-
message.provider_id = reader.string();
|
|
2134
|
-
continue;
|
|
2135
|
-
}
|
|
2136
|
-
case 2: {
|
|
2137
|
-
if (tag !== 18) {
|
|
2138
|
-
break;
|
|
2139
|
-
}
|
|
2140
|
-
message.transaction_id = reader.string();
|
|
2141
|
-
continue;
|
|
2142
|
-
}
|
|
2143
|
-
case 3: {
|
|
2144
|
-
if (tag !== 26) {
|
|
2145
|
-
break;
|
|
2146
|
-
}
|
|
2147
|
-
message.contract_id = reader.string();
|
|
2148
|
-
continue;
|
|
2149
|
-
}
|
|
2150
|
-
case 4: {
|
|
2151
|
-
if (tag !== 32) {
|
|
2152
|
-
break;
|
|
2153
|
-
}
|
|
2154
|
-
message.type = reader.int32();
|
|
2155
|
-
continue;
|
|
2156
|
-
}
|
|
2157
|
-
case 5: {
|
|
2158
|
-
if (tag !== 42) {
|
|
2159
|
-
break;
|
|
2160
|
-
}
|
|
2161
|
-
message.start_date = reader.string();
|
|
2162
|
-
continue;
|
|
2163
|
-
}
|
|
2164
|
-
case 6: {
|
|
2165
|
-
if (tag !== 50) {
|
|
2166
|
-
break;
|
|
2167
|
-
}
|
|
2168
|
-
message.end_date = reader.string();
|
|
2169
|
-
continue;
|
|
2170
|
-
}
|
|
2171
|
-
case 7: {
|
|
2172
|
-
if (tag !== 58) {
|
|
2173
|
-
break;
|
|
2174
|
-
}
|
|
2175
|
-
message.by_pass_rep_fee = reader.string();
|
|
2176
|
-
continue;
|
|
2177
|
-
}
|
|
2178
|
-
case 8: {
|
|
2179
|
-
if (tag !== 66) {
|
|
2180
|
-
break;
|
|
2181
|
-
}
|
|
2182
|
-
message.card_number_last_4 = reader.string();
|
|
2183
|
-
continue;
|
|
2184
|
-
}
|
|
2185
|
-
case 9: {
|
|
2186
|
-
if (tag !== 74) {
|
|
2187
|
-
break;
|
|
2188
|
-
}
|
|
2189
|
-
message.closure_reason = reader.string();
|
|
2190
|
-
continue;
|
|
2191
|
-
}
|
|
2192
|
-
case 10: {
|
|
2193
|
-
if (tag !== 82) {
|
|
2194
|
-
break;
|
|
2195
|
-
}
|
|
2196
|
-
message.by_pass_mail_fee = reader.string();
|
|
2197
|
-
continue;
|
|
2198
|
-
}
|
|
2199
|
-
}
|
|
2200
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2201
|
-
break;
|
|
2202
|
-
}
|
|
2203
|
-
reader.skip(tag & 7);
|
|
2204
|
-
}
|
|
2205
|
-
return message;
|
|
2206
|
-
},
|
|
2207
|
-
create(base) {
|
|
2208
|
-
return exports.ModifyStatusRequest.fromPartial(base ?? {});
|
|
2209
|
-
},
|
|
2210
|
-
fromPartial(object) {
|
|
2211
|
-
const message = createBaseModifyStatusRequest();
|
|
2212
|
-
message.provider_id = object.provider_id ?? "";
|
|
2213
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
2214
|
-
message.contract_id = object.contract_id ?? "";
|
|
2215
|
-
message.type = object.type ?? 0;
|
|
2216
|
-
message.start_date = object.start_date ?? undefined;
|
|
2217
|
-
message.end_date = object.end_date ?? undefined;
|
|
2218
|
-
message.by_pass_rep_fee = object.by_pass_rep_fee ?? undefined;
|
|
2219
|
-
message.card_number_last_4 = object.card_number_last_4 ?? undefined;
|
|
2220
|
-
message.closure_reason = object.closure_reason ?? undefined;
|
|
2221
|
-
message.by_pass_mail_fee = object.by_pass_mail_fee ?? undefined;
|
|
2222
|
-
return message;
|
|
2223
|
-
},
|
|
2224
|
-
};
|
|
2225
|
-
function createBaseModifyContractRequest() {
|
|
2226
|
-
return { contract_id: "", modify_status_dto: undefined };
|
|
2227
|
-
}
|
|
2228
|
-
exports.ModifyContractRequest = {
|
|
2229
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2230
|
-
if (message.contract_id !== "") {
|
|
2231
|
-
writer.uint32(10).string(message.contract_id);
|
|
2232
|
-
}
|
|
2233
|
-
if (message.modify_status_dto !== undefined) {
|
|
2234
|
-
exports.ModifyStatusRequest.encode(message.modify_status_dto, writer.uint32(18).fork()).join();
|
|
2235
|
-
}
|
|
2236
|
-
return writer;
|
|
2237
|
-
},
|
|
2238
|
-
decode(input, length) {
|
|
2239
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2240
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2241
|
-
const message = createBaseModifyContractRequest();
|
|
2242
|
-
while (reader.pos < end) {
|
|
2243
|
-
const tag = reader.uint32();
|
|
2244
|
-
switch (tag >>> 3) {
|
|
2245
|
-
case 1: {
|
|
2246
|
-
if (tag !== 10) {
|
|
2247
|
-
break;
|
|
2248
|
-
}
|
|
2249
|
-
message.contract_id = reader.string();
|
|
2250
|
-
continue;
|
|
2251
|
-
}
|
|
2252
|
-
case 2: {
|
|
2253
|
-
if (tag !== 18) {
|
|
2254
|
-
break;
|
|
2255
|
-
}
|
|
2256
|
-
message.modify_status_dto = exports.ModifyStatusRequest.decode(reader, reader.uint32());
|
|
2257
|
-
continue;
|
|
2258
|
-
}
|
|
2259
|
-
}
|
|
2260
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2261
|
-
break;
|
|
2262
|
-
}
|
|
2263
|
-
reader.skip(tag & 7);
|
|
2264
|
-
}
|
|
2265
|
-
return message;
|
|
2266
|
-
},
|
|
2267
|
-
create(base) {
|
|
2268
|
-
return exports.ModifyContractRequest.fromPartial(base ?? {});
|
|
2269
|
-
},
|
|
2270
|
-
fromPartial(object) {
|
|
2271
|
-
const message = createBaseModifyContractRequest();
|
|
2272
|
-
message.contract_id = object.contract_id ?? "";
|
|
2273
|
-
message.modify_status_dto = (object.modify_status_dto !== undefined && object.modify_status_dto !== null)
|
|
2274
|
-
? exports.ModifyStatusRequest.fromPartial(object.modify_status_dto)
|
|
2275
|
-
: undefined;
|
|
2276
|
-
return message;
|
|
2277
|
-
},
|
|
2278
|
-
};
|
|
2279
|
-
function createBaseModifyContractResponse() {
|
|
2280
|
-
return { meta: undefined, pmt_ref_number: "", account_status: "", new_emboss_uuid: "" };
|
|
2281
|
-
}
|
|
2282
|
-
exports.ModifyContractResponse = {
|
|
2283
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2284
|
-
if (message.meta !== undefined) {
|
|
2285
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
2286
|
-
}
|
|
2287
|
-
if (message.pmt_ref_number !== "") {
|
|
2288
|
-
writer.uint32(18).string(message.pmt_ref_number);
|
|
2289
|
-
}
|
|
2290
|
-
if (message.account_status !== "") {
|
|
2291
|
-
writer.uint32(26).string(message.account_status);
|
|
2292
|
-
}
|
|
2293
|
-
if (message.new_emboss_uuid !== "") {
|
|
2294
|
-
writer.uint32(34).string(message.new_emboss_uuid);
|
|
2295
|
-
}
|
|
2296
|
-
return writer;
|
|
2297
|
-
},
|
|
2298
|
-
decode(input, length) {
|
|
2299
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2300
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2301
|
-
const message = createBaseModifyContractResponse();
|
|
2302
|
-
while (reader.pos < end) {
|
|
2303
|
-
const tag = reader.uint32();
|
|
2304
|
-
switch (tag >>> 3) {
|
|
2305
|
-
case 1: {
|
|
2306
|
-
if (tag !== 10) {
|
|
2307
|
-
break;
|
|
2308
|
-
}
|
|
2309
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
2310
|
-
continue;
|
|
2311
|
-
}
|
|
2312
|
-
case 2: {
|
|
2313
|
-
if (tag !== 18) {
|
|
2314
|
-
break;
|
|
2315
|
-
}
|
|
2316
|
-
message.pmt_ref_number = reader.string();
|
|
2317
|
-
continue;
|
|
2318
|
-
}
|
|
2319
|
-
case 3: {
|
|
2320
|
-
if (tag !== 26) {
|
|
2321
|
-
break;
|
|
2322
|
-
}
|
|
2323
|
-
message.account_status = reader.string();
|
|
2324
|
-
continue;
|
|
2325
|
-
}
|
|
2326
|
-
case 4: {
|
|
2327
|
-
if (tag !== 34) {
|
|
2328
|
-
break;
|
|
2329
|
-
}
|
|
2330
|
-
message.new_emboss_uuid = reader.string();
|
|
2331
|
-
continue;
|
|
2332
|
-
}
|
|
2333
|
-
}
|
|
2334
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2335
|
-
break;
|
|
2336
|
-
}
|
|
2337
|
-
reader.skip(tag & 7);
|
|
2338
|
-
}
|
|
2339
|
-
return message;
|
|
2340
|
-
},
|
|
2341
|
-
create(base) {
|
|
2342
|
-
return exports.ModifyContractResponse.fromPartial(base ?? {});
|
|
2343
|
-
},
|
|
2344
|
-
fromPartial(object) {
|
|
2345
|
-
const message = createBaseModifyContractResponse();
|
|
2346
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
2347
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
2348
|
-
: undefined;
|
|
2349
|
-
message.pmt_ref_number = object.pmt_ref_number ?? "";
|
|
2350
|
-
message.account_status = object.account_status ?? "";
|
|
2351
|
-
message.new_emboss_uuid = object.new_emboss_uuid ?? "";
|
|
2352
|
-
return message;
|
|
2353
|
-
},
|
|
2354
|
-
};
|
|
2355
|
-
function createBaseGetCardIdRequest() {
|
|
2356
|
-
return { contract_id: "", card_number_last_4: "" };
|
|
2357
|
-
}
|
|
2358
|
-
exports.GetCardIdRequest = {
|
|
2359
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2360
|
-
if (message.contract_id !== "") {
|
|
2361
|
-
writer.uint32(10).string(message.contract_id);
|
|
2362
|
-
}
|
|
2363
|
-
if (message.card_number_last_4 !== "") {
|
|
2364
|
-
writer.uint32(18).string(message.card_number_last_4);
|
|
2365
|
-
}
|
|
2366
|
-
return writer;
|
|
2367
|
-
},
|
|
2368
|
-
decode(input, length) {
|
|
2369
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2370
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2371
|
-
const message = createBaseGetCardIdRequest();
|
|
2372
|
-
while (reader.pos < end) {
|
|
2373
|
-
const tag = reader.uint32();
|
|
2374
|
-
switch (tag >>> 3) {
|
|
2375
|
-
case 1: {
|
|
2376
|
-
if (tag !== 10) {
|
|
2377
|
-
break;
|
|
2378
|
-
}
|
|
2379
|
-
message.contract_id = reader.string();
|
|
2380
|
-
continue;
|
|
2381
|
-
}
|
|
2382
|
-
case 2: {
|
|
2383
|
-
if (tag !== 18) {
|
|
2384
|
-
break;
|
|
2385
|
-
}
|
|
2386
|
-
message.card_number_last_4 = reader.string();
|
|
2387
|
-
continue;
|
|
2388
|
-
}
|
|
2389
|
-
}
|
|
2390
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2391
|
-
break;
|
|
2392
|
-
}
|
|
2393
|
-
reader.skip(tag & 7);
|
|
2394
|
-
}
|
|
2395
|
-
return message;
|
|
2396
|
-
},
|
|
2397
|
-
create(base) {
|
|
2398
|
-
return exports.GetCardIdRequest.fromPartial(base ?? {});
|
|
2399
|
-
},
|
|
2400
|
-
fromPartial(object) {
|
|
2401
|
-
const message = createBaseGetCardIdRequest();
|
|
2402
|
-
message.contract_id = object.contract_id ?? "";
|
|
2403
|
-
message.card_number_last_4 = object.card_number_last_4 ?? "";
|
|
2404
|
-
return message;
|
|
2405
|
-
},
|
|
2406
|
-
};
|
|
2407
|
-
function createBaseGetCardIdResponse() {
|
|
2408
|
-
return { meta: undefined, card_id: "" };
|
|
2409
|
-
}
|
|
2410
|
-
exports.GetCardIdResponse = {
|
|
2411
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2412
|
-
if (message.meta !== undefined) {
|
|
2413
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
2414
|
-
}
|
|
2415
|
-
if (message.card_id !== "") {
|
|
2416
|
-
writer.uint32(18).string(message.card_id);
|
|
2417
|
-
}
|
|
2418
|
-
return writer;
|
|
2419
|
-
},
|
|
2420
|
-
decode(input, length) {
|
|
2421
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2422
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2423
|
-
const message = createBaseGetCardIdResponse();
|
|
2424
|
-
while (reader.pos < end) {
|
|
2425
|
-
const tag = reader.uint32();
|
|
2426
|
-
switch (tag >>> 3) {
|
|
2427
|
-
case 1: {
|
|
2428
|
-
if (tag !== 10) {
|
|
2429
|
-
break;
|
|
2430
|
-
}
|
|
2431
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
2432
|
-
continue;
|
|
2433
|
-
}
|
|
2434
|
-
case 2: {
|
|
2435
|
-
if (tag !== 18) {
|
|
2436
|
-
break;
|
|
2437
|
-
}
|
|
2438
|
-
message.card_id = reader.string();
|
|
2439
|
-
continue;
|
|
2440
|
-
}
|
|
2441
|
-
}
|
|
2442
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2443
|
-
break;
|
|
2444
|
-
}
|
|
2445
|
-
reader.skip(tag & 7);
|
|
2446
|
-
}
|
|
2447
|
-
return message;
|
|
2448
|
-
},
|
|
2449
|
-
create(base) {
|
|
2450
|
-
return exports.GetCardIdResponse.fromPartial(base ?? {});
|
|
2451
|
-
},
|
|
2452
|
-
fromPartial(object) {
|
|
2453
|
-
const message = createBaseGetCardIdResponse();
|
|
2454
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
2455
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
2456
|
-
: undefined;
|
|
2457
|
-
message.card_id = object.card_id ?? "";
|
|
2458
|
-
return message;
|
|
2459
|
-
},
|
|
2460
|
-
};
|
|
2461
|
-
function createBaseModifyCardRequest() {
|
|
2462
|
-
return { card_id: "", modify_status_dto: undefined };
|
|
15
|
+
function createBaseGetExistsCardRequest() {
|
|
16
|
+
return { card_id: "" };
|
|
2463
17
|
}
|
|
2464
|
-
exports.
|
|
18
|
+
exports.GetExistsCardRequest = {
|
|
2465
19
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2466
20
|
if (message.card_id !== "") {
|
|
2467
21
|
writer.uint32(10).string(message.card_id);
|
|
2468
22
|
}
|
|
2469
|
-
if (message.modify_status_dto !== undefined) {
|
|
2470
|
-
exports.ModifyStatusRequest.encode(message.modify_status_dto, writer.uint32(18).fork()).join();
|
|
2471
|
-
}
|
|
2472
23
|
return writer;
|
|
2473
24
|
},
|
|
2474
25
|
decode(input, length) {
|
|
2475
26
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2476
27
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2477
|
-
const message =
|
|
28
|
+
const message = createBaseGetExistsCardRequest();
|
|
2478
29
|
while (reader.pos < end) {
|
|
2479
30
|
const tag = reader.uint32();
|
|
2480
31
|
switch (tag >>> 3) {
|
|
@@ -2485,13 +36,6 @@ exports.ModifyCardRequest = {
|
|
|
2485
36
|
message.card_id = reader.string();
|
|
2486
37
|
continue;
|
|
2487
38
|
}
|
|
2488
|
-
case 2: {
|
|
2489
|
-
if (tag !== 18) {
|
|
2490
|
-
break;
|
|
2491
|
-
}
|
|
2492
|
-
message.modify_status_dto = exports.ModifyStatusRequest.decode(reader, reader.uint32());
|
|
2493
|
-
continue;
|
|
2494
|
-
}
|
|
2495
39
|
}
|
|
2496
40
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2497
41
|
break;
|
|
@@ -2501,181 +45,34 @@ exports.ModifyCardRequest = {
|
|
|
2501
45
|
return message;
|
|
2502
46
|
},
|
|
2503
47
|
create(base) {
|
|
2504
|
-
return exports.
|
|
48
|
+
return exports.GetExistsCardRequest.fromPartial(base ?? {});
|
|
2505
49
|
},
|
|
2506
50
|
fromPartial(object) {
|
|
2507
|
-
const message =
|
|
51
|
+
const message = createBaseGetExistsCardRequest();
|
|
2508
52
|
message.card_id = object.card_id ?? "";
|
|
2509
|
-
message.modify_status_dto = (object.modify_status_dto !== undefined && object.modify_status_dto !== null)
|
|
2510
|
-
? exports.ModifyStatusRequest.fromPartial(object.modify_status_dto)
|
|
2511
|
-
: undefined;
|
|
2512
53
|
return message;
|
|
2513
54
|
},
|
|
2514
55
|
};
|
|
2515
|
-
function
|
|
2516
|
-
return { meta: undefined,
|
|
56
|
+
function createBaseGetExistsCardResponse() {
|
|
57
|
+
return { meta: undefined, card_id: "", exists: false };
|
|
2517
58
|
}
|
|
2518
|
-
exports.
|
|
59
|
+
exports.GetExistsCardResponse = {
|
|
2519
60
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2520
61
|
if (message.meta !== undefined) {
|
|
2521
62
|
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
2522
63
|
}
|
|
2523
|
-
if (message.pmt_ref_number !== "") {
|
|
2524
|
-
writer.uint32(18).string(message.pmt_ref_number);
|
|
2525
|
-
}
|
|
2526
|
-
if (message.account_status !== "") {
|
|
2527
|
-
writer.uint32(26).string(message.account_status);
|
|
2528
|
-
}
|
|
2529
|
-
if (message.new_emboss_uuid !== "") {
|
|
2530
|
-
writer.uint32(34).string(message.new_emboss_uuid);
|
|
2531
|
-
}
|
|
2532
|
-
return writer;
|
|
2533
|
-
},
|
|
2534
|
-
decode(input, length) {
|
|
2535
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2536
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2537
|
-
const message = createBaseModifyCardResponse();
|
|
2538
|
-
while (reader.pos < end) {
|
|
2539
|
-
const tag = reader.uint32();
|
|
2540
|
-
switch (tag >>> 3) {
|
|
2541
|
-
case 1: {
|
|
2542
|
-
if (tag !== 10) {
|
|
2543
|
-
break;
|
|
2544
|
-
}
|
|
2545
|
-
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
2546
|
-
continue;
|
|
2547
|
-
}
|
|
2548
|
-
case 2: {
|
|
2549
|
-
if (tag !== 18) {
|
|
2550
|
-
break;
|
|
2551
|
-
}
|
|
2552
|
-
message.pmt_ref_number = reader.string();
|
|
2553
|
-
continue;
|
|
2554
|
-
}
|
|
2555
|
-
case 3: {
|
|
2556
|
-
if (tag !== 26) {
|
|
2557
|
-
break;
|
|
2558
|
-
}
|
|
2559
|
-
message.account_status = reader.string();
|
|
2560
|
-
continue;
|
|
2561
|
-
}
|
|
2562
|
-
case 4: {
|
|
2563
|
-
if (tag !== 34) {
|
|
2564
|
-
break;
|
|
2565
|
-
}
|
|
2566
|
-
message.new_emboss_uuid = reader.string();
|
|
2567
|
-
continue;
|
|
2568
|
-
}
|
|
2569
|
-
}
|
|
2570
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2571
|
-
break;
|
|
2572
|
-
}
|
|
2573
|
-
reader.skip(tag & 7);
|
|
2574
|
-
}
|
|
2575
|
-
return message;
|
|
2576
|
-
},
|
|
2577
|
-
create(base) {
|
|
2578
|
-
return exports.ModifyCardResponse.fromPartial(base ?? {});
|
|
2579
|
-
},
|
|
2580
|
-
fromPartial(object) {
|
|
2581
|
-
const message = createBaseModifyCardResponse();
|
|
2582
|
-
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
2583
|
-
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
2584
|
-
: undefined;
|
|
2585
|
-
message.pmt_ref_number = object.pmt_ref_number ?? "";
|
|
2586
|
-
message.account_status = object.account_status ?? "";
|
|
2587
|
-
message.new_emboss_uuid = object.new_emboss_uuid ?? "";
|
|
2588
|
-
return message;
|
|
2589
|
-
},
|
|
2590
|
-
};
|
|
2591
|
-
function createBaseModifyContractAndCardRequest() {
|
|
2592
|
-
return { contract_id: "", card_id: "", modify_status_dto: undefined };
|
|
2593
|
-
}
|
|
2594
|
-
exports.ModifyContractAndCardRequest = {
|
|
2595
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2596
|
-
if (message.contract_id !== "") {
|
|
2597
|
-
writer.uint32(10).string(message.contract_id);
|
|
2598
|
-
}
|
|
2599
64
|
if (message.card_id !== "") {
|
|
2600
65
|
writer.uint32(18).string(message.card_id);
|
|
2601
66
|
}
|
|
2602
|
-
if (message.
|
|
2603
|
-
|
|
2604
|
-
}
|
|
2605
|
-
return writer;
|
|
2606
|
-
},
|
|
2607
|
-
decode(input, length) {
|
|
2608
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2609
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2610
|
-
const message = createBaseModifyContractAndCardRequest();
|
|
2611
|
-
while (reader.pos < end) {
|
|
2612
|
-
const tag = reader.uint32();
|
|
2613
|
-
switch (tag >>> 3) {
|
|
2614
|
-
case 1: {
|
|
2615
|
-
if (tag !== 10) {
|
|
2616
|
-
break;
|
|
2617
|
-
}
|
|
2618
|
-
message.contract_id = reader.string();
|
|
2619
|
-
continue;
|
|
2620
|
-
}
|
|
2621
|
-
case 2: {
|
|
2622
|
-
if (tag !== 18) {
|
|
2623
|
-
break;
|
|
2624
|
-
}
|
|
2625
|
-
message.card_id = reader.string();
|
|
2626
|
-
continue;
|
|
2627
|
-
}
|
|
2628
|
-
case 3: {
|
|
2629
|
-
if (tag !== 26) {
|
|
2630
|
-
break;
|
|
2631
|
-
}
|
|
2632
|
-
message.modify_status_dto = exports.ModifyStatusRequest.decode(reader, reader.uint32());
|
|
2633
|
-
continue;
|
|
2634
|
-
}
|
|
2635
|
-
}
|
|
2636
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2637
|
-
break;
|
|
2638
|
-
}
|
|
2639
|
-
reader.skip(tag & 7);
|
|
2640
|
-
}
|
|
2641
|
-
return message;
|
|
2642
|
-
},
|
|
2643
|
-
create(base) {
|
|
2644
|
-
return exports.ModifyContractAndCardRequest.fromPartial(base ?? {});
|
|
2645
|
-
},
|
|
2646
|
-
fromPartial(object) {
|
|
2647
|
-
const message = createBaseModifyContractAndCardRequest();
|
|
2648
|
-
message.contract_id = object.contract_id ?? "";
|
|
2649
|
-
message.card_id = object.card_id ?? "";
|
|
2650
|
-
message.modify_status_dto = (object.modify_status_dto !== undefined && object.modify_status_dto !== null)
|
|
2651
|
-
? exports.ModifyStatusRequest.fromPartial(object.modify_status_dto)
|
|
2652
|
-
: undefined;
|
|
2653
|
-
return message;
|
|
2654
|
-
},
|
|
2655
|
-
};
|
|
2656
|
-
function createBaseModifyContractAndCardResponse() {
|
|
2657
|
-
return { meta: undefined, pmt_ref_number: "", account_status: "", new_emboss_uuid: "" };
|
|
2658
|
-
}
|
|
2659
|
-
exports.ModifyContractAndCardResponse = {
|
|
2660
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2661
|
-
if (message.meta !== undefined) {
|
|
2662
|
-
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
2663
|
-
}
|
|
2664
|
-
if (message.pmt_ref_number !== "") {
|
|
2665
|
-
writer.uint32(18).string(message.pmt_ref_number);
|
|
2666
|
-
}
|
|
2667
|
-
if (message.account_status !== "") {
|
|
2668
|
-
writer.uint32(26).string(message.account_status);
|
|
2669
|
-
}
|
|
2670
|
-
if (message.new_emboss_uuid !== "") {
|
|
2671
|
-
writer.uint32(34).string(message.new_emboss_uuid);
|
|
67
|
+
if (message.exists !== false) {
|
|
68
|
+
writer.uint32(24).bool(message.exists);
|
|
2672
69
|
}
|
|
2673
70
|
return writer;
|
|
2674
71
|
},
|
|
2675
72
|
decode(input, length) {
|
|
2676
73
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2677
74
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2678
|
-
const message =
|
|
75
|
+
const message = createBaseGetExistsCardResponse();
|
|
2679
76
|
while (reader.pos < end) {
|
|
2680
77
|
const tag = reader.uint32();
|
|
2681
78
|
switch (tag >>> 3) {
|
|
@@ -2690,21 +87,14 @@ exports.ModifyContractAndCardResponse = {
|
|
|
2690
87
|
if (tag !== 18) {
|
|
2691
88
|
break;
|
|
2692
89
|
}
|
|
2693
|
-
message.
|
|
90
|
+
message.card_id = reader.string();
|
|
2694
91
|
continue;
|
|
2695
92
|
}
|
|
2696
93
|
case 3: {
|
|
2697
|
-
if (tag !==
|
|
2698
|
-
break;
|
|
2699
|
-
}
|
|
2700
|
-
message.account_status = reader.string();
|
|
2701
|
-
continue;
|
|
2702
|
-
}
|
|
2703
|
-
case 4: {
|
|
2704
|
-
if (tag !== 34) {
|
|
94
|
+
if (tag !== 24) {
|
|
2705
95
|
break;
|
|
2706
96
|
}
|
|
2707
|
-
message.
|
|
97
|
+
message.exists = reader.bool();
|
|
2708
98
|
continue;
|
|
2709
99
|
}
|
|
2710
100
|
}
|
|
@@ -2716,39 +106,32 @@ exports.ModifyContractAndCardResponse = {
|
|
|
2716
106
|
return message;
|
|
2717
107
|
},
|
|
2718
108
|
create(base) {
|
|
2719
|
-
return exports.
|
|
109
|
+
return exports.GetExistsCardResponse.fromPartial(base ?? {});
|
|
2720
110
|
},
|
|
2721
111
|
fromPartial(object) {
|
|
2722
|
-
const message =
|
|
112
|
+
const message = createBaseGetExistsCardResponse();
|
|
2723
113
|
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
2724
114
|
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
2725
115
|
: undefined;
|
|
2726
|
-
message.
|
|
2727
|
-
message.
|
|
2728
|
-
message.new_emboss_uuid = object.new_emboss_uuid ?? "";
|
|
116
|
+
message.card_id = object.card_id ?? "";
|
|
117
|
+
message.exists = object.exists ?? false;
|
|
2729
118
|
return message;
|
|
2730
119
|
},
|
|
2731
120
|
};
|
|
2732
|
-
function
|
|
2733
|
-
return { card_id: ""
|
|
121
|
+
function createBaseGetCardRequest() {
|
|
122
|
+
return { card_id: "" };
|
|
2734
123
|
}
|
|
2735
|
-
exports.
|
|
124
|
+
exports.GetCardRequest = {
|
|
2736
125
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2737
126
|
if (message.card_id !== "") {
|
|
2738
127
|
writer.uint32(10).string(message.card_id);
|
|
2739
128
|
}
|
|
2740
|
-
if (message.provider_id !== "") {
|
|
2741
|
-
writer.uint32(18).string(message.provider_id);
|
|
2742
|
-
}
|
|
2743
|
-
if (message.transaction_id !== "") {
|
|
2744
|
-
writer.uint32(26).string(message.transaction_id);
|
|
2745
|
-
}
|
|
2746
129
|
return writer;
|
|
2747
130
|
},
|
|
2748
131
|
decode(input, length) {
|
|
2749
132
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2750
133
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2751
|
-
const message =
|
|
134
|
+
const message = createBaseGetCardRequest();
|
|
2752
135
|
while (reader.pos < end) {
|
|
2753
136
|
const tag = reader.uint32();
|
|
2754
137
|
switch (tag >>> 3) {
|
|
@@ -2759,20 +142,6 @@ exports.GetCardPinChangeKeyRequest = {
|
|
|
2759
142
|
message.card_id = reader.string();
|
|
2760
143
|
continue;
|
|
2761
144
|
}
|
|
2762
|
-
case 2: {
|
|
2763
|
-
if (tag !== 18) {
|
|
2764
|
-
break;
|
|
2765
|
-
}
|
|
2766
|
-
message.provider_id = reader.string();
|
|
2767
|
-
continue;
|
|
2768
|
-
}
|
|
2769
|
-
case 3: {
|
|
2770
|
-
if (tag !== 26) {
|
|
2771
|
-
break;
|
|
2772
|
-
}
|
|
2773
|
-
message.transaction_id = reader.string();
|
|
2774
|
-
continue;
|
|
2775
|
-
}
|
|
2776
145
|
}
|
|
2777
146
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2778
147
|
break;
|
|
@@ -2782,33 +151,31 @@ exports.GetCardPinChangeKeyRequest = {
|
|
|
2782
151
|
return message;
|
|
2783
152
|
},
|
|
2784
153
|
create(base) {
|
|
2785
|
-
return exports.
|
|
154
|
+
return exports.GetCardRequest.fromPartial(base ?? {});
|
|
2786
155
|
},
|
|
2787
156
|
fromPartial(object) {
|
|
2788
|
-
const message =
|
|
157
|
+
const message = createBaseGetCardRequest();
|
|
2789
158
|
message.card_id = object.card_id ?? "";
|
|
2790
|
-
message.provider_id = object.provider_id ?? "";
|
|
2791
|
-
message.transaction_id = object.transaction_id ?? "";
|
|
2792
159
|
return message;
|
|
2793
160
|
},
|
|
2794
161
|
};
|
|
2795
|
-
function
|
|
2796
|
-
return { meta: undefined,
|
|
162
|
+
function createBaseGetCardResponse() {
|
|
163
|
+
return { meta: undefined, card: undefined };
|
|
2797
164
|
}
|
|
2798
|
-
exports.
|
|
165
|
+
exports.GetCardResponse = {
|
|
2799
166
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2800
167
|
if (message.meta !== undefined) {
|
|
2801
168
|
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
2802
169
|
}
|
|
2803
|
-
if (message.
|
|
2804
|
-
writer.uint32(18).
|
|
170
|
+
if (message.card !== undefined) {
|
|
171
|
+
cards_types_1.Card.encode(message.card, writer.uint32(18).fork()).join();
|
|
2805
172
|
}
|
|
2806
173
|
return writer;
|
|
2807
174
|
},
|
|
2808
175
|
decode(input, length) {
|
|
2809
176
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2810
177
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2811
|
-
const message =
|
|
178
|
+
const message = createBaseGetCardResponse();
|
|
2812
179
|
while (reader.pos < end) {
|
|
2813
180
|
const tag = reader.uint32();
|
|
2814
181
|
switch (tag >>> 3) {
|
|
@@ -2823,7 +190,7 @@ exports.GetCardPinChangeKeyResponse = {
|
|
|
2823
190
|
if (tag !== 18) {
|
|
2824
191
|
break;
|
|
2825
192
|
}
|
|
2826
|
-
message.
|
|
193
|
+
message.card = cards_types_1.Card.decode(reader, reader.uint32());
|
|
2827
194
|
continue;
|
|
2828
195
|
}
|
|
2829
196
|
}
|
|
@@ -2835,36 +202,18 @@ exports.GetCardPinChangeKeyResponse = {
|
|
|
2835
202
|
return message;
|
|
2836
203
|
},
|
|
2837
204
|
create(base) {
|
|
2838
|
-
return exports.
|
|
205
|
+
return exports.GetCardResponse.fromPartial(base ?? {});
|
|
2839
206
|
},
|
|
2840
207
|
fromPartial(object) {
|
|
2841
|
-
const message =
|
|
208
|
+
const message = createBaseGetCardResponse();
|
|
2842
209
|
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
2843
210
|
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
2844
211
|
: undefined;
|
|
2845
|
-
message.
|
|
212
|
+
message.card = (object.card !== undefined && object.card !== null) ? cards_types_1.Card.fromPartial(object.card) : undefined;
|
|
2846
213
|
return message;
|
|
2847
214
|
},
|
|
2848
215
|
};
|
|
2849
216
|
exports.CardsServiceService = {
|
|
2850
|
-
getExistsCustomer: {
|
|
2851
|
-
path: "/kapital.cards.v1.CardsService/GetExistsCustomer",
|
|
2852
|
-
requestStream: false,
|
|
2853
|
-
responseStream: false,
|
|
2854
|
-
requestSerialize: (value) => Buffer.from(exports.GetExistsCustomerRequest.encode(value).finish()),
|
|
2855
|
-
requestDeserialize: (value) => exports.GetExistsCustomerRequest.decode(value),
|
|
2856
|
-
responseSerialize: (value) => Buffer.from(exports.GetExistsCustomerResponse.encode(value).finish()),
|
|
2857
|
-
responseDeserialize: (value) => exports.GetExistsCustomerResponse.decode(value),
|
|
2858
|
-
},
|
|
2859
|
-
getExistsContract: {
|
|
2860
|
-
path: "/kapital.cards.v1.CardsService/GetExistsContract",
|
|
2861
|
-
requestStream: false,
|
|
2862
|
-
responseStream: false,
|
|
2863
|
-
requestSerialize: (value) => Buffer.from(exports.GetExistsContractRequest.encode(value).finish()),
|
|
2864
|
-
requestDeserialize: (value) => exports.GetExistsContractRequest.decode(value),
|
|
2865
|
-
responseSerialize: (value) => Buffer.from(exports.GetExistsContractResponse.encode(value).finish()),
|
|
2866
|
-
responseDeserialize: (value) => exports.GetExistsContractResponse.decode(value),
|
|
2867
|
-
},
|
|
2868
217
|
getExistsCard: {
|
|
2869
218
|
path: "/kapital.cards.v1.CardsService/GetExistsCard",
|
|
2870
219
|
requestStream: false,
|
|
@@ -2874,15 +223,6 @@ exports.CardsServiceService = {
|
|
|
2874
223
|
responseSerialize: (value) => Buffer.from(exports.GetExistsCardResponse.encode(value).finish()),
|
|
2875
224
|
responseDeserialize: (value) => exports.GetExistsCardResponse.decode(value),
|
|
2876
225
|
},
|
|
2877
|
-
getContractCards: {
|
|
2878
|
-
path: "/kapital.cards.v1.CardsService/GetContractCards",
|
|
2879
|
-
requestStream: false,
|
|
2880
|
-
responseStream: false,
|
|
2881
|
-
requestSerialize: (value) => Buffer.from(exports.GetContractCardsRequest.encode(value).finish()),
|
|
2882
|
-
requestDeserialize: (value) => exports.GetContractCardsRequest.decode(value),
|
|
2883
|
-
responseSerialize: (value) => Buffer.from(exports.GetContractCardsResponse.encode(value).finish()),
|
|
2884
|
-
responseDeserialize: (value) => exports.GetContractCardsResponse.decode(value),
|
|
2885
|
-
},
|
|
2886
226
|
getCard: {
|
|
2887
227
|
path: "/kapital.cards.v1.CardsService/GetCard",
|
|
2888
228
|
requestStream: false,
|
|
@@ -2892,105 +232,6 @@ exports.CardsServiceService = {
|
|
|
2892
232
|
responseSerialize: (value) => Buffer.from(exports.GetCardResponse.encode(value).finish()),
|
|
2893
233
|
responseDeserialize: (value) => exports.GetCardResponse.decode(value),
|
|
2894
234
|
},
|
|
2895
|
-
activateCard: {
|
|
2896
|
-
path: "/kapital.cards.v1.CardsService/ActivateCard",
|
|
2897
|
-
requestStream: false,
|
|
2898
|
-
responseStream: false,
|
|
2899
|
-
requestSerialize: (value) => Buffer.from(exports.ActivateCardRequest.encode(value).finish()),
|
|
2900
|
-
requestDeserialize: (value) => exports.ActivateCardRequest.decode(value),
|
|
2901
|
-
responseSerialize: (value) => Buffer.from(exports.ActivateCardResponse.encode(value).finish()),
|
|
2902
|
-
responseDeserialize: (value) => exports.ActivateCardResponse.decode(value),
|
|
2903
|
-
},
|
|
2904
|
-
replaceLostStolenCard: {
|
|
2905
|
-
path: "/kapital.cards.v1.CardsService/ReplaceLostStolenCard",
|
|
2906
|
-
requestStream: false,
|
|
2907
|
-
responseStream: false,
|
|
2908
|
-
requestSerialize: (value) => Buffer.from(exports.ReplaceLostStolenCardRequest.encode(value).finish()),
|
|
2909
|
-
requestDeserialize: (value) => exports.ReplaceLostStolenCardRequest.decode(value),
|
|
2910
|
-
responseSerialize: (value) => Buffer.from(exports.ReplaceLostStolenCardResponse.encode(value).finish()),
|
|
2911
|
-
responseDeserialize: (value) => exports.ReplaceLostStolenCardResponse.decode(value),
|
|
2912
|
-
},
|
|
2913
|
-
verifyCvv: {
|
|
2914
|
-
path: "/kapital.cards.v1.CardsService/VerifyCvv",
|
|
2915
|
-
requestStream: false,
|
|
2916
|
-
responseStream: false,
|
|
2917
|
-
requestSerialize: (value) => Buffer.from(exports.VerifyCvvRequest.encode(value).finish()),
|
|
2918
|
-
requestDeserialize: (value) => exports.VerifyCvvRequest.decode(value),
|
|
2919
|
-
responseSerialize: (value) => Buffer.from(exports.VerifyCvvResponse.encode(value).finish()),
|
|
2920
|
-
responseDeserialize: (value) => exports.VerifyCvvResponse.decode(value),
|
|
2921
|
-
},
|
|
2922
|
-
voidAddCard: {
|
|
2923
|
-
path: "/kapital.cards.v1.CardsService/VoidAddCard",
|
|
2924
|
-
requestStream: false,
|
|
2925
|
-
responseStream: false,
|
|
2926
|
-
requestSerialize: (value) => Buffer.from(exports.VoidAddCardRequest.encode(value).finish()),
|
|
2927
|
-
requestDeserialize: (value) => exports.VoidAddCardRequest.decode(value),
|
|
2928
|
-
responseSerialize: (value) => Buffer.from(exports.VoidAddCardResponse.encode(value).finish()),
|
|
2929
|
-
responseDeserialize: (value) => exports.VoidAddCardResponse.decode(value),
|
|
2930
|
-
},
|
|
2931
|
-
reissueCard: {
|
|
2932
|
-
path: "/kapital.cards.v1.CardsService/ReissueCard",
|
|
2933
|
-
requestStream: false,
|
|
2934
|
-
responseStream: false,
|
|
2935
|
-
requestSerialize: (value) => Buffer.from(exports.ReissueCardRequest.encode(value).finish()),
|
|
2936
|
-
requestDeserialize: (value) => exports.ReissueCardRequest.decode(value),
|
|
2937
|
-
responseSerialize: (value) => Buffer.from(exports.ReissueCardResponse.encode(value).finish()),
|
|
2938
|
-
responseDeserialize: (value) => exports.ReissueCardResponse.decode(value),
|
|
2939
|
-
},
|
|
2940
|
-
createSingleUseVirtualCard: {
|
|
2941
|
-
path: "/kapital.cards.v1.CardsService/CreateSingleUseVirtualCard",
|
|
2942
|
-
requestStream: false,
|
|
2943
|
-
responseStream: false,
|
|
2944
|
-
requestSerialize: (value) => Buffer.from(exports.CreateSingleUseVirtualCardRequest.encode(value).finish()),
|
|
2945
|
-
requestDeserialize: (value) => exports.CreateSingleUseVirtualCardRequest.decode(value),
|
|
2946
|
-
responseSerialize: (value) => Buffer.from(exports.CreateSingleUseVirtualCardResponse.encode(value).finish()),
|
|
2947
|
-
responseDeserialize: (value) => exports.CreateSingleUseVirtualCardResponse.decode(value),
|
|
2948
|
-
},
|
|
2949
|
-
modifyContract: {
|
|
2950
|
-
path: "/kapital.cards.v1.CardsService/ModifyContract",
|
|
2951
|
-
requestStream: false,
|
|
2952
|
-
responseStream: false,
|
|
2953
|
-
requestSerialize: (value) => Buffer.from(exports.ModifyContractRequest.encode(value).finish()),
|
|
2954
|
-
requestDeserialize: (value) => exports.ModifyContractRequest.decode(value),
|
|
2955
|
-
responseSerialize: (value) => Buffer.from(exports.ModifyContractResponse.encode(value).finish()),
|
|
2956
|
-
responseDeserialize: (value) => exports.ModifyContractResponse.decode(value),
|
|
2957
|
-
},
|
|
2958
|
-
getCardId: {
|
|
2959
|
-
path: "/kapital.cards.v1.CardsService/GetCardId",
|
|
2960
|
-
requestStream: false,
|
|
2961
|
-
responseStream: false,
|
|
2962
|
-
requestSerialize: (value) => Buffer.from(exports.GetCardIdRequest.encode(value).finish()),
|
|
2963
|
-
requestDeserialize: (value) => exports.GetCardIdRequest.decode(value),
|
|
2964
|
-
responseSerialize: (value) => Buffer.from(exports.GetCardIdResponse.encode(value).finish()),
|
|
2965
|
-
responseDeserialize: (value) => exports.GetCardIdResponse.decode(value),
|
|
2966
|
-
},
|
|
2967
|
-
modifyCard: {
|
|
2968
|
-
path: "/kapital.cards.v1.CardsService/ModifyCard",
|
|
2969
|
-
requestStream: false,
|
|
2970
|
-
responseStream: false,
|
|
2971
|
-
requestSerialize: (value) => Buffer.from(exports.ModifyCardRequest.encode(value).finish()),
|
|
2972
|
-
requestDeserialize: (value) => exports.ModifyCardRequest.decode(value),
|
|
2973
|
-
responseSerialize: (value) => Buffer.from(exports.ModifyCardResponse.encode(value).finish()),
|
|
2974
|
-
responseDeserialize: (value) => exports.ModifyCardResponse.decode(value),
|
|
2975
|
-
},
|
|
2976
|
-
modifyContractAndCard: {
|
|
2977
|
-
path: "/kapital.cards.v1.CardsService/ModifyContractAndCard",
|
|
2978
|
-
requestStream: false,
|
|
2979
|
-
responseStream: false,
|
|
2980
|
-
requestSerialize: (value) => Buffer.from(exports.ModifyContractAndCardRequest.encode(value).finish()),
|
|
2981
|
-
requestDeserialize: (value) => exports.ModifyContractAndCardRequest.decode(value),
|
|
2982
|
-
responseSerialize: (value) => Buffer.from(exports.ModifyContractAndCardResponse.encode(value).finish()),
|
|
2983
|
-
responseDeserialize: (value) => exports.ModifyContractAndCardResponse.decode(value),
|
|
2984
|
-
},
|
|
2985
|
-
getCardPinChangeKey: {
|
|
2986
|
-
path: "/kapital.cards.v1.CardsService/GetCardPinChangeKey",
|
|
2987
|
-
requestStream: false,
|
|
2988
|
-
responseStream: false,
|
|
2989
|
-
requestSerialize: (value) => Buffer.from(exports.GetCardPinChangeKeyRequest.encode(value).finish()),
|
|
2990
|
-
requestDeserialize: (value) => exports.GetCardPinChangeKeyRequest.decode(value),
|
|
2991
|
-
responseSerialize: (value) => Buffer.from(exports.GetCardPinChangeKeyResponse.encode(value).finish()),
|
|
2992
|
-
responseDeserialize: (value) => exports.GetCardPinChangeKeyResponse.decode(value),
|
|
2993
|
-
},
|
|
2994
235
|
};
|
|
2995
236
|
exports.CardsServiceClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.CardsServiceService, "kapital.cards.v1.CardsService");
|
|
2996
237
|
//# sourceMappingURL=cards.js.map
|