@shipengine/js-api 0.26.0 → 0.27.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/carriers/api.d.ts +3 -3
- package/carriers/types.d.ts +1 -1
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
- package/utilities/index.d.ts +0 -1
- package/utilities/types.d.ts +0 -0
package/carriers/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
2
|
import { Currency, Money } from "../payments";
|
|
3
|
-
import { Carrier, CarrierAutoFundingSettings, CarrierAutoFundingSettingsResponse, CarrierConnection,
|
|
3
|
+
import { Carrier, CarrierAutoFundingSettings, CarrierAutoFundingSettingsResponse, CarrierConnection, CarrierService, PackageRatingType, WalletTransactionHistory } from "./types";
|
|
4
4
|
export declare class CarriersAPI {
|
|
5
5
|
private client;
|
|
6
6
|
constructor(client: AxiosInstance);
|
|
@@ -18,8 +18,8 @@ export declare class CarriersAPI {
|
|
|
18
18
|
getServices: (carrierId: string) => Promise<import("axios").AxiosResponse<{
|
|
19
19
|
services: CarrierService[];
|
|
20
20
|
}, any>>;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
getPackageRatingGroup: (carrierId: string) => Promise<import("axios").AxiosResponse<{
|
|
22
|
+
packageRatingGroup: PackageRatingType[];
|
|
23
23
|
}, any>>;
|
|
24
24
|
getCountries: (carrierId: string) => Promise<import("axios").AxiosResponse<{
|
|
25
25
|
countries: string[];
|
package/carriers/types.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -955,9 +955,9 @@ class CarriersAPI {
|
|
|
955
955
|
this.getServices = (carrierId) => {
|
|
956
956
|
return this.client.get(`/v1/carriers/${carrierId}/services`);
|
|
957
957
|
};
|
|
958
|
-
this.
|
|
958
|
+
this.getPackageRatingGroup = (carrierId) => {
|
|
959
959
|
return this.client.get(
|
|
960
|
-
`/v1/carriers/${carrierId}/
|
|
960
|
+
`/v1/carriers/${carrierId}/package_rating_group`
|
|
961
961
|
);
|
|
962
962
|
};
|
|
963
963
|
this.getCountries = (carrierId) => {
|
package/index.mjs
CHANGED
|
@@ -951,9 +951,9 @@ class CarriersAPI {
|
|
|
951
951
|
this.getServices = (carrierId) => {
|
|
952
952
|
return this.client.get(`/v1/carriers/${carrierId}/services`);
|
|
953
953
|
};
|
|
954
|
-
this.
|
|
954
|
+
this.getPackageRatingGroup = (carrierId) => {
|
|
955
955
|
return this.client.get(
|
|
956
|
-
`/v1/carriers/${carrierId}/
|
|
956
|
+
`/v1/carriers/${carrierId}/package_rating_group`
|
|
957
957
|
);
|
|
958
958
|
};
|
|
959
959
|
this.getCountries = (carrierId) => {
|
package/package.json
CHANGED
package/utilities/index.d.ts
CHANGED
package/utilities/types.d.ts
DELETED
|
File without changes
|