@alexochihua/protos 1.0.37 → 1.0.38
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/buf.gen.yaml +1 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +5 -5
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -1
- package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +0 -12
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js +1 -138
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -1
- package/package.json +1 -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/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_types.proto +315 -315
- 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_types.proto +1 -0
- 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_types.proto +90 -90
|
@@ -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,94 +1,94 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package kapital.payments.v1;
|
|
4
|
-
|
|
5
|
-
option go_package = "kapital/payments/v1;paymentsv1";
|
|
6
|
-
|
|
7
|
-
import "kapital/common/v1/meta.proto";
|
|
8
|
-
import "kapital/payments/v1/payments_types.proto";
|
|
9
|
-
|
|
10
|
-
service PaymentsService {
|
|
11
|
-
rpc GetExistsContract (GetExistsContractRequest) returns (GetExistsContractResponse);
|
|
12
|
-
rpc CreatePayment (CreatePaymentRequest) returns (CreatePaymentResponse);
|
|
13
|
-
rpc GetPaymentHistory (GetPaymentHistoryRequest) returns (GetPaymentHistoryResponse);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// ================== GetExistsContract ==================
|
|
17
|
-
message GetExistsContractRequest {
|
|
18
|
-
string contract_id = 1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
message GetExistsContractResponse {
|
|
22
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
23
|
-
string contract_id = 2;
|
|
24
|
-
bool exists = 3;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// ================== CreatePayment ==================
|
|
28
|
-
message CreatePaymentRequest {
|
|
29
|
-
string contract_id = 1;
|
|
30
|
-
|
|
31
|
-
string transaction_id = 2;
|
|
32
|
-
double amount = 3;
|
|
33
|
-
string type = 4;
|
|
34
|
-
string description = 5;
|
|
35
|
-
string location = 6;
|
|
36
|
-
int32 location_type = 7;
|
|
37
|
-
double provider_assessed_fee = 8;
|
|
38
|
-
int32 verify_only = 9;
|
|
39
|
-
string merchant_id = 10;
|
|
40
|
-
string partner = 11;
|
|
41
|
-
string retail_chain = 12;
|
|
42
|
-
string retail_sale_transaction_key = 13;
|
|
43
|
-
string store_address_1 = 14;
|
|
44
|
-
string store_address_2 = 15;
|
|
45
|
-
string store_latitude = 16;
|
|
46
|
-
string store_longitude = 17;
|
|
47
|
-
string store_number = 18;
|
|
48
|
-
string store_name = 19;
|
|
49
|
-
string store_transaction_date = 20;
|
|
50
|
-
string store_city = 21;
|
|
51
|
-
string store_zip = 22;
|
|
52
|
-
double hold_amount = 23;
|
|
53
|
-
string hold_expiration_date_time = 24;
|
|
54
|
-
string hold_description = 25;
|
|
55
|
-
string hold_external_id = 26;
|
|
56
|
-
string reference_id = 27;
|
|
57
|
-
string originator_name = 28;
|
|
58
|
-
string receiver_name = 29;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message CreatePaymentResponse {
|
|
62
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
63
|
-
double old_balance = 2;
|
|
64
|
-
double new_balance = 3;
|
|
65
|
-
string fee_amount = 4;
|
|
66
|
-
int64 payment_trans_id = 5;
|
|
67
|
-
string transaction_id = 6;
|
|
68
|
-
int64 hold_id = 7;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// ================== GetPaymentHistory ==================
|
|
72
|
-
message GetPaymentHistoryRequest {
|
|
73
|
-
string contract_id = 1;
|
|
74
|
-
|
|
75
|
-
string provider_id = 2;
|
|
76
|
-
string transaction_id = 3;
|
|
77
|
-
string account_number = 4;
|
|
78
|
-
string start_date = 5;
|
|
79
|
-
string end_date = 6;
|
|
80
|
-
int32 include_related = 7;
|
|
81
|
-
int32 record_count = 8;
|
|
82
|
-
int32 page = 9;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message GetPaymentHistoryResponse {
|
|
86
|
-
kapital.common.v1.ResponseMeta meta = 1;
|
|
87
|
-
int32 transaction_count = 2;
|
|
88
|
-
int32 page = 3;
|
|
89
|
-
int32 total_record_count = 4;
|
|
90
|
-
int32 number_of_pages = 5;
|
|
91
|
-
string start_date = 6;
|
|
92
|
-
string end_date = 7;
|
|
93
|
-
repeated Payment payments = 8;
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package kapital.payments.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "kapital/payments/v1;paymentsv1";
|
|
6
|
+
|
|
7
|
+
import "kapital/common/v1/meta.proto";
|
|
8
|
+
import "kapital/payments/v1/payments_types.proto";
|
|
9
|
+
|
|
10
|
+
service PaymentsService {
|
|
11
|
+
rpc GetExistsContract (GetExistsContractRequest) returns (GetExistsContractResponse);
|
|
12
|
+
rpc CreatePayment (CreatePaymentRequest) returns (CreatePaymentResponse);
|
|
13
|
+
rpc GetPaymentHistory (GetPaymentHistoryRequest) returns (GetPaymentHistoryResponse);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// ================== GetExistsContract ==================
|
|
17
|
+
message GetExistsContractRequest {
|
|
18
|
+
string contract_id = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message GetExistsContractResponse {
|
|
22
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
23
|
+
string contract_id = 2;
|
|
24
|
+
bool exists = 3;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ================== CreatePayment ==================
|
|
28
|
+
message CreatePaymentRequest {
|
|
29
|
+
string contract_id = 1;
|
|
30
|
+
|
|
31
|
+
string transaction_id = 2;
|
|
32
|
+
double amount = 3;
|
|
33
|
+
string type = 4;
|
|
34
|
+
string description = 5;
|
|
35
|
+
string location = 6;
|
|
36
|
+
int32 location_type = 7;
|
|
37
|
+
double provider_assessed_fee = 8;
|
|
38
|
+
int32 verify_only = 9;
|
|
39
|
+
string merchant_id = 10;
|
|
40
|
+
string partner = 11;
|
|
41
|
+
string retail_chain = 12;
|
|
42
|
+
string retail_sale_transaction_key = 13;
|
|
43
|
+
string store_address_1 = 14;
|
|
44
|
+
string store_address_2 = 15;
|
|
45
|
+
string store_latitude = 16;
|
|
46
|
+
string store_longitude = 17;
|
|
47
|
+
string store_number = 18;
|
|
48
|
+
string store_name = 19;
|
|
49
|
+
string store_transaction_date = 20;
|
|
50
|
+
string store_city = 21;
|
|
51
|
+
string store_zip = 22;
|
|
52
|
+
double hold_amount = 23;
|
|
53
|
+
string hold_expiration_date_time = 24;
|
|
54
|
+
string hold_description = 25;
|
|
55
|
+
string hold_external_id = 26;
|
|
56
|
+
string reference_id = 27;
|
|
57
|
+
string originator_name = 28;
|
|
58
|
+
string receiver_name = 29;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message CreatePaymentResponse {
|
|
62
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
63
|
+
double old_balance = 2;
|
|
64
|
+
double new_balance = 3;
|
|
65
|
+
string fee_amount = 4;
|
|
66
|
+
int64 payment_trans_id = 5;
|
|
67
|
+
string transaction_id = 6;
|
|
68
|
+
int64 hold_id = 7;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ================== GetPaymentHistory ==================
|
|
72
|
+
message GetPaymentHistoryRequest {
|
|
73
|
+
string contract_id = 1;
|
|
74
|
+
|
|
75
|
+
string provider_id = 2;
|
|
76
|
+
string transaction_id = 3;
|
|
77
|
+
string account_number = 4;
|
|
78
|
+
string start_date = 5;
|
|
79
|
+
string end_date = 6;
|
|
80
|
+
int32 include_related = 7;
|
|
81
|
+
int32 record_count = 8;
|
|
82
|
+
int32 page = 9;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message GetPaymentHistoryResponse {
|
|
86
|
+
kapital.common.v1.ResponseMeta meta = 1;
|
|
87
|
+
int32 transaction_count = 2;
|
|
88
|
+
int32 page = 3;
|
|
89
|
+
int32 total_record_count = 4;
|
|
90
|
+
int32 number_of_pages = 5;
|
|
91
|
+
string start_date = 6;
|
|
92
|
+
string end_date = 7;
|
|
93
|
+
repeated Payment payments = 8;
|
|
94
94
|
}
|
|
@@ -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
|
}
|