@shipengine/js-api 0.42.1 → 0.43.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/package.json +1 -1
- package/shipping-rules/api.d.ts +4 -0
package/index.js
CHANGED
|
@@ -3705,6 +3705,12 @@ class ShippingRulesAPI {
|
|
|
3705
3705
|
this.list = () => {
|
|
3706
3706
|
return this.client.get(`/v1/shipping_rules`);
|
|
3707
3707
|
};
|
|
3708
|
+
/**
|
|
3709
|
+
* The `get` method retrieves a specific shipping rule by `shippingRuleId`.
|
|
3710
|
+
*/
|
|
3711
|
+
this.get = (shippingRuleId) => {
|
|
3712
|
+
return this.client.get(`/v1/shipping_rules/${shippingRuleId}`);
|
|
3713
|
+
};
|
|
3708
3714
|
/**
|
|
3709
3715
|
* The `create` method creates a new shipping rule for a given user.
|
|
3710
3716
|
*/
|
package/index.mjs
CHANGED
|
@@ -3701,6 +3701,12 @@ class ShippingRulesAPI {
|
|
|
3701
3701
|
this.list = () => {
|
|
3702
3702
|
return this.client.get(`/v1/shipping_rules`);
|
|
3703
3703
|
};
|
|
3704
|
+
/**
|
|
3705
|
+
* The `get` method retrieves a specific shipping rule by `shippingRuleId`.
|
|
3706
|
+
*/
|
|
3707
|
+
this.get = (shippingRuleId) => {
|
|
3708
|
+
return this.client.get(`/v1/shipping_rules/${shippingRuleId}`);
|
|
3709
|
+
};
|
|
3704
3710
|
/**
|
|
3705
3711
|
* The `create` method creates a new shipping rule for a given user.
|
|
3706
3712
|
*/
|
package/package.json
CHANGED
package/shipping-rules/api.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ export declare class ShippingRulesAPI {
|
|
|
12
12
|
list: () => Promise<import("axios").AxiosResponse<{
|
|
13
13
|
shippingRules: ShippingRule[];
|
|
14
14
|
}, any>>;
|
|
15
|
+
/**
|
|
16
|
+
* The `get` method retrieves a specific shipping rule by `shippingRuleId`.
|
|
17
|
+
*/
|
|
18
|
+
get: (shippingRuleId: string) => Promise<import("axios").AxiosResponse<ShippingRule, any>>;
|
|
15
19
|
/**
|
|
16
20
|
* The `create` method creates a new shipping rule for a given user.
|
|
17
21
|
*/
|