@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/iap.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
+ message PostVerifyInAppIosRequest {
8
+ int64 account_id = 1;
9
+ string receipt_data = 2;
10
+ string source = 3;
11
+ string platform = 4;
12
+ string campaign_id = 5;
13
+ bool user_consent = 6;
14
+ }
15
+
16
+ message PostVerifyInAppIosResponse {
17
+ int64 status_code = 1;
18
+ string status_message = 2;
19
+ }
20
+
21
+ message PostLogInAppIosRequest {
22
+ int64 account_id = 1;
23
+ int64 status = 2;
24
+ PostLogInAppIosMessage message = 3;
25
+ }
26
+
27
+ message PostLogInAppIosMessage {
28
+ int32 log_level = 1;
29
+ string timestamp = 2;
30
+ string method = 3;
31
+ string file = 4;
32
+ string message = 5;
33
+ }
34
+
35
+ message PostLogInAppIosResponse {
36
+ int32 status = 1;
37
+ }
38
+
39
+ message IosServerNotificationRequest {
40
+ string signed_payload = 1;
41
+ }
42
+
43
+ message IosServerNotificationResponse {
44
+ }
45
+
46
+
47
+ message CheckIapIosUserConsentRequest {
48
+ int64 account_id = 1;
49
+ }
50
+
51
+ message CheckIapIosUserConsentResponse {
52
+ bool user_consent = 1;
53
+ }
package/iap_pb.d.ts ADDED
@@ -0,0 +1,281 @@
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/iap.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 } from "@bufbuild/protobuf";
9
+ import { Message, proto3 } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * @generated from message ct_logic_uni_rev_payment.v1.PostVerifyInAppIosRequest
13
+ */
14
+ export declare class PostVerifyInAppIosRequest extends Message<PostVerifyInAppIosRequest> {
15
+ /**
16
+ * @generated from field: int64 account_id = 1;
17
+ */
18
+ accountId: bigint;
19
+
20
+ /**
21
+ * @generated from field: string receipt_data = 2;
22
+ */
23
+ receiptData: string;
24
+
25
+ /**
26
+ * @generated from field: string source = 3;
27
+ */
28
+ source: string;
29
+
30
+ /**
31
+ * @generated from field: string platform = 4;
32
+ */
33
+ platform: string;
34
+
35
+ /**
36
+ * @generated from field: string campaign_id = 5;
37
+ */
38
+ campaignId: string;
39
+
40
+ /**
41
+ * @generated from field: bool user_consent = 6;
42
+ */
43
+ userConsent: boolean;
44
+
45
+ constructor(data?: PartialMessage<PostVerifyInAppIosRequest>);
46
+
47
+ static readonly runtime: typeof proto3;
48
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.PostVerifyInAppIosRequest";
49
+ static readonly fields: FieldList;
50
+
51
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostVerifyInAppIosRequest;
52
+
53
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostVerifyInAppIosRequest;
54
+
55
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostVerifyInAppIosRequest;
56
+
57
+ static equals(a: PostVerifyInAppIosRequest | PlainMessage<PostVerifyInAppIosRequest> | undefined, b: PostVerifyInAppIosRequest | PlainMessage<PostVerifyInAppIosRequest> | undefined): boolean;
58
+ }
59
+
60
+ /**
61
+ * @generated from message ct_logic_uni_rev_payment.v1.PostVerifyInAppIosResponse
62
+ */
63
+ export declare class PostVerifyInAppIosResponse extends Message<PostVerifyInAppIosResponse> {
64
+ /**
65
+ * @generated from field: int64 status_code = 1;
66
+ */
67
+ statusCode: bigint;
68
+
69
+ /**
70
+ * @generated from field: string status_message = 2;
71
+ */
72
+ statusMessage: string;
73
+
74
+ constructor(data?: PartialMessage<PostVerifyInAppIosResponse>);
75
+
76
+ static readonly runtime: typeof proto3;
77
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.PostVerifyInAppIosResponse";
78
+ static readonly fields: FieldList;
79
+
80
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostVerifyInAppIosResponse;
81
+
82
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostVerifyInAppIosResponse;
83
+
84
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostVerifyInAppIosResponse;
85
+
86
+ static equals(a: PostVerifyInAppIosResponse | PlainMessage<PostVerifyInAppIosResponse> | undefined, b: PostVerifyInAppIosResponse | PlainMessage<PostVerifyInAppIosResponse> | undefined): boolean;
87
+ }
88
+
89
+ /**
90
+ * @generated from message ct_logic_uni_rev_payment.v1.PostLogInAppIosRequest
91
+ */
92
+ export declare class PostLogInAppIosRequest extends Message<PostLogInAppIosRequest> {
93
+ /**
94
+ * @generated from field: int64 account_id = 1;
95
+ */
96
+ accountId: bigint;
97
+
98
+ /**
99
+ * @generated from field: int64 status = 2;
100
+ */
101
+ status: bigint;
102
+
103
+ /**
104
+ * @generated from field: ct_logic_uni_rev_payment.v1.PostLogInAppIosMessage message = 3;
105
+ */
106
+ message?: PostLogInAppIosMessage;
107
+
108
+ constructor(data?: PartialMessage<PostLogInAppIosRequest>);
109
+
110
+ static readonly runtime: typeof proto3;
111
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.PostLogInAppIosRequest";
112
+ static readonly fields: FieldList;
113
+
114
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostLogInAppIosRequest;
115
+
116
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostLogInAppIosRequest;
117
+
118
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostLogInAppIosRequest;
119
+
120
+ static equals(a: PostLogInAppIosRequest | PlainMessage<PostLogInAppIosRequest> | undefined, b: PostLogInAppIosRequest | PlainMessage<PostLogInAppIosRequest> | undefined): boolean;
121
+ }
122
+
123
+ /**
124
+ * @generated from message ct_logic_uni_rev_payment.v1.PostLogInAppIosMessage
125
+ */
126
+ export declare class PostLogInAppIosMessage extends Message<PostLogInAppIosMessage> {
127
+ /**
128
+ * @generated from field: int32 log_level = 1;
129
+ */
130
+ logLevel: number;
131
+
132
+ /**
133
+ * @generated from field: string timestamp = 2;
134
+ */
135
+ timestamp: string;
136
+
137
+ /**
138
+ * @generated from field: string method = 3;
139
+ */
140
+ method: string;
141
+
142
+ /**
143
+ * @generated from field: string file = 4;
144
+ */
145
+ file: string;
146
+
147
+ /**
148
+ * @generated from field: string message = 5;
149
+ */
150
+ message: string;
151
+
152
+ constructor(data?: PartialMessage<PostLogInAppIosMessage>);
153
+
154
+ static readonly runtime: typeof proto3;
155
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.PostLogInAppIosMessage";
156
+ static readonly fields: FieldList;
157
+
158
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostLogInAppIosMessage;
159
+
160
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostLogInAppIosMessage;
161
+
162
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostLogInAppIosMessage;
163
+
164
+ static equals(a: PostLogInAppIosMessage | PlainMessage<PostLogInAppIosMessage> | undefined, b: PostLogInAppIosMessage | PlainMessage<PostLogInAppIosMessage> | undefined): boolean;
165
+ }
166
+
167
+ /**
168
+ * @generated from message ct_logic_uni_rev_payment.v1.PostLogInAppIosResponse
169
+ */
170
+ export declare class PostLogInAppIosResponse extends Message<PostLogInAppIosResponse> {
171
+ /**
172
+ * @generated from field: int32 status = 1;
173
+ */
174
+ status: number;
175
+
176
+ constructor(data?: PartialMessage<PostLogInAppIosResponse>);
177
+
178
+ static readonly runtime: typeof proto3;
179
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.PostLogInAppIosResponse";
180
+ static readonly fields: FieldList;
181
+
182
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostLogInAppIosResponse;
183
+
184
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostLogInAppIosResponse;
185
+
186
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostLogInAppIosResponse;
187
+
188
+ static equals(a: PostLogInAppIosResponse | PlainMessage<PostLogInAppIosResponse> | undefined, b: PostLogInAppIosResponse | PlainMessage<PostLogInAppIosResponse> | undefined): boolean;
189
+ }
190
+
191
+ /**
192
+ * @generated from message ct_logic_uni_rev_payment.v1.IosServerNotificationRequest
193
+ */
194
+ export declare class IosServerNotificationRequest extends Message<IosServerNotificationRequest> {
195
+ /**
196
+ * @generated from field: string signed_payload = 1;
197
+ */
198
+ signedPayload: string;
199
+
200
+ constructor(data?: PartialMessage<IosServerNotificationRequest>);
201
+
202
+ static readonly runtime: typeof proto3;
203
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.IosServerNotificationRequest";
204
+ static readonly fields: FieldList;
205
+
206
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IosServerNotificationRequest;
207
+
208
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IosServerNotificationRequest;
209
+
210
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IosServerNotificationRequest;
211
+
212
+ static equals(a: IosServerNotificationRequest | PlainMessage<IosServerNotificationRequest> | undefined, b: IosServerNotificationRequest | PlainMessage<IosServerNotificationRequest> | undefined): boolean;
213
+ }
214
+
215
+ /**
216
+ * @generated from message ct_logic_uni_rev_payment.v1.IosServerNotificationResponse
217
+ */
218
+ export declare class IosServerNotificationResponse extends Message<IosServerNotificationResponse> {
219
+ constructor(data?: PartialMessage<IosServerNotificationResponse>);
220
+
221
+ static readonly runtime: typeof proto3;
222
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.IosServerNotificationResponse";
223
+ static readonly fields: FieldList;
224
+
225
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IosServerNotificationResponse;
226
+
227
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IosServerNotificationResponse;
228
+
229
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IosServerNotificationResponse;
230
+
231
+ static equals(a: IosServerNotificationResponse | PlainMessage<IosServerNotificationResponse> | undefined, b: IosServerNotificationResponse | PlainMessage<IosServerNotificationResponse> | undefined): boolean;
232
+ }
233
+
234
+ /**
235
+ * @generated from message ct_logic_uni_rev_payment.v1.CheckIapIosUserConsentRequest
236
+ */
237
+ export declare class CheckIapIosUserConsentRequest extends Message<CheckIapIosUserConsentRequest> {
238
+ /**
239
+ * @generated from field: int64 account_id = 1;
240
+ */
241
+ accountId: bigint;
242
+
243
+ constructor(data?: PartialMessage<CheckIapIosUserConsentRequest>);
244
+
245
+ static readonly runtime: typeof proto3;
246
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.CheckIapIosUserConsentRequest";
247
+ static readonly fields: FieldList;
248
+
249
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckIapIosUserConsentRequest;
250
+
251
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckIapIosUserConsentRequest;
252
+
253
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckIapIosUserConsentRequest;
254
+
255
+ static equals(a: CheckIapIosUserConsentRequest | PlainMessage<CheckIapIosUserConsentRequest> | undefined, b: CheckIapIosUserConsentRequest | PlainMessage<CheckIapIosUserConsentRequest> | undefined): boolean;
256
+ }
257
+
258
+ /**
259
+ * @generated from message ct_logic_uni_rev_payment.v1.CheckIapIosUserConsentResponse
260
+ */
261
+ export declare class CheckIapIosUserConsentResponse extends Message<CheckIapIosUserConsentResponse> {
262
+ /**
263
+ * @generated from field: bool user_consent = 1;
264
+ */
265
+ userConsent: boolean;
266
+
267
+ constructor(data?: PartialMessage<CheckIapIosUserConsentResponse>);
268
+
269
+ static readonly runtime: typeof proto3;
270
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.CheckIapIosUserConsentResponse";
271
+ static readonly fields: FieldList;
272
+
273
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckIapIosUserConsentResponse;
274
+
275
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckIapIosUserConsentResponse;
276
+
277
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckIapIosUserConsentResponse;
278
+
279
+ static equals(a: CheckIapIosUserConsentResponse | PlainMessage<CheckIapIosUserConsentResponse> | undefined, b: CheckIapIosUserConsentResponse | PlainMessage<CheckIapIosUserConsentResponse> | undefined): boolean;
280
+ }
281
+
package/iap_pb.js ADDED
@@ -0,0 +1,109 @@
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/iap.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.PostVerifyInAppIosRequest
12
+ */
13
+ export const PostVerifyInAppIosRequest = proto3.makeMessageType(
14
+ "ct_logic_uni_rev_payment.v1.PostVerifyInAppIosRequest",
15
+ () => [
16
+ { no: 1, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
17
+ { no: 2, name: "receipt_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
18
+ { no: 3, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
19
+ { no: 4, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
20
+ { no: 5, name: "campaign_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
21
+ { no: 6, name: "user_consent", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
22
+ ],
23
+ );
24
+
25
+ /**
26
+ * @generated from message ct_logic_uni_rev_payment.v1.PostVerifyInAppIosResponse
27
+ */
28
+ export const PostVerifyInAppIosResponse = proto3.makeMessageType(
29
+ "ct_logic_uni_rev_payment.v1.PostVerifyInAppIosResponse",
30
+ () => [
31
+ { no: 1, name: "status_code", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
32
+ { no: 2, name: "status_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
33
+ ],
34
+ );
35
+
36
+ /**
37
+ * @generated from message ct_logic_uni_rev_payment.v1.PostLogInAppIosRequest
38
+ */
39
+ export const PostLogInAppIosRequest = proto3.makeMessageType(
40
+ "ct_logic_uni_rev_payment.v1.PostLogInAppIosRequest",
41
+ () => [
42
+ { no: 1, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
43
+ { no: 2, name: "status", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
44
+ { no: 3, name: "message", kind: "message", T: PostLogInAppIosMessage },
45
+ ],
46
+ );
47
+
48
+ /**
49
+ * @generated from message ct_logic_uni_rev_payment.v1.PostLogInAppIosMessage
50
+ */
51
+ export const PostLogInAppIosMessage = proto3.makeMessageType(
52
+ "ct_logic_uni_rev_payment.v1.PostLogInAppIosMessage",
53
+ () => [
54
+ { no: 1, name: "log_level", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
55
+ { no: 2, name: "timestamp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
56
+ { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
+ { no: 4, name: "file", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
+ { no: 5, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
59
+ ],
60
+ );
61
+
62
+ /**
63
+ * @generated from message ct_logic_uni_rev_payment.v1.PostLogInAppIosResponse
64
+ */
65
+ export const PostLogInAppIosResponse = proto3.makeMessageType(
66
+ "ct_logic_uni_rev_payment.v1.PostLogInAppIosResponse",
67
+ () => [
68
+ { no: 1, name: "status", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
69
+ ],
70
+ );
71
+
72
+ /**
73
+ * @generated from message ct_logic_uni_rev_payment.v1.IosServerNotificationRequest
74
+ */
75
+ export const IosServerNotificationRequest = proto3.makeMessageType(
76
+ "ct_logic_uni_rev_payment.v1.IosServerNotificationRequest",
77
+ () => [
78
+ { no: 1, name: "signed_payload", kind: "scalar", T: 9 /* ScalarType.STRING */ },
79
+ ],
80
+ );
81
+
82
+ /**
83
+ * @generated from message ct_logic_uni_rev_payment.v1.IosServerNotificationResponse
84
+ */
85
+ export const IosServerNotificationResponse = proto3.makeMessageType(
86
+ "ct_logic_uni_rev_payment.v1.IosServerNotificationResponse",
87
+ [],
88
+ );
89
+
90
+ /**
91
+ * @generated from message ct_logic_uni_rev_payment.v1.CheckIapIosUserConsentRequest
92
+ */
93
+ export const CheckIapIosUserConsentRequest = proto3.makeMessageType(
94
+ "ct_logic_uni_rev_payment.v1.CheckIapIosUserConsentRequest",
95
+ () => [
96
+ { no: 1, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
97
+ ],
98
+ );
99
+
100
+ /**
101
+ * @generated from message ct_logic_uni_rev_payment.v1.CheckIapIosUserConsentResponse
102
+ */
103
+ export const CheckIapIosUserConsentResponse = proto3.makeMessageType(
104
+ "ct_logic_uni_rev_payment.v1.CheckIapIosUserConsentResponse",
105
+ () => [
106
+ { no: 1, name: "user_consent", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
107
+ ],
108
+ );
109
+
package/momo.proto ADDED
@@ -0,0 +1,92 @@
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
+ message MomoIPNRequest {
8
+ string partner_code = 1;
9
+ string order_id = 2;
10
+ string request_id = 3;
11
+ string order_info = 4;
12
+ string order_type = 5;
13
+ int64 trans_id = 6;
14
+ int64 amount = 7;
15
+ int32 result_code = 8;
16
+ string message = 9;
17
+ string pay_type = 10;
18
+ int64 response_time = 11;
19
+ string extra_data = 12;
20
+ string signature = 13;
21
+ string response_time_str = 14;
22
+ string access_key = 15;
23
+ }
24
+
25
+ message MomoIPNResponse {
26
+ string partner_code = 1;
27
+ string order_id = 2;
28
+ string request_id = 3;
29
+ int32 result_code = 4;
30
+ string message = 5;
31
+ int64 response_time = 6;
32
+ string extra_data = 7;
33
+ string signature = 8;
34
+ }
35
+
36
+ message GetMomoCheckPhoneRequest {
37
+ string phone = 1;
38
+ string checksum = 2;
39
+ }
40
+
41
+ message GetMomoCheckPhoneResponse {
42
+ string error = 1;
43
+ int32 status_code = 2;
44
+ string register_message = 3;
45
+ string register_link = 4;
46
+ string email = 5;
47
+ string full_name = 6;
48
+ string message_promotion = 7;
49
+ }
50
+
51
+ message GetMomoDongTotPackagesRequest {
52
+ string phone = 1;
53
+ string checksum = 2;
54
+ }
55
+
56
+ message GetMomoDongTotPackagesResponse {
57
+ string error = 1;
58
+ int32 status_code = 2;
59
+ string register_message = 3;
60
+ string register_link = 4;
61
+ string email = 5;
62
+ string full_name = 6;
63
+ string message_promotion = 7;
64
+ map<int64, MomoPackage> package_map = 8;
65
+ }
66
+
67
+ message MomoPackage {
68
+ int64 id = 1;
69
+ string name = 2;
70
+ int64 price = 3;
71
+ string icon = 4;
72
+ int64 promotion_id = 5;
73
+ }
74
+
75
+ message PostMomoTopupRequest {
76
+ string phone = 1;
77
+ int64 package_id = 2;
78
+ string trans_id = 3;
79
+ string ip = 4;
80
+ string checksum = 5;
81
+ }
82
+
83
+ message PostMomoTopupResponse {
84
+ string error = 1;
85
+ int32 status_code = 2;
86
+ string trans_id = 3;
87
+ string order_code = 4;
88
+ int64 order_id = 5;
89
+ int64 paid_amount = 6;
90
+ int64 free_amount = 7;
91
+ int64 amount = 8;
92
+ }