@alexochihua/protos 1.0.29 → 1.0.32

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexochihua/protos",
3
- "version": "1.0.29",
3
+ "version": "1.0.32",
4
4
  "private": false,
5
5
  "description": "Shared gRPC contracts and generated clients for Kapital services.",
6
6
  "license": "UNLICENSED",
@@ -58,43 +58,40 @@ message CreateContractRequest {
58
58
  string curp = 18;
59
59
  string rfc = 19;
60
60
 
61
- optional string external_customer_id = 20;
61
+ string product_key = 20;
62
+ string product_type = 21;
63
+ string load_amount = 22;
64
+ optional string load_amount_physical = 23;
62
65
 
63
- string product_key = 21;
64
- string product_type = 22;
65
- string load_amount = 23;
66
- optional string load_amount_physical = 24;
66
+ optional string load_type = 24;
67
+ optional string funding_account_number = 25;
68
+ optional int32 shared_balance = 26;
67
69
 
68
- optional string load_type = 25;
69
- optional string primary_account = 26;
70
- optional string funding_account_number = 27;
71
- optional int32 shared_balance = 28;
70
+ optional string authorized_user = 27;
71
+ optional string user_data = 28;
72
+ optional string offline = 29;
72
73
 
73
- optional string authorized_user = 29;
74
- optional string user_data = 30;
75
- optional string offline = 31;
74
+ optional int32 verify_only = 30;
75
+ optional string cip_status = 31;
76
76
 
77
- optional int32 verify_only = 32;
78
- optional string cip_status = 33;
77
+ optional string emboss_line_2 = 32;
79
78
 
80
- optional string emboss_line_2 = 34;
79
+ optional double provider_assessed_fee = 33;
81
80
 
82
- optional double provider_assessed_fee = 35;
81
+ optional string load_from_account = 34;
82
+ optional string sweep_date = 35;
83
83
 
84
- optional string load_from_account = 36;
85
- optional string sweep_date = 37;
84
+ optional string express_mail = 36;
86
85
 
87
- optional string express_mail = 38;
86
+ optional string ship_adress_permanent = 37;
87
+ optional string ship_adress_1 = 38;
88
+ optional string ship_adress_2 = 39;
89
+ optional string shitp_city = 40;
90
+ optional string ship_state = 41;
91
+ optional string ship_zip = 42;
92
+ optional string ship_country_code = 43;
88
93
 
89
- optional string ship_adress_permanent = 39;
90
- optional string ship_adress_1 = 40;
91
- optional string ship_adress_2 = 41;
92
- optional string shitp_city = 42;
93
- optional string ship_state = 43;
94
- optional string ship_zip = 44;
95
- optional string ship_country_code = 45;
96
-
97
- optional string business_name = 46;
94
+ optional string business_name = 44;
98
95
  }
99
96
 
100
97
  message CreateContractResponse {
@@ -142,43 +139,40 @@ message CreatePhysicalCardContractRequest {
142
139
  string curp = 18;
143
140
  string rfc = 19;
144
141
 
145
- optional string external_customer_id = 20;
146
-
147
- string product_key = 21;
148
- string product_type = 22;
149
- string load_amount = 23;
150
- optional string load_amount_physical = 24;
142
+ string product_key = 20;
143
+ string product_type = 21;
144
+ string load_amount = 22;
145
+ optional string load_amount_physical = 23;
151
146
 
152
- optional string load_type = 25;
153
- optional string primary_account = 26;
154
- optional string funding_account_number = 27;
155
- optional int32 shared_balance = 28;
147
+ optional string load_type = 24;
148
+ optional string funding_account_number = 25;
149
+ optional int32 shared_balance = 26;
156
150
 
157
- optional string authorized_user = 29;
158
- optional string user_data = 30;
159
- optional string offline = 31;
151
+ optional string authorized_user = 27;
152
+ optional string user_data = 28;
153
+ optional string offline = 29;
160
154
 
161
- optional int32 verify_only = 32;
162
- optional string cip_status = 33;
155
+ optional int32 verify_only = 30;
156
+ optional string cip_status = 31;
163
157
 
164
- optional string emboss_line_2 = 34;
158
+ optional string emboss_line_2 = 32;
165
159
 
166
- optional double provider_assessed_fee = 35;
160
+ optional double provider_assessed_fee = 33;
167
161
 
168
- optional string load_from_account = 36;
169
- optional string sweep_date = 37;
162
+ optional string load_from_account = 34;
163
+ optional string sweep_date = 35;
170
164
 
171
- optional string express_mail = 38;
165
+ optional string express_mail = 36;
172
166
 
173
- optional string ship_adress_permanent = 39;
174
- optional string ship_adress_1 = 40;
175
- optional string ship_adress_2 = 41;
176
- optional string shitp_city = 42;
177
- optional string ship_state = 43;
178
- optional string ship_zip = 44;
179
- optional string ship_country_code = 45;
167
+ optional string ship_adress_permanent = 37;
168
+ optional string ship_adress_1 = 38;
169
+ optional string ship_adress_2 = 39;
170
+ optional string shitp_city = 40;
171
+ optional string ship_state = 41;
172
+ optional string ship_zip = 42;
173
+ optional string ship_country_code = 43;
180
174
 
181
- optional string business_name = 46;
175
+ optional string business_name = 44;
182
176
  }
183
177
 
184
178
  message CreatePhysicalCardContractResponse {
@@ -72,6 +72,8 @@ message GetContractsByCustomerRequest {
72
72
  string product_type = 8;
73
73
  string card_number = 9;
74
74
  string clabe = 10;
75
+ string contract_number = 11;
76
+ string delinquency = 12;
75
77
  }
76
78
 
77
79
  message GetContractsByCustomerResponse {
@@ -27,30 +27,40 @@ message Customer {
27
27
  int32 active_cards_count = 20;
28
28
  }
29
29
 
30
+ message ContractBalance {
31
+ string currency = 1;
32
+ double available_balance = 2;
33
+ double total_balance = 3;
34
+ }
35
+
30
36
  message Contract {
37
+ // Obligatorios: Crédito, Débito, Prepago
31
38
  string id_short = 1;
32
39
  string id_long = 2;
33
40
  string contract_number = 3;
34
41
  string clabe = 4;
35
- string product = 5;
36
- string product_type = 6;
37
- int32 number_cards = 7;
42
+ int32 cutoff_day = 5;
43
+ int32 number_cards = 6;
44
+ string primary_card = 7;
38
45
  double rate = 8;
39
- string status = 9;
40
- string delinquency = 10;
41
- int32 delinquency_days = 11;
42
- int32 cutoff_day = 12;
43
- string payment_due_date = 13;
44
- double available_limit = 14;
45
- double available_balance = 15;
46
- double total_balance = 16;
47
- double cutoff_debt_balance = 17;
48
- double current_debt_balance = 18;
49
- int32 transactions_per_period = 19;
50
- string rfc = 20;
51
- string business_name = 21;
52
- string customer_name = 22;
53
- string primary_card = 23;
46
+ string product = 9;
47
+ string product_type = 10;
48
+ string status = 11;
49
+
50
+ // Opcionales por tipo de producto
51
+ optional string rfc = 12;
52
+ optional string business_name = 13;
53
+ optional double available_limit = 14;
54
+ optional string delinquency = 15;
55
+ optional int32 delinquency_days = 16;
56
+ optional string payment_due_date = 17;
57
+ optional double cutoff_debt_balance = 18;
58
+ optional double current_debt_balance = 19;
59
+ optional double available_balance = 20;
60
+ optional double total_balance = 21;
61
+ optional string product_type_value = 22;
62
+ optional int32 transactions_per_period = 23;
63
+ repeated ContractBalance balances = 24;
54
64
  }
55
65
 
56
66
  message Transaction {
@@ -72,6 +72,30 @@ message GetCardInventoryRequest {
72
72
  string card_type = 5;
73
73
  string branch_id = 6;
74
74
  string bin = 7;
75
+ string card_number = 8;
76
+ string product = 9;
77
+ string client_name = 10;
78
+ string customer_name = 11;
79
+ string creation_shipping_address = 12;
80
+ string status_thales = 13;
81
+ string manufacturer_status = 14;
82
+ string branch = 15;
83
+ string id = 16;
84
+ string id_long = 17;
85
+ string batch_id = 18;
86
+ string created_at_from = 19;
87
+ string created_at_to = 20;
88
+ string creation_date_from = 21;
89
+ string creation_date_to = 22;
90
+ string start_date = 23;
91
+ string end_date = 24;
92
+ string creation_date = 25;
93
+ string expiration_date_from = 26;
94
+ string expiration_date_to = 27;
95
+ string expiration_date = 28;
96
+ string updated_at_from = 29;
97
+ string updated_at_to = 30;
98
+ string status_value = 31;
75
99
  }
76
100
 
77
101
  message GetCardInventoryResponse {
@@ -148,6 +172,19 @@ message GetManufacturingBatchesRequest {
148
172
  string client = 9;
149
173
  string generation_date = 10;
150
174
  string id_batch = 11;
175
+ string generation_date_from = 12;
176
+ string generation_date_to = 13;
177
+ string initial_bin = 14;
178
+ string final_bin = 15;
179
+ string created_from = 16;
180
+ string created_to = 17;
181
+ int32 quantity = 18;
182
+ string batch_status = 19;
183
+ string status_value = 20;
184
+ string status_label = 21;
185
+ string id = 22;
186
+ string priority_label = 23;
187
+ string priority_value = 24;
151
188
  }
152
189
 
153
190
  message GetManufacturingBatchesResponse {