@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,184 @@
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/refund_order.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
+
11
+ /**
12
+ * @generated from message ct_logic_uni_rev_payment.v1.GetDongTotPackageForRefundRequest
13
+ */
14
+ export declare class GetDongTotPackageForRefundRequest extends Message<GetDongTotPackageForRefundRequest> {
15
+ /**
16
+ * @generated from field: int64 account_id = 1;
17
+ */
18
+ accountId: bigint;
19
+
20
+ /**
21
+ * @generated from field: int64 order_id = 2;
22
+ */
23
+ orderId: bigint;
24
+
25
+ /**
26
+ * payment should be able to extract this by itself. Legacy support due to payment not ready yet.
27
+ *
28
+ * @generated from field: string payment_type = 3;
29
+ */
30
+ paymentType: string;
31
+
32
+ /**
33
+ * without service fee
34
+ *
35
+ * @generated from field: int64 refund_amount = 4;
36
+ */
37
+ refundAmount: bigint;
38
+
39
+ /**
40
+ * @generated from field: int64 service_fee = 5;
41
+ */
42
+ serviceFee: bigint;
43
+
44
+ /**
45
+ * @generated from field: repeated int64 service_ids = 6;
46
+ */
47
+ serviceIds: bigint[];
48
+
49
+ /**
50
+ * without service fee
51
+ *
52
+ * @generated from field: repeated int64 service_refund_amounts = 7;
53
+ */
54
+ serviceRefundAmounts: bigint[];
55
+
56
+ /**
57
+ * @generated from field: repeated int64 service_fee_amounts = 8;
58
+ */
59
+ serviceFeeAmounts: bigint[];
60
+
61
+ constructor(data?: PartialMessage<GetDongTotPackageForRefundRequest>);
62
+
63
+ static readonly runtime: typeof proto3;
64
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.GetDongTotPackageForRefundRequest";
65
+ static readonly fields: FieldList;
66
+
67
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDongTotPackageForRefundRequest;
68
+
69
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDongTotPackageForRefundRequest;
70
+
71
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDongTotPackageForRefundRequest;
72
+
73
+ static equals(a: GetDongTotPackageForRefundRequest | PlainMessage<GetDongTotPackageForRefundRequest> | undefined, b: GetDongTotPackageForRefundRequest | PlainMessage<GetDongTotPackageForRefundRequest> | undefined): boolean;
74
+ }
75
+
76
+ /**
77
+ * @generated from message ct_logic_uni_rev_payment.v1.GetDongTotPackageForRefundResponse
78
+ */
79
+ export declare class GetDongTotPackageForRefundResponse extends Message<GetDongTotPackageForRefundResponse> {
80
+ /**
81
+ * deprecated
82
+ *
83
+ * @generated from field: int64 package_id = 1;
84
+ */
85
+ packageId: bigint;
86
+
87
+ /**
88
+ * @generated from field: repeated ct_logic_uni_rev_payment.v1.DongtotPackageWithTypeAndExpirationTime packages = 2;
89
+ */
90
+ packages: DongtotPackageWithTypeAndExpirationTime[];
91
+
92
+ constructor(data?: PartialMessage<GetDongTotPackageForRefundResponse>);
93
+
94
+ static readonly runtime: typeof proto3;
95
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.GetDongTotPackageForRefundResponse";
96
+ static readonly fields: FieldList;
97
+
98
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDongTotPackageForRefundResponse;
99
+
100
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDongTotPackageForRefundResponse;
101
+
102
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDongTotPackageForRefundResponse;
103
+
104
+ static equals(a: GetDongTotPackageForRefundResponse | PlainMessage<GetDongTotPackageForRefundResponse> | undefined, b: GetDongTotPackageForRefundResponse | PlainMessage<GetDongTotPackageForRefundResponse> | undefined): boolean;
105
+ }
106
+
107
+ /**
108
+ * @generated from message ct_logic_uni_rev_payment.v1.DongtotPackageWithTypeAndExpirationTime
109
+ */
110
+ export declare class DongtotPackageWithTypeAndExpirationTime extends Message<DongtotPackageWithTypeAndExpirationTime> {
111
+ /**
112
+ * @generated from field: int64 package_id = 1;
113
+ */
114
+ packageId: bigint;
115
+
116
+ /**
117
+ * @generated from field: string dt_type = 2;
118
+ */
119
+ dtType: string;
120
+
121
+ /**
122
+ * @generated from field: int64 priority = 3;
123
+ */
124
+ priority: bigint;
125
+
126
+ /**
127
+ * @generated from field: google.protobuf.Timestamp expiration_time = 4;
128
+ */
129
+ expirationTime?: Timestamp;
130
+
131
+ /**
132
+ * @generated from field: int64 amount = 5;
133
+ */
134
+ amount: bigint;
135
+
136
+ /**
137
+ * @generated from field: repeated ct_logic_uni_rev_payment.v1.DetailedRefundInfo detailed_refund_info = 6;
138
+ */
139
+ detailedRefundInfo: DetailedRefundInfo[];
140
+
141
+ constructor(data?: PartialMessage<DongtotPackageWithTypeAndExpirationTime>);
142
+
143
+ static readonly runtime: typeof proto3;
144
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.DongtotPackageWithTypeAndExpirationTime";
145
+ static readonly fields: FieldList;
146
+
147
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DongtotPackageWithTypeAndExpirationTime;
148
+
149
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DongtotPackageWithTypeAndExpirationTime;
150
+
151
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DongtotPackageWithTypeAndExpirationTime;
152
+
153
+ static equals(a: DongtotPackageWithTypeAndExpirationTime | PlainMessage<DongtotPackageWithTypeAndExpirationTime> | undefined, b: DongtotPackageWithTypeAndExpirationTime | PlainMessage<DongtotPackageWithTypeAndExpirationTime> | undefined): boolean;
154
+ }
155
+
156
+ /**
157
+ * @generated from message ct_logic_uni_rev_payment.v1.DetailedRefundInfo
158
+ */
159
+ export declare class DetailedRefundInfo extends Message<DetailedRefundInfo> {
160
+ /**
161
+ * @generated from field: int64 transaction_detail_id = 1;
162
+ */
163
+ transactionDetailId: bigint;
164
+
165
+ /**
166
+ * @generated from field: int64 refund_amount = 2;
167
+ */
168
+ refundAmount: bigint;
169
+
170
+ constructor(data?: PartialMessage<DetailedRefundInfo>);
171
+
172
+ static readonly runtime: typeof proto3;
173
+ static readonly typeName = "ct_logic_uni_rev_payment.v1.DetailedRefundInfo";
174
+ static readonly fields: FieldList;
175
+
176
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DetailedRefundInfo;
177
+
178
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DetailedRefundInfo;
179
+
180
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DetailedRefundInfo;
181
+
182
+ static equals(a: DetailedRefundInfo | PlainMessage<DetailedRefundInfo> | undefined, b: DetailedRefundInfo | PlainMessage<DetailedRefundInfo> | undefined): boolean;
183
+ }
184
+
@@ -0,0 +1,63 @@
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/refund_order.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
+
10
+ /**
11
+ * @generated from message ct_logic_uni_rev_payment.v1.GetDongTotPackageForRefundRequest
12
+ */
13
+ export const GetDongTotPackageForRefundRequest = proto3.makeMessageType(
14
+ "ct_logic_uni_rev_payment.v1.GetDongTotPackageForRefundRequest",
15
+ () => [
16
+ { no: 1, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
17
+ { no: 2, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
18
+ { no: 3, name: "payment_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
19
+ { no: 4, name: "refund_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
20
+ { no: 5, name: "service_fee", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
21
+ { no: 6, name: "service_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
22
+ { no: 7, name: "service_refund_amounts", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
23
+ { no: 8, name: "service_fee_amounts", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
24
+ ],
25
+ );
26
+
27
+ /**
28
+ * @generated from message ct_logic_uni_rev_payment.v1.GetDongTotPackageForRefundResponse
29
+ */
30
+ export const GetDongTotPackageForRefundResponse = proto3.makeMessageType(
31
+ "ct_logic_uni_rev_payment.v1.GetDongTotPackageForRefundResponse",
32
+ () => [
33
+ { no: 1, name: "package_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
34
+ { no: 2, name: "packages", kind: "message", T: DongtotPackageWithTypeAndExpirationTime, repeated: true },
35
+ ],
36
+ );
37
+
38
+ /**
39
+ * @generated from message ct_logic_uni_rev_payment.v1.DongtotPackageWithTypeAndExpirationTime
40
+ */
41
+ export const DongtotPackageWithTypeAndExpirationTime = proto3.makeMessageType(
42
+ "ct_logic_uni_rev_payment.v1.DongtotPackageWithTypeAndExpirationTime",
43
+ () => [
44
+ { no: 1, name: "package_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
45
+ { no: 2, name: "dt_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
46
+ { no: 3, name: "priority", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
47
+ { no: 4, name: "expiration_time", kind: "message", T: Timestamp },
48
+ { no: 5, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
49
+ { no: 6, name: "detailed_refund_info", kind: "message", T: DetailedRefundInfo, repeated: true },
50
+ ],
51
+ );
52
+
53
+ /**
54
+ * @generated from message ct_logic_uni_rev_payment.v1.DetailedRefundInfo
55
+ */
56
+ export const DetailedRefundInfo = proto3.makeMessageType(
57
+ "ct_logic_uni_rev_payment.v1.DetailedRefundInfo",
58
+ () => [
59
+ { no: 1, name: "transaction_detail_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
60
+ { no: 2, name: "refund_amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
61
+ ],
62
+ );
63
+
@@ -0,0 +1,50 @@
1
+ const fs = require('fs').promises;
2
+ const path = require('path');
3
+
4
+ async function modifyPackageJson() {
5
+ const args = process.argv.slice(2);
6
+ if (args.length < 4) {
7
+ console.error('Usage: node modify_package_json.js <packageExtractPath> <newName> <newVersion> <verdaccioHostname>');
8
+ process.exit(1);
9
+ }
10
+
11
+ const packageExtractPath = args[0]; // e.g., /tmp/npm-migration-xxxxxx/package
12
+ const newName = args[1];
13
+ const newVersion = args[2];
14
+ const verdaccioHostname = args[3]; // e.g., npmjs.cmco.io
15
+
16
+ const packageJsonPath = path.join(packageExtractPath, 'package.json');
17
+
18
+ try {
19
+ console.log(`Reading package.json from: ${packageJsonPath}`);
20
+ let packageJsonContent = await fs.readFile(packageJsonPath, 'utf8');
21
+ let packageJson = JSON.parse(packageJsonContent);
22
+
23
+ console.log(`Original name: ${packageJson.name}, version: ${packageJson.version}`);
24
+
25
+ packageJson.name = newName;
26
+ packageJson.version = newVersion;
27
+
28
+ // Remove publishConfig if it points to the old Verdaccio registry
29
+ if (packageJson.publishConfig && packageJson.publishConfig.registry) {
30
+ try {
31
+ const publishRegistryUrl = new URL(packageJson.publishConfig.registry);
32
+ if (publishRegistryUrl.hostname === verdaccioHostname) {
33
+ delete packageJson.publishConfig;
34
+ console.log(`Removed publishConfig pointing to ${verdaccioHostname}`);
35
+ }
36
+ } catch (e) {
37
+ console.warn(`Could not parse publishConfig.registry: ${packageJson.publishConfig.registry}. Skipping removal.`);
38
+ }
39
+ }
40
+
41
+ await fs.writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2));
42
+ console.log(`Successfully modified package.json. New name: ${packageJson.name}, new version: ${packageJson.version}`);
43
+
44
+ } catch (error) {
45
+ console.error(`Error modifying package.json at ${packageJsonPath}:`, error);
46
+ process.exit(1);
47
+ }
48
+ }
49
+
50
+ modifyPackageJson();