@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/ad_service.proto
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
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 "validate/validate.proto";
|
|
9
|
+
import "google/protobuf/timestamp.proto";
|
|
10
|
+
|
|
11
|
+
// import
|
|
12
|
+
import "ct-logic-uni-rev-payment/v1/pricer.proto";
|
|
13
|
+
|
|
14
|
+
message CheckConditionRequest {
|
|
15
|
+
int64 ad_id = 1 [(validate.rules).int64.gt = 0];
|
|
16
|
+
string service = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message CheckConditionResponse {
|
|
20
|
+
AdExtensionCondition ad_extension = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message AdExtensionCondition {
|
|
24
|
+
bool can_extend = 1;
|
|
25
|
+
bool is_paid_ad = 2;
|
|
26
|
+
int64 pending_day = 3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message GetAdExtensionPricesRequest {
|
|
30
|
+
int64 ad_id = 1 [(validate.rules).int64.gt = 0];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message GetAdExtensionPricesResponse {
|
|
34
|
+
repeated AdExtensionPrice prices = 1;
|
|
35
|
+
google.protobuf.Timestamp expected_expired_time_sec = 2;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message AdExtensionPrice {
|
|
39
|
+
int64 duration = 1;
|
|
40
|
+
int64 category_id = 2;
|
|
41
|
+
int64 region_id = 3;
|
|
42
|
+
PriceMessage price = 4;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message ExtendFreeAdRequest {
|
|
46
|
+
int64 ad_id = 1 [(validate.rules).int64.gt = 0];
|
|
47
|
+
int64 account_id = 2 [(validate.rules).int64.gt = 0];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message ExtendFreeAdResponse {
|
|
51
|
+
string message = 1;
|
|
52
|
+
google.protobuf.Timestamp expected_extensive_date = 9;
|
|
53
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
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/ad_service.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// @ts-nocheck
|
|
7
|
+
|
|
8
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
9
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
10
|
+
import type { PriceMessage } from "./pricer_pb.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @generated from message ct_logic_uni_rev_payment.v1.CheckConditionRequest
|
|
14
|
+
*/
|
|
15
|
+
export declare class CheckConditionRequest extends Message<CheckConditionRequest> {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: int64 ad_id = 1;
|
|
18
|
+
*/
|
|
19
|
+
adId: bigint;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: string service = 2;
|
|
23
|
+
*/
|
|
24
|
+
service: string;
|
|
25
|
+
|
|
26
|
+
constructor(data?: PartialMessage<CheckConditionRequest>);
|
|
27
|
+
|
|
28
|
+
static readonly runtime: typeof proto3;
|
|
29
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.CheckConditionRequest";
|
|
30
|
+
static readonly fields: FieldList;
|
|
31
|
+
|
|
32
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckConditionRequest;
|
|
33
|
+
|
|
34
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckConditionRequest;
|
|
35
|
+
|
|
36
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckConditionRequest;
|
|
37
|
+
|
|
38
|
+
static equals(a: CheckConditionRequest | PlainMessage<CheckConditionRequest> | undefined, b: CheckConditionRequest | PlainMessage<CheckConditionRequest> | undefined): boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @generated from message ct_logic_uni_rev_payment.v1.CheckConditionResponse
|
|
43
|
+
*/
|
|
44
|
+
export declare class CheckConditionResponse extends Message<CheckConditionResponse> {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: ct_logic_uni_rev_payment.v1.AdExtensionCondition ad_extension = 1;
|
|
47
|
+
*/
|
|
48
|
+
adExtension?: AdExtensionCondition;
|
|
49
|
+
|
|
50
|
+
constructor(data?: PartialMessage<CheckConditionResponse>);
|
|
51
|
+
|
|
52
|
+
static readonly runtime: typeof proto3;
|
|
53
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.CheckConditionResponse";
|
|
54
|
+
static readonly fields: FieldList;
|
|
55
|
+
|
|
56
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckConditionResponse;
|
|
57
|
+
|
|
58
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckConditionResponse;
|
|
59
|
+
|
|
60
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckConditionResponse;
|
|
61
|
+
|
|
62
|
+
static equals(a: CheckConditionResponse | PlainMessage<CheckConditionResponse> | undefined, b: CheckConditionResponse | PlainMessage<CheckConditionResponse> | undefined): boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from message ct_logic_uni_rev_payment.v1.AdExtensionCondition
|
|
67
|
+
*/
|
|
68
|
+
export declare class AdExtensionCondition extends Message<AdExtensionCondition> {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: bool can_extend = 1;
|
|
71
|
+
*/
|
|
72
|
+
canExtend: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: bool is_paid_ad = 2;
|
|
76
|
+
*/
|
|
77
|
+
isPaidAd: boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: int64 pending_day = 3;
|
|
81
|
+
*/
|
|
82
|
+
pendingDay: bigint;
|
|
83
|
+
|
|
84
|
+
constructor(data?: PartialMessage<AdExtensionCondition>);
|
|
85
|
+
|
|
86
|
+
static readonly runtime: typeof proto3;
|
|
87
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.AdExtensionCondition";
|
|
88
|
+
static readonly fields: FieldList;
|
|
89
|
+
|
|
90
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdExtensionCondition;
|
|
91
|
+
|
|
92
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdExtensionCondition;
|
|
93
|
+
|
|
94
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdExtensionCondition;
|
|
95
|
+
|
|
96
|
+
static equals(a: AdExtensionCondition | PlainMessage<AdExtensionCondition> | undefined, b: AdExtensionCondition | PlainMessage<AdExtensionCondition> | undefined): boolean;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetAdExtensionPricesRequest
|
|
101
|
+
*/
|
|
102
|
+
export declare class GetAdExtensionPricesRequest extends Message<GetAdExtensionPricesRequest> {
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: int64 ad_id = 1;
|
|
105
|
+
*/
|
|
106
|
+
adId: bigint;
|
|
107
|
+
|
|
108
|
+
constructor(data?: PartialMessage<GetAdExtensionPricesRequest>);
|
|
109
|
+
|
|
110
|
+
static readonly runtime: typeof proto3;
|
|
111
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.GetAdExtensionPricesRequest";
|
|
112
|
+
static readonly fields: FieldList;
|
|
113
|
+
|
|
114
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAdExtensionPricesRequest;
|
|
115
|
+
|
|
116
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAdExtensionPricesRequest;
|
|
117
|
+
|
|
118
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAdExtensionPricesRequest;
|
|
119
|
+
|
|
120
|
+
static equals(a: GetAdExtensionPricesRequest | PlainMessage<GetAdExtensionPricesRequest> | undefined, b: GetAdExtensionPricesRequest | PlainMessage<GetAdExtensionPricesRequest> | undefined): boolean;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetAdExtensionPricesResponse
|
|
125
|
+
*/
|
|
126
|
+
export declare class GetAdExtensionPricesResponse extends Message<GetAdExtensionPricesResponse> {
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: repeated ct_logic_uni_rev_payment.v1.AdExtensionPrice prices = 1;
|
|
129
|
+
*/
|
|
130
|
+
prices: AdExtensionPrice[];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: google.protobuf.Timestamp expected_expired_time_sec = 2;
|
|
134
|
+
*/
|
|
135
|
+
expectedExpiredTimeSec?: Timestamp;
|
|
136
|
+
|
|
137
|
+
constructor(data?: PartialMessage<GetAdExtensionPricesResponse>);
|
|
138
|
+
|
|
139
|
+
static readonly runtime: typeof proto3;
|
|
140
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.GetAdExtensionPricesResponse";
|
|
141
|
+
static readonly fields: FieldList;
|
|
142
|
+
|
|
143
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAdExtensionPricesResponse;
|
|
144
|
+
|
|
145
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAdExtensionPricesResponse;
|
|
146
|
+
|
|
147
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAdExtensionPricesResponse;
|
|
148
|
+
|
|
149
|
+
static equals(a: GetAdExtensionPricesResponse | PlainMessage<GetAdExtensionPricesResponse> | undefined, b: GetAdExtensionPricesResponse | PlainMessage<GetAdExtensionPricesResponse> | undefined): boolean;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @generated from message ct_logic_uni_rev_payment.v1.AdExtensionPrice
|
|
154
|
+
*/
|
|
155
|
+
export declare class AdExtensionPrice extends Message<AdExtensionPrice> {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: int64 duration = 1;
|
|
158
|
+
*/
|
|
159
|
+
duration: bigint;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: int64 category_id = 2;
|
|
163
|
+
*/
|
|
164
|
+
categoryId: bigint;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: int64 region_id = 3;
|
|
168
|
+
*/
|
|
169
|
+
regionId: bigint;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: ct_logic_uni_rev_payment.v1.PriceMessage price = 4;
|
|
173
|
+
*/
|
|
174
|
+
price?: PriceMessage;
|
|
175
|
+
|
|
176
|
+
constructor(data?: PartialMessage<AdExtensionPrice>);
|
|
177
|
+
|
|
178
|
+
static readonly runtime: typeof proto3;
|
|
179
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.AdExtensionPrice";
|
|
180
|
+
static readonly fields: FieldList;
|
|
181
|
+
|
|
182
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdExtensionPrice;
|
|
183
|
+
|
|
184
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdExtensionPrice;
|
|
185
|
+
|
|
186
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdExtensionPrice;
|
|
187
|
+
|
|
188
|
+
static equals(a: AdExtensionPrice | PlainMessage<AdExtensionPrice> | undefined, b: AdExtensionPrice | PlainMessage<AdExtensionPrice> | undefined): boolean;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ExtendFreeAdRequest
|
|
193
|
+
*/
|
|
194
|
+
export declare class ExtendFreeAdRequest extends Message<ExtendFreeAdRequest> {
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: int64 ad_id = 1;
|
|
197
|
+
*/
|
|
198
|
+
adId: bigint;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @generated from field: int64 account_id = 2;
|
|
202
|
+
*/
|
|
203
|
+
accountId: bigint;
|
|
204
|
+
|
|
205
|
+
constructor(data?: PartialMessage<ExtendFreeAdRequest>);
|
|
206
|
+
|
|
207
|
+
static readonly runtime: typeof proto3;
|
|
208
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.ExtendFreeAdRequest";
|
|
209
|
+
static readonly fields: FieldList;
|
|
210
|
+
|
|
211
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtendFreeAdRequest;
|
|
212
|
+
|
|
213
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtendFreeAdRequest;
|
|
214
|
+
|
|
215
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtendFreeAdRequest;
|
|
216
|
+
|
|
217
|
+
static equals(a: ExtendFreeAdRequest | PlainMessage<ExtendFreeAdRequest> | undefined, b: ExtendFreeAdRequest | PlainMessage<ExtendFreeAdRequest> | undefined): boolean;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ExtendFreeAdResponse
|
|
222
|
+
*/
|
|
223
|
+
export declare class ExtendFreeAdResponse extends Message<ExtendFreeAdResponse> {
|
|
224
|
+
/**
|
|
225
|
+
* @generated from field: string message = 1;
|
|
226
|
+
*/
|
|
227
|
+
message: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: google.protobuf.Timestamp expected_extensive_date = 9;
|
|
231
|
+
*/
|
|
232
|
+
expectedExtensiveDate?: Timestamp;
|
|
233
|
+
|
|
234
|
+
constructor(data?: PartialMessage<ExtendFreeAdResponse>);
|
|
235
|
+
|
|
236
|
+
static readonly runtime: typeof proto3;
|
|
237
|
+
static readonly typeName = "ct_logic_uni_rev_payment.v1.ExtendFreeAdResponse";
|
|
238
|
+
static readonly fields: FieldList;
|
|
239
|
+
|
|
240
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtendFreeAdResponse;
|
|
241
|
+
|
|
242
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtendFreeAdResponse;
|
|
243
|
+
|
|
244
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtendFreeAdResponse;
|
|
245
|
+
|
|
246
|
+
static equals(a: ExtendFreeAdResponse | PlainMessage<ExtendFreeAdResponse> | undefined, b: ExtendFreeAdResponse | PlainMessage<ExtendFreeAdResponse> | undefined): boolean;
|
|
247
|
+
}
|
|
248
|
+
|
package/ad_service_pb.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
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/ad_service.proto (package ct_logic_uni_rev_payment.v1, syntax proto3)
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// @ts-nocheck
|
|
7
|
+
|
|
8
|
+
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
9
|
+
import { PriceMessage } from "./pricer_pb.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @generated from message ct_logic_uni_rev_payment.v1.CheckConditionRequest
|
|
13
|
+
*/
|
|
14
|
+
export const CheckConditionRequest = proto3.makeMessageType(
|
|
15
|
+
"ct_logic_uni_rev_payment.v1.CheckConditionRequest",
|
|
16
|
+
() => [
|
|
17
|
+
{ no: 1, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
18
|
+
{ no: 2, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
19
|
+
],
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from message ct_logic_uni_rev_payment.v1.CheckConditionResponse
|
|
24
|
+
*/
|
|
25
|
+
export const CheckConditionResponse = proto3.makeMessageType(
|
|
26
|
+
"ct_logic_uni_rev_payment.v1.CheckConditionResponse",
|
|
27
|
+
() => [
|
|
28
|
+
{ no: 1, name: "ad_extension", kind: "message", T: AdExtensionCondition },
|
|
29
|
+
],
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from message ct_logic_uni_rev_payment.v1.AdExtensionCondition
|
|
34
|
+
*/
|
|
35
|
+
export const AdExtensionCondition = proto3.makeMessageType(
|
|
36
|
+
"ct_logic_uni_rev_payment.v1.AdExtensionCondition",
|
|
37
|
+
() => [
|
|
38
|
+
{ no: 1, name: "can_extend", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
39
|
+
{ no: 2, name: "is_paid_ad", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
40
|
+
{ no: 3, name: "pending_day", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
41
|
+
],
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetAdExtensionPricesRequest
|
|
46
|
+
*/
|
|
47
|
+
export const GetAdExtensionPricesRequest = proto3.makeMessageType(
|
|
48
|
+
"ct_logic_uni_rev_payment.v1.GetAdExtensionPricesRequest",
|
|
49
|
+
() => [
|
|
50
|
+
{ no: 1, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
51
|
+
],
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message ct_logic_uni_rev_payment.v1.GetAdExtensionPricesResponse
|
|
56
|
+
*/
|
|
57
|
+
export const GetAdExtensionPricesResponse = proto3.makeMessageType(
|
|
58
|
+
"ct_logic_uni_rev_payment.v1.GetAdExtensionPricesResponse",
|
|
59
|
+
() => [
|
|
60
|
+
{ no: 1, name: "prices", kind: "message", T: AdExtensionPrice, repeated: true },
|
|
61
|
+
{ no: 2, name: "expected_expired_time_sec", kind: "message", T: Timestamp },
|
|
62
|
+
],
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from message ct_logic_uni_rev_payment.v1.AdExtensionPrice
|
|
67
|
+
*/
|
|
68
|
+
export const AdExtensionPrice = proto3.makeMessageType(
|
|
69
|
+
"ct_logic_uni_rev_payment.v1.AdExtensionPrice",
|
|
70
|
+
() => [
|
|
71
|
+
{ no: 1, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
72
|
+
{ no: 2, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
73
|
+
{ no: 3, name: "region_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
74
|
+
{ no: 4, name: "price", kind: "message", T: PriceMessage },
|
|
75
|
+
],
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ExtendFreeAdRequest
|
|
80
|
+
*/
|
|
81
|
+
export const ExtendFreeAdRequest = proto3.makeMessageType(
|
|
82
|
+
"ct_logic_uni_rev_payment.v1.ExtendFreeAdRequest",
|
|
83
|
+
() => [
|
|
84
|
+
{ no: 1, name: "ad_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
85
|
+
{ no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
86
|
+
],
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @generated from message ct_logic_uni_rev_payment.v1.ExtendFreeAdResponse
|
|
91
|
+
*/
|
|
92
|
+
export const ExtendFreeAdResponse = proto3.makeMessageType(
|
|
93
|
+
"ct_logic_uni_rev_payment.v1.ExtendFreeAdResponse",
|
|
94
|
+
() => [
|
|
95
|
+
{ no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
96
|
+
{ no: 9, name: "expected_extensive_date", kind: "message", T: Timestamp },
|
|
97
|
+
],
|
|
98
|
+
);
|
|
99
|
+
|
package/cart.proto
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
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/struct.proto";
|
|
9
|
+
|
|
10
|
+
message GetCartRequest {
|
|
11
|
+
string cart_id = 1;
|
|
12
|
+
int64 account_id = 2;
|
|
13
|
+
string platform = 3;
|
|
14
|
+
string app_version = 4;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message CartBlockTime {
|
|
18
|
+
int64 start = 1;
|
|
19
|
+
int64 end = 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message CartServicePrice {
|
|
23
|
+
double vnd = 1;
|
|
24
|
+
double credit = 2;
|
|
25
|
+
double promotion = 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message CartServiceRequest {
|
|
29
|
+
int64 target = 1;
|
|
30
|
+
string type = 2;
|
|
31
|
+
google.protobuf.Struct params = 3;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message CartServiceSuccess {
|
|
35
|
+
int64 target = 1;
|
|
36
|
+
string type = 2;
|
|
37
|
+
google.protobuf.Struct params = 3;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message AddCartServiceFail {
|
|
41
|
+
int64 target = 1;
|
|
42
|
+
string type = 2;
|
|
43
|
+
google.protobuf.Struct params = 3;
|
|
44
|
+
string error = 4;
|
|
45
|
+
string code = 5;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message CartServiceResponse {
|
|
49
|
+
int64 target = 1;
|
|
50
|
+
string type = 2;
|
|
51
|
+
google.protobuf.Struct params = 3;
|
|
52
|
+
double price = 4;
|
|
53
|
+
CartServicePrice price_unit = 5;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message GetCartResponse {
|
|
57
|
+
repeated CartServiceResponse services = 1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message GetCartInfoResponse {
|
|
61
|
+
repeated CartInfoServiceResponse services = 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message CartInfoServiceResponse {
|
|
65
|
+
string target = 1;
|
|
66
|
+
string type = 2;
|
|
67
|
+
google.protobuf.Struct params = 3;
|
|
68
|
+
double price = 4;
|
|
69
|
+
CartServicePrice price_unit = 5;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message AddToCartRequest {
|
|
73
|
+
string cart_id = 1;
|
|
74
|
+
int64 account_id = 2;
|
|
75
|
+
string platform = 3;
|
|
76
|
+
string app_version = 4;
|
|
77
|
+
repeated CartServiceRequest services = 5;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message AddToCartResponse {
|
|
81
|
+
repeated CartServiceSuccess success = 1;
|
|
82
|
+
repeated AddCartServiceFail fail = 2;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message DeleteCartService {
|
|
86
|
+
int64 target = 1;
|
|
87
|
+
string type = 2;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message DeleteCartRequest {
|
|
91
|
+
string cart_id = 1;
|
|
92
|
+
int64 account_id = 2;
|
|
93
|
+
string platform = 3;
|
|
94
|
+
string app_version = 4;
|
|
95
|
+
repeated DeleteCartService services = 5;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message DeleteCartSuccess {
|
|
99
|
+
int64 target = 1;
|
|
100
|
+
string type = 2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message DeleteCartFail {
|
|
104
|
+
int64 target = 1;
|
|
105
|
+
string type = 2;
|
|
106
|
+
string error = 3;
|
|
107
|
+
string code = 4;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message DeleteCartResponse {
|
|
111
|
+
repeated DeleteCartSuccess success = 1;
|
|
112
|
+
repeated DeleteCartFail fail = 2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message DeleteAllCartRequest {
|
|
116
|
+
string cart_id = 1;
|
|
117
|
+
int64 account_id = 2;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message DeleteAllCartResponse {
|
|
121
|
+
string status = 1;
|
|
122
|
+
}
|