@alexochihua/protos 1.0.40 → 1.0.41

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,94 +1,90 @@
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
+ double amount = 2;
32
+ string type = 3;
33
+ string description = 4;
34
+ string location = 5;
35
+ int32 location_type = 6;
36
+ double provider_assessed_fee = 7;
37
+ int32 verify_only = 8;
38
+ string merchant_id = 9;
39
+ string partner = 10;
40
+ string retail_chain = 11;
41
+ string retail_sale_transaction_key = 12;
42
+ string store_address_1 = 13;
43
+ string store_address_2 = 14;
44
+ string store_latitude = 15;
45
+ string store_longitude = 16;
46
+ string store_number = 17;
47
+ string store_name = 18;
48
+ string store_transaction_date = 19;
49
+ string store_city = 20;
50
+ string store_zip = 21;
51
+ double hold_amount = 22;
52
+ string hold_expiration_date_time = 23;
53
+ string hold_description = 24;
54
+ string hold_external_id = 25;
55
+ string reference_id = 26;
56
+ string originator_name = 27;
57
+ string receiver_name = 28;
58
+ }
59
+
60
+ message CreatePaymentResponse {
61
+ kapital.common.v1.ResponseMeta meta = 1;
62
+ double old_balance = 2;
63
+ double new_balance = 3;
64
+ string fee_amount = 4;
65
+ int64 payment_trans_id = 5;
66
+ int64 hold_id = 6;
67
+ }
68
+
69
+ // ================== GetPaymentHistory ==================
70
+ message GetPaymentHistoryRequest {
71
+ string contract_id = 1;
72
+
73
+ string account_number = 2;
74
+ string start_date = 3;
75
+ string end_date = 4;
76
+ int32 include_related = 5;
77
+ int32 record_count = 6;
78
+ int32 page = 7;
79
+ }
80
+
81
+ message GetPaymentHistoryResponse {
82
+ kapital.common.v1.ResponseMeta meta = 1;
83
+ int32 transaction_count = 2;
84
+ int32 page = 3;
85
+ int32 total_record_count = 4;
86
+ int32 number_of_pages = 5;
87
+ string start_date = 6;
88
+ string end_date = 7;
89
+ repeated Payment payments = 8;
94
90
  }
@@ -41,12 +41,11 @@ message GetExistsContractResponse {
41
41
  // ================== GetTransactionsPosted ==================
42
42
  message GetTransactionsPostedRequest {
43
43
  string contract_id = 1;
44
- string transaction_id = 2;
45
- string start_date = 3;
46
- string end_date = 4;
47
- int32 record_count = 5;
48
- int32 page = 6;
49
- int32 included_related = 7;
44
+ string start_date = 2;
45
+ string end_date = 3;
46
+ int32 record_count = 4;
47
+ int32 page = 5;
48
+ int32 included_related = 6;
50
49
  }
51
50
 
52
51
  message GetTransactionsPostedResponse {
@@ -62,11 +61,10 @@ message GetTransactionsPostedResponse {
62
61
  // ================== GetAllTransactions ==================
63
62
  message GetAllTransactionsRequest {
64
63
  string contract_id = 1;
65
- string transaction_id = 2;
66
- string start_date = 3;
67
- string end_date = 4;
68
- int32 record_count = 5;
69
- int32 page = 6;
64
+ string start_date = 2;
65
+ string end_date = 3;
66
+ int32 record_count = 4;
67
+ int32 page = 5;
70
68
  }
71
69
 
72
70
  message GetAllTransactionsResponse {