@alexochihua/protos 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/buf.gen.yaml +14 -0
- package/buf.yaml +9 -0
- package/dist/generated/kapital/accounts/v1/accounts.d.ts +145 -0
- package/dist/generated/kapital/accounts/v1/accounts.js +787 -0
- package/dist/generated/kapital/accounts/v1/accounts.js.map +1 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.d.ts +39 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js +314 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.d.ts +145 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js +771 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.d.ts +37 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js +290 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards.d.ts +507 -0
- package/dist/generated/kapital/cards/v1/cards.js +2996 -0
- package/dist/generated/kapital/cards/v1/cards.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards_types.d.ts +125 -0
- package/dist/generated/kapital/cards/v1/cards_types.js +1268 -0
- package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -0
- package/dist/generated/kapital/common/v1/error.d.ts +24 -0
- package/dist/generated/kapital/common/v1/error.js +119 -0
- package/dist/generated/kapital/common/v1/error.js.map +1 -0
- package/dist/generated/kapital/common/v1/meta.d.ts +20 -0
- package/dist/generated/kapital/common/v1/meta.js +86 -0
- package/dist/generated/kapital/common/v1/meta.js.map +1 -0
- package/dist/generated/kapital/common/v1/pagination.d.ts +26 -0
- package/dist/generated/kapital/common/v1/pagination.js +149 -0
- package/dist/generated/kapital/common/v1/pagination.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts.d.ts +829 -0
- package/dist/generated/kapital/contracts/v1/contracts.js +5840 -0
- package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.d.ts +293 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js +3101 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +57 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +193 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +37 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +283 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers.d.ts +493 -0
- package/dist/generated/kapital/customers/v1/customers.js +2542 -0
- package/dist/generated/kapital/customers/v1/customers.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers_types.d.ts +95 -0
- package/dist/generated/kapital/customers/v1/customers_types.js +951 -0
- package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments.d.ts +145 -0
- package/dist/generated/kapital/payments/v1/payments.js +915 -0
- package/dist/generated/kapital/payments/v1/payments.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments_types.d.ts +26 -0
- package/dist/generated/kapital/payments/v1/payments_types.js +163 -0
- package/dist/generated/kapital/payments/v1/payments_types.js.map +1 -0
- package/dist/generated/kapital/products/v1/products.d.ts +234 -0
- package/dist/generated/kapital/products/v1/products.js +1369 -0
- package/dist/generated/kapital/products/v1/products.js.map +1 -0
- package/dist/generated/kapital/products/v1/products_types.d.ts +159 -0
- package/dist/generated/kapital/products/v1/products_types.js +1696 -0
- package/dist/generated/kapital/products/v1/products_types.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions.d.ts +122 -0
- package/dist/generated/kapital/transactions/v1/transactions.js +632 -0
- package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.d.ts +99 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js +1023 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/grpc.d.ts +2 -0
- package/dist/runtime/grpc.js +9 -0
- package/dist/runtime/grpc.js.map +1 -0
- package/package.json +195 -0
- package/proto/kapital/accounts/v1/accounts.proto +80 -0
- package/proto/kapital/accounts/v1/accounts_types.proto +31 -0
- package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -0
- package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -0
- package/proto/kapital/cards/v1/cards.proto +298 -0
- package/proto/kapital/cards/v1/cards_types.proto +117 -0
- package/proto/kapital/common/v1/error.proto +18 -0
- package/proto/kapital/common/v1/meta.proto +13 -0
- package/proto/kapital/common/v1/pagination.proto +18 -0
- package/proto/kapital/contracts/v1/contracts.proto +629 -0
- package/proto/kapital/contracts/v1/contracts_types.proto +316 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +28 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +29 -0
- package/proto/kapital/customers/v1/customers.proto +235 -0
- package/proto/kapital/customers/v1/customers_types.proto +87 -0
- package/proto/kapital/payments/v1/payments.proto +94 -0
- package/proto/kapital/payments/v1/payments_types.proto +18 -0
- package/proto/kapital/products/v1/products.proto +139 -0
- package/proto/kapital/products/v1/products_types.proto +156 -0
- package/proto/kapital/transactions/v1/transactions.proto +70 -0
- package/proto/kapital/transactions/v1/transactions_types.proto +91 -0
|
@@ -0,0 +1,829 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
|
+
import { ResponseMeta } from "../../common/v1/meta";
|
|
4
|
+
import { Authorization, CIP, CIPFull, Contract, ContractOverview, ContractSearch, ContractVerify, CustomerProfile, Hold, PendingFee, Profile, RelatedData, SavingsInterest, Transaction } from "./contracts_types";
|
|
5
|
+
export declare const protobufPackage = "kapital.contracts.v1";
|
|
6
|
+
/** ================== CreateContract ================== */
|
|
7
|
+
export interface CreateContractRequest {
|
|
8
|
+
customer_id: string;
|
|
9
|
+
first_name: string;
|
|
10
|
+
middle_name?: string | undefined;
|
|
11
|
+
last_name: string;
|
|
12
|
+
date_of_birth: string;
|
|
13
|
+
address_1: string;
|
|
14
|
+
address_2: string;
|
|
15
|
+
address_3: string;
|
|
16
|
+
city: string;
|
|
17
|
+
state: string;
|
|
18
|
+
postal_code: string;
|
|
19
|
+
country_code: string;
|
|
20
|
+
primary_phone: string;
|
|
21
|
+
other_phone?: string | undefined;
|
|
22
|
+
email: string;
|
|
23
|
+
income_source: string;
|
|
24
|
+
curp: string;
|
|
25
|
+
rfc: string;
|
|
26
|
+
external_customer_id?: string | undefined;
|
|
27
|
+
prod_id: number;
|
|
28
|
+
product_type: string;
|
|
29
|
+
load_amount: string;
|
|
30
|
+
load_amount_physical?: string | undefined;
|
|
31
|
+
load_type?: string | undefined;
|
|
32
|
+
primary_account?: string | undefined;
|
|
33
|
+
funding_account_number?: string | undefined;
|
|
34
|
+
shared_balance?: number | undefined;
|
|
35
|
+
authorized_user?: string | undefined;
|
|
36
|
+
user_data?: string | undefined;
|
|
37
|
+
offline?: string | undefined;
|
|
38
|
+
verify_only?: number | undefined;
|
|
39
|
+
cip_status?: string | undefined;
|
|
40
|
+
emboss_line_2?: string | undefined;
|
|
41
|
+
provider_assessed_fee?: number | undefined;
|
|
42
|
+
load_from_account?: string | undefined;
|
|
43
|
+
sweep_date?: string | undefined;
|
|
44
|
+
express_mail?: string | undefined;
|
|
45
|
+
ship_adress_permanent?: string | undefined;
|
|
46
|
+
ship_adress_1?: string | undefined;
|
|
47
|
+
ship_adress_2?: string | undefined;
|
|
48
|
+
shitp_city?: string | undefined;
|
|
49
|
+
ship_state?: string | undefined;
|
|
50
|
+
ship_zip?: string | undefined;
|
|
51
|
+
ship_country_code?: string | undefined;
|
|
52
|
+
business_name?: string | undefined;
|
|
53
|
+
}
|
|
54
|
+
export interface CreateContractResponse {
|
|
55
|
+
meta: ResponseMeta | undefined;
|
|
56
|
+
pmt_ref_number: string;
|
|
57
|
+
product_id: string;
|
|
58
|
+
contract_number: string;
|
|
59
|
+
cip: CIPFull[];
|
|
60
|
+
card_number_virtual: string;
|
|
61
|
+
card_number_physical: string;
|
|
62
|
+
new_emboss_uuid: string;
|
|
63
|
+
expiry_date: string;
|
|
64
|
+
card_security_code: string;
|
|
65
|
+
emboss_line_2: string;
|
|
66
|
+
billing_cycle_day: number;
|
|
67
|
+
}
|
|
68
|
+
/** ================== CreatePhysicalCardContract ================== */
|
|
69
|
+
export interface CreatePhysicalCardContractRequest {
|
|
70
|
+
customer_id: string;
|
|
71
|
+
first_name: string;
|
|
72
|
+
middle_name?: string | undefined;
|
|
73
|
+
last_name: string;
|
|
74
|
+
date_of_birth: string;
|
|
75
|
+
address_1: string;
|
|
76
|
+
address_2: string;
|
|
77
|
+
address_3: string;
|
|
78
|
+
city: string;
|
|
79
|
+
state: string;
|
|
80
|
+
postal_code: string;
|
|
81
|
+
country_code: string;
|
|
82
|
+
primary_phone: string;
|
|
83
|
+
other_phone?: string | undefined;
|
|
84
|
+
email: string;
|
|
85
|
+
income_source: string;
|
|
86
|
+
curp: string;
|
|
87
|
+
rfc: string;
|
|
88
|
+
external_customer_id?: string | undefined;
|
|
89
|
+
prod_id: number;
|
|
90
|
+
product_type: string;
|
|
91
|
+
load_amount: string;
|
|
92
|
+
load_amount_physical?: string | undefined;
|
|
93
|
+
load_type?: string | undefined;
|
|
94
|
+
primary_account?: string | undefined;
|
|
95
|
+
funding_account_number?: string | undefined;
|
|
96
|
+
shared_balance?: number | undefined;
|
|
97
|
+
authorized_user?: string | undefined;
|
|
98
|
+
user_data?: string | undefined;
|
|
99
|
+
offline?: string | undefined;
|
|
100
|
+
verify_only?: number | undefined;
|
|
101
|
+
cip_status?: string | undefined;
|
|
102
|
+
emboss_line_2?: string | undefined;
|
|
103
|
+
provider_assessed_fee?: number | undefined;
|
|
104
|
+
load_from_account?: string | undefined;
|
|
105
|
+
sweep_date?: string | undefined;
|
|
106
|
+
express_mail?: string | undefined;
|
|
107
|
+
ship_adress_permanent?: string | undefined;
|
|
108
|
+
ship_adress_1?: string | undefined;
|
|
109
|
+
ship_adress_2?: string | undefined;
|
|
110
|
+
shitp_city?: string | undefined;
|
|
111
|
+
ship_state?: string | undefined;
|
|
112
|
+
ship_zip?: string | undefined;
|
|
113
|
+
ship_country_code?: string | undefined;
|
|
114
|
+
business_name?: string | undefined;
|
|
115
|
+
}
|
|
116
|
+
export interface CreatePhysicalCardContractResponse {
|
|
117
|
+
meta: ResponseMeta | undefined;
|
|
118
|
+
pmt_ref_number: string;
|
|
119
|
+
product_id: string;
|
|
120
|
+
contract_number: string;
|
|
121
|
+
cip: CIPFull[];
|
|
122
|
+
card_number_virtual: string;
|
|
123
|
+
card_number_physical: string;
|
|
124
|
+
new_emboss_uuid: string;
|
|
125
|
+
expiry_date: string;
|
|
126
|
+
card_security_code: string;
|
|
127
|
+
emboss_line_2: string;
|
|
128
|
+
billing_cycle_day: number;
|
|
129
|
+
}
|
|
130
|
+
/** ================== CreateVirtualCardContract ================== */
|
|
131
|
+
export interface CreateVirtualCardContractRequest {
|
|
132
|
+
provider_id: string;
|
|
133
|
+
transaction_id: string;
|
|
134
|
+
prod_id: number;
|
|
135
|
+
id_type: number;
|
|
136
|
+
id: string;
|
|
137
|
+
id_type_2: number;
|
|
138
|
+
id_2: string;
|
|
139
|
+
locale: string;
|
|
140
|
+
first_name: string;
|
|
141
|
+
middle_name: string;
|
|
142
|
+
last_name: string;
|
|
143
|
+
date_of_birth: string;
|
|
144
|
+
address_1: string;
|
|
145
|
+
address_2: string;
|
|
146
|
+
address_3: string;
|
|
147
|
+
address_4: string;
|
|
148
|
+
address_5: string;
|
|
149
|
+
city: string;
|
|
150
|
+
state: string;
|
|
151
|
+
zip: string;
|
|
152
|
+
country_code: string;
|
|
153
|
+
primary_phone: string;
|
|
154
|
+
other_phone: string;
|
|
155
|
+
mobile_phone: string;
|
|
156
|
+
mobile_carrier_id: string;
|
|
157
|
+
email: string;
|
|
158
|
+
secret_question: string;
|
|
159
|
+
secret_answer: string;
|
|
160
|
+
load_amount: number;
|
|
161
|
+
load_type: string;
|
|
162
|
+
external_account_id: string;
|
|
163
|
+
primary_account: string;
|
|
164
|
+
shared_balance: number;
|
|
165
|
+
user_data: string;
|
|
166
|
+
verify_only: number;
|
|
167
|
+
load_from_account: string;
|
|
168
|
+
sweep_date: string;
|
|
169
|
+
credit_limit: number;
|
|
170
|
+
single_use: string;
|
|
171
|
+
business_name: string;
|
|
172
|
+
mobile_phone_country_code: string;
|
|
173
|
+
}
|
|
174
|
+
export interface CreateVirtualCardContractResponse {
|
|
175
|
+
meta: ResponseMeta | undefined;
|
|
176
|
+
pmt_ref_number: string;
|
|
177
|
+
product_id: string;
|
|
178
|
+
contract_number: string;
|
|
179
|
+
card_id: string;
|
|
180
|
+
card_number: string;
|
|
181
|
+
expiry_date: string;
|
|
182
|
+
card_security_code: string;
|
|
183
|
+
cip: CIP[];
|
|
184
|
+
billing_cycle_day: number;
|
|
185
|
+
}
|
|
186
|
+
/** ================== GetExistsContract ================== */
|
|
187
|
+
export interface GetExistsContractRequest {
|
|
188
|
+
contract_id: string;
|
|
189
|
+
}
|
|
190
|
+
export interface GetExistsContractResponse {
|
|
191
|
+
meta: ResponseMeta | undefined;
|
|
192
|
+
contract_id: string;
|
|
193
|
+
exists: boolean;
|
|
194
|
+
}
|
|
195
|
+
/** ================== AddBalance ================== */
|
|
196
|
+
export interface AddBalanceRequest {
|
|
197
|
+
contract_id: string;
|
|
198
|
+
amount: number;
|
|
199
|
+
}
|
|
200
|
+
export interface AddBalanceResponse {
|
|
201
|
+
meta: ResponseMeta | undefined;
|
|
202
|
+
contract_id: string;
|
|
203
|
+
balance: number;
|
|
204
|
+
}
|
|
205
|
+
/** ================== GetBalance ================== */
|
|
206
|
+
export interface GetBalanceRequest {
|
|
207
|
+
contract_id: string;
|
|
208
|
+
}
|
|
209
|
+
export interface GetBalanceResponse {
|
|
210
|
+
meta: ResponseMeta | undefined;
|
|
211
|
+
ledger_balance: number;
|
|
212
|
+
balance: number;
|
|
213
|
+
balance_without_pending: string;
|
|
214
|
+
currency_code: string;
|
|
215
|
+
pending_adjustments: number;
|
|
216
|
+
pending_billpay: number;
|
|
217
|
+
pending_purchase: number;
|
|
218
|
+
balance_without_auths: number;
|
|
219
|
+
}
|
|
220
|
+
/** ================== GetCustomerIdByContractId ================== */
|
|
221
|
+
export interface GetCustomerIdByContractIdRequest {
|
|
222
|
+
contract_id: string;
|
|
223
|
+
}
|
|
224
|
+
export interface GetCustomerIdByContractIdResponse {
|
|
225
|
+
meta: ResponseMeta | undefined;
|
|
226
|
+
customer_id: string;
|
|
227
|
+
exists: boolean;
|
|
228
|
+
}
|
|
229
|
+
/** ================== UpdateContract ================== */
|
|
230
|
+
export interface UpdateContractRequest {
|
|
231
|
+
contract_id: string;
|
|
232
|
+
provider_id: string;
|
|
233
|
+
transaction_id: string;
|
|
234
|
+
id_type: number;
|
|
235
|
+
id: string;
|
|
236
|
+
id_type_2: number;
|
|
237
|
+
id_2: string;
|
|
238
|
+
id_type_3: number;
|
|
239
|
+
id_3: string;
|
|
240
|
+
location_type: number;
|
|
241
|
+
location: string;
|
|
242
|
+
locale: string;
|
|
243
|
+
external_account_id: string;
|
|
244
|
+
first_name: string;
|
|
245
|
+
middle_name: string;
|
|
246
|
+
last_name: string;
|
|
247
|
+
date_of_birth: string;
|
|
248
|
+
address_1: string;
|
|
249
|
+
address_2: string;
|
|
250
|
+
address_3: string;
|
|
251
|
+
address_4: string;
|
|
252
|
+
address_5: string;
|
|
253
|
+
city: string;
|
|
254
|
+
state: string;
|
|
255
|
+
zip: string;
|
|
256
|
+
country_code: string;
|
|
257
|
+
primary_phone: string;
|
|
258
|
+
other_phone: string;
|
|
259
|
+
mobile_phone: string;
|
|
260
|
+
mobile_carrier_id: string;
|
|
261
|
+
email: string;
|
|
262
|
+
secret_question: string;
|
|
263
|
+
secret_answer: string;
|
|
264
|
+
income_source: string;
|
|
265
|
+
occupation: string;
|
|
266
|
+
nationality: string;
|
|
267
|
+
place_of_birth: string;
|
|
268
|
+
curp: string;
|
|
269
|
+
political_affiliation: number;
|
|
270
|
+
key_ref_number: string;
|
|
271
|
+
monthly_income: number;
|
|
272
|
+
external_customer_id: string;
|
|
273
|
+
mail_bounced: string;
|
|
274
|
+
shipping_address_1: string;
|
|
275
|
+
shipping_address_2: string;
|
|
276
|
+
shipping_city: string;
|
|
277
|
+
shipping_state: string;
|
|
278
|
+
shipping_zip: string;
|
|
279
|
+
shipping_country_code: string;
|
|
280
|
+
shipping_address_permanent: string;
|
|
281
|
+
emboss_line_2: string;
|
|
282
|
+
business_name: string;
|
|
283
|
+
mobile_phone_country_code: string;
|
|
284
|
+
}
|
|
285
|
+
export interface UpdateContractResponse {
|
|
286
|
+
meta: ResponseMeta | undefined;
|
|
287
|
+
customer_profile: CustomerProfile | undefined;
|
|
288
|
+
}
|
|
289
|
+
/** ================== GetExistsCustomer ================== */
|
|
290
|
+
export interface GetExistsCustomerRequest {
|
|
291
|
+
customer_id: string;
|
|
292
|
+
}
|
|
293
|
+
export interface GetExistsCustomerResponse {
|
|
294
|
+
meta: ResponseMeta | undefined;
|
|
295
|
+
customer_id: string;
|
|
296
|
+
exists: boolean;
|
|
297
|
+
}
|
|
298
|
+
/** ================== GetContractById ================== */
|
|
299
|
+
export interface GetContractByIdRequest {
|
|
300
|
+
customer_id: string;
|
|
301
|
+
provider_id: string;
|
|
302
|
+
transaction_id: string;
|
|
303
|
+
id_type: number;
|
|
304
|
+
external_customer_id: string;
|
|
305
|
+
}
|
|
306
|
+
export interface GetContractByIdResponse {
|
|
307
|
+
meta: ResponseMeta | undefined;
|
|
308
|
+
contracts: Contract[];
|
|
309
|
+
}
|
|
310
|
+
/** ================== GetRelatedContracts ================== */
|
|
311
|
+
export interface GetRelatedContractsRequest {
|
|
312
|
+
contract_id: string;
|
|
313
|
+
provider_id: string;
|
|
314
|
+
transaction_id: string;
|
|
315
|
+
}
|
|
316
|
+
export interface GetRelatedContractsResponse {
|
|
317
|
+
meta: ResponseMeta | undefined;
|
|
318
|
+
self_contracts: RelatedData[];
|
|
319
|
+
child_contracts: RelatedData[];
|
|
320
|
+
parent_contracts: RelatedData[];
|
|
321
|
+
sibling_contracts: RelatedData[];
|
|
322
|
+
}
|
|
323
|
+
/** ================== VerifyContract ================== */
|
|
324
|
+
export interface VerifyContractRequest {
|
|
325
|
+
contract_id: string;
|
|
326
|
+
provider_id: string;
|
|
327
|
+
transaction_id: string;
|
|
328
|
+
load_type: string;
|
|
329
|
+
included_related: number;
|
|
330
|
+
}
|
|
331
|
+
export interface VerifyContractResponse {
|
|
332
|
+
meta: ResponseMeta | undefined;
|
|
333
|
+
contract: ContractVerify | undefined;
|
|
334
|
+
}
|
|
335
|
+
/** ================== AddContract ================== */
|
|
336
|
+
export interface AddContractRequest {
|
|
337
|
+
contract_id: string;
|
|
338
|
+
provider_id: string;
|
|
339
|
+
transaction_id: string;
|
|
340
|
+
prod_id: number;
|
|
341
|
+
location: string;
|
|
342
|
+
location_type: number;
|
|
343
|
+
shared_balance: number;
|
|
344
|
+
funding_account_number: string;
|
|
345
|
+
}
|
|
346
|
+
export interface AddContractResponse {
|
|
347
|
+
meta: ResponseMeta | undefined;
|
|
348
|
+
pmt_ref_number: string;
|
|
349
|
+
product_id: string;
|
|
350
|
+
contract_number: string;
|
|
351
|
+
card_id: string;
|
|
352
|
+
card_number: string;
|
|
353
|
+
expiry_date: string;
|
|
354
|
+
card_security_code: string;
|
|
355
|
+
emboss_line_2: string;
|
|
356
|
+
billing_cycle_day: number;
|
|
357
|
+
}
|
|
358
|
+
/** ================== SearchContracts ================== */
|
|
359
|
+
export interface SearchContractsRequest {
|
|
360
|
+
provider_id: string;
|
|
361
|
+
transaction_id: string;
|
|
362
|
+
account_number?: string | undefined;
|
|
363
|
+
first_name?: string | undefined;
|
|
364
|
+
middle_name?: string | undefined;
|
|
365
|
+
last_name?: string | undefined;
|
|
366
|
+
date_of_birth?: string | undefined;
|
|
367
|
+
zip?: string | undefined;
|
|
368
|
+
primary_phone?: string | undefined;
|
|
369
|
+
other_phone?: string | undefined;
|
|
370
|
+
mobile_phone?: string | undefined;
|
|
371
|
+
email?: string | undefined;
|
|
372
|
+
user_data?: string | undefined;
|
|
373
|
+
eext_id?: string | undefined;
|
|
374
|
+
record_cnt?: number | undefined;
|
|
375
|
+
page?: number | undefined;
|
|
376
|
+
mobile_phone_country_code?: string | undefined;
|
|
377
|
+
}
|
|
378
|
+
export interface SearchContractsResponse {
|
|
379
|
+
meta: ResponseMeta | undefined;
|
|
380
|
+
page: number;
|
|
381
|
+
total_record_count: number;
|
|
382
|
+
number_of_pages: number;
|
|
383
|
+
contracts: ContractSearch[];
|
|
384
|
+
}
|
|
385
|
+
/** ================== ChargeOffContract ================== */
|
|
386
|
+
export interface ChargeOffContractRequest {
|
|
387
|
+
contract_id: string;
|
|
388
|
+
provider_id: string;
|
|
389
|
+
transaction_id: string;
|
|
390
|
+
charge_off_details: string;
|
|
391
|
+
close_associated_accounts?: number | undefined;
|
|
392
|
+
}
|
|
393
|
+
export interface ChargeOffContractResponse {
|
|
394
|
+
meta: ResponseMeta | undefined;
|
|
395
|
+
charged_off: boolean;
|
|
396
|
+
}
|
|
397
|
+
/** ================== GetContractData ================== */
|
|
398
|
+
export interface GetContractDataRequest {
|
|
399
|
+
contract_id: string;
|
|
400
|
+
provider_id: string;
|
|
401
|
+
transaction_id: string;
|
|
402
|
+
start_date?: string | undefined;
|
|
403
|
+
end_date?: string | undefined;
|
|
404
|
+
}
|
|
405
|
+
export interface GetContractDataResponse {
|
|
406
|
+
meta: ResponseMeta | undefined;
|
|
407
|
+
contract: ContractOverview | undefined;
|
|
408
|
+
}
|
|
409
|
+
/** ================== GetCustomerProfile ================== */
|
|
410
|
+
export interface GetCustomerProfileRequest {
|
|
411
|
+
customer_id: string;
|
|
412
|
+
}
|
|
413
|
+
export interface GetCustomerProfileResponse {
|
|
414
|
+
meta: ResponseMeta | undefined;
|
|
415
|
+
profile: Profile | undefined;
|
|
416
|
+
}
|
|
417
|
+
/** ================== GetTransactions ================== */
|
|
418
|
+
export interface GetTransactionsRequest {
|
|
419
|
+
contract_id: string;
|
|
420
|
+
provider_id: string;
|
|
421
|
+
transaction_id: string;
|
|
422
|
+
start_date?: string | undefined;
|
|
423
|
+
end_date?: string | undefined;
|
|
424
|
+
}
|
|
425
|
+
export interface GetTransactionsResponse {
|
|
426
|
+
meta: ResponseMeta | undefined;
|
|
427
|
+
transactions: Transaction[];
|
|
428
|
+
}
|
|
429
|
+
/** ================== GetAuthorizations ================== */
|
|
430
|
+
export interface GetAuthorizationsRequest {
|
|
431
|
+
contract_id: string;
|
|
432
|
+
provider_id: string;
|
|
433
|
+
transaction_id: string;
|
|
434
|
+
start_date?: string | undefined;
|
|
435
|
+
end_date?: string | undefined;
|
|
436
|
+
}
|
|
437
|
+
export interface GetAuthorizationsResponse {
|
|
438
|
+
meta: ResponseMeta | undefined;
|
|
439
|
+
authorizations: Authorization[];
|
|
440
|
+
}
|
|
441
|
+
/** ================== GetPendingFees ================== */
|
|
442
|
+
export interface GetPendingFeesRequest {
|
|
443
|
+
contract_id: string;
|
|
444
|
+
provider_id: string;
|
|
445
|
+
transaction_id: string;
|
|
446
|
+
start_date?: string | undefined;
|
|
447
|
+
end_date?: string | undefined;
|
|
448
|
+
}
|
|
449
|
+
export interface GetPendingFeesResponse {
|
|
450
|
+
meta: ResponseMeta | undefined;
|
|
451
|
+
pending_fees: PendingFee[];
|
|
452
|
+
}
|
|
453
|
+
/** ================== GetSavingsInterest ================== */
|
|
454
|
+
export interface GetSavingsInterestRequest {
|
|
455
|
+
contract_id: string;
|
|
456
|
+
provider_id: string;
|
|
457
|
+
transaction_id: string;
|
|
458
|
+
start_date?: string | undefined;
|
|
459
|
+
end_date?: string | undefined;
|
|
460
|
+
}
|
|
461
|
+
export interface GetSavingsInterestResponse {
|
|
462
|
+
meta: ResponseMeta | undefined;
|
|
463
|
+
saving_interest: SavingsInterest | undefined;
|
|
464
|
+
}
|
|
465
|
+
/** ================== GetHolds ================== */
|
|
466
|
+
export interface GetHoldsRequest {
|
|
467
|
+
contract_id: string;
|
|
468
|
+
provider_id: string;
|
|
469
|
+
transaction_id: string;
|
|
470
|
+
start_date?: string | undefined;
|
|
471
|
+
end_date?: string | undefined;
|
|
472
|
+
}
|
|
473
|
+
export interface GetHoldsResponse {
|
|
474
|
+
meta: ResponseMeta | undefined;
|
|
475
|
+
holds: Hold[];
|
|
476
|
+
}
|
|
477
|
+
export declare const CreateContractRequest: MessageFns<CreateContractRequest>;
|
|
478
|
+
export declare const CreateContractResponse: MessageFns<CreateContractResponse>;
|
|
479
|
+
export declare const CreatePhysicalCardContractRequest: MessageFns<CreatePhysicalCardContractRequest>;
|
|
480
|
+
export declare const CreatePhysicalCardContractResponse: MessageFns<CreatePhysicalCardContractResponse>;
|
|
481
|
+
export declare const CreateVirtualCardContractRequest: MessageFns<CreateVirtualCardContractRequest>;
|
|
482
|
+
export declare const CreateVirtualCardContractResponse: MessageFns<CreateVirtualCardContractResponse>;
|
|
483
|
+
export declare const GetExistsContractRequest: MessageFns<GetExistsContractRequest>;
|
|
484
|
+
export declare const GetExistsContractResponse: MessageFns<GetExistsContractResponse>;
|
|
485
|
+
export declare const AddBalanceRequest: MessageFns<AddBalanceRequest>;
|
|
486
|
+
export declare const AddBalanceResponse: MessageFns<AddBalanceResponse>;
|
|
487
|
+
export declare const GetBalanceRequest: MessageFns<GetBalanceRequest>;
|
|
488
|
+
export declare const GetBalanceResponse: MessageFns<GetBalanceResponse>;
|
|
489
|
+
export declare const GetCustomerIdByContractIdRequest: MessageFns<GetCustomerIdByContractIdRequest>;
|
|
490
|
+
export declare const GetCustomerIdByContractIdResponse: MessageFns<GetCustomerIdByContractIdResponse>;
|
|
491
|
+
export declare const UpdateContractRequest: MessageFns<UpdateContractRequest>;
|
|
492
|
+
export declare const UpdateContractResponse: MessageFns<UpdateContractResponse>;
|
|
493
|
+
export declare const GetExistsCustomerRequest: MessageFns<GetExistsCustomerRequest>;
|
|
494
|
+
export declare const GetExistsCustomerResponse: MessageFns<GetExistsCustomerResponse>;
|
|
495
|
+
export declare const GetContractByIdRequest: MessageFns<GetContractByIdRequest>;
|
|
496
|
+
export declare const GetContractByIdResponse: MessageFns<GetContractByIdResponse>;
|
|
497
|
+
export declare const GetRelatedContractsRequest: MessageFns<GetRelatedContractsRequest>;
|
|
498
|
+
export declare const GetRelatedContractsResponse: MessageFns<GetRelatedContractsResponse>;
|
|
499
|
+
export declare const VerifyContractRequest: MessageFns<VerifyContractRequest>;
|
|
500
|
+
export declare const VerifyContractResponse: MessageFns<VerifyContractResponse>;
|
|
501
|
+
export declare const AddContractRequest: MessageFns<AddContractRequest>;
|
|
502
|
+
export declare const AddContractResponse: MessageFns<AddContractResponse>;
|
|
503
|
+
export declare const SearchContractsRequest: MessageFns<SearchContractsRequest>;
|
|
504
|
+
export declare const SearchContractsResponse: MessageFns<SearchContractsResponse>;
|
|
505
|
+
export declare const ChargeOffContractRequest: MessageFns<ChargeOffContractRequest>;
|
|
506
|
+
export declare const ChargeOffContractResponse: MessageFns<ChargeOffContractResponse>;
|
|
507
|
+
export declare const GetContractDataRequest: MessageFns<GetContractDataRequest>;
|
|
508
|
+
export declare const GetContractDataResponse: MessageFns<GetContractDataResponse>;
|
|
509
|
+
export declare const GetCustomerProfileRequest: MessageFns<GetCustomerProfileRequest>;
|
|
510
|
+
export declare const GetCustomerProfileResponse: MessageFns<GetCustomerProfileResponse>;
|
|
511
|
+
export declare const GetTransactionsRequest: MessageFns<GetTransactionsRequest>;
|
|
512
|
+
export declare const GetTransactionsResponse: MessageFns<GetTransactionsResponse>;
|
|
513
|
+
export declare const GetAuthorizationsRequest: MessageFns<GetAuthorizationsRequest>;
|
|
514
|
+
export declare const GetAuthorizationsResponse: MessageFns<GetAuthorizationsResponse>;
|
|
515
|
+
export declare const GetPendingFeesRequest: MessageFns<GetPendingFeesRequest>;
|
|
516
|
+
export declare const GetPendingFeesResponse: MessageFns<GetPendingFeesResponse>;
|
|
517
|
+
export declare const GetSavingsInterestRequest: MessageFns<GetSavingsInterestRequest>;
|
|
518
|
+
export declare const GetSavingsInterestResponse: MessageFns<GetSavingsInterestResponse>;
|
|
519
|
+
export declare const GetHoldsRequest: MessageFns<GetHoldsRequest>;
|
|
520
|
+
export declare const GetHoldsResponse: MessageFns<GetHoldsResponse>;
|
|
521
|
+
export type ContractsServiceService = typeof ContractsServiceService;
|
|
522
|
+
export declare const ContractsServiceService: {
|
|
523
|
+
readonly createContract: {
|
|
524
|
+
readonly path: "/kapital.contracts.v1.ContractsService/CreateContract";
|
|
525
|
+
readonly requestStream: false;
|
|
526
|
+
readonly responseStream: false;
|
|
527
|
+
readonly requestSerialize: (value: CreateContractRequest) => Buffer;
|
|
528
|
+
readonly requestDeserialize: (value: Buffer) => CreateContractRequest;
|
|
529
|
+
readonly responseSerialize: (value: CreateContractResponse) => Buffer;
|
|
530
|
+
readonly responseDeserialize: (value: Buffer) => CreateContractResponse;
|
|
531
|
+
};
|
|
532
|
+
readonly createPhysicalCardContract: {
|
|
533
|
+
readonly path: "/kapital.contracts.v1.ContractsService/CreatePhysicalCardContract";
|
|
534
|
+
readonly requestStream: false;
|
|
535
|
+
readonly responseStream: false;
|
|
536
|
+
readonly requestSerialize: (value: CreatePhysicalCardContractRequest) => Buffer;
|
|
537
|
+
readonly requestDeserialize: (value: Buffer) => CreatePhysicalCardContractRequest;
|
|
538
|
+
readonly responseSerialize: (value: CreatePhysicalCardContractResponse) => Buffer;
|
|
539
|
+
readonly responseDeserialize: (value: Buffer) => CreatePhysicalCardContractResponse;
|
|
540
|
+
};
|
|
541
|
+
readonly createVirtualCardContract: {
|
|
542
|
+
readonly path: "/kapital.contracts.v1.ContractsService/CreateVirtualCardContract";
|
|
543
|
+
readonly requestStream: false;
|
|
544
|
+
readonly responseStream: false;
|
|
545
|
+
readonly requestSerialize: (value: CreateVirtualCardContractRequest) => Buffer;
|
|
546
|
+
readonly requestDeserialize: (value: Buffer) => CreateVirtualCardContractRequest;
|
|
547
|
+
readonly responseSerialize: (value: CreateVirtualCardContractResponse) => Buffer;
|
|
548
|
+
readonly responseDeserialize: (value: Buffer) => CreateVirtualCardContractResponse;
|
|
549
|
+
};
|
|
550
|
+
readonly getExistsContract: {
|
|
551
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetExistsContract";
|
|
552
|
+
readonly requestStream: false;
|
|
553
|
+
readonly responseStream: false;
|
|
554
|
+
readonly requestSerialize: (value: GetExistsContractRequest) => Buffer;
|
|
555
|
+
readonly requestDeserialize: (value: Buffer) => GetExistsContractRequest;
|
|
556
|
+
readonly responseSerialize: (value: GetExistsContractResponse) => Buffer;
|
|
557
|
+
readonly responseDeserialize: (value: Buffer) => GetExistsContractResponse;
|
|
558
|
+
};
|
|
559
|
+
readonly addBalance: {
|
|
560
|
+
readonly path: "/kapital.contracts.v1.ContractsService/AddBalance";
|
|
561
|
+
readonly requestStream: false;
|
|
562
|
+
readonly responseStream: false;
|
|
563
|
+
readonly requestSerialize: (value: AddBalanceRequest) => Buffer;
|
|
564
|
+
readonly requestDeserialize: (value: Buffer) => AddBalanceRequest;
|
|
565
|
+
readonly responseSerialize: (value: AddBalanceResponse) => Buffer;
|
|
566
|
+
readonly responseDeserialize: (value: Buffer) => AddBalanceResponse;
|
|
567
|
+
};
|
|
568
|
+
readonly getBalance: {
|
|
569
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetBalance";
|
|
570
|
+
readonly requestStream: false;
|
|
571
|
+
readonly responseStream: false;
|
|
572
|
+
readonly requestSerialize: (value: GetBalanceRequest) => Buffer;
|
|
573
|
+
readonly requestDeserialize: (value: Buffer) => GetBalanceRequest;
|
|
574
|
+
readonly responseSerialize: (value: GetBalanceResponse) => Buffer;
|
|
575
|
+
readonly responseDeserialize: (value: Buffer) => GetBalanceResponse;
|
|
576
|
+
};
|
|
577
|
+
readonly getCustomerIdByContractId: {
|
|
578
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetCustomerIdByContractId";
|
|
579
|
+
readonly requestStream: false;
|
|
580
|
+
readonly responseStream: false;
|
|
581
|
+
readonly requestSerialize: (value: GetCustomerIdByContractIdRequest) => Buffer;
|
|
582
|
+
readonly requestDeserialize: (value: Buffer) => GetCustomerIdByContractIdRequest;
|
|
583
|
+
readonly responseSerialize: (value: GetCustomerIdByContractIdResponse) => Buffer;
|
|
584
|
+
readonly responseDeserialize: (value: Buffer) => GetCustomerIdByContractIdResponse;
|
|
585
|
+
};
|
|
586
|
+
readonly updateContract: {
|
|
587
|
+
readonly path: "/kapital.contracts.v1.ContractsService/UpdateContract";
|
|
588
|
+
readonly requestStream: false;
|
|
589
|
+
readonly responseStream: false;
|
|
590
|
+
readonly requestSerialize: (value: UpdateContractRequest) => Buffer;
|
|
591
|
+
readonly requestDeserialize: (value: Buffer) => UpdateContractRequest;
|
|
592
|
+
readonly responseSerialize: (value: UpdateContractResponse) => Buffer;
|
|
593
|
+
readonly responseDeserialize: (value: Buffer) => UpdateContractResponse;
|
|
594
|
+
};
|
|
595
|
+
readonly getExistsCustomer: {
|
|
596
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetExistsCustomer";
|
|
597
|
+
readonly requestStream: false;
|
|
598
|
+
readonly responseStream: false;
|
|
599
|
+
readonly requestSerialize: (value: GetExistsCustomerRequest) => Buffer;
|
|
600
|
+
readonly requestDeserialize: (value: Buffer) => GetExistsCustomerRequest;
|
|
601
|
+
readonly responseSerialize: (value: GetExistsCustomerResponse) => Buffer;
|
|
602
|
+
readonly responseDeserialize: (value: Buffer) => GetExistsCustomerResponse;
|
|
603
|
+
};
|
|
604
|
+
readonly getContractById: {
|
|
605
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetContractById";
|
|
606
|
+
readonly requestStream: false;
|
|
607
|
+
readonly responseStream: false;
|
|
608
|
+
readonly requestSerialize: (value: GetContractByIdRequest) => Buffer;
|
|
609
|
+
readonly requestDeserialize: (value: Buffer) => GetContractByIdRequest;
|
|
610
|
+
readonly responseSerialize: (value: GetContractByIdResponse) => Buffer;
|
|
611
|
+
readonly responseDeserialize: (value: Buffer) => GetContractByIdResponse;
|
|
612
|
+
};
|
|
613
|
+
readonly getRelatedContracts: {
|
|
614
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetRelatedContracts";
|
|
615
|
+
readonly requestStream: false;
|
|
616
|
+
readonly responseStream: false;
|
|
617
|
+
readonly requestSerialize: (value: GetRelatedContractsRequest) => Buffer;
|
|
618
|
+
readonly requestDeserialize: (value: Buffer) => GetRelatedContractsRequest;
|
|
619
|
+
readonly responseSerialize: (value: GetRelatedContractsResponse) => Buffer;
|
|
620
|
+
readonly responseDeserialize: (value: Buffer) => GetRelatedContractsResponse;
|
|
621
|
+
};
|
|
622
|
+
readonly verifyContract: {
|
|
623
|
+
readonly path: "/kapital.contracts.v1.ContractsService/VerifyContract";
|
|
624
|
+
readonly requestStream: false;
|
|
625
|
+
readonly responseStream: false;
|
|
626
|
+
readonly requestSerialize: (value: VerifyContractRequest) => Buffer;
|
|
627
|
+
readonly requestDeserialize: (value: Buffer) => VerifyContractRequest;
|
|
628
|
+
readonly responseSerialize: (value: VerifyContractResponse) => Buffer;
|
|
629
|
+
readonly responseDeserialize: (value: Buffer) => VerifyContractResponse;
|
|
630
|
+
};
|
|
631
|
+
readonly addContract: {
|
|
632
|
+
readonly path: "/kapital.contracts.v1.ContractsService/AddContract";
|
|
633
|
+
readonly requestStream: false;
|
|
634
|
+
readonly responseStream: false;
|
|
635
|
+
readonly requestSerialize: (value: AddContractRequest) => Buffer;
|
|
636
|
+
readonly requestDeserialize: (value: Buffer) => AddContractRequest;
|
|
637
|
+
readonly responseSerialize: (value: AddContractResponse) => Buffer;
|
|
638
|
+
readonly responseDeserialize: (value: Buffer) => AddContractResponse;
|
|
639
|
+
};
|
|
640
|
+
readonly searchContracts: {
|
|
641
|
+
readonly path: "/kapital.contracts.v1.ContractsService/SearchContracts";
|
|
642
|
+
readonly requestStream: false;
|
|
643
|
+
readonly responseStream: false;
|
|
644
|
+
readonly requestSerialize: (value: SearchContractsRequest) => Buffer;
|
|
645
|
+
readonly requestDeserialize: (value: Buffer) => SearchContractsRequest;
|
|
646
|
+
readonly responseSerialize: (value: SearchContractsResponse) => Buffer;
|
|
647
|
+
readonly responseDeserialize: (value: Buffer) => SearchContractsResponse;
|
|
648
|
+
};
|
|
649
|
+
readonly chargeOffContract: {
|
|
650
|
+
readonly path: "/kapital.contracts.v1.ContractsService/ChargeOffContract";
|
|
651
|
+
readonly requestStream: false;
|
|
652
|
+
readonly responseStream: false;
|
|
653
|
+
readonly requestSerialize: (value: ChargeOffContractRequest) => Buffer;
|
|
654
|
+
readonly requestDeserialize: (value: Buffer) => ChargeOffContractRequest;
|
|
655
|
+
readonly responseSerialize: (value: ChargeOffContractResponse) => Buffer;
|
|
656
|
+
readonly responseDeserialize: (value: Buffer) => ChargeOffContractResponse;
|
|
657
|
+
};
|
|
658
|
+
readonly getContractData: {
|
|
659
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetContractData";
|
|
660
|
+
readonly requestStream: false;
|
|
661
|
+
readonly responseStream: false;
|
|
662
|
+
readonly requestSerialize: (value: GetContractDataRequest) => Buffer;
|
|
663
|
+
readonly requestDeserialize: (value: Buffer) => GetContractDataRequest;
|
|
664
|
+
readonly responseSerialize: (value: GetContractDataResponse) => Buffer;
|
|
665
|
+
readonly responseDeserialize: (value: Buffer) => GetContractDataResponse;
|
|
666
|
+
};
|
|
667
|
+
readonly getCustomerProfile: {
|
|
668
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetCustomerProfile";
|
|
669
|
+
readonly requestStream: false;
|
|
670
|
+
readonly responseStream: false;
|
|
671
|
+
readonly requestSerialize: (value: GetCustomerProfileRequest) => Buffer;
|
|
672
|
+
readonly requestDeserialize: (value: Buffer) => GetCustomerProfileRequest;
|
|
673
|
+
readonly responseSerialize: (value: GetCustomerProfileResponse) => Buffer;
|
|
674
|
+
readonly responseDeserialize: (value: Buffer) => GetCustomerProfileResponse;
|
|
675
|
+
};
|
|
676
|
+
readonly getTransactions: {
|
|
677
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetTransactions";
|
|
678
|
+
readonly requestStream: false;
|
|
679
|
+
readonly responseStream: false;
|
|
680
|
+
readonly requestSerialize: (value: GetTransactionsRequest) => Buffer;
|
|
681
|
+
readonly requestDeserialize: (value: Buffer) => GetTransactionsRequest;
|
|
682
|
+
readonly responseSerialize: (value: GetTransactionsResponse) => Buffer;
|
|
683
|
+
readonly responseDeserialize: (value: Buffer) => GetTransactionsResponse;
|
|
684
|
+
};
|
|
685
|
+
readonly getAuthorizations: {
|
|
686
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetAuthorizations";
|
|
687
|
+
readonly requestStream: false;
|
|
688
|
+
readonly responseStream: false;
|
|
689
|
+
readonly requestSerialize: (value: GetAuthorizationsRequest) => Buffer;
|
|
690
|
+
readonly requestDeserialize: (value: Buffer) => GetAuthorizationsRequest;
|
|
691
|
+
readonly responseSerialize: (value: GetAuthorizationsResponse) => Buffer;
|
|
692
|
+
readonly responseDeserialize: (value: Buffer) => GetAuthorizationsResponse;
|
|
693
|
+
};
|
|
694
|
+
readonly getPendingFees: {
|
|
695
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetPendingFees";
|
|
696
|
+
readonly requestStream: false;
|
|
697
|
+
readonly responseStream: false;
|
|
698
|
+
readonly requestSerialize: (value: GetPendingFeesRequest) => Buffer;
|
|
699
|
+
readonly requestDeserialize: (value: Buffer) => GetPendingFeesRequest;
|
|
700
|
+
readonly responseSerialize: (value: GetPendingFeesResponse) => Buffer;
|
|
701
|
+
readonly responseDeserialize: (value: Buffer) => GetPendingFeesResponse;
|
|
702
|
+
};
|
|
703
|
+
readonly getSavingsInterest: {
|
|
704
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetSavingsInterest";
|
|
705
|
+
readonly requestStream: false;
|
|
706
|
+
readonly responseStream: false;
|
|
707
|
+
readonly requestSerialize: (value: GetSavingsInterestRequest) => Buffer;
|
|
708
|
+
readonly requestDeserialize: (value: Buffer) => GetSavingsInterestRequest;
|
|
709
|
+
readonly responseSerialize: (value: GetSavingsInterestResponse) => Buffer;
|
|
710
|
+
readonly responseDeserialize: (value: Buffer) => GetSavingsInterestResponse;
|
|
711
|
+
};
|
|
712
|
+
readonly getHolds: {
|
|
713
|
+
readonly path: "/kapital.contracts.v1.ContractsService/GetHolds";
|
|
714
|
+
readonly requestStream: false;
|
|
715
|
+
readonly responseStream: false;
|
|
716
|
+
readonly requestSerialize: (value: GetHoldsRequest) => Buffer;
|
|
717
|
+
readonly requestDeserialize: (value: Buffer) => GetHoldsRequest;
|
|
718
|
+
readonly responseSerialize: (value: GetHoldsResponse) => Buffer;
|
|
719
|
+
readonly responseDeserialize: (value: Buffer) => GetHoldsResponse;
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
export interface ContractsServiceServer extends UntypedServiceImplementation {
|
|
723
|
+
createContract: handleUnaryCall<CreateContractRequest, CreateContractResponse>;
|
|
724
|
+
createPhysicalCardContract: handleUnaryCall<CreatePhysicalCardContractRequest, CreatePhysicalCardContractResponse>;
|
|
725
|
+
createVirtualCardContract: handleUnaryCall<CreateVirtualCardContractRequest, CreateVirtualCardContractResponse>;
|
|
726
|
+
getExistsContract: handleUnaryCall<GetExistsContractRequest, GetExistsContractResponse>;
|
|
727
|
+
addBalance: handleUnaryCall<AddBalanceRequest, AddBalanceResponse>;
|
|
728
|
+
getBalance: handleUnaryCall<GetBalanceRequest, GetBalanceResponse>;
|
|
729
|
+
getCustomerIdByContractId: handleUnaryCall<GetCustomerIdByContractIdRequest, GetCustomerIdByContractIdResponse>;
|
|
730
|
+
updateContract: handleUnaryCall<UpdateContractRequest, UpdateContractResponse>;
|
|
731
|
+
getExistsCustomer: handleUnaryCall<GetExistsCustomerRequest, GetExistsCustomerResponse>;
|
|
732
|
+
getContractById: handleUnaryCall<GetContractByIdRequest, GetContractByIdResponse>;
|
|
733
|
+
getRelatedContracts: handleUnaryCall<GetRelatedContractsRequest, GetRelatedContractsResponse>;
|
|
734
|
+
verifyContract: handleUnaryCall<VerifyContractRequest, VerifyContractResponse>;
|
|
735
|
+
addContract: handleUnaryCall<AddContractRequest, AddContractResponse>;
|
|
736
|
+
searchContracts: handleUnaryCall<SearchContractsRequest, SearchContractsResponse>;
|
|
737
|
+
chargeOffContract: handleUnaryCall<ChargeOffContractRequest, ChargeOffContractResponse>;
|
|
738
|
+
getContractData: handleUnaryCall<GetContractDataRequest, GetContractDataResponse>;
|
|
739
|
+
getCustomerProfile: handleUnaryCall<GetCustomerProfileRequest, GetCustomerProfileResponse>;
|
|
740
|
+
getTransactions: handleUnaryCall<GetTransactionsRequest, GetTransactionsResponse>;
|
|
741
|
+
getAuthorizations: handleUnaryCall<GetAuthorizationsRequest, GetAuthorizationsResponse>;
|
|
742
|
+
getPendingFees: handleUnaryCall<GetPendingFeesRequest, GetPendingFeesResponse>;
|
|
743
|
+
getSavingsInterest: handleUnaryCall<GetSavingsInterestRequest, GetSavingsInterestResponse>;
|
|
744
|
+
getHolds: handleUnaryCall<GetHoldsRequest, GetHoldsResponse>;
|
|
745
|
+
}
|
|
746
|
+
export interface ContractsServiceClient extends Client {
|
|
747
|
+
createContract(request: CreateContractRequest, callback: (error: ServiceError | null, response: CreateContractResponse) => void): ClientUnaryCall;
|
|
748
|
+
createContract(request: CreateContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateContractResponse) => void): ClientUnaryCall;
|
|
749
|
+
createContract(request: CreateContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateContractResponse) => void): ClientUnaryCall;
|
|
750
|
+
createPhysicalCardContract(request: CreatePhysicalCardContractRequest, callback: (error: ServiceError | null, response: CreatePhysicalCardContractResponse) => void): ClientUnaryCall;
|
|
751
|
+
createPhysicalCardContract(request: CreatePhysicalCardContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreatePhysicalCardContractResponse) => void): ClientUnaryCall;
|
|
752
|
+
createPhysicalCardContract(request: CreatePhysicalCardContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreatePhysicalCardContractResponse) => void): ClientUnaryCall;
|
|
753
|
+
createVirtualCardContract(request: CreateVirtualCardContractRequest, callback: (error: ServiceError | null, response: CreateVirtualCardContractResponse) => void): ClientUnaryCall;
|
|
754
|
+
createVirtualCardContract(request: CreateVirtualCardContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateVirtualCardContractResponse) => void): ClientUnaryCall;
|
|
755
|
+
createVirtualCardContract(request: CreateVirtualCardContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateVirtualCardContractResponse) => void): ClientUnaryCall;
|
|
756
|
+
getExistsContract(request: GetExistsContractRequest, callback: (error: ServiceError | null, response: GetExistsContractResponse) => void): ClientUnaryCall;
|
|
757
|
+
getExistsContract(request: GetExistsContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetExistsContractResponse) => void): ClientUnaryCall;
|
|
758
|
+
getExistsContract(request: GetExistsContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetExistsContractResponse) => void): ClientUnaryCall;
|
|
759
|
+
addBalance(request: AddBalanceRequest, callback: (error: ServiceError | null, response: AddBalanceResponse) => void): ClientUnaryCall;
|
|
760
|
+
addBalance(request: AddBalanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AddBalanceResponse) => void): ClientUnaryCall;
|
|
761
|
+
addBalance(request: AddBalanceRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: AddBalanceResponse) => void): ClientUnaryCall;
|
|
762
|
+
getBalance(request: GetBalanceRequest, callback: (error: ServiceError | null, response: GetBalanceResponse) => void): ClientUnaryCall;
|
|
763
|
+
getBalance(request: GetBalanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetBalanceResponse) => void): ClientUnaryCall;
|
|
764
|
+
getBalance(request: GetBalanceRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetBalanceResponse) => void): ClientUnaryCall;
|
|
765
|
+
getCustomerIdByContractId(request: GetCustomerIdByContractIdRequest, callback: (error: ServiceError | null, response: GetCustomerIdByContractIdResponse) => void): ClientUnaryCall;
|
|
766
|
+
getCustomerIdByContractId(request: GetCustomerIdByContractIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCustomerIdByContractIdResponse) => void): ClientUnaryCall;
|
|
767
|
+
getCustomerIdByContractId(request: GetCustomerIdByContractIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCustomerIdByContractIdResponse) => void): ClientUnaryCall;
|
|
768
|
+
updateContract(request: UpdateContractRequest, callback: (error: ServiceError | null, response: UpdateContractResponse) => void): ClientUnaryCall;
|
|
769
|
+
updateContract(request: UpdateContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: UpdateContractResponse) => void): ClientUnaryCall;
|
|
770
|
+
updateContract(request: UpdateContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: UpdateContractResponse) => void): ClientUnaryCall;
|
|
771
|
+
getExistsCustomer(request: GetExistsCustomerRequest, callback: (error: ServiceError | null, response: GetExistsCustomerResponse) => void): ClientUnaryCall;
|
|
772
|
+
getExistsCustomer(request: GetExistsCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetExistsCustomerResponse) => void): ClientUnaryCall;
|
|
773
|
+
getExistsCustomer(request: GetExistsCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetExistsCustomerResponse) => void): ClientUnaryCall;
|
|
774
|
+
getContractById(request: GetContractByIdRequest, callback: (error: ServiceError | null, response: GetContractByIdResponse) => void): ClientUnaryCall;
|
|
775
|
+
getContractById(request: GetContractByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetContractByIdResponse) => void): ClientUnaryCall;
|
|
776
|
+
getContractById(request: GetContractByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetContractByIdResponse) => void): ClientUnaryCall;
|
|
777
|
+
getRelatedContracts(request: GetRelatedContractsRequest, callback: (error: ServiceError | null, response: GetRelatedContractsResponse) => void): ClientUnaryCall;
|
|
778
|
+
getRelatedContracts(request: GetRelatedContractsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetRelatedContractsResponse) => void): ClientUnaryCall;
|
|
779
|
+
getRelatedContracts(request: GetRelatedContractsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetRelatedContractsResponse) => void): ClientUnaryCall;
|
|
780
|
+
verifyContract(request: VerifyContractRequest, callback: (error: ServiceError | null, response: VerifyContractResponse) => void): ClientUnaryCall;
|
|
781
|
+
verifyContract(request: VerifyContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: VerifyContractResponse) => void): ClientUnaryCall;
|
|
782
|
+
verifyContract(request: VerifyContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: VerifyContractResponse) => void): ClientUnaryCall;
|
|
783
|
+
addContract(request: AddContractRequest, callback: (error: ServiceError | null, response: AddContractResponse) => void): ClientUnaryCall;
|
|
784
|
+
addContract(request: AddContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AddContractResponse) => void): ClientUnaryCall;
|
|
785
|
+
addContract(request: AddContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: AddContractResponse) => void): ClientUnaryCall;
|
|
786
|
+
searchContracts(request: SearchContractsRequest, callback: (error: ServiceError | null, response: SearchContractsResponse) => void): ClientUnaryCall;
|
|
787
|
+
searchContracts(request: SearchContractsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: SearchContractsResponse) => void): ClientUnaryCall;
|
|
788
|
+
searchContracts(request: SearchContractsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: SearchContractsResponse) => void): ClientUnaryCall;
|
|
789
|
+
chargeOffContract(request: ChargeOffContractRequest, callback: (error: ServiceError | null, response: ChargeOffContractResponse) => void): ClientUnaryCall;
|
|
790
|
+
chargeOffContract(request: ChargeOffContractRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ChargeOffContractResponse) => void): ClientUnaryCall;
|
|
791
|
+
chargeOffContract(request: ChargeOffContractRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ChargeOffContractResponse) => void): ClientUnaryCall;
|
|
792
|
+
getContractData(request: GetContractDataRequest, callback: (error: ServiceError | null, response: GetContractDataResponse) => void): ClientUnaryCall;
|
|
793
|
+
getContractData(request: GetContractDataRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetContractDataResponse) => void): ClientUnaryCall;
|
|
794
|
+
getContractData(request: GetContractDataRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetContractDataResponse) => void): ClientUnaryCall;
|
|
795
|
+
getCustomerProfile(request: GetCustomerProfileRequest, callback: (error: ServiceError | null, response: GetCustomerProfileResponse) => void): ClientUnaryCall;
|
|
796
|
+
getCustomerProfile(request: GetCustomerProfileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCustomerProfileResponse) => void): ClientUnaryCall;
|
|
797
|
+
getCustomerProfile(request: GetCustomerProfileRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCustomerProfileResponse) => void): ClientUnaryCall;
|
|
798
|
+
getTransactions(request: GetTransactionsRequest, callback: (error: ServiceError | null, response: GetTransactionsResponse) => void): ClientUnaryCall;
|
|
799
|
+
getTransactions(request: GetTransactionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetTransactionsResponse) => void): ClientUnaryCall;
|
|
800
|
+
getTransactions(request: GetTransactionsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetTransactionsResponse) => void): ClientUnaryCall;
|
|
801
|
+
getAuthorizations(request: GetAuthorizationsRequest, callback: (error: ServiceError | null, response: GetAuthorizationsResponse) => void): ClientUnaryCall;
|
|
802
|
+
getAuthorizations(request: GetAuthorizationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetAuthorizationsResponse) => void): ClientUnaryCall;
|
|
803
|
+
getAuthorizations(request: GetAuthorizationsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetAuthorizationsResponse) => void): ClientUnaryCall;
|
|
804
|
+
getPendingFees(request: GetPendingFeesRequest, callback: (error: ServiceError | null, response: GetPendingFeesResponse) => void): ClientUnaryCall;
|
|
805
|
+
getPendingFees(request: GetPendingFeesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetPendingFeesResponse) => void): ClientUnaryCall;
|
|
806
|
+
getPendingFees(request: GetPendingFeesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetPendingFeesResponse) => void): ClientUnaryCall;
|
|
807
|
+
getSavingsInterest(request: GetSavingsInterestRequest, callback: (error: ServiceError | null, response: GetSavingsInterestResponse) => void): ClientUnaryCall;
|
|
808
|
+
getSavingsInterest(request: GetSavingsInterestRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetSavingsInterestResponse) => void): ClientUnaryCall;
|
|
809
|
+
getSavingsInterest(request: GetSavingsInterestRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetSavingsInterestResponse) => void): ClientUnaryCall;
|
|
810
|
+
getHolds(request: GetHoldsRequest, callback: (error: ServiceError | null, response: GetHoldsResponse) => void): ClientUnaryCall;
|
|
811
|
+
getHolds(request: GetHoldsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetHoldsResponse) => void): ClientUnaryCall;
|
|
812
|
+
getHolds(request: GetHoldsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetHoldsResponse) => void): ClientUnaryCall;
|
|
813
|
+
}
|
|
814
|
+
export declare const ContractsServiceClient: {
|
|
815
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ContractsServiceClient;
|
|
816
|
+
service: typeof ContractsServiceService;
|
|
817
|
+
serviceName: string;
|
|
818
|
+
};
|
|
819
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
820
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
821
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
822
|
+
} : Partial<T>;
|
|
823
|
+
export interface MessageFns<T> {
|
|
824
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
825
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
826
|
+
create(base?: DeepPartial<T>): T;
|
|
827
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
828
|
+
}
|
|
829
|
+
export {};
|