Class Insurance
Class representing an EasyPost insurance object.
Inherited Members
Namespace: EasyPost.Models.API
Assembly: EasyPost.dll
Syntax
public class Insurance : EasyPostObject, IEasyPostObject, IInsuranceParameter, IParameter
Properties
| Improve this Doc View SourceAmount
The value of the insured goods, in US cents with sub-cent precision.
Declaration
public string? Amount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
Fee
The Fee for the insurance.
Declaration
public Fee Fee { get; set; }
Property Value
| Type | Description |
|---|---|
| Fee |
FromAddress
The Address from which the shipment is being sent.
Declaration
public Address FromAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| Address |
Messages
A list of errors encountered during the attempted purchase of the insurance.
Declaration
public List<string>? Messages { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<List<System.String>> |
Provider
The insurance provider used by EasyPost.
Declaration
public string? Provider { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
ProviderId
The identifying number for some insurance providers used by EasyPost.
Declaration
public string? ProviderId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
Reference
An optional field that may be used in place of ID in some API endpoints.
Declaration
public string? Reference { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
ShipmentId
The ID of the Shipment being insured, if postage was purchased through EasyPost.
Declaration
public string? ShipmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
Status
The current status of the insurance. Possible values include "new", "pending", "purchased", "failed" and "cancelled".
Declaration
public string? Status { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
ToAddress
The Address to which the shipment is being sent.
Declaration
public Address ToAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| Address |
Tracker
The Tracker associated with this insurance.
Declaration
public Tracker Tracker { get; set; }
Property Value
| Type | Description |
|---|---|
| Tracker |
TrackingCode
The tracking code of either the Shipment created using EasyPost, or provided by the user during creation of the insurance.
Declaration
public string? TrackingCode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |