@longvansoftware/storefront-js-client 4.7.5 → 4.7.6

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.
@@ -7,5 +7,6 @@ export declare const GW_CONFIG_DETAIL: import("graphql").DocumentNode;
7
7
  export declare const GET_PAYMENT_METHOD_TITLES: import("graphql").DocumentNode;
8
8
  export declare const GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE: import("graphql").DocumentNode;
9
9
  export declare const GET_PAYMENT_METHOD_TYPES_V2: import("graphql").DocumentNode;
10
+ export declare const GET_PAYMENT_METHOD_TYPES_WITH_GATEWAY_CONFIG: import("graphql").DocumentNode;
10
11
  export declare const GET_TRANSFER_INFO: import("graphql").DocumentNode;
11
12
  export declare const PAYMENT_METHODS_BY_PARTNER: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PAYMENT_METHODS_BY_PARTNER = exports.GET_TRANSFER_INFO = exports.GET_PAYMENT_METHOD_TYPES_V2 = exports.GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE = exports.GET_PAYMENT_METHOD_TITLES = exports.GW_CONFIG_DETAIL = exports.PAYMENT_STATUS = exports.PAYMENT_INFO = exports.GET_PAYMENT_METHOD_TYPES = exports.PAYMENT_METHODS = exports.PAYMENTS_BY_ORDERS = void 0;
3
+ exports.PAYMENT_METHODS_BY_PARTNER = exports.GET_TRANSFER_INFO = exports.GET_PAYMENT_METHOD_TYPES_WITH_GATEWAY_CONFIG = exports.GET_PAYMENT_METHOD_TYPES_V2 = exports.GET_PAYEMNT_GATEWAYS_BY_METHOD_CODE = exports.GET_PAYMENT_METHOD_TITLES = 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!]!) {
@@ -255,6 +255,44 @@ exports.GET_PAYMENT_METHOD_TYPES_V2 = (0, graphql_tag_1.gql) `
255
255
  }
256
256
  }
257
257
  `;
258
+ exports.GET_PAYMENT_METHOD_TYPES_WITH_GATEWAY_CONFIG = (0, graphql_tag_1.gql) `
259
+ query GetPaymentMethodTypesWithGatewayConfig(
260
+ $partnerId: String!
261
+ $storeId: String!
262
+ ) {
263
+ getPaymentMethodTypes(partnerId: $partnerId, storeId: $storeId) {
264
+ code
265
+ name
266
+ description
267
+ image
268
+ storeActive
269
+ paymentGatewayConfig {
270
+ id
271
+ methodCode
272
+ partnerCode
273
+ subMethodCode
274
+ gwPartnerCode
275
+ gwPartnerName
276
+ gwPaymentMethod
277
+ gwSubChannel
278
+ gwMethodVersion
279
+ hashAlgorithm
280
+ accessKey
281
+ secretKey
282
+ responseUrl
283
+ requestUrl
284
+ methodType
285
+ publicKey
286
+ redirectUrl
287
+ activated
288
+ paymentRecordingMethod
289
+ userId
290
+ name
291
+ description
292
+ }
293
+ }
294
+ }
295
+ `;
258
296
  exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
259
297
  query GetTransferInfo(
260
298
  $partnerId: String!
@@ -25,4 +25,5 @@ export declare class PaymentServiceV2 extends Service {
25
25
  email?: string;
26
26
  }): Promise<any>;
27
27
  paymentMethodsByPartner(partnerCode?: string): Promise<any>;
28
+ getPaymentMethodTypesWithGatewayConfig(partnerId?: string, storeId?: string): Promise<any>;
28
29
  }
@@ -286,5 +286,18 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
286
286
  }
287
287
  });
288
288
  }
289
+ getPaymentMethodTypesWithGatewayConfig(partnerId, storeId) {
290
+ return __awaiter(this, void 0, void 0, function* () {
291
+ const query = queries_1.GET_PAYMENT_METHOD_TYPES_WITH_GATEWAY_CONFIG;
292
+ const variables = { partnerId, storeId };
293
+ try {
294
+ const response = yield this.graphqlQueryV3(query, variables);
295
+ return response.getPaymentMethodTypes;
296
+ }
297
+ catch (error) {
298
+ throw error;
299
+ }
300
+ });
301
+ }
289
302
  }
290
303
  exports.PaymentServiceV2 = PaymentServiceV2;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.7.5",
3
+ "version": "4.7.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [