import * as z from "zod/v4-mini"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomsExporterIdentification } from "./customsexporteridentification.js"; import { CustomsInvoicedCharges } from "./customsinvoicedcharges.js"; import { ObjectStateEnum } from "./objectstateenum.js"; /** * Party to be billed for duties. */ export declare const CustomsDeclarationType: { readonly Sender: "SENDER"; readonly Recipient: "RECIPIENT"; readonly ThirdParty: "THIRD_PARTY"; }; /** * Party to be billed for duties. */ export type CustomsDeclarationType = ClosedEnum; export type CustomsDeclarationAddress = { /** * Name of the party to be billed for duties. */ name?: string | undefined; /** * Postal code of the party to be billed for duties. */ zip?: string | undefined; /** * Country ISO code of account number to be billed. */ country?: string | undefined; }; /** * Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. */ export type CustomsDeclarationDutiesPayor = { /** * Account number to be billed for duties. */ account?: string | undefined; /** * Party to be billed for duties. */ type?: CustomsDeclarationType | undefined; address?: CustomsDeclarationAddress | undefined; }; export type CustomsDeclaration = { /** * **required if eel_pfc is `AES_ITN`**
* * @remarks * AES / ITN reference of the shipment. */ aesItn?: string | undefined; /** * B13A Option details are obtained by filing a B13A Canada Export Declaration via the Canadian Export Reporting System (CERS). * * @remarks * More information on reporting commercial exports from Canada. * Allowed values available here */ b13aFilingOption?: string | undefined; /** * **must be provided if and only if b13a_filing_option is provided**
* * @remarks * Represents:
the Proof of Report (POR) Number when b13a_filing_option is `FILED_ELECTRONICALLY`;
* the Summary ID Number when b13a_filing_option is `SUMMARY_REPORTING`;
* or the Exemption Number when b13a_filing_option is `NOT_REQUIRED`. */ b13aNumber?: string | undefined; /** * Certificate reference of the shipment. */ certificate?: string | undefined; /** * Expresses that the certify_signer has provided all information of this customs declaration truthfully. */ certify: boolean; /** * Name of the person who created the customs declaration and is responsible for the validity of all * * @remarks * information provided. */ certifySigner: string; commercialInvoice?: boolean | undefined; /** * **required if contents_type is `OTHER`**
* * @remarks * Explanation of the type of goods of the shipment. */ contentsExplanation?: string | undefined; /** * Disclaimer for the shipment and customs information that have been provided. */ disclaimer?: string | undefined; /** * Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. */ dutiesPayor?: CustomsDeclarationDutiesPayor | undefined; /** * Additional exporter identification that may be required to ship in certain countries */ exporterIdentification?: CustomsExporterIdentification | undefined; /** * Exporter reference of an export shipment. */ exporterReference?: string | undefined; /** * Importer reference of an import shipment. */ importerReference?: string | undefined; /** * Indicates whether the shipment's destination VAT has been collected. May be required for some destinations. */ isVatCollected?: boolean | undefined; /** * Invoice reference of the shipment. */ invoice?: string | undefined; /** * License reference of the shipment. */ license?: string | undefined; /** * A string of up to 100 characters that can be filled with any additional information you * * @remarks * want to attach to the object. */ metadata?: string | undefined; /** * Additional notes to be included in the customs declaration. */ notes?: string | undefined; /** * Object ID of the Importer address. */ addressImporter?: string | undefined; /** * Type of goods of the shipment. * * @remarks * Allowed values available here */ contentsType: string; /** * EEL / PFC type of the shipment. For most shipments from the US to CA, `NOEEI_30_36` is applicable; for most * * @remarks * other shipments from the US, `NOEEI_30_37_a` is applicable. * Allowed values available here */ eelPfc?: string | undefined; /** * The incoterm reference of the shipment. FCA is available for DHL Express and FedEx only. * * @remarks * eDAP is available for DPD UK only. DAP is available for DHL Express and DPD UK. * If expecting DAP for other carriers, please use DDU. * Allowed values available here */ incoterm?: string | undefined; /** * Additional invoiced charges to be shown on the Customs Declaration Commercial Invoice. */ invoicedCharges?: CustomsInvoicedCharges | undefined; /** * Distinct Parcel content items as Customs Items object_ids. */ items: Array; /** * Indicates how the carrier should proceed in case the shipment can't be delivered. * * @remarks * Allowed values available here */ nonDeliveryOption: string; /** * Date and time of object creation. */ objectCreated?: Date | undefined; /** * Unique identifier of the given object. */ objectId?: string | undefined; /** * Username of the user who created the object. */ objectOwner?: string | undefined; /** * Indicates the validity of the enclosing object */ objectState?: ObjectStateEnum | undefined; /** * Date and time of last object update. */ objectUpdated?: Date | undefined; /** * Indicates whether the object has been created in test mode. */ test?: boolean | undefined; }; /** @internal */ export declare const CustomsDeclarationType$inboundSchema: z.ZodMiniEnum; /** @internal */ export declare const CustomsDeclarationAddress$inboundSchema: z.ZodMiniType; export declare function customsDeclarationAddressFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CustomsDeclarationDutiesPayor$inboundSchema: z.ZodMiniType; export declare function customsDeclarationDutiesPayorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CustomsDeclaration$inboundSchema: z.ZodMiniType; export declare function customsDeclarationFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=customsdeclaration.d.ts.map