Documentation
¶
Overview ¶
Package exportassure provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
Index ¶
- Constants
- func NewSubmitExportAssureRequest(server string, params *SubmitExportAssureParams, ...) (*http.Request, error)
- func NewSubmitExportAssureRequestWithBody(server string, params *SubmitExportAssureParams, contentType string, ...) (*http.Request, error)
- type ALPerfStats
- type AccountNumber
- type BackendErrorResponseHeaders
- type Client
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) SubmitExportAssureWithBodyWithResponse(ctx context.Context, params *SubmitExportAssureParams, contentType string, ...) (*SubmitExportAssureResponse, error)
- func (c *ClientWithResponses) SubmitExportAssureWithResponse(ctx context.Context, params *SubmitExportAssureParams, ...) (*SubmitExportAssureResponse, error)
- type ClientWithResponsesInterface
- type CommodityId
- type ComplianceDetails
- type ComplianceDetailsCategoryType
- type ControlDetails
- type ControlTypes
- type ControlTypesIsRequired
- type CountryCodes
- type CurrencyCodes
- type DescriptionGuidanceResponse
- type ErrorCode
- type ErrorCodeType
- type ErrorResponse
- type ErrorResponseWrapper
- type EvaluationCriteria
- type ExportAssurePartialResponse
- type ExportAssureRequest
- type ExportAssureResponse
- type GatewayErrorResponseHeaders
- type HsCode
- type HttpRequestDoer
- type ImportExportItemLevelResponse
- type ImportExportItemLevelResponseUpsProhibitedMessage0
- type ImportExportItemLevelResponseUpsProhibitedMessage1
- type ImportExportItemLevelResponse_UpsProhibitedMessage
- func (t ImportExportItemLevelResponse_UpsProhibitedMessage) AsImportExportItemLevelResponseUpsProhibitedMessage0() (ImportExportItemLevelResponseUpsProhibitedMessage0, error)
- func (t ImportExportItemLevelResponse_UpsProhibitedMessage) AsImportExportItemLevelResponseUpsProhibitedMessage1() (ImportExportItemLevelResponseUpsProhibitedMessage1, error)
- func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) FromImportExportItemLevelResponseUpsProhibitedMessage0(v ImportExportItemLevelResponseUpsProhibitedMessage0) error
- func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) FromImportExportItemLevelResponseUpsProhibitedMessage1(v ImportExportItemLevelResponseUpsProhibitedMessage1) error
- func (t ImportExportItemLevelResponse_UpsProhibitedMessage) MarshalJSON() ([]byte, error)
- func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) MergeImportExportItemLevelResponseUpsProhibitedMessage0(v ImportExportItemLevelResponseUpsProhibitedMessage0) error
- func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) MergeImportExportItemLevelResponseUpsProhibitedMessage1(v ImportExportItemLevelResponseUpsProhibitedMessage1) error
- func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) UnmarshalJSON(b []byte) error
- type ImportExportShipmentLevelResponse
- type PowerOfAttorneyResponse
- type PowerOfAttorneyResponseExporterPoaOnFileIndicator
- type PowerOfAttorneyResponseImporterPoaOnFileIndicator
- type RequestEditorFn
- type ShipmentId
- type ShipmentItemsRequest
- type ShipmentItemsRequestUOM
- type ShipmentItemsResponse
- type ShipmentRequest
- type ShipmentRequestGrossWeightUnit
- type ShipmentRequestShipmentType
- type ShipmentRequestTransModes
- type ShipmentResponse
- type SubmitExportAssureJSONRequestBody
- type SubmitExportAssureParams
- type SubmitExportAssureResponse
- type SuccessResponseHeaders
- type TransactionID
- type TranslationLocale
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewSubmitExportAssureRequest ¶
func NewSubmitExportAssureRequest(server string, params *SubmitExportAssureParams, body SubmitExportAssureJSONRequestBody) (*http.Request, error)
NewSubmitExportAssureRequest calls the generic SubmitExportAssure builder with application/json body
func NewSubmitExportAssureRequestWithBody ¶
func NewSubmitExportAssureRequestWithBody(server string, params *SubmitExportAssureParams, contentType string, body io.Reader) (*http.Request, error)
NewSubmitExportAssureRequestWithBody generates requests for SubmitExportAssure with any type of body
Types ¶
type ALPerfStats ¶
type ALPerfStats struct {
// AbsLayerTime Time taken through the abstraction layer in milliseconds.
AbsLayerTime string `json:"absLayerTime"`
// FulfillTime Request completed time.
FulfillTime string `json:"fulfillTime"`
// ReceiptTime Request receipt time
ReceiptTime string `json:"receiptTime"`
}
ALPerfStats defines model for ALPerfStats.
type BackendErrorResponseHeaders ¶
type BackendErrorResponseHeaders = GatewayErrorResponseHeaders
BackendErrorResponseHeaders The headers returned from the gateway
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) SubmitExportAssure ¶
func (c *Client) SubmitExportAssure(ctx context.Context, params *SubmitExportAssureParams, body SubmitExportAssureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SubmitExportAssureWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// SubmitExportAssureWithBody request with any body
SubmitExportAssureWithBody(ctx context.Context, params *SubmitExportAssureParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SubmitExportAssure(ctx context.Context, params *SubmitExportAssureParams, body SubmitExportAssureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) SubmitExportAssureWithBodyWithResponse ¶
func (c *ClientWithResponses) SubmitExportAssureWithBodyWithResponse(ctx context.Context, params *SubmitExportAssureParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitExportAssureResponse, error)
SubmitExportAssureWithBodyWithResponse request with arbitrary body returning *SubmitExportAssureResponse
func (*ClientWithResponses) SubmitExportAssureWithResponse ¶
func (c *ClientWithResponses) SubmitExportAssureWithResponse(ctx context.Context, params *SubmitExportAssureParams, body SubmitExportAssureJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitExportAssureResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// SubmitExportAssureWithBodyWithResponse request with any body
SubmitExportAssureWithBodyWithResponse(ctx context.Context, params *SubmitExportAssureParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitExportAssureResponse, error)
SubmitExportAssureWithResponse(ctx context.Context, params *SubmitExportAssureParams, body SubmitExportAssureJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitExportAssureResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CommodityId ¶
type CommodityId = string
CommodityId The commodity ID returned in the Import Export Compliance report.
type ComplianceDetails ¶
type ComplianceDetails struct {
// CategoryType Whether the compliance assessment regards imports or exports
CategoryType ComplianceDetailsCategoryType `json:"categoryType"`
ControlTypes []ControlTypes `json:"controlTypes"`
}
ComplianceDetails This object contains details of specific compliance requirements and controls that are applicable to the shipment, based on whether it is for import or export purposes.
type ComplianceDetailsCategoryType ¶
type ComplianceDetailsCategoryType string
ComplianceDetailsCategoryType Whether the compliance assessment regards imports or exports
const ( Export ComplianceDetailsCategoryType = "Export" Import ComplianceDetailsCategoryType = "Import" )
Defines values for ComplianceDetailsCategoryType.
type ControlDetails ¶
type ControlDetails struct {
// ControlDetailDescription A detailed description of the control measure, translated for the user as required.
ControlDetailDescription string `json:"controlDetailDescription"`
// ControlDetailName The formal name or title of the control measure. This property serves as the header for `ControlDetails`. Where no specific control name is applicable, this field may be left empty (and consequently, no header will be displayed in the response). This property is translated to the user's language as required.
//
// **Note**: When the `controlTypeCode` is set to `DOC`, the `controlDetailName` is also the identifier for the corresponding DocuSign template.
ControlDetailName string `json:"controlDetailName"`
}
ControlDetails This object contains an array of warning messages related to this control type.
type ControlTypes ¶
type ControlTypes struct {
// ControlDetails An array that contains a list of control types and codes
ControlDetails []ControlDetails `json:"controlDetails"`
// ControlType The category of customs control applicable to the shipment. This property is translated to the user's language as required.
ControlType string `json:"controlType"`
// ControlTypeCode A unique code that distinctly identifies each control type. This code is not translated and is used for specific system-logic related to the control type.
ControlTypeCode string `json:"controlTypeCode"`
// ControlTypeMessage Additional guidance or instructions based on the specific control type condition.
ControlTypeMessage string `json:"controlTypeMessage"`
// IsRequired Whether shipment compliance with a specific control type is required
IsRequired *ControlTypesIsRequired `json:"isRequired,omitempty"`
}
ControlTypes This object includes specific type of customs controls applicable to a shipment.
type ControlTypesIsRequired ¶
type ControlTypesIsRequired string
ControlTypesIsRequired Whether shipment compliance with a specific control type is required
const ( ControlTypesIsRequiredApplicable ControlTypesIsRequired = "Applicable" ControlTypesIsRequiredMaybe ControlTypesIsRequired = "Maybe" ControlTypesIsRequiredYes ControlTypesIsRequired = "Yes" )
Defines values for ControlTypesIsRequired.
type CountryCodes ¶
type CountryCodes = string
CountryCodes The <a href="https://developer.ups.com/api/reference/shipping/appendix1" target="_blank" rel="noopener noreferrer">two-letter identification code</a> for countries.
type CurrencyCodes ¶
type CurrencyCodes string
CurrencyCodes The three-letter code that represents the currency used to value the items in the shipment.
| Supported enum values | | :--------------------------- | | `ARS`<br>Argentine Peso | | `AUD`<br>Australian Dollar | | `BRL`<br>Brazilian Real | | `CAD`<br>Canadian Dollar | | `CHF`<br>Swiss Franc | | `CLP`<br>Chilean Peso | | `CNY`<br>Chinese Yuan | | `CRC`<br>Costa Rican Colon | | `DKK`<br>Danish Krone | | `DOP`<br>Dominican Peso | | `EUR`<br>Euro | | `GBP`<br>Great Britain Pound | | `HKD`<br>Hong Kong Dollar | | `INR`<br>India Rupee | | `JPY`<br>Japanese Yen | | `KRW`<br>Korean Won | | `MXN`<br>Mexican Peso | | `MYR`<br>Malaysian Ringgit | | `NOK`<br>Norwegian Kroner | | `NZD`<br>New Zealand Dollar | | `PEN`<br>Peruvian Nuevo Sol | | `PHP`<br>Philippine Peso | | `PLN`<br>Polish Zloty | | `SEK`<br>Swedish Krona | | `SGD`<br>Singapore Dollar | | `THB`<br>Thai Baht | | `TWD`<br>Taiwan Dollar | | `USD`<br>US Dollar | | `VEB`<br>Venezuelan Bolivar |
const ( ARS CurrencyCodes = "ARS" AUD CurrencyCodes = "AUD" BRL CurrencyCodes = "BRL" CAD CurrencyCodes = "CAD" CHF CurrencyCodes = "CHF" CLP CurrencyCodes = "CLP" CNY CurrencyCodes = "CNY" CRC CurrencyCodes = "CRC" DKK CurrencyCodes = "DKK" DOP CurrencyCodes = "DOP" EUR CurrencyCodes = "EUR" GBP CurrencyCodes = "GBP" HKD CurrencyCodes = "HKD" INR CurrencyCodes = "INR" JPY CurrencyCodes = "JPY" KRW CurrencyCodes = "KRW" MXN CurrencyCodes = "MXN" MYR CurrencyCodes = "MYR" NOK CurrencyCodes = "NOK" NZD CurrencyCodes = "NZD" PEN CurrencyCodes = "PEN" PHP CurrencyCodes = "PHP" PLN CurrencyCodes = "PLN" SEK CurrencyCodes = "SEK" SGD CurrencyCodes = "SGD" THB CurrencyCodes = "THB" TWD CurrencyCodes = "TWD" USD CurrencyCodes = "USD" VEB CurrencyCodes = "VEB" )
Defines values for CurrencyCodes.
type DescriptionGuidanceResponse ¶
type DescriptionGuidanceResponse struct {
// IsMatched Whether the description guidance service has matched a keyword from the shipment description
IsMatched *bool `json:"isMatched,omitempty"`
// MatchedKeyword The keyword(s) from the shipment description that matched the system criteria
MatchedKeyword *string `json:"matchedKeyword,omitempty"`
// Message A message with guidance on how to improve the shipment description
Message *string `json:"message,omitempty"`
// SourceListName A list of terminology used to describe items from a particular regional source
SourceListName *string `json:"sourceListName,omitempty"`
}
DescriptionGuidanceResponse This object contains the system's results to a request for Description Guidance
type ErrorCode ¶
type ErrorCode struct {
// Code The error code.
Code *string `json:"code,omitempty"`
// Description Description of the error.
Description interface{} `json:"description,omitempty"`
// Field The path to the field causing the error as returned from the API backend services
Field *string `json:"field,omitempty"`
// Message Additional information for the user.
Message *string `json:"message,omitempty"`
// Type Specific operation the error message is relevant to.
//
// | Supported enum values |
// | :------------------------------------- |
// | `DG`<br>Description Guidance |
// | `POA`<br>Power of Attorney Requirement |
// | `IEC`<br>Import Export Compliance |
Type *ErrorCodeType `json:"type,omitempty"`
// Value The value that caused the error
Value *string `json:"value,omitempty"`
}
ErrorCode This object contains error codes, error descriptions and other error properties.
type ErrorCodeType ¶
type ErrorCodeType string
ErrorCodeType Specific operation the error message is relevant to.
| Supported enum values | | :------------------------------------- | | `DG`<br>Description Guidance | | `POA`<br>Power of Attorney Requirement | | `IEC`<br>Import Export Compliance |
const ( DG ErrorCodeType = "DG" IEC ErrorCodeType = "IEC" POA ErrorCodeType = "POA" )
Defines values for ErrorCodeType.
type ErrorResponse ¶
type ErrorResponse struct {
PerfStats ALPerfStats `json:"perfStats"`
// Response This object contains an array of error codes.
Response ErrorResponseWrapper `json:"response"`
}
ErrorResponse This object is the primary container for error responses.
type ErrorResponseWrapper ¶
type ErrorResponseWrapper struct {
Errors []ErrorCode `json:"errors"`
}
ErrorResponseWrapper This object contains an array of error codes.
type EvaluationCriteria ¶
type EvaluationCriteria string
EvaluationCriteria Criteria for evaluating POA requirements for both importer and exporter. Supported values:
| Supported enum values | | :-------------------------------------------------------------------------------------------------------------- | | `NonConditional`<br>Standard evaluation without specific conditional criteria | | `Description`<br>Evaluation based on the detailed description of the commodity | | `FTA`<br>Free Trade Agreement. Evaluation considers Free Trade Agreement stipulations applicable to the shipment. | | `Value`<br>Evaluation based on the monetary value of the commodities | | `HTS`<br>Harmonized Tariff Schedule. Evaluation uses HTS codes for tariff classification and compliance | | `Quantity`<br>Evaluation focuses on the quantity of the goods being shipped | | `Weight`<br>Evaluation based on the weight of the shipment |
const ( Description EvaluationCriteria = "Description" FTA EvaluationCriteria = "FTA" HTS EvaluationCriteria = "HTS" HTSPGA EvaluationCriteria = "HTS PGA" NonConditional EvaluationCriteria = "NonConditional" Quantity EvaluationCriteria = "Quantity" Value EvaluationCriteria = "Value" Weight EvaluationCriteria = "Weight" )
Defines values for EvaluationCriteria.
type ExportAssurePartialResponse ¶
type ExportAssurePartialResponse struct {
PerfStats ALPerfStats `json:"perfStats"`
// Response This object contains an array of error codes.
Response ErrorResponseWrapper `json:"response"`
// Shipment This object contains metadata about the shipment and includes the response objects for each of the three operations.
Shipment ShipmentResponse `json:"shipment"`
// TransID The unique, reference identifier that correlates an API request with its response
TransID TransactionID `json:"transID"`
}
ExportAssurePartialResponse This object is the primary response container for the Export Assure API.
type ExportAssureRequest ¶
type ExportAssureRequest struct {
// EvaluateAdvancedImportExportRequirements Whether the user has requested an Advanced Import/Export Compliance review
EvaluateAdvancedImportExportRequirements *bool `json:"evaluateAdvancedImportExportRequirements,omitempty"`
// EvaluateDescriptions Whether the user has requested description guidance
EvaluateDescriptions *bool `json:"evaluateDescriptions,omitempty"`
// EvaluateImportExportRequirements Whether the user has requested an Import/Export Compliance review
EvaluateImportExportRequirements *bool `json:"evaluateImportExportRequirements,omitempty"`
// EvaluatePoaRequirements Whether the user has requested Power of Attorney (POA) requirements
EvaluatePoaRequirements *bool `json:"evaluatePoaRequirements,omitempty"`
// Shipment This object contains all necessary details about a shipment for compliance evaluation.
Shipment ShipmentRequest `json:"shipment"`
// TransID The unique, reference identifier that correlates an API request with its response
TransID string `json:"transID"`
}
ExportAssureRequest This object is the primary request structure for the Export Assure API.
type ExportAssureResponse ¶
type ExportAssureResponse struct {
PerfStats ALPerfStats `json:"perfStats"`
// Shipment This object contains metadata about the shipment and includes the response objects for each of the three operations.
Shipment ShipmentResponse `json:"shipment"`
// TransID The unique, reference identifier that correlates an API request with its response
TransID TransactionID `json:"transID"`
}
ExportAssureResponse This object is the primary request container for the Export Assure API.
type GatewayErrorResponseHeaders ¶
type GatewayErrorResponseHeaders struct {
// XRequestId The gateway transaction id.
XRequestId string `json:"x-request-id"`
}
GatewayErrorResponseHeaders The headers returned from the gateway
type HsCode ¶
type HsCode = string
HsCode The [Harmonized System (HS) code](https://www.trade.gov/harmonized-system-hs-codes). Used commonly throughout the export process for goods, the Harmonized System is a standardized numerical method of classifying traded products. It is used by customs authorities to identify products when assessing duties and taxes.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImportExportItemLevelResponse ¶
type ImportExportItemLevelResponse struct {
// ComplianceOutput This array includes the output of the compliance review, including customs category and control codes.
ComplianceOutput *[]ComplianceDetails `json:"complianceOutput,omitempty"`
// IsTranslatedIndicator Whether shipment details have been translated from the language of the origin country to the user's language
IsTranslatedIndicator bool `json:"isTranslatedIndicator"`
// IsUpsProhibited Whether UPS prohibits shipment of the item
IsUpsProhibited bool `json:"isUpsProhibited"`
// UpsProhibitedMessage A message explaining the reason for any prohibited shipment
UpsProhibitedMessage *ImportExportItemLevelResponse_UpsProhibitedMessage `json:"upsProhibitedMessage,omitempty"`
}
ImportExportItemLevelResponse This object includes details of the Import Export Compliance assessment.
type ImportExportItemLevelResponseUpsProhibitedMessage0 ¶
type ImportExportItemLevelResponseUpsProhibitedMessage0 = interface{}
ImportExportItemLevelResponseUpsProhibitedMessage0 defines model for .
type ImportExportItemLevelResponseUpsProhibitedMessage1 ¶
type ImportExportItemLevelResponseUpsProhibitedMessage1 = string
ImportExportItemLevelResponseUpsProhibitedMessage1 defines model for .
type ImportExportItemLevelResponse_UpsProhibitedMessage ¶
type ImportExportItemLevelResponse_UpsProhibitedMessage struct {
// contains filtered or unexported fields
}
ImportExportItemLevelResponse_UpsProhibitedMessage A message explaining the reason for any prohibited shipment
func (ImportExportItemLevelResponse_UpsProhibitedMessage) AsImportExportItemLevelResponseUpsProhibitedMessage0 ¶
func (t ImportExportItemLevelResponse_UpsProhibitedMessage) AsImportExportItemLevelResponseUpsProhibitedMessage0() (ImportExportItemLevelResponseUpsProhibitedMessage0, error)
AsImportExportItemLevelResponseUpsProhibitedMessage0 returns the union data inside the ImportExportItemLevelResponse_UpsProhibitedMessage as a ImportExportItemLevelResponseUpsProhibitedMessage0
func (ImportExportItemLevelResponse_UpsProhibitedMessage) AsImportExportItemLevelResponseUpsProhibitedMessage1 ¶
func (t ImportExportItemLevelResponse_UpsProhibitedMessage) AsImportExportItemLevelResponseUpsProhibitedMessage1() (ImportExportItemLevelResponseUpsProhibitedMessage1, error)
AsImportExportItemLevelResponseUpsProhibitedMessage1 returns the union data inside the ImportExportItemLevelResponse_UpsProhibitedMessage as a ImportExportItemLevelResponseUpsProhibitedMessage1
func (*ImportExportItemLevelResponse_UpsProhibitedMessage) FromImportExportItemLevelResponseUpsProhibitedMessage0 ¶
func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) FromImportExportItemLevelResponseUpsProhibitedMessage0(v ImportExportItemLevelResponseUpsProhibitedMessage0) error
FromImportExportItemLevelResponseUpsProhibitedMessage0 overwrites any union data inside the ImportExportItemLevelResponse_UpsProhibitedMessage as the provided ImportExportItemLevelResponseUpsProhibitedMessage0
func (*ImportExportItemLevelResponse_UpsProhibitedMessage) FromImportExportItemLevelResponseUpsProhibitedMessage1 ¶
func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) FromImportExportItemLevelResponseUpsProhibitedMessage1(v ImportExportItemLevelResponseUpsProhibitedMessage1) error
FromImportExportItemLevelResponseUpsProhibitedMessage1 overwrites any union data inside the ImportExportItemLevelResponse_UpsProhibitedMessage as the provided ImportExportItemLevelResponseUpsProhibitedMessage1
func (ImportExportItemLevelResponse_UpsProhibitedMessage) MarshalJSON ¶
func (t ImportExportItemLevelResponse_UpsProhibitedMessage) MarshalJSON() ([]byte, error)
func (*ImportExportItemLevelResponse_UpsProhibitedMessage) MergeImportExportItemLevelResponseUpsProhibitedMessage0 ¶
func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) MergeImportExportItemLevelResponseUpsProhibitedMessage0(v ImportExportItemLevelResponseUpsProhibitedMessage0) error
MergeImportExportItemLevelResponseUpsProhibitedMessage0 performs a merge with any union data inside the ImportExportItemLevelResponse_UpsProhibitedMessage, using the provided ImportExportItemLevelResponseUpsProhibitedMessage0
func (*ImportExportItemLevelResponse_UpsProhibitedMessage) MergeImportExportItemLevelResponseUpsProhibitedMessage1 ¶
func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) MergeImportExportItemLevelResponseUpsProhibitedMessage1(v ImportExportItemLevelResponseUpsProhibitedMessage1) error
MergeImportExportItemLevelResponseUpsProhibitedMessage1 performs a merge with any union data inside the ImportExportItemLevelResponse_UpsProhibitedMessage, using the provided ImportExportItemLevelResponseUpsProhibitedMessage1
func (*ImportExportItemLevelResponse_UpsProhibitedMessage) UnmarshalJSON ¶
func (t *ImportExportItemLevelResponse_UpsProhibitedMessage) UnmarshalJSON(b []byte) error
type ImportExportShipmentLevelResponse ¶
type ImportExportShipmentLevelResponse struct {
// CommodityWarningsMessage The warning message returned when the `hasCommodityWarnings` flag is set to true
CommodityWarningsMessage *string `json:"commodityWarningsMessage,omitempty"`
// HasCommodityWarnings Whether there are compliance-related warnings or issues at the commodity level within the shipment. A `true` value indicates potential compliance concerns that require the shipper's attention.
HasCommodityWarnings bool `json:"hasCommodityWarnings"`
// HasShipmentWarnings Whether there are shipment-level warning. Shipment-level warnings include issues related to documentation and shipment packaging.
HasShipmentWarnings bool `json:"hasShipmentWarnings"`
// IsShipmentOverGiftValueThreshold Whether the total value of the shipment exceeds the allowable threshold for categorizing it as a gift
IsShipmentOverGiftValueThreshold bool `json:"isShipmentOverGiftValueThreshold"`
// IsShipmentOverGiftWeightThreshold Whether the total weight of the shipment exceeds the weight limit for being classified as a gift
IsShipmentOverGiftWeightThreshold bool `json:"isShipmentOverGiftWeightThreshold"`
// ShipmentCurrencyCode The three-letter code that represents the currency used to value the items in the shipment.
//
// | Supported enum values |
// | :--------------------------- |
// | `ARS`<br>Argentine Peso |
// | `AUD`<br>Australian Dollar |
// | `BRL`<br>Brazilian Real |
// | `CAD`<br>Canadian Dollar |
// | `CHF`<br>Swiss Franc |
// | `CLP`<br>Chilean Peso |
// | `CNY`<br>Chinese Yuan |
// | `CRC`<br>Costa Rican Colon |
// | `DKK`<br>Danish Krone |
// | `DOP`<br>Dominican Peso |
// | `EUR`<br>Euro |
// | `GBP`<br>Great Britain Pound |
// | `HKD`<br>Hong Kong Dollar |
// | `INR`<br>India Rupee |
// | `JPY`<br>Japanese Yen |
// | `KRW`<br>Korean Won |
// | `MXN`<br>Mexican Peso |
// | `MYR`<br>Malaysian Ringgit |
// | `NOK`<br>Norwegian Kroner |
// | `NZD`<br>New Zealand Dollar |
// | `PEN`<br>Peruvian Nuevo Sol |
// | `PHP`<br>Philippine Peso |
// | `PLN`<br>Polish Zloty |
// | `SEK`<br>Swedish Krona |
// | `SGD`<br>Singapore Dollar |
// | `THB`<br>Thai Baht |
// | `TWD`<br>Taiwan Dollar |
// | `USD`<br>US Dollar |
// | `VEB`<br>Venezuelan Bolivar |
ShipmentCurrencyCode CurrencyCodes `json:"shipmentCurrencyCode"`
// ShipmentOverGiftValueThresholdMessage The message returned if the shipment's value surpasses the threshold for gift categorization
ShipmentOverGiftValueThresholdMessage *string `json:"shipmentOverGiftValueThresholdMessage,omitempty"`
// ShipmentOverGiftWeightThresholdMessage A message explaining the implications if the shipment's weight goes beyond the threshold for gift categorization, guiding users in understanding customs considerations.
ShipmentOverGiftWeightThresholdMessage *string `json:"shipmentOverGiftWeightThresholdMessage,omitempty"`
// ShipmentValue The total monetary value of all items included in the shipment
ShipmentValue *float64 `json:"shipmentValue,omitempty"`
// TranslationLocale Translation locale.
//
// | Supported enum values |
// | :------------------------- |
// | `EN`<br>English |
// | `DE`<br>Germany |
// | `PL`<br>Polish |
// | `FR`<br>French |
// | `IT`<br>Italian |
// | `NL`<br>Dutch |
// | `ES`<br>Spanish |
// | `ZH`<br>Simplified Chinese |
TranslationLocale *TranslationLocale `json:"translationLocale,omitempty"`
}
ImportExportShipmentLevelResponse This object contains properties which describe the shipment's compliance with laws and regulations.
type PowerOfAttorneyResponse ¶
type PowerOfAttorneyResponse struct {
// ExporterCommodityDescription The commodity that triggers the POA requirement for the exporter
ExporterCommodityDescription *string `json:"exporterCommodityDescription,omitempty"`
// ExporterCommodityId The commodity ID returned in the Import Export Compliance report.
ExporterCommodityId *CommodityId `json:"exporterCommodityId,omitempty"`
// ExporterDocuSignTemplateId The ID of the DocuSign template, which the exporter can use for electronic completion of the POA.
ExporterDocuSignTemplateId *string `json:"exporterDocuSignTemplateId,omitempty"`
// ExporterEvaluationCriteria Criteria for evaluating POA requirements for both importer and exporter. Supported values:
//
// | Supported enum values |
// | :-------------------------------------------------------------------------------------------------------------- |
// | `NonConditional`<br>Standard evaluation without specific conditional criteria |
// | `Description`<br>Evaluation based on the detailed description of the commodity |
// | `FTA`<br>Free Trade Agreement. Evaluation considers Free Trade Agreement stipulations applicable to the shipment. |
// | `Value`<br>Evaluation based on the monetary value of the commodities |
// | `HTS`<br>Harmonized Tariff Schedule. Evaluation uses HTS codes for tariff classification and compliance |
// | `Quantity`<br>Evaluation focuses on the quantity of the goods being shipped |
// | `Weight`<br>Evaluation based on the weight of the shipment |
ExporterEvaluationCriteria *EvaluationCriteria `json:"exporterEvaluationCriteria,omitempty"`
// ExporterOnlineFormFlag Whether there is an online form available for the exporter to complete their POA documentation
ExporterOnlineFormFlag bool `json:"exporterOnlineFormFlag"`
// ExporterPoaOnFileIndicator Whether the exporter has a POA already on file
ExporterPoaOnFileIndicator *PowerOfAttorneyResponseExporterPoaOnFileIndicator `json:"exporterPoaOnFileIndicator"`
// ExporterPoaRequiredFlag Whether the exporter is required to provide a POA for customs clearance.
ExporterPoaRequiredFlag bool `json:"exporterPoaRequiredFlag"`
// ImporterCommodityDescription A description of the commodity regarding what led to the POA requirement for the importer
ImporterCommodityDescription *string `json:"importerCommodityDescription,omitempty"`
// ImporterCommodityId The commodity ID returned in the Import Export Compliance report.
ImporterCommodityId *CommodityId `json:"importerCommodityId,omitempty"`
// ImporterEvaluationCriteria Criteria for evaluating POA requirements for both importer and exporter. Supported values:
//
// | Supported enum values |
// | :-------------------------------------------------------------------------------------------------------------- |
// | `NonConditional`<br>Standard evaluation without specific conditional criteria |
// | `Description`<br>Evaluation based on the detailed description of the commodity |
// | `FTA`<br>Free Trade Agreement. Evaluation considers Free Trade Agreement stipulations applicable to the shipment. |
// | `Value`<br>Evaluation based on the monetary value of the commodities |
// | `HTS`<br>Harmonized Tariff Schedule. Evaluation uses HTS codes for tariff classification and compliance |
// | `Quantity`<br>Evaluation focuses on the quantity of the goods being shipped |
// | `Weight`<br>Evaluation based on the weight of the shipment |
ImporterEvaluationCriteria *EvaluationCriteria `json:"importerEvaluationCriteria,omitempty"`
// ImporterPoaOnFileIndicator Whether the importer already has a POA on file
ImporterPoaOnFileIndicator *PowerOfAttorneyResponseImporterPoaOnFileIndicator `json:"importerPoaOnFileIndicator"`
// ImporterPoaRequiredFlag Whether Power of Attorney (POA) is required for the importer
ImporterPoaRequiredFlag bool `json:"importerPoaRequiredFlag"`
}
PowerOfAttorneyResponse This object includes details of the Power of Attorney (POA) requirements for the shipment.
type PowerOfAttorneyResponseExporterPoaOnFileIndicator ¶
type PowerOfAttorneyResponseExporterPoaOnFileIndicator string
PowerOfAttorneyResponseExporterPoaOnFileIndicator Whether the exporter has a POA already on file
const ( PowerOfAttorneyResponseExporterPoaOnFileIndicatorLessThannil PowerOfAttorneyResponseExporterPoaOnFileIndicator = "<nil>" PowerOfAttorneyResponseExporterPoaOnFileIndicatorNo PowerOfAttorneyResponseExporterPoaOnFileIndicator = "No" PowerOfAttorneyResponseExporterPoaOnFileIndicatorYes PowerOfAttorneyResponseExporterPoaOnFileIndicator = "Yes" )
Defines values for PowerOfAttorneyResponseExporterPoaOnFileIndicator.
type PowerOfAttorneyResponseImporterPoaOnFileIndicator ¶
type PowerOfAttorneyResponseImporterPoaOnFileIndicator string
PowerOfAttorneyResponseImporterPoaOnFileIndicator Whether the importer already has a POA on file
const ( PowerOfAttorneyResponseImporterPoaOnFileIndicatorLessThannil PowerOfAttorneyResponseImporterPoaOnFileIndicator = "<nil>" PowerOfAttorneyResponseImporterPoaOnFileIndicatorNo PowerOfAttorneyResponseImporterPoaOnFileIndicator = "No" PowerOfAttorneyResponseImporterPoaOnFileIndicatorYes PowerOfAttorneyResponseImporterPoaOnFileIndicator = "Yes" )
Defines values for PowerOfAttorneyResponseImporterPoaOnFileIndicator.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ShipmentId ¶
type ShipmentId = string
ShipmentId A unique identifier assigned to the shipment as part of the API's compliance review process.
type ShipmentItemsRequest ¶
type ShipmentItemsRequest struct {
// UOM The unit of measurement for the quantity of shipment items
UOM ShipmentItemsRequestUOM `json:"UOM"`
// AmountValue Total value of the items in the shipment.
AmountValue float64 `json:"amountValue"`
// CommodityId The commodity ID returned in the Import Export Compliance report.
CommodityId CommodityId `json:"commodityId"`
// CurrencyCode The three-letter code that represents the currency used to value the items in the shipment.
//
// | Supported enum values |
// | :--------------------------- |
// | `ARS`<br>Argentine Peso |
// | `AUD`<br>Australian Dollar |
// | `BRL`<br>Brazilian Real |
// | `CAD`<br>Canadian Dollar |
// | `CHF`<br>Swiss Franc |
// | `CLP`<br>Chilean Peso |
// | `CNY`<br>Chinese Yuan |
// | `CRC`<br>Costa Rican Colon |
// | `DKK`<br>Danish Krone |
// | `DOP`<br>Dominican Peso |
// | `EUR`<br>Euro |
// | `GBP`<br>Great Britain Pound |
// | `HKD`<br>Hong Kong Dollar |
// | `INR`<br>India Rupee |
// | `JPY`<br>Japanese Yen |
// | `KRW`<br>Korean Won |
// | `MXN`<br>Mexican Peso |
// | `MYR`<br>Malaysian Ringgit |
// | `NOK`<br>Norwegian Kroner |
// | `NZD`<br>New Zealand Dollar |
// | `PEN`<br>Peruvian Nuevo Sol |
// | `PHP`<br>Philippine Peso |
// | `PLN`<br>Polish Zloty |
// | `SEK`<br>Swedish Krona |
// | `SGD`<br>Singapore Dollar |
// | `THB`<br>Thai Baht |
// | `TWD`<br>Taiwan Dollar |
// | `USD`<br>US Dollar |
// | `VEB`<br>Venezuelan Bolivar |
CurrencyCode CurrencyCodes `json:"currencyCode"`
// Description A description of the shipment item listed in the request.
Description string `json:"description"`
// Eccn The [US Export Commodity Control Number (ECCN)](https://www.bis.doc.gov/index.php/licensing/commerce-control-list-classification/export-control-classification-number-eccn)a key identifier used in the export control system.
Eccn *string `json:"eccn,omitempty"`
// HsCode The [Harmonized System (HS) code](https://www.trade.gov/harmonized-system-hs-codes). Used commonly throughout the export process for goods, the Harmonized System is a standardized numerical method of classifying traded products. It is used by customs authorities to identify products when assessing duties and taxes.
HsCode *HsCode `json:"hsCode,omitempty"`
// OriginCountryCode The <a href="https://developer.ups.com/api/reference/shipping/appendix1" target="_blank" rel="noopener noreferrer">two-letter identification code</a> for countries.
OriginCountryCode CountryCodes `json:"originCountryCode"`
// Quantity The total number of items shipped.
Quantity int `json:"quantity"`
}
ShipmentItemsRequest This object provides a detailed response for each individual commodity within a shipment
type ShipmentItemsRequestUOM ¶
type ShipmentItemsRequestUOM string
ShipmentItemsRequestUOM The unit of measurement for the quantity of shipment items
const ( Bag ShipmentItemsRequestUOM = "Bag" Barrel ShipmentItemsRequestUOM = "Barrel" Bolt ShipmentItemsRequestUOM = "Bolt" Box ShipmentItemsRequestUOM = "Box" Bunch ShipmentItemsRequestUOM = "Bunch" Bundle ShipmentItemsRequestUOM = "Bundle" Butt ShipmentItemsRequestUOM = "Butt" Canister ShipmentItemsRequestUOM = "Canister" Carton ShipmentItemsRequestUOM = "Carton" Case ShipmentItemsRequestUOM = "Case" Centimeter ShipmentItemsRequestUOM = "Centimeter" Container ShipmentItemsRequestUOM = "Container" Crate ShipmentItemsRequestUOM = "Crate" Cylinder ShipmentItemsRequestUOM = "Cylinder" Dozen ShipmentItemsRequestUOM = "Dozen" Each ShipmentItemsRequestUOM = "Each" Envelope ShipmentItemsRequestUOM = "Envelope" Feet ShipmentItemsRequestUOM = "Feet" Kilogram ShipmentItemsRequestUOM = "Kilogram" Liter ShipmentItemsRequestUOM = "Liter" Meter ShipmentItemsRequestUOM = "Meter" Number ShipmentItemsRequestUOM = "Number" Package ShipmentItemsRequestUOM = "Package" Packet ShipmentItemsRequestUOM = "Packet" Pairs ShipmentItemsRequestUOM = "Pairs" Pallet ShipmentItemsRequestUOM = "Pallet" Pieces ShipmentItemsRequestUOM = "Pieces" Pounds ShipmentItemsRequestUOM = "Pounds" ProofLiter ShipmentItemsRequestUOM = "ProofLiter" Roll ShipmentItemsRequestUOM = "Roll" Set ShipmentItemsRequestUOM = "Set" SquareMeters ShipmentItemsRequestUOM = "Square Meters" SquareYards ShipmentItemsRequestUOM = "Square Yards" Tube ShipmentItemsRequestUOM = "Tube" Yard ShipmentItemsRequestUOM = "Yard" )
Defines values for ShipmentItemsRequestUOM.
type ShipmentItemsResponse ¶
type ShipmentItemsResponse struct {
// CommodityId The commodity ID returned in the Import Export Compliance report.
CommodityId CommodityId `json:"commodityId"`
// Description A description of the shipment item listed in the request.
Description string `json:"description"`
// DescriptionGuidance This object contains the system's results to a request for Description Guidance
DescriptionGuidance *DescriptionGuidanceResponse `json:"descriptionGuidance,omitempty"`
// HsCode The [Harmonized System (HS) code](https://www.trade.gov/harmonized-system-hs-codes). Used commonly throughout the export process for goods, the Harmonized System is a standardized numerical method of classifying traded products. It is used by customs authorities to identify products when assessing duties and taxes.
HsCode *HsCode `json:"hsCode,omitempty"`
// ImportExportCompliance This object includes details of the Import Export Compliance assessment.
ImportExportCompliance *ImportExportItemLevelResponse `json:"importExportCompliance,omitempty"`
}
ShipmentItemsResponse This object provides a detailed response for each individual commodity within a shipment
type ShipmentRequest ¶
type ShipmentRequest struct {
// ExportCountryCode The <a href="https://developer.ups.com/api/reference/shipping/appendix1" target="_blank" rel="noopener noreferrer">two-letter identification code</a> for countries.
ExportCountryCode CountryCodes `json:"exportCountryCode"`
// ExporterAccountNumber The UPS account number of the exporter
ExporterAccountNumber *string `json:"exporterAccountNumber,omitempty"`
// ExporterCity The city from which the exporter operates. Required if exporter's account number and zip code are not given and POA evaluation is requested.
ExporterCity *string `json:"exporterCity,omitempty"`
// ExporterName The name of the exporter. Required when the exporter's UPS account number is not available and POA requirements are under review.
ExporterName *string `json:"exporterName,omitempty"`
// ExporterZipcode The postal code of the exporter's location. Required when exporter's account number and city are not provided and POA evaluation is requested.
ExporterZipcode *string `json:"exporterZipcode,omitempty"`
// GrossWeight The gross weight of the entire Shipment. If this field is not specified, `grossWeightUnit` must be `null`.
GrossWeight *float64 `json:"grossWeight,omitempty"`
// GrossWeightUnit Gross weight unit. Only required if there is a value for `grossWeight`; If `grossWeight` is not specified, this value must equal `null`.
GrossWeightUnit *ShipmentRequestGrossWeightUnit `json:"grossWeightUnit"`
// Id A unique identifier assigned to the shipment as part of the API's compliance review process.
Id ShipmentId `json:"id"`
// ImportCountryCode The <a href="https://developer.ups.com/api/reference/shipping/appendix1" target="_blank" rel="noopener noreferrer">two-letter identification code</a> for countries.
ImportCountryCode CountryCodes `json:"importCountryCode"`
// ImporterAccountNumber The UPS account number of the importer
ImporterAccountNumber *string `json:"importerAccountNumber"`
// ImporterCity The city where the importer is located. Required if both importer's account number and importer's zip code are not provided and POA evaluation is requested.
ImporterCity *string `json:"importerCity,omitempty"`
// ImporterName The name of the importer
ImporterName *string `json:"importerName,omitempty"`
// ImporterZipcode The postal code of the importer's location. Required when the importer's account number and city are not specified and POA evaluation is requested.
ImporterZipcode *string `json:"importerZipcode,omitempty"`
// ShipmentDescription Description of the contents of the shipment. This description is required if the `evaluateDescriptions` flag is set to true.
ShipmentDescription *string `json:"shipmentDescription,omitempty"`
ShipmentItems []ShipmentItemsRequest `json:"shipmentItems"`
// ShipmentType Shipment type.
//
// | Supported enum values |
// | :--------------------------------------------------------------------------------------------------- |
// | `GIFT`<br>Items sent as gifts, typically for personal reasons. |
// | `COMM`<br>Commercial goods or commodities, usually for business transactions. Sale, sample, repair. |
// | `OTHR`<br>Return, Other, and Intercompany Data, Anything else not supported. |
// | `PERS`<br>Personal items, often for relocation or personal use |
ShipmentType ShipmentRequestShipmentType `json:"shipmentType"`
// TransModes Mode of transportation for the shipment.
//
// | Supported enum values |
// |---------------------------------------------|
// | `INT_AIR`<br>International Air Freight |
// | `INT_OCEAN`<br>International Ocean Freight |
// | `INT_RAIL`<br>International Rail Freight |
// | `INT_TRUCK`<br>International Truck Freight |
// | `DOM_AIR`<br>Domestic Air Freight |
// | `DOM_OCEAN`<br>Domestic Ocean Freight |
// | `DOM_RAIL`<br>Domestic Rail Freight |
// | `DOM_TRUCK`<br>Domestic Truck Freight |
TransModes *ShipmentRequestTransModes `json:"transModes,omitempty"`
// TranslationLocale Translation locale.
//
// | Supported enum values |
// | :------------------------- |
// | `EN`<br>English |
// | `DE`<br>Germany |
// | `PL`<br>Polish |
// | `FR`<br>French |
// | `IT`<br>Italian |
// | `NL`<br>Dutch |
// | `ES`<br>Spanish |
// | `ZH`<br>Simplified Chinese |
TranslationLocale *TranslationLocale `json:"translationLocale,omitempty"`
}
ShipmentRequest This object contains all necessary details about a shipment for compliance evaluation.
type ShipmentRequestGrossWeightUnit ¶
type ShipmentRequestGrossWeightUnit string
ShipmentRequestGrossWeightUnit Gross weight unit. Only required if there is a value for `grossWeight`; If `grossWeight` is not specified, this value must equal `null`.
const ( ShipmentRequestGrossWeightUnitKG ShipmentRequestGrossWeightUnit = "KG" ShipmentRequestGrossWeightUnitLB ShipmentRequestGrossWeightUnit = "LB" ShipmentRequestGrossWeightUnitLessThannil ShipmentRequestGrossWeightUnit = "<nil>" )
Defines values for ShipmentRequestGrossWeightUnit.
type ShipmentRequestShipmentType ¶
type ShipmentRequestShipmentType string
ShipmentRequestShipmentType Shipment type.
| Supported enum values | | :--------------------------------------------------------------------------------------------------- | | `GIFT`<br>Items sent as gifts, typically for personal reasons. | | `COMM`<br>Commercial goods or commodities, usually for business transactions. Sale, sample, repair. | | `OTHR`<br>Return, Other, and Intercompany Data, Anything else not supported. | | `PERS`<br>Personal items, often for relocation or personal use |
const ( COMM ShipmentRequestShipmentType = "COMM" GIFT ShipmentRequestShipmentType = "GIFT" OTHR ShipmentRequestShipmentType = "OTHR" PERS ShipmentRequestShipmentType = "PERS" )
Defines values for ShipmentRequestShipmentType.
type ShipmentRequestTransModes ¶
type ShipmentRequestTransModes string
ShipmentRequestTransModes Mode of transportation for the shipment.
| Supported enum values | |---------------------------------------------| | `INT_AIR`<br>International Air Freight | | `INT_OCEAN`<br>International Ocean Freight | | `INT_RAIL`<br>International Rail Freight | | `INT_TRUCK`<br>International Truck Freight | | `DOM_AIR`<br>Domestic Air Freight | | `DOM_OCEAN`<br>Domestic Ocean Freight | | `DOM_RAIL`<br>Domestic Rail Freight | | `DOM_TRUCK`<br>Domestic Truck Freight |
const ( DOMAIR ShipmentRequestTransModes = "DOM_AIR" DOMOCEAN ShipmentRequestTransModes = "DOM_OCEAN" DOMRAIL ShipmentRequestTransModes = "DOM_RAIL" DOMTRUCK ShipmentRequestTransModes = "DOM_TRUCK" INTAIR ShipmentRequestTransModes = "INT_AIR" INTOCEAN ShipmentRequestTransModes = "INT_OCEAN" INTRAIL ShipmentRequestTransModes = "INT_RAIL" INTTRUCK ShipmentRequestTransModes = "INT_TRUCK" )
Defines values for ShipmentRequestTransModes.
type ShipmentResponse ¶
type ShipmentResponse struct {
// DescriptionGuidance This object contains the system's results to a request for Description Guidance
DescriptionGuidance *DescriptionGuidanceResponse `json:"descriptionGuidance,omitempty"`
// HasCommodityWarnings Whether there are compliance-related warnings or issues at the commodity level within the shipment. A `true` value indicates potential compliance concerns that require the shipper's attention.
HasCommodityWarnings bool `json:"hasCommodityWarnings"`
// Id A unique identifier assigned to the shipment as part of the API's compliance review process.
Id ShipmentId `json:"id"`
// ImportExportCompliance This object contains properties which describe the shipment's compliance with laws and regulations.
ImportExportCompliance *ImportExportShipmentLevelResponse `json:"importExportCompliance,omitempty"`
// PoaCompliance This object includes details of the Power of Attorney (POA) requirements for the shipment.
PoaCompliance *PowerOfAttorneyResponse `json:"poaCompliance,omitempty"`
ShipmentItems []ShipmentItemsResponse `json:"shipmentItems"`
}
ShipmentResponse This object contains metadata about the shipment and includes the response objects for each of the three operations.
type SubmitExportAssureJSONRequestBody ¶
type SubmitExportAssureJSONRequestBody = ExportAssureRequest
SubmitExportAssureJSONRequestBody defines body for SubmitExportAssure for application/json ContentType.
type SubmitExportAssureParams ¶
type SubmitExportAssureParams struct {
// AccountNumber UPS account number for shipper or user
AccountNumber *AccountNumber `json:"accountNumber,omitempty"`
}
SubmitExportAssureParams defines parameters for SubmitExportAssure.
type SubmitExportAssureResponse ¶
type SubmitExportAssureResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExportAssureResponse
JSON207 *ExportAssurePartialResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON405 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseSubmitExportAssureResponse ¶
func ParseSubmitExportAssureResponse(rsp *http.Response) (*SubmitExportAssureResponse, error)
ParseSubmitExportAssureResponse parses an HTTP response from a SubmitExportAssureWithResponse call
func (SubmitExportAssureResponse) Status ¶
func (r SubmitExportAssureResponse) Status() string
Status returns HTTPResponse.Status
func (SubmitExportAssureResponse) StatusCode ¶
func (r SubmitExportAssureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SuccessResponseHeaders ¶
type SuccessResponseHeaders struct {
// BkndTransId The backend transaction id.
BkndTransId string `json:"BkndTransId"`
// XApiSuccessCount Indicate the number of charges for the API call.
XApiSuccessCount *string `json:"x-api-success-count,omitempty"`
// XRequestId The APIGEE transaction id.
XRequestId string `json:"x-request-id"`
}
SuccessResponseHeaders The headers that are returned for all error responses.
type TransactionID ¶
type TransactionID = string
TransactionID The unique, reference identifier that correlates an API request with its response
type TranslationLocale ¶
type TranslationLocale string
TranslationLocale Translation locale.
| Supported enum values | | :------------------------- | | `EN`<br>English | | `DE`<br>Germany | | `PL`<br>Polish | | `FR`<br>French | | `IT`<br>Italian | | `NL`<br>Dutch | | `ES`<br>Spanish | | `ZH`<br>Simplified Chinese |
const ( DE TranslationLocale = "DE" EN TranslationLocale = "EN" ES TranslationLocale = "ES" FR TranslationLocale = "FR" IT TranslationLocale = "IT" NL TranslationLocale = "NL" PL TranslationLocale = "PL" ZH TranslationLocale = "ZH" )
Defines values for TranslationLocale.