@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,293 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "kapital.contracts.v1";
|
|
3
|
+
/** ================== CreatePhysicalCardContract ================== */
|
|
4
|
+
export interface ModelResults {
|
|
5
|
+
model_name: string;
|
|
6
|
+
model_version: string;
|
|
7
|
+
code: string;
|
|
8
|
+
text: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CIPFull {
|
|
11
|
+
status: string;
|
|
12
|
+
model_results: ModelResults[];
|
|
13
|
+
date_time: string;
|
|
14
|
+
first_name: string;
|
|
15
|
+
middle_name: string;
|
|
16
|
+
last_name: string;
|
|
17
|
+
address_1: string;
|
|
18
|
+
address_2: string;
|
|
19
|
+
city: string;
|
|
20
|
+
state: string;
|
|
21
|
+
primary_phone: string;
|
|
22
|
+
other_phone: string;
|
|
23
|
+
entity_id: string;
|
|
24
|
+
customer_id: string;
|
|
25
|
+
}
|
|
26
|
+
/** ================== CreateVirtualCardContract ================== */
|
|
27
|
+
export interface CIP {
|
|
28
|
+
status: string;
|
|
29
|
+
model_results: ModelResults[];
|
|
30
|
+
date_time: string;
|
|
31
|
+
first_name: string;
|
|
32
|
+
middle_name: string;
|
|
33
|
+
last_name: string;
|
|
34
|
+
address_1: string;
|
|
35
|
+
address_2: string;
|
|
36
|
+
city: string;
|
|
37
|
+
state: string;
|
|
38
|
+
primary_phone: string;
|
|
39
|
+
other_phone: string;
|
|
40
|
+
}
|
|
41
|
+
/** ================== UpdateContract ================== */
|
|
42
|
+
export interface Address {
|
|
43
|
+
address_1: string;
|
|
44
|
+
address_2: string;
|
|
45
|
+
city: string;
|
|
46
|
+
state: string;
|
|
47
|
+
zip: string;
|
|
48
|
+
country_code: string;
|
|
49
|
+
}
|
|
50
|
+
export interface CustomerProfile {
|
|
51
|
+
first_name: string;
|
|
52
|
+
middle_name: string;
|
|
53
|
+
last_name: string;
|
|
54
|
+
preferred_name: string;
|
|
55
|
+
preferred_name_only_on_card: string;
|
|
56
|
+
address_1: string;
|
|
57
|
+
address_2: string;
|
|
58
|
+
city: string;
|
|
59
|
+
state: string;
|
|
60
|
+
zip: string;
|
|
61
|
+
country_code: string;
|
|
62
|
+
mobile_phone: string;
|
|
63
|
+
email: string;
|
|
64
|
+
ship_address: Address | undefined;
|
|
65
|
+
express_mail: string;
|
|
66
|
+
related_accounts: number;
|
|
67
|
+
occupation: string;
|
|
68
|
+
income_source: string;
|
|
69
|
+
embossed_line_2: string;
|
|
70
|
+
}
|
|
71
|
+
/** ================== GetContractById ================== */
|
|
72
|
+
export interface Card {
|
|
73
|
+
card_id: string;
|
|
74
|
+
card_status: string;
|
|
75
|
+
}
|
|
76
|
+
export interface Contract {
|
|
77
|
+
prn: string;
|
|
78
|
+
prod_id: string;
|
|
79
|
+
app_date: string;
|
|
80
|
+
status: string;
|
|
81
|
+
active_flag: string;
|
|
82
|
+
balance: number;
|
|
83
|
+
contract_number: string;
|
|
84
|
+
cards: Card[];
|
|
85
|
+
}
|
|
86
|
+
/** ================== GetRelatedContracts ================== */
|
|
87
|
+
export interface RelatedData {
|
|
88
|
+
prn: string;
|
|
89
|
+
product_id: string;
|
|
90
|
+
contract_number: string;
|
|
91
|
+
status: string;
|
|
92
|
+
active: string;
|
|
93
|
+
}
|
|
94
|
+
/** ================== VerifyContract ================== */
|
|
95
|
+
export interface ContractVerify {
|
|
96
|
+
max_load_amount: string;
|
|
97
|
+
balance: number;
|
|
98
|
+
external_account_id: string;
|
|
99
|
+
pmt_ref_number: string;
|
|
100
|
+
account_status: string;
|
|
101
|
+
contract_number: string;
|
|
102
|
+
product_id: string;
|
|
103
|
+
}
|
|
104
|
+
/** ================== SearchContracts ================== */
|
|
105
|
+
export interface ContractSearch {
|
|
106
|
+
pmt_ref_number: string;
|
|
107
|
+
first_name: string;
|
|
108
|
+
middle_name: string;
|
|
109
|
+
last_name: string;
|
|
110
|
+
email: string;
|
|
111
|
+
status: string;
|
|
112
|
+
active: string;
|
|
113
|
+
contract_number: string;
|
|
114
|
+
product_id: string;
|
|
115
|
+
group_id: string;
|
|
116
|
+
application_date: string;
|
|
117
|
+
}
|
|
118
|
+
/** ================== GetContractData ================== */
|
|
119
|
+
export interface ContractOverview {
|
|
120
|
+
pmt_ref_no: string;
|
|
121
|
+
status: string;
|
|
122
|
+
first_fund_date: string;
|
|
123
|
+
application_date: string;
|
|
124
|
+
balance: number;
|
|
125
|
+
currency_code: string;
|
|
126
|
+
start_date: string;
|
|
127
|
+
end_date: string;
|
|
128
|
+
transaction_count: number;
|
|
129
|
+
authorization_count: number;
|
|
130
|
+
kyc_ref_no: string;
|
|
131
|
+
curp: string;
|
|
132
|
+
political_affiliation: string;
|
|
133
|
+
place_of_birth: string;
|
|
134
|
+
nationality: string;
|
|
135
|
+
}
|
|
136
|
+
export interface Profile {
|
|
137
|
+
id: string;
|
|
138
|
+
id2?: string | undefined;
|
|
139
|
+
id3?: string | undefined;
|
|
140
|
+
id_type: number;
|
|
141
|
+
id2_type?: number | undefined;
|
|
142
|
+
id3_type?: number | undefined;
|
|
143
|
+
first_name: string;
|
|
144
|
+
middle_name?: string | undefined;
|
|
145
|
+
last_name: string;
|
|
146
|
+
address_1?: string | undefined;
|
|
147
|
+
address_2?: string | undefined;
|
|
148
|
+
business_name?: string | undefined;
|
|
149
|
+
city?: string | undefined;
|
|
150
|
+
state: string;
|
|
151
|
+
postal_code: string;
|
|
152
|
+
country_code?: string | undefined;
|
|
153
|
+
home_phone?: string | undefined;
|
|
154
|
+
mobile_phone?: string | undefined;
|
|
155
|
+
mobile_phone_country_code?: string | undefined;
|
|
156
|
+
carrier_id?: number | undefined;
|
|
157
|
+
email?: string | undefined;
|
|
158
|
+
dob?: string | undefined;
|
|
159
|
+
ship_to_address: Address | undefined;
|
|
160
|
+
express_mail?: string | undefined;
|
|
161
|
+
occupation?: string | undefined;
|
|
162
|
+
income_source?: string | undefined;
|
|
163
|
+
monthly_income?: string | undefined;
|
|
164
|
+
preferred_lang?: string | undefined;
|
|
165
|
+
preferred_name: string;
|
|
166
|
+
}
|
|
167
|
+
/** ================== GetTransactions ================== */
|
|
168
|
+
export interface Transaction {
|
|
169
|
+
pmt_ref_no: string;
|
|
170
|
+
act_id?: string | undefined;
|
|
171
|
+
act_type?: string | undefined;
|
|
172
|
+
mcc: string;
|
|
173
|
+
post_ts?: string | undefined;
|
|
174
|
+
amt: string;
|
|
175
|
+
details: string;
|
|
176
|
+
description?: string | undefined;
|
|
177
|
+
source_id: string;
|
|
178
|
+
bal_id: string;
|
|
179
|
+
prod_id: string;
|
|
180
|
+
auth_ts: string;
|
|
181
|
+
trans_code: string;
|
|
182
|
+
ach_transaction_id?: string | undefined;
|
|
183
|
+
external_trans_id?: string | undefined;
|
|
184
|
+
original_auth_id?: string | undefined;
|
|
185
|
+
network_id?: string | undefined;
|
|
186
|
+
local_amt?: string | undefined;
|
|
187
|
+
local_curr_code?: string | undefined;
|
|
188
|
+
settle_amt?: string | undefined;
|
|
189
|
+
settle_curr_code?: string | undefined;
|
|
190
|
+
billing_amt?: string | undefined;
|
|
191
|
+
billing_curr_code?: string | undefined;
|
|
192
|
+
credit_ind?: string | undefined;
|
|
193
|
+
iac_tax?: number | undefined;
|
|
194
|
+
iva_tax?: number | undefined;
|
|
195
|
+
funding_account_prn?: string | undefined;
|
|
196
|
+
spending_account_prn?: string | undefined;
|
|
197
|
+
}
|
|
198
|
+
/** ================== GetAuthorizations ================== */
|
|
199
|
+
export interface Authorization {
|
|
200
|
+
auth_id: string;
|
|
201
|
+
details: string;
|
|
202
|
+
details_formatted: string;
|
|
203
|
+
amount: string;
|
|
204
|
+
timestamp?: string | undefined;
|
|
205
|
+
type: string;
|
|
206
|
+
mcc: string;
|
|
207
|
+
merchant_id: string;
|
|
208
|
+
acq_id: string;
|
|
209
|
+
terminal_id: string;
|
|
210
|
+
can_be_expired: string;
|
|
211
|
+
original_auth_id?: string | undefined;
|
|
212
|
+
network_code?: string | undefined;
|
|
213
|
+
local_amt?: string | undefined;
|
|
214
|
+
local_curr_code?: string | undefined;
|
|
215
|
+
settle_amt?: string | undefined;
|
|
216
|
+
settle_curr_code?: string | undefined;
|
|
217
|
+
billing_amt?: string | undefined;
|
|
218
|
+
billing_curr_code?: string | undefined;
|
|
219
|
+
iac_tax?: number | undefined;
|
|
220
|
+
iva_tax?: number | undefined;
|
|
221
|
+
latest_incremental_id?: string | undefined;
|
|
222
|
+
original_incremental_id?: string | undefined;
|
|
223
|
+
}
|
|
224
|
+
/** ================== GetPendingFees ================== */
|
|
225
|
+
export interface FeeRelatedTransaction {
|
|
226
|
+
details?: string | undefined;
|
|
227
|
+
amt: number;
|
|
228
|
+
post_ts: string;
|
|
229
|
+
}
|
|
230
|
+
export interface PendingFee {
|
|
231
|
+
fee_event_id: string;
|
|
232
|
+
type: string;
|
|
233
|
+
type_description: string;
|
|
234
|
+
amt: string;
|
|
235
|
+
fee_date: string;
|
|
236
|
+
card_id?: string | undefined;
|
|
237
|
+
fee_description: string;
|
|
238
|
+
related_transaction?: FeeRelatedTransaction | undefined;
|
|
239
|
+
}
|
|
240
|
+
/** ================== GetSavingsInterest ================== */
|
|
241
|
+
export interface SavingsInterest {
|
|
242
|
+
start_date: string;
|
|
243
|
+
end_date: string;
|
|
244
|
+
accrual_interest: string;
|
|
245
|
+
interest_ytd: string;
|
|
246
|
+
apy: string;
|
|
247
|
+
}
|
|
248
|
+
/** ================== GetHolds ================== */
|
|
249
|
+
export interface Hold {
|
|
250
|
+
hold_id: string;
|
|
251
|
+
create_dt?: string | undefined;
|
|
252
|
+
expiry_dt?: string | undefined;
|
|
253
|
+
source_id?: string | undefined;
|
|
254
|
+
change_ts?: string | undefined;
|
|
255
|
+
hold_type?: string | undefined;
|
|
256
|
+
ext_id?: string | undefined;
|
|
257
|
+
dscr?: string | undefined;
|
|
258
|
+
originating_system_id?: string | undefined;
|
|
259
|
+
agent_id?: string | undefined;
|
|
260
|
+
amount: number;
|
|
261
|
+
xid?: string | undefined;
|
|
262
|
+
expiring_system_id?: string | undefined;
|
|
263
|
+
expiring_agent_id?: string | undefined;
|
|
264
|
+
}
|
|
265
|
+
export declare const ModelResults: MessageFns<ModelResults>;
|
|
266
|
+
export declare const CIPFull: MessageFns<CIPFull>;
|
|
267
|
+
export declare const CIP: MessageFns<CIP>;
|
|
268
|
+
export declare const Address: MessageFns<Address>;
|
|
269
|
+
export declare const CustomerProfile: MessageFns<CustomerProfile>;
|
|
270
|
+
export declare const Card: MessageFns<Card>;
|
|
271
|
+
export declare const Contract: MessageFns<Contract>;
|
|
272
|
+
export declare const RelatedData: MessageFns<RelatedData>;
|
|
273
|
+
export declare const ContractVerify: MessageFns<ContractVerify>;
|
|
274
|
+
export declare const ContractSearch: MessageFns<ContractSearch>;
|
|
275
|
+
export declare const ContractOverview: MessageFns<ContractOverview>;
|
|
276
|
+
export declare const Profile: MessageFns<Profile>;
|
|
277
|
+
export declare const Transaction: MessageFns<Transaction>;
|
|
278
|
+
export declare const Authorization: MessageFns<Authorization>;
|
|
279
|
+
export declare const FeeRelatedTransaction: MessageFns<FeeRelatedTransaction>;
|
|
280
|
+
export declare const PendingFee: MessageFns<PendingFee>;
|
|
281
|
+
export declare const SavingsInterest: MessageFns<SavingsInterest>;
|
|
282
|
+
export declare const Hold: MessageFns<Hold>;
|
|
283
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
284
|
+
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 {} ? {
|
|
285
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
286
|
+
} : Partial<T>;
|
|
287
|
+
export interface MessageFns<T> {
|
|
288
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
289
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
290
|
+
create(base?: DeepPartial<T>): T;
|
|
291
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
292
|
+
}
|
|
293
|
+
export {};
|