Class CustomsInfo
Class representing an EasyPost customs info object.
Inherited Members
Namespace: EasyPost.Models.API
Assembly: EasyPost.dll
Syntax
public class CustomsInfo : EasyPostObject, IEasyPostObject, ICustomsInfoParameter, IParameter
Properties
| Improve this Doc View SourceContentsExplanation
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> |
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> |
CustomsCertify
Whether to electronically certify the information provided.
Declaration
public bool? CustomsCertify { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
CustomsItems
A list of the items being shipped.
Declaration
public List<CustomsItem>? CustomsItems { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<List<CustomsItem>> |
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> |
Declaration
A customs declaration message, available for eligible carriers.
Declaration
public string? Declaration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
EelPfc
Whether the customs form is marked as "EEL" or "PFC". Valid values are:
- "EEL"
- "PFC"
Declaration
public string? EelPfc { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
NonDeliveryOption
What to do if the package is undeliverable. Valid values are:
- "abandon"
- "return"
Declaration
public string? NonDeliveryOption { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
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> |
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> |