@shipengine/js-api 0.26.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AxiosInstance } from "axios";
2
2
  import { Currency, Money } from "../payments";
3
- import { Carrier, CarrierAutoFundingSettings, CarrierAutoFundingSettingsResponse, CarrierConnection, CarrierRatePackageFormat, CarrierService, WalletTransactionHistory } from "./types";
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
- getRatePackageFormats: (carrierId: string) => Promise<import("axios").AxiosResponse<{
22
- ratePackageFormats: CarrierRatePackageFormat[];
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[];
@@ -51,7 +51,7 @@ export interface CarrierPackage {
51
51
  /**
52
52
  * @category Entities
53
53
  */
54
- export interface CarrierRatePackageFormat {
54
+ export interface PackageRatingType {
55
55
  apiCode?: string;
56
56
  carrierPackageTypeCode?: string;
57
57
  description: string;
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.getRatePackageFormats = (carrierId) => {
958
+ this.getPackageRatingGroup = (carrierId) => {
959
959
  return this.client.get(
960
- `/v1/carriers/${carrierId}/rate_package_formats`
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.getRatePackageFormats = (carrierId) => {
954
+ this.getPackageRatingGroup = (carrierId) => {
955
955
  return this.client.get(
956
- `/v1/carriers/${carrierId}/rate_package_formats`
956
+ `/v1/carriers/${carrierId}/package_rating_group`
957
957
  );
958
958
  };
959
959
  this.getCountries = (carrierId) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "0.26.1",
3
+ "version": "0.27.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {