@alexochihua/protos 1.0.4 → 1.0.6
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/dist/generated/kapital/contracts/v1/contracts.d.ts +2 -0
- package/dist/generated/kapital/contracts/v1/contracts.js +210 -186
- package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +365 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js +1804 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.d.ts +89 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js +855 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js.map +1 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups.d.ts +475 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js +2452 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js.map +1 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.d.ts +63 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js +577 -0
- package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js.map +1 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules.d.ts +241 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js +1288 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js.map +1 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.d.ts +56 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js +505 -0
- package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js.map +1 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.d.ts +449 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js +2310 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js.map +1 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.d.ts +63 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js +577 -0
- package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js.map +1 -0
- package/dist/generated/kapital/frauds/v1/frauds.d.ts +164 -0
- package/dist/generated/kapital/frauds/v1/frauds.js +839 -0
- package/dist/generated/kapital/frauds/v1/frauds.js.map +1 -0
- package/dist/generated/kapital/frauds/v1/frauds_types.d.ts +62 -0
- package/dist/generated/kapital/frauds/v1/frauds_types.js +567 -0
- package/dist/generated/kapital/frauds/v1/frauds_types.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +71 -1
- package/proto/kapital/accounts/v1/accounts.proto +80 -80
- package/proto/kapital/accounts/v1/accounts_types.proto +31 -31
- package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -81
- package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -30
- package/proto/kapital/cards/v1/cards.proto +32 -32
- package/proto/kapital/cards/v1/cards_types.proto +33 -33
- package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -80
- package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -46
- package/proto/kapital/commissions/v1/commissions.proto +69 -69
- package/proto/kapital/commissions/v1/commissions_types.proto +21 -21
- package/proto/kapital/common/v1/error.proto +18 -18
- package/proto/kapital/common/v1/meta.proto +13 -13
- package/proto/kapital/common/v1/pagination.proto +18 -18
- package/proto/kapital/contracts/v1/contracts.proto +90 -88
- package/proto/kapital/contracts/v1/contracts_types.proto +315 -315
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +84 -84
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +40 -40
- package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -54
- package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -14
- package/proto/kapital/fraud_catalogs/v1/fraud_catalogs.proto +177 -0
- package/proto/kapital/fraud_catalogs/v1/fraud_catalogs_types.proto +81 -0
- package/proto/kapital/fraud_groups/v1/fraud_groups.proto +242 -0
- package/proto/kapital/fraud_groups/v1/fraud_groups_types.proto +55 -0
- package/proto/kapital/fraud_rules/v1/fraud_rules.proto +127 -0
- package/proto/kapital/fraud_rules/v1/fraud_rules_types.proto +48 -0
- package/proto/kapital/fraud_whitelists/v1/fraud_whitelists.proto +227 -0
- package/proto/kapital/fraud_whitelists/v1/fraud_whitelists_types.proto +55 -0
- package/proto/kapital/frauds/v1/frauds.proto +90 -0
- package/proto/kapital/frauds/v1/frauds_types.proto +54 -0
- package/proto/kapital/offers/v1/offers.proto +111 -111
- package/proto/kapital/offers/v1/offers_types.proto +54 -54
- package/proto/kapital/payments/v1/payments.proto +93 -93
- package/proto/kapital/payments/v1/payments_types.proto +17 -17
- package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -511
- package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -157
- package/proto/kapital/product_groups/v1/product_groups.proto +150 -150
- package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -48
- package/proto/kapital/transactions/v1/transactions.proto +70 -70
- package/proto/kapital/transactions/v1/transactions_types.proto +90 -90
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.fraud_whitelists.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/fraud_whitelists/v1;fraudwhitelistsv1";
|
|
6
|
+
|
|
7
|
+
message Label {
|
|
8
|
+
string es = 1;
|
|
9
|
+
string en = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message WhitelistType {
|
|
13
|
+
string id = 1;
|
|
14
|
+
int32 value = 2;
|
|
15
|
+
string name = 3;
|
|
16
|
+
Label internationalization = 4;
|
|
17
|
+
bool active = 5;
|
|
18
|
+
bool deleted = 6;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message Whitelist {
|
|
22
|
+
string id = 1;
|
|
23
|
+
string name = 2;
|
|
24
|
+
string description = 3;
|
|
25
|
+
string type_id = 4;
|
|
26
|
+
string type_name = 5;
|
|
27
|
+
Label type_internationalization = 6;
|
|
28
|
+
string institution_id = 7;
|
|
29
|
+
bool active = 8;
|
|
30
|
+
bool deleted = 9;
|
|
31
|
+
string created_by = 10;
|
|
32
|
+
string updated_by = 11;
|
|
33
|
+
string created_at = 12;
|
|
34
|
+
string updated_at = 13;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message WhitelistElement {
|
|
38
|
+
string id = 1;
|
|
39
|
+
string whitelist_id = 2;
|
|
40
|
+
string element = 3;
|
|
41
|
+
string institution_id = 4;
|
|
42
|
+
bool active = 5;
|
|
43
|
+
bool deleted = 6;
|
|
44
|
+
string created_by = 7;
|
|
45
|
+
string updated_by = 8;
|
|
46
|
+
string created_at = 9;
|
|
47
|
+
string updated_at = 10;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message ElementValidation {
|
|
51
|
+
string element = 1;
|
|
52
|
+
bool is_valid = 2;
|
|
53
|
+
string message_es = 3;
|
|
54
|
+
string message_en = 4;
|
|
55
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.frauds.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/frauds/v1;fraudsv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/common/v1/pagination.proto";
|
|
9
|
+
import "kapital/frauds/v1/frauds_types.proto";
|
|
10
|
+
|
|
11
|
+
service FraudsService {
|
|
12
|
+
rpc CreateFraud(CreateFraudRequest) returns (CreateFraudResponse);
|
|
13
|
+
rpc GetFrauds(GetFraudsRequest) returns (GetFraudsResponse);
|
|
14
|
+
rpc GetFraudById(GetFraudByIdRequest) returns (GetFraudByIdResponse);
|
|
15
|
+
rpc UpdateFraudStatus(UpdateFraudStatusRequest) returns (UpdateFraudStatusResponse);
|
|
16
|
+
rpc GetFraudStatuses(GetFraudStatusesRequest) returns (GetFraudStatusesResponse);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// ============================================================================
|
|
20
|
+
// Request/Response Messages
|
|
21
|
+
// ============================================================================
|
|
22
|
+
|
|
23
|
+
message CreateFraudRequest {
|
|
24
|
+
string transaction_id = 1;
|
|
25
|
+
string index_id = 2;
|
|
26
|
+
string initial_comment = 3;
|
|
27
|
+
string user_id = 4;
|
|
28
|
+
TransactionData transaction_data = 5;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message CreateFraudResponse {
|
|
32
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
33
|
+
Fraud fraud = 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message GetFraudsRequest {
|
|
37
|
+
kapital.common.v1.PageRequest page_request = 1;
|
|
38
|
+
string q = 2;
|
|
39
|
+
string status = 3;
|
|
40
|
+
string channel = 4;
|
|
41
|
+
string pan = 5;
|
|
42
|
+
string pan_last4 = 6;
|
|
43
|
+
double amount_min = 7;
|
|
44
|
+
double amount_max = 8;
|
|
45
|
+
string start_date = 9;
|
|
46
|
+
string end_date = 10;
|
|
47
|
+
string mcc = 11;
|
|
48
|
+
string currency = 12;
|
|
49
|
+
string message_type = 13;
|
|
50
|
+
string id = 14;
|
|
51
|
+
string fraud_status = 15;
|
|
52
|
+
string response_code = 16;
|
|
53
|
+
string report_start_date = 17;
|
|
54
|
+
string report_end_date = 18;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message GetFraudsResponse {
|
|
58
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
59
|
+
kapital.common.v1.PageResponse page_response = 2;
|
|
60
|
+
repeated Fraud frauds = 3;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message GetFraudByIdRequest {
|
|
64
|
+
string fraud_id = 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message GetFraudByIdResponse {
|
|
68
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
69
|
+
Fraud fraud = 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message UpdateFraudStatusRequest {
|
|
73
|
+
string fraud_id = 1;
|
|
74
|
+
string status = 2;
|
|
75
|
+
string comment = 3;
|
|
76
|
+
string user_id = 4;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message UpdateFraudStatusResponse {
|
|
80
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
81
|
+
Fraud fraud = 2;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message GetFraudStatusesRequest {}
|
|
85
|
+
|
|
86
|
+
message GetFraudStatusesResponse {
|
|
87
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
88
|
+
int32 total = 2;
|
|
89
|
+
repeated CatalogItem items = 3;
|
|
90
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.frauds.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/frauds/v1;fraudsv1";
|
|
6
|
+
|
|
7
|
+
message FraudComment {
|
|
8
|
+
string comment = 1;
|
|
9
|
+
string created_at = 2;
|
|
10
|
+
string created_by = 3;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message Fraud {
|
|
14
|
+
string id = 1;
|
|
15
|
+
string transaction_id = 2;
|
|
16
|
+
string index_id = 3;
|
|
17
|
+
string status = 4;
|
|
18
|
+
string status_description_es = 5;
|
|
19
|
+
string status_description_en = 6;
|
|
20
|
+
repeated FraudComment fraud_comments = 7;
|
|
21
|
+
string created_by = 8;
|
|
22
|
+
string updated_by = 9;
|
|
23
|
+
string created_at = 10;
|
|
24
|
+
string updated_at = 11;
|
|
25
|
+
TransactionData transaction_data = 12;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message TransactionData {
|
|
29
|
+
string uuid = 1;
|
|
30
|
+
string channel = 2;
|
|
31
|
+
string pan_hmac = 3;
|
|
32
|
+
string pan_last4 = 4;
|
|
33
|
+
double amount = 5;
|
|
34
|
+
string currency_code = 6;
|
|
35
|
+
string mti = 7;
|
|
36
|
+
string mcc = 8;
|
|
37
|
+
string merchant_name = 9;
|
|
38
|
+
string response_code = 10;
|
|
39
|
+
string formatted_date = 11;
|
|
40
|
+
string fraud_status = 12;
|
|
41
|
+
string fraud_id = 13;
|
|
42
|
+
string fraud_reported_at = 14;
|
|
43
|
+
repeated FraudComment fraud_comments = 15;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message CatalogItem {
|
|
47
|
+
string value = 1;
|
|
48
|
+
Label label = 2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message Label {
|
|
52
|
+
string es = 1;
|
|
53
|
+
string en = 2;
|
|
54
|
+
}
|
|
@@ -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
|
+
}
|