Show / Hide Table of Contents

Class CustomsInfo

Class representing an EasyPost customs info object.

Inheritance
System.Object
EphemeralEasyPostObject
EasyPostObject
CustomsInfo
Implements
IEasyPostObject
ICustomsInfoParameter
IParameter
Inherited Members
EasyPostObject.CreatedAt
EasyPostObject.Id
EasyPostObject.UpdatedAt
EasyPostObject.Prefix
EasyPostObject.AsDictionary()
EasyPostObject.ToString()
EasyPostObject.Equals(Nullable<Object>)
EasyPostObject.GetHashCode()
EphemeralEasyPostObject.Mode
EphemeralEasyPostObject.AsJson()
Namespace: EasyPost.Models.API
Assembly: EasyPost.dll
Syntax
public class CustomsInfo : EasyPostObject, IEasyPostObject, ICustomsInfoParameter, IParameter

Properties

| Improve this Doc View Source

ContentsExplanation

A human-readable description of the contents of the package. Required for certain carriers, and always required if ContentsType is "other". Maximum length is 255 characters.

Declaration
public string? ContentsExplanation { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

ContentsType

The type of contents in the package. May be one of the following:

  • "documents"
  • "gift"
  • "merchandise"
  • "returned_goods"
  • "sample"
  • "dangerous_goods"
  • "humanitarian_donation"
  • "other"
Declaration
public string? ContentsType { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

CustomsCertify

Whether to electronically certify the information provided.

Declaration
public bool? CustomsCertify { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
| Improve this Doc View Source

CustomsItems

A list of the items being shipped.

Declaration
public List<CustomsItem>? CustomsItems { get; set; }
Property Value
Type Description
System.Nullable<List<CustomsItem>>
| Improve this Doc View Source

CustomsSigner

The name of the person signing the customs form. Required if CustomsCertify is true.

Declaration
public string? CustomsSigner { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

Declaration

A customs declaration message, available for eligible carriers.

Declaration
public string? Declaration { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

EelPfc

Whether the customs form is marked as "EEL" or "PFC". Valid values are:

  • "EEL"
  • "PFC"
See https://www.easypost.com/customs-guide for more information.
Declaration
public string? EelPfc { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

NonDeliveryOption

What to do if the package is undeliverable. Valid values are:

  • "abandon"
  • "return"
Default is "return".
Declaration
public string? NonDeliveryOption { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

RestrictionComments

Explanation for the restriction type. Required if RestrictionType is not "none".

Declaration
public string? RestrictionComments { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

RestrictionType

The type of restriction placed on the package. Valid values are:

  • "none"
  • "quarantine"
  • "sanitary_phytosanitary_inspection"
  • "other"
Declaration
public string? RestrictionType { get; set; }
Property Value
Type Description
System.Nullable<System.String>

Implements

IEasyPostObject
ICustomsInfoParameter
IParameter
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX