@shipengine/js-api 0.53.0 → 0.54.0
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/index.js +6 -0
- package/index.mjs +6 -0
- package/order-sources/api.d.ts +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3539,6 +3539,12 @@ class OrderSourcesAPI {
|
|
|
3539
3539
|
this.refresh = (orderSourceId) => {
|
|
3540
3540
|
return this.client.put(`/v-beta/order_sources/${orderSourceId}/refresh`);
|
|
3541
3541
|
};
|
|
3542
|
+
/**
|
|
3543
|
+
* The `deactivate` method remove a specific connected order source by `orderSourceId`.
|
|
3544
|
+
*/
|
|
3545
|
+
this.deactivate = (orderSourceId) => {
|
|
3546
|
+
return this.client.put(`/v-beta/order_sources/${orderSourceId}/deactivate`);
|
|
3547
|
+
};
|
|
3542
3548
|
this.client = client;
|
|
3543
3549
|
}
|
|
3544
3550
|
}
|
package/index.mjs
CHANGED
|
@@ -3535,6 +3535,12 @@ class OrderSourcesAPI {
|
|
|
3535
3535
|
this.refresh = (orderSourceId) => {
|
|
3536
3536
|
return this.client.put(`/v-beta/order_sources/${orderSourceId}/refresh`);
|
|
3537
3537
|
};
|
|
3538
|
+
/**
|
|
3539
|
+
* The `deactivate` method remove a specific connected order source by `orderSourceId`.
|
|
3540
|
+
*/
|
|
3541
|
+
this.deactivate = (orderSourceId) => {
|
|
3542
|
+
return this.client.put(`/v-beta/order_sources/${orderSourceId}/deactivate`);
|
|
3543
|
+
};
|
|
3538
3544
|
this.client = client;
|
|
3539
3545
|
}
|
|
3540
3546
|
}
|
package/order-sources/api.d.ts
CHANGED
|
@@ -21,4 +21,8 @@ export declare class OrderSourcesAPI {
|
|
|
21
21
|
* This will pull in any `new orders` since the last order import.
|
|
22
22
|
*/
|
|
23
23
|
refresh: (orderSourceId: string) => Promise<import("axios").AxiosResponse<OrderSource, any>>;
|
|
24
|
+
/**
|
|
25
|
+
* The `deactivate` method remove a specific connected order source by `orderSourceId`.
|
|
26
|
+
*/
|
|
27
|
+
deactivate: (orderSourceId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
28
|
}
|