@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
@@ -0,0 +1,170 @@
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 "google/protobuf/timestamp.proto";
8
+
9
+ message GetPaymentMethodsRequest {}
10
+
11
+ message GetPaymentMethodsResponse {
12
+ map<string, string> payment_methods = 1;
13
+ }
14
+
15
+ // CAMPAIGN
16
+
17
+ message PaymentPromotionCampaignParams {
18
+ repeated string payment_methods = 1;
19
+ string discount_type = 2;
20
+ int64 discount_value = 3;
21
+ int64 max_promotion_value = 4;
22
+ string segment_id = 5;
23
+ string announcement_message = 6;
24
+ repeated string package_icons = 7;
25
+ }
26
+
27
+ message PaymentPromotionCampaignInfo {
28
+ string campaign_name = 1;
29
+ string campaign_type = 2;
30
+ string description = 3;
31
+ string image_url = 4;
32
+ google.protobuf.Timestamp start_time = 5;
33
+ google.protobuf.Timestamp end_time = 6;
34
+ int64 min_order_value = 7;
35
+ int64 max_order_value = 8;
36
+ int64 limit_per_user = 9;
37
+ int64 limit_total_budget = 10;
38
+ string status = 11;
39
+ int32 priority = 12;
40
+ PaymentPromotionCampaignParams campaign_params = 13;
41
+ }
42
+
43
+ message PaymentPromotionCampaign {
44
+ int64 id = 1;
45
+ PaymentPromotionCampaignInfo campaign_info = 2;
46
+ }
47
+
48
+ message GetPaymentPromotionCampaignsRequest {
49
+ optional string status = 1;
50
+ optional int64 order_value = 2;
51
+ optional string campaign_type = 3;
52
+ repeated string payment_methods = 4;
53
+ }
54
+
55
+ message GetPaymentPromotionCampaignsResponse {
56
+ repeated PaymentPromotionCampaign campaigns = 1;
57
+ }
58
+
59
+ message GetPaymentPromotionCampaignByIdRequest {
60
+ int64 id = 1;
61
+ }
62
+
63
+ message GetPaymentPromotionCampaignByIdResponse {
64
+ PaymentPromotionCampaign campaign = 1;
65
+ }
66
+
67
+ message CreatePaymentPromotionCampaignRequest {
68
+ PaymentPromotionCampaignInfo campaign_info = 1;
69
+ string username = 2;
70
+ }
71
+
72
+ message CreatePaymentPromotionCampaignResponse {
73
+ PaymentPromotionCampaign campaign = 1;
74
+ }
75
+
76
+ message UpdatePaymentPromotionCampaignRequest {
77
+ int64 id = 1;
78
+ PaymentPromotionCampaignInfo campaign_info = 2;
79
+ string username = 3;
80
+ }
81
+
82
+ message UpdatePaymentPromotionCampaignResponse {
83
+ PaymentPromotionCampaign campaign = 1;
84
+ }
85
+
86
+ message ChangePaymentPromotionCampaignStatusRequest {
87
+ int64 id = 1;
88
+ string status = 2;
89
+ string username = 3;
90
+ }
91
+
92
+ message ChangePaymentPromotionCampaignStatusResponse {
93
+ PaymentPromotionCampaign campaign = 1;
94
+ }
95
+
96
+ // REDEEM
97
+ message Redeem {
98
+ int64 campaign_id = 1;
99
+ int64 account_id = 2;
100
+ string phone = 3;
101
+ int64 order_id = 4;
102
+ int64 order_value = 5;
103
+ int64 redeem_amount = 6;
104
+ string status = 7;
105
+ string created_at = 8;
106
+ string updated_at = 9;
107
+ }
108
+
109
+ message GetRedeemsRequest {
110
+ optional int64 campaign_id = 1;
111
+ optional int64 account_id = 2;
112
+ optional int64 order_id = 3;
113
+ int32 offset = 4;
114
+ int32 limit = 5;
115
+ }
116
+
117
+ message GetRedeemsResponse {
118
+ repeated Redeem redeem = 1;
119
+ int64 total = 2;
120
+ int32 offset = 3;
121
+ int32 limit = 4;
122
+ }
123
+
124
+ // ACTION LOG
125
+
126
+ message ActionLog {
127
+ string username = 1;
128
+ string old_state = 2;
129
+ string new_state = 3;
130
+ string action = 4;
131
+ string created_at = 5;
132
+ int64 id = 6;
133
+ }
134
+
135
+ message GetActionLogsRequest {
136
+ optional int64 campaign_id = 1;
137
+ optional string username = 2;
138
+ int32 offset = 3;
139
+ int32 limit = 4;
140
+ }
141
+
142
+ message GetActionLogsResponse {
143
+ repeated ActionLog action_log = 1;
144
+ int64 total = 2;
145
+ int32 offset = 3;
146
+ int32 limit = 4;
147
+ }
148
+
149
+ // REDEEM LOG
150
+
151
+ message RedeemLog {
152
+ int64 id = 1;
153
+ int64 order_id = 2;
154
+ string new_status = 3;
155
+ string old_status = 4;
156
+ string reference = 5;
157
+ string created_at = 6;
158
+ }
159
+
160
+ message GetRedeemLogsRequest {
161
+ int32 offset = 1;
162
+ int32 limit = 2;
163
+ }
164
+
165
+ message GetRedeemLogsResponse {
166
+ repeated RedeemLog redeem_log = 1;
167
+ int64 total = 2;
168
+ int32 offset = 3;
169
+ int32 limit = 4;
170
+ }