UNPKG

@shipengine/connect-carrier-api

Version:

This is the typescript/javascript definitions for carrier api

17 lines (14 loc) 491 B
import Joi from 'joi'; import { WeightUnit } from '../../models'; import { WeightUnitSchema } from '../../models/units/weight-unit-schema'; /** @description Weight of a package rating group */ export interface PackageRatingGroupWeight { /** @description Unit of the weight */ Unit: WeightUnit; /** @description Actual weight value */ Value: number; } export const PackageRatingGroupWeightSchema = Joi.object({ Unit: WeightUnitSchema.required(), Value: Joi.number().min(0), });