@alexochihua/protos 1.0.0 → 1.0.1

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.
Files changed (69) hide show
  1. package/README.md +2 -2
  2. package/dist/generated/kapital/cards/v1/cards.d.ts +2 -436
  3. package/dist/generated/kapital/cards/v1/cards.js +36 -2795
  4. package/dist/generated/kapital/cards/v1/cards.js.map +1 -1
  5. package/dist/generated/kapital/cards/v1/cards_types.d.ts +25 -109
  6. package/dist/generated/kapital/cards/v1/cards_types.js +150 -1075
  7. package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -1
  8. package/dist/generated/kapital/collections_recovery/v1/collections_recovery.d.ts +153 -0
  9. package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js +711 -0
  10. package/dist/generated/kapital/collections_recovery/v1/collections_recovery.js.map +1 -0
  11. package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.d.ts +54 -0
  12. package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js +494 -0
  13. package/dist/generated/kapital/collections_recovery/v1/collections_recovery_types.js.map +1 -0
  14. package/dist/generated/kapital/commissions/v1/commissions.d.ts +130 -0
  15. package/dist/generated/kapital/commissions/v1/commissions.js +588 -0
  16. package/dist/generated/kapital/commissions/v1/commissions.js.map +1 -0
  17. package/dist/generated/kapital/commissions/v1/commissions_types.d.ts +25 -0
  18. package/dist/generated/kapital/commissions/v1/commissions_types.js +151 -0
  19. package/dist/generated/kapital/commissions/v1/commissions_types.js.map +1 -0
  20. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +105 -1
  21. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +603 -1
  22. package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -1
  23. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +11 -0
  24. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +128 -1
  25. package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -1
  26. package/dist/generated/kapital/credit_configurations/v1/credit_configurations.d.ts +119 -0
  27. package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js +471 -0
  28. package/dist/generated/kapital/credit_configurations/v1/credit_configurations.js.map +1 -0
  29. package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.d.ts +22 -0
  30. package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js +108 -0
  31. package/dist/generated/kapital/credit_configurations/v1/credit_configurations_types.js.map +1 -0
  32. package/dist/generated/kapital/offers/v1/offers.d.ts +172 -0
  33. package/dist/generated/kapital/offers/v1/offers.js +1097 -0
  34. package/dist/generated/kapital/offers/v1/offers.js.map +1 -0
  35. package/dist/generated/kapital/offers/v1/offers_types.d.ts +58 -0
  36. package/dist/generated/kapital/offers/v1/offers_types.js +542 -0
  37. package/dist/generated/kapital/offers/v1/offers_types.js.map +1 -0
  38. package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +994 -0
  39. package/dist/generated/kapital/payments_methods/v1/payments_methods.js +5049 -0
  40. package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -0
  41. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +165 -0
  42. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +1751 -0
  43. package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -0
  44. package/dist/generated/kapital/product_groups/v1/product_groups.d.ts +283 -0
  45. package/dist/generated/kapital/product_groups/v1/product_groups.js +1444 -0
  46. package/dist/generated/kapital/product_groups/v1/product_groups.js.map +1 -0
  47. package/dist/generated/kapital/product_groups/v1/product_groups_types.d.ts +52 -0
  48. package/dist/generated/kapital/product_groups/v1/product_groups_types.js +460 -0
  49. package/dist/generated/kapital/product_groups/v1/product_groups_types.js.map +1 -0
  50. package/dist/index.d.ts +25 -13
  51. package/dist/index.js +26 -14
  52. package/dist/index.js.map +1 -1
  53. package/package.json +277 -193
  54. package/proto/kapital/cards/v1/cards.proto +3 -269
  55. package/proto/kapital/cards/v1/cards_types.proto +26 -110
  56. package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -0
  57. package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -0
  58. package/proto/kapital/commissions/v1/commissions.proto +69 -0
  59. package/proto/kapital/commissions/v1/commissions_types.proto +21 -0
  60. package/proto/kapital/credit_accounts/v1/credit_accounts.proto +56 -0
  61. package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +11 -0
  62. package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -0
  63. package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -0
  64. package/proto/kapital/offers/v1/offers.proto +111 -0
  65. package/proto/kapital/offers/v1/offers_types.proto +54 -0
  66. package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -0
  67. package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -0
  68. package/proto/kapital/product_groups/v1/product_groups.proto +150 -0
  69. package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -0
@@ -10,6 +10,10 @@ import "kapital/credit_accounts/v1/credit_accounts_types.proto";
10
10
 
11
11
  service CreditAccountsService {
12
12
  rpc GetAccounts(GetAccountsRequest) returns (GetAccountsResponse);
13
+ rpc GetAccountDetail(GetAccountDetailRequest) returns (GetAccountDetailResponse);
14
+ rpc GetAccountProductById(GetAccountProductByIdRequest) returns (GetAccountProductByIdResponse);
15
+ rpc CreateAccountProduct(CreateAccountProductRequest) returns (CreateAccountProductResponse);
16
+ rpc UpdateAccountProduct(UpdateAccountProductRequest) returns (UpdateAccountProductResponse);
13
17
  }
14
18
 
15
19
  message GetAccountsRequest {
@@ -26,3 +30,55 @@ message GetAccountsResponse {
26
30
  kapital.common.v1.PageResponse page_response = 2;
27
31
  repeated Account accounts = 3;
28
32
  }
33
+
34
+ message GetAccountDetailRequest {
35
+ string account_id = 1;
36
+ kapital.common.v1.PageRequest page_request = 2;
37
+ string status = 3;
38
+ string date = 4;
39
+ string movement_type = 5;
40
+ string q = 6;
41
+ }
42
+
43
+ message GetAccountDetailResponse {
44
+ kapital.common.v1.ResponseMeta meta = 1;
45
+ kapital.common.v1.PageResponse page_response = 2;
46
+ repeated Movement movements = 3;
47
+ }
48
+
49
+ message GetAccountProductByIdRequest {
50
+ string account_id = 1;
51
+ string product_id = 2;
52
+ }
53
+
54
+ message GetAccountProductByIdResponse {
55
+ kapital.common.v1.ResponseMeta meta = 1;
56
+ AccountProduct product = 2;
57
+ }
58
+
59
+ message CreateAccountProductRequest {
60
+ string account_id = 1;
61
+ string product = 2;
62
+ string rate_selection = 3;
63
+ int32 allowed_cards = 4;
64
+ string credit_amount = 5;
65
+ }
66
+
67
+ message CreateAccountProductResponse {
68
+ kapital.common.v1.ResponseMeta meta = 1;
69
+ AccountProduct product = 2;
70
+ }
71
+
72
+ message UpdateAccountProductRequest {
73
+ string account_id = 1;
74
+ string product_id = 2;
75
+ string product = 3;
76
+ string rate_selection = 4;
77
+ int32 allowed_cards = 5;
78
+ string credit_amount = 6;
79
+ }
80
+
81
+ message UpdateAccountProductResponse {
82
+ kapital.common.v1.ResponseMeta meta = 1;
83
+ AccountProduct product = 2;
84
+ }
@@ -27,3 +27,14 @@ message Account {
27
27
  string rfc = 11;
28
28
  string business_name = 12;
29
29
  }
30
+
31
+ message Movement {
32
+ string id_short = 1;
33
+ string id_long = 2;
34
+ string access_method = 3;
35
+ string concept = 4;
36
+ string movement_type = 5;
37
+ double amount = 6;
38
+ string date = 7;
39
+ string status = 8;
40
+ }
@@ -0,0 +1,54 @@
1
+ syntax = "proto3";
2
+
3
+ package kapital.credit_configurations.v1;
4
+
5
+ option go_package = "kapital/credit_configurations/v1;creditconfigurationsv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+ import "kapital/credit_configurations/v1/credit_configurations_types.proto";
9
+
10
+ service CreditConfigurationsService {
11
+ rpc GetAccountStatementConfiguration(GetAccountStatementConfigurationRequest) returns (GetAccountStatementConfigurationResponse);
12
+ rpc GetAccountStatementById(GetAccountStatementByIdRequest) returns (GetAccountStatementByIdResponse);
13
+ rpc SaveAccountStatementConfiguration(SaveAccountStatementConfigurationRequest) returns (SaveAccountStatementConfigurationResponse);
14
+ rpc DownloadAccountStatementPdf(DownloadAccountStatementPdfRequest) returns (DownloadAccountStatementPdfResponse);
15
+ }
16
+
17
+ message GetAccountStatementConfigurationRequest {
18
+ string statement_section_id = 1;
19
+ }
20
+
21
+ message GetAccountStatementConfigurationResponse {
22
+ kapital.common.v1.ResponseMeta meta = 1;
23
+ repeated AccountStatementConfiguration configurations = 2;
24
+ }
25
+
26
+ message GetAccountStatementByIdRequest {
27
+ string id = 1;
28
+ }
29
+
30
+ message GetAccountStatementByIdResponse {
31
+ kapital.common.v1.ResponseMeta meta = 1;
32
+ AccountStatementConfiguration configuration = 2;
33
+ }
34
+
35
+ message SaveAccountStatementConfigurationRequest {
36
+ string product_id = 1;
37
+ string statement_section_id = 2;
38
+ string description = 3;
39
+ }
40
+
41
+ message SaveAccountStatementConfigurationResponse {
42
+ kapital.common.v1.ResponseMeta meta = 1;
43
+ AccountStatementConfiguration configuration = 2;
44
+ }
45
+
46
+ message DownloadAccountStatementPdfRequest {
47
+ string product_id = 1;
48
+ }
49
+
50
+ message DownloadAccountStatementPdfResponse {
51
+ kapital.common.v1.ResponseMeta meta = 1;
52
+ bytes file = 2;
53
+ string filename = 3;
54
+ }
@@ -0,0 +1,14 @@
1
+ syntax = "proto3";
2
+
3
+ package kapital.credit_configurations.v1;
4
+
5
+ option go_package = "kapital/credit_configurations/v1;creditconfigurationsv1";
6
+
7
+ message AccountStatementConfiguration {
8
+ string id = 1;
9
+ string product_id = 2;
10
+ string statement_section_id = 3;
11
+ string description = 4;
12
+ string created_at = 5;
13
+ string updated_at = 6;
14
+ }
@@ -0,0 +1,111 @@
1
+ syntax = "proto3";
2
+
3
+ package kapital.offers.v1;
4
+
5
+ option go_package = "kapital/offers/v1;offersv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+ import "kapital/common/v1/pagination.proto";
9
+ import "kapital/offers/v1/offers_types.proto";
10
+
11
+ service OffersService {
12
+ rpc GetOffers(GetOffersRequest) returns (GetOffersResponse);
13
+ rpc GetOfferById(GetOfferByIdRequest) returns (GetOfferByIdResponse);
14
+ rpc CreateOffer(CreateOfferRequest) returns (CreateOfferResponse);
15
+ rpc UpdateOffer(UpdateOfferRequest) returns (UpdateOfferResponse);
16
+ }
17
+
18
+ // ============================================================================
19
+ // Request / Response Messages
20
+ // ============================================================================
21
+
22
+ message GetOffersRequest {
23
+ kapital.common.v1.PageRequest page_request = 1;
24
+ string q = 2;
25
+ string name = 3;
26
+ string offer_type = 4;
27
+ string product_id = 5;
28
+ bool active = 6;
29
+ }
30
+
31
+ message GetOffersResponse {
32
+ kapital.common.v1.ResponseMeta meta = 1;
33
+ kapital.common.v1.PageResponse page_response = 2;
34
+ repeated Offer offers = 3;
35
+ }
36
+
37
+ message GetOfferByIdRequest {
38
+ string offer_id = 1;
39
+ }
40
+
41
+ message GetOfferByIdResponse {
42
+ kapital.common.v1.ResponseMeta meta = 1;
43
+ Offer offer = 2;
44
+ }
45
+
46
+ message CreateOfferRequest {
47
+ string product_id = 1;
48
+ string name = 2;
49
+ string description = 3;
50
+ string offer_type = 4;
51
+ string merchant_group_id = 5;
52
+ string start_date = 6;
53
+ string end_date = 7;
54
+ double min_amount = 8;
55
+ double max_amount = 9;
56
+ string credit_type = 10;
57
+ string conditions = 11;
58
+ repeated string condition_types = 12;
59
+ string interest_type = 13;
60
+ double grace_period_value = 14;
61
+ string grace_period_unit = 15;
62
+ double frequency_value = 16;
63
+ string frequency_unit = 17;
64
+ double vat_percentage = 18;
65
+ string value_type = 19;
66
+ double value_percentage = 20;
67
+ double value_amount = 21;
68
+ string value_base = 22;
69
+ repeated OfferRule rules = 23;
70
+ string created_by = 24;
71
+ }
72
+
73
+ message CreateOfferResponse {
74
+ kapital.common.v1.ResponseMeta meta = 1;
75
+ Offer offer = 2;
76
+ }
77
+
78
+ message UpdateOfferRequest {
79
+ string offer_id = 1;
80
+ string product_id = 2;
81
+ string name = 3;
82
+ string description = 4;
83
+ string offer_type = 5;
84
+ string merchant_group_id = 6;
85
+ string start_date = 7;
86
+ string end_date = 8;
87
+ double min_amount = 9;
88
+ double max_amount = 10;
89
+ string credit_type = 11;
90
+ string conditions = 12;
91
+ repeated string condition_types = 13;
92
+ bool active = 14;
93
+ string interest_type = 15;
94
+ double grace_period_value = 16;
95
+ string grace_period_unit = 17;
96
+ double frequency_value = 18;
97
+ string frequency_unit = 19;
98
+ double vat_percentage = 20;
99
+ string value_type = 21;
100
+ double value_percentage = 22;
101
+ double value_amount = 23;
102
+ string value_base = 24;
103
+ repeated OfferRule rules = 25;
104
+ bool deleted = 26;
105
+ string updated_by = 27;
106
+ }
107
+
108
+ message UpdateOfferResponse {
109
+ kapital.common.v1.ResponseMeta meta = 1;
110
+ Offer offer = 2;
111
+ }
@@ -0,0 +1,54 @@
1
+ syntax = "proto3";
2
+
3
+ package kapital.offers.v1;
4
+
5
+ option go_package = "kapital/offers/v1;offersv1";
6
+
7
+ // ============================================================================
8
+ // Offer Entity
9
+ // ============================================================================
10
+
11
+ message OfferRule {
12
+ string parameter = 1;
13
+ string operator = 2;
14
+ repeated string channels = 3;
15
+ repeated string value_mcc_groups = 4;
16
+ repeated string value_days = 5;
17
+ string value_hour_start = 6;
18
+ string value_hour_end = 7;
19
+ string value_country_group = 8;
20
+ double value_transaction_limit = 9;
21
+ }
22
+
23
+ message Offer {
24
+ string id = 1;
25
+ string product_id = 2;
26
+ string name = 3;
27
+ string description = 4;
28
+ string offer_type = 5;
29
+ string merchant_group_id = 6;
30
+ string start_date = 7;
31
+ string end_date = 8;
32
+ double min_amount = 9;
33
+ double max_amount = 10;
34
+ string credit_type = 11;
35
+ string conditions = 12;
36
+ repeated string condition_types = 13;
37
+ bool active = 14;
38
+ string interest_type = 15;
39
+ double grace_period_value = 16;
40
+ string grace_period_unit = 17;
41
+ double frequency_value = 18;
42
+ string frequency_unit = 19;
43
+ double vat_percentage = 20;
44
+ string value_type = 21;
45
+ double value_percentage = 22;
46
+ double value_amount = 23;
47
+ string value_base = 24;
48
+ repeated OfferRule rules = 25;
49
+ bool deleted = 26;
50
+ string created_by = 27;
51
+ string updated_by = 28;
52
+ string created_at = 29;
53
+ string updated_at = 30;
54
+ }