@longvansoftware/storefront-js-client 1.2.8 → 1.3.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.
@@ -5,6 +5,7 @@ const graphql_tag_1 = require("graphql-tag");
5
5
  exports.GET_PAYMENT_METHOD = (0, graphql_tag_1.gql) `
6
6
  query GetPaymentMethod($orgId: String!, $storeChannelId: String) {
7
7
  getPaymentMethod(orgId: $orgId, storeChannelId: $storeChannelId) {
8
+ id
8
9
  code
9
10
  name
10
11
  }
@@ -38,7 +38,7 @@ class PaymentService extends service_1.Service {
38
38
  const data = Object.assign({ orgId: this.orgId, storeId: this.storeId }, paymentOrderData);
39
39
  try {
40
40
  const response = yield this.graphqlMutation(mutations_1.CREATE_PAYMENT_ORDER_MUTATION, data);
41
- return response.data.createPaymentOrder;
41
+ return response.createPaymentOrder;
42
42
  }
43
43
  catch (error) {
44
44
  console.log(`Error in createPaymentOrder: ${error}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "1.2.8",
3
+ "version": "1.3.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [