@longvansoftware/storefront-js-client 3.3.6 → 3.3.8

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.
@@ -45,8 +45,8 @@ exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
45
45
  }
46
46
  `;
47
47
  exports.PAYMENT_METHODS = (0, graphql_tag_1.gql) `
48
- query PaymentMethods($partnerCode: String) {
49
- paymentMethods(partnerCode: $partnerCode) {
48
+ query PaymentMethods {
49
+ paymentMethods {
50
50
  id
51
51
  code
52
52
  name
@@ -51,9 +51,7 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
51
51
  paymentMethods() {
52
52
  return __awaiter(this, void 0, void 0, function* () {
53
53
  const query = queries_1.PAYMENT_METHODS;
54
- const variables = {
55
- partnerCode: this.orgId,
56
- };
54
+ const variables = {};
57
55
  try {
58
56
  const response = yield this.graphqlQueryV3(query, variables);
59
57
  return response.paymentMethods;
@@ -38,7 +38,7 @@ export declare class ProductService extends Service {
38
38
  getDetailStores(): Promise<any>;
39
39
  getDetailStoresV2(storeId: string): Promise<any>;
40
40
  getProductImage: (productId: string) => Promise<any>;
41
- getCategory(typeBuild: string, level: number): Promise<any>;
41
+ getCategory(typeBuild: string, level: number, storeId: string): Promise<any>;
42
42
  getProduct(dataQuery: any): Promise<any>;
43
43
  updateProductTitle(productId: string, title: string, updatedBy: string): Promise<any>;
44
44
  updatePrice(productId: string, price: string, updatedBy: string): Promise<any>;
@@ -195,12 +195,12 @@ class ProductService extends serviceSDK_1.Service {
195
195
  }
196
196
  });
197
197
  }
198
- getCategory(typeBuild, level) {
198
+ getCategory(typeBuild, level, storeId) {
199
199
  return __awaiter(this, void 0, void 0, function* () {
200
200
  const query = queries_1.GET_CATEGORIES_QUERY;
201
201
  const variables = {
202
202
  partnerId: this.orgId,
203
- storeChannel: this.storeId,
203
+ storeChannel: storeId,
204
204
  typeBuild,
205
205
  level,
206
206
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.3.6",
3
+ "version": "3.3.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [