@alexochihua/protos 1.0.12 → 1.0.14
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/dist/generated/kapital/customers/v1/customers.d.ts +27 -0
- package/dist/generated/kapital/customers/v1/customers.js +162 -1
- package/dist/generated/kapital/customers/v1/customers.js.map +1 -1
- package/dist/generated/kapital/transactions/v1/transactions.d.ts +1 -1
- package/dist/generated/kapital/transactions/v1/transactions.js +5 -5
- package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -1
- package/package.json +1 -1
- package/proto/kapital/accounts/v1/accounts.proto +80 -80
- package/proto/kapital/accounts/v1/accounts_types.proto +31 -31
- package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -81
- package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -30
- package/proto/kapital/cards/v1/cards.proto +32 -32
- package/proto/kapital/cards/v1/cards_types.proto +33 -33
- package/proto/kapital/commissions/v1/commissions.proto +69 -69
- package/proto/kapital/commissions/v1/commissions_types.proto +21 -21
- package/proto/kapital/common/v1/error.proto +18 -18
- package/proto/kapital/common/v1/meta.proto +13 -13
- package/proto/kapital/common/v1/pagination.proto +18 -18
- package/proto/kapital/contracts/v1/contracts_types.proto +315 -315
- package/proto/kapital/customers/v1/customers.proto +15 -0
- package/proto/kapital/offers/v1/offers.proto +111 -111
- package/proto/kapital/offers/v1/offers_types.proto +54 -54
- package/proto/kapital/payments/v1/payments.proto +93 -93
- package/proto/kapital/payments/v1/payments_types.proto +17 -17
- package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -511
- package/proto/kapital/product_groups/v1/product_groups.proto +150 -150
- package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -48
- package/proto/kapital/transactions/v1/transactions.proto +1 -1
- package/proto/kapital/transactions/v1/transactions_types.proto +90 -90
|
@@ -98,6 +98,18 @@ export interface GetCardTransactionsResponse {
|
|
|
98
98
|
page_response: PageResponse | undefined;
|
|
99
99
|
transactions: Transaction[];
|
|
100
100
|
}
|
|
101
|
+
export interface UpdateCustomerCardStatusRequest {
|
|
102
|
+
customer_id: string;
|
|
103
|
+
contract_id: string;
|
|
104
|
+
card_id: string;
|
|
105
|
+
status_value: string;
|
|
106
|
+
reason: string;
|
|
107
|
+
}
|
|
108
|
+
export interface UpdateCustomerCardStatusResponse {
|
|
109
|
+
meta: ResponseMeta | undefined;
|
|
110
|
+
card: CustomerCard | undefined;
|
|
111
|
+
message: string;
|
|
112
|
+
}
|
|
101
113
|
export interface GetContractPeriodsRequest {
|
|
102
114
|
customer_id: string;
|
|
103
115
|
contract_id: string;
|
|
@@ -199,6 +211,8 @@ export declare const GetCardDetailRequest: MessageFns<GetCardDetailRequest>;
|
|
|
199
211
|
export declare const GetCardDetailResponse: MessageFns<GetCardDetailResponse>;
|
|
200
212
|
export declare const GetCardTransactionsRequest: MessageFns<GetCardTransactionsRequest>;
|
|
201
213
|
export declare const GetCardTransactionsResponse: MessageFns<GetCardTransactionsResponse>;
|
|
214
|
+
export declare const UpdateCustomerCardStatusRequest: MessageFns<UpdateCustomerCardStatusRequest>;
|
|
215
|
+
export declare const UpdateCustomerCardStatusResponse: MessageFns<UpdateCustomerCardStatusResponse>;
|
|
202
216
|
export declare const GetContractPeriodsRequest: MessageFns<GetContractPeriodsRequest>;
|
|
203
217
|
export declare const GetContractPeriodsResponse: MessageFns<GetContractPeriodsResponse>;
|
|
204
218
|
export declare const GetCardPeriodsRequest: MessageFns<GetCardPeriodsRequest>;
|
|
@@ -295,6 +309,15 @@ export declare const CustomersServiceService: {
|
|
|
295
309
|
readonly responseSerialize: (value: GetCardTransactionsResponse) => Buffer;
|
|
296
310
|
readonly responseDeserialize: (value: Buffer) => GetCardTransactionsResponse;
|
|
297
311
|
};
|
|
312
|
+
readonly updateCustomerCardStatus: {
|
|
313
|
+
readonly path: "/kapital.customers.v1.CustomersService/UpdateCustomerCardStatus";
|
|
314
|
+
readonly requestStream: false;
|
|
315
|
+
readonly responseStream: false;
|
|
316
|
+
readonly requestSerialize: (value: UpdateCustomerCardStatusRequest) => Buffer;
|
|
317
|
+
readonly requestDeserialize: (value: Buffer) => UpdateCustomerCardStatusRequest;
|
|
318
|
+
readonly responseSerialize: (value: UpdateCustomerCardStatusResponse) => Buffer;
|
|
319
|
+
readonly responseDeserialize: (value: Buffer) => UpdateCustomerCardStatusResponse;
|
|
320
|
+
};
|
|
298
321
|
readonly getContractPeriods: {
|
|
299
322
|
readonly path: "/kapital.customers.v1.CustomersService/GetContractPeriods";
|
|
300
323
|
readonly requestStream: false;
|
|
@@ -404,6 +427,7 @@ export interface CustomersServiceServer extends UntypedServiceImplementation {
|
|
|
404
427
|
getCardsByContract: handleUnaryCall<GetCardsByContractRequest, GetCardsByContractResponse>;
|
|
405
428
|
getCardDetail: handleUnaryCall<GetCardDetailRequest, GetCardDetailResponse>;
|
|
406
429
|
getCardTransactions: handleUnaryCall<GetCardTransactionsRequest, GetCardTransactionsResponse>;
|
|
430
|
+
updateCustomerCardStatus: handleUnaryCall<UpdateCustomerCardStatusRequest, UpdateCustomerCardStatusResponse>;
|
|
407
431
|
getContractPeriods: handleUnaryCall<GetContractPeriodsRequest, GetContractPeriodsResponse>;
|
|
408
432
|
getCardPeriods: handleUnaryCall<GetCardPeriodsRequest, GetCardPeriodsResponse>;
|
|
409
433
|
getCustomerStatuses: handleUnaryCall<GetCustomerStatusesRequest, GetCustomerStatusesResponse>;
|
|
@@ -441,6 +465,9 @@ export interface CustomersServiceClient extends Client {
|
|
|
441
465
|
getCardTransactions(request: GetCardTransactionsRequest, callback: (error: ServiceError | null, response: GetCardTransactionsResponse) => void): ClientUnaryCall;
|
|
442
466
|
getCardTransactions(request: GetCardTransactionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCardTransactionsResponse) => void): ClientUnaryCall;
|
|
443
467
|
getCardTransactions(request: GetCardTransactionsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCardTransactionsResponse) => void): ClientUnaryCall;
|
|
468
|
+
updateCustomerCardStatus(request: UpdateCustomerCardStatusRequest, callback: (error: ServiceError | null, response: UpdateCustomerCardStatusResponse) => void): ClientUnaryCall;
|
|
469
|
+
updateCustomerCardStatus(request: UpdateCustomerCardStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: UpdateCustomerCardStatusResponse) => void): ClientUnaryCall;
|
|
470
|
+
updateCustomerCardStatus(request: UpdateCustomerCardStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: UpdateCustomerCardStatusResponse) => void): ClientUnaryCall;
|
|
444
471
|
getContractPeriods(request: GetContractPeriodsRequest, callback: (error: ServiceError | null, response: GetContractPeriodsResponse) => void): ClientUnaryCall;
|
|
445
472
|
getContractPeriods(request: GetContractPeriodsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetContractPeriodsResponse) => void): ClientUnaryCall;
|
|
446
473
|
getContractPeriods(request: GetContractPeriodsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetContractPeriodsResponse) => void): ClientUnaryCall;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: kapital/customers/v1/customers.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CustomersServiceClient = exports.CustomersServiceService = exports.GetTransactionChannelsResponse = exports.GetTransactionChannelsRequest = exports.GetTransactionTypesResponse = exports.GetTransactionTypesRequest = exports.GetMccsResponse = exports.GetMccsRequest = exports.GetCustomerCardTypesResponse = exports.GetCustomerCardTypesRequest = exports.GetCustomerProductTypesResponse = exports.GetCustomerProductTypesRequest = exports.GetCustomerCardStatusesResponse = exports.GetCustomerCardStatusesRequest = exports.GetContractStatusesResponse = exports.GetContractStatusesRequest = exports.GetDelinquencyLevelsResponse = exports.GetDelinquencyLevelsRequest = exports.GetCustomerStatusesResponse = exports.GetCustomerStatusesRequest = exports.GetCardPeriodsResponse = exports.GetCardPeriodsRequest = exports.GetContractPeriodsResponse = exports.GetContractPeriodsRequest = exports.GetCardTransactionsResponse = exports.GetCardTransactionsRequest = exports.GetCardDetailResponse = exports.GetCardDetailRequest = exports.GetCardsByContractResponse = exports.GetCardsByContractRequest = exports.GetTransactionsByContractResponse = exports.GetTransactionsByContractRequest = exports.GetContractByIdResponse = exports.GetContractByIdRequest = exports.GetContractsByCustomerResponse = exports.GetContractsByCustomerRequest = exports.GetCustomerByIdResponse = exports.GetCustomerByIdRequest = exports.GetCustomersResponse = exports.GetCustomersRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.CustomersServiceClient = exports.CustomersServiceService = exports.GetTransactionChannelsResponse = exports.GetTransactionChannelsRequest = exports.GetTransactionTypesResponse = exports.GetTransactionTypesRequest = exports.GetMccsResponse = exports.GetMccsRequest = exports.GetCustomerCardTypesResponse = exports.GetCustomerCardTypesRequest = exports.GetCustomerProductTypesResponse = exports.GetCustomerProductTypesRequest = exports.GetCustomerCardStatusesResponse = exports.GetCustomerCardStatusesRequest = exports.GetContractStatusesResponse = exports.GetContractStatusesRequest = exports.GetDelinquencyLevelsResponse = exports.GetDelinquencyLevelsRequest = exports.GetCustomerStatusesResponse = exports.GetCustomerStatusesRequest = exports.GetCardPeriodsResponse = exports.GetCardPeriodsRequest = exports.GetContractPeriodsResponse = exports.GetContractPeriodsRequest = exports.UpdateCustomerCardStatusResponse = exports.UpdateCustomerCardStatusRequest = exports.GetCardTransactionsResponse = exports.GetCardTransactionsRequest = exports.GetCardDetailResponse = exports.GetCardDetailRequest = exports.GetCardsByContractResponse = exports.GetCardsByContractRequest = exports.GetTransactionsByContractResponse = exports.GetTransactionsByContractRequest = exports.GetContractByIdResponse = exports.GetContractByIdRequest = exports.GetContractsByCustomerResponse = exports.GetContractsByCustomerRequest = exports.GetCustomerByIdResponse = exports.GetCustomerByIdRequest = exports.GetCustomersResponse = exports.GetCustomersRequest = 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");
|
|
@@ -1239,6 +1239,158 @@ exports.GetCardTransactionsResponse = {
|
|
|
1239
1239
|
return message;
|
|
1240
1240
|
},
|
|
1241
1241
|
};
|
|
1242
|
+
function createBaseUpdateCustomerCardStatusRequest() {
|
|
1243
|
+
return { customer_id: "", contract_id: "", card_id: "", status_value: "", reason: "" };
|
|
1244
|
+
}
|
|
1245
|
+
exports.UpdateCustomerCardStatusRequest = {
|
|
1246
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1247
|
+
if (message.customer_id !== "") {
|
|
1248
|
+
writer.uint32(10).string(message.customer_id);
|
|
1249
|
+
}
|
|
1250
|
+
if (message.contract_id !== "") {
|
|
1251
|
+
writer.uint32(18).string(message.contract_id);
|
|
1252
|
+
}
|
|
1253
|
+
if (message.card_id !== "") {
|
|
1254
|
+
writer.uint32(26).string(message.card_id);
|
|
1255
|
+
}
|
|
1256
|
+
if (message.status_value !== "") {
|
|
1257
|
+
writer.uint32(34).string(message.status_value);
|
|
1258
|
+
}
|
|
1259
|
+
if (message.reason !== "") {
|
|
1260
|
+
writer.uint32(42).string(message.reason);
|
|
1261
|
+
}
|
|
1262
|
+
return writer;
|
|
1263
|
+
},
|
|
1264
|
+
decode(input, length) {
|
|
1265
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1266
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1267
|
+
const message = createBaseUpdateCustomerCardStatusRequest();
|
|
1268
|
+
while (reader.pos < end) {
|
|
1269
|
+
const tag = reader.uint32();
|
|
1270
|
+
switch (tag >>> 3) {
|
|
1271
|
+
case 1: {
|
|
1272
|
+
if (tag !== 10) {
|
|
1273
|
+
break;
|
|
1274
|
+
}
|
|
1275
|
+
message.customer_id = reader.string();
|
|
1276
|
+
continue;
|
|
1277
|
+
}
|
|
1278
|
+
case 2: {
|
|
1279
|
+
if (tag !== 18) {
|
|
1280
|
+
break;
|
|
1281
|
+
}
|
|
1282
|
+
message.contract_id = reader.string();
|
|
1283
|
+
continue;
|
|
1284
|
+
}
|
|
1285
|
+
case 3: {
|
|
1286
|
+
if (tag !== 26) {
|
|
1287
|
+
break;
|
|
1288
|
+
}
|
|
1289
|
+
message.card_id = reader.string();
|
|
1290
|
+
continue;
|
|
1291
|
+
}
|
|
1292
|
+
case 4: {
|
|
1293
|
+
if (tag !== 34) {
|
|
1294
|
+
break;
|
|
1295
|
+
}
|
|
1296
|
+
message.status_value = reader.string();
|
|
1297
|
+
continue;
|
|
1298
|
+
}
|
|
1299
|
+
case 5: {
|
|
1300
|
+
if (tag !== 42) {
|
|
1301
|
+
break;
|
|
1302
|
+
}
|
|
1303
|
+
message.reason = reader.string();
|
|
1304
|
+
continue;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1308
|
+
break;
|
|
1309
|
+
}
|
|
1310
|
+
reader.skip(tag & 7);
|
|
1311
|
+
}
|
|
1312
|
+
return message;
|
|
1313
|
+
},
|
|
1314
|
+
create(base) {
|
|
1315
|
+
return exports.UpdateCustomerCardStatusRequest.fromPartial(base ?? {});
|
|
1316
|
+
},
|
|
1317
|
+
fromPartial(object) {
|
|
1318
|
+
const message = createBaseUpdateCustomerCardStatusRequest();
|
|
1319
|
+
message.customer_id = object.customer_id ?? "";
|
|
1320
|
+
message.contract_id = object.contract_id ?? "";
|
|
1321
|
+
message.card_id = object.card_id ?? "";
|
|
1322
|
+
message.status_value = object.status_value ?? "";
|
|
1323
|
+
message.reason = object.reason ?? "";
|
|
1324
|
+
return message;
|
|
1325
|
+
},
|
|
1326
|
+
};
|
|
1327
|
+
function createBaseUpdateCustomerCardStatusResponse() {
|
|
1328
|
+
return { meta: undefined, card: undefined, message: "" };
|
|
1329
|
+
}
|
|
1330
|
+
exports.UpdateCustomerCardStatusResponse = {
|
|
1331
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1332
|
+
if (message.meta !== undefined) {
|
|
1333
|
+
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
1334
|
+
}
|
|
1335
|
+
if (message.card !== undefined) {
|
|
1336
|
+
customers_types_1.CustomerCard.encode(message.card, writer.uint32(18).fork()).join();
|
|
1337
|
+
}
|
|
1338
|
+
if (message.message !== "") {
|
|
1339
|
+
writer.uint32(26).string(message.message);
|
|
1340
|
+
}
|
|
1341
|
+
return writer;
|
|
1342
|
+
},
|
|
1343
|
+
decode(input, length) {
|
|
1344
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1345
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1346
|
+
const message = createBaseUpdateCustomerCardStatusResponse();
|
|
1347
|
+
while (reader.pos < end) {
|
|
1348
|
+
const tag = reader.uint32();
|
|
1349
|
+
switch (tag >>> 3) {
|
|
1350
|
+
case 1: {
|
|
1351
|
+
if (tag !== 10) {
|
|
1352
|
+
break;
|
|
1353
|
+
}
|
|
1354
|
+
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
1355
|
+
continue;
|
|
1356
|
+
}
|
|
1357
|
+
case 2: {
|
|
1358
|
+
if (tag !== 18) {
|
|
1359
|
+
break;
|
|
1360
|
+
}
|
|
1361
|
+
message.card = customers_types_1.CustomerCard.decode(reader, reader.uint32());
|
|
1362
|
+
continue;
|
|
1363
|
+
}
|
|
1364
|
+
case 3: {
|
|
1365
|
+
if (tag !== 26) {
|
|
1366
|
+
break;
|
|
1367
|
+
}
|
|
1368
|
+
message.message = reader.string();
|
|
1369
|
+
continue;
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1373
|
+
break;
|
|
1374
|
+
}
|
|
1375
|
+
reader.skip(tag & 7);
|
|
1376
|
+
}
|
|
1377
|
+
return message;
|
|
1378
|
+
},
|
|
1379
|
+
create(base) {
|
|
1380
|
+
return exports.UpdateCustomerCardStatusResponse.fromPartial(base ?? {});
|
|
1381
|
+
},
|
|
1382
|
+
fromPartial(object) {
|
|
1383
|
+
const message = createBaseUpdateCustomerCardStatusResponse();
|
|
1384
|
+
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
1385
|
+
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
1386
|
+
: undefined;
|
|
1387
|
+
message.card = (object.card !== undefined && object.card !== null)
|
|
1388
|
+
? customers_types_1.CustomerCard.fromPartial(object.card)
|
|
1389
|
+
: undefined;
|
|
1390
|
+
message.message = object.message ?? "";
|
|
1391
|
+
return message;
|
|
1392
|
+
},
|
|
1393
|
+
};
|
|
1242
1394
|
function createBaseGetContractPeriodsRequest() {
|
|
1243
1395
|
return { customer_id: "", contract_id: "", page_request: undefined };
|
|
1244
1396
|
}
|
|
@@ -2438,6 +2590,15 @@ exports.CustomersServiceService = {
|
|
|
2438
2590
|
responseSerialize: (value) => Buffer.from(exports.GetCardTransactionsResponse.encode(value).finish()),
|
|
2439
2591
|
responseDeserialize: (value) => exports.GetCardTransactionsResponse.decode(value),
|
|
2440
2592
|
},
|
|
2593
|
+
updateCustomerCardStatus: {
|
|
2594
|
+
path: "/kapital.customers.v1.CustomersService/UpdateCustomerCardStatus",
|
|
2595
|
+
requestStream: false,
|
|
2596
|
+
responseStream: false,
|
|
2597
|
+
requestSerialize: (value) => Buffer.from(exports.UpdateCustomerCardStatusRequest.encode(value).finish()),
|
|
2598
|
+
requestDeserialize: (value) => exports.UpdateCustomerCardStatusRequest.decode(value),
|
|
2599
|
+
responseSerialize: (value) => Buffer.from(exports.UpdateCustomerCardStatusResponse.encode(value).finish()),
|
|
2600
|
+
responseDeserialize: (value) => exports.UpdateCustomerCardStatusResponse.decode(value),
|
|
2601
|
+
},
|
|
2441
2602
|
getContractPeriods: {
|
|
2442
2603
|
path: "/kapital.customers.v1.CustomersService/GetContractPeriods",
|
|
2443
2604
|
requestStream: false,
|