@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.
Files changed (100) hide show
  1. package/ad_service.proto +53 -0
  2. package/ad_service_pb.d.ts +248 -0
  3. package/ad_service_pb.js +99 -0
  4. package/cart.proto +122 -0
  5. package/cart_pb.d.ts +656 -0
  6. package/cart_pb.js +237 -0
  7. package/configuration.proto +147 -0
  8. package/configuration_pb.d.ts +716 -0
  9. package/configuration_pb.js +237 -0
  10. package/crepro_campaign.proto +277 -0
  11. package/crepro_campaign_pb.d.ts +1266 -0
  12. package/crepro_campaign_pb.js +436 -0
  13. package/crepro_code.proto +77 -0
  14. package/crepro_code_pb.d.ts +355 -0
  15. package/crepro_code_pb.js +130 -0
  16. package/crepro_log.proto +32 -0
  17. package/crepro_log_pb.d.ts +142 -0
  18. package/crepro_log_pb.js +51 -0
  19. package/crepro_redemption.proto +76 -0
  20. package/crepro_redemption_pb.d.ts +352 -0
  21. package/crepro_redemption_pb.js +119 -0
  22. package/dongtot.proto +758 -0
  23. package/dongtot_pb.d.ts +4169 -0
  24. package/dongtot_pb.js +1357 -0
  25. package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.d.ts +350 -0
  26. package/dongtot_service-LogicUniRevPaymentDongTotService_connectquery.js +551 -0
  27. package/dongtot_service.proto +154 -0
  28. package/dongtot_service_connect.d.ts +316 -0
  29. package/dongtot_service_connect.js +316 -0
  30. package/econtract.proto +675 -0
  31. package/econtract_pb.d.ts +3522 -0
  32. package/econtract_pb.js +1176 -0
  33. package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.d.ts +419 -0
  34. package/econtract_service-LogicUniRevPaymentEcontractService_connectquery.js +673 -0
  35. package/econtract_service.proto +71 -0
  36. package/econtract_service_connect.d.ts +381 -0
  37. package/econtract_service_connect.js +381 -0
  38. package/fundiin.proto +53 -0
  39. package/fundiin_pb.d.ts +255 -0
  40. package/fundiin_pb.js +85 -0
  41. package/google_billing.proto +65 -0
  42. package/google_billing_pb.d.ts +372 -0
  43. package/google_billing_pb.js +146 -0
  44. package/iap.proto +53 -0
  45. package/iap_pb.d.ts +281 -0
  46. package/iap_pb.js +109 -0
  47. package/momo.proto +92 -0
  48. package/momo_pb.d.ts +481 -0
  49. package/momo_pb.js +150 -0
  50. package/napas.proto +110 -0
  51. package/napas_pb.d.ts +587 -0
  52. package/napas_pb.js +192 -0
  53. package/order.proto +81 -0
  54. package/order_pb.d.ts +372 -0
  55. package/order_pb.js +123 -0
  56. package/package.json +10 -0
  57. package/package.proto +382 -0
  58. package/package_pb.d.ts +1907 -0
  59. package/package_pb.js +621 -0
  60. package/payment_promotion.proto +170 -0
  61. package/payment_promotion_pb.d.ts +893 -0
  62. package/payment_promotion_pb.js +311 -0
  63. package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.d.ts +112 -0
  64. package/payment_promotion_service-LogicUniRevPaymentPromotionService_connectquery.js +171 -0
  65. package/payment_promotion_service.proto +73 -0
  66. package/payment_promotion_service_connect.d.ts +102 -0
  67. package/payment_promotion_service_connect.js +102 -0
  68. package/payoo.proto +55 -0
  69. package/payoo_pb.d.ts +282 -0
  70. package/payoo_pb.js +105 -0
  71. package/pricer.proto +154 -0
  72. package/pricer_pb.d.ts +823 -0
  73. package/pricer_pb.js +260 -0
  74. package/rabbit_mq.proto +51 -0
  75. package/rabbit_mq_pb.d.ts +257 -0
  76. package/rabbit_mq_pb.js +78 -0
  77. package/refund_order.proto +37 -0
  78. package/refund_order_pb.d.ts +184 -0
  79. package/refund_order_pb.js +63 -0
  80. package/scripts/modify_package_json.js +50 -0
  81. package/service-LogicUniRevPaymentService_connectquery.d.ts +1239 -0
  82. package/service-LogicUniRevPaymentService_connectquery.js +1968 -0
  83. package/service.proto +643 -0
  84. package/service_connect.d.ts +1120 -0
  85. package/service_connect.js +1120 -0
  86. package/subscription.proto +24 -0
  87. package/subscription_pb.d.ts +98 -0
  88. package/subscription_pb.js +37 -0
  89. package/template.proto +76 -0
  90. package/template_pb.d.ts +387 -0
  91. package/template_pb.js +140 -0
  92. package/transaction.proto +513 -0
  93. package/transaction_pb.d.ts +2717 -0
  94. package/transaction_pb.js +856 -0
  95. package/virtual_account.proto +265 -0
  96. package/virtual_account_pb.d.ts +1442 -0
  97. package/virtual_account_pb.js +478 -0
  98. package/zalopay.proto +78 -0
  99. package/zalopay_pb.d.ts +423 -0
  100. package/zalopay_pb.js +153 -0
package/service.proto ADDED
@@ -0,0 +1,643 @@
1
+ syntax = "proto3";
2
+ package ct_logic_uni_rev_payment.v1;
3
+ // language specs
4
+ option go_package = "github.com/carousell/ct-grpc-go/pkg/ct-logic-uni-rev-payment;pb";
5
+
6
+ // import third party protos
7
+ import "google/api/annotations.proto";
8
+ import "ct-logic-uni-rev-payment/v1/momo.proto";
9
+ import "ct-logic-uni-rev-payment/v1/zalopay.proto";
10
+ import "ct-logic-uni-rev-payment/v1/napas.proto";
11
+ import "ct-logic-uni-rev-payment/v1/payoo.proto";
12
+ import "ct-logic-uni-rev-payment/v1/iap.proto";
13
+ import "ct-logic-uni-rev-payment/v1/transaction.proto";
14
+ import "ct-logic-uni-rev-payment/v1/order.proto";
15
+ import "ct-logic-uni-rev-payment/v1/template.proto";
16
+ import "ct-logic-uni-rev-payment/v1/fundiin.proto";
17
+ import "ct-logic-uni-rev-payment/v1/google_billing.proto";
18
+ import "ct-logic-uni-rev-payment/v1/pricer.proto";
19
+ import "ct-logic-uni-rev-payment/v1/cart.proto";
20
+ import "ct-logic-uni-rev-payment/v1/configuration.proto";
21
+ import "ct-logic-uni-rev-payment/v1/crepro_campaign.proto";
22
+ import "ct-logic-uni-rev-payment/v1/crepro_code.proto";
23
+ import "ct-logic-uni-rev-payment/v1/crepro_redemption.proto";
24
+ import "ct-logic-uni-rev-payment/v1/ad_service.proto";
25
+ import "ct-logic-uni-rev-payment/v1/subscription.proto";
26
+ import "ct-logic-uni-rev-payment/v1/crepro_log.proto";
27
+ import "ct-logic-uni-rev-payment/v1/package.proto";
28
+ import "ct-logic-uni-rev-payment/v1/refund_order.proto";
29
+ import "ct-logic-uni-rev-payment/v1/virtual_account.proto";
30
+
31
+ service LogicUniRevPaymentService {
32
+ rpc CreateTransaction(CreateTransactionRequest) returns (CreateTransactionResponse) {
33
+ option (google.api.http) = {
34
+ post: "/v1/transactions"
35
+ body: "*"
36
+ };
37
+ }
38
+
39
+ rpc PayOrder(PayOrderRequest) returns (PayOrderResponse) {
40
+ option (google.api.http) = {
41
+ post: "/v1/orders/pay"
42
+ body: "*"
43
+ };
44
+ }
45
+
46
+
47
+ rpc MomoIPN(MomoIPNRequest) returns (MomoIPNResponse) {
48
+ option (google.api.http) = {
49
+ post: "/v1/momo/ipn"
50
+ body: "*"
51
+ };
52
+ }
53
+
54
+ rpc ZaloPayIPN(ZaloPayIPNRequest) returns (ZaloPayIPNResponse) {
55
+ option (google.api.http) = {
56
+ post: "/v1/zalopay/ipn"
57
+ body: "*"
58
+ };
59
+ }
60
+
61
+ rpc ZaloPayBindingIPN(ZaloPayBindingIPNRequest) returns (ZaloPayBindingIPNResponse) {
62
+ option (google.api.http) = {
63
+ post: "/v1/zalopay/binding/ipn"
64
+ body: "*"
65
+ };
66
+ }
67
+
68
+ rpc GetPaymentTokens(GetPaymentTokensRequest) returns (GetPaymentTokensResponse) {
69
+ option (google.api.http) = {
70
+ get: "/v1/payment-tokens"
71
+ };
72
+ }
73
+
74
+ rpc DeletePaymentToken(DeletePaymentTokenRequest) returns (DeletePaymentTokenResponse) {
75
+ option (google.api.http) = {
76
+ delete: "/v1/payment-tokens/{token_id}"
77
+ };
78
+ }
79
+
80
+ rpc PayooIPN(PayooIPNRequest) returns (PayooIPNResponse) {
81
+ option (google.api.http) = {
82
+ post: "/v1/payoo/ipn"
83
+ body: "*"
84
+ };
85
+ }
86
+
87
+ rpc PayooBankTransferIPN(PayooBankTransferIPNRequest) returns (PayooBankTransferIPNResponse) {}
88
+
89
+ rpc GetResponseTransaction(GetResponseTransactionRequest) returns (GetResponseTransactionResponse) {
90
+ option (google.api.http) = {
91
+ get: "/v1/transaction/response"
92
+ };
93
+ }
94
+
95
+ rpc PostVerifyInAppIos(PostVerifyInAppIosRequest) returns (PostVerifyInAppIosResponse) {
96
+ option (google.api.http) = {
97
+ post: "/v1/iap-ios/verify"
98
+ body: "*"
99
+ };
100
+ }
101
+
102
+ rpc PostLogInAppIos(PostLogInAppIosRequest) returns (PostLogInAppIosResponse) {
103
+ option (google.api.http) = {
104
+ post: "/v1/iap-ios/log"
105
+ body: "*"
106
+ };
107
+ }
108
+
109
+ rpc IosServerNotification(IosServerNotificationRequest) returns (IosServerNotificationResponse) {
110
+ option (google.api.http) = {
111
+ post: "/v1/iap-ios/server-notification"
112
+ body: "*"
113
+ };
114
+ }
115
+
116
+ rpc CheckIapIosUserConsent(CheckIapIosUserConsentRequest) returns (CheckIapIosUserConsentResponse) {}
117
+
118
+ rpc GetNapasFormById(GetNapasFormByIdRequest) returns (GetNapasFormByIdResponse) {
119
+ option (google.api.http) = {
120
+ get: "/v1/naspas/form/{id}"
121
+ };
122
+ }
123
+
124
+ rpc NapasIPN(NapasIPNRequest) returns (NapasIPNResponse) {
125
+ option (google.api.http) = {
126
+ post: "/v1/napas/ipn"
127
+ body: "*"
128
+ };
129
+ }
130
+
131
+ rpc ResponseNapasById(ResponseNapasByIdRequest) returns (ResponseNapasByIdResponse) {
132
+ option (google.api.http) = {
133
+ post: "/v1/naspas/response/form/{id}"
134
+ body: "*"
135
+ };
136
+ }
137
+
138
+ rpc PayNapasToken(PayNapasTokenRequest) returns (PayNapasTokenResponse) {
139
+ option (google.api.http) = {
140
+ post: "/v1/naspas/token/form/{id}"
141
+ body: "*"
142
+ };
143
+ }
144
+
145
+ rpc GetNapasTokens(GetNapasTokensRequest) returns (GetNapasTokensResponse) {
146
+ option (google.api.http) = {
147
+ get: "/v1/naspas/tokens"
148
+ };
149
+ }
150
+
151
+ rpc DeleteNapasTokenById(DeleteNapasTokenByIdRequest) returns (DeleteNapasTokenByIdResponse) {
152
+ option (google.api.http) = {
153
+ put: "/v1/napas/tokens/{token_id}/delete"
154
+ body: "*"
155
+ };
156
+ }
157
+
158
+ rpc GetMomoCheckPhone(GetMomoCheckPhoneRequest) returns (GetMomoCheckPhoneResponse) {
159
+ option (google.api.http) = {
160
+ get: "/v1/momo/check-phone"
161
+ };
162
+ }
163
+
164
+ rpc GetMomoDongTotPackages(GetMomoDongTotPackagesRequest) returns (GetMomoDongTotPackagesResponse) {
165
+ option (google.api.http) = {
166
+ get: "/v1/momo/dt-packages"
167
+ };
168
+ }
169
+
170
+ rpc PostMomoTopup(PostMomoTopupRequest) returns (PostMomoTopupResponse) {
171
+ option (google.api.http) = {
172
+ post: "/v1/momo/topup"
173
+ body: "*"
174
+ };
175
+ }
176
+
177
+ rpc PaidAndWithDrawDongTot(PaidAndWithDrawDongTotRequest) returns (PaidAndWithDrawDongTotResponse) {
178
+ option (google.api.http) = {
179
+ post: "/v1/transaction/paid-with-draw-dong-tot"
180
+ body: "*"
181
+ };
182
+ }
183
+
184
+ rpc HaveAtmRequest(HaveAtmRequestRequest) returns (HaveAtmRequestResponse) {
185
+ option (google.api.http) = {
186
+ get: "/v1/have-atm-request"
187
+ };
188
+ }
189
+
190
+ rpc GetGatewayByOrder(GetGatewayByOrderRequest) returns (GetGatewayByOrderResponse) {
191
+ option (google.api.http) = {
192
+ get: "/v1/gateway-by-order"
193
+ };
194
+ }
195
+
196
+ rpc ViewTransaction(ViewTransactionRequest) returns (ViewTransactionResponse) {
197
+ option (google.api.http) = {
198
+ post: "/v1/view-transaction"
199
+ body: "*"
200
+ };
201
+ }
202
+
203
+ rpc BnplPaymentLimitTemplate(BnplPaymentLimitTemplateRequest) returns (BnplPaymentLimitTemplateResponse) {
204
+ option (google.api.http) = {
205
+ get: "/v1/bnpl-payment-limit-template"
206
+ };
207
+ }
208
+
209
+ rpc BnplCallCenterTemplate(BnplCallCenterTemplateRequest) returns (BnplCallCenterTemplateResponse) {
210
+ option (google.api.http) = {
211
+ get: "/v1/bnbp-call-center-template"
212
+ };
213
+ }
214
+
215
+ rpc GoogleBillingServiceMessageTemplate(GoogleBillingServiceMessageTemplateRequest) returns (GoogleBillingServiceMessageTemplateResponse) {
216
+ option (google.api.http) = {
217
+ get: "/v1/google-billing-service-message-template"
218
+ };
219
+ }
220
+
221
+ rpc GoogleBillingPaymentMessageTemplate(GoogleBillingPaymentMessageTemplateRequest) returns (GoogleBillingPaymentMessageTemplateResponse) {
222
+ option (google.api.http) = {
223
+ get: "/v1/google-billing-payment-message-template"
224
+ };
225
+ }
226
+
227
+ rpc GoogleBillingPaymentPageTemplate(GoogleBillingPaymentPageTemplateRequest) returns (GoogleBillingPaymentPageTemplateResponse) {
228
+ option (google.api.http) = {
229
+ get: "/v1/google-billing-payment-page-template"
230
+ };
231
+ }
232
+
233
+ rpc FundiinIPN(FundiinIPNRequest) returns (FundiinIPNResponse) {
234
+ option (google.api.http) = {
235
+ post: "/v1/fundiin/ipn"
236
+ body: "*"
237
+ };
238
+ }
239
+
240
+ rpc FundiinTags(FundiinTagsRequest) returns (FundiinTagsResponse) {
241
+ option (google.api.http) = {
242
+ post: "/v1/fundiin/tags"
243
+ body: "*"
244
+ };
245
+ }
246
+
247
+ rpc PayooCheckPhoneAtPos(PayooCheckPhoneAtPosRequest) returns (PayooCheckPhoneAtPosResponse) {
248
+ option (google.api.http) = {
249
+ get: "/v1/payoo/pos/phone"
250
+ };
251
+ }
252
+
253
+ rpc PayooTopupAtPos(PayooTopupAtPosRequest) returns (PayooTopupAtPosResponse) {
254
+ option (google.api.http) = {
255
+ post: "/v1/payoo/pos/topup"
256
+ body:"*"
257
+ };
258
+ }
259
+
260
+ rpc GoogleBillingIPN(GoogleBillingIPNRequest) returns (GoogleBillingIPNResponse) {
261
+ option (google.api.http) = {
262
+ post: "/v1/google_billing/rtdn",
263
+ body: "*"
264
+ };
265
+ }
266
+
267
+ rpc GoogleBillingUnacknowledgedOrders(GoogleBillingUnacknowledgedOrdersRequest) returns (GoogleBillingUnacknowledgedOrdersResponse) {
268
+ option (google.api.http) = {
269
+ post: "/v1/google_billing/unacked-orders",
270
+ body: "*"
271
+ };
272
+ }
273
+
274
+ rpc GetPricePremiumFeatureByAd(GetPricePremiumFeatureByAdRequest) returns (GetPricePremiumFeatureByAdResponse) {
275
+ option (google.api.http) = {
276
+ post: "/v1/pricer/{account_id}:get-price-premium-feature",
277
+ body: "*"
278
+ };
279
+ }
280
+
281
+ rpc GetCart(GetCartRequest) returns (GetCartResponse) {
282
+ option (google.api.http) = {
283
+ get: "/v1/cart/{cart_id}"
284
+ };
285
+ }
286
+
287
+ rpc AddToCart(AddToCartRequest) returns (AddToCartResponse) {
288
+ option (google.api.http) = {
289
+ post: "/v1/cart/{cart_id}:add",
290
+ body:"*"
291
+ };
292
+ }
293
+
294
+ rpc DeleteCart(DeleteCartRequest) returns (DeleteCartResponse) {
295
+ option (google.api.http) = {
296
+ delete: "/v1/cart/{cart_id}:delete",
297
+ body:"*"
298
+ };
299
+ }
300
+
301
+ rpc DeleteAllCart(DeleteAllCartRequest) returns (DeleteAllCartResponse) {
302
+ option (google.api.http) = {
303
+ delete: "/v1/cart/{cart_id}:delete-all",
304
+ body:"*"
305
+ };
306
+ }
307
+
308
+ rpc ForceUpdateInfo(ForceUpdateInfoRequest) returns (ForceUpdateInfoResponse) {
309
+ option (google.api.http) = {
310
+ get: "/v1/force-update-info",
311
+ };
312
+ }
313
+
314
+ // ******* Credit Promotion **********
315
+
316
+ rpc CreateCreditPromotionCampaign(CreateCreditPromotionCampaignRequest) returns (CreateCreditPromotionCampaignResponse) {
317
+ option (google.api.http) = {
318
+ post: "/v1/campaigns"
319
+ body:"*"
320
+ };
321
+ }
322
+
323
+ rpc GetListCreditPromotionCampaign(GetListCreditPromotionCampaignRequest) returns (GetListCreditPromotionCampaignResponse) {
324
+ option (google.api.http) = {
325
+ get: "/v1/campaigns"
326
+ };
327
+ }
328
+
329
+ rpc GetCreditPromotionCampaignById(GetCreditPromotionCampaignByIdRequest) returns (GetCreditPromotionCampaignByIdResponse) {
330
+ option (google.api.http) = {
331
+ get: "/v1/campaigns/{campaign_id}:search"
332
+ };
333
+ }
334
+
335
+ rpc MoveCreditPromotionCampaignToWaitForApproval(MoveCreditPromotionCampaignToWaitForApprovalRequest) returns (MoveCreditPromotionCampaignToWaitForApprovalResponse) {
336
+ option (google.api.http) = {
337
+ put: "/v1/move-campaign-to-wait-for-approval"
338
+ body:"*"
339
+ };
340
+ }
341
+
342
+ rpc ApproveCreditPromotionCampaign(ApproveCreditPromotionCampaignRequest) returns (ApproveCreditPromotionCampaignResponse) {
343
+ option (google.api.http) = {
344
+ put: "/v1/campaigns/{campaign_id}:approve"
345
+ body:"*"
346
+ };
347
+ }
348
+
349
+ rpc RejectCreditPromotionCampaign(RejectCreditPromotionCampaignRequest) returns (RejectCreditPromotionCampaignResponse) {
350
+ option (google.api.http) = {
351
+ put: "/v1/campaigns/{campaign_id}:reject"
352
+ body:"*"
353
+ };
354
+ }
355
+
356
+ rpc UpdateCreditPromotionCampaign(UpdateCreditPromotionCampaignRequest) returns (UpdateCreditPromotionCampaignResponse) {
357
+ option (google.api.http) = {
358
+ put: "/v1/campaigns/{campaign_id}:update"
359
+ body:"*"
360
+ };
361
+ }
362
+
363
+ rpc GenerateCreditPromotionCode(GenerateCreditPromotionCodeRequest) returns (GenerateCreditPromotionCodeResponse) {
364
+ option (google.api.http) = {
365
+ post: "/v1/campaigns/{campaign_id}:generate-code"
366
+ body:"*"
367
+ };
368
+ }
369
+
370
+ rpc AssignCreditPromotionCode(AssignCreditPromotionCodeRequest) returns (AssignCreditPromotionCodeResponse) {
371
+ option (google.api.http) = {
372
+ post: "/v1/campaigns/{campaign_id}:assign-code"
373
+ body:"*"
374
+ };
375
+ }
376
+
377
+ rpc AutoRedeemCreditPromotionCode(AutoRedeemCreditPromotionCodeRequest) returns (AutoRedeemCreditPromotionCodeResponse) {
378
+ option (google.api.http) = {
379
+ post: "/v1/campaigns/{campaign_id}:auto-redeem-code"
380
+ body:"*"
381
+ };
382
+ }
383
+
384
+ rpc ManualRedeemCreditPromotionCode(ManualRedeemCreditPromotionCodeRequest) returns (ManualRedeemCreditPromotionCodeResponse) {
385
+ option (google.api.http) = {
386
+ post: "/v1/codes/{account_id}:manual-redeem-code"
387
+ body:"*"
388
+ };
389
+ }
390
+
391
+ rpc GetListCreditPromotionCode(GetListCreditPromotionCodeRequest) returns (GetListCreditPromotionCodeResponse) {
392
+ option (google.api.http) = {
393
+ get: "/v1/codes"
394
+ };
395
+ }
396
+
397
+ rpc CheckIsRedeemCreditPromotionFromDiemtot(CheckIsRedeemCreditPromotionFromDiemtotRequest) returns (CheckIsRedeemCreditPromotionFromDiemtotResponse) {}
398
+
399
+ rpc UpdateCreditPromotionRedemption(UpdateCreditPromotionRedemptionRequest) returns (UpdateCreditPromotionRedemptionResponse) {
400
+ option (google.api.http) = {
401
+ put: "/v1/redemptions/{redeem_id}:update"
402
+ body:"*"
403
+ };
404
+ }
405
+
406
+ rpc GetListCreditPromotionRedemption(GetListCreditPromotionRedemptionRequest) returns (GetListCreditPromotionRedemptionResponse) {
407
+ option (google.api.http) = {
408
+ get: "/v1/redemptions/list-redeem"
409
+ };
410
+ }
411
+
412
+ rpc GetCreditPromotionLog(GetCreditPromotionLogRequest) returns (GetCreditPromotionLogResponse) {
413
+ option (google.api.http) = {
414
+ get: "/v1/logs"
415
+ };
416
+ }
417
+
418
+ rpc DeleteCreditPromotionRedemptionById(DeleteCreditPromotionRedemptionByIdRequest) returns (DeleteCreditPromotionRedemptionByIdResponse) {}
419
+
420
+ rpc CheckCodeWithAccountId(CheckCodeWithAccountIdRequest) returns (CheckCodeWithAccountIdResponse) {}
421
+
422
+ rpc GetCampaignInfoByRedemptionInfo(GetCampaignInfoByRedemptionInfoRequest) returns (GetCampaignInfoByRedemptionInfoResponse) {}
423
+ rpc GetAssignmentByFilter(GetAssignmentByFilterRequest) returns (GetAssignmentByFilterResponse) {}
424
+ rpc ExportAssignmentByFilter(ExportAssignmentByFilterRequest) returns (ExportAssignmentByFilterResponse) {}
425
+ rpc ForceUpdateCampaignStatus(ForceUpdateCampaignStatusRequest) returns (ForceUpdateCampaignStatusResponse) {}
426
+
427
+
428
+ // ******* End Credit Promotion **********
429
+
430
+ rpc GetPackagesByPackageIds(GetPackagesByPackageIdsRequest) returns (GetPackagesByPackageIdsResponse) {
431
+ option (google.api.http) = {
432
+ get: "/v1/packages"
433
+ };
434
+ }
435
+
436
+ rpc PaymentGatewayInfo(PaymentGatewayInfoRequest) returns (PaymentGatewayInfoResponse) {
437
+ option (google.api.http) = {
438
+ get: "/v1/payment-gateway-info"
439
+ };
440
+ }
441
+
442
+ rpc PaymentGatewayCheckoutInfo(PaymentGatewayCheckoutInfoRequest) returns (PaymentGatewayCheckoutInfoResponse) {
443
+ option (google.api.http) = {
444
+ get: "/v1/payment-gateway-checkout-info"
445
+ };
446
+ }
447
+
448
+ rpc CheckCondition(CheckConditionRequest) returns (CheckConditionResponse) {
449
+ option (google.api.http) = {
450
+ post: "/v1/ad-services:check-condition",
451
+ body:"*"
452
+ };
453
+ }
454
+
455
+ rpc GetAdExtensionPrices(GetAdExtensionPricesRequest) returns (GetAdExtensionPricesResponse) {
456
+ option (google.api.http) = {
457
+ get: "/v1/ad-services/ad-extensions/prices"
458
+ };
459
+ }
460
+
461
+ rpc CheckGoogleBillingOrders(CheckGoogleBillingOrdersRequest)
462
+ returns (CheckGoogleBillingOrdersResponse) {
463
+ option (google.api.http) = {
464
+ get : "/v1/google_billing_order/check"
465
+ };
466
+ }
467
+
468
+ rpc GetGoogleBillingOrders(GetGoogleBillingOrdersRequest)
469
+ returns (GetGoogleBillingOrdersResponse) {
470
+ option (google.api.http) = {
471
+ get : "/v1/google_billing_order"
472
+ };
473
+ }
474
+
475
+ rpc RetryGoogleBillingOrder(RetryGoogleBillingOrderRequest)
476
+ returns (RetryGoogleBillingOrderResponse) {
477
+ option (google.api.http) = {
478
+ post : "/v1/google_billing_order/retry"
479
+ body : "*"
480
+ };
481
+ }
482
+
483
+ rpc ExtendFreeAd(ExtendFreeAdRequest) returns (ExtendFreeAdResponse) {
484
+ option (google.api.http) = {
485
+ post: "/v1/ad-services/ad-extensions:extend-free-ad",
486
+ body:"*"
487
+ };
488
+ }
489
+
490
+ rpc GetCurrentSubscriptionServeInfo(GetCurrentSubscriptionServeInfoRequest) returns (GetCurrentSubscriptionServeInfoResponse) {
491
+ option (google.api.http) = {
492
+ get: "/v1/current-subscription-serve-info"
493
+ };
494
+ }
495
+
496
+ rpc GetPriceListingFeeDuration(GetPriceListingFeeDurationRequest) returns (GetPriceListingFeeDurationResponse) {
497
+ option (google.api.http) = {
498
+ get: "/v1/listing-fee-duration"
499
+ };
500
+ }
501
+
502
+ // legacy PaaS
503
+ rpc CreatePaaSTransaction(CreatePaaSTransactionRequest) returns (CreatePaaSTransactionResponse) {
504
+ option (google.api.http) = {
505
+ post: "/v1/paas/transactions"
506
+ body: "*"
507
+ };
508
+ }
509
+
510
+ // Support Repay
511
+ rpc ProcessPayment(ProcessPaymentRequest) returns (ProcessPaymentResponse) {
512
+ option (google.api.http) = {
513
+ post: "/v1/paas/process-payment"
514
+ body: "*"
515
+ };
516
+ }
517
+
518
+ // to support Refund
519
+ rpc GetDongTotPackageForRefund(GetDongTotPackageForRefundRequest) returns (GetDongTotPackageForRefundResponse) {}
520
+
521
+ // ******* Virtual Account **********
522
+ rpc GetVirtualAccount(GetVirtualAccountRequest) returns (GetVirtualAccountResponse) {}
523
+ rpc GetDynamicVirtualAccount(GetDynamicVirtualAccountRequest) returns (GetDynamicVirtualAccountResponse) {}
524
+ rpc GetVirtualAccountInfo(GetVirtualAccountInfoRequest) returns (GetVirtualAccountInfoResponse) {}
525
+ rpc VPBIPN(VPBIPNRequest) returns (VPBIPNResponse) {}
526
+ rpc ProcessRawCakeIPN(ProcessRawCakeIPNRequest) returns (ProcessRawCakeIPNResponse) {}
527
+ rpc VirtualAccountSendZNS(VirtualAccountSendZNSRequest) returns (VirtualAccountSendZNSResponse) {}
528
+ rpc GetVirtualAccountViewStatements(GetVirtualAccountViewStatementsRequest) returns (GetVirtualAccountViewStatementsResponse) {}
529
+ rpc GetVirtualAccountRemitter(GetVirtualAccountRemitterRequest) returns (GetVirtualAccountRemitterResponse) {}
530
+ rpc GetVirtualAccountRemitters(GetVirtualAccountRemittersRequest) returns (GetVirtualAccountRemittersResponse) {}
531
+ rpc GetVirtualAccountPaymentOrderBase(GetVirtualAccountPaymentOrderBaseRequest) returns (GetVirtualAccountPaymentOrderBaseResponse) {}
532
+ rpc GetVirtualAccountBankTransfer(GetVirtualAccountBankTransferRequest) returns (GetVirtualAccountBankTransferResponse) {}
533
+ rpc VirtualAccountSendZNSsCampaign(VirtualAccountSendZNSsCampaignRequest) returns (VirtualAccountSendZNSsCampaignResponse) {
534
+ option (google.api.http) = {
535
+ post: "/v1/virtual-accounts/zns-campaigns:send"
536
+ body: "*"
537
+ };
538
+ }
539
+
540
+ // ****** ct-core-uni-package ******
541
+ rpc GetListPackages(GetListPackagesRequest) returns (GetListPackagesResponse) {
542
+ option (google.api.http) = {
543
+ get: "/v1/list-packages"
544
+ };
545
+ }
546
+ rpc GetListPackagesByMultiplePackageIds(GetListPackagesByMultiplePackageIdsRequest) returns (
547
+ GetListPackagesByMultiplePackageIdsResponse) {
548
+ option (google.api.http) = {
549
+ get: "/v1/list-packages-by-ids"
550
+ };
551
+ }
552
+ rpc GetListPackagesByMultiplePackageUUIDs(GetListPackagesByMultiplePackageUUIDsRequest) returns (
553
+ GetListPackagesByMultiplePackageUUIDsResponse) {
554
+ option (google.api.http) = {
555
+ get: "/v1/list-packages-by-uuids"
556
+ };
557
+ }
558
+ rpc GetPackageById(GetPackageByIdRequest) returns (GetPackageByIdResponse) {
559
+ option (google.api.http) = {
560
+ get: "/v1/packages/{id}"
561
+ };
562
+ }
563
+ rpc CreatePackage(CreatePackageRequest) returns (CreatePackageResponse) {
564
+ option (google.api.http) = {
565
+ post: "/v1/create-package"
566
+ body: "*"
567
+ };
568
+ }
569
+ rpc CreateBatchPackage(CreateBatchPackageRequest) returns (CreateBatchPackageResponse) {
570
+ option (google.api.http) = {
571
+ post: "/v1/create-batch-package"
572
+ body: "*"
573
+ };
574
+ }
575
+ rpc UpdatePackageStatus(UpdatePackageStatusRequest) returns (UpdatePackageStatusResponse) {
576
+ option (google.api.http) = {
577
+ put: "/v1/update-package-status"
578
+ body: "*"
579
+ };
580
+ }
581
+ rpc GetLogPackage(GetLogPackageRequest) returns (GetLogPackageResponse) {
582
+ option (google.api.http) = {
583
+ get: "/v1/package-logs"
584
+ };
585
+ }
586
+ rpc GetListPaymentMethod(GetListPaymentMethodRequest) returns (GetListPaymentMethodResponse) {
587
+ option (google.api.http) = {
588
+ get: "/v1/list-payment-method"
589
+ };
590
+ }
591
+ rpc GetListVendorProduct(GetListVendorProductRequest) returns (GetListVendorProductResponse) {
592
+ option (google.api.http) = {
593
+ get: "/v1/vendor-product"
594
+ };
595
+ }
596
+ rpc CreateVendorProduct(CreateVendorProductRequest) returns (CreateVendorProductResponse) {
597
+ option (google.api.http) = {
598
+ post: "/v1/create-vendor-product"
599
+ body: "*"
600
+ };
601
+ }
602
+ rpc GetListPackagesByPaymentMethod(GetListPackagesByPaymentMethodRequest) returns (GetListPackagesByPaymentMethodResponse) {
603
+ option (google.api.http) = {
604
+ get: "/v1/packages-by-payment-method"
605
+ };
606
+ }
607
+
608
+ // ****** back office package ******
609
+ rpc GetListPackagesBackOffice(GetListPackagesBackOfficeRequest) returns (GetListPackagesBackOfficeResponse) {
610
+ option (google.api.http) = {
611
+ get: "/v1/backoffice/packages:list"
612
+ };
613
+ }
614
+ rpc UpdateVendorProductById(UpdateVendorProductByIdRequest) returns (UpdateVendorProductByIdResponse) {
615
+ option (google.api.http) = {
616
+ get: "/v1/update-vendor-product"
617
+ };
618
+ }
619
+ rpc GetStatusToken(GetStatusTokenRequest) returns (GetStatusTokenResponse) {}
620
+ rpc GetListVendorProductBackOffice(GetListVendorProductBackOfficeRequest) returns (GetListVendorProductBackOfficeResponse) {
621
+ option (google.api.http) = {
622
+ get: "/v1/backoffice/vendor-product:list"
623
+ };
624
+ }
625
+ rpc GetCartPaymentInfo(GetCartPaymentInfoRequest) returns (GetCartPaymentInfoResponse) {}
626
+ rpc GetCartSubscriptionInfo(GetCartSubscriptionInfoRequest) returns (GetCartSubscriptionInfoResponse) {}
627
+ rpc GetCartShopInfo(GetCartShopInfoRequest) returns (GetCartShopInfoResponse) {}
628
+ rpc GetCartTopupInfo(GetCartTopupInfoRequest) returns (GetCartTopupInfoResponse) {}
629
+ rpc GetListMerchantBankInfo(GetListMerchantBankInfoRequest) returns (GetListMerchantBankInfoResponse) {}
630
+ rpc UpdatePackageMetaDataById(UpdatePackageMetaDataByIdRequest) returns (UpdatePackageMetaDataByIdResponse) {}
631
+
632
+ //tax
633
+ rpc CalculateVATopupDongtot(CalculateVATopupDongtotRequest) returns (CalculateVATopupDongtotResponse) {}
634
+
635
+ // zalopay/momo qrcode payment
636
+ rpc GetIPNStatus(GetIPNStatusRequest) returns (GetIPNStatusResponse) {}
637
+
638
+ // validate whether a payment/transaction can be mapped to an order
639
+ rpc ValidateMappingPayment(ValidateMappingPaymentRequest) returns (ValidateMappingPaymentResponse) {}
640
+
641
+ // force mapping payment to an order -> trigger a payment success event
642
+ rpc ForceMappingPayment(ForceMappingPaymentRequest) returns (ForceMappingPaymentResponse) {}
643
+ }