@longvansoftware/storefront-js-client 2.8.1 → 2.8.2

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.
@@ -122,7 +122,7 @@ exports.CREATE_VAT_INFO = (0, graphql_tag_1.gql) `
122
122
  $taxCode: String!
123
123
  $address: String!
124
124
  $invoiceReceiveEmail1: String
125
- $ownerPartyId: String
125
+ $ownerPartyId: String!
126
126
  $createdBy: String!
127
127
  ) {
128
128
  createVatInfo(
@@ -22,5 +22,5 @@ export declare class UserService extends Service {
22
22
  getWards(districtId: string): Promise<any>;
23
23
  getPersonByPartyId(partyId: string): Promise<any>;
24
24
  getVatInfoByOwnerPartyId(ownerPartyId: string): Promise<any>;
25
- createVatInfo(company: string, taxCode: string, invoiceReceiveEmail1: string, ownerPartyId: string, address: string, createdBy: string): Promise<void>;
25
+ createVatInfo(company: string, taxCode: string, invoiceReceiveEmail1: string, ownerPartyId: string, address: string, createdBy: string): Promise<any>;
26
26
  }
@@ -382,6 +382,13 @@ class UserService extends serviceSDK_1.Service {
382
382
  address,
383
383
  createdBy,
384
384
  };
385
+ try {
386
+ const response = yield this.graphqlMutation(mutation, variables);
387
+ return response.createVatInfo;
388
+ }
389
+ catch (error) {
390
+ throw error;
391
+ }
385
392
  });
386
393
  }
387
394
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [