UNPKG

@shipengine/connect-carrier-api

Version:

This is the typescript/javascript definitions for carrier api

20 lines (19 loc) 1.04 kB
import Joi from 'joi'; import { PackageRatingGroupDimensions } from './package-rating-group-dimensions'; import { PackageRatingGroupWeight } from './package-rating-group-weight'; /** @description Details about how packages are related to rates */ export interface PackageRatingGroup { /** @description Id of the rating group */ Id: string; /** @description Id of the package type to which this rating group corresponds */ PackageTypeId: string; /** @description Name of the package rating group */ Name: string; /** @description This is the code that will be sent to requests, this should be the same code the carrier's api would expect */ CarrierPackageTypeCode: string; /** @description Maximum allowable dimensions of packages for the rating group */ DimensionLimits?: PackageRatingGroupDimensions; /** @description Maximum allowable weight of packages for the rating group */ MaxWeight?: PackageRatingGroupWeight; } export declare const PackageRatingGroupSchema: Joi.ObjectSchema<any>;