@alexochihua/protos 1.0.26 → 1.0.27
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/package.json
CHANGED
|
@@ -11,7 +11,7 @@ service ContractsService {
|
|
|
11
11
|
rpc CreateContract (CreateContractRequest) returns (CreateContractResponse);
|
|
12
12
|
rpc CreatePhysicalCardContract (CreatePhysicalCardContractRequest) returns (CreatePhysicalCardContractResponse);
|
|
13
13
|
rpc CreateVirtualCardContract (CreateVirtualCardContractRequest) returns (CreateVirtualCardContractResponse);
|
|
14
|
-
rpc
|
|
14
|
+
rpc CheckContract (CheckContractRequest) returns (CheckContractResponse);
|
|
15
15
|
rpc AddBalance (AddBalanceRequest) returns (AddBalanceResponse);
|
|
16
16
|
rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse);
|
|
17
17
|
rpc GetCustomerIdByContractId (GetCustomerIdByContractIdRequest) returns (GetCustomerIdByContractIdResponse);
|
|
@@ -281,27 +281,35 @@ message CreateVirtualCardContractResponse {
|
|
|
281
281
|
int32 billing_cycle_day = 10;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
// ==================
|
|
285
|
-
message
|
|
284
|
+
// ================== CheckContract ==================
|
|
285
|
+
message CheckContractRequest {
|
|
286
286
|
string contract_id = 1;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
message
|
|
289
|
+
message CheckContractResponse {
|
|
290
290
|
kapital.common.v1.ResponseMeta meta = 1;
|
|
291
291
|
string contract_id = 2;
|
|
292
292
|
bool exists = 3;
|
|
293
|
+
optional string customer_id = 4;
|
|
294
|
+
optional string contract_number = 5;
|
|
295
|
+
optional string clabe = 6;
|
|
296
|
+
optional string product_key = 7;
|
|
297
|
+
optional string product_type = 8;
|
|
298
|
+
repeated string currencies = 9;
|
|
293
299
|
}
|
|
294
300
|
|
|
295
301
|
// ================== AddBalance ==================
|
|
296
302
|
message AddBalanceRequest {
|
|
297
303
|
string contract_id = 1;
|
|
298
304
|
double amount = 2;
|
|
305
|
+
string currency = 3;
|
|
299
306
|
}
|
|
300
307
|
|
|
301
308
|
message AddBalanceResponse {
|
|
302
309
|
kapital.common.v1.ResponseMeta meta = 1;
|
|
303
310
|
string contract_id = 2;
|
|
304
311
|
double balance = 3;
|
|
312
|
+
string currency = 4;
|
|
305
313
|
}
|
|
306
314
|
|
|
307
315
|
// ================== GetBalance ==================
|