@alexochihua/protos 1.0.41 → 1.0.42

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.
@@ -1,69 +1,69 @@
1
- syntax = "proto3";
2
-
3
- package kapital.commissions.v1;
4
-
5
- option go_package = "kapital/commissions/v1;commissionsv1";
6
-
7
- import "kapital/common/v1/meta.proto";
8
- import "kapital/common/v1/pagination.proto";
9
- import "kapital/commissions/v1/commissions_types.proto";
10
-
11
- service CommissionsService {
12
- rpc GetCommissions(GetCommissionsRequest) returns (GetCommissionsResponse);
13
- rpc GetCommissionById(GetCommissionByIdRequest) returns (GetCommissionByIdResponse);
14
- rpc CreateCommission(CreateCommissionRequest) returns (CreateCommissionResponse);
15
- rpc UpdateCommission(UpdateCommissionRequest) returns (UpdateCommissionResponse);
16
- }
17
-
18
- // ============================================================================
19
- // Request / Response Messages
20
- // ============================================================================
21
-
22
- message GetCommissionsRequest {
23
- kapital.common.v1.PageRequest page_request = 1;
24
- string q = 2;
25
- string name = 3;
26
- string commission_type = 4;
27
- string currency = 5;
28
- }
29
-
30
- message GetCommissionsResponse {
31
- kapital.common.v1.ResponseMeta meta = 1;
32
- kapital.common.v1.PageResponse page_response = 2;
33
- repeated Commission commissions = 3;
34
- }
35
-
36
- message GetCommissionByIdRequest {
37
- string commission_id = 1;
38
- }
39
-
40
- message GetCommissionByIdResponse {
41
- kapital.common.v1.ResponseMeta meta = 1;
42
- Commission commission = 2;
43
- }
44
-
45
- message CreateCommissionRequest {
46
- string name = 1;
47
- string commission_type = 2;
48
- string currency = 3;
49
- string created_by = 4;
50
- }
51
-
52
- message CreateCommissionResponse {
53
- kapital.common.v1.ResponseMeta meta = 1;
54
- Commission commission = 2;
55
- }
56
-
57
- message UpdateCommissionRequest {
58
- string commission_id = 1;
59
- string name = 2;
60
- string commission_type = 3;
61
- string currency = 4;
62
- bool deleted = 5;
63
- string updated_by = 6;
64
- }
65
-
66
- message UpdateCommissionResponse {
67
- kapital.common.v1.ResponseMeta meta = 1;
68
- Commission commission = 2;
69
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.commissions.v1;
4
+
5
+ option go_package = "kapital/commissions/v1;commissionsv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+ import "kapital/common/v1/pagination.proto";
9
+ import "kapital/commissions/v1/commissions_types.proto";
10
+
11
+ service CommissionsService {
12
+ rpc GetCommissions(GetCommissionsRequest) returns (GetCommissionsResponse);
13
+ rpc GetCommissionById(GetCommissionByIdRequest) returns (GetCommissionByIdResponse);
14
+ rpc CreateCommission(CreateCommissionRequest) returns (CreateCommissionResponse);
15
+ rpc UpdateCommission(UpdateCommissionRequest) returns (UpdateCommissionResponse);
16
+ }
17
+
18
+ // ============================================================================
19
+ // Request / Response Messages
20
+ // ============================================================================
21
+
22
+ message GetCommissionsRequest {
23
+ kapital.common.v1.PageRequest page_request = 1;
24
+ string q = 2;
25
+ string name = 3;
26
+ string commission_type = 4;
27
+ string currency = 5;
28
+ }
29
+
30
+ message GetCommissionsResponse {
31
+ kapital.common.v1.ResponseMeta meta = 1;
32
+ kapital.common.v1.PageResponse page_response = 2;
33
+ repeated Commission commissions = 3;
34
+ }
35
+
36
+ message GetCommissionByIdRequest {
37
+ string commission_id = 1;
38
+ }
39
+
40
+ message GetCommissionByIdResponse {
41
+ kapital.common.v1.ResponseMeta meta = 1;
42
+ Commission commission = 2;
43
+ }
44
+
45
+ message CreateCommissionRequest {
46
+ string name = 1;
47
+ string commission_type = 2;
48
+ string currency = 3;
49
+ string created_by = 4;
50
+ }
51
+
52
+ message CreateCommissionResponse {
53
+ kapital.common.v1.ResponseMeta meta = 1;
54
+ Commission commission = 2;
55
+ }
56
+
57
+ message UpdateCommissionRequest {
58
+ string commission_id = 1;
59
+ string name = 2;
60
+ string commission_type = 3;
61
+ string currency = 4;
62
+ bool deleted = 5;
63
+ string updated_by = 6;
64
+ }
65
+
66
+ message UpdateCommissionResponse {
67
+ kapital.common.v1.ResponseMeta meta = 1;
68
+ Commission commission = 2;
69
+ }
@@ -1,21 +1,21 @@
1
- syntax = "proto3";
2
-
3
- package kapital.commissions.v1;
4
-
5
- option go_package = "kapital/commissions/v1;commissionsv1";
6
-
7
- // ============================================================================
8
- // Commission Entity
9
- // ============================================================================
10
-
11
- message Commission {
12
- string id = 1;
13
- string name = 2;
14
- string commission_type = 3;
15
- string currency = 4;
16
- bool deleted = 5;
17
- string created_by = 6;
18
- string updated_by = 7;
19
- string created_at = 8;
20
- string updated_at = 9;
21
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.commissions.v1;
4
+
5
+ option go_package = "kapital/commissions/v1;commissionsv1";
6
+
7
+ // ============================================================================
8
+ // Commission Entity
9
+ // ============================================================================
10
+
11
+ message Commission {
12
+ string id = 1;
13
+ string name = 2;
14
+ string commission_type = 3;
15
+ string currency = 4;
16
+ bool deleted = 5;
17
+ string created_by = 6;
18
+ string updated_by = 7;
19
+ string created_at = 8;
20
+ string updated_at = 9;
21
+ }
@@ -1,18 +1,18 @@
1
- syntax = "proto3";
2
-
3
- package kapital.common.v1;
4
-
5
- option go_package = "kapital/common/v1;commonv1";
6
-
7
- import "kapital/common/v1/meta.proto";
8
-
9
- message FieldViolation {
10
- string field = 1;
11
- string description = 2;
12
- }
13
-
14
- message ErrorDetail {
15
- ResponseMeta meta = 1;
16
- repeated FieldViolation field_violations = 2;
17
- }
18
-
1
+ syntax = "proto3";
2
+
3
+ package kapital.common.v1;
4
+
5
+ option go_package = "kapital/common/v1;commonv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+
9
+ message FieldViolation {
10
+ string field = 1;
11
+ string description = 2;
12
+ }
13
+
14
+ message ErrorDetail {
15
+ ResponseMeta meta = 1;
16
+ repeated FieldViolation field_violations = 2;
17
+ }
18
+
@@ -1,13 +1,13 @@
1
- syntax = "proto3";
2
-
3
- package kapital.common.v1;
4
-
5
- option go_package = "kapital/common/v1;commonv1";
6
-
7
- message ResponseMeta {
8
- string request_id = 1;
9
- string code = 2;
10
- string title = 3;
11
- string description = 4;
12
- }
13
-
1
+ syntax = "proto3";
2
+
3
+ package kapital.common.v1;
4
+
5
+ option go_package = "kapital/common/v1;commonv1";
6
+
7
+ message ResponseMeta {
8
+ string request_id = 1;
9
+ string code = 2;
10
+ string title = 3;
11
+ string description = 4;
12
+ }
13
+
@@ -1,18 +1,18 @@
1
- syntax = "proto3";
2
-
3
- package kapital.common.v1;
4
-
5
- option go_package = "kapital/common/v1;commonv1";
6
-
7
- message PageRequest {
8
- int32 page = 1;
9
- int32 rows_per_page = 2;
10
- string sort_by = 3;
11
- bool descending = 4;
12
- }
13
-
14
- message PageResponse {
15
- int32 total = 1;
16
- int32 page = 2;
17
- int32 rows_per_page = 3;
18
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.common.v1;
4
+
5
+ option go_package = "kapital/common/v1;commonv1";
6
+
7
+ message PageRequest {
8
+ int32 page = 1;
9
+ int32 rows_per_page = 2;
10
+ string sort_by = 3;
11
+ bool descending = 4;
12
+ }
13
+
14
+ message PageResponse {
15
+ int32 total = 1;
16
+ int32 page = 2;
17
+ int32 rows_per_page = 3;
18
+ }
@@ -183,8 +183,8 @@ message CreatePhysicalCardContractResponse {
183
183
 
184
184
  repeated CIPFull cip = 5;
185
185
 
186
- string card_number_virtual = 6;
187
- string card_number_physical = 7;
186
+ optional CardInfo card_virtual = 6;
187
+ optional CardInfo card_physical = 7;
188
188
  string new_emboss_uuid = 8;
189
189
 
190
190
  string expiry_date = 9;
@@ -1,111 +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
- }
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
+ }
@@ -1,54 +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
- }
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
+ }
@@ -1,18 +1,18 @@
1
- syntax = "proto3";
2
-
3
- package kapital.payments.v1;
4
-
5
- option go_package = "kapital/payments/v1;paymentsv1";
6
-
7
- message Payment {
8
- string pmt_id = 1;
9
- string details = 2;
10
- string amount = 3;
11
- string timestamp = 4;
12
- string source_id = 5;
13
- string ach_transaction_id = 6;
14
- string external_trans_id = 7;
15
- string hold_days = 8;
16
- string status = 9;
17
- string status_description = 10;
1
+ syntax = "proto3";
2
+
3
+ package kapital.payments.v1;
4
+
5
+ option go_package = "kapital/payments/v1;paymentsv1";
6
+
7
+ message Payment {
8
+ string pmt_id = 1;
9
+ string details = 2;
10
+ string amount = 3;
11
+ string timestamp = 4;
12
+ string source_id = 5;
13
+ string ach_transaction_id = 6;
14
+ string external_trans_id = 7;
15
+ string hold_days = 8;
16
+ string status = 9;
17
+ string status_description = 10;
18
18
  }