@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
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.6
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: kapital/commissions/v1/commissions_types.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Commission = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "kapital.commissions.v1";
|
|
12
|
+
function createBaseCommission() {
|
|
13
|
+
return {
|
|
14
|
+
id: "",
|
|
15
|
+
name: "",
|
|
16
|
+
commission_type: "",
|
|
17
|
+
currency: "",
|
|
18
|
+
deleted: false,
|
|
19
|
+
created_by: "",
|
|
20
|
+
updated_by: "",
|
|
21
|
+
created_at: "",
|
|
22
|
+
updated_at: "",
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
exports.Commission = {
|
|
26
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
27
|
+
if (message.id !== "") {
|
|
28
|
+
writer.uint32(10).string(message.id);
|
|
29
|
+
}
|
|
30
|
+
if (message.name !== "") {
|
|
31
|
+
writer.uint32(18).string(message.name);
|
|
32
|
+
}
|
|
33
|
+
if (message.commission_type !== "") {
|
|
34
|
+
writer.uint32(26).string(message.commission_type);
|
|
35
|
+
}
|
|
36
|
+
if (message.currency !== "") {
|
|
37
|
+
writer.uint32(34).string(message.currency);
|
|
38
|
+
}
|
|
39
|
+
if (message.deleted !== false) {
|
|
40
|
+
writer.uint32(40).bool(message.deleted);
|
|
41
|
+
}
|
|
42
|
+
if (message.created_by !== "") {
|
|
43
|
+
writer.uint32(50).string(message.created_by);
|
|
44
|
+
}
|
|
45
|
+
if (message.updated_by !== "") {
|
|
46
|
+
writer.uint32(58).string(message.updated_by);
|
|
47
|
+
}
|
|
48
|
+
if (message.created_at !== "") {
|
|
49
|
+
writer.uint32(66).string(message.created_at);
|
|
50
|
+
}
|
|
51
|
+
if (message.updated_at !== "") {
|
|
52
|
+
writer.uint32(74).string(message.updated_at);
|
|
53
|
+
}
|
|
54
|
+
return writer;
|
|
55
|
+
},
|
|
56
|
+
decode(input, length) {
|
|
57
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
58
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
59
|
+
const message = createBaseCommission();
|
|
60
|
+
while (reader.pos < end) {
|
|
61
|
+
const tag = reader.uint32();
|
|
62
|
+
switch (tag >>> 3) {
|
|
63
|
+
case 1: {
|
|
64
|
+
if (tag !== 10) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
message.id = reader.string();
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
case 2: {
|
|
71
|
+
if (tag !== 18) {
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
message.name = reader.string();
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
case 3: {
|
|
78
|
+
if (tag !== 26) {
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
message.commission_type = reader.string();
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
case 4: {
|
|
85
|
+
if (tag !== 34) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.currency = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
case 5: {
|
|
92
|
+
if (tag !== 40) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
message.deleted = reader.bool();
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
case 6: {
|
|
99
|
+
if (tag !== 50) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.created_by = reader.string();
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
case 7: {
|
|
106
|
+
if (tag !== 58) {
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
message.updated_by = reader.string();
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
case 8: {
|
|
113
|
+
if (tag !== 66) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.created_at = reader.string();
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
case 9: {
|
|
120
|
+
if (tag !== 74) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
message.updated_at = reader.string();
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
reader.skip(tag & 7);
|
|
131
|
+
}
|
|
132
|
+
return message;
|
|
133
|
+
},
|
|
134
|
+
create(base) {
|
|
135
|
+
return exports.Commission.fromPartial(base ?? {});
|
|
136
|
+
},
|
|
137
|
+
fromPartial(object) {
|
|
138
|
+
const message = createBaseCommission();
|
|
139
|
+
message.id = object.id ?? "";
|
|
140
|
+
message.name = object.name ?? "";
|
|
141
|
+
message.commission_type = object.commission_type ?? "";
|
|
142
|
+
message.currency = object.currency ?? "";
|
|
143
|
+
message.deleted = object.deleted ?? false;
|
|
144
|
+
message.created_by = object.created_by ?? "";
|
|
145
|
+
message.updated_by = object.updated_by ?? "";
|
|
146
|
+
message.created_at = object.created_at ?? "";
|
|
147
|
+
message.updated_at = object.updated_at ?? "";
|
|
148
|
+
return message;
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=commissions_types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commissions_types.js","sourceRoot":"","sources":["../../../../../src/generated/kapital/commissions/v1/commissions_types.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,YAAY;AACZ,iCAAiC;AACjC,iCAAiC;AACjC,yDAAyD;;;AAEzD,oBAAoB;AACpB,kDAAqE;AAExD,QAAA,eAAe,GAAG,wBAAwB,CAAC;AAcxD,SAAS,oBAAoB;IAC3B,OAAO;QACL,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,EAAE;QACR,eAAe,EAAE,EAAE;QACnB,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,EAAE;KACf,CAAC;AACJ,CAAC;AAEY,QAAA,UAAU,GAA2B;IAChD,MAAM,CAAC,OAAmB,EAAE,SAAuB,IAAI,mBAAY,EAAE;QACnE,IAAI,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;YACtB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACvC,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,KAAK,EAAE,EAAE,CAAC;YACx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AAC,WAAW,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IAC5C,CAAC;IACD,WAAW,CAAC,MAA+B;QACzC,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAC;QACvC,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;QAC7B,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;QACjC,OAAO,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC;QACvD,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC;QACzC,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,KAAK,CAAC;QAC1C,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;QAC7C,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;QAC7C,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;QAC7C,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;QAC7C,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
3
|
import { ResponseMeta } from "../../common/v1/meta";
|
|
4
4
|
import { PageRequest, PageResponse } from "../../common/v1/pagination";
|
|
5
|
-
import { Account } from "./credit_accounts_types";
|
|
5
|
+
import { Account, AccountProduct, Movement } from "./credit_accounts_types";
|
|
6
6
|
export declare const protobufPackage = "kapital.credit_accounts.v1";
|
|
7
7
|
export interface GetAccountsRequest {
|
|
8
8
|
page_request: PageRequest | undefined;
|
|
@@ -17,8 +17,60 @@ export interface GetAccountsResponse {
|
|
|
17
17
|
page_response: PageResponse | undefined;
|
|
18
18
|
accounts: Account[];
|
|
19
19
|
}
|
|
20
|
+
export interface GetAccountDetailRequest {
|
|
21
|
+
account_id: string;
|
|
22
|
+
page_request: PageRequest | undefined;
|
|
23
|
+
status: string;
|
|
24
|
+
date: string;
|
|
25
|
+
movement_type: string;
|
|
26
|
+
q: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetAccountDetailResponse {
|
|
29
|
+
meta: ResponseMeta | undefined;
|
|
30
|
+
page_response: PageResponse | undefined;
|
|
31
|
+
movements: Movement[];
|
|
32
|
+
}
|
|
33
|
+
export interface GetAccountProductByIdRequest {
|
|
34
|
+
account_id: string;
|
|
35
|
+
product_id: string;
|
|
36
|
+
}
|
|
37
|
+
export interface GetAccountProductByIdResponse {
|
|
38
|
+
meta: ResponseMeta | undefined;
|
|
39
|
+
product: AccountProduct | undefined;
|
|
40
|
+
}
|
|
41
|
+
export interface CreateAccountProductRequest {
|
|
42
|
+
account_id: string;
|
|
43
|
+
product: string;
|
|
44
|
+
rate_selection: string;
|
|
45
|
+
allowed_cards: number;
|
|
46
|
+
credit_amount: string;
|
|
47
|
+
}
|
|
48
|
+
export interface CreateAccountProductResponse {
|
|
49
|
+
meta: ResponseMeta | undefined;
|
|
50
|
+
product: AccountProduct | undefined;
|
|
51
|
+
}
|
|
52
|
+
export interface UpdateAccountProductRequest {
|
|
53
|
+
account_id: string;
|
|
54
|
+
product_id: string;
|
|
55
|
+
product: string;
|
|
56
|
+
rate_selection: string;
|
|
57
|
+
allowed_cards: number;
|
|
58
|
+
credit_amount: string;
|
|
59
|
+
}
|
|
60
|
+
export interface UpdateAccountProductResponse {
|
|
61
|
+
meta: ResponseMeta | undefined;
|
|
62
|
+
product: AccountProduct | undefined;
|
|
63
|
+
}
|
|
20
64
|
export declare const GetAccountsRequest: MessageFns<GetAccountsRequest>;
|
|
21
65
|
export declare const GetAccountsResponse: MessageFns<GetAccountsResponse>;
|
|
66
|
+
export declare const GetAccountDetailRequest: MessageFns<GetAccountDetailRequest>;
|
|
67
|
+
export declare const GetAccountDetailResponse: MessageFns<GetAccountDetailResponse>;
|
|
68
|
+
export declare const GetAccountProductByIdRequest: MessageFns<GetAccountProductByIdRequest>;
|
|
69
|
+
export declare const GetAccountProductByIdResponse: MessageFns<GetAccountProductByIdResponse>;
|
|
70
|
+
export declare const CreateAccountProductRequest: MessageFns<CreateAccountProductRequest>;
|
|
71
|
+
export declare const CreateAccountProductResponse: MessageFns<CreateAccountProductResponse>;
|
|
72
|
+
export declare const UpdateAccountProductRequest: MessageFns<UpdateAccountProductRequest>;
|
|
73
|
+
export declare const UpdateAccountProductResponse: MessageFns<UpdateAccountProductResponse>;
|
|
22
74
|
export type CreditAccountsServiceService = typeof CreditAccountsServiceService;
|
|
23
75
|
export declare const CreditAccountsServiceService: {
|
|
24
76
|
readonly getAccounts: {
|
|
@@ -30,14 +82,66 @@ export declare const CreditAccountsServiceService: {
|
|
|
30
82
|
readonly responseSerialize: (value: GetAccountsResponse) => Buffer;
|
|
31
83
|
readonly responseDeserialize: (value: Buffer) => GetAccountsResponse;
|
|
32
84
|
};
|
|
85
|
+
readonly getAccountDetail: {
|
|
86
|
+
readonly path: "/kapital.credit_accounts.v1.CreditAccountsService/GetAccountDetail";
|
|
87
|
+
readonly requestStream: false;
|
|
88
|
+
readonly responseStream: false;
|
|
89
|
+
readonly requestSerialize: (value: GetAccountDetailRequest) => Buffer;
|
|
90
|
+
readonly requestDeserialize: (value: Buffer) => GetAccountDetailRequest;
|
|
91
|
+
readonly responseSerialize: (value: GetAccountDetailResponse) => Buffer;
|
|
92
|
+
readonly responseDeserialize: (value: Buffer) => GetAccountDetailResponse;
|
|
93
|
+
};
|
|
94
|
+
readonly getAccountProductById: {
|
|
95
|
+
readonly path: "/kapital.credit_accounts.v1.CreditAccountsService/GetAccountProductById";
|
|
96
|
+
readonly requestStream: false;
|
|
97
|
+
readonly responseStream: false;
|
|
98
|
+
readonly requestSerialize: (value: GetAccountProductByIdRequest) => Buffer;
|
|
99
|
+
readonly requestDeserialize: (value: Buffer) => GetAccountProductByIdRequest;
|
|
100
|
+
readonly responseSerialize: (value: GetAccountProductByIdResponse) => Buffer;
|
|
101
|
+
readonly responseDeserialize: (value: Buffer) => GetAccountProductByIdResponse;
|
|
102
|
+
};
|
|
103
|
+
readonly createAccountProduct: {
|
|
104
|
+
readonly path: "/kapital.credit_accounts.v1.CreditAccountsService/CreateAccountProduct";
|
|
105
|
+
readonly requestStream: false;
|
|
106
|
+
readonly responseStream: false;
|
|
107
|
+
readonly requestSerialize: (value: CreateAccountProductRequest) => Buffer;
|
|
108
|
+
readonly requestDeserialize: (value: Buffer) => CreateAccountProductRequest;
|
|
109
|
+
readonly responseSerialize: (value: CreateAccountProductResponse) => Buffer;
|
|
110
|
+
readonly responseDeserialize: (value: Buffer) => CreateAccountProductResponse;
|
|
111
|
+
};
|
|
112
|
+
readonly updateAccountProduct: {
|
|
113
|
+
readonly path: "/kapital.credit_accounts.v1.CreditAccountsService/UpdateAccountProduct";
|
|
114
|
+
readonly requestStream: false;
|
|
115
|
+
readonly responseStream: false;
|
|
116
|
+
readonly requestSerialize: (value: UpdateAccountProductRequest) => Buffer;
|
|
117
|
+
readonly requestDeserialize: (value: Buffer) => UpdateAccountProductRequest;
|
|
118
|
+
readonly responseSerialize: (value: UpdateAccountProductResponse) => Buffer;
|
|
119
|
+
readonly responseDeserialize: (value: Buffer) => UpdateAccountProductResponse;
|
|
120
|
+
};
|
|
33
121
|
};
|
|
34
122
|
export interface CreditAccountsServiceServer extends UntypedServiceImplementation {
|
|
35
123
|
getAccounts: handleUnaryCall<GetAccountsRequest, GetAccountsResponse>;
|
|
124
|
+
getAccountDetail: handleUnaryCall<GetAccountDetailRequest, GetAccountDetailResponse>;
|
|
125
|
+
getAccountProductById: handleUnaryCall<GetAccountProductByIdRequest, GetAccountProductByIdResponse>;
|
|
126
|
+
createAccountProduct: handleUnaryCall<CreateAccountProductRequest, CreateAccountProductResponse>;
|
|
127
|
+
updateAccountProduct: handleUnaryCall<UpdateAccountProductRequest, UpdateAccountProductResponse>;
|
|
36
128
|
}
|
|
37
129
|
export interface CreditAccountsServiceClient extends Client {
|
|
38
130
|
getAccounts(request: GetAccountsRequest, callback: (error: ServiceError | null, response: GetAccountsResponse) => void): ClientUnaryCall;
|
|
39
131
|
getAccounts(request: GetAccountsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetAccountsResponse) => void): ClientUnaryCall;
|
|
40
132
|
getAccounts(request: GetAccountsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetAccountsResponse) => void): ClientUnaryCall;
|
|
133
|
+
getAccountDetail(request: GetAccountDetailRequest, callback: (error: ServiceError | null, response: GetAccountDetailResponse) => void): ClientUnaryCall;
|
|
134
|
+
getAccountDetail(request: GetAccountDetailRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetAccountDetailResponse) => void): ClientUnaryCall;
|
|
135
|
+
getAccountDetail(request: GetAccountDetailRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetAccountDetailResponse) => void): ClientUnaryCall;
|
|
136
|
+
getAccountProductById(request: GetAccountProductByIdRequest, callback: (error: ServiceError | null, response: GetAccountProductByIdResponse) => void): ClientUnaryCall;
|
|
137
|
+
getAccountProductById(request: GetAccountProductByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetAccountProductByIdResponse) => void): ClientUnaryCall;
|
|
138
|
+
getAccountProductById(request: GetAccountProductByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetAccountProductByIdResponse) => void): ClientUnaryCall;
|
|
139
|
+
createAccountProduct(request: CreateAccountProductRequest, callback: (error: ServiceError | null, response: CreateAccountProductResponse) => void): ClientUnaryCall;
|
|
140
|
+
createAccountProduct(request: CreateAccountProductRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateAccountProductResponse) => void): ClientUnaryCall;
|
|
141
|
+
createAccountProduct(request: CreateAccountProductRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateAccountProductResponse) => void): ClientUnaryCall;
|
|
142
|
+
updateAccountProduct(request: UpdateAccountProductRequest, callback: (error: ServiceError | null, response: UpdateAccountProductResponse) => void): ClientUnaryCall;
|
|
143
|
+
updateAccountProduct(request: UpdateAccountProductRequest, metadata: Metadata, callback: (error: ServiceError | null, response: UpdateAccountProductResponse) => void): ClientUnaryCall;
|
|
144
|
+
updateAccountProduct(request: UpdateAccountProductRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: UpdateAccountProductResponse) => void): ClientUnaryCall;
|
|
41
145
|
}
|
|
42
146
|
export declare const CreditAccountsServiceClient: {
|
|
43
147
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): CreditAccountsServiceClient;
|