@longvansoftware/storefront-js-client 2.5.4 → 2.5.5

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.
@@ -30,8 +30,18 @@ exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
30
30
  }
31
31
  `;
32
32
  exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = (0, graphql_tag_1.gql) `
33
- mutation ConfirmPaymentSuccessManual($paymentId: String!, $transactionNo: String!, $confirmBy: String!) {
34
- confirmPaymentSuccessManual(paymentId: $paymentId, transactionNo: $transactionNo, confirmBy: $confirmBy) {
33
+ mutation ConfirmPaymentSuccessManual(
34
+ $paymentId: String!
35
+ $transactionNo: String!
36
+ $note: String
37
+ $confirmBy: String!
38
+ ) {
39
+ confirmPaymentSuccessManual(
40
+ paymentId: $paymentId
41
+ transactionNo: $transactionNo
42
+ note: $note
43
+ confirmBy: $confirmBy
44
+ ) {
35
45
  code
36
46
  message
37
47
  data
@@ -9,5 +9,5 @@ export declare class PaymentServiceV2 extends Service {
9
9
  confirmToGateway(paymentId: string, methodCode: string, returnUrl: string): Promise<any>;
10
10
  paymentStatus(paymentId: string): Promise<any>;
11
11
  gwConfigDetail(configId: string): Promise<any>;
12
- confirmPaymentSuccessManual(paymentId: string, transactionNo: string, confirmBy: string): Promise<any>;
12
+ confirmPaymentSuccessManual(paymentId: string, transactionNo: string, note: string, confirmBy: string): Promise<any>;
13
13
  }
@@ -141,12 +141,13 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
141
141
  }
142
142
  });
143
143
  }
144
- confirmPaymentSuccessManual(paymentId, transactionNo, confirmBy) {
144
+ confirmPaymentSuccessManual(paymentId, transactionNo, note, confirmBy) {
145
145
  return __awaiter(this, void 0, void 0, function* () {
146
146
  const mutation = mutations_1.CONFIRM_PAYMENT_SUCCESS_MANUAL;
147
147
  const variables = {
148
148
  paymentId: paymentId,
149
149
  transactionNo: transactionNo,
150
+ note: note,
150
151
  confirmBy: confirmBy,
151
152
  };
152
153
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [