@djust-b2b/djust-front-sdk 2.17.1 → 2.17.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.
package/lib/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare const DjustSDK: {
|
|
|
44
44
|
updateCommercialOrderBillingInformation({ orderId, billingAddressId, }: import("./interfaces").UpdateCommercialOrderBillingInformationParameters): Promise<void>;
|
|
45
45
|
setCommercialOrderStatusAsCreated({ orderId, paymentInfo, }: import("./interfaces").SetCommercialOrderStatusAsCreatedParameters): Promise<void>;
|
|
46
46
|
setCommercialOrderStatusAsOnHold({ orderId, }: import("./interfaces").SetCommercialOrderStatusAsOnHoldParameters): Promise<void>;
|
|
47
|
-
syncCommercialOrder(orderId: string): Promise<
|
|
47
|
+
syncCommercialOrder(orderId: string): Promise<unknown>;
|
|
48
48
|
getCommercialOrderPaymentPageUrl({ orderId, paymentOption, paymentProvider, }: import("./interfaces").GetCommercialOrderPaymentPageUrlParameters): Promise<string>;
|
|
49
49
|
createCommercialOrderPreauthorization({ orderId, paymentProvider, authorId, browserInfo, ipAddress, paymentCardInfo, }: import("./interfaces").CreateCommercialOrderPreauthorizationParameters): Promise<import("./interfaces").CreateCommercialOrderPreauthorizationResponse>;
|
|
50
50
|
updateCommercialOrderShippingAddress({ orderId, shippingAddressId, }: import("./interfaces").UpdateCommercialOrderShippingAddressParameters): Promise<void>;
|
|
@@ -380,9 +380,9 @@ export declare function setCommercialOrderStatusAsOnHold({ orderId, }: SetCommer
|
|
|
380
380
|
* ```
|
|
381
381
|
*
|
|
382
382
|
* @param {string} orderId - The ID of the commercial order to synchronize
|
|
383
|
-
* @returns {Promise<
|
|
383
|
+
* @returns {Promise<unknown>} A promise resolving when the synchronization is triggered
|
|
384
384
|
*/
|
|
385
|
-
export declare function syncCommercialOrder(orderId: string): Promise<
|
|
385
|
+
export declare function syncCommercialOrder(orderId: string): Promise<unknown>;
|
|
386
386
|
/**
|
|
387
387
|
* 🚚 Gets payment page url for a specific order.
|
|
388
388
|
*
|
|
@@ -529,11 +529,11 @@ async function setCommercialOrderStatusAsOnHold({ orderId, }) {
|
|
|
529
529
|
* ```
|
|
530
530
|
*
|
|
531
531
|
* @param {string} orderId - The ID of the commercial order to synchronize
|
|
532
|
-
* @returns {Promise<
|
|
532
|
+
* @returns {Promise<unknown>} A promise resolving when the synchronization is triggered
|
|
533
533
|
*/
|
|
534
534
|
async function syncCommercialOrder(orderId) {
|
|
535
535
|
(0, parameters_validation_1.required)({ orderId });
|
|
536
|
-
await (0, fetch_instance_1.enhancedFetch)({
|
|
536
|
+
return await (0, fetch_instance_1.enhancedFetch)({
|
|
537
537
|
method: "PUT",
|
|
538
538
|
path: `/v1/shop/commercial-orders/${orderId}/sync`,
|
|
539
539
|
body: JSON.stringify({}),
|