@longvansoftware/storefront-js-client 2.4.6 → 2.4.7

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.
@@ -25,6 +25,7 @@ exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
25
25
  deeplink
26
26
  deeplinkMiniApp
27
27
  paymentId
28
+ gwConfigId
28
29
  }
29
30
  }
30
31
  `;
@@ -3,3 +3,4 @@ export declare const PAYMENT_METHODS: import("graphql").DocumentNode;
3
3
  export declare const GET_PAYMENT_METHOD_TYPES: import("graphql").DocumentNode;
4
4
  export declare const PAYMENT_INFO: import("graphql").DocumentNode;
5
5
  export declare const PAYMENT_STATUS: import("graphql").DocumentNode;
6
+ export declare const GW_CONFIG_DETAIL: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PAYMENT_STATUS = exports.PAYMENT_INFO = exports.GET_PAYMENT_METHOD_TYPES = exports.PAYMENT_METHODS = exports.PAYMENTS_BY_ORDERS = void 0;
3
+ exports.GW_CONFIG_DETAIL = exports.PAYMENT_STATUS = exports.PAYMENT_INFO = exports.GET_PAYMENT_METHOD_TYPES = exports.PAYMENT_METHODS = exports.PAYMENTS_BY_ORDERS = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
6
6
  query PaymentsByOrders($orderIds: [String!]!) {
@@ -164,3 +164,22 @@ exports.PAYMENT_STATUS = (0, graphql_tag_1.gql) `
164
164
  }
165
165
  }
166
166
  `;
167
+ exports.GW_CONFIG_DETAIL = (0, graphql_tag_1.gql) `
168
+ query GwConfigDetail ($configId: String!){
169
+ gwConfigDetail(configId: $configId){
170
+ id
171
+ name
172
+ methodCode
173
+ partnerCode
174
+ subMethodCode
175
+ gwPartnerCode
176
+ gwPartnerName
177
+ gwSubChannel
178
+ gwMethodVersion
179
+ accessKey
180
+ secretKey
181
+ description
182
+ activated
183
+ }
184
+ }
185
+ `;
@@ -8,4 +8,5 @@ export declare class PaymentServiceV2 extends Service {
8
8
  paymentInfo(paymentId: string): Promise<any>;
9
9
  confirmToGateway(paymentId: string, methodCode: string, returnUrl: string): Promise<any>;
10
10
  paymentStatus(paymentId: string): Promise<any>;
11
+ gwConfigDetail(configId: string): Promise<any>;
11
12
  }
@@ -126,5 +126,20 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
126
126
  }
127
127
  });
128
128
  }
129
+ gwConfigDetail(configId) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ const query = queries_1.GW_CONFIG_DETAIL;
132
+ const variables = {
133
+ configId,
134
+ };
135
+ try {
136
+ const response = yield this.graphqlQueryV3(query, variables);
137
+ return response.gwConfigDetail;
138
+ }
139
+ catch (error) {
140
+ throw error;
141
+ }
142
+ });
143
+ }
129
144
  }
130
145
  exports.PaymentServiceV2 = PaymentServiceV2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [