@chotot/ct-logic-uni-rev-order-v1 1.197.0 → 1.201.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.
@@ -16,13 +16,14 @@ message RequestChangeOrderStatusRequest {
16
16
  }];
17
17
  string payment_method = 3 [(validate.rules).string = {
18
18
  min_len: 1,
19
- in: ["virtual_account"],
19
+ in: ["virtual_account", "virtual_account_cake", "bank_transfer"],
20
20
  }];
21
21
  string customer_ticket_id = 4 [(validate.rules).string = {min_len: 1}];
22
22
  string admin_id = 5 [(validate.rules).string = {min_len: 1}];
23
23
  optional string remark = 6;
24
24
  optional string transaction_id = 7;
25
25
  repeated string credentials = 8;
26
+ int64 amount = 9;
26
27
  }
27
28
 
28
29
  message RequestChangeOrderStatusResponse {}
@@ -52,6 +52,11 @@ export declare class RequestChangeOrderStatusRequest extends Message<RequestChan
52
52
  */
53
53
  credentials: string[];
54
54
 
55
+ /**
56
+ * @generated from field: int64 amount = 9;
57
+ */
58
+ amount: bigint;
59
+
55
60
  constructor(data?: PartialMessage<RequestChangeOrderStatusRequest>);
56
61
 
57
62
  static readonly runtime: typeof proto3;
@@ -21,6 +21,7 @@ export const RequestChangeOrderStatusRequest = proto3.makeMessageType(
21
21
  { no: 6, name: "remark", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
22
22
  { no: 7, name: "transaction_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
23
23
  { no: 8, name: "credentials", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
24
+ { no: 9, name: "amount", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
24
25
  ],
25
26
  );
26
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chotot/ct-logic-uni-rev-order-v1",
3
- "version": "1.197.0",
3
+ "version": "1.201.0",
4
4
  "dependencies": {
5
5
  "@bufbuild/protobuf": "1.3.1",
6
6
  "@connectrpc/connect": "1.0.0",
@@ -140,8 +140,15 @@ message WarningPopup {
140
140
  }
141
141
 
142
142
  message GetOrderInfoCheckoutRequest {
143
- string payment_code = 1 [ (validate.rules).string = {min_len : 1} ];
143
+ string payment_code = 1 [(validate.rules).string = {
144
+ ignore_empty: true,
145
+ min_len: 1,
146
+ }];
144
147
  int64 account_id = 2 [ (validate.rules).int64 = {gte : 0} ];
148
+ int64 order_id = 3 [(validate.rules).int64 = {
149
+ ignore_empty: true,
150
+ gt: 0,
151
+ }];
145
152
  }
146
153
 
147
154
  message GetOrderInfoCheckoutResponse {
@@ -558,6 +558,11 @@ export declare class GetOrderInfoCheckoutRequest extends Message<GetOrderInfoChe
558
558
  */
559
559
  accountId: bigint;
560
560
 
561
+ /**
562
+ * @generated from field: int64 order_id = 3;
563
+ */
564
+ orderId: bigint;
565
+
561
566
  constructor(data?: PartialMessage<GetOrderInfoCheckoutRequest>);
562
567
 
563
568
  static readonly runtime: typeof proto3;
@@ -196,6 +196,7 @@ export const GetOrderInfoCheckoutRequest = proto3.makeMessageType(
196
196
  () => [
197
197
  { no: 1, name: "payment_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
198
198
  { no: 2, name: "account_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
199
+ { no: 3, name: "order_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
199
200
  ],
200
201
  );
201
202