@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.
|
@@ -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<
|
|
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
|
}
|