import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CoreRate = { /** * Final Rate price, expressed in the currency used in the sender's country. */ amount?: string | undefined; /** * Final Rate price, expressed in the currency used in the recipient's country. */ amountLocal?: string | undefined; /** * Currency used in the sender's country, refers to `amount`. * * @remarks * The official ISO 4217 currency codes are used, e.g. `USD` or `EUR`. */ currency?: string | undefined; /** * Currency used in the recipient's country, refers to `amount_local`. * * @remarks * The official ISO 4217 currency codes are used, e.g. `USD` or "EUR". */ currencyLocal?: string | undefined; /** * Unique identifier of the Rate object. */ objectId?: string | undefined; /** * Carrier offering the rate, e.g., `FedEx` or `Deutsche Post DHL`. */ provider?: string | undefined; /** * Object ID of the carrier account that has been used to retrieve the rate. */ carrierAccount?: string | undefined; /** * Service level name, e.g. `Priority Mail` or `FedEx Ground®`. * * @remarks * A service level commonly defines the transit time of a Shipment (e.g., Express vs. Standard), * along with other properties. These names vary depending on the provider.
* See Service Levels. */ servicelevelName?: string | undefined; /** * Token of the Rate's servicelevel, e.g. `usps_priority` or `fedex_ground`. * * @remarks * See servicelevels. */ servicelevelToken?: string | undefined; }; /** @internal */ export declare const CoreRate$inboundSchema: z.ZodMiniType; /** @internal */ export type CoreRate$Outbound = { amount?: string | undefined; amount_local?: string | undefined; currency?: string | undefined; currency_local?: string | undefined; object_id?: string | undefined; provider?: string | undefined; carrier_account?: string | undefined; servicelevel_name?: string | undefined; servicelevel_token?: string | undefined; }; /** @internal */ export declare const CoreRate$outboundSchema: z.ZodMiniType; export declare function coreRateToJSON(coreRate: CoreRate): string; export declare function coreRateFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=corerate.d.ts.map