Class CustomsItemService
Class representing a set of customs item-related functionality.
Inherited Members
Namespace: EasyPost.Services
Assembly: EasyPost.dll
Syntax
public class CustomsItemService : EasyPostService, IEasyPostService
  Methods
| Improve this Doc View SourceCreate(Dictionary<String, Object>, CancellationToken)
Create a CustomsItem. Related API documentation.
Declaration
public async Task<CustomsItem> Create(Dictionary<string, object> parameters, CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Dictionary<System.String, System.Object> | parameters | Data to use to create the CustomsItem.  | 
      
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<CustomsItem> | A CustomsItem object.  | 
      
Create(Create, CancellationToken)
Create a CustomsItem. Related API documentation.
Declaration
public async Task<CustomsItem> Create(Create parameters, CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Create | parameters | Data to use to create the CustomsItem.  | 
      
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<CustomsItem> | A CustomsItem object.  | 
      
Retrieve(String, CancellationToken)
Retrieve a CustomsItem. Related API documentation.
Declaration
public async Task<CustomsItem> Retrieve(string id, CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | id | The ID of the CustomsItem to retrieve.  | 
      
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<CustomsItem> | A CustomsItem object.  | 
      
Implements
      IDisposable