@devite/shopware-client 1.7.0 → 1.7.1
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.
- package/dist/index.cjs +5 -8
- package/dist/index.mjs +5 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1977,15 +1977,12 @@ class DocumentClient extends Client {
|
|
|
1977
1977
|
* @throws {ShopwareError | import('ofetch').FetchError} if the request failed
|
|
1978
1978
|
*/
|
|
1979
1979
|
async downloadAsGuest(id, deepLinkCode, email, billingAddressZipCode) {
|
|
1980
|
-
const response = await this.post(
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
email,
|
|
1985
|
-
zipcode: billingAddressZipCode
|
|
1986
|
-
})
|
|
1980
|
+
const response = await this.post(`/document/download/${id}/${deepLinkCode}`, {
|
|
1981
|
+
body: new JsonPayload({
|
|
1982
|
+
email,
|
|
1983
|
+
zipcode: billingAddressZipCode
|
|
1987
1984
|
})
|
|
1988
|
-
);
|
|
1985
|
+
});
|
|
1989
1986
|
if (response.statusCode === 200)
|
|
1990
1987
|
return response.body.data;
|
|
1991
1988
|
throw new ShopwareError("Failed to download document as guest", response);
|
package/dist/index.mjs
CHANGED
|
@@ -1975,15 +1975,12 @@ class DocumentClient extends Client {
|
|
|
1975
1975
|
* @throws {ShopwareError | import('ofetch').FetchError} if the request failed
|
|
1976
1976
|
*/
|
|
1977
1977
|
async downloadAsGuest(id, deepLinkCode, email, billingAddressZipCode) {
|
|
1978
|
-
const response = await this.post(
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
email,
|
|
1983
|
-
zipcode: billingAddressZipCode
|
|
1984
|
-
})
|
|
1978
|
+
const response = await this.post(`/document/download/${id}/${deepLinkCode}`, {
|
|
1979
|
+
body: new JsonPayload({
|
|
1980
|
+
email,
|
|
1981
|
+
zipcode: billingAddressZipCode
|
|
1985
1982
|
})
|
|
1986
|
-
);
|
|
1983
|
+
});
|
|
1987
1984
|
if (response.statusCode === 200)
|
|
1988
1985
|
return response.body.data;
|
|
1989
1986
|
throw new ShopwareError("Failed to download document as guest", response);
|