@chotot/ct-logic-uni-rev-payment-v1 1.133.0
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/ad_service.proto +53 -0
- package/ad_service_pb.d.ts +248 -0
- package/ad_service_pb.js +99 -0
- package/cart.proto +122 -0
- package/cart_pb.d.ts +656 -0
- package/cart_pb.js +237 -0
- package/configuration.proto +147 -0
- package/configuration_pb.d.ts +716 -0
- package/configuration_pb.js +237 -0
- package/crepro_campaign.proto +277 -0
- package/crepro_campaign_pb.d.ts +1266 -0
- package/crepro_campaign_pb.js +436 -0
- package/crepro_code.proto +77 -0
- package/crepro_code_pb.d.ts +355 -0
- package/crepro_code_pb.js +130 -0
- package/crepro_log.proto +32 -0
- package/crepro_log_pb.d.ts +142 -0
- package/crepro_log_pb.js +51 -0
- package/crepro_redemption.proto +76 -0
- package/crepro_redemption_pb.d.ts +352 -0
- package/crepro_redemption_pb.js +119 -0
- package/dongtot.proto +758 -0
- package/dongtot_pb.d.ts +4169 -0
- package/dongtot_pb.js +1357 -0
- package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.d.ts +350 -0
- package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.js +551 -0
- package/dongtot_service.proto +154 -0
- package/dongtot_service_connect.d.ts +316 -0
- package/dongtot_service_connect.js +316 -0
- package/econtract.proto +675 -0
- package/econtract_pb.d.ts +3522 -0
- package/econtract_pb.js +1176 -0
- package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.d.ts +419 -0
- package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.js +673 -0
- package/econtract_service.proto +71 -0
- package/econtract_service_connect.d.ts +381 -0
- package/econtract_service_connect.js +381 -0
- package/fundiin.proto +53 -0
- package/fundiin_pb.d.ts +255 -0
- package/fundiin_pb.js +85 -0
- package/google_billing.proto +65 -0
- package/google_billing_pb.d.ts +372 -0
- package/google_billing_pb.js +146 -0
- package/iap.proto +53 -0
- package/iap_pb.d.ts +281 -0
- package/iap_pb.js +109 -0
- package/momo.proto +92 -0
- package/momo_pb.d.ts +481 -0
- package/momo_pb.js +150 -0
- package/napas.proto +110 -0
- package/napas_pb.d.ts +587 -0
- package/napas_pb.js +192 -0
- package/order.proto +81 -0
- package/order_pb.d.ts +372 -0
- package/order_pb.js +123 -0
- package/package.json +10 -0
- package/package.proto +382 -0
- package/package_pb.d.ts +1907 -0
- package/package_pb.js +621 -0
- package/payment_promotion.proto +170 -0
- package/payment_promotion_pb.d.ts +893 -0
- package/payment_promotion_pb.js +311 -0
- package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.d.ts +112 -0
- package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.js +171 -0
- package/payment_promotion_service.proto +73 -0
- package/payment_promotion_service_connect.d.ts +102 -0
- package/payment_promotion_service_connect.js +102 -0
- package/payoo.proto +55 -0
- package/payoo_pb.d.ts +282 -0
- package/payoo_pb.js +105 -0
- package/pricer.proto +154 -0
- package/pricer_pb.d.ts +823 -0
- package/pricer_pb.js +260 -0
- package/rabbit_mq.proto +51 -0
- package/rabbit_mq_pb.d.ts +257 -0
- package/rabbit_mq_pb.js +78 -0
- package/refund_order.proto +37 -0
- package/refund_order_pb.d.ts +184 -0
- package/refund_order_pb.js +63 -0
- package/scripts/modify_package_json.js +50 -0
- package/service-LogicUniRevPaymentService_connectquery.d.ts +1239 -0
- package/service-LogicUniRevPaymentService_connectquery.js +1968 -0
- package/service.proto +643 -0
- package/service_connect.d.ts +1120 -0
- package/service_connect.js +1120 -0
- package/subscription.proto +24 -0
- package/subscription_pb.d.ts +98 -0
- package/subscription_pb.js +37 -0
- package/template.proto +76 -0
- package/template_pb.d.ts +387 -0
- package/template_pb.js +140 -0
- package/transaction.proto +513 -0
- package/transaction_pb.d.ts +2717 -0
- package/transaction_pb.js +856 -0
- package/virtual_account.proto +265 -0
- package/virtual_account_pb.d.ts +1442 -0
- package/virtual_account_pb.js +478 -0
- package/zalopay.proto +78 -0
- package/zalopay_pb.d.ts +423 -0
- package/zalopay_pb.js +153 -0
package/order_pb.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// general
|
|
2
|
+
|
|
3
|
+
// @generated by protoc-gen-es v1.3.1 with parameter "target=js+dts"
|
|
4
|
+
// @generated from file ct-logic-uni-rev-payment/v1/order.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// @ts-nocheck
|
|
7
|
+
|
|
8
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PaidAndWithDrawDongTotRequest
|
|
12
|
+
*/
|
|
13
|
+
export const PaidAndWithDrawDongTotRequest = proto3.makeMessageType(
|
|
14
|
+
"ct_logic_uni_rev_payment.v1.PaidAndWithDrawDongTotRequest",
|
|
15
|
+
() => [
|
|
16
|
+
{ no: 1, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
17
|
+
{ no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
18
|
+
{ no: 3, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
19
|
+
{ no: 4, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
20
|
+
{ no: 5, name: "transaction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
21
|
+
{ no: 6, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
22
|
+
{ no: 7, name: "parent_account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
23
|
+
{ no: 8, name: "gateway", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
24
|
+
{ no: 9, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
25
|
+
],
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from message ct_logic_uni_rev_payment.v1.PaidAndWithDrawDongTotResponse
|
|
30
|
+
*/
|
|
31
|
+
export const PaidAndWithDrawDongTotResponse = proto3.makeMessageType(
|
|
32
|
+
"ct_logic_uni_rev_payment.v1.PaidAndWithDrawDongTotResponse",
|
|
33
|
+
() => [
|
|
34
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
35
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
36
|
+
],
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @generated from message ct_logic_uni_rev_payment.v1.HaveAtmRequestRequest
|
|
41
|
+
*/
|
|
42
|
+
export const HaveAtmRequestRequest = proto3.makeMessageType(
|
|
43
|
+
"ct_logic_uni_rev_payment.v1.HaveAtmRequestRequest",
|
|
44
|
+
() => [
|
|
45
|
+
{ no: 1, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
46
|
+
],
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message ct_logic_uni_rev_payment.v1.HaveAtmRequestResponse
|
|
51
|
+
*/
|
|
52
|
+
export const HaveAtmRequestResponse = proto3.makeMessageType(
|
|
53
|
+
"ct_logic_uni_rev_payment.v1.HaveAtmRequestResponse",
|
|
54
|
+
() => [
|
|
55
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
56
|
+
{ no: 2, name: "data", kind: "message", T: ResponsePGateway },
|
|
57
|
+
],
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetGatewayByOrderRequest
|
|
62
|
+
*/
|
|
63
|
+
export const GetGatewayByOrderRequest = proto3.makeMessageType(
|
|
64
|
+
"ct_logic_uni_rev_payment.v1.GetGatewayByOrderRequest",
|
|
65
|
+
() => [
|
|
66
|
+
{ no: 1, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
67
|
+
],
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetGatewayByOrderResponse
|
|
72
|
+
*/
|
|
73
|
+
export const GetGatewayByOrderResponse = proto3.makeMessageType(
|
|
74
|
+
"ct_logic_uni_rev_payment.v1.GetGatewayByOrderResponse",
|
|
75
|
+
() => [
|
|
76
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
77
|
+
{ no: 2, name: "data", kind: "message", T: ResponsePGateway, repeated: true },
|
|
78
|
+
],
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ResponsePGateway
|
|
83
|
+
*/
|
|
84
|
+
export const ResponsePGateway = proto3.makeMessageType(
|
|
85
|
+
"ct_logic_uni_rev_payment.v1.ResponsePGateway",
|
|
86
|
+
() => [
|
|
87
|
+
{ no: 1, name: "cv_request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
88
|
+
{ no: 2, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
89
|
+
{ no: 3, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
90
|
+
{ no: 4, name: "user", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
91
|
+
{ no: 5, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
92
|
+
{ no: 6, name: "ip", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
93
|
+
{ no: 7, name: "gateway", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
94
|
+
{ no: 8, name: "params", kind: "message", T: ResponsePGatewayParams },
|
|
95
|
+
{ no: 9, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
96
|
+
],
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ResponsePGatewayParams
|
|
101
|
+
*/
|
|
102
|
+
export const ResponsePGatewayParams = proto3.makeMessageType(
|
|
103
|
+
"ct_logic_uni_rev_payment.v1.ResponsePGatewayParams",
|
|
104
|
+
() => [
|
|
105
|
+
{ no: 1, name: "vpc_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
106
|
+
{ no: 2, name: "vpc_order_info", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
107
|
+
{ no: 3, name: "vpc_response_code", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
108
|
+
{ no: 4, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
109
|
+
{ no: 5, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
110
|
+
{ no: 6, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
111
|
+
{ no: 8, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
112
|
+
{ no: 9, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
113
|
+
{ no: 10, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
114
|
+
{ no: 11, name: "partner_trans_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
115
|
+
{ no: 12, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
116
|
+
{ no: 14, name: "transaction_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
117
|
+
{ no: 15, name: "app_trans_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
118
|
+
{ no: 16, name: "session", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
119
|
+
{ no: 17, name: "order_no", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
120
|
+
{ no: 18, name: "checksum", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
121
|
+
],
|
|
122
|
+
);
|
|
123
|
+
|
package/package.json
ADDED
package/package.proto
ADDED
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
// general
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ct_logic_uni_rev_payment.v1;
|
|
4
|
+
// language specs
|
|
5
|
+
option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-payment;pb";
|
|
6
|
+
|
|
7
|
+
// import third party protos
|
|
8
|
+
import "google/protobuf/timestamp.proto";
|
|
9
|
+
import "validate/validate.proto";
|
|
10
|
+
|
|
11
|
+
// ct-package (old)
|
|
12
|
+
message GetPackagesByPackageIdsRequest {
|
|
13
|
+
string package_ids = 1;
|
|
14
|
+
bool is_history = 2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message GetPackagesByPackageIdsResponse {
|
|
18
|
+
repeated Package data = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message Package {
|
|
22
|
+
int64 id = 1;
|
|
23
|
+
string name = 2;
|
|
24
|
+
string type = 3;
|
|
25
|
+
string package_type = 4;
|
|
26
|
+
int64 price = 5;
|
|
27
|
+
string platform = 6;
|
|
28
|
+
bool actived = 7;
|
|
29
|
+
string method = 8;
|
|
30
|
+
int64 paid_amount = 9;
|
|
31
|
+
int64 free_amount = 10;
|
|
32
|
+
int64 promotion_amount = 11;
|
|
33
|
+
}
|
|
34
|
+
// ct-core-uni-package
|
|
35
|
+
|
|
36
|
+
message PackageInfo {
|
|
37
|
+
int64 id = 1 [json_name = "old_package_id"];
|
|
38
|
+
string uuid = 2 [json_name = "id"];
|
|
39
|
+
string name = 3 [(validate.rules).string = {
|
|
40
|
+
min_len: 1,
|
|
41
|
+
max_len: 100,
|
|
42
|
+
}];
|
|
43
|
+
string type = 4 [(validate.rules).string = {
|
|
44
|
+
in: ["internal","private","public"]
|
|
45
|
+
}];
|
|
46
|
+
string purpose = 5 [(validate.rules).string = {
|
|
47
|
+
in: ["topup","refund","promotion"]
|
|
48
|
+
}];
|
|
49
|
+
string status = 6 [(validate.rules).string = {
|
|
50
|
+
in: ["active","deactive"]
|
|
51
|
+
}];
|
|
52
|
+
string platform = 7 [(validate.rules).string = {
|
|
53
|
+
min_len: 1,
|
|
54
|
+
max_len: 100,
|
|
55
|
+
}];
|
|
56
|
+
string segment_id = 8;
|
|
57
|
+
int64 vnd_paid_price = 9 [ (validate.rules).int64.gte = 0 ];
|
|
58
|
+
int64 free_dongtot = 10;
|
|
59
|
+
int64 extra_paid_dongtot = 11;
|
|
60
|
+
int64 paid_dongtot = 12 [ (validate.rules).int64.gte = 0 ];
|
|
61
|
+
string meta_data = 13;
|
|
62
|
+
google.protobuf.Timestamp created_at = 14;
|
|
63
|
+
google.protobuf.Timestamp updated_at = 15;
|
|
64
|
+
string created_by = 16;
|
|
65
|
+
repeated string payment_method = 17;
|
|
66
|
+
string product_id = 18;
|
|
67
|
+
int64 vnd_tax_price = 19;
|
|
68
|
+
int64 vnd_total_price = 20;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message FilterPackage {
|
|
72
|
+
int64 id = 1;
|
|
73
|
+
string uuid = 2;
|
|
74
|
+
string name = 3;
|
|
75
|
+
string type = 4;
|
|
76
|
+
string purpose = 5;
|
|
77
|
+
string status = 6;
|
|
78
|
+
string platform = 7;
|
|
79
|
+
repeated string segment_id = 8;
|
|
80
|
+
int64 vnd_paid_price = 9;
|
|
81
|
+
int64 free_dongtot = 10;
|
|
82
|
+
int64 extra_paid_dongtot = 11;
|
|
83
|
+
int64 paid_dongtot = 12;
|
|
84
|
+
string meta_data = 13;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message FilterPackageBackOffice {
|
|
88
|
+
int64 id = 1;
|
|
89
|
+
string uuid = 2;
|
|
90
|
+
string name = 3;
|
|
91
|
+
string type = 4;
|
|
92
|
+
string purpose = 5;
|
|
93
|
+
string status = 6;
|
|
94
|
+
string platform = 7;
|
|
95
|
+
repeated string segment_id = 8;
|
|
96
|
+
int64 vnd_paid_price = 9;
|
|
97
|
+
int64 free_dongtot = 10;
|
|
98
|
+
int64 extra_paid_dongtot = 11;
|
|
99
|
+
int64 paid_dongtot = 12;
|
|
100
|
+
string meta_data = 13;
|
|
101
|
+
string payment_method = 14;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message GetPackageByIdRequest {
|
|
105
|
+
int64 id = 1;
|
|
106
|
+
int64 account_id = 2;
|
|
107
|
+
bool is_check_bank_transfer = 3; // handle param for ct-cart
|
|
108
|
+
bool is_check_internal_package = 4; //handle param for ct-cart
|
|
109
|
+
bool is_history = 5;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message GetPackageByIdResponse {
|
|
113
|
+
string status = 1;
|
|
114
|
+
PackageInfo data = 2;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message GetListPackagesRequest {
|
|
118
|
+
int64 max_page_size = 1;
|
|
119
|
+
string page_token = 2;
|
|
120
|
+
int64 account_id = 3;
|
|
121
|
+
FilterPackage filter = 4;
|
|
122
|
+
bool show_iap_package = 5; //handle param for ios package
|
|
123
|
+
string method = 6; // handle param for android package
|
|
124
|
+
bool is_history = 7; //handle param for all package status in or
|
|
125
|
+
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message GetListPackagesResponse {
|
|
129
|
+
string page_token = 1;
|
|
130
|
+
string next_page_token = 2;
|
|
131
|
+
int64 total_records = 3;
|
|
132
|
+
repeated PackageInfo data = 4;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
message GetListPackagesByMultiplePackageIdsRequest {
|
|
136
|
+
int64 max_page_size = 1;
|
|
137
|
+
string page_token = 2;
|
|
138
|
+
int64 account_id = 3;
|
|
139
|
+
repeated int64 id = 4;
|
|
140
|
+
bool is_history = 5;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message GetListPackagesByMultiplePackageIdsResponse {
|
|
144
|
+
string page_token = 1;
|
|
145
|
+
string next_page_token = 2;
|
|
146
|
+
int64 total_records = 3;
|
|
147
|
+
repeated PackageInfo data = 4;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
message GetListPackagesByMultiplePackageUUIDsRequest {
|
|
152
|
+
int64 max_page_size = 1;
|
|
153
|
+
string page_token = 2;
|
|
154
|
+
int64 account_id = 3;
|
|
155
|
+
repeated string uuid = 4;
|
|
156
|
+
bool is_history = 5;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
message GetListPackagesByMultiplePackageUUIDsResponse {
|
|
160
|
+
string page_token = 1;
|
|
161
|
+
string next_page_token = 2;
|
|
162
|
+
int64 total_records = 3;
|
|
163
|
+
repeated PackageInfo data = 4;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
message CreatePackageRequest {
|
|
167
|
+
string type = 1 [(validate.rules).string = {
|
|
168
|
+
in: ["internal", "private","public"]
|
|
169
|
+
}];
|
|
170
|
+
string purpose = 2 [(validate.rules).string = {
|
|
171
|
+
in: ["topup", "refund","promotion"]
|
|
172
|
+
}];
|
|
173
|
+
string status = 3 [(validate.rules).string = {
|
|
174
|
+
in: ["active", "deactive"]
|
|
175
|
+
}];
|
|
176
|
+
string platform = 4 [(validate.rules).string = {
|
|
177
|
+
min_len: 1,
|
|
178
|
+
max_len: 100,
|
|
179
|
+
}];
|
|
180
|
+
string segment_id = 5;
|
|
181
|
+
int64 vnd_paid_price = 6 [ (validate.rules).int64.gte = 0 ];
|
|
182
|
+
int64 free_dongtot = 7;
|
|
183
|
+
int64 extra_paid_dongtot = 8;
|
|
184
|
+
int64 paid_dongtot = 9 [ (validate.rules).int64.gte = 0 ];
|
|
185
|
+
string meta_data = 10;
|
|
186
|
+
string created_by = 11;
|
|
187
|
+
repeated string payment_method = 12;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
message CreatePackageResponse {
|
|
191
|
+
string status = 1;
|
|
192
|
+
PackageInfo data = 2;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message CreateBatchPackageRequest {
|
|
196
|
+
repeated CreatePackageRequest data = 1;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
message CreateBatchPackageResponse {
|
|
200
|
+
string status = 1;
|
|
201
|
+
repeated PackageInfo data = 2;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
message UpdatePackageStatusRequest {
|
|
205
|
+
string id = 1;
|
|
206
|
+
int64 old_package_id = 2;
|
|
207
|
+
string status = 3 [(validate.rules).string = {
|
|
208
|
+
in: ["active","deactive"]
|
|
209
|
+
}];
|
|
210
|
+
string created_by = 4;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
message UpdatePackageStatusResponse {
|
|
214
|
+
string status = 1;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
message PaymentMethod {
|
|
218
|
+
string id = 1;
|
|
219
|
+
string name = 2 [(validate.rules).string = {
|
|
220
|
+
min_len: 1,
|
|
221
|
+
max_len: 100,
|
|
222
|
+
}];
|
|
223
|
+
string key = 3;
|
|
224
|
+
google.protobuf.Timestamp created_at = 4;
|
|
225
|
+
google.protobuf.Timestamp updated_at = 5;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
message GetListPaymentMethodRequest {
|
|
229
|
+
int64 max_page_size = 1;
|
|
230
|
+
string page_token = 2;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
message GetListPaymentMethodResponse {
|
|
234
|
+
string page_token = 1;
|
|
235
|
+
string next_page_token = 2;
|
|
236
|
+
int64 total_records = 3;
|
|
237
|
+
repeated PaymentMethod data = 4;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message GetListPackagesByPaymentMethodRequest {
|
|
241
|
+
int64 id = 1 [json_name = "old_package_id"];
|
|
242
|
+
string uuid = 2 [json_name = "id"];
|
|
243
|
+
string payment_method = 3;
|
|
244
|
+
bool is_history = 4;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
message GetListPackagesByPaymentMethodResponse {
|
|
248
|
+
string status = 1;
|
|
249
|
+
repeated PackageInfo data = 2;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
message VendorProduct {
|
|
253
|
+
string id = 1;
|
|
254
|
+
string name = 2;
|
|
255
|
+
string key = 3;
|
|
256
|
+
string package_id = 4;
|
|
257
|
+
string status = 5;
|
|
258
|
+
google.protobuf.Timestamp created_at = 6;
|
|
259
|
+
google.protobuf.Timestamp updated_at = 7;
|
|
260
|
+
Package package_info = 8;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
message FilterVendorProductInfo {
|
|
264
|
+
VendorProduct vendor_product = 1;
|
|
265
|
+
FilterPackage package = 2;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
message GetListVendorProductRequest {
|
|
269
|
+
int64 max_page_size = 1;
|
|
270
|
+
string page_token = 2;
|
|
271
|
+
FilterVendorProductInfo filter = 3;
|
|
272
|
+
bool is_history = 4;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
message GetListVendorProductResponse {
|
|
276
|
+
string page_token = 1;
|
|
277
|
+
string next_page_token = 2;
|
|
278
|
+
int64 total_records = 3;
|
|
279
|
+
repeated VendorProduct data = 4;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
message UpdateVendorProductByIdRequest {
|
|
283
|
+
string id = 1;
|
|
284
|
+
string status = 2;
|
|
285
|
+
string created_by = 3;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
message UpdateVendorProductByIdResponse {
|
|
289
|
+
string status = 1;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
message CreateVendorProductRequest {
|
|
293
|
+
string name = 1 [(validate.rules).string = {
|
|
294
|
+
min_len: 1,
|
|
295
|
+
max_len: 1000,
|
|
296
|
+
}];
|
|
297
|
+
string key = 2;
|
|
298
|
+
string package_id = 3;
|
|
299
|
+
string created_by = 4;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
message CreateVendorProductResponse {
|
|
303
|
+
string status = 1;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
message LogDetailPackage {
|
|
307
|
+
string id = 1;
|
|
308
|
+
string email_id = 2;
|
|
309
|
+
string event_name = 3;
|
|
310
|
+
string log_data = 4;
|
|
311
|
+
string package_id = 5;
|
|
312
|
+
google.protobuf.Timestamp created_at = 6;
|
|
313
|
+
google.protobuf.Timestamp updated_at = 7;
|
|
314
|
+
string email = 8;
|
|
315
|
+
string vendor_product_id = 9;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
message CreateLogRequest {
|
|
319
|
+
string email = 1;
|
|
320
|
+
string event_name = 2;
|
|
321
|
+
string log_data = 3;
|
|
322
|
+
string package_id = 4;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
message CreateLogResponse {
|
|
326
|
+
string status = 1;
|
|
327
|
+
Package data = 2;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
message FilterLog {
|
|
331
|
+
string email = 1;
|
|
332
|
+
string package_id = 2;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
message GetLogPackageRequest {
|
|
336
|
+
int64 max_page_size = 1;
|
|
337
|
+
string page_token = 2;
|
|
338
|
+
FilterLog filter = 3;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
message GetLogPackageResponse {
|
|
342
|
+
string page_token = 1;
|
|
343
|
+
string next_page_token = 2;
|
|
344
|
+
int64 total_records = 3;
|
|
345
|
+
repeated LogDetailPackage data = 4;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
message GetListPackagesBackOfficeRequest {
|
|
349
|
+
int64 max_page_size = 1;
|
|
350
|
+
string page_token = 2;
|
|
351
|
+
FilterPackageBackOffice filter = 3;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
message GetListPackagesBackOfficeResponse {
|
|
355
|
+
string page_token = 1;
|
|
356
|
+
string next_page_token = 2;
|
|
357
|
+
int64 total_records = 3;
|
|
358
|
+
repeated PackageInfo data = 4;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
message GetListVendorProductBackOfficeRequest {
|
|
362
|
+
int64 max_page_size = 1;
|
|
363
|
+
string page_token = 2;
|
|
364
|
+
FilterVendorProductInfo filter = 3;
|
|
365
|
+
bool is_history = 4;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
message GetListVendorProductBackOfficeResponse {
|
|
369
|
+
string page_token = 1;
|
|
370
|
+
string next_page_token = 2;
|
|
371
|
+
int64 total_records = 3;
|
|
372
|
+
repeated VendorProduct data = 4;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
message UpdatePackageMetaDataByIdRequest {
|
|
376
|
+
string id = 1;
|
|
377
|
+
int64 old_package_id = 2;
|
|
378
|
+
string meta_data = 3;
|
|
379
|
+
string created_by = 4;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
message UpdatePackageMetaDataByIdResponse {}
|