@shipengine/alchemy 5.4.14 → 5.4.15
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 +19 -0
- package/index.mjs +19 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -13953,6 +13953,25 @@ class ConnectionsAPI {
|
|
|
13953
13953
|
`/v1/connections/carriers/${carrierCode}/services`
|
|
13954
13954
|
);
|
|
13955
13955
|
};
|
|
13956
|
+
/**
|
|
13957
|
+
* The `getCarrierSettings` method retrieves the settings for a given carrier,
|
|
13958
|
+
* identified by the `carrierName` and `carrierCode`.
|
|
13959
|
+
*/
|
|
13960
|
+
this.getCarrierSettings = (carrierName, carrierCode) => {
|
|
13961
|
+
return this.client.get(
|
|
13962
|
+
`/v1/connections/carriers/${carrierName}/${carrierCode}/settings`
|
|
13963
|
+
);
|
|
13964
|
+
};
|
|
13965
|
+
/**
|
|
13966
|
+
* The `updateCarrierSettings` method updates the settings for a given carrier,
|
|
13967
|
+
* identified by the `carrierName` and `carrierCode`.
|
|
13968
|
+
*/
|
|
13969
|
+
this.updateCarrierSettings = (carrierName, carrierCode, formData) => {
|
|
13970
|
+
return this.client.put(
|
|
13971
|
+
`/v1/connections/carriers/${carrierName}/${carrierCode}/settings`,
|
|
13972
|
+
formData
|
|
13973
|
+
);
|
|
13974
|
+
};
|
|
13956
13975
|
this.client = client;
|
|
13957
13976
|
}
|
|
13958
13977
|
}
|
package/index.mjs
CHANGED
|
@@ -13931,6 +13931,25 @@ class ConnectionsAPI {
|
|
|
13931
13931
|
`/v1/connections/carriers/${carrierCode}/services`
|
|
13932
13932
|
);
|
|
13933
13933
|
};
|
|
13934
|
+
/**
|
|
13935
|
+
* The `getCarrierSettings` method retrieves the settings for a given carrier,
|
|
13936
|
+
* identified by the `carrierName` and `carrierCode`.
|
|
13937
|
+
*/
|
|
13938
|
+
this.getCarrierSettings = (carrierName, carrierCode) => {
|
|
13939
|
+
return this.client.get(
|
|
13940
|
+
`/v1/connections/carriers/${carrierName}/${carrierCode}/settings`
|
|
13941
|
+
);
|
|
13942
|
+
};
|
|
13943
|
+
/**
|
|
13944
|
+
* The `updateCarrierSettings` method updates the settings for a given carrier,
|
|
13945
|
+
* identified by the `carrierName` and `carrierCode`.
|
|
13946
|
+
*/
|
|
13947
|
+
this.updateCarrierSettings = (carrierName, carrierCode, formData) => {
|
|
13948
|
+
return this.client.put(
|
|
13949
|
+
`/v1/connections/carriers/${carrierName}/${carrierCode}/settings`,
|
|
13950
|
+
formData
|
|
13951
|
+
);
|
|
13952
|
+
};
|
|
13934
13953
|
this.client = client;
|
|
13935
13954
|
}
|
|
13936
13955
|
}
|