@shipengine/js-api 0.52.1 → 0.52.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/carriers/api.d.ts +1 -6
- package/index.js +0 -13
- package/index.mjs +0 -13
- package/package.json +1 -1
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, CarrierService, CarrierZone, PackageRatingType
|
|
3
|
+
import { Carrier, CarrierAutoFundingSettings, CarrierAutoFundingSettingsResponse, CarrierConnection, CarrierService, CarrierZone, PackageRatingType } from "./types";
|
|
4
4
|
/**
|
|
5
5
|
* # Carriers API module - /v1/carriers
|
|
6
6
|
*/
|
|
@@ -46,11 +46,6 @@ export declare class CarriersAPI {
|
|
|
46
46
|
* values for auto-funding. Auto-funding is disabled by default.
|
|
47
47
|
*/
|
|
48
48
|
getAutoFunding: (carrierId: string) => Promise<import("axios").AxiosResponse<CarrierAutoFundingSettingsResponse, any>>;
|
|
49
|
-
/**
|
|
50
|
-
* The `getWalletHistory` method retrieves the wallet transaction history for
|
|
51
|
-
* a ShipEngine wallet account.
|
|
52
|
-
*/
|
|
53
|
-
getWalletHistory: (startDate: Date, endDate: Date, page: number) => Promise<import("axios").AxiosResponse<WalletTransactionHistory, any>>;
|
|
54
49
|
/**
|
|
55
50
|
* The `getServices` method retrieves a list of shipping services that a given carrier offers.
|
|
56
51
|
*/
|
package/index.js
CHANGED
|
@@ -1078,19 +1078,6 @@ class CarriersAPI {
|
|
|
1078
1078
|
`/v1/carriers/${carrierId}/auto_funding`
|
|
1079
1079
|
);
|
|
1080
1080
|
};
|
|
1081
|
-
/**
|
|
1082
|
-
* The `getWalletHistory` method retrieves the wallet transaction history for
|
|
1083
|
-
* a ShipEngine wallet account.
|
|
1084
|
-
*/
|
|
1085
|
-
this.getWalletHistory = (startDate, endDate, page) => {
|
|
1086
|
-
return this.client.get(`/v1/carriers/wallet_history`, {
|
|
1087
|
-
params: {
|
|
1088
|
-
endDate: endDate.toISOString(),
|
|
1089
|
-
page,
|
|
1090
|
-
startDate: startDate.toISOString()
|
|
1091
|
-
}
|
|
1092
|
-
});
|
|
1093
|
-
};
|
|
1094
1081
|
/**
|
|
1095
1082
|
* The `getServices` method retrieves a list of shipping services that a given carrier offers.
|
|
1096
1083
|
*/
|
package/index.mjs
CHANGED
|
@@ -1074,19 +1074,6 @@ class CarriersAPI {
|
|
|
1074
1074
|
`/v1/carriers/${carrierId}/auto_funding`
|
|
1075
1075
|
);
|
|
1076
1076
|
};
|
|
1077
|
-
/**
|
|
1078
|
-
* The `getWalletHistory` method retrieves the wallet transaction history for
|
|
1079
|
-
* a ShipEngine wallet account.
|
|
1080
|
-
*/
|
|
1081
|
-
this.getWalletHistory = (startDate, endDate, page) => {
|
|
1082
|
-
return this.client.get(`/v1/carriers/wallet_history`, {
|
|
1083
|
-
params: {
|
|
1084
|
-
endDate: endDate.toISOString(),
|
|
1085
|
-
page,
|
|
1086
|
-
startDate: startDate.toISOString()
|
|
1087
|
-
}
|
|
1088
|
-
});
|
|
1089
|
-
};
|
|
1090
1077
|
/**
|
|
1091
1078
|
* The `getServices` method retrieves a list of shipping services that a given carrier offers.
|
|
1092
1079
|
*/
|