Documentation
¶
Overview ¶
Package forwarding 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.
Package forwarding 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 NewAirOceanBookQuoteRequest(server string, params *AirOceanBookQuoteParams, ...) (*http.Request, error)
- func NewAirOceanBookQuoteRequestWithBody(server string, params *AirOceanBookQuoteParams, contentType string, ...) (*http.Request, error)
- func NewCancelAirShipmentRequest(server string, params *CancelAirShipmentParams, ...) (*http.Request, error)
- func NewCancelAirShipmentRequestWithBody(server string, params *CancelAirShipmentParams, contentType string, ...) (*http.Request, error)
- func NewCreateAirOceanQuoteRequest(server string, params *CreateAirOceanQuoteParams, ...) (*http.Request, error)
- func NewCreateAirOceanQuoteRequestWithBody(server string, params *CreateAirOceanQuoteParams, contentType string, ...) (*http.Request, error)
- func NewFreightRatingRequest(server string, params *FreightRatingParams, body FreightRatingJSONRequestBody) (*http.Request, error)
- func NewFreightRatingRequestWithBody(server string, params *FreightRatingParams, contentType string, body io.Reader) (*http.Request, error)
- func NewFreightShipRequest(server string, params *FreightShipParams, body FreightShipJSONRequestBody) (*http.Request, error)
- func NewFreightShipRequestWithBody(server string, params *FreightShipParams, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAccessorialsRequest(server string, params *GetAccessorialsParams, ...) (*http.Request, error)
- func NewGetAccessorialsRequestWithBody(server string, params *GetAccessorialsParams, contentType string, ...) (*http.Request, error)
- func NewGetAirPaymentTypesRequest(server string, params *GetAirPaymentTypesParams) (*http.Request, error)
- func NewGetAirportDetailsRequest(server string, params *GetAirportDetailsParams) (*http.Request, error)
- func NewGetCityRequest(server string, params *GetCityParams) (*http.Request, error)
- func NewGetCountriesRequest(server string, params *GetCountriesParams) (*http.Request, error)
- func NewGetCurrenciesRequest(server string, params *GetCurrenciesParams) (*http.Request, error)
- func NewGetDocumentsRequest(server string, params *GetDocumentsParams) (*http.Request, error)
- func NewGetQuoteDetailsRequest(server string, params *GetQuoteDetailsParams) (*http.Request, error)
- func NewGetServiceTypesRequest(server string, params *GetServiceTypesParams) (*http.Request, error)
- func NewGetShipmentDetailsRequest(server string, params *GetShipmentDetailsParams) (*http.Request, error)
- func NewGetShipmentMilestonesRequest(server string, params *GetShipmentMilestonesParams) (*http.Request, error)
- func NewOrderCancelRequest(server string, params *OrderCancelParams, body OrderCancelJSONRequestBody) (*http.Request, error)
- func NewOrderCancelRequestWithBody(server string, params *OrderCancelParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOrderCreateRequest(server string, params *OrderCreateParams, body OrderCreateJSONRequestBody) (*http.Request, error)
- func NewOrderCreateRequestWithBody(server string, params *OrderCreateParams, contentType string, body io.Reader) (*http.Request, error)
- func NewOrderSearchRequest(server string, params *OrderSearchParams) (*http.Request, error)
- func NewOrderSetDateRequest(server string, params *OrderSetDateParams, body OrderSetDateJSONRequestBody) (*http.Request, error)
- func NewOrderSetDateRequestWithBody(server string, params *OrderSetDateParams, contentType string, body io.Reader) (*http.Request, error)
- func NewPrintAirManifestRequest(server string, params *PrintAirManifestParams, ...) (*http.Request, error)
- func NewPrintAirManifestRequestWithBody(server string, params *PrintAirManifestParams, contentType string, ...) (*http.Request, error)
- func NewPrintLabelRequest(server string, params *PrintLabelParams, body PrintLabelJSONRequestBody) (*http.Request, error)
- func NewPrintLabelRequestWithBody(server string, params *PrintLabelParams, contentType string, body io.Reader) (*http.Request, error)
- func NewSubmitAirShipmentRequest(server string, params *SubmitAirShipmentParams, ...) (*http.Request, error)
- func NewSubmitAirShipmentRequestWithBody(server string, params *SubmitAirShipmentParams, contentType string, ...) (*http.Request, error)
- func NewUploadDocumentRequestWithBody(server string, params *UploadDocumentParams, contentType string, ...) (*http.Request, error)
- type AdditionalInformation
- type Address
- type AddressDetail
- type AirCargoItem
- type AirOceanBookCargoDetails
- type AirOceanBookQuoteJSONRequestBody
- type AirOceanBookQuoteParams
- type AirOceanBookQuoteResponse
- type AirOceanBookingResponse
- type AirOceanPickupDetail
- type ApolloAccessorialPaymentTermResponseV1
- type ApolloAccessorialsResponseDetailsV1
- type ApolloAirFreightRateRequestV1
- type ApolloAirFreightRateRequestV1ShipmentFreightType
- type ApolloAirFreightRateRequestV1ShipmentPaymentType
- type ApolloAirFreightRateRequestV1ShipmentServiceType
- type ApolloAirFreightRateRequestV1ThirdParty0
- type ApolloAirFreightRateRequestV1_ThirdParty
- func (t ApolloAirFreightRateRequestV1_ThirdParty) AsApolloAirFreightRateRequestV1ThirdParty0() (ApolloAirFreightRateRequestV1ThirdParty0, error)
- func (t ApolloAirFreightRateRequestV1_ThirdParty) AsApolloPartyV1() (ApolloPartyV1, error)
- func (t *ApolloAirFreightRateRequestV1_ThirdParty) FromApolloAirFreightRateRequestV1ThirdParty0(v ApolloAirFreightRateRequestV1ThirdParty0) error
- func (t *ApolloAirFreightRateRequestV1_ThirdParty) FromApolloPartyV1(v ApolloPartyV1) error
- func (t ApolloAirFreightRateRequestV1_ThirdParty) MarshalJSON() ([]byte, error)
- func (t *ApolloAirFreightRateRequestV1_ThirdParty) MergeApolloAirFreightRateRequestV1ThirdParty0(v ApolloAirFreightRateRequestV1ThirdParty0) error
- func (t *ApolloAirFreightRateRequestV1_ThirdParty) MergeApolloPartyV1(v ApolloPartyV1) error
- func (t *ApolloAirFreightRateRequestV1_ThirdParty) UnmarshalJSON(b []byte) error
- type ApolloAirFreightRateResponseV1
- type ApolloAirFreightRateResponseV1ResponseRatesWeightUnit
- type ApolloAirShipRequestV1
- type ApolloAirShipRequestV1Label1
- type ApolloAirShipRequestV1ThirdParty1
- type ApolloAirShipRequestV1_Label
- func (t ApolloAirShipRequestV1_Label) AsApolloAirShipRequestV1Label1() (ApolloAirShipRequestV1Label1, error)
- func (t ApolloAirShipRequestV1_Label) AsLabelRequest() (LabelRequest, error)
- func (t *ApolloAirShipRequestV1_Label) FromApolloAirShipRequestV1Label1(v ApolloAirShipRequestV1Label1) error
- func (t *ApolloAirShipRequestV1_Label) FromLabelRequest(v LabelRequest) error
- func (t ApolloAirShipRequestV1_Label) MarshalJSON() ([]byte, error)
- func (t *ApolloAirShipRequestV1_Label) MergeApolloAirShipRequestV1Label1(v ApolloAirShipRequestV1Label1) error
- func (t *ApolloAirShipRequestV1_Label) MergeLabelRequest(v LabelRequest) error
- func (t *ApolloAirShipRequestV1_Label) UnmarshalJSON(b []byte) error
- type ApolloAirShipRequestV1_ThirdParty
- func (t ApolloAirShipRequestV1_ThirdParty) AsApolloAirShipRequestV1ThirdParty1() (ApolloAirShipRequestV1ThirdParty1, error)
- func (t ApolloAirShipRequestV1_ThirdParty) AsPartyDetailsV1() (PartyDetailsV1, error)
- func (t *ApolloAirShipRequestV1_ThirdParty) FromApolloAirShipRequestV1ThirdParty1(v ApolloAirShipRequestV1ThirdParty1) error
- func (t *ApolloAirShipRequestV1_ThirdParty) FromPartyDetailsV1(v PartyDetailsV1) error
- func (t ApolloAirShipRequestV1_ThirdParty) MarshalJSON() ([]byte, error)
- func (t *ApolloAirShipRequestV1_ThirdParty) MergeApolloAirShipRequestV1ThirdParty1(v ApolloAirShipRequestV1ThirdParty1) error
- func (t *ApolloAirShipRequestV1_ThirdParty) MergePartyDetailsV1(v PartyDetailsV1) error
- func (t *ApolloAirShipRequestV1_ThirdParty) UnmarshalJSON(b []byte) error
- type ApolloAirShipResponseV1
- type ApolloAirShipmentCancelRequestV1
- type ApolloAirShipmentCancelResponseV1
- type ApolloAirShipmentDataResponseV1
- type ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode
- type ApolloAirUtilityAccessorialsRequestV1
- type ApolloAirUtilityAccessorialsRequestV1ServiceCode
- type ApolloAirUtilityValidAccessorialsResponseV1
- type ApolloAirportResponseDetailsV1
- type ApolloAmountV1
- type ApolloBookingResponseV1
- type ApolloCancelOrderRequestV1
- type ApolloCancelOrderResponseV1
- type ApolloChargeAmountV1
- type ApolloChargeV1
- type ApolloCountryCodeV1
- type ApolloCustomArrayV1
- type ApolloDateTimeV1
- type ApolloDateV1
- type ApolloDimensionV1
- type ApolloErrorResponseV1
- type ApolloFullTrackingDetailsResponseV1
- type ApolloGetCityResponseV1
- type ApolloItemV1
- type ApolloLabelV1
- type ApolloLabelV1LabelDataShipmentFreightType
- type ApolloLabelV1LabelDataThirdParty0
- type ApolloLabelV1_LabelData_ThirdParty
- func (t ApolloLabelV1_LabelData_ThirdParty) AsApolloLabelV1LabelDataThirdParty0() (ApolloLabelV1LabelDataThirdParty0, error)
- func (t ApolloLabelV1_LabelData_ThirdParty) AsApolloShipmentPartyV1() (ApolloShipmentPartyV1, error)
- func (t *ApolloLabelV1_LabelData_ThirdParty) FromApolloLabelV1LabelDataThirdParty0(v ApolloLabelV1LabelDataThirdParty0) error
- func (t *ApolloLabelV1_LabelData_ThirdParty) FromApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
- func (t ApolloLabelV1_LabelData_ThirdParty) MarshalJSON() ([]byte, error)
- func (t *ApolloLabelV1_LabelData_ThirdParty) MergeApolloLabelV1LabelDataThirdParty0(v ApolloLabelV1LabelDataThirdParty0) error
- func (t *ApolloLabelV1_LabelData_ThirdParty) MergeApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
- func (t *ApolloLabelV1_LabelData_ThirdParty) UnmarshalJSON(b []byte) error
- type ApolloOrderNumberV1
- type ApolloOrderPrintLabelRequestV1
- type ApolloOrderPrintLabelRequestV1Format
- type ApolloOrderRequestV1
- type ApolloOrderRequestV1LabelFormat
- type ApolloOrderRequestV1ShipmentFreightType
- type ApolloOrderRequestV1ShipmentPaymentType
- type ApolloOrderRequestV1ShipmentServiceType
- type ApolloOrderRequestV1ThirdParty0
- type ApolloOrderRequestV1_ThirdParty
- func (t ApolloOrderRequestV1_ThirdParty) AsApolloOrderRequestV1ThirdParty0() (ApolloOrderRequestV1ThirdParty0, error)
- func (t ApolloOrderRequestV1_ThirdParty) AsApolloShipmentPartyV1() (ApolloShipmentPartyV1, error)
- func (t *ApolloOrderRequestV1_ThirdParty) FromApolloOrderRequestV1ThirdParty0(v ApolloOrderRequestV1ThirdParty0) error
- func (t *ApolloOrderRequestV1_ThirdParty) FromApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
- func (t ApolloOrderRequestV1_ThirdParty) MarshalJSON() ([]byte, error)
- func (t *ApolloOrderRequestV1_ThirdParty) MergeApolloOrderRequestV1ThirdParty0(v ApolloOrderRequestV1ThirdParty0) error
- func (t *ApolloOrderRequestV1_ThirdParty) MergeApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
- func (t *ApolloOrderRequestV1_ThirdParty) UnmarshalJSON(b []byte) error
- type ApolloOrderResponseV1
- type ApolloOrderResponseV1ResponseLabelDataShipmentFreightType
- type ApolloOrderResponseV1ResponseLabelDataThirdParty0
- type ApolloOrderResponseV1_Response_LabelData_ThirdParty
- func (t ApolloOrderResponseV1_Response_LabelData_ThirdParty) AsApolloOrderResponseV1ResponseLabelDataThirdParty0() (ApolloOrderResponseV1ResponseLabelDataThirdParty0, error)
- func (t ApolloOrderResponseV1_Response_LabelData_ThirdParty) AsApolloShipmentPartyV1() (ApolloShipmentPartyV1, error)
- func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) FromApolloOrderResponseV1ResponseLabelDataThirdParty0(v ApolloOrderResponseV1ResponseLabelDataThirdParty0) error
- func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) FromApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
- func (t ApolloOrderResponseV1_Response_LabelData_ThirdParty) MarshalJSON() ([]byte, error)
- func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) MergeApolloOrderResponseV1ResponseLabelDataThirdParty0(v ApolloOrderResponseV1ResponseLabelDataThirdParty0) error
- func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) MergeApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
- func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) UnmarshalJSON(b []byte) error
- type ApolloOrderSearchRequestV1
- type ApolloOrderSearchResponseV1
- type ApolloOrderSearchResponseV1ResponseOrdersItemsWeightUnit
- type ApolloOrderSearchResponseV1_Response
- func (a ApolloOrderSearchResponseV1_Response) Get(fieldName string) (value interface{}, found bool)
- func (a ApolloOrderSearchResponseV1_Response) MarshalJSON() ([]byte, error)
- func (a *ApolloOrderSearchResponseV1_Response) Set(fieldName string, value interface{})
- func (a *ApolloOrderSearchResponseV1_Response) UnmarshalJSON(b []byte) error
- type ApolloOrderSetDateResponseV1
- type ApolloOrderSetDateResponseV1ResponseOrderNumber1
- type ApolloOrderSetDateResponseV1_Response_OrderNumber
- func (t ApolloOrderSetDateResponseV1_Response_OrderNumber) AsApolloOrderNumberV1() (ApolloOrderNumberV1, error)
- func (t ApolloOrderSetDateResponseV1_Response_OrderNumber) AsApolloOrderSetDateResponseV1ResponseOrderNumber1() (ApolloOrderSetDateResponseV1ResponseOrderNumber1, error)
- func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) FromApolloOrderNumberV1(v ApolloOrderNumberV1) error
- func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) FromApolloOrderSetDateResponseV1ResponseOrderNumber1(v ApolloOrderSetDateResponseV1ResponseOrderNumber1) error
- func (t ApolloOrderSetDateResponseV1_Response_OrderNumber) MarshalJSON() ([]byte, error)
- func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) MergeApolloOrderNumberV1(v ApolloOrderNumberV1) error
- func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) MergeApolloOrderSetDateResponseV1ResponseOrderNumber1(v ApolloOrderSetDateResponseV1ResponseOrderNumber1) error
- func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) UnmarshalJSON(b []byte) error
- type ApolloPartyV1
- type ApolloPatchReplaceReqV1
- type ApolloPatchReplaceReqV1Op
- type ApolloPickupTotalV1
- type ApolloPrintManifestRequestV1
- type ApolloPrintManifestRequestV1ManifestFormat
- type ApolloQuoteBookingRequestV1
- type ApolloQuoteDataResponseV1
- type ApolloQuoteDetailRequestV1
- type ApolloQuoteDetailsResponseV1
- type ApolloShipmentAddressV1
- type ApolloShipmentAddressV1OperationId
- type ApolloShipmentDetailResponseV1
- type ApolloShipmentNumberV1
- type ApolloShipmentPartyV1
- type ApolloShipmentPartyV1OperationId
- type ApolloShipperAccountNumberV1
- type ApolloTimeV1
- type ApolloUtilityAirportDetailResponseV1
- type ApolloWarningArrayV1
- type ApolloWeightV1
- type BookChargeV1
- type BookingResponse
- type CancelAirShipmentJSONRequestBody
- type CancelAirShipmentParams
- type CancelAirShipmentResponse
- type CargoDetails
- type CargoItem
- type ChargeDetail
- type ChargeDetailV1
- type ChargeDetails
- type ChargeV2
- type Charges
- type Client
- func (c *Client) AirOceanBookQuote(ctx context.Context, params *AirOceanBookQuoteParams, ...) (*http.Response, error)
- func (c *Client) AirOceanBookQuoteWithBody(ctx context.Context, params *AirOceanBookQuoteParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CancelAirShipment(ctx context.Context, params *CancelAirShipmentParams, ...) (*http.Response, error)
- func (c *Client) CancelAirShipmentWithBody(ctx context.Context, params *CancelAirShipmentParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateAirOceanQuote(ctx context.Context, params *CreateAirOceanQuoteParams, ...) (*http.Response, error)
- func (c *Client) CreateAirOceanQuoteWithBody(ctx context.Context, params *CreateAirOceanQuoteParams, contentType string, ...) (*http.Response, error)
- func (c *Client) FreightRating(ctx context.Context, params *FreightRatingParams, ...) (*http.Response, error)
- func (c *Client) FreightRatingWithBody(ctx context.Context, params *FreightRatingParams, contentType string, ...) (*http.Response, error)
- func (c *Client) FreightShip(ctx context.Context, params *FreightShipParams, ...) (*http.Response, error)
- func (c *Client) FreightShipWithBody(ctx context.Context, params *FreightShipParams, contentType string, ...) (*http.Response, error)
- func (c *Client) GetAccessorials(ctx context.Context, params *GetAccessorialsParams, ...) (*http.Response, error)
- func (c *Client) GetAccessorialsWithBody(ctx context.Context, params *GetAccessorialsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) GetAirPaymentTypes(ctx context.Context, params *GetAirPaymentTypesParams, ...) (*http.Response, error)
- func (c *Client) GetAirportDetails(ctx context.Context, params *GetAirportDetailsParams, ...) (*http.Response, error)
- func (c *Client) GetCity(ctx context.Context, params *GetCityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCountries(ctx context.Context, params *GetCountriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCurrencies(ctx context.Context, params *GetCurrenciesParams, ...) (*http.Response, error)
- func (c *Client) GetDocuments(ctx context.Context, params *GetDocumentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetQuoteDetails(ctx context.Context, params *GetQuoteDetailsParams, ...) (*http.Response, error)
- func (c *Client) GetServiceTypes(ctx context.Context, params *GetServiceTypesParams, ...) (*http.Response, error)
- func (c *Client) GetShipmentDetails(ctx context.Context, params *GetShipmentDetailsParams, ...) (*http.Response, error)
- func (c *Client) GetShipmentMilestones(ctx context.Context, params *GetShipmentMilestonesParams, ...) (*http.Response, error)
- func (c *Client) OrderCancel(ctx context.Context, params *OrderCancelParams, ...) (*http.Response, error)
- func (c *Client) OrderCancelWithBody(ctx context.Context, params *OrderCancelParams, contentType string, ...) (*http.Response, error)
- func (c *Client) OrderCreate(ctx context.Context, params *OrderCreateParams, ...) (*http.Response, error)
- func (c *Client) OrderCreateWithBody(ctx context.Context, params *OrderCreateParams, contentType string, ...) (*http.Response, error)
- func (c *Client) OrderSearch(ctx context.Context, params *OrderSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OrderSetDate(ctx context.Context, params *OrderSetDateParams, ...) (*http.Response, error)
- func (c *Client) OrderSetDateWithBody(ctx context.Context, params *OrderSetDateParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PrintAirManifest(ctx context.Context, params *PrintAirManifestParams, ...) (*http.Response, error)
- func (c *Client) PrintAirManifestWithBody(ctx context.Context, params *PrintAirManifestParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PrintLabel(ctx context.Context, params *PrintLabelParams, body PrintLabelJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PrintLabelWithBody(ctx context.Context, params *PrintLabelParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SubmitAirShipment(ctx context.Context, params *SubmitAirShipmentParams, ...) (*http.Response, error)
- func (c *Client) SubmitAirShipmentWithBody(ctx context.Context, params *SubmitAirShipmentParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UploadDocumentWithBody(ctx context.Context, params *UploadDocumentParams, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AirOceanBookQuoteWithBodyWithResponse(ctx context.Context, params *AirOceanBookQuoteParams, contentType string, ...) (*AirOceanBookQuoteResponse, error)
- func (c *ClientWithResponses) AirOceanBookQuoteWithResponse(ctx context.Context, params *AirOceanBookQuoteParams, ...) (*AirOceanBookQuoteResponse, error)
- func (c *ClientWithResponses) CancelAirShipmentWithBodyWithResponse(ctx context.Context, params *CancelAirShipmentParams, contentType string, ...) (*CancelAirShipmentResponse, error)
- func (c *ClientWithResponses) CancelAirShipmentWithResponse(ctx context.Context, params *CancelAirShipmentParams, ...) (*CancelAirShipmentResponse, error)
- func (c *ClientWithResponses) CreateAirOceanQuoteWithBodyWithResponse(ctx context.Context, params *CreateAirOceanQuoteParams, contentType string, ...) (*CreateAirOceanQuoteResponse, error)
- func (c *ClientWithResponses) CreateAirOceanQuoteWithResponse(ctx context.Context, params *CreateAirOceanQuoteParams, ...) (*CreateAirOceanQuoteResponse, error)
- func (c *ClientWithResponses) FreightRatingWithBodyWithResponse(ctx context.Context, params *FreightRatingParams, contentType string, ...) (*FreightRatingResponse, error)
- func (c *ClientWithResponses) FreightRatingWithResponse(ctx context.Context, params *FreightRatingParams, ...) (*FreightRatingResponse, error)
- func (c *ClientWithResponses) FreightShipWithBodyWithResponse(ctx context.Context, params *FreightShipParams, contentType string, ...) (*FreightShipResponse, error)
- func (c *ClientWithResponses) FreightShipWithResponse(ctx context.Context, params *FreightShipParams, ...) (*FreightShipResponse, error)
- func (c *ClientWithResponses) GetAccessorialsWithBodyWithResponse(ctx context.Context, params *GetAccessorialsParams, contentType string, ...) (*GetAccessorialsResponse, error)
- func (c *ClientWithResponses) GetAccessorialsWithResponse(ctx context.Context, params *GetAccessorialsParams, ...) (*GetAccessorialsResponse, error)
- func (c *ClientWithResponses) GetAirPaymentTypesWithResponse(ctx context.Context, params *GetAirPaymentTypesParams, ...) (*GetAirPaymentTypesResponse, error)
- func (c *ClientWithResponses) GetAirportDetailsWithResponse(ctx context.Context, params *GetAirportDetailsParams, ...) (*GetAirportDetailsResponse, error)
- func (c *ClientWithResponses) GetCityWithResponse(ctx context.Context, params *GetCityParams, reqEditors ...RequestEditorFn) (*GetCityResponse, error)
- func (c *ClientWithResponses) GetCountriesWithResponse(ctx context.Context, params *GetCountriesParams, reqEditors ...RequestEditorFn) (*GetCountriesResponse, error)
- func (c *ClientWithResponses) GetCurrenciesWithResponse(ctx context.Context, params *GetCurrenciesParams, ...) (*GetCurrenciesResponse, error)
- func (c *ClientWithResponses) GetDocumentsWithResponse(ctx context.Context, params *GetDocumentsParams, reqEditors ...RequestEditorFn) (*GetDocumentsResponse, error)
- func (c *ClientWithResponses) GetQuoteDetailsWithResponse(ctx context.Context, params *GetQuoteDetailsParams, ...) (*GetQuoteDetailsResponse, error)
- func (c *ClientWithResponses) GetServiceTypesWithResponse(ctx context.Context, params *GetServiceTypesParams, ...) (*GetServiceTypesResponse, error)
- func (c *ClientWithResponses) GetShipmentDetailsWithResponse(ctx context.Context, params *GetShipmentDetailsParams, ...) (*GetShipmentDetailsResponse, error)
- func (c *ClientWithResponses) GetShipmentMilestonesWithResponse(ctx context.Context, params *GetShipmentMilestonesParams, ...) (*GetShipmentMilestonesResponse, error)
- func (c *ClientWithResponses) OrderCancelWithBodyWithResponse(ctx context.Context, params *OrderCancelParams, contentType string, ...) (*OrderCancelResponse, error)
- func (c *ClientWithResponses) OrderCancelWithResponse(ctx context.Context, params *OrderCancelParams, ...) (*OrderCancelResponse, error)
- func (c *ClientWithResponses) OrderCreateWithBodyWithResponse(ctx context.Context, params *OrderCreateParams, contentType string, ...) (*OrderCreateResponse, error)
- func (c *ClientWithResponses) OrderCreateWithResponse(ctx context.Context, params *OrderCreateParams, ...) (*OrderCreateResponse, error)
- func (c *ClientWithResponses) OrderSearchWithResponse(ctx context.Context, params *OrderSearchParams, reqEditors ...RequestEditorFn) (*OrderSearchResponse, error)
- func (c *ClientWithResponses) OrderSetDateWithBodyWithResponse(ctx context.Context, params *OrderSetDateParams, contentType string, ...) (*OrderSetDateResponse, error)
- func (c *ClientWithResponses) OrderSetDateWithResponse(ctx context.Context, params *OrderSetDateParams, ...) (*OrderSetDateResponse, error)
- func (c *ClientWithResponses) PrintAirManifestWithBodyWithResponse(ctx context.Context, params *PrintAirManifestParams, contentType string, ...) (*PrintAirManifestResponse, error)
- func (c *ClientWithResponses) PrintAirManifestWithResponse(ctx context.Context, params *PrintAirManifestParams, ...) (*PrintAirManifestResponse, error)
- func (c *ClientWithResponses) PrintLabelWithBodyWithResponse(ctx context.Context, params *PrintLabelParams, contentType string, ...) (*PrintLabelResponse, error)
- func (c *ClientWithResponses) PrintLabelWithResponse(ctx context.Context, params *PrintLabelParams, body PrintLabelJSONRequestBody, ...) (*PrintLabelResponse, error)
- func (c *ClientWithResponses) SubmitAirShipmentWithBodyWithResponse(ctx context.Context, params *SubmitAirShipmentParams, contentType string, ...) (*SubmitAirShipmentResponse, error)
- func (c *ClientWithResponses) SubmitAirShipmentWithResponse(ctx context.Context, params *SubmitAirShipmentParams, ...) (*SubmitAirShipmentResponse, error)
- func (c *ClientWithResponses) UploadDocumentWithBodyWithResponse(ctx context.Context, params *UploadDocumentParams, contentType string, ...) (*UploadDocumentResponse, error)
- type ClientWithResponsesInterface
- type ContactAddress
- type ContactDetail
- type ContactDetailV1
- type ContactInfo
- type ContainerInfo
- type CountryCodeResponseV1
- type CountryCodeV1
- type CreateAirOceanQuoteJSONRequestBody
- type CreateAirOceanQuoteParams
- type CreateAirOceanQuoteResponse
- type CurrenciesResponseV1
- type CurrencyDataV1
- type CustomerReferenceInfo
- type Dimensions
- type DiscountDetail
- type DiscountDetailV1
- type DocumentType
- type FclCargoItem
- type FlightVoyageInfo
- type FreightRatingJSONRequestBody
- type FreightRatingParams
- type FreightRatingResponse
- type FreightShipJSONRequestBody
- type FreightShipParams
- type FreightShipResponse
- type GetAccessorialsJSONRequestBody
- type GetAccessorialsParams
- type GetAccessorialsResponse
- type GetAirPaymentTypesParams
- type GetAirPaymentTypesResponse
- type GetAirportDetailsParams
- type GetAirportDetailsResponse
- type GetCityParams
- type GetCityResponse
- type GetCountriesParams
- type GetCountriesResponse
- type GetCurrenciesParams
- type GetCurrenciesResponse
- type GetDocumentsParams
- type GetDocumentsParamsShipmentType
- type GetDocumentsResponse
- type GetQuoteDetailsParams
- type GetQuoteDetailsParamsRequestType
- type GetQuoteDetailsResponse
- type GetServiceTypesParams
- type GetServiceTypesResponse
- type GetShipmentDetailsParams
- type GetShipmentDetailsParamsRequestType
- type GetShipmentDetailsResponse
- type GetShipmentMilestonesParams
- type GetShipmentMilestonesResponse
- type HttpRequestDoer
- type Item
- type LabelRequest
- type LabelResponse
- type LclCargoItem
- type LclCargoItemV1
- type Location
- type Milestone
- type OrderCancelJSONRequestBody
- type OrderCancelParams
- type OrderCancelResponse
- type OrderCreateJSONRequestBody
- type OrderCreateParams
- type OrderCreateResponse
- type OrderSearchParams
- type OrderSearchResponse
- type OrderSetDateJSONRequestBody
- type OrderSetDateParams
- type OrderSetDateResponse
- type PartyAddress
- type PartyDetail
- type PartyDetails
- type PartyDetailsV1
- type PaymentTerm
- type PaymentTermInfoV1
- type PaymentTypeResponseV1
- type PickupDetail
- type PortDetail
- type PortInfo
- type PricingDetail
- type PricingDetailV1
- type PrimaryInformation
- type PrintAirManifestJSONRequestBody
- type PrintAirManifestParams
- type PrintAirManifestResponse
- type PrintLabelJSONRequestBody
- type PrintLabelParams
- type PrintLabelResponse
- type QuoteCharges
- type QuoteData
- type QuoteDetailsResponse
- type QuoteShipmentDetails
- type QuoteSummary
- type QuoteSummaryV1
- type RateDetail
- type Reference
- type RequestEditorFn
- type Routing
- type ServiceTypeInfo
- type ServiceTypeSearchResponseV1
- type ShipmentAddress
- type ShipmentDetail
- type ShipmentDetailFreightType
- type ShipmentDetailPaymentType
- type ShipmentDetailServiceType
- type ShipmentDetails
- type ShipmentException
- type ShipmentExceptionDetails
- type ShipmentMilestone
- type ShipmentPartyDetail
- type ShipmentPartyDetailV1
- type ShipmentPartyDetails
- type ShipmentSummary
- type ShipmentSummaryMovementType
- type ShipmentSummaryMovementTypeCode
- type ShipmentSummaryRateType
- type ShipmentSummaryServiceType
- type ShipperCity
- type SpecialHandling
- type SubmitAirShipmentJSONRequestBody
- type SubmitAirShipmentParams
- type SubmitAirShipmentParamsManifestFormat
- type SubmitAirShipmentResponse
- type TransId
- type UploadDocumentMultipartBody
- type UploadDocumentMultipartRequestBody
- type UploadDocumentParams
- type UploadDocumentResponse
- type UploadDocumentResponseV1
- type VolumeMeasurement
- type WeightDetail
- type WeightMeasurement
Constants ¶
const (
Oauth2Scopes = "oauth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewAirOceanBookQuoteRequest ¶
func NewAirOceanBookQuoteRequest(server string, params *AirOceanBookQuoteParams, body AirOceanBookQuoteJSONRequestBody) (*http.Request, error)
NewAirOceanBookQuoteRequest calls the generic AirOceanBookQuote builder with application/json body
func NewAirOceanBookQuoteRequestWithBody ¶
func NewAirOceanBookQuoteRequestWithBody(server string, params *AirOceanBookQuoteParams, contentType string, body io.Reader) (*http.Request, error)
NewAirOceanBookQuoteRequestWithBody generates requests for AirOceanBookQuote with any type of body
func NewCancelAirShipmentRequest ¶
func NewCancelAirShipmentRequest(server string, params *CancelAirShipmentParams, body CancelAirShipmentJSONRequestBody) (*http.Request, error)
NewCancelAirShipmentRequest calls the generic CancelAirShipment builder with application/json body
func NewCancelAirShipmentRequestWithBody ¶
func NewCancelAirShipmentRequestWithBody(server string, params *CancelAirShipmentParams, contentType string, body io.Reader) (*http.Request, error)
NewCancelAirShipmentRequestWithBody generates requests for CancelAirShipment with any type of body
func NewCreateAirOceanQuoteRequest ¶
func NewCreateAirOceanQuoteRequest(server string, params *CreateAirOceanQuoteParams, body CreateAirOceanQuoteJSONRequestBody) (*http.Request, error)
NewCreateAirOceanQuoteRequest calls the generic CreateAirOceanQuote builder with application/json body
func NewCreateAirOceanQuoteRequestWithBody ¶
func NewCreateAirOceanQuoteRequestWithBody(server string, params *CreateAirOceanQuoteParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateAirOceanQuoteRequestWithBody generates requests for CreateAirOceanQuote with any type of body
func NewFreightRatingRequest ¶
func NewFreightRatingRequest(server string, params *FreightRatingParams, body FreightRatingJSONRequestBody) (*http.Request, error)
NewFreightRatingRequest calls the generic FreightRating builder with application/json body
func NewFreightRatingRequestWithBody ¶
func NewFreightRatingRequestWithBody(server string, params *FreightRatingParams, contentType string, body io.Reader) (*http.Request, error)
NewFreightRatingRequestWithBody generates requests for FreightRating with any type of body
func NewFreightShipRequest ¶
func NewFreightShipRequest(server string, params *FreightShipParams, body FreightShipJSONRequestBody) (*http.Request, error)
NewFreightShipRequest calls the generic FreightShip builder with application/json body
func NewFreightShipRequestWithBody ¶
func NewFreightShipRequestWithBody(server string, params *FreightShipParams, contentType string, body io.Reader) (*http.Request, error)
NewFreightShipRequestWithBody generates requests for FreightShip with any type of body
func NewGetAccessorialsRequest ¶
func NewGetAccessorialsRequest(server string, params *GetAccessorialsParams, body GetAccessorialsJSONRequestBody) (*http.Request, error)
NewGetAccessorialsRequest calls the generic GetAccessorials builder with application/json body
func NewGetAccessorialsRequestWithBody ¶
func NewGetAccessorialsRequestWithBody(server string, params *GetAccessorialsParams, contentType string, body io.Reader) (*http.Request, error)
NewGetAccessorialsRequestWithBody generates requests for GetAccessorials with any type of body
func NewGetAirPaymentTypesRequest ¶
func NewGetAirPaymentTypesRequest(server string, params *GetAirPaymentTypesParams) (*http.Request, error)
NewGetAirPaymentTypesRequest generates requests for GetAirPaymentTypes
func NewGetAirportDetailsRequest ¶
func NewGetAirportDetailsRequest(server string, params *GetAirportDetailsParams) (*http.Request, error)
NewGetAirportDetailsRequest generates requests for GetAirportDetails
func NewGetCityRequest ¶
func NewGetCityRequest(server string, params *GetCityParams) (*http.Request, error)
NewGetCityRequest generates requests for GetCity
func NewGetCountriesRequest ¶
func NewGetCountriesRequest(server string, params *GetCountriesParams) (*http.Request, error)
NewGetCountriesRequest generates requests for GetCountries
func NewGetCurrenciesRequest ¶
func NewGetCurrenciesRequest(server string, params *GetCurrenciesParams) (*http.Request, error)
NewGetCurrenciesRequest generates requests for GetCurrencies
func NewGetDocumentsRequest ¶
func NewGetDocumentsRequest(server string, params *GetDocumentsParams) (*http.Request, error)
NewGetDocumentsRequest generates requests for GetDocuments
func NewGetQuoteDetailsRequest ¶
func NewGetQuoteDetailsRequest(server string, params *GetQuoteDetailsParams) (*http.Request, error)
NewGetQuoteDetailsRequest generates requests for GetQuoteDetails
func NewGetServiceTypesRequest ¶
func NewGetServiceTypesRequest(server string, params *GetServiceTypesParams) (*http.Request, error)
NewGetServiceTypesRequest generates requests for GetServiceTypes
func NewGetShipmentDetailsRequest ¶
func NewGetShipmentDetailsRequest(server string, params *GetShipmentDetailsParams) (*http.Request, error)
NewGetShipmentDetailsRequest generates requests for GetShipmentDetails
func NewGetShipmentMilestonesRequest ¶
func NewGetShipmentMilestonesRequest(server string, params *GetShipmentMilestonesParams) (*http.Request, error)
NewGetShipmentMilestonesRequest generates requests for GetShipmentMilestones
func NewOrderCancelRequest ¶
func NewOrderCancelRequest(server string, params *OrderCancelParams, body OrderCancelJSONRequestBody) (*http.Request, error)
NewOrderCancelRequest calls the generic OrderCancel builder with application/json body
func NewOrderCancelRequestWithBody ¶
func NewOrderCancelRequestWithBody(server string, params *OrderCancelParams, contentType string, body io.Reader) (*http.Request, error)
NewOrderCancelRequestWithBody generates requests for OrderCancel with any type of body
func NewOrderCreateRequest ¶
func NewOrderCreateRequest(server string, params *OrderCreateParams, body OrderCreateJSONRequestBody) (*http.Request, error)
NewOrderCreateRequest calls the generic OrderCreate builder with application/json body
func NewOrderCreateRequestWithBody ¶
func NewOrderCreateRequestWithBody(server string, params *OrderCreateParams, contentType string, body io.Reader) (*http.Request, error)
NewOrderCreateRequestWithBody generates requests for OrderCreate with any type of body
func NewOrderSearchRequest ¶
func NewOrderSearchRequest(server string, params *OrderSearchParams) (*http.Request, error)
NewOrderSearchRequest generates requests for OrderSearch
func NewOrderSetDateRequest ¶
func NewOrderSetDateRequest(server string, params *OrderSetDateParams, body OrderSetDateJSONRequestBody) (*http.Request, error)
NewOrderSetDateRequest calls the generic OrderSetDate builder with application/json body
func NewOrderSetDateRequestWithBody ¶
func NewOrderSetDateRequestWithBody(server string, params *OrderSetDateParams, contentType string, body io.Reader) (*http.Request, error)
NewOrderSetDateRequestWithBody generates requests for OrderSetDate with any type of body
func NewPrintAirManifestRequest ¶
func NewPrintAirManifestRequest(server string, params *PrintAirManifestParams, body PrintAirManifestJSONRequestBody) (*http.Request, error)
NewPrintAirManifestRequest calls the generic PrintAirManifest builder with application/json body
func NewPrintAirManifestRequestWithBody ¶
func NewPrintAirManifestRequestWithBody(server string, params *PrintAirManifestParams, contentType string, body io.Reader) (*http.Request, error)
NewPrintAirManifestRequestWithBody generates requests for PrintAirManifest with any type of body
func NewPrintLabelRequest ¶
func NewPrintLabelRequest(server string, params *PrintLabelParams, body PrintLabelJSONRequestBody) (*http.Request, error)
NewPrintLabelRequest calls the generic PrintLabel builder with application/json body
func NewPrintLabelRequestWithBody ¶
func NewPrintLabelRequestWithBody(server string, params *PrintLabelParams, contentType string, body io.Reader) (*http.Request, error)
NewPrintLabelRequestWithBody generates requests for PrintLabel with any type of body
func NewSubmitAirShipmentRequest ¶
func NewSubmitAirShipmentRequest(server string, params *SubmitAirShipmentParams, body SubmitAirShipmentJSONRequestBody) (*http.Request, error)
NewSubmitAirShipmentRequest calls the generic SubmitAirShipment builder with application/json body
func NewSubmitAirShipmentRequestWithBody ¶
func NewSubmitAirShipmentRequestWithBody(server string, params *SubmitAirShipmentParams, contentType string, body io.Reader) (*http.Request, error)
NewSubmitAirShipmentRequestWithBody generates requests for SubmitAirShipment with any type of body
func NewUploadDocumentRequestWithBody ¶
func NewUploadDocumentRequestWithBody(server string, params *UploadDocumentParams, contentType string, body io.Reader) (*http.Request, error)
NewUploadDocumentRequestWithBody generates requests for UploadDocument with any type of body
Types ¶
type AdditionalInformation ¶
type AdditionalInformation struct {
// ActualWeight Weight measurement including the value and unit of measurement.
ActualWeight *WeightMeasurement `json:"actualWeight,omitempty"`
// ChargeableWeight Weight measurement including the value and unit of measurement.
ChargeableWeight *WeightMeasurement `json:"chargeableWeight,omitempty"`
// FreightPaymentTerm The payment terms for the freight (e.g., Prepaid, Collect).
FreightPaymentTerm *string `json:"freightPaymentTerm,omitempty"`
// Incoterms The Incoterms code governing the shipment (e.g., FOB, CIF, DAP).
Incoterms *string `json:"incoterms,omitempty"`
// ItemDescription Description of the items being shipped.
ItemDescription *string `json:"itemDescription,omitempty"`
// Quantity The total quantity of items in the shipment.
Quantity *string `json:"quantity,omitempty"`
// ShipmentCategory The category or classification of the shipment.
ShipmentCategory *string `json:"shipmentCategory,omitempty"`
// ShipmentVolume Volume measurement including the value and unit of measurement.
ShipmentVolume *VolumeMeasurement `json:"shipmentVolume,omitempty"`
}
AdditionalInformation Additional shipment information including weight, volume, and cargo details.
type Address ¶
type Address struct {
AddressLine1 *string `json:"addressLine1,omitempty"`
AddressLine2 *string `json:"addressLine2,omitempty"`
AddressLine3 *string `json:"addressLine3,omitempty"`
City *string `json:"city,omitempty"`
CompanyName1 *string `json:"companyName1,omitempty"`
CompanyName2 *string `json:"companyName2,omitempty"`
CountryCode *string `json:"countryCode,omitempty"`
IsLoadingDockAvailable *string `json:"isLoadingDockAvailable,omitempty"`
IsResidentialAddress *string `json:"isResidentialAddress,omitempty"`
PostalCode *string `json:"postalCode,omitempty"`
StateCode *string `json:"stateCode,omitempty"`
}
Address defines model for Address.
type AddressDetail ¶
type AddressDetail struct {
// AddressLine1 First line of the address.
AddressLine1 *string `json:"addressLine1"`
// AddressLine2 Second line of the address.
AddressLine2 *string `json:"addressLine2"`
// AddressLine3 Third line of the address.
AddressLine3 *string `json:"addressLine3"`
// City City associated with the address.
City *string `json:"city"`
// CompanyName Full company name.
CompanyName *string `json:"companyName"`
// CompanyName1 First company name associated with the address.
CompanyName1 *string `json:"companyName1"`
// CompanyName2 Second company name associated with the address.
CompanyName2 *string `json:"companyName2"`
// CountryCode ISO 3166-1 alpha-2 country code (e.g., US, IN, GB).
CountryCode *string `json:"countryCode"`
// FullAddress Full address, including street, city, state, and postal code.
FullAddress *string `json:"fullAddress"`
// PostalCode Postal code.
PostalCode *string `json:"postalCode"`
// StateCode State code.
StateCode *string `json:"stateCode"`
}
AddressDetail defines model for AddressDetail.
type AirCargoItem ¶
type AirCargoItem struct {
Dimensions *Dimensions `json:"dimensions,omitempty"`
Quantity *int `json:"quantity,omitempty"`
Weight *WeightDetail `json:"weight,omitempty"`
}
AirCargoItem defines model for AirCargoItem.
type AirOceanBookCargoDetails ¶
type AirOceanBookCargoDetails struct {
IsForkliftable *string `json:"isForkliftable,omitempty"`
IsStackable *string `json:"isStackable,omitempty"`
IsTiltable *string `json:"isTiltable,omitempty"`
}
AirOceanBookCargoDetails defines model for AirOceanBookCargoDetails.
type AirOceanBookQuoteJSONRequestBody ¶
type AirOceanBookQuoteJSONRequestBody = ApolloQuoteBookingRequestV1
AirOceanBookQuoteJSONRequestBody defines body for AirOceanBookQuote for application/json ContentType.
type AirOceanBookQuoteParams ¶
type AirOceanBookQuoteParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
AirOceanBookQuoteParams defines parameters for AirOceanBookQuote.
type AirOceanBookQuoteResponse ¶
type AirOceanBookQuoteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloBookingResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseAirOceanBookQuoteResponse ¶
func ParseAirOceanBookQuoteResponse(rsp *http.Response) (*AirOceanBookQuoteResponse, error)
ParseAirOceanBookQuoteResponse parses an HTTP response from a AirOceanBookQuoteWithResponse call
func (AirOceanBookQuoteResponse) Status ¶
func (r AirOceanBookQuoteResponse) Status() string
Status returns HTTPResponse.Status
func (AirOceanBookQuoteResponse) StatusCode ¶
func (r AirOceanBookQuoteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AirOceanBookingResponse ¶
type AirOceanBookingResponse struct {
QuoteBookSummary *BookingResponse `json:"quoteBookSummary,omitempty"`
}
AirOceanBookingResponse defines model for AirOceanBookingResponse.
type AirOceanPickupDetail ¶
type AirOceanPickupDetail struct {
// Date The pickup date.
Date openapi_types.Date `json:"date"`
// EndTime The pickup end time.
EndTime *string `json:"endTime,omitempty"`
// StartTime The pickup start time.
StartTime *string `json:"startTime,omitempty"`
}
AirOceanPickupDetail defines model for AirOceanPickupDetail.
type ApolloAccessorialPaymentTermResponseV1 ¶
type ApolloAccessorialPaymentTermResponseV1 struct {
// Code Payment term code.
Code string `json:"code"`
// Desc Payment term description.
Desc string `json:"desc"`
}
ApolloAccessorialPaymentTermResponseV1 defines model for ApolloAccessorialPaymentTermResponseV1.
type ApolloAccessorialsResponseDetailsV1 ¶
type ApolloAccessorialsResponseDetailsV1 struct {
// Code Code associated with accessorials.
Code *string `json:"code,omitempty"`
}
ApolloAccessorialsResponseDetailsV1 defines model for ApolloAccessorialsResponseDetailsV1.
type ApolloAirFreightRateRequestV1 ¶
type ApolloAirFreightRateRequestV1 struct {
// Consignee Party information (shipper, consignee, or third party).
Consignee ApolloPartyV1 `json:"consignee"`
// Language Language preference for the response.
Language *string `json:"language,omitempty"`
// Shipment Shipment information for rate calculation.
Shipment struct {
CloseTime *ApolloTimeV1 `json:"closeTime,omitempty"`
// ConsigneeReference Reference number provided by the consignee.
ConsigneeReference *string `json:"consigneeReference,omitempty"`
// CountryOfManufacture The unbounded list of country codes where the goods were manufactured.
CountryOfManufacture *[]ApolloCountryCodeV1 `json:"countryOfManufacture,omitempty"`
// CurrencyCode The <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank">ISO 4217</a> shipment currency code
CurrencyCode *string `json:"currencyCode,omitempty"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
DropoffTime *ApolloTimeV1 `json:"dropoffTime,omitempty"`
// FreightType Freight type of the shipment.
FreightType ApolloAirFreightRateRequestV1ShipmentFreightType `json:"freightType"`
// IsMetric Indicates whether the shipment uses metric units of measurement.
IsMetric *bool `json:"isMetric,omitempty"`
// Items Unbounded list of items in the shipment.
Items []struct {
// Count Quantity of the item.
Count int `json:"count"`
// Description Description of the item.
Description *string `json:"description,omitempty"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
Height ApolloDimensionV1 `json:"height"`
Length ApolloDimensionV1 `json:"length"`
// Weight Weight of the item.
Weight float32 `json:"weight"`
Width ApolloDimensionV1 `json:"width"`
} `json:"items"`
// OrderDescription Description of the shipment.
OrderDescription *string `json:"orderDescription,omitempty"`
// PaymentType Payment type.
PaymentType ApolloAirFreightRateRequestV1ShipmentPaymentType `json:"paymentType"`
PickupDate *ApolloDateV1 `json:"pickupDate,omitempty"`
ReadyTime *ApolloTimeV1 `json:"readyTime,omitempty"`
// RequestBoL Indicates whether a Bill of Lading (BoL) is requested.
RequestBoL *bool `json:"requestBoL,omitempty"`
// RequestPickup Indicates whether a pickup request is included.
RequestPickup *bool `json:"requestPickup,omitempty"`
ServiceType *ApolloAirFreightRateRequestV1ShipmentServiceType `json:"serviceType"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// ShipperReference Reference number provided by the shipper.
ShipperReference *string `json:"shipperReference,omitempty"`
// Weight Total weight of the shipment.
Weight *float32 `json:"weight,omitempty"`
} `json:"shipment"`
// Shipper Party information (shipper, consignee, or third party).
Shipper ApolloPartyV1 `json:"shipper"`
ThirdParty *ApolloAirFreightRateRequestV1_ThirdParty `json:"thirdParty,omitempty"`
// TransactionId Unique transaction ID for debugging and tracking.
TransactionId *string `json:"transactionId,omitempty"`
}
ApolloAirFreightRateRequestV1 Request to generate Air Freight rates for a shipment.
type ApolloAirFreightRateRequestV1ShipmentFreightType ¶
type ApolloAirFreightRateRequestV1ShipmentFreightType string
ApolloAirFreightRateRequestV1ShipmentFreightType Freight type of the shipment.
const ( ApolloAirFreightRateRequestV1ShipmentFreightTypeLOOSE ApolloAirFreightRateRequestV1ShipmentFreightType = "LOOSE" ApolloAirFreightRateRequestV1ShipmentFreightTypePALLET ApolloAirFreightRateRequestV1ShipmentFreightType = "PALLET" )
Defines values for ApolloAirFreightRateRequestV1ShipmentFreightType.
type ApolloAirFreightRateRequestV1ShipmentPaymentType ¶
type ApolloAirFreightRateRequestV1ShipmentPaymentType string
ApolloAirFreightRateRequestV1ShipmentPaymentType Payment type.
const ( ApolloAirFreightRateRequestV1ShipmentPaymentTypeCOL ApolloAirFreightRateRequestV1ShipmentPaymentType = "COL" ApolloAirFreightRateRequestV1ShipmentPaymentTypeOTHTHD ApolloAirFreightRateRequestV1ShipmentPaymentType = "OTH/THD" ApolloAirFreightRateRequestV1ShipmentPaymentTypePPD ApolloAirFreightRateRequestV1ShipmentPaymentType = "PPD" )
Defines values for ApolloAirFreightRateRequestV1ShipmentPaymentType.
type ApolloAirFreightRateRequestV1ShipmentServiceType ¶
type ApolloAirFreightRateRequestV1ShipmentServiceType string
ApolloAirFreightRateRequestV1ShipmentServiceType defines model for ApolloAirFreightRateRequestV1.Shipment.ServiceType.
const ( ApolloAirFreightRateRequestV1ShipmentServiceTypeAM ApolloAirFreightRateRequestV1ShipmentServiceType = "AM" ApolloAirFreightRateRequestV1ShipmentServiceTypeAMG ApolloAirFreightRateRequestV1ShipmentServiceType = "AMG" ApolloAirFreightRateRequestV1ShipmentServiceTypeCA ApolloAirFreightRateRequestV1ShipmentServiceType = "CA" ApolloAirFreightRateRequestV1ShipmentServiceTypeCX ApolloAirFreightRateRequestV1ShipmentServiceType = "CX" ApolloAirFreightRateRequestV1ShipmentServiceTypeD2 ApolloAirFreightRateRequestV1ShipmentServiceType = "D2" ApolloAirFreightRateRequestV1ShipmentServiceTypeD2G ApolloAirFreightRateRequestV1ShipmentServiceType = "D2G" ApolloAirFreightRateRequestV1ShipmentServiceTypeDF ApolloAirFreightRateRequestV1ShipmentServiceType = "DF" ApolloAirFreightRateRequestV1ShipmentServiceTypeDFG ApolloAirFreightRateRequestV1ShipmentServiceType = "DFG" ApolloAirFreightRateRequestV1ShipmentServiceTypeEC ApolloAirFreightRateRequestV1ShipmentServiceType = "EC" )
Defines values for ApolloAirFreightRateRequestV1ShipmentServiceType.
type ApolloAirFreightRateRequestV1ThirdParty0 ¶
type ApolloAirFreightRateRequestV1ThirdParty0 = interface{}
ApolloAirFreightRateRequestV1ThirdParty0 defines model for .
type ApolloAirFreightRateRequestV1_ThirdParty ¶
type ApolloAirFreightRateRequestV1_ThirdParty struct {
// contains filtered or unexported fields
}
ApolloAirFreightRateRequestV1_ThirdParty defines model for ApolloAirFreightRateRequestV1.ThirdParty.
func (ApolloAirFreightRateRequestV1_ThirdParty) AsApolloAirFreightRateRequestV1ThirdParty0 ¶
func (t ApolloAirFreightRateRequestV1_ThirdParty) AsApolloAirFreightRateRequestV1ThirdParty0() (ApolloAirFreightRateRequestV1ThirdParty0, error)
AsApolloAirFreightRateRequestV1ThirdParty0 returns the union data inside the ApolloAirFreightRateRequestV1_ThirdParty as a ApolloAirFreightRateRequestV1ThirdParty0
func (ApolloAirFreightRateRequestV1_ThirdParty) AsApolloPartyV1 ¶
func (t ApolloAirFreightRateRequestV1_ThirdParty) AsApolloPartyV1() (ApolloPartyV1, error)
AsApolloPartyV1 returns the union data inside the ApolloAirFreightRateRequestV1_ThirdParty as a ApolloPartyV1
func (*ApolloAirFreightRateRequestV1_ThirdParty) FromApolloAirFreightRateRequestV1ThirdParty0 ¶
func (t *ApolloAirFreightRateRequestV1_ThirdParty) FromApolloAirFreightRateRequestV1ThirdParty0(v ApolloAirFreightRateRequestV1ThirdParty0) error
FromApolloAirFreightRateRequestV1ThirdParty0 overwrites any union data inside the ApolloAirFreightRateRequestV1_ThirdParty as the provided ApolloAirFreightRateRequestV1ThirdParty0
func (*ApolloAirFreightRateRequestV1_ThirdParty) FromApolloPartyV1 ¶
func (t *ApolloAirFreightRateRequestV1_ThirdParty) FromApolloPartyV1(v ApolloPartyV1) error
FromApolloPartyV1 overwrites any union data inside the ApolloAirFreightRateRequestV1_ThirdParty as the provided ApolloPartyV1
func (ApolloAirFreightRateRequestV1_ThirdParty) MarshalJSON ¶
func (t ApolloAirFreightRateRequestV1_ThirdParty) MarshalJSON() ([]byte, error)
func (*ApolloAirFreightRateRequestV1_ThirdParty) MergeApolloAirFreightRateRequestV1ThirdParty0 ¶
func (t *ApolloAirFreightRateRequestV1_ThirdParty) MergeApolloAirFreightRateRequestV1ThirdParty0(v ApolloAirFreightRateRequestV1ThirdParty0) error
MergeApolloAirFreightRateRequestV1ThirdParty0 performs a merge with any union data inside the ApolloAirFreightRateRequestV1_ThirdParty, using the provided ApolloAirFreightRateRequestV1ThirdParty0
func (*ApolloAirFreightRateRequestV1_ThirdParty) MergeApolloPartyV1 ¶
func (t *ApolloAirFreightRateRequestV1_ThirdParty) MergeApolloPartyV1(v ApolloPartyV1) error
MergeApolloPartyV1 performs a merge with any union data inside the ApolloAirFreightRateRequestV1_ThirdParty, using the provided ApolloPartyV1
func (*ApolloAirFreightRateRequestV1_ThirdParty) UnmarshalJSON ¶
func (t *ApolloAirFreightRateRequestV1_ThirdParty) UnmarshalJSON(b []byte) error
type ApolloAirFreightRateResponseV1 ¶
type ApolloAirFreightRateResponseV1 struct {
Response struct {
// Rates Unbounded list of calculated rates.
Rates []struct {
BillableWeight ApolloWeightV1 `json:"billableWeight"`
// Charges Unbounded list of charges applied
Charges []struct {
// Amount The charge amount
Amount *float32 `json:"amount,omitempty"`
// Code The charge code
Code *string `json:"code,omitempty"`
// CurrencyCode The type of currency associated with the charge
CurrencyCode *string `json:"currencyCode,omitempty"`
// Description The charge Description
Description *string `json:"description,omitempty"`
// IncludedInd Indicates if the charge is included in total charge
IncludedInd *string `json:"includedInd"`
} `json:"charges"`
// ContractRate Indicates if the contract rate applies.
ContractRate bool `json:"contractRate"`
DeliveryTime ApolloDateTimeV1 `json:"deliveryTime"`
DimensionalWeight ApolloWeightV1 `json:"dimensionalWeight"`
// GuaranteedDelivery Indicates if delivery is guaranteed.
GuaranteedDelivery bool `json:"guaranteedDelivery"`
HoldAtAirportTime ApolloDateTimeV1 `json:"holdAtAirportTime"`
// MinimumBillableWeightApplied Indicates if the minimum billable weight was applied.
MinimumBillableWeightApplied bool `json:"minimumBillableWeightApplied"`
// ServiceType Service type for the rate.
ServiceType string `json:"serviceType"`
TotalCharge ApolloChargeAmountV1 `json:"totalCharge"`
// WeightUnit The Weight unit used.
WeightUnit ApolloAirFreightRateResponseV1ResponseRatesWeightUnit `json:"weightUnit"`
} `json:"rates"`
} `json:"response"`
}
ApolloAirFreightRateResponseV1 This object provides the rate calculation response.
type ApolloAirFreightRateResponseV1ResponseRatesWeightUnit ¶
type ApolloAirFreightRateResponseV1ResponseRatesWeightUnit string
ApolloAirFreightRateResponseV1ResponseRatesWeightUnit The Weight unit used.
const ( KGS ApolloAirFreightRateResponseV1ResponseRatesWeightUnit = "KGS" LBS ApolloAirFreightRateResponseV1ResponseRatesWeightUnit = "LBS" )
Defines values for ApolloAirFreightRateResponseV1ResponseRatesWeightUnit.
type ApolloAirShipRequestV1 ¶
type ApolloAirShipRequestV1 struct {
Consignee PartyDetails `json:"consignee"`
// Label Label formatting options including layout and format (e.g., PDF, ZPL, SVG).
Label *ApolloAirShipRequestV1_Label `json:"label"`
// Language Language preference for the response.
Language *string `json:"language,omitempty"`
Shipment ShipmentDetail `json:"shipment"`
Shipper PartyDetails `json:"shipper"`
// ThirdParty ThirdParty details for the shipment.
ThirdParty *ApolloAirShipRequestV1_ThirdParty `json:"thirdParty"`
// TransactionId Unique transaction ID for debugging and tracking.
TransactionId *string `json:"transactionId,omitempty"`
}
ApolloAirShipRequestV1 defines model for ApolloAirShipRequestV1.
type ApolloAirShipRequestV1Label1 ¶
type ApolloAirShipRequestV1Label1 = interface{}
ApolloAirShipRequestV1Label1 defines model for .
type ApolloAirShipRequestV1ThirdParty1 ¶
type ApolloAirShipRequestV1ThirdParty1 = interface{}
ApolloAirShipRequestV1ThirdParty1 defines model for .
type ApolloAirShipRequestV1_Label ¶
type ApolloAirShipRequestV1_Label struct {
// contains filtered or unexported fields
}
ApolloAirShipRequestV1_Label Label formatting options including layout and format (e.g., PDF, ZPL, SVG).
func (ApolloAirShipRequestV1_Label) AsApolloAirShipRequestV1Label1 ¶
func (t ApolloAirShipRequestV1_Label) AsApolloAirShipRequestV1Label1() (ApolloAirShipRequestV1Label1, error)
AsApolloAirShipRequestV1Label1 returns the union data inside the ApolloAirShipRequestV1_Label as a ApolloAirShipRequestV1Label1
func (ApolloAirShipRequestV1_Label) AsLabelRequest ¶
func (t ApolloAirShipRequestV1_Label) AsLabelRequest() (LabelRequest, error)
AsLabelRequest returns the union data inside the ApolloAirShipRequestV1_Label as a LabelRequest
func (*ApolloAirShipRequestV1_Label) FromApolloAirShipRequestV1Label1 ¶
func (t *ApolloAirShipRequestV1_Label) FromApolloAirShipRequestV1Label1(v ApolloAirShipRequestV1Label1) error
FromApolloAirShipRequestV1Label1 overwrites any union data inside the ApolloAirShipRequestV1_Label as the provided ApolloAirShipRequestV1Label1
func (*ApolloAirShipRequestV1_Label) FromLabelRequest ¶
func (t *ApolloAirShipRequestV1_Label) FromLabelRequest(v LabelRequest) error
FromLabelRequest overwrites any union data inside the ApolloAirShipRequestV1_Label as the provided LabelRequest
func (ApolloAirShipRequestV1_Label) MarshalJSON ¶
func (t ApolloAirShipRequestV1_Label) MarshalJSON() ([]byte, error)
func (*ApolloAirShipRequestV1_Label) MergeApolloAirShipRequestV1Label1 ¶
func (t *ApolloAirShipRequestV1_Label) MergeApolloAirShipRequestV1Label1(v ApolloAirShipRequestV1Label1) error
MergeApolloAirShipRequestV1Label1 performs a merge with any union data inside the ApolloAirShipRequestV1_Label, using the provided ApolloAirShipRequestV1Label1
func (*ApolloAirShipRequestV1_Label) MergeLabelRequest ¶
func (t *ApolloAirShipRequestV1_Label) MergeLabelRequest(v LabelRequest) error
MergeLabelRequest performs a merge with any union data inside the ApolloAirShipRequestV1_Label, using the provided LabelRequest
func (*ApolloAirShipRequestV1_Label) UnmarshalJSON ¶
func (t *ApolloAirShipRequestV1_Label) UnmarshalJSON(b []byte) error
type ApolloAirShipRequestV1_ThirdParty ¶
type ApolloAirShipRequestV1_ThirdParty struct {
// contains filtered or unexported fields
}
ApolloAirShipRequestV1_ThirdParty ThirdParty details for the shipment.
func (ApolloAirShipRequestV1_ThirdParty) AsApolloAirShipRequestV1ThirdParty1 ¶
func (t ApolloAirShipRequestV1_ThirdParty) AsApolloAirShipRequestV1ThirdParty1() (ApolloAirShipRequestV1ThirdParty1, error)
AsApolloAirShipRequestV1ThirdParty1 returns the union data inside the ApolloAirShipRequestV1_ThirdParty as a ApolloAirShipRequestV1ThirdParty1
func (ApolloAirShipRequestV1_ThirdParty) AsPartyDetailsV1 ¶
func (t ApolloAirShipRequestV1_ThirdParty) AsPartyDetailsV1() (PartyDetailsV1, error)
AsPartyDetailsV1 returns the union data inside the ApolloAirShipRequestV1_ThirdParty as a PartyDetailsV1
func (*ApolloAirShipRequestV1_ThirdParty) FromApolloAirShipRequestV1ThirdParty1 ¶
func (t *ApolloAirShipRequestV1_ThirdParty) FromApolloAirShipRequestV1ThirdParty1(v ApolloAirShipRequestV1ThirdParty1) error
FromApolloAirShipRequestV1ThirdParty1 overwrites any union data inside the ApolloAirShipRequestV1_ThirdParty as the provided ApolloAirShipRequestV1ThirdParty1
func (*ApolloAirShipRequestV1_ThirdParty) FromPartyDetailsV1 ¶
func (t *ApolloAirShipRequestV1_ThirdParty) FromPartyDetailsV1(v PartyDetailsV1) error
FromPartyDetailsV1 overwrites any union data inside the ApolloAirShipRequestV1_ThirdParty as the provided PartyDetailsV1
func (ApolloAirShipRequestV1_ThirdParty) MarshalJSON ¶
func (t ApolloAirShipRequestV1_ThirdParty) MarshalJSON() ([]byte, error)
func (*ApolloAirShipRequestV1_ThirdParty) MergeApolloAirShipRequestV1ThirdParty1 ¶
func (t *ApolloAirShipRequestV1_ThirdParty) MergeApolloAirShipRequestV1ThirdParty1(v ApolloAirShipRequestV1ThirdParty1) error
MergeApolloAirShipRequestV1ThirdParty1 performs a merge with any union data inside the ApolloAirShipRequestV1_ThirdParty, using the provided ApolloAirShipRequestV1ThirdParty1
func (*ApolloAirShipRequestV1_ThirdParty) MergePartyDetailsV1 ¶
func (t *ApolloAirShipRequestV1_ThirdParty) MergePartyDetailsV1(v PartyDetailsV1) error
MergePartyDetailsV1 performs a merge with any union data inside the ApolloAirShipRequestV1_ThirdParty, using the provided PartyDetailsV1
func (*ApolloAirShipRequestV1_ThirdParty) UnmarshalJSON ¶
func (t *ApolloAirShipRequestV1_ThirdParty) UnmarshalJSON(b []byte) error
type ApolloAirShipResponseV1 ¶
type ApolloAirShipResponseV1 struct {
// AirWaybillDocument Base64-encoded air waybill document.
AirWaybillDocument *[]byte `json:"airWaybillDocument,omitempty"`
// DestinationServiceCenter The destination service center code.
DestinationServiceCenter *string `json:"destinationServiceCenter,omitempty"`
Label *LabelResponse `json:"label,omitempty"`
// OriginServiceCenter The origin service center code.
OriginServiceCenter *string `json:"originServiceCenter,omitempty"`
// PaymentType The payment type for the shipment.
PaymentType *string `json:"paymentType,omitempty"`
// PrqNumber The PRQ details associated with the shipment.
PrqNumber *string `json:"prqNumber,omitempty"`
// PrqStatus The shipment status.
PrqStatus *string `json:"prqStatus,omitempty"`
Rates *[]RateDetail `json:"rates,omitempty"`
Response map[string]interface{} `json:"response"`
// ShipmentNumber The shipment number associated with the response.
ShipmentNumber *string `json:"shipmentNumber,omitempty"`
}
ApolloAirShipResponseV1 defines model for ApolloAirShipResponseV1.
type ApolloAirShipmentCancelRequestV1 ¶
type ApolloAirShipmentCancelRequestV1 struct {
// Language The language/culture that is being used for the API
Language *string `json:"language,omitempty"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// ShipperAccountNumber The UPS Freight Account Number that identifies the Shipper
ShipperAccountNumber *ApolloShipperAccountNumberV1 `json:"shipperAccountNumber"`
}
ApolloAirShipmentCancelRequestV1 defines model for ApolloAirShipmentCancelRequestV1.
type ApolloAirShipmentCancelResponseV1 ¶
type ApolloAirShipmentCancelResponseV1 struct {
Response struct {
Message *string `json:"message,omitempty"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// ShipperAccountNumber The UPS Freight Account Number that identifies the Shipper
ShipperAccountNumber *ApolloShipperAccountNumberV1 `json:"shipperAccountNumber"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
} `json:"response"`
}
ApolloAirShipmentCancelResponseV1 Response from the Shipment Cancel API
type ApolloAirShipmentDataResponseV1 ¶
type ApolloAirShipmentDataResponseV1 struct {
Response struct {
// Account The UPS Freight Account Number that identifies the Shipper
Account *ApolloShipperAccountNumberV1 `json:"account"`
// Manifest The manifest data that is returned if the format chosen is data
Manifest *struct {
// ManifestFormat The output format of the manifest
ManifestFormat *string `json:"manifestFormat"`
// ManifestNumber The unique number used to identify a manifest
ManifestNumber *string `json:"manifestNumber"`
// Shipments An array of shipment details included in the manifest
Shipments *[]struct {
Consignee ApolloShipmentAddressV1 `json:"consignee"`
// ConsigneeReference The reference provided by the consignee for the shipment
ConsigneeReference *string `json:"consigneeReference"`
// Currency The currency used in the shipment
Currency *string `json:"currency"`
// Number The index of the shipment
Number int32 `json:"number"`
// OrderDescription A short description of the Order
OrderDescription *string `json:"orderDescription"`
// PaymentType The Payment type used in the shipment
PaymentType *string `json:"paymentType"`
// ServiceType The service type used in the Shipment
ServiceType *string `json:"serviceType"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// ShipperReference The reference provided by the shipper for the shipment
ShipperReference *string `json:"shipperReference"`
// Weight The total weight of the shipment
Weight float32 `json:"weight"`
} `json:"shipments"`
Shipper ApolloShipmentAddressV1 `json:"shipper"`
Summary *struct {
CurrentPickupTotals ApolloPickupTotalV1 `json:"currentPickupTotals"`
DailyPickupTotals ApolloPickupTotalV1 `json:"dailyPickupTotals"`
// ServiceTotal The total for all services
ServiceTotal struct {
// AddedChargesAmount total added charges associated with the shipments in the manifest
AddedChargesAmount float64 `json:"addedChargesAmount"`
// BilledAmount total billed charges associated with the shipments in the manifest
BilledAmount float64 `json:"billedAmount"`
// FreightChargesAmount total freight charges associated with the shipments in the manifest
FreightChargesAmount float64 `json:"freightChargesAmount"`
// ItemCount The total count of shipments
ItemCount int32 `json:"itemCount"`
// PieceCount The count of all pieces in all the shipments submitted
PieceCount int32 `json:"pieceCount"`
// ShipmentCount The total number of shipments
ShipmentCount int32 `json:"shipmentCount"`
// SurchargesAmount total surcharges associated with the shipments in the manifest
SurchargesAmount float64 `json:"surchargesAmount"`
// TotalWeight The total weight of shipments
TotalWeight float64 `json:"totalWeight"`
} `json:"serviceTotal"`
// Services The services used by the shipments and associated details
Services *[]struct {
AddedChargesAmount *ApolloAmountV1 `json:"addedChargesAmount"`
BilledAmount *ApolloAmountV1 `json:"billedAmount"`
FreightChargesAmount *ApolloAmountV1 `json:"freightChargesAmount"`
// ItemCount The total number items in those shipments
ItemCount int32 `json:"itemCount"`
// PieceCount The total number pieces for this service
PieceCount int32 `json:"pieceCount"`
// ServiceCode The code for this service
ServiceCode *ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode `json:"serviceCode"`
// ServiceName The name of the service
ServiceName *string `json:"serviceName"`
// ShipmentCount number of shipments using this service associated with this manifest
ShipmentCount int32 `json:"shipmentCount"`
SurchargesAmount *ApolloAmountV1 `json:"surchargesAmount"`
// TotalWeight The total weight of the items
TotalWeight float64 `json:"totalWeight"`
} `json:"services"`
} `json:"summary,omitempty"`
} `json:"manifest,omitempty"`
// ManifestFormat The output format of the manifest
ManifestFormat *string `json:"manifestFormat"`
// ManifestNumber The unique number to identify the manifest
ManifestNumber *string `json:"manifestNumber"`
// ManifestPDF The base64 string representing the byte array of the generated PDF
ManifestPDF *[]byte `json:"manifestPDF"`
Message *string `json:"message,omitempty"`
PickupDate ApolloDateV1 `json:"pickupDate"`
// PieceCount The count of all pieces in all the shipments submitted
PieceCount int32 `json:"pieceCount"`
// ShipmentCount The count of all Shipments that are submitted for processing
ShipmentCount int32 `json:"shipmentCount"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
// Weight The total weight of all the shipments
Weight float32 `json:"weight"`
// WeightUnit The unit used to measure the weight
WeightUnit *string `json:"weightUnit"`
} `json:"response"`
}
ApolloAirShipmentDataResponseV1 Response from the Shipment API
type ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode ¶
type ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode string
ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode The code for this service
const ( ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeAM ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "AM" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeAMG ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "AMG" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeCA ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "CA" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeCAC ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "CAC" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeCACD ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "CACD" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeCAD ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "CAD" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeCX ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "CX" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeCXC ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "CXC" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeCXCD ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "CXCD" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeCXD ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "CXD" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeD2 ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "D2" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeD2G ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "D2G" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeDF ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "DF" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeDFG ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "DFG" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeEA ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "EA" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeEC ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "EC" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeECC ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "ECC" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeECCD ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "ECCD" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeECD ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "ECD" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeEG ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "EG" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeGOLDP ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "GOLDP" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeMEXDF ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "MEXDF" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeSAT ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "SAT" ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCodeSATG ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode = "SATG" )
Defines values for ApolloAirShipmentDataResponseV1ResponseManifestSummaryServicesServiceCode.
type ApolloAirUtilityAccessorialsRequestV1 ¶
type ApolloAirUtilityAccessorialsRequestV1 struct {
Consignee ShipmentPartyDetails `json:"consignee"`
DropOffTime *ApolloTimeV1 `json:"dropOffTime,omitempty"`
// PickupDateTime Accepted format - yyyy-MM-dd, yyyy/MM/dd, MM-dd-yyyy, MM/dd/yyyy format.
PickupDateTime openapi_types.Date `json:"pickupDateTime"`
ServiceCode *ApolloAirUtilityAccessorialsRequestV1ServiceCode `json:"serviceCode,omitempty"`
Shipper ShipmentPartyDetails `json:"shipper"`
}
ApolloAirUtilityAccessorialsRequestV1 defines model for ApolloAirUtilityAccessorialsRequestV1.
type ApolloAirUtilityAccessorialsRequestV1ServiceCode ¶
type ApolloAirUtilityAccessorialsRequestV1ServiceCode string
ApolloAirUtilityAccessorialsRequestV1ServiceCode defines model for ApolloAirUtilityAccessorialsRequestV1.ServiceCode.
const ( ApolloAirUtilityAccessorialsRequestV1ServiceCodeAM ApolloAirUtilityAccessorialsRequestV1ServiceCode = "AM" ApolloAirUtilityAccessorialsRequestV1ServiceCodeAMG ApolloAirUtilityAccessorialsRequestV1ServiceCode = "AMG" ApolloAirUtilityAccessorialsRequestV1ServiceCodeCA ApolloAirUtilityAccessorialsRequestV1ServiceCode = "CA" ApolloAirUtilityAccessorialsRequestV1ServiceCodeCAC ApolloAirUtilityAccessorialsRequestV1ServiceCode = "CAC" ApolloAirUtilityAccessorialsRequestV1ServiceCodeCACD ApolloAirUtilityAccessorialsRequestV1ServiceCode = "CACD" ApolloAirUtilityAccessorialsRequestV1ServiceCodeCAD ApolloAirUtilityAccessorialsRequestV1ServiceCode = "CAD" ApolloAirUtilityAccessorialsRequestV1ServiceCodeCX ApolloAirUtilityAccessorialsRequestV1ServiceCode = "CX" ApolloAirUtilityAccessorialsRequestV1ServiceCodeCXC ApolloAirUtilityAccessorialsRequestV1ServiceCode = "CXC" ApolloAirUtilityAccessorialsRequestV1ServiceCodeCXCD ApolloAirUtilityAccessorialsRequestV1ServiceCode = "CXCD" ApolloAirUtilityAccessorialsRequestV1ServiceCodeCXD ApolloAirUtilityAccessorialsRequestV1ServiceCode = "CXD" ApolloAirUtilityAccessorialsRequestV1ServiceCodeD2 ApolloAirUtilityAccessorialsRequestV1ServiceCode = "D2" ApolloAirUtilityAccessorialsRequestV1ServiceCodeD2G ApolloAirUtilityAccessorialsRequestV1ServiceCode = "D2G" ApolloAirUtilityAccessorialsRequestV1ServiceCodeDF ApolloAirUtilityAccessorialsRequestV1ServiceCode = "DF" ApolloAirUtilityAccessorialsRequestV1ServiceCodeDFG ApolloAirUtilityAccessorialsRequestV1ServiceCode = "DFG" ApolloAirUtilityAccessorialsRequestV1ServiceCodeEA ApolloAirUtilityAccessorialsRequestV1ServiceCode = "EA" ApolloAirUtilityAccessorialsRequestV1ServiceCodeEC ApolloAirUtilityAccessorialsRequestV1ServiceCode = "EC" ApolloAirUtilityAccessorialsRequestV1ServiceCodeECC ApolloAirUtilityAccessorialsRequestV1ServiceCode = "ECC" ApolloAirUtilityAccessorialsRequestV1ServiceCodeECCD ApolloAirUtilityAccessorialsRequestV1ServiceCode = "ECCD" ApolloAirUtilityAccessorialsRequestV1ServiceCodeECD ApolloAirUtilityAccessorialsRequestV1ServiceCode = "ECD" ApolloAirUtilityAccessorialsRequestV1ServiceCodeEG ApolloAirUtilityAccessorialsRequestV1ServiceCode = "EG" ApolloAirUtilityAccessorialsRequestV1ServiceCodeGOLDP ApolloAirUtilityAccessorialsRequestV1ServiceCode = "GOLDP" ApolloAirUtilityAccessorialsRequestV1ServiceCodeMEXDF ApolloAirUtilityAccessorialsRequestV1ServiceCode = "MEXDF" ApolloAirUtilityAccessorialsRequestV1ServiceCodeSAT ApolloAirUtilityAccessorialsRequestV1ServiceCode = "SAT" ApolloAirUtilityAccessorialsRequestV1ServiceCodeSATG ApolloAirUtilityAccessorialsRequestV1ServiceCode = "SATG" )
Defines values for ApolloAirUtilityAccessorialsRequestV1ServiceCode.
type ApolloAirUtilityValidAccessorialsResponseV1 ¶
type ApolloAirUtilityValidAccessorialsResponseV1 struct {
// Response Response wrapper object.
Response struct {
// Accessorials List of valid accessorials.
Accessorials []ApolloAccessorialsResponseDetailsV1 `json:"accessorials"`
// NextAvailPUDate Next available pickup date
NextAvailPUDate openapi_types.Date `json:"nextAvailPUDate"`
PaymentTerms []ApolloAccessorialPaymentTermResponseV1 `json:"paymentTerms"`
} `json:"response"`
}
ApolloAirUtilityValidAccessorialsResponseV1 Response containing a collection of valid accessorials.
type ApolloAirportResponseDetailsV1 ¶
type ApolloAirportResponseDetailsV1 struct {
// AirportCode Unique code identifying the airport.
AirportCode *string `json:"airportCode,omitempty"`
// City City where the airport is located.
City *string `json:"city,omitempty"`
// PostalCode Postal code associated with the airport's location.
PostalCode *string `json:"postalCode,omitempty"`
// StateProvince State or province of the airport's location.
StateProvince *string `json:"stateProvince,omitempty"`
}
ApolloAirportResponseDetailsV1 defines model for ApolloAirportResponseDetailsV1.
type ApolloAmountV1 ¶
type ApolloAmountV1 = float64
ApolloAmountV1 defines model for ApolloAmountV1.
type ApolloBookingResponseV1 ¶
type ApolloBookingResponseV1 struct {
Response *AirOceanBookingResponse `json:"response,omitempty"`
}
ApolloBookingResponseV1 defines model for ApolloBookingResponseV1.
type ApolloCancelOrderRequestV1 ¶
type ApolloCancelOrderRequestV1 struct {
// Account The unique number that identifies the Shipment
Account *string `json:"account"`
// Language The language/culture that is being used for the API
Language *string `json:"language,omitempty"`
// OrderNumber The Unique number used to identify the order
OrderNumber ApolloOrderNumberV1 `json:"orderNumber"`
}
ApolloCancelOrderRequestV1 The request used to cancel an Order
type ApolloCancelOrderResponseV1 ¶
type ApolloCancelOrderResponseV1 struct {
Response struct {
Message *string `json:"message,omitempty"`
// OrderNumber The Unique number used to identify the order
OrderNumber ApolloOrderNumberV1 `json:"orderNumber"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
} `json:"response"`
}
ApolloCancelOrderResponseV1 The response from Order Cancel Operation
type ApolloChargeAmountV1 ¶
type ApolloChargeAmountV1 struct {
// Amount Cost associated with the charge
Amount *string `json:"amount"`
// CurrencyCode The <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank">ISO 4217</a> charge currency code
CurrencyCode *string `json:"currencyCode"`
}
ApolloChargeAmountV1 defines model for ApolloChargeAmountV1.
type ApolloChargeV1 ¶
type ApolloChargeV1 struct {
// Amount Cost associated with the charge
Amount *string `json:"amount"`
// Code The code used to identify the charge for classification and categorization
Code *string `json:"code"`
// CurrencyCode The <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank">ISO 4217</a> charge currency code
CurrencyCode *string `json:"currencyCode"`
// Description A short overview of the charge
Description *string `json:"description"`
// IncludedInd Indicates if charge is included in base rate (Y/N)
IncludedInd *string `json:"includedInd"`
}
ApolloChargeV1 defines model for ApolloChargeV1.
type ApolloCountryCodeV1 ¶
type ApolloCountryCodeV1 = string
ApolloCountryCodeV1 defines model for ApolloCountryCodeV1.
type ApolloCustomArrayV1 ¶
type ApolloCustomArrayV1 = []struct {
// Key the name referencing the paired object
Key *string `json:"key,omitempty"`
// Value the value referencing the paired object
Value *string `json:"value,omitempty"`
}
ApolloCustomArrayV1 Unbounded array of additional key-value pair objects
type ApolloDateTimeV1 ¶
ApolloDateTimeV1 defines model for ApolloDateTimeV1.
type ApolloDateV1 ¶
type ApolloDateV1 = openapi_types.Date
ApolloDateV1 defines model for ApolloDateV1.
type ApolloDimensionV1 ¶
type ApolloDimensionV1 = float32
ApolloDimensionV1 defines model for ApolloDimensionV1.
type ApolloErrorResponseV1 ¶
type ApolloErrorResponseV1 struct {
// Response Response container to store errors
Response struct {
// Errors Unbounded array containing one or more error objects
Errors []struct {
// Code error code
Code string `json:"code"`
// Message error message
Message string `json:"message"`
} `json:"errors"`
} `json:"response"`
}
ApolloErrorResponseV1 Response object for errors
type ApolloFullTrackingDetailsResponseV1 ¶
type ApolloFullTrackingDetailsResponseV1 struct {
// Response Response container for tracking details
Response struct {
// PrimaryInformation Comprehensive primary information about the shipment including all tracking details.
PrimaryInformation *PrimaryInformation `json:"primaryInformation,omitempty"`
} `json:"response"`
}
ApolloFullTrackingDetailsResponseV1 Response object containing comprehensive tracking details for a shipment.
type ApolloGetCityResponseV1 ¶
type ApolloGetCityResponseV1 struct {
Response struct {
// CityDetails The unbounded array representing the cities
CityDetails []struct {
// CityName The name of the city
CityName *string `json:"cityName"`
// MajorAirportCity The nearest city with a major airport
MajorAirportCity *string `json:"majorAirportCity"`
// SortCode A value which helps the Ops team to route the package
SortCode *string `json:"sortCode"`
// StandardService The standard service offered in this city
StandardService *string `json:"standardService"`
// StateProvinceCode The State/Province to which the city belongs to
StateProvinceCode *string `json:"stateProvinceCode"`
// TariffDestination The destination used for billing purpose
TariffDestination *string `json:"tariffDestination"`
} `json:"cityDetails"`
Message *string `json:"message,omitempty"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
} `json:"response"`
}
ApolloGetCityResponseV1 Response from the Order API
type ApolloItemV1 ¶
type ApolloItemV1 struct {
// Count A total number of this item
Count *int32 `json:"count"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
// Height Height of this item
Height float32 `json:"height"`
// ItemDescription A short description of the item
ItemDescription *string `json:"itemDescription"`
// Length Length of this item
Length float32 `json:"length"`
// Weight Total weight of these items
Weight float32 `json:"weight"`
// Width Width of this item
Width float32 `json:"width"`
}
ApolloItemV1 defines model for ApolloItemV1.
type ApolloLabelV1 ¶
type ApolloLabelV1 struct {
// Charges A collection of charges associated with this Order. Conditionally required based on payer of charges.
Charges *struct {
// ConsigneeCharges A collection of charges associated with this Order mapped to the consignee
ConsigneeCharges *[]ApolloChargeV1 `json:"consigneeCharges"`
// ShipperCharges A collection of charges associated with this Order mapped to the shipper
ShipperCharges *[]ApolloChargeV1 `json:"shipperCharges"`
// ThirdPartyCharges A collection of charges associated with this Order mapped to the third party
ThirdPartyCharges *[]ApolloChargeV1 `json:"thirdPartyCharges"`
} `json:"charges,omitempty"`
LabelData *struct {
Consignee ApolloShipmentPartyV1 `json:"consignee"`
Shipment struct {
CloseTime *ApolloTimeV1 `json:"closeTime,omitempty"`
// ConsigneeReference A reference to the Order for the Consignee
ConsigneeReference *string `json:"consigneeReference"`
// Count The total number of items in the order
Count *int32 `json:"count,omitempty"`
// CountryOfManufacture An unbounded array of country codes where the items originated
CountryOfManufacture *[]string `json:"countryOfManufacture,omitempty"`
// Currency The currency associated with the Order
Currency *string `json:"currency"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
DropoffTime *ApolloTimeV1 `json:"dropoffTime,omitempty"`
// FreightType Freight type of the shipment.
FreightType *ApolloLabelV1LabelDataShipmentFreightType `json:"freightType,omitempty"`
// Gateway The airport gateway for routing
Gateway *string `json:"gateway"`
// IsMetric A flag indicating whether the units used are metric
IsMetric *string `json:"isMetric"`
// Items A collection of items
Items *[]ApolloItemV1 `json:"items"`
// LabelService The service entry used by the Ops Team
LabelService *string `json:"labelService"`
// OrderDescription A short description of the Order
OrderDescription *string `json:"orderDescription"`
// PaymentType The payment type associated with the Order
PaymentType *string `json:"paymentType"`
PickupDate *ApolloDateV1 `json:"pickupDate,omitempty"`
// Rates The cost associated with the Order to be printed in the label
Rates *struct {
Amount *ApolloAmountV1 `json:"amount"`
// CurrencyCode The <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank">ISO 4217</a> currency code
CurrencyCode *string `json:"currencyCode"`
} `json:"rates,omitempty"`
ReadyTime *ApolloTimeV1 `json:"readyTime,omitempty"`
// ServiceDesc The description of the service
ServiceDesc *string `json:"serviceDesc"`
// ServiceType The service type associated with the Order
ServiceType *string `json:"serviceType"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// ShipperReference A reference to the Order provided by Shipper
ShipperReference *string `json:"shipperReference"`
// SortCode The routing value to help the Ops Team
SortCode *string `json:"sortCode"`
// Weight Total weight of the shipment.
Weight *float32 `json:"weight,omitempty"`
} `json:"shipment"`
Shipper ApolloShipmentPartyV1 `json:"shipper"`
ThirdParty *ApolloLabelV1_LabelData_ThirdParty `json:"thirdParty,omitempty"`
} `json:"labelData,omitempty"`
// LabelFormat The output format for the label
LabelFormat *string `json:"labelFormat"`
// LabelImage The byte array of the generated PDF represented as base64 string
LabelImage *[]byte `json:"labelImage"`
Message *string `json:"message,omitempty"`
// OrderNumber The Unique number used to identify the order
OrderNumber *ApolloOrderNumberV1 `json:"orderNumber,omitempty"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
}
ApolloLabelV1 An object representing the shipping label.
| **labelFormat** | **Returned Containers** | | :--: | :-- | | DATA | labelFormat, labelData | | PDF, PNG | labelFormat, labelImage |
type ApolloLabelV1LabelDataShipmentFreightType ¶
type ApolloLabelV1LabelDataShipmentFreightType string
ApolloLabelV1LabelDataShipmentFreightType Freight type of the shipment.
const ( ApolloLabelV1LabelDataShipmentFreightTypeLOOSE ApolloLabelV1LabelDataShipmentFreightType = "LOOSE" ApolloLabelV1LabelDataShipmentFreightTypePALLET ApolloLabelV1LabelDataShipmentFreightType = "PALLET" )
Defines values for ApolloLabelV1LabelDataShipmentFreightType.
type ApolloLabelV1LabelDataThirdParty0 ¶
type ApolloLabelV1LabelDataThirdParty0 = interface{}
ApolloLabelV1LabelDataThirdParty0 defines model for .
type ApolloLabelV1_LabelData_ThirdParty ¶
type ApolloLabelV1_LabelData_ThirdParty struct {
// contains filtered or unexported fields
}
ApolloLabelV1_LabelData_ThirdParty defines model for ApolloLabelV1.LabelData.ThirdParty.
func (ApolloLabelV1_LabelData_ThirdParty) AsApolloLabelV1LabelDataThirdParty0 ¶
func (t ApolloLabelV1_LabelData_ThirdParty) AsApolloLabelV1LabelDataThirdParty0() (ApolloLabelV1LabelDataThirdParty0, error)
AsApolloLabelV1LabelDataThirdParty0 returns the union data inside the ApolloLabelV1_LabelData_ThirdParty as a ApolloLabelV1LabelDataThirdParty0
func (ApolloLabelV1_LabelData_ThirdParty) AsApolloShipmentPartyV1 ¶
func (t ApolloLabelV1_LabelData_ThirdParty) AsApolloShipmentPartyV1() (ApolloShipmentPartyV1, error)
AsApolloShipmentPartyV1 returns the union data inside the ApolloLabelV1_LabelData_ThirdParty as a ApolloShipmentPartyV1
func (*ApolloLabelV1_LabelData_ThirdParty) FromApolloLabelV1LabelDataThirdParty0 ¶
func (t *ApolloLabelV1_LabelData_ThirdParty) FromApolloLabelV1LabelDataThirdParty0(v ApolloLabelV1LabelDataThirdParty0) error
FromApolloLabelV1LabelDataThirdParty0 overwrites any union data inside the ApolloLabelV1_LabelData_ThirdParty as the provided ApolloLabelV1LabelDataThirdParty0
func (*ApolloLabelV1_LabelData_ThirdParty) FromApolloShipmentPartyV1 ¶
func (t *ApolloLabelV1_LabelData_ThirdParty) FromApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
FromApolloShipmentPartyV1 overwrites any union data inside the ApolloLabelV1_LabelData_ThirdParty as the provided ApolloShipmentPartyV1
func (ApolloLabelV1_LabelData_ThirdParty) MarshalJSON ¶
func (t ApolloLabelV1_LabelData_ThirdParty) MarshalJSON() ([]byte, error)
func (*ApolloLabelV1_LabelData_ThirdParty) MergeApolloLabelV1LabelDataThirdParty0 ¶
func (t *ApolloLabelV1_LabelData_ThirdParty) MergeApolloLabelV1LabelDataThirdParty0(v ApolloLabelV1LabelDataThirdParty0) error
MergeApolloLabelV1LabelDataThirdParty0 performs a merge with any union data inside the ApolloLabelV1_LabelData_ThirdParty, using the provided ApolloLabelV1LabelDataThirdParty0
func (*ApolloLabelV1_LabelData_ThirdParty) MergeApolloShipmentPartyV1 ¶
func (t *ApolloLabelV1_LabelData_ThirdParty) MergeApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
MergeApolloShipmentPartyV1 performs a merge with any union data inside the ApolloLabelV1_LabelData_ThirdParty, using the provided ApolloShipmentPartyV1
func (*ApolloLabelV1_LabelData_ThirdParty) UnmarshalJSON ¶
func (t *ApolloLabelV1_LabelData_ThirdParty) UnmarshalJSON(b []byte) error
type ApolloOrderNumberV1 ¶
type ApolloOrderNumberV1 = string
ApolloOrderNumberV1 The Unique number used to identify the order
type ApolloOrderPrintLabelRequestV1 ¶
type ApolloOrderPrintLabelRequestV1 struct {
// Details Optional. Use key piece with a 1-based number to print a specific piece within the shipment.
Details *string `json:"details,omitempty"`
// Format Label output format. Defaults to PDF. DATA returns label fields as structured data with no image.
Format *ApolloOrderPrintLabelRequestV1Format `json:"format"`
// Language Language for label text. Defaults to en-US.
Language *string `json:"language"`
// Layout Label template. AF-GEMINI (default), AF-UFH (default for shipment-only; required for Quote API shipments). NOTE : AF-GEMINI layout supports only PDF format.
Layout *string `json:"layout"`
OrderNumber interface{} `json:"orderNumber,omitempty"`
// ShipmentNumber Shipment number from the Ship or Quote API. When provided alone, layout defaults to AF-UFH.
ShipmentNumber *string `json:"shipmentNumber"`
}
ApolloOrderPrintLabelRequestV1 At least one of shipmentNumber, or orderNumber is required.
type ApolloOrderPrintLabelRequestV1Format ¶
type ApolloOrderPrintLabelRequestV1Format string
ApolloOrderPrintLabelRequestV1Format Label output format. Defaults to PDF. DATA returns label fields as structured data with no image.
const ( ApolloOrderPrintLabelRequestV1FormatBMP ApolloOrderPrintLabelRequestV1Format = "BMP" ApolloOrderPrintLabelRequestV1FormatDATA ApolloOrderPrintLabelRequestV1Format = "DATA" ApolloOrderPrintLabelRequestV1FormatJPG ApolloOrderPrintLabelRequestV1Format = "JPG" ApolloOrderPrintLabelRequestV1FormatPDF ApolloOrderPrintLabelRequestV1Format = "PDF" ApolloOrderPrintLabelRequestV1FormatPNG ApolloOrderPrintLabelRequestV1Format = "PNG" ApolloOrderPrintLabelRequestV1FormatSVG ApolloOrderPrintLabelRequestV1Format = "SVG" ApolloOrderPrintLabelRequestV1FormatTIFF ApolloOrderPrintLabelRequestV1Format = "TIFF" )
Defines values for ApolloOrderPrintLabelRequestV1Format.
type ApolloOrderRequestV1 ¶
type ApolloOrderRequestV1 struct {
Consignee ApolloShipmentPartyV1 `json:"consignee"`
Label *struct {
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
// Format The output format of the document.
Format *ApolloOrderRequestV1LabelFormat `json:"format"`
// Layout A key that determines the template that is used for the label.
Layout *string `json:"layout"`
} `json:"label,omitempty"`
// Language The language/culture that is being used for the API
Language *string `json:"language,omitempty"`
Shipment struct {
CloseTime *ApolloTimeV1 `json:"closeTime,omitempty"`
// ConsigneeReference A reference to the shipment provided by the Consignee
ConsigneeReference *string `json:"consigneeReference"`
// CountryOfManufacture An unbounded array of country codes where the items originated
CountryOfManufacture *[]string `json:"countryOfManufacture,omitempty"`
// Currency The currency code associated with the Shipment. Default is USD
Currency *string `json:"currency"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
DropoffTime *ApolloTimeV1 `json:"dropoffTime,omitempty"`
// FreightType Freight type of the shipment.
FreightType ApolloOrderRequestV1ShipmentFreightType `json:"freightType"`
// IsMetric A flag to indicate if the measurements are metric
IsMetric *bool `json:"isMetric"`
// Items A collection of the details of each item that is associated with the Shipment
Items []ApolloItemV1 `json:"items"`
// OrderDescription A short description of the Shipment Order
OrderDescription *string `json:"orderDescription"`
PaymentType *ApolloOrderRequestV1ShipmentPaymentType `json:"paymentType"`
PickupDate *ApolloDateV1 `json:"pickupDate,omitempty"`
ReadyTime *ApolloTimeV1 `json:"readyTime,omitempty"`
// ServiceType Type of service requested
ServiceType *ApolloOrderRequestV1ShipmentServiceType `json:"serviceType"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// ShipperReference A reference to the shipment provided by the Shipper
ShipperReference *string `json:"shipperReference"`
// Weight Total weight of the shipment. Required if items are missing weight entry
Weight *float32 `json:"weight,omitempty"`
} `json:"shipment"`
Shipper ApolloShipmentPartyV1 `json:"shipper"`
// ThirdParty Any other Party involved in the Shipment, usually a payor. Details Required when third party is payor, must be different from consignee and shipper
ThirdParty *ApolloOrderRequestV1_ThirdParty `json:"thirdParty,omitempty"`
// TransId A transaction Id to track this API call
TransId *string `json:"transId,omitempty"`
}
ApolloOrderRequestV1 The object that holds the data to create an Order. Following fields will be examined for the Shipment Consolidation(when enabled)- consolidationId, shipper, pickupDate, consignee, serviceType, paymentType, IsHAPU, IsSaturdayPickup, IsLiftgatePickup, IsLiftgateDelivery, Pickup, DLV, IsFreeDomicileDDU, IsFreeDomicileDDP, IsCustomsClearance, CustomValueCurrencyCode, CustomValue, RESPU, RESDLV, freightType, IsHazMat, orderDescription, DeclaredValueCurrencyCode, DeclaredValue, IsMetric, ThirdParty
type ApolloOrderRequestV1LabelFormat ¶
type ApolloOrderRequestV1LabelFormat string
ApolloOrderRequestV1LabelFormat The output format of the document.
const ( ApolloOrderRequestV1LabelFormatBMP ApolloOrderRequestV1LabelFormat = "BMP" ApolloOrderRequestV1LabelFormatDATA ApolloOrderRequestV1LabelFormat = "DATA" ApolloOrderRequestV1LabelFormatJPG ApolloOrderRequestV1LabelFormat = "JPG" ApolloOrderRequestV1LabelFormatPDF ApolloOrderRequestV1LabelFormat = "PDF" ApolloOrderRequestV1LabelFormatPNG ApolloOrderRequestV1LabelFormat = "PNG" ApolloOrderRequestV1LabelFormatSVG ApolloOrderRequestV1LabelFormat = "SVG" ApolloOrderRequestV1LabelFormatTIFF ApolloOrderRequestV1LabelFormat = "TIFF" )
Defines values for ApolloOrderRequestV1LabelFormat.
type ApolloOrderRequestV1ShipmentFreightType ¶
type ApolloOrderRequestV1ShipmentFreightType string
ApolloOrderRequestV1ShipmentFreightType Freight type of the shipment.
const ( ApolloOrderRequestV1ShipmentFreightTypeLOOSE ApolloOrderRequestV1ShipmentFreightType = "LOOSE" ApolloOrderRequestV1ShipmentFreightTypePALLET ApolloOrderRequestV1ShipmentFreightType = "PALLET" )
Defines values for ApolloOrderRequestV1ShipmentFreightType.
type ApolloOrderRequestV1ShipmentPaymentType ¶
type ApolloOrderRequestV1ShipmentPaymentType string
ApolloOrderRequestV1ShipmentPaymentType defines model for ApolloOrderRequestV1.Shipment.PaymentType.
const ( ApolloOrderRequestV1ShipmentPaymentTypeCOL ApolloOrderRequestV1ShipmentPaymentType = "COL" ApolloOrderRequestV1ShipmentPaymentTypeOTHTHD ApolloOrderRequestV1ShipmentPaymentType = "OTH/THD" ApolloOrderRequestV1ShipmentPaymentTypePPD ApolloOrderRequestV1ShipmentPaymentType = "PPD" )
Defines values for ApolloOrderRequestV1ShipmentPaymentType.
type ApolloOrderRequestV1ShipmentServiceType ¶
type ApolloOrderRequestV1ShipmentServiceType string
ApolloOrderRequestV1ShipmentServiceType Type of service requested
const ( ApolloOrderRequestV1ShipmentServiceTypeAM ApolloOrderRequestV1ShipmentServiceType = "AM" ApolloOrderRequestV1ShipmentServiceTypeAMG ApolloOrderRequestV1ShipmentServiceType = "AMG" ApolloOrderRequestV1ShipmentServiceTypeCA ApolloOrderRequestV1ShipmentServiceType = "CA" ApolloOrderRequestV1ShipmentServiceTypeCAC ApolloOrderRequestV1ShipmentServiceType = "CAC" ApolloOrderRequestV1ShipmentServiceTypeCACD ApolloOrderRequestV1ShipmentServiceType = "CACD" ApolloOrderRequestV1ShipmentServiceTypeCAD ApolloOrderRequestV1ShipmentServiceType = "CAD" ApolloOrderRequestV1ShipmentServiceTypeCX ApolloOrderRequestV1ShipmentServiceType = "CX" ApolloOrderRequestV1ShipmentServiceTypeCXC ApolloOrderRequestV1ShipmentServiceType = "CXC" ApolloOrderRequestV1ShipmentServiceTypeCXCD ApolloOrderRequestV1ShipmentServiceType = "CXCD" ApolloOrderRequestV1ShipmentServiceTypeCXD ApolloOrderRequestV1ShipmentServiceType = "CXD" ApolloOrderRequestV1ShipmentServiceTypeD2 ApolloOrderRequestV1ShipmentServiceType = "D2" ApolloOrderRequestV1ShipmentServiceTypeD2G ApolloOrderRequestV1ShipmentServiceType = "D2G" ApolloOrderRequestV1ShipmentServiceTypeDF ApolloOrderRequestV1ShipmentServiceType = "DF" ApolloOrderRequestV1ShipmentServiceTypeDFG ApolloOrderRequestV1ShipmentServiceType = "DFG" ApolloOrderRequestV1ShipmentServiceTypeEA ApolloOrderRequestV1ShipmentServiceType = "EA" ApolloOrderRequestV1ShipmentServiceTypeEC ApolloOrderRequestV1ShipmentServiceType = "EC" ApolloOrderRequestV1ShipmentServiceTypeECC ApolloOrderRequestV1ShipmentServiceType = "ECC" ApolloOrderRequestV1ShipmentServiceTypeECCD ApolloOrderRequestV1ShipmentServiceType = "ECCD" ApolloOrderRequestV1ShipmentServiceTypeECD ApolloOrderRequestV1ShipmentServiceType = "ECD" ApolloOrderRequestV1ShipmentServiceTypeEG ApolloOrderRequestV1ShipmentServiceType = "EG" ApolloOrderRequestV1ShipmentServiceTypeGOLDP ApolloOrderRequestV1ShipmentServiceType = "GOLDP" ApolloOrderRequestV1ShipmentServiceTypeMEXDF ApolloOrderRequestV1ShipmentServiceType = "MEXDF" ApolloOrderRequestV1ShipmentServiceTypeSAT ApolloOrderRequestV1ShipmentServiceType = "SAT" ApolloOrderRequestV1ShipmentServiceTypeSATG ApolloOrderRequestV1ShipmentServiceType = "SATG" )
Defines values for ApolloOrderRequestV1ShipmentServiceType.
type ApolloOrderRequestV1ThirdParty0 ¶
type ApolloOrderRequestV1ThirdParty0 = interface{}
ApolloOrderRequestV1ThirdParty0 defines model for .
type ApolloOrderRequestV1_ThirdParty ¶
type ApolloOrderRequestV1_ThirdParty struct {
// contains filtered or unexported fields
}
ApolloOrderRequestV1_ThirdParty Any other Party involved in the Shipment, usually a payor. Details Required when third party is payor, must be different from consignee and shipper
func (ApolloOrderRequestV1_ThirdParty) AsApolloOrderRequestV1ThirdParty0 ¶
func (t ApolloOrderRequestV1_ThirdParty) AsApolloOrderRequestV1ThirdParty0() (ApolloOrderRequestV1ThirdParty0, error)
AsApolloOrderRequestV1ThirdParty0 returns the union data inside the ApolloOrderRequestV1_ThirdParty as a ApolloOrderRequestV1ThirdParty0
func (ApolloOrderRequestV1_ThirdParty) AsApolloShipmentPartyV1 ¶
func (t ApolloOrderRequestV1_ThirdParty) AsApolloShipmentPartyV1() (ApolloShipmentPartyV1, error)
AsApolloShipmentPartyV1 returns the union data inside the ApolloOrderRequestV1_ThirdParty as a ApolloShipmentPartyV1
func (*ApolloOrderRequestV1_ThirdParty) FromApolloOrderRequestV1ThirdParty0 ¶
func (t *ApolloOrderRequestV1_ThirdParty) FromApolloOrderRequestV1ThirdParty0(v ApolloOrderRequestV1ThirdParty0) error
FromApolloOrderRequestV1ThirdParty0 overwrites any union data inside the ApolloOrderRequestV1_ThirdParty as the provided ApolloOrderRequestV1ThirdParty0
func (*ApolloOrderRequestV1_ThirdParty) FromApolloShipmentPartyV1 ¶
func (t *ApolloOrderRequestV1_ThirdParty) FromApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
FromApolloShipmentPartyV1 overwrites any union data inside the ApolloOrderRequestV1_ThirdParty as the provided ApolloShipmentPartyV1
func (ApolloOrderRequestV1_ThirdParty) MarshalJSON ¶
func (t ApolloOrderRequestV1_ThirdParty) MarshalJSON() ([]byte, error)
func (*ApolloOrderRequestV1_ThirdParty) MergeApolloOrderRequestV1ThirdParty0 ¶
func (t *ApolloOrderRequestV1_ThirdParty) MergeApolloOrderRequestV1ThirdParty0(v ApolloOrderRequestV1ThirdParty0) error
MergeApolloOrderRequestV1ThirdParty0 performs a merge with any union data inside the ApolloOrderRequestV1_ThirdParty, using the provided ApolloOrderRequestV1ThirdParty0
func (*ApolloOrderRequestV1_ThirdParty) MergeApolloShipmentPartyV1 ¶
func (t *ApolloOrderRequestV1_ThirdParty) MergeApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
MergeApolloShipmentPartyV1 performs a merge with any union data inside the ApolloOrderRequestV1_ThirdParty, using the provided ApolloShipmentPartyV1
func (*ApolloOrderRequestV1_ThirdParty) UnmarshalJSON ¶
func (t *ApolloOrderRequestV1_ThirdParty) UnmarshalJSON(b []byte) error
type ApolloOrderResponseV1 ¶
type ApolloOrderResponseV1 struct {
Response struct {
// Charges A collection of charges associated with this Order. Conditionally required based on payer of charges.
Charges *struct {
// ConsigneeCharges A collection of charges associated with this Order mapped to the consignee
ConsigneeCharges *[]ApolloChargeV1 `json:"consigneeCharges"`
// ShipperCharges A collection of charges associated with this Order mapped to the shipper
ShipperCharges *[]ApolloChargeV1 `json:"shipperCharges"`
// ThirdPartyCharges A collection of charges associated with this Order mapped to the third party
ThirdPartyCharges *[]ApolloChargeV1 `json:"thirdPartyCharges"`
} `json:"charges,omitempty"`
LabelData *struct {
Consignee ApolloShipmentPartyV1 `json:"consignee"`
Shipment struct {
CloseTime *ApolloTimeV1 `json:"closeTime,omitempty"`
// ConsigneeReference A reference to the Order for the Consignee
ConsigneeReference *string `json:"consigneeReference"`
// Count The total number of items in the order
Count *int32 `json:"count,omitempty"`
// CountryOfManufacture An unbounded array of country codes where the items originated
CountryOfManufacture *[]string `json:"countryOfManufacture,omitempty"`
// Currency The currency associated with the Order
Currency *string `json:"currency"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
DropoffTime *ApolloTimeV1 `json:"dropoffTime,omitempty"`
// FreightType Freight type of the shipment.
FreightType *ApolloOrderResponseV1ResponseLabelDataShipmentFreightType `json:"freightType,omitempty"`
// Gateway The airport gateway for routing
Gateway *string `json:"gateway"`
// IsMetric A flag indicating whether the units used are metric
IsMetric *string `json:"isMetric"`
// Items A collection of items
Items *[]ApolloItemV1 `json:"items"`
// LabelService The service entry used by the Ops Team
LabelService *string `json:"labelService"`
// OrderDescription A short description of the Order
OrderDescription *string `json:"orderDescription"`
// PaymentType The payment type associated with the Order
PaymentType *string `json:"paymentType"`
PickupDate *ApolloDateV1 `json:"pickupDate,omitempty"`
// Rates The cost associated with the Order to be printed in the label
Rates *struct {
Amount *ApolloAmountV1 `json:"amount"`
// CurrencyCode The <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank">ISO 4217</a> currency code
CurrencyCode *string `json:"currencyCode"`
} `json:"rates,omitempty"`
ReadyTime *ApolloTimeV1 `json:"readyTime,omitempty"`
// ServiceDesc The description of the service
ServiceDesc *string `json:"serviceDesc"`
// ServiceType The service type associated with the Order
ServiceType *string `json:"serviceType"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// ShipperReference A reference to the Order provided by Shipper
ShipperReference *string `json:"shipperReference"`
// SortCode The routing value to help the Ops Team
SortCode *string `json:"sortCode"`
// Weight Total weight of the shipment.
Weight *float32 `json:"weight,omitempty"`
} `json:"shipment"`
Shipper ApolloShipmentPartyV1 `json:"shipper"`
ThirdParty *ApolloOrderResponseV1_Response_LabelData_ThirdParty `json:"thirdParty,omitempty"`
} `json:"labelData,omitempty"`
// LabelFormat The output format for the label
LabelFormat *string `json:"labelFormat"`
// LabelImage The byte array of the generated PDF represented as base64 string
LabelImage *[]byte `json:"labelImage"`
Message *string `json:"message,omitempty"`
// OrderNumber The Unique number used to identify the order
OrderNumber ApolloOrderNumberV1 `json:"orderNumber"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
} `json:"response"`
}
ApolloOrderResponseV1 Response from the Order API
type ApolloOrderResponseV1ResponseLabelDataShipmentFreightType ¶
type ApolloOrderResponseV1ResponseLabelDataShipmentFreightType string
ApolloOrderResponseV1ResponseLabelDataShipmentFreightType Freight type of the shipment.
const ( ApolloOrderResponseV1ResponseLabelDataShipmentFreightTypeLOOSE ApolloOrderResponseV1ResponseLabelDataShipmentFreightType = "LOOSE" ApolloOrderResponseV1ResponseLabelDataShipmentFreightTypePALLET ApolloOrderResponseV1ResponseLabelDataShipmentFreightType = "PALLET" )
Defines values for ApolloOrderResponseV1ResponseLabelDataShipmentFreightType.
type ApolloOrderResponseV1ResponseLabelDataThirdParty0 ¶
type ApolloOrderResponseV1ResponseLabelDataThirdParty0 = interface{}
ApolloOrderResponseV1ResponseLabelDataThirdParty0 defines model for .
type ApolloOrderResponseV1_Response_LabelData_ThirdParty ¶
type ApolloOrderResponseV1_Response_LabelData_ThirdParty struct {
// contains filtered or unexported fields
}
ApolloOrderResponseV1_Response_LabelData_ThirdParty defines model for ApolloOrderResponseV1.Response.LabelData.ThirdParty.
func (ApolloOrderResponseV1_Response_LabelData_ThirdParty) AsApolloOrderResponseV1ResponseLabelDataThirdParty0 ¶
func (t ApolloOrderResponseV1_Response_LabelData_ThirdParty) AsApolloOrderResponseV1ResponseLabelDataThirdParty0() (ApolloOrderResponseV1ResponseLabelDataThirdParty0, error)
AsApolloOrderResponseV1ResponseLabelDataThirdParty0 returns the union data inside the ApolloOrderResponseV1_Response_LabelData_ThirdParty as a ApolloOrderResponseV1ResponseLabelDataThirdParty0
func (ApolloOrderResponseV1_Response_LabelData_ThirdParty) AsApolloShipmentPartyV1 ¶
func (t ApolloOrderResponseV1_Response_LabelData_ThirdParty) AsApolloShipmentPartyV1() (ApolloShipmentPartyV1, error)
AsApolloShipmentPartyV1 returns the union data inside the ApolloOrderResponseV1_Response_LabelData_ThirdParty as a ApolloShipmentPartyV1
func (*ApolloOrderResponseV1_Response_LabelData_ThirdParty) FromApolloOrderResponseV1ResponseLabelDataThirdParty0 ¶
func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) FromApolloOrderResponseV1ResponseLabelDataThirdParty0(v ApolloOrderResponseV1ResponseLabelDataThirdParty0) error
FromApolloOrderResponseV1ResponseLabelDataThirdParty0 overwrites any union data inside the ApolloOrderResponseV1_Response_LabelData_ThirdParty as the provided ApolloOrderResponseV1ResponseLabelDataThirdParty0
func (*ApolloOrderResponseV1_Response_LabelData_ThirdParty) FromApolloShipmentPartyV1 ¶
func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) FromApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
FromApolloShipmentPartyV1 overwrites any union data inside the ApolloOrderResponseV1_Response_LabelData_ThirdParty as the provided ApolloShipmentPartyV1
func (ApolloOrderResponseV1_Response_LabelData_ThirdParty) MarshalJSON ¶
func (t ApolloOrderResponseV1_Response_LabelData_ThirdParty) MarshalJSON() ([]byte, error)
func (*ApolloOrderResponseV1_Response_LabelData_ThirdParty) MergeApolloOrderResponseV1ResponseLabelDataThirdParty0 ¶
func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) MergeApolloOrderResponseV1ResponseLabelDataThirdParty0(v ApolloOrderResponseV1ResponseLabelDataThirdParty0) error
MergeApolloOrderResponseV1ResponseLabelDataThirdParty0 performs a merge with any union data inside the ApolloOrderResponseV1_Response_LabelData_ThirdParty, using the provided ApolloOrderResponseV1ResponseLabelDataThirdParty0
func (*ApolloOrderResponseV1_Response_LabelData_ThirdParty) MergeApolloShipmentPartyV1 ¶
func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) MergeApolloShipmentPartyV1(v ApolloShipmentPartyV1) error
MergeApolloShipmentPartyV1 performs a merge with any union data inside the ApolloOrderResponseV1_Response_LabelData_ThirdParty, using the provided ApolloShipmentPartyV1
func (*ApolloOrderResponseV1_Response_LabelData_ThirdParty) UnmarshalJSON ¶
func (t *ApolloOrderResponseV1_Response_LabelData_ThirdParty) UnmarshalJSON(b []byte) error
type ApolloOrderSearchRequestV1 ¶
type ApolloOrderSearchRequestV1 struct {
// CriteriaList An array of search criteria
CriteriaList *[]struct {
// CriteriaField The field that is used for search
CriteriaField *string `json:"criteriaField"`
// CriteriaOperator The Operator used in the search
CriteriaOperator *string `json:"criteriaOperator"`
// CriteriaValue The value that is used in the search
CriteriaValue *string `json:"criteriaValue"`
// CriteriaValue2 The value that is used in the search
CriteriaValue2 *string `json:"criteriaValue2"`
} `json:"criteriaList"`
// Language The language/culture used in the request
Language *string `json:"language"`
// ShipperAccountNumber The UPS Freight Account Number that identifies the Shipper
ShipperAccountNumber *ApolloShipperAccountNumberV1 `json:"shipperAccountNumber"`
}
ApolloOrderSearchRequestV1 defines model for ApolloOrderSearchRequestV1.
type ApolloOrderSearchResponseV1 ¶
type ApolloOrderSearchResponseV1 struct {
Response ApolloOrderSearchResponseV1_Response `json:"response"`
}
ApolloOrderSearchResponseV1 The response provided by the Apollo Order Search API
type ApolloOrderSearchResponseV1ResponseOrdersItemsWeightUnit ¶
type ApolloOrderSearchResponseV1ResponseOrdersItemsWeightUnit string
ApolloOrderSearchResponseV1ResponseOrdersItemsWeightUnit The units used to calculate weight
const (
LB ApolloOrderSearchResponseV1ResponseOrdersItemsWeightUnit = "LB"
)
Defines values for ApolloOrderSearchResponseV1ResponseOrdersItemsWeightUnit.
type ApolloOrderSearchResponseV1_Response ¶
type ApolloOrderSearchResponseV1_Response struct {
Message *string `json:"message,omitempty"`
Orders []struct {
Consignee ApolloShipmentPartyV1 `json:"consignee"`
// ConsigneeReference The reference provided by Consignee
ConsigneeReference *string `json:"consigneeReference"`
// Description The description of the Order
Description *string `json:"description"`
// IsMetric The flag indicating whether the measurements are metric
IsMetric bool `json:"isMetric"`
Items struct {
// Item The unbounded array of individual items in the Order
Item *[]struct {
// Count The number of components in the item
Count int32 `json:"count"`
// Height The height of each component in the item
Height float32 `json:"height"`
// Length The length of each component in the item
Length float32 `json:"length"`
// Weight The weight of each component in the item
Weight float32 `json:"weight"`
// Width The width of each component in the item
Width float32 `json:"width"`
} `json:"item,omitempty"`
// TotalPieceCount The total number of Pieces in the Order
TotalPieceCount int32 `json:"totalPieceCount"`
// TotalWeight The total weight of the Items in the Order
TotalWeight int32 `json:"totalWeight"`
// WeightUnit The units used to calculate weight
WeightUnit *ApolloOrderSearchResponseV1ResponseOrdersItemsWeightUnit `json:"weightUnit"`
} `json:"items"`
// ManifestNumber The unique Id to identify the Manifest
ManifestNumber *string `json:"manifestNumber"`
// OrderNumber The Unique number used to identify the order
OrderNumber ApolloOrderNumberV1 `json:"orderNumber"`
ShipDate ApolloDateV1 `json:"shipDate"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// ShipperReference The reference provided by Shipper
ShipperReference *string `json:"shipperReference"`
// Status The description of the status of the Order
Status *string `json:"status"`
// StatusCode TThe code indicating the status of the Order
StatusCode int32 `json:"statusCode"`
} `json:"orders"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ApolloOrderSearchResponseV1_Response defines model for ApolloOrderSearchResponseV1.Response.
func (ApolloOrderSearchResponseV1_Response) Get ¶
func (a ApolloOrderSearchResponseV1_Response) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ApolloOrderSearchResponseV1_Response. Returns the specified element and whether it was found
func (ApolloOrderSearchResponseV1_Response) MarshalJSON ¶
func (a ApolloOrderSearchResponseV1_Response) MarshalJSON() ([]byte, error)
Override default JSON handling for ApolloOrderSearchResponseV1_Response to handle AdditionalProperties
func (*ApolloOrderSearchResponseV1_Response) Set ¶
func (a *ApolloOrderSearchResponseV1_Response) Set(fieldName string, value interface{})
Setter for additional properties for ApolloOrderSearchResponseV1_Response
func (*ApolloOrderSearchResponseV1_Response) UnmarshalJSON ¶
func (a *ApolloOrderSearchResponseV1_Response) UnmarshalJSON(b []byte) error
Override default JSON handling for ApolloOrderSearchResponseV1_Response to handle AdditionalProperties
type ApolloOrderSetDateResponseV1 ¶
type ApolloOrderSetDateResponseV1 struct {
Response *struct {
Message *string `json:"message,omitempty"`
NewDate ApolloDateV1 `json:"newDate"`
OrderNumber ApolloOrderSetDateResponseV1_Response_OrderNumber `json:"orderNumber"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
} `json:"response"`
}
ApolloOrderSetDateResponseV1 The response from the date change operation
type ApolloOrderSetDateResponseV1ResponseOrderNumber1 ¶
type ApolloOrderSetDateResponseV1ResponseOrderNumber1 = interface{}
ApolloOrderSetDateResponseV1ResponseOrderNumber1 defines model for .
type ApolloOrderSetDateResponseV1_Response_OrderNumber ¶
type ApolloOrderSetDateResponseV1_Response_OrderNumber struct {
// contains filtered or unexported fields
}
ApolloOrderSetDateResponseV1_Response_OrderNumber defines model for ApolloOrderSetDateResponseV1.Response.OrderNumber.
func (ApolloOrderSetDateResponseV1_Response_OrderNumber) AsApolloOrderNumberV1 ¶
func (t ApolloOrderSetDateResponseV1_Response_OrderNumber) AsApolloOrderNumberV1() (ApolloOrderNumberV1, error)
AsApolloOrderNumberV1 returns the union data inside the ApolloOrderSetDateResponseV1_Response_OrderNumber as a ApolloOrderNumberV1
func (ApolloOrderSetDateResponseV1_Response_OrderNumber) AsApolloOrderSetDateResponseV1ResponseOrderNumber1 ¶
func (t ApolloOrderSetDateResponseV1_Response_OrderNumber) AsApolloOrderSetDateResponseV1ResponseOrderNumber1() (ApolloOrderSetDateResponseV1ResponseOrderNumber1, error)
AsApolloOrderSetDateResponseV1ResponseOrderNumber1 returns the union data inside the ApolloOrderSetDateResponseV1_Response_OrderNumber as a ApolloOrderSetDateResponseV1ResponseOrderNumber1
func (*ApolloOrderSetDateResponseV1_Response_OrderNumber) FromApolloOrderNumberV1 ¶
func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) FromApolloOrderNumberV1(v ApolloOrderNumberV1) error
FromApolloOrderNumberV1 overwrites any union data inside the ApolloOrderSetDateResponseV1_Response_OrderNumber as the provided ApolloOrderNumberV1
func (*ApolloOrderSetDateResponseV1_Response_OrderNumber) FromApolloOrderSetDateResponseV1ResponseOrderNumber1 ¶
func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) FromApolloOrderSetDateResponseV1ResponseOrderNumber1(v ApolloOrderSetDateResponseV1ResponseOrderNumber1) error
FromApolloOrderSetDateResponseV1ResponseOrderNumber1 overwrites any union data inside the ApolloOrderSetDateResponseV1_Response_OrderNumber as the provided ApolloOrderSetDateResponseV1ResponseOrderNumber1
func (ApolloOrderSetDateResponseV1_Response_OrderNumber) MarshalJSON ¶
func (t ApolloOrderSetDateResponseV1_Response_OrderNumber) MarshalJSON() ([]byte, error)
func (*ApolloOrderSetDateResponseV1_Response_OrderNumber) MergeApolloOrderNumberV1 ¶
func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) MergeApolloOrderNumberV1(v ApolloOrderNumberV1) error
MergeApolloOrderNumberV1 performs a merge with any union data inside the ApolloOrderSetDateResponseV1_Response_OrderNumber, using the provided ApolloOrderNumberV1
func (*ApolloOrderSetDateResponseV1_Response_OrderNumber) MergeApolloOrderSetDateResponseV1ResponseOrderNumber1 ¶
func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) MergeApolloOrderSetDateResponseV1ResponseOrderNumber1(v ApolloOrderSetDateResponseV1ResponseOrderNumber1) error
MergeApolloOrderSetDateResponseV1ResponseOrderNumber1 performs a merge with any union data inside the ApolloOrderSetDateResponseV1_Response_OrderNumber, using the provided ApolloOrderSetDateResponseV1ResponseOrderNumber1
func (*ApolloOrderSetDateResponseV1_Response_OrderNumber) UnmarshalJSON ¶
func (t *ApolloOrderSetDateResponseV1_Response_OrderNumber) UnmarshalJSON(b []byte) error
type ApolloPartyV1 ¶
type ApolloPartyV1 struct {
// Account Account number associated with the party.
Account *string `json:"account"`
// Address1 Primary address line.
Address1 *string `json:"address1,omitempty"`
// City City of the party.
City *string `json:"city,omitempty"`
// Company Name of the company.
Company *string `json:"company"`
// ContactEmail Email address of the contact person.
ContactEmail *string `json:"contactEmail"`
// ContactName Name of the contact person.
ContactName *string `json:"contactName"`
// ContactPhone Phone number of the contact person.
ContactPhone *string `json:"contactPhone"`
CountryCode *ApolloCountryCodeV1 `json:"countryCode,omitempty"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
// PartyCode Party code.
PartyCode *string `json:"partyCode,omitempty"`
// PostalCode Postal code of the party.
PostalCode *string `json:"postalCode,omitempty"`
// ServiceCenterCode Service center code.
ServiceCenterCode *string `json:"serviceCenterCode,omitempty"`
// State The state code is required for country codes US or CA
State *string `json:"state,omitempty"`
}
ApolloPartyV1 Party information (shipper, consignee, or third party).
type ApolloPatchReplaceReqV1 ¶
type ApolloPatchReplaceReqV1 = []struct {
Op *ApolloPatchReplaceReqV1Op `json:"op"`
// Path the field whose value is to be changed
Path *string `json:"path"`
// Value new value to insert into the defined field
Value *string `json:"value"`
}
ApolloPatchReplaceReqV1 The unbounded list of objects to change with their values
type ApolloPatchReplaceReqV1Op ¶
type ApolloPatchReplaceReqV1Op string
ApolloPatchReplaceReqV1Op defines model for ApolloPatchReplaceReqV1.Op.
const (
Replace ApolloPatchReplaceReqV1Op = "replace"
)
Defines values for ApolloPatchReplaceReqV1Op.
type ApolloPickupTotalV1 ¶
type ApolloPickupTotalV1 struct {
ItemCount int32 `json:"itemCount"`
PieceCount int32 `json:"pieceCount"`
ShipmentCount int32 `json:"shipmentCount"`
TotalWeight float64 `json:"totalWeight"`
}
ApolloPickupTotalV1 defines model for ApolloPickupTotalV1.
type ApolloPrintManifestRequestV1 ¶
type ApolloPrintManifestRequestV1 struct {
// AccountNumber The UPS Freight Account Number that identifies the Shipper
AccountNumber *ApolloShipperAccountNumberV1 `json:"accountNumber"`
// Language The language/culture that is being used for the API
Language *string `json:"language,omitempty"`
// ManifestFormat The output format of the document.
ManifestFormat *ApolloPrintManifestRequestV1ManifestFormat `json:"manifestFormat"`
// ManifestNumber The unique Id to identify the Manifest
ManifestNumber *string `json:"manifestNumber"`
}
ApolloPrintManifestRequestV1 The API request used to print a Manifest
type ApolloPrintManifestRequestV1ManifestFormat ¶
type ApolloPrintManifestRequestV1ManifestFormat string
ApolloPrintManifestRequestV1ManifestFormat The output format of the document.
const ( ApolloPrintManifestRequestV1ManifestFormatDATA ApolloPrintManifestRequestV1ManifestFormat = "DATA" ApolloPrintManifestRequestV1ManifestFormatPDF ApolloPrintManifestRequestV1ManifestFormat = "PDF" )
Defines values for ApolloPrintManifestRequestV1ManifestFormat.
type ApolloQuoteBookingRequestV1 ¶
type ApolloQuoteBookingRequestV1 struct {
PickupDetails *AirOceanPickupDetail `json:"pickupDetails,omitempty"`
// QuoteId The quote identifier.
QuoteId string `json:"quoteId"`
// RequestType The type of the request (i.e, Air or Ocean).
RequestType string `json:"requestType"`
// SpecialInstructions Any special instructions for the booking.
SpecialInstructions *string `json:"specialInstructions,omitempty"`
}
ApolloQuoteBookingRequestV1 defines model for ApolloQuoteBookingRequestV1.
type ApolloQuoteDataResponseV1 ¶
type ApolloQuoteDataResponseV1 struct {
Response struct {
QuoteSummary QuoteSummaryV1 `json:"quoteSummary"`
} `json:"response"`
}
ApolloQuoteDataResponseV1 defines model for ApolloQuoteDataResponseV1.
type ApolloQuoteDetailRequestV1 ¶
type ApolloQuoteDetailRequestV1 struct {
QuoteData QuoteData `json:"quoteData"`
// RequestType The type of quote request (i.e, Air, Ocean).
RequestType string `json:"requestType"`
Routing Routing `json:"routing"`
ShipmentDetails ShipmentDetails `json:"shipmentDetails"`
// ShipmentPartyDetail List of parties involved in the shipment (e.g., shipper, consignee, third party).
ShipmentPartyDetail []ShipmentPartyDetail `json:"shipmentPartyDetail"`
}
ApolloQuoteDetailRequestV1 defines model for ApolloQuoteDetailRequestV1.
type ApolloQuoteDetailsResponseV1 ¶
type ApolloQuoteDetailsResponseV1 struct {
Response QuoteDetailsResponse `json:"response"`
}
ApolloQuoteDetailsResponseV1 defines model for ApolloQuoteDetailsResponseV1.
type ApolloShipmentAddressV1 ¶
type ApolloShipmentAddressV1 struct {
// Address1 The line 1 of the address associated with the Party
Address1 *string `json:"address1"`
// Address2 The line 2 of the address associated with the Party
Address2 *string `json:"address2"`
// Address3 The line 3 of the address associated with the Party
Address3 *string `json:"address3"`
// City The address city associated with the Party
City *string `json:"city"`
// CityStateCountryZip Combined city, state, country, and postal code string for display purposes.
CityStateCountryZip *string `json:"cityStateCountryZip"`
// Company The name of the company associated with the Shipment/Party
Company *string `json:"company"`
// CountryCode The <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank">ISO 3166</a> country or territory code associated with the Party
CountryCode *string `json:"countryCode"`
// OperationId A string value to track this operation
OperationId *ApolloShipmentAddressV1OperationId `json:"operationId"`
// PartyCode The hashcode generated using the a Party's details, primarily used to avoid duplicates
PartyCode *string `json:"partyCode"`
// PostalCode The postal code of the address associated with the Party
PostalCode *string `json:"postalCode"`
// State The <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US" target="_blank">ISO 3166-2</a> state code associated with the Party
State *string `json:"state"`
}
ApolloShipmentAddressV1 defines model for ApolloShipmentAddressV1.
type ApolloShipmentAddressV1OperationId ¶
type ApolloShipmentAddressV1OperationId string
ApolloShipmentAddressV1OperationId A string value to track this operation
const ( ApolloShipmentAddressV1OperationIdAirFreightRating ApolloShipmentAddressV1OperationId = "airFreightRating" ApolloShipmentAddressV1OperationIdCancelAirShipment ApolloShipmentAddressV1OperationId = "cancelAirShipment" ApolloShipmentAddressV1OperationIdGetCity ApolloShipmentAddressV1OperationId = "getCity" ApolloShipmentAddressV1OperationIdOrderCancel ApolloShipmentAddressV1OperationId = "orderCancel" ApolloShipmentAddressV1OperationIdOrderCreate ApolloShipmentAddressV1OperationId = "orderCreate" ApolloShipmentAddressV1OperationIdOrderSearch ApolloShipmentAddressV1OperationId = "orderSearch" ApolloShipmentAddressV1OperationIdOrderSetDate ApolloShipmentAddressV1OperationId = "orderSetDate" ApolloShipmentAddressV1OperationIdPrintAirManifest ApolloShipmentAddressV1OperationId = "printAirManifest" ApolloShipmentAddressV1OperationIdPrintLabel ApolloShipmentAddressV1OperationId = "printLabel" ApolloShipmentAddressV1OperationIdSubmitAirShipment ApolloShipmentAddressV1OperationId = "submitAirShipment" )
Defines values for ApolloShipmentAddressV1OperationId.
type ApolloShipmentDetailResponseV1 ¶
type ApolloShipmentDetailResponseV1 struct {
Response struct {
ShipmentSummary ShipmentSummary `json:"shipmentSummary"`
} `json:"response"`
}
ApolloShipmentDetailResponseV1 defines model for ApolloShipmentDetailResponseV1.
type ApolloShipmentNumberV1 ¶
type ApolloShipmentNumberV1 = string
ApolloShipmentNumberV1 Unique identifier for the shipment.
type ApolloShipmentPartyV1 ¶
type ApolloShipmentPartyV1 struct {
// Account The unique UPS Freight Account Number associated with the Party. It's required when the party is the Shipper or Payor
Account *string `json:"account"`
// Address1 The line 1 of the address associated with the Party
Address1 *string `json:"address1"`
// Address2 The line 2 of the address associated with the Party
Address2 *string `json:"address2"`
// Address3 The line 3 of the address associated with the Party
Address3 *string `json:"address3"`
// City The address city associated with the Party
City *string `json:"city"`
// CityStateCountryZip Combined city, state, country, and postal code string for display purposes.
CityStateCountryZip *string `json:"cityStateCountryZip"`
// Company The name of the company associated with the Shipment/Party
Company *string `json:"company"`
// ContactEmail The email of the person who can handle the communications related to the Shipment
ContactEmail *string `json:"contactEmail"`
// ContactName The name of the person who can handle the communications related to the Shipment
ContactName *string `json:"contactName"`
// ContactPhone The phone number of the person who can handle the communications related to the Shipment
ContactPhone *string `json:"contactPhone"`
// CountryCode The <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank">ISO 3166</a> country or territory code associated with the Party
CountryCode *string `json:"countryCode"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
// OperationId A string value to track this operation
OperationId *ApolloShipmentPartyV1OperationId `json:"operationId"`
// PartyCode The hashcode generated using the a Party's details, primarily used to avoid duplicates
PartyCode *string `json:"partyCode"`
// PostalCode The postal code of the address associated with the Party
PostalCode *string `json:"postalCode"`
// ServiceCenterCode The service center that is associated with the Party.
ServiceCenterCode *string `json:"serviceCenterCode"`
// State The <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US" target="_blank">ISO 3166-2</a> state code associated with the Party
State *string `json:"state"`
}
ApolloShipmentPartyV1 defines model for ApolloShipmentPartyV1.
type ApolloShipmentPartyV1OperationId ¶
type ApolloShipmentPartyV1OperationId string
ApolloShipmentPartyV1OperationId A string value to track this operation
const ( ApolloShipmentPartyV1OperationIdAirFreightRating ApolloShipmentPartyV1OperationId = "airFreightRating" ApolloShipmentPartyV1OperationIdCancelAirShipment ApolloShipmentPartyV1OperationId = "cancelAirShipment" ApolloShipmentPartyV1OperationIdGetCity ApolloShipmentPartyV1OperationId = "getCity" ApolloShipmentPartyV1OperationIdOrderCancel ApolloShipmentPartyV1OperationId = "orderCancel" ApolloShipmentPartyV1OperationIdOrderCreate ApolloShipmentPartyV1OperationId = "orderCreate" ApolloShipmentPartyV1OperationIdOrderSearch ApolloShipmentPartyV1OperationId = "orderSearch" ApolloShipmentPartyV1OperationIdOrderSetDate ApolloShipmentPartyV1OperationId = "orderSetDate" ApolloShipmentPartyV1OperationIdPrintAirManifest ApolloShipmentPartyV1OperationId = "printAirManifest" ApolloShipmentPartyV1OperationIdPrintLabel ApolloShipmentPartyV1OperationId = "printLabel" ApolloShipmentPartyV1OperationIdSubmitAirShipment ApolloShipmentPartyV1OperationId = "submitAirShipment" )
Defines values for ApolloShipmentPartyV1OperationId.
type ApolloShipperAccountNumberV1 ¶
type ApolloShipperAccountNumberV1 = string
ApolloShipperAccountNumberV1 The UPS Freight Account Number that identifies the Shipper
type ApolloUtilityAirportDetailResponseV1 ¶
type ApolloUtilityAirportDetailResponseV1 struct {
// Response Response wrapper object.
Response struct {
// AirportDetails List of airport details.
AirportDetails []ApolloAirportResponseDetailsV1 `json:"airportDetails"`
} `json:"response"`
}
ApolloUtilityAirportDetailResponseV1 Response containing a collection of airport details.
type ApolloWarningArrayV1 ¶
type ApolloWarningArrayV1 = []struct {
// Code warning code
Code string `json:"code"`
// Message warning message
Message string `json:"message"`
}
ApolloWarningArrayV1 Unbounded array containing one or more warning objects
type ApolloWeightV1 ¶
type ApolloWeightV1 = float64
ApolloWeightV1 defines model for ApolloWeightV1.
type BookChargeV1 ¶
type BookChargeV1 struct {
ChargeAmount *float32 `json:"chargeAmount,omitempty"`
ChargeType *string `json:"chargeType,omitempty"`
Currency *string `json:"currency,omitempty"`
Description *string `json:"description,omitempty"`
OriginalChargeAmount *string `json:"originalChargeAmount,omitempty"`
}
BookChargeV1 defines model for BookChargeV1.
type BookingResponse ¶
type BookingResponse struct {
BookingReference *string `json:"bookingReference,omitempty"`
CargoDetails *AirOceanBookCargoDetails `json:"cargoDetails,omitempty"`
ConfirmationId *string `json:"confirmationId,omitempty"`
CreateDate *time.Time `json:"createDate,omitempty"`
QuoteId *string `json:"quoteId,omitempty"`
ShipmentNumber *string `json:"shipmentNumber,omitempty"`
Status *string `json:"status,omitempty"`
}
BookingResponse defines model for BookingResponse.
type CancelAirShipmentJSONRequestBody ¶
type CancelAirShipmentJSONRequestBody = ApolloAirShipmentCancelRequestV1
CancelAirShipmentJSONRequestBody defines body for CancelAirShipment for application/json ContentType.
type CancelAirShipmentParams ¶
type CancelAirShipmentParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
CancelAirShipmentParams defines parameters for CancelAirShipment.
type CancelAirShipmentResponse ¶
type CancelAirShipmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloAirShipmentCancelResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseCancelAirShipmentResponse ¶
func ParseCancelAirShipmentResponse(rsp *http.Response) (*CancelAirShipmentResponse, error)
ParseCancelAirShipmentResponse parses an HTTP response from a CancelAirShipmentWithResponse call
func (CancelAirShipmentResponse) Status ¶
func (r CancelAirShipmentResponse) Status() string
Status returns HTTPResponse.Status
func (CancelAirShipmentResponse) StatusCode ¶
func (r CancelAirShipmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CargoDetails ¶
type CargoDetails struct {
// CargoItems Collection of Less-than-Container Load (LCL) cargo items.
CargoItems *[]LclCargoItemV1 `json:"cargoItems,omitempty"`
// CommodityName Name of the commodity being shipped.
CommodityName *string `json:"commodityName,omitempty"`
// CustomsValue Customs value of the item.
CustomsValue *float32 `json:"customsValue,omitempty"`
// CustomsValueCurrency Currency code associated with the customs value.
CustomsValueCurrency *string `json:"customsValueCurrency,omitempty"`
// FclCargoItems Collection of Full Container Load (FCL) cargo items.
FclCargoItems *[]FclCargoItem `json:"fclCargoItems,omitempty"`
// InsuredValue Insured value of the item.
InsuredValue *float32 `json:"insuredValue,omitempty"`
// InsuredValueCurrency Currency code associated with the insured value.
InsuredValueCurrency *string `json:"insuredValueCurrency,omitempty"`
}
CargoDetails defines model for CargoDetails.
type CargoItem ¶
type CargoItem struct {
Dimensions Dimensions `json:"dimensions"`
// FclCargoItems List of FCL cargo items (if applicable).
FclCargoItems *[]FclCargoItem `json:"fclCargoItems,omitempty"`
// PackageType Type of package (e.g., Box, Pallet), It is required for LCL.
PackageType *string `json:"packageType,omitempty"`
// PackageTypeCode Code for the package type, It is required for LCL.
PackageTypeCode *string `json:"packageTypeCode,omitempty"`
// Quantity Number of items in the cargo.
Quantity int `json:"quantity"`
Weight WeightDetail `json:"weight"`
}
CargoItem defines model for CargoItem.
type ChargeDetail ¶
type ChargeDetail struct {
Charges *[]BookChargeV1 `json:"charges,omitempty"`
ShipmentPartyType *string `json:"shipmentPartyType,omitempty"`
}
ChargeDetail defines model for ChargeDetail.
type ChargeDetailV1 ¶
type ChargeDetailV1 struct {
// Charges Collection of charges associated with the shipment.
Charges []ChargeV2 `json:"charges"`
// ShipmentPartyType Type of party responsible for the shipment (e.g., SHPR, CONS, THRD).
ShipmentPartyType string `json:"shipmentPartyType"`
}
ChargeDetailV1 defines model for ChargeDetailV1.
type ChargeDetails ¶
type ChargeDetails struct {
Charges []QuoteCharges `json:"charges"`
ShipmentPartyType string `json:"shipmentPartyType"`
}
ChargeDetails defines model for ChargeDetails.
type ChargeV2 ¶
type ChargeV2 struct {
// ChargeAmount Amount to be charged for a transaction.
ChargeAmount *float32 `json:"chargeAmount,omitempty"`
// ChargeType Type of charge associated with the transaction.
ChargeType *string `json:"chargeType,omitempty"`
// Currency Currency in which the charge amount is denominated.
Currency *string `json:"currency,omitempty"`
// Description Description of the charge.
Description *string `json:"description,omitempty"`
}
ChargeV2 defines model for ChargeV2.
type Charges ¶
type Charges struct {
// Amount Amount of the charge.
Amount *float64 `json:"amount,omitempty"`
// Code Charge type code.
Code *string `json:"code,omitempty"`
// CurrencyCode ISO 4217 three-letter currency code
CurrencyCode *string `json:"currencyCode,omitempty"`
// Description Human-readable description of the charge
Description *string `json:"description,omitempty"`
// IncludedInd Indicates if charge is included in base rate (Y/N)
IncludedInd *string `json:"includedInd,omitempty"`
}
Charges Individual charge information.
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) AirOceanBookQuote ¶
func (c *Client) AirOceanBookQuote(ctx context.Context, params *AirOceanBookQuoteParams, body AirOceanBookQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AirOceanBookQuoteWithBody ¶
func (*Client) CancelAirShipment ¶
func (c *Client) CancelAirShipment(ctx context.Context, params *CancelAirShipmentParams, body CancelAirShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CancelAirShipmentWithBody ¶
func (*Client) CreateAirOceanQuote ¶
func (c *Client) CreateAirOceanQuote(ctx context.Context, params *CreateAirOceanQuoteParams, body CreateAirOceanQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAirOceanQuoteWithBody ¶
func (*Client) FreightRating ¶
func (c *Client) FreightRating(ctx context.Context, params *FreightRatingParams, body FreightRatingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FreightRatingWithBody ¶
func (*Client) FreightShip ¶
func (c *Client) FreightShip(ctx context.Context, params *FreightShipParams, body FreightShipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FreightShipWithBody ¶
func (*Client) GetAccessorials ¶
func (c *Client) GetAccessorials(ctx context.Context, params *GetAccessorialsParams, body GetAccessorialsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAccessorialsWithBody ¶
func (*Client) GetAirPaymentTypes ¶
func (c *Client) GetAirPaymentTypes(ctx context.Context, params *GetAirPaymentTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAirportDetails ¶
func (c *Client) GetAirportDetails(ctx context.Context, params *GetAirportDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCity ¶
func (c *Client) GetCity(ctx context.Context, params *GetCityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCountries ¶
func (c *Client) GetCountries(ctx context.Context, params *GetCountriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCurrencies ¶
func (c *Client) GetCurrencies(ctx context.Context, params *GetCurrenciesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetDocuments ¶
func (c *Client) GetDocuments(ctx context.Context, params *GetDocumentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetQuoteDetails ¶
func (c *Client) GetQuoteDetails(ctx context.Context, params *GetQuoteDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetServiceTypes ¶
func (c *Client) GetServiceTypes(ctx context.Context, params *GetServiceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetShipmentDetails ¶
func (c *Client) GetShipmentDetails(ctx context.Context, params *GetShipmentDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetShipmentMilestones ¶
func (c *Client) GetShipmentMilestones(ctx context.Context, params *GetShipmentMilestonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OrderCancel ¶
func (c *Client) OrderCancel(ctx context.Context, params *OrderCancelParams, body OrderCancelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OrderCancelWithBody ¶
func (*Client) OrderCreate ¶
func (c *Client) OrderCreate(ctx context.Context, params *OrderCreateParams, body OrderCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OrderCreateWithBody ¶
func (*Client) OrderSearch ¶
func (c *Client) OrderSearch(ctx context.Context, params *OrderSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OrderSetDate ¶
func (c *Client) OrderSetDate(ctx context.Context, params *OrderSetDateParams, body OrderSetDateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OrderSetDateWithBody ¶
func (*Client) PrintAirManifest ¶
func (c *Client) PrintAirManifest(ctx context.Context, params *PrintAirManifestParams, body PrintAirManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PrintAirManifestWithBody ¶
func (*Client) PrintLabel ¶
func (c *Client) PrintLabel(ctx context.Context, params *PrintLabelParams, body PrintLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PrintLabelWithBody ¶
func (*Client) SubmitAirShipment ¶
func (c *Client) SubmitAirShipment(ctx context.Context, params *SubmitAirShipmentParams, body SubmitAirShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SubmitAirShipmentWithBody ¶
func (*Client) UploadDocumentWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// GetDocuments request
GetDocuments(ctx context.Context, params *GetDocumentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadDocumentWithBody request with any body
UploadDocumentWithBody(ctx context.Context, params *UploadDocumentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PrintLabelWithBody request with any body
PrintLabelWithBody(ctx context.Context, params *PrintLabelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PrintLabel(ctx context.Context, params *PrintLabelParams, body PrintLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PrintAirManifestWithBody request with any body
PrintAirManifestWithBody(ctx context.Context, params *PrintAirManifestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PrintAirManifest(ctx context.Context, params *PrintAirManifestParams, body PrintAirManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAccessorialsWithBody request with any body
GetAccessorialsWithBody(ctx context.Context, params *GetAccessorialsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAccessorials(ctx context.Context, params *GetAccessorialsParams, body GetAccessorialsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportDetails request
GetAirportDetails(ctx context.Context, params *GetAirportDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCity request
GetCity(ctx context.Context, params *GetCityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCountries request
GetCountries(ctx context.Context, params *GetCountriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCurrencies request
GetCurrencies(ctx context.Context, params *GetCurrenciesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirPaymentTypes request
GetAirPaymentTypes(ctx context.Context, params *GetAirPaymentTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetServiceTypes request
GetServiceTypes(ctx context.Context, params *GetServiceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// OrderCancelWithBody request with any body
OrderCancelWithBody(ctx context.Context, params *OrderCancelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
OrderCancel(ctx context.Context, params *OrderCancelParams, body OrderCancelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// OrderSearch request
OrderSearch(ctx context.Context, params *OrderSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// OrderSetDateWithBody request with any body
OrderSetDateWithBody(ctx context.Context, params *OrderSetDateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
OrderSetDate(ctx context.Context, params *OrderSetDateParams, body OrderSetDateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// OrderCreateWithBody request with any body
OrderCreateWithBody(ctx context.Context, params *OrderCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
OrderCreate(ctx context.Context, params *OrderCreateParams, body OrderCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetQuoteDetails request
GetQuoteDetails(ctx context.Context, params *GetQuoteDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AirOceanBookQuoteWithBody request with any body
AirOceanBookQuoteWithBody(ctx context.Context, params *AirOceanBookQuoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AirOceanBookQuote(ctx context.Context, params *AirOceanBookQuoteParams, body AirOceanBookQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAirOceanQuoteWithBody request with any body
CreateAirOceanQuoteWithBody(ctx context.Context, params *CreateAirOceanQuoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAirOceanQuote(ctx context.Context, params *CreateAirOceanQuoteParams, body CreateAirOceanQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelAirShipmentWithBody request with any body
CancelAirShipmentWithBody(ctx context.Context, params *CancelAirShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelAirShipment(ctx context.Context, params *CancelAirShipmentParams, body CancelAirShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetShipmentDetails request
GetShipmentDetails(ctx context.Context, params *GetShipmentDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubmitAirShipmentWithBody request with any body
SubmitAirShipmentWithBody(ctx context.Context, params *SubmitAirShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SubmitAirShipment(ctx context.Context, params *SubmitAirShipmentParams, body SubmitAirShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// FreightShipWithBody request with any body
FreightShipWithBody(ctx context.Context, params *FreightShipParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FreightShip(ctx context.Context, params *FreightShipParams, body FreightShipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetShipmentMilestones request
GetShipmentMilestones(ctx context.Context, params *GetShipmentMilestonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// FreightRatingWithBody request with any body
FreightRatingWithBody(ctx context.Context, params *FreightRatingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FreightRating(ctx context.Context, params *FreightRatingParams, body FreightRatingJSONRequestBody, 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) AirOceanBookQuoteWithBodyWithResponse ¶
func (c *ClientWithResponses) AirOceanBookQuoteWithBodyWithResponse(ctx context.Context, params *AirOceanBookQuoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AirOceanBookQuoteResponse, error)
AirOceanBookQuoteWithBodyWithResponse request with arbitrary body returning *AirOceanBookQuoteResponse
func (*ClientWithResponses) AirOceanBookQuoteWithResponse ¶
func (c *ClientWithResponses) AirOceanBookQuoteWithResponse(ctx context.Context, params *AirOceanBookQuoteParams, body AirOceanBookQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*AirOceanBookQuoteResponse, error)
func (*ClientWithResponses) CancelAirShipmentWithBodyWithResponse ¶
func (c *ClientWithResponses) CancelAirShipmentWithBodyWithResponse(ctx context.Context, params *CancelAirShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelAirShipmentResponse, error)
CancelAirShipmentWithBodyWithResponse request with arbitrary body returning *CancelAirShipmentResponse
func (*ClientWithResponses) CancelAirShipmentWithResponse ¶
func (c *ClientWithResponses) CancelAirShipmentWithResponse(ctx context.Context, params *CancelAirShipmentParams, body CancelAirShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelAirShipmentResponse, error)
func (*ClientWithResponses) CreateAirOceanQuoteWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAirOceanQuoteWithBodyWithResponse(ctx context.Context, params *CreateAirOceanQuoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAirOceanQuoteResponse, error)
CreateAirOceanQuoteWithBodyWithResponse request with arbitrary body returning *CreateAirOceanQuoteResponse
func (*ClientWithResponses) CreateAirOceanQuoteWithResponse ¶
func (c *ClientWithResponses) CreateAirOceanQuoteWithResponse(ctx context.Context, params *CreateAirOceanQuoteParams, body CreateAirOceanQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAirOceanQuoteResponse, error)
func (*ClientWithResponses) FreightRatingWithBodyWithResponse ¶
func (c *ClientWithResponses) FreightRatingWithBodyWithResponse(ctx context.Context, params *FreightRatingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FreightRatingResponse, error)
FreightRatingWithBodyWithResponse request with arbitrary body returning *FreightRatingResponse
func (*ClientWithResponses) FreightRatingWithResponse ¶
func (c *ClientWithResponses) FreightRatingWithResponse(ctx context.Context, params *FreightRatingParams, body FreightRatingJSONRequestBody, reqEditors ...RequestEditorFn) (*FreightRatingResponse, error)
func (*ClientWithResponses) FreightShipWithBodyWithResponse ¶
func (c *ClientWithResponses) FreightShipWithBodyWithResponse(ctx context.Context, params *FreightShipParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FreightShipResponse, error)
FreightShipWithBodyWithResponse request with arbitrary body returning *FreightShipResponse
func (*ClientWithResponses) FreightShipWithResponse ¶
func (c *ClientWithResponses) FreightShipWithResponse(ctx context.Context, params *FreightShipParams, body FreightShipJSONRequestBody, reqEditors ...RequestEditorFn) (*FreightShipResponse, error)
func (*ClientWithResponses) GetAccessorialsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetAccessorialsWithBodyWithResponse(ctx context.Context, params *GetAccessorialsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAccessorialsResponse, error)
GetAccessorialsWithBodyWithResponse request with arbitrary body returning *GetAccessorialsResponse
func (*ClientWithResponses) GetAccessorialsWithResponse ¶
func (c *ClientWithResponses) GetAccessorialsWithResponse(ctx context.Context, params *GetAccessorialsParams, body GetAccessorialsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAccessorialsResponse, error)
func (*ClientWithResponses) GetAirPaymentTypesWithResponse ¶
func (c *ClientWithResponses) GetAirPaymentTypesWithResponse(ctx context.Context, params *GetAirPaymentTypesParams, reqEditors ...RequestEditorFn) (*GetAirPaymentTypesResponse, error)
GetAirPaymentTypesWithResponse request returning *GetAirPaymentTypesResponse
func (*ClientWithResponses) GetAirportDetailsWithResponse ¶
func (c *ClientWithResponses) GetAirportDetailsWithResponse(ctx context.Context, params *GetAirportDetailsParams, reqEditors ...RequestEditorFn) (*GetAirportDetailsResponse, error)
GetAirportDetailsWithResponse request returning *GetAirportDetailsResponse
func (*ClientWithResponses) GetCityWithResponse ¶
func (c *ClientWithResponses) GetCityWithResponse(ctx context.Context, params *GetCityParams, reqEditors ...RequestEditorFn) (*GetCityResponse, error)
GetCityWithResponse request returning *GetCityResponse
func (*ClientWithResponses) GetCountriesWithResponse ¶
func (c *ClientWithResponses) GetCountriesWithResponse(ctx context.Context, params *GetCountriesParams, reqEditors ...RequestEditorFn) (*GetCountriesResponse, error)
GetCountriesWithResponse request returning *GetCountriesResponse
func (*ClientWithResponses) GetCurrenciesWithResponse ¶
func (c *ClientWithResponses) GetCurrenciesWithResponse(ctx context.Context, params *GetCurrenciesParams, reqEditors ...RequestEditorFn) (*GetCurrenciesResponse, error)
GetCurrenciesWithResponse request returning *GetCurrenciesResponse
func (*ClientWithResponses) GetDocumentsWithResponse ¶
func (c *ClientWithResponses) GetDocumentsWithResponse(ctx context.Context, params *GetDocumentsParams, reqEditors ...RequestEditorFn) (*GetDocumentsResponse, error)
GetDocumentsWithResponse request returning *GetDocumentsResponse
func (*ClientWithResponses) GetQuoteDetailsWithResponse ¶
func (c *ClientWithResponses) GetQuoteDetailsWithResponse(ctx context.Context, params *GetQuoteDetailsParams, reqEditors ...RequestEditorFn) (*GetQuoteDetailsResponse, error)
GetQuoteDetailsWithResponse request returning *GetQuoteDetailsResponse
func (*ClientWithResponses) GetServiceTypesWithResponse ¶
func (c *ClientWithResponses) GetServiceTypesWithResponse(ctx context.Context, params *GetServiceTypesParams, reqEditors ...RequestEditorFn) (*GetServiceTypesResponse, error)
GetServiceTypesWithResponse request returning *GetServiceTypesResponse
func (*ClientWithResponses) GetShipmentDetailsWithResponse ¶
func (c *ClientWithResponses) GetShipmentDetailsWithResponse(ctx context.Context, params *GetShipmentDetailsParams, reqEditors ...RequestEditorFn) (*GetShipmentDetailsResponse, error)
GetShipmentDetailsWithResponse request returning *GetShipmentDetailsResponse
func (*ClientWithResponses) GetShipmentMilestonesWithResponse ¶
func (c *ClientWithResponses) GetShipmentMilestonesWithResponse(ctx context.Context, params *GetShipmentMilestonesParams, reqEditors ...RequestEditorFn) (*GetShipmentMilestonesResponse, error)
GetShipmentMilestonesWithResponse request returning *GetShipmentMilestonesResponse
func (*ClientWithResponses) OrderCancelWithBodyWithResponse ¶
func (c *ClientWithResponses) OrderCancelWithBodyWithResponse(ctx context.Context, params *OrderCancelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrderCancelResponse, error)
OrderCancelWithBodyWithResponse request with arbitrary body returning *OrderCancelResponse
func (*ClientWithResponses) OrderCancelWithResponse ¶
func (c *ClientWithResponses) OrderCancelWithResponse(ctx context.Context, params *OrderCancelParams, body OrderCancelJSONRequestBody, reqEditors ...RequestEditorFn) (*OrderCancelResponse, error)
func (*ClientWithResponses) OrderCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) OrderCreateWithBodyWithResponse(ctx context.Context, params *OrderCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrderCreateResponse, error)
OrderCreateWithBodyWithResponse request with arbitrary body returning *OrderCreateResponse
func (*ClientWithResponses) OrderCreateWithResponse ¶
func (c *ClientWithResponses) OrderCreateWithResponse(ctx context.Context, params *OrderCreateParams, body OrderCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*OrderCreateResponse, error)
func (*ClientWithResponses) OrderSearchWithResponse ¶
func (c *ClientWithResponses) OrderSearchWithResponse(ctx context.Context, params *OrderSearchParams, reqEditors ...RequestEditorFn) (*OrderSearchResponse, error)
OrderSearchWithResponse request returning *OrderSearchResponse
func (*ClientWithResponses) OrderSetDateWithBodyWithResponse ¶
func (c *ClientWithResponses) OrderSetDateWithBodyWithResponse(ctx context.Context, params *OrderSetDateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrderSetDateResponse, error)
OrderSetDateWithBodyWithResponse request with arbitrary body returning *OrderSetDateResponse
func (*ClientWithResponses) OrderSetDateWithResponse ¶
func (c *ClientWithResponses) OrderSetDateWithResponse(ctx context.Context, params *OrderSetDateParams, body OrderSetDateJSONRequestBody, reqEditors ...RequestEditorFn) (*OrderSetDateResponse, error)
func (*ClientWithResponses) PrintAirManifestWithBodyWithResponse ¶
func (c *ClientWithResponses) PrintAirManifestWithBodyWithResponse(ctx context.Context, params *PrintAirManifestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrintAirManifestResponse, error)
PrintAirManifestWithBodyWithResponse request with arbitrary body returning *PrintAirManifestResponse
func (*ClientWithResponses) PrintAirManifestWithResponse ¶
func (c *ClientWithResponses) PrintAirManifestWithResponse(ctx context.Context, params *PrintAirManifestParams, body PrintAirManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*PrintAirManifestResponse, error)
func (*ClientWithResponses) PrintLabelWithBodyWithResponse ¶
func (c *ClientWithResponses) PrintLabelWithBodyWithResponse(ctx context.Context, params *PrintLabelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrintLabelResponse, error)
PrintLabelWithBodyWithResponse request with arbitrary body returning *PrintLabelResponse
func (*ClientWithResponses) PrintLabelWithResponse ¶
func (c *ClientWithResponses) PrintLabelWithResponse(ctx context.Context, params *PrintLabelParams, body PrintLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*PrintLabelResponse, error)
func (*ClientWithResponses) SubmitAirShipmentWithBodyWithResponse ¶
func (c *ClientWithResponses) SubmitAirShipmentWithBodyWithResponse(ctx context.Context, params *SubmitAirShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitAirShipmentResponse, error)
SubmitAirShipmentWithBodyWithResponse request with arbitrary body returning *SubmitAirShipmentResponse
func (*ClientWithResponses) SubmitAirShipmentWithResponse ¶
func (c *ClientWithResponses) SubmitAirShipmentWithResponse(ctx context.Context, params *SubmitAirShipmentParams, body SubmitAirShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitAirShipmentResponse, error)
func (*ClientWithResponses) UploadDocumentWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadDocumentWithBodyWithResponse(ctx context.Context, params *UploadDocumentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentResponse, error)
UploadDocumentWithBodyWithResponse request with arbitrary body returning *UploadDocumentResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetDocumentsWithResponse request
GetDocumentsWithResponse(ctx context.Context, params *GetDocumentsParams, reqEditors ...RequestEditorFn) (*GetDocumentsResponse, error)
// UploadDocumentWithBodyWithResponse request with any body
UploadDocumentWithBodyWithResponse(ctx context.Context, params *UploadDocumentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDocumentResponse, error)
// PrintLabelWithBodyWithResponse request with any body
PrintLabelWithBodyWithResponse(ctx context.Context, params *PrintLabelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrintLabelResponse, error)
PrintLabelWithResponse(ctx context.Context, params *PrintLabelParams, body PrintLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*PrintLabelResponse, error)
// PrintAirManifestWithBodyWithResponse request with any body
PrintAirManifestWithBodyWithResponse(ctx context.Context, params *PrintAirManifestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrintAirManifestResponse, error)
PrintAirManifestWithResponse(ctx context.Context, params *PrintAirManifestParams, body PrintAirManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*PrintAirManifestResponse, error)
// GetAccessorialsWithBodyWithResponse request with any body
GetAccessorialsWithBodyWithResponse(ctx context.Context, params *GetAccessorialsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAccessorialsResponse, error)
GetAccessorialsWithResponse(ctx context.Context, params *GetAccessorialsParams, body GetAccessorialsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAccessorialsResponse, error)
// GetAirportDetailsWithResponse request
GetAirportDetailsWithResponse(ctx context.Context, params *GetAirportDetailsParams, reqEditors ...RequestEditorFn) (*GetAirportDetailsResponse, error)
// GetCityWithResponse request
GetCityWithResponse(ctx context.Context, params *GetCityParams, reqEditors ...RequestEditorFn) (*GetCityResponse, error)
// GetCountriesWithResponse request
GetCountriesWithResponse(ctx context.Context, params *GetCountriesParams, reqEditors ...RequestEditorFn) (*GetCountriesResponse, error)
// GetCurrenciesWithResponse request
GetCurrenciesWithResponse(ctx context.Context, params *GetCurrenciesParams, reqEditors ...RequestEditorFn) (*GetCurrenciesResponse, error)
// GetAirPaymentTypesWithResponse request
GetAirPaymentTypesWithResponse(ctx context.Context, params *GetAirPaymentTypesParams, reqEditors ...RequestEditorFn) (*GetAirPaymentTypesResponse, error)
// GetServiceTypesWithResponse request
GetServiceTypesWithResponse(ctx context.Context, params *GetServiceTypesParams, reqEditors ...RequestEditorFn) (*GetServiceTypesResponse, error)
// OrderCancelWithBodyWithResponse request with any body
OrderCancelWithBodyWithResponse(ctx context.Context, params *OrderCancelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrderCancelResponse, error)
OrderCancelWithResponse(ctx context.Context, params *OrderCancelParams, body OrderCancelJSONRequestBody, reqEditors ...RequestEditorFn) (*OrderCancelResponse, error)
// OrderSearchWithResponse request
OrderSearchWithResponse(ctx context.Context, params *OrderSearchParams, reqEditors ...RequestEditorFn) (*OrderSearchResponse, error)
// OrderSetDateWithBodyWithResponse request with any body
OrderSetDateWithBodyWithResponse(ctx context.Context, params *OrderSetDateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrderSetDateResponse, error)
OrderSetDateWithResponse(ctx context.Context, params *OrderSetDateParams, body OrderSetDateJSONRequestBody, reqEditors ...RequestEditorFn) (*OrderSetDateResponse, error)
// OrderCreateWithBodyWithResponse request with any body
OrderCreateWithBodyWithResponse(ctx context.Context, params *OrderCreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrderCreateResponse, error)
OrderCreateWithResponse(ctx context.Context, params *OrderCreateParams, body OrderCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*OrderCreateResponse, error)
// GetQuoteDetailsWithResponse request
GetQuoteDetailsWithResponse(ctx context.Context, params *GetQuoteDetailsParams, reqEditors ...RequestEditorFn) (*GetQuoteDetailsResponse, error)
// AirOceanBookQuoteWithBodyWithResponse request with any body
AirOceanBookQuoteWithBodyWithResponse(ctx context.Context, params *AirOceanBookQuoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AirOceanBookQuoteResponse, error)
AirOceanBookQuoteWithResponse(ctx context.Context, params *AirOceanBookQuoteParams, body AirOceanBookQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*AirOceanBookQuoteResponse, error)
// CreateAirOceanQuoteWithBodyWithResponse request with any body
CreateAirOceanQuoteWithBodyWithResponse(ctx context.Context, params *CreateAirOceanQuoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAirOceanQuoteResponse, error)
CreateAirOceanQuoteWithResponse(ctx context.Context, params *CreateAirOceanQuoteParams, body CreateAirOceanQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAirOceanQuoteResponse, error)
// CancelAirShipmentWithBodyWithResponse request with any body
CancelAirShipmentWithBodyWithResponse(ctx context.Context, params *CancelAirShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelAirShipmentResponse, error)
CancelAirShipmentWithResponse(ctx context.Context, params *CancelAirShipmentParams, body CancelAirShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelAirShipmentResponse, error)
// GetShipmentDetailsWithResponse request
GetShipmentDetailsWithResponse(ctx context.Context, params *GetShipmentDetailsParams, reqEditors ...RequestEditorFn) (*GetShipmentDetailsResponse, error)
// SubmitAirShipmentWithBodyWithResponse request with any body
SubmitAirShipmentWithBodyWithResponse(ctx context.Context, params *SubmitAirShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitAirShipmentResponse, error)
SubmitAirShipmentWithResponse(ctx context.Context, params *SubmitAirShipmentParams, body SubmitAirShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitAirShipmentResponse, error)
// FreightShipWithBodyWithResponse request with any body
FreightShipWithBodyWithResponse(ctx context.Context, params *FreightShipParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FreightShipResponse, error)
FreightShipWithResponse(ctx context.Context, params *FreightShipParams, body FreightShipJSONRequestBody, reqEditors ...RequestEditorFn) (*FreightShipResponse, error)
// GetShipmentMilestonesWithResponse request
GetShipmentMilestonesWithResponse(ctx context.Context, params *GetShipmentMilestonesParams, reqEditors ...RequestEditorFn) (*GetShipmentMilestonesResponse, error)
// FreightRatingWithBodyWithResponse request with any body
FreightRatingWithBodyWithResponse(ctx context.Context, params *FreightRatingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FreightRatingResponse, error)
FreightRatingWithResponse(ctx context.Context, params *FreightRatingParams, body FreightRatingJSONRequestBody, reqEditors ...RequestEditorFn) (*FreightRatingResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ContactAddress ¶
type ContactAddress struct {
// City The city name.
City *string `json:"city,omitempty"`
// Country The country code (ISO format).
Country *string `json:"country,omitempty"`
// PostalCode The postal or ZIP code.
PostalCode *string `json:"postalCode,omitempty"`
// StateProvince The state or province code.
StateProvince *string `json:"stateProvince,omitempty"`
// Street The street address.
Street *string `json:"street,omitempty"`
// Unloc The UN Location Code (UNLOC) for the address.
Unloc *string `json:"unloc,omitempty"`
}
ContactAddress Address information for a contact.
type ContactDetail ¶
type ContactDetail struct {
// EmailAddress Email address of the contact person.
EmailAddress *openapi_types.Email `json:"emailAddress,omitempty"`
// FaxNumber Fax number of the contact person.
FaxNumber *string `json:"faxNumber,omitempty"`
// Name Name of the contact person.
Name *string `json:"name,omitempty"`
// PhoneNumber Phone number of the contact person.
PhoneNumber *string `json:"phoneNumber,omitempty"`
// ReferenceNumber Reference number for the contact.
ReferenceNumber *string `json:"referenceNumber,omitempty"`
}
ContactDetail defines model for ContactDetail.
type ContactDetailV1 ¶
type ContactDetailV1 struct {
// EmailAddress Email address associated with the contact.
EmailAddress *string `json:"emailAddress"`
// FaxNumber Fax number associated with the contact.
FaxNumber *string `json:"faxNumber"`
// Name Name of the contact person or organization.
Name *string `json:"name"`
// PhoneNumber Phone number associated with the contact.
PhoneNumber *string `json:"phoneNumber"`
// ReferenceNumber Reference number associated with the contact.
ReferenceNumber *string `json:"referenceNumber"`
}
ContactDetailV1 defines model for ContactDetailV1.
type ContactInfo ¶
type ContactInfo struct {
// Account The account number associated with the contact.
Account *string `json:"account,omitempty"`
// Address Address information for a contact.
Address *ContactAddress `json:"address,omitempty"`
// Attention The attention line or department name.
Attention *string `json:"attention,omitempty"`
// BusinessId The business identifier for the contact.
BusinessId *string `json:"businessId,omitempty"`
// Name The name of the contact person or company.
Name *string `json:"name,omitempty"`
// Phone The phone number for the contact.
Phone *string `json:"phone,omitempty"`
// Role The role code of the contact (e.g., S for Shipper, C for Consignee).
Role *string `json:"role,omitempty"`
// RoleName The descriptive name of the role.
RoleName *string `json:"roleName,omitempty"`
}
ContactInfo Contact information for parties involved in the shipment.
type ContainerInfo ¶
type ContainerInfo struct {
// ContainerDescription A description of the container.
ContainerDescription *string `json:"containerDescription,omitempty"`
// ContainerNumber The unique container or package number.
ContainerNumber *string `json:"containerNumber,omitempty"`
// ContainerType The type of container (e.g., Pallet, Box, Crate).
ContainerType *string `json:"containerType,omitempty"`
// ContainerVolume Volume measurement including the value and unit of measurement.
ContainerVolume *VolumeMeasurement `json:"containerVolume,omitempty"`
// ContainerWeight Weight measurement including the value and unit of measurement.
ContainerWeight *WeightMeasurement `json:"containerWeight,omitempty"`
// Quantity The quantity of items in the container.
Quantity *string `json:"quantity,omitempty"`
// Seal The seal number applied to the container for security.
Seal *string `json:"seal,omitempty"`
}
ContainerInfo Information about a container or package in the shipment.
type CountryCodeResponseV1 ¶
type CountryCodeResponseV1 struct {
// Countries List of countries
Countries *[]CountryCodeV1 `json:"countries,omitempty"`
Message *string `json:"message,omitempty"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
}
CountryCodeResponseV1 defines model for CountryCodeResponseV1.
type CountryCodeV1 ¶
type CountryCodeV1 struct {
// CountryCode ISO 3166-1 alpha-2 country code
CountryCode *string `json:"countryCode,omitempty"`
// CountryName Name of the country
CountryName *string `json:"countryName,omitempty"`
}
CountryCodeV1 defines model for CountryCodeV1.
type CreateAirOceanQuoteJSONRequestBody ¶
type CreateAirOceanQuoteJSONRequestBody = ApolloQuoteDetailRequestV1
CreateAirOceanQuoteJSONRequestBody defines body for CreateAirOceanQuote for application/json ContentType.
type CreateAirOceanQuoteParams ¶
type CreateAirOceanQuoteParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
CreateAirOceanQuoteParams defines parameters for CreateAirOceanQuote.
type CreateAirOceanQuoteResponse ¶
type CreateAirOceanQuoteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloQuoteDetailsResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseCreateAirOceanQuoteResponse ¶
func ParseCreateAirOceanQuoteResponse(rsp *http.Response) (*CreateAirOceanQuoteResponse, error)
ParseCreateAirOceanQuoteResponse parses an HTTP response from a CreateAirOceanQuoteWithResponse call
func (CreateAirOceanQuoteResponse) Status ¶
func (r CreateAirOceanQuoteResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAirOceanQuoteResponse) StatusCode ¶
func (r CreateAirOceanQuoteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CurrenciesResponseV1 ¶
type CurrenciesResponseV1 struct {
// Currencies List of currencies
Currencies *[]CurrencyDataV1 `json:"currencies,omitempty"`
Message *string `json:"message,omitempty"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
}
CurrenciesResponseV1 defines model for CurrenciesResponseV1.
type CurrencyDataV1 ¶
type CurrencyDataV1 struct {
// CurrencyCode Currency code
CurrencyCode *string `json:"currencyCode,omitempty"`
// CurrencyName Currency name
CurrencyName *string `json:"currencyName,omitempty"`
// CurrencySymbol Currency symbol
CurrencySymbol *string `json:"currencySymbol,omitempty"`
}
CurrencyDataV1 defines model for CurrencyDataV1.
type CustomerReferenceInfo ¶
type CustomerReferenceInfo struct {
// ReferenceNumber The reference number value.
ReferenceNumber *string `json:"referenceNumber,omitempty"`
// ReferenceType The type of reference (e.g., PO, Invoice, Customer Reference).
ReferenceType *string `json:"referenceType,omitempty"`
}
CustomerReferenceInfo Customer reference information for tracking and identification purposes.
type Dimensions ¶
type Dimensions struct {
Height *float32 `json:"height,omitempty"`
Length *float32 `json:"length,omitempty"`
UnitOfMeasurement *string `json:"unitOfMeasurement,omitempty"`
Width *float32 `json:"width,omitempty"`
}
Dimensions defines model for Dimensions.
type DiscountDetail ¶
type DiscountDetail struct {
Discount *float32 `json:"discount,omitempty"`
DiscountPercent *float32 `json:"discountPercent,omitempty"`
DiscountValidTill *time.Time `json:"discountValidTill,omitempty"`
}
DiscountDetail defines model for DiscountDetail.
type DiscountDetailV1 ¶
type DiscountDetailV1 struct {
Discount *float32 `json:"discount,omitempty"`
DiscountAdjustedFor *string `json:"discountAdjustedFor,omitempty"`
DiscountPercent *float32 `json:"discountPercent,omitempty"`
DiscountValidTill *string `json:"discountValidTill,omitempty"`
EligibleDiscount *float32 `json:"eligibleDiscount,omitempty"`
EligibleDiscountPercent *float32 `json:"eligibleDiscountPercent,omitempty"`
}
DiscountDetailV1 defines model for DiscountDetailV1.
type DocumentType ¶
type DocumentType string
DocumentType The type of document being uploaded.
const ( AirWaybill DocumentType = "AirWaybill" Booking DocumentType = "Booking" CERTORIGIN DocumentType = "CERT_ORIGIN" CommercialInvoice DocumentType = "CommercialInvoice" DomesticAirWaybill DocumentType = "DomesticAirWaybill" ExportDeclaration DocumentType = "ExportDeclaration" HAZMAT DocumentType = "HAZMAT" MSC DocumentType = "MSC" PackingList DocumentType = "PackingList" Quote DocumentType = "Quote" SLI DocumentType = "SLI" )
Defines values for DocumentType.
type FclCargoItem ¶
type FclCargoItem struct {
// EquipmentCode Equipment code for the container (e.g., 40HC).
EquipmentCode *string `json:"equipmentCode,omitempty"`
// NoOfContainers Number of containers for this equipment type.
NoOfContainers *int `json:"noOfContainers,omitempty"`
}
FclCargoItem defines model for FclCargoItem.
type FlightVoyageInfo ¶
type FlightVoyageInfo struct {
// CarrierCode The carrier code (airline or shipping line).
CarrierCode *string `json:"carrierCode,omitempty"`
// CarrierName The full name of the carrier.
CarrierName *string `json:"carrierName,omitempty"`
// ConfirmedArrivalDateTime The confirmed arrival date and time.
ConfirmedArrivalDateTime *time.Time `json:"confirmedArrivalDateTime,omitempty"`
// ConfirmedDepartureDateTime The confirmed departure date and time.
ConfirmedDepartureDateTime *time.Time `json:"confirmedDepartureDateTime,omitempty"`
// DisplayArrivalLocation The display name of the arrival location.
DisplayArrivalLocation *string `json:"displayArrivalLocation,omitempty"`
// DisplayDepartureLocation The display name of the departure location.
DisplayDepartureLocation *string `json:"displayDepartureLocation,omitempty"`
// EstimateDepartureDateTime The estimated departure date and time.
EstimateDepartureDateTime *time.Time `json:"estimateDepartureDateTime,omitempty"`
// EstimatedArrivalDateTime The estimated arrival date and time.
EstimatedArrivalDateTime *time.Time `json:"estimatedArrivalDateTime,omitempty"`
// FlightVoyageNumber The flight or voyage number.
FlightVoyageNumber *string `json:"flightVoyageNumber,omitempty"`
// Leg The leg number in the journey sequence.
Leg *string `json:"leg,omitempty"`
// MasterBill The master bill of lading or airway bill number.
MasterBill *string `json:"masterBill,omitempty"`
// Vessel The name or type of vessel/aircraft.
Vessel *string `json:"vessel,omitempty"`
}
FlightVoyageInfo Information about a flight or voyage leg in the shipment journey.
type FreightRatingJSONRequestBody ¶
type FreightRatingJSONRequestBody = ApolloAirFreightRateRequestV1
FreightRatingJSONRequestBody defines body for FreightRating for application/json ContentType.
type FreightRatingParams ¶
type FreightRatingParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
FreightRatingParams defines parameters for FreightRating.
type FreightRatingResponse ¶
type FreightRatingResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloAirFreightRateResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseFreightRatingResponse ¶
func ParseFreightRatingResponse(rsp *http.Response) (*FreightRatingResponse, error)
ParseFreightRatingResponse parses an HTTP response from a FreightRatingWithResponse call
func (FreightRatingResponse) Status ¶
func (r FreightRatingResponse) Status() string
Status returns HTTPResponse.Status
func (FreightRatingResponse) StatusCode ¶
func (r FreightRatingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FreightShipJSONRequestBody ¶
type FreightShipJSONRequestBody = ApolloAirShipRequestV1
FreightShipJSONRequestBody defines body for FreightShip for application/json ContentType.
type FreightShipParams ¶
type FreightShipParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
FreightShipParams defines parameters for FreightShip.
type FreightShipResponse ¶
type FreightShipResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloAirShipResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseFreightShipResponse ¶
func ParseFreightShipResponse(rsp *http.Response) (*FreightShipResponse, error)
ParseFreightShipResponse parses an HTTP response from a FreightShipWithResponse call
func (FreightShipResponse) Status ¶
func (r FreightShipResponse) Status() string
Status returns HTTPResponse.Status
func (FreightShipResponse) StatusCode ¶
func (r FreightShipResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccessorialsJSONRequestBody ¶
type GetAccessorialsJSONRequestBody = ApolloAirUtilityAccessorialsRequestV1
GetAccessorialsJSONRequestBody defines body for GetAccessorials for application/json ContentType.
type GetAccessorialsParams ¶
type GetAccessorialsParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetAccessorialsParams defines parameters for GetAccessorials.
type GetAccessorialsResponse ¶
type GetAccessorialsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloAirUtilityValidAccessorialsResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetAccessorialsResponse ¶
func ParseGetAccessorialsResponse(rsp *http.Response) (*GetAccessorialsResponse, error)
ParseGetAccessorialsResponse parses an HTTP response from a GetAccessorialsWithResponse call
func (GetAccessorialsResponse) Status ¶
func (r GetAccessorialsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccessorialsResponse) StatusCode ¶
func (r GetAccessorialsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirPaymentTypesParams ¶
type GetAirPaymentTypesParams struct {
ShipperAccountNumber string `form:"shipper_account_number" json:"shipper_account_number"`
Code *string `form:"code,omitempty" json:"code,omitempty"`
IncotermCode *string `form:"incoterm_code,omitempty" json:"incoterm_code,omitempty"`
MovementTypeCode *string `form:"movement_type_code,omitempty" json:"movement_type_code,omitempty"`
OriginCountryCode *string `form:"origin_country_code,omitempty" json:"origin_country_code,omitempty"`
DestinationCountryCode *string `form:"destination_country_code,omitempty" json:"destination_country_code,omitempty"`
// ServiceLine Service line code
ServiceLine *string `form:"service_line,omitempty" json:"service_line,omitempty"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetAirPaymentTypesParams defines parameters for GetAirPaymentTypes.
type GetAirPaymentTypesResponse ¶
type GetAirPaymentTypesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PaymentTypeResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetAirPaymentTypesResponse ¶
func ParseGetAirPaymentTypesResponse(rsp *http.Response) (*GetAirPaymentTypesResponse, error)
ParseGetAirPaymentTypesResponse parses an HTTP response from a GetAirPaymentTypesWithResponse call
func (GetAirPaymentTypesResponse) Status ¶
func (r GetAirPaymentTypesResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirPaymentTypesResponse) StatusCode ¶
func (r GetAirPaymentTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportDetailsParams ¶
type GetAirportDetailsParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetAirportDetailsParams defines parameters for GetAirportDetails.
type GetAirportDetailsResponse ¶
type GetAirportDetailsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloUtilityAirportDetailResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetAirportDetailsResponse ¶
func ParseGetAirportDetailsResponse(rsp *http.Response) (*GetAirportDetailsResponse, error)
ParseGetAirportDetailsResponse parses an HTTP response from a GetAirportDetailsWithResponse call
func (GetAirportDetailsResponse) Status ¶
func (r GetAirportDetailsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportDetailsResponse) StatusCode ¶
func (r GetAirportDetailsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCityParams ¶
type GetCityParams struct {
// ShipperAccountNumber Shipper's UPS Freight Account Number
ShipperAccountNumber *string `form:"shipper_account_number,omitempty" json:"shipper_account_number,omitempty"`
// Country Country Code. it's required for this operation
Country string `form:"country" json:"country"`
// City Partial City Name to search. It is required if the country is not 'US' or 'CA'.
City *string `form:"city,omitempty" json:"city,omitempty"`
// CriteriaOperator Operator to apply on the city name search. Possible values are 'STARTS_WITH' and 'CONTAINS'. Default is 'STARTS_WITH'.
CriteriaOperator *string `form:"criteria_operator,omitempty" json:"criteria_operator,omitempty"`
// Postal Postal Code to search. Its required if the country is 'US' or 'CA'.
Postal *string `form:"postal,omitempty" json:"postal,omitempty"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetCityParams defines parameters for GetCity.
type GetCityResponse ¶
type GetCityResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloGetCityResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetCityResponse ¶
func ParseGetCityResponse(rsp *http.Response) (*GetCityResponse, error)
ParseGetCityResponse parses an HTTP response from a GetCityWithResponse call
func (GetCityResponse) Status ¶
func (r GetCityResponse) Status() string
Status returns HTTPResponse.Status
func (GetCityResponse) StatusCode ¶
func (r GetCityResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCountriesParams ¶
type GetCountriesParams struct {
ShipperAccountNumber *string `form:"shipper_account_number,omitempty" json:"shipper_account_number,omitempty"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetCountriesParams defines parameters for GetCountries.
type GetCountriesResponse ¶
type GetCountriesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CountryCodeResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetCountriesResponse ¶
func ParseGetCountriesResponse(rsp *http.Response) (*GetCountriesResponse, error)
ParseGetCountriesResponse parses an HTTP response from a GetCountriesWithResponse call
func (GetCountriesResponse) Status ¶
func (r GetCountriesResponse) Status() string
Status returns HTTPResponse.Status
func (GetCountriesResponse) StatusCode ¶
func (r GetCountriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCurrenciesParams ¶
type GetCurrenciesParams struct {
ShipperAccountNumber *string `form:"shipper_account_number,omitempty" json:"shipper_account_number,omitempty"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetCurrenciesParams defines parameters for GetCurrencies.
type GetCurrenciesResponse ¶
type GetCurrenciesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CurrenciesResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetCurrenciesResponse ¶
func ParseGetCurrenciesResponse(rsp *http.Response) (*GetCurrenciesResponse, error)
ParseGetCurrenciesResponse parses an HTTP response from a GetCurrenciesWithResponse call
func (GetCurrenciesResponse) Status ¶
func (r GetCurrenciesResponse) Status() string
Status returns HTTPResponse.Status
func (GetCurrenciesResponse) StatusCode ¶
func (r GetCurrenciesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDocumentsParams ¶
type GetDocumentsParams struct {
// ShipmentNumber UPS Freight Shipment number.
ShipmentNumber string `form:"shipment_number" json:"shipment_number"`
// ShipmentAccountNumber Freight Account Number associated to the shipment
ShipmentAccountNumber ApolloShipperAccountNumberV1 `form:"shipment_account_number" json:"shipment_account_number"`
// ShipmentType Shipment Mode
ShipmentType GetDocumentsParamsShipmentType `form:"shipment_type" json:"shipment_type"`
// DocType Type of document being requested.
DocType string `form:"doc_type" json:"doc_type"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetDocumentsParams defines parameters for GetDocuments.
type GetDocumentsParamsShipmentType ¶
type GetDocumentsParamsShipmentType string
GetDocumentsParamsShipmentType defines parameters for GetDocuments.
const ( GetDocumentsParamsShipmentTypeAir GetDocumentsParamsShipmentType = "Air" GetDocumentsParamsShipmentTypeOcean GetDocumentsParamsShipmentType = "Ocean" )
Defines values for GetDocumentsParamsShipmentType.
type GetDocumentsResponse ¶
type GetDocumentsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetDocumentsResponse ¶
func ParseGetDocumentsResponse(rsp *http.Response) (*GetDocumentsResponse, error)
ParseGetDocumentsResponse parses an HTTP response from a GetDocumentsWithResponse call
func (GetDocumentsResponse) Status ¶
func (r GetDocumentsResponse) Status() string
Status returns HTTPResponse.Status
func (GetDocumentsResponse) StatusCode ¶
func (r GetDocumentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetQuoteDetailsParams ¶
type GetQuoteDetailsParams struct {
// RequestType The type of quote ("Air" or "Ocean").
RequestType GetQuoteDetailsParamsRequestType `form:"request_type" json:"request_type"`
// QuoteId The unique identifier for the quote.
QuoteId string `form:"quote_id" json:"quote_id"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetQuoteDetailsParams defines parameters for GetQuoteDetails.
type GetQuoteDetailsParamsRequestType ¶
type GetQuoteDetailsParamsRequestType string
GetQuoteDetailsParamsRequestType defines parameters for GetQuoteDetails.
const ( GetQuoteDetailsParamsRequestTypeAir GetQuoteDetailsParamsRequestType = "Air" GetQuoteDetailsParamsRequestTypeOcean GetQuoteDetailsParamsRequestType = "Ocean" )
Defines values for GetQuoteDetailsParamsRequestType.
type GetQuoteDetailsResponse ¶
type GetQuoteDetailsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloQuoteDataResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetQuoteDetailsResponse ¶
func ParseGetQuoteDetailsResponse(rsp *http.Response) (*GetQuoteDetailsResponse, error)
ParseGetQuoteDetailsResponse parses an HTTP response from a GetQuoteDetailsWithResponse call
func (GetQuoteDetailsResponse) Status ¶
func (r GetQuoteDetailsResponse) Status() string
Status returns HTTPResponse.Status
func (GetQuoteDetailsResponse) StatusCode ¶
func (r GetQuoteDetailsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetServiceTypesParams ¶
type GetServiceTypesParams struct {
// ShipperCity Shipper city.
ShipperCity *ShipperCity `form:"shipper_city,omitempty" json:"shipper_city,omitempty"`
}
GetServiceTypesParams defines parameters for GetServiceTypes.
type GetServiceTypesResponse ¶
type GetServiceTypesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ServiceTypeSearchResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetServiceTypesResponse ¶
func ParseGetServiceTypesResponse(rsp *http.Response) (*GetServiceTypesResponse, error)
ParseGetServiceTypesResponse parses an HTTP response from a GetServiceTypesWithResponse call
func (GetServiceTypesResponse) Status ¶
func (r GetServiceTypesResponse) Status() string
Status returns HTTPResponse.Status
func (GetServiceTypesResponse) StatusCode ¶
func (r GetServiceTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetShipmentDetailsParams ¶
type GetShipmentDetailsParams struct {
// RequestType The type of shipment ("Air" or "Ocean").
RequestType GetShipmentDetailsParamsRequestType `form:"request_type" json:"request_type"`
// ShipmentId The unique identifier for the shipment.
ShipmentId string `form:"shipment_id" json:"shipment_id"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetShipmentDetailsParams defines parameters for GetShipmentDetails.
type GetShipmentDetailsParamsRequestType ¶
type GetShipmentDetailsParamsRequestType string
GetShipmentDetailsParamsRequestType defines parameters for GetShipmentDetails.
const ( Air GetShipmentDetailsParamsRequestType = "Air" Ocean GetShipmentDetailsParamsRequestType = "Ocean" )
Defines values for GetShipmentDetailsParamsRequestType.
type GetShipmentDetailsResponse ¶
type GetShipmentDetailsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloShipmentDetailResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetShipmentDetailsResponse ¶
func ParseGetShipmentDetailsResponse(rsp *http.Response) (*GetShipmentDetailsResponse, error)
ParseGetShipmentDetailsResponse parses an HTTP response from a GetShipmentDetailsWithResponse call
func (GetShipmentDetailsResponse) Status ¶
func (r GetShipmentDetailsResponse) Status() string
Status returns HTTPResponse.Status
func (GetShipmentDetailsResponse) StatusCode ¶
func (r GetShipmentDetailsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetShipmentMilestonesParams ¶
type GetShipmentMilestonesParams struct {
BusinessId string `form:"business_id" json:"business_id"`
UpsFileNumber *string `form:"ups_file_number,omitempty" json:"ups_file_number,omitempty"`
UpsOffice *string `form:"ups_office,omitempty" json:"ups_office,omitempty"`
UpsShipmentNumber string `form:"ups_shipment_number" json:"ups_shipment_number"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
GetShipmentMilestonesParams defines parameters for GetShipmentMilestones.
type GetShipmentMilestonesResponse ¶
type GetShipmentMilestonesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloFullTrackingDetailsResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseGetShipmentMilestonesResponse ¶
func ParseGetShipmentMilestonesResponse(rsp *http.Response) (*GetShipmentMilestonesResponse, error)
ParseGetShipmentMilestonesResponse parses an HTTP response from a GetShipmentMilestonesWithResponse call
func (GetShipmentMilestonesResponse) Status ¶
func (r GetShipmentMilestonesResponse) Status() string
Status returns HTTPResponse.Status
func (GetShipmentMilestonesResponse) StatusCode ¶
func (r GetShipmentMilestonesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Item ¶
type Item struct {
// Count Number of identical items in the shipment.
Count int `json:"count"`
// Description The description of the item.
Description *string `json:"description,omitempty"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
// Height Height of the shipment item in centimeters.
Height float64 `json:"height"`
// Length Length of the shipment item in centimeters.
Length float64 `json:"length"`
// Weight Weight of the shipment item in kilograms.
Weight float64 `json:"weight"`
// Width Width of the shipment item in centimeters.
Width float64 `json:"width"`
}
Item defines model for Item.
type LabelRequest ¶
type LabelRequest struct {
// Details A list of label detail fields and values.
Details *map[string]string `json:"details,omitempty"`
// Format The output format for the label (e.g., PDF, ZPL, SVG).
Format *string `json:"format,omitempty"`
// Layout The layout type for the label (e.g., AF-GEMINI, AF-UFH).
Layout *string `json:"layout,omitempty"`
}
LabelRequest defines model for LabelRequest.
type LabelResponse ¶
type LabelResponse struct {
// Format The format of the label.
Format *string `json:"format,omitempty"`
// Image The label in PDF format (Base64 encoded).
Image *[]byte `json:"image,omitempty"`
// Layout The layout of the label.
Layout *string `json:"layout,omitempty"`
}
LabelResponse defines model for LabelResponse.
type LclCargoItemV1 ¶
type LclCargoItemV1 struct {
Dimensions Dimensions `json:"dimensions"`
// PackageType Type of packaging used for the LCL cargo item.
PackageType string `json:"packageType"`
// PackageTypeCode Code representing the type of packaging.
PackageTypeCode string `json:"packageTypeCode"`
// Quantity Quantity of the LCL cargo item.
Quantity int `json:"quantity"`
WeightDetail WeightDetail `json:"weightDetail"`
}
LclCargoItemV1 defines model for LclCargoItemV1.
type Location ¶
type Location struct {
PortCode *string `json:"portCode,omitempty"`
PortName *string `json:"portName,omitempty"`
ServiceCenterCode *string `json:"serviceCenterCode,omitempty"`
ServiceRatedOverCode *string `json:"serviceRatedOverCode,omitempty"`
ServiceType *string `json:"serviceType,omitempty"`
}
Location defines model for Location.
type Milestone ¶
type Milestone struct {
// ShipmentMilestones List of milestones achieved during the shipment journey.
ShipmentMilestones *[]ShipmentMilestone `json:"shipmentMilestones,omitempty"`
}
Milestone Container for shipment milestone information.
type OrderCancelJSONRequestBody ¶
type OrderCancelJSONRequestBody = ApolloCancelOrderRequestV1
OrderCancelJSONRequestBody defines body for OrderCancel for application/json ContentType.
type OrderCancelParams ¶
type OrderCancelParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
OrderCancelParams defines parameters for OrderCancel.
type OrderCancelResponse ¶
type OrderCancelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloCancelOrderResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseOrderCancelResponse ¶
func ParseOrderCancelResponse(rsp *http.Response) (*OrderCancelResponse, error)
ParseOrderCancelResponse parses an HTTP response from a OrderCancelWithResponse call
func (OrderCancelResponse) Status ¶
func (r OrderCancelResponse) Status() string
Status returns HTTPResponse.Status
func (OrderCancelResponse) StatusCode ¶
func (r OrderCancelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OrderCreateJSONRequestBody ¶
type OrderCreateJSONRequestBody = ApolloOrderRequestV1
OrderCreateJSONRequestBody defines body for OrderCreate for application/json ContentType.
type OrderCreateParams ¶
type OrderCreateParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
OrderCreateParams defines parameters for OrderCreate.
type OrderCreateResponse ¶
type OrderCreateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloOrderResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseOrderCreateResponse ¶
func ParseOrderCreateResponse(rsp *http.Response) (*OrderCreateResponse, error)
ParseOrderCreateResponse parses an HTTP response from a OrderCreateWithResponse call
func (OrderCreateResponse) Status ¶
func (r OrderCreateResponse) Status() string
Status returns HTTPResponse.Status
func (OrderCreateResponse) StatusCode ¶
func (r OrderCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OrderSearchParams ¶
type OrderSearchParams struct {
// Criteria The criteria used to search for Orders
Criteria ApolloOrderSearchRequestV1 `json:"criteria"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
OrderSearchParams defines parameters for OrderSearch.
type OrderSearchResponse ¶
type OrderSearchResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloOrderSearchResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseOrderSearchResponse ¶
func ParseOrderSearchResponse(rsp *http.Response) (*OrderSearchResponse, error)
ParseOrderSearchResponse parses an HTTP response from a OrderSearchWithResponse call
func (OrderSearchResponse) Status ¶
func (r OrderSearchResponse) Status() string
Status returns HTTPResponse.Status
func (OrderSearchResponse) StatusCode ¶
func (r OrderSearchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OrderSetDateJSONRequestBody ¶
type OrderSetDateJSONRequestBody = ApolloPatchReplaceReqV1
OrderSetDateJSONRequestBody defines body for OrderSetDate for application/json ContentType.
type OrderSetDateParams ¶
type OrderSetDateParams struct {
// ShipperAccountNumber Unique shipper number. Required for all updates.
ShipperAccountNumber string `form:"shipper_account_number" json:"shipper_account_number"`
// OrderNumber Unique order number. Required for individual order updates. All orders for the shipper will be updated if this value is not provided.
OrderNumber *string `form:"order_number,omitempty" json:"order_number,omitempty"`
// OldDate The current date of the shipment(s). Defaults to today if not provided. Required for moving all open shipments to a new date.
OldDate *ApolloDateV1 `form:"old_date,omitempty" json:"old_date,omitempty"`
// Language The language/culture that is being used for the API
Language *string `form:"language,omitempty" json:"language,omitempty"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
OrderSetDateParams defines parameters for OrderSetDate.
type OrderSetDateResponse ¶
type OrderSetDateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloOrderSetDateResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseOrderSetDateResponse ¶
func ParseOrderSetDateResponse(rsp *http.Response) (*OrderSetDateResponse, error)
ParseOrderSetDateResponse parses an HTTP response from a OrderSetDateWithResponse call
func (OrderSetDateResponse) Status ¶
func (r OrderSetDateResponse) Status() string
Status returns HTTPResponse.Status
func (OrderSetDateResponse) StatusCode ¶
func (r OrderSetDateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PartyAddress ¶
type PartyAddress struct {
// AddressLine1 First line of the address.
AddressLine1 *string `json:"addressLine1,omitempty"`
// AddressLine2 Second line of the address.
AddressLine2 *string `json:"addressLine2,omitempty"`
// AddressLine3 Third line of the address.
AddressLine3 *string `json:"addressLine3,omitempty"`
// City City of the address.
City *string `json:"city,omitempty"`
// CompanyName1 Primary company name.
CompanyName1 *string `json:"companyName1,omitempty"`
// CompanyName2 Secondary company name.
CompanyName2 *string `json:"companyName2,omitempty"`
// CountryCode Country code (e.g., US).
CountryCode *string `json:"countryCode,omitempty"`
// IsLoadingDockAvailable Indicates if a loading dock is available ("Y" or "N").
IsLoadingDockAvailable *string `json:"isLoadingDockAvailable,omitempty"`
// IsResidentialAddress Indicates if the address is residential ("Y" or "N").
IsResidentialAddress *string `json:"isResidentialAddress,omitempty"`
// PostalCode Postal code.
PostalCode *string `json:"postalCode,omitempty"`
// StateCode State code (e.g., CA, NY).
StateCode *string `json:"stateCode,omitempty"`
}
PartyAddress defines model for PartyAddress.
type PartyDetail ¶
type PartyDetail struct {
// AccountNumber Account number associated with the party.
AccountNumber *string `json:"accountNumber"`
Address *AddressDetail `json:"address,omitempty"`
ContactDetail *ContactDetailV1 `json:"contactDetail,omitempty"`
// IsPayor Indicates whether the party is designated as the payor.
IsPayor *bool `json:"isPayor,omitempty"`
// Type Type of the party involved in the transaction (e.g., SHPR, CONS, THRD).
Type *string `json:"type,omitempty"`
}
PartyDetail defines model for PartyDetail.
type PartyDetails ¶
type PartyDetails struct {
// Account UPS Freight Account Number associated with the party is required when the address is not provided.
Account *string `json:"account"`
// Address1 The primary address line.
Address1 string `json:"address1"`
// City City of the address.
City string `json:"city"`
// Company CompanyName - The name of the company.
Company string `json:"company"`
// ContactEmail Email - The email address of the contact person.
ContactEmail string `json:"contactEmail"`
// ContactName ContactName - The name of the contact person.
ContactName string `json:"contactName"`
// ContactPhone ContactPhone - The phone number of the contact person.
ContactPhone string `json:"contactPhone"`
// CountryCode Two-letter country code (e.g., US, CA, GB).
CountryCode string `json:"countryCode"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
// PartyCode PartyCode of the party.
PartyCode *string `json:"partyCode,omitempty"`
// PartySectionDetails Unbounded array of additional key-value pair objects
PartySectionDetails *ApolloCustomArrayV1 `json:"partySectionDetails,omitempty"`
// PostalCode Postal or ZIP code.
PostalCode *string `json:"postalCode,omitempty"`
// ServiceCenterCode ServiceCenterCode of the party.
ServiceCenterCode *string `json:"serviceCenterCode,omitempty"`
// State The state code is required for country codes US or CA.
State *string `json:"state,omitempty"`
}
PartyDetails defines model for PartyDetails.
type PartyDetailsV1 ¶
type PartyDetailsV1 struct {
// Account UPS Freight Account Number associated with the party is required when the address is not provided.
Account *string `json:"account"`
// Address1 The primary address line.
Address1 *string `json:"address1,omitempty"`
// City City of the address.
City *string `json:"city,omitempty"`
// Company CompanyName - The name of the company.
Company *string `json:"company,omitempty"`
// ContactEmail Email - The email address of the contact person.
ContactEmail *string `json:"contactEmail,omitempty"`
// ContactName ContactName - The name of the contact person.
ContactName *string `json:"contactName,omitempty"`
// ContactPhone ContactPhone - The phone number of the contact person.
ContactPhone *string `json:"contactPhone,omitempty"`
// CountryCode Two-letter country code (e.g., US, CA, GB).
CountryCode *string `json:"countryCode,omitempty"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
// PartyCode PartyCode of the party.
PartyCode *string `json:"partyCode,omitempty"`
// PartySectionDetails Unbounded array of additional key-value pair objects
PartySectionDetails *ApolloCustomArrayV1 `json:"partySectionDetails,omitempty"`
// PostalCode Postal or ZIP code.
PostalCode *string `json:"postalCode,omitempty"`
// ServiceCenterCode ServiceCenterCode of the party.
ServiceCenterCode *string `json:"serviceCenterCode,omitempty"`
// State The state code is required for country codes US or CA.
State *string `json:"state,omitempty"`
}
PartyDetailsV1 defines model for PartyDetailsV1.
type PaymentTerm ¶
type PaymentTerm struct {
// Code The code representing the payment term.
Code string `json:"code"`
// Type The type of payment term (e.g., Shipper, Consignee, ThridParty).
Type string `json:"type"`
}
PaymentTerm defines model for PaymentTerm.
type PaymentTermInfoV1 ¶
type PaymentTermInfoV1 struct {
// Code Payment type code
Code *string `json:"code,omitempty"`
// Description Description of the payment term
Description *string `json:"description,omitempty"`
// IncoTermCode Incoterm code
IncoTermCode *string `json:"incoTermCode,omitempty"`
// MovementTypeCode Movement type code
MovementTypeCode *string `json:"movementTypeCode,omitempty"`
// ServiceGroupName Name of the service group
ServiceGroupName *string `json:"serviceGroupName,omitempty"`
// ServiceLine Service line code
ServiceLine *string `json:"serviceLine,omitempty"`
// Type Type of the payment term
Type *string `json:"type,omitempty"`
}
PaymentTermInfoV1 defines model for PaymentTermInfoV1.
type PaymentTypeResponseV1 ¶
type PaymentTypeResponseV1 struct {
Consignee *[]PaymentTermInfoV1 `json:"consignee,omitempty"`
Message *string `json:"message,omitempty"`
Shipper *[]PaymentTermInfoV1 `json:"shipper,omitempty"`
ThirdParty *[]PaymentTermInfoV1 `json:"thirdParty,omitempty"`
// Warnings Unbounded array containing one or more warning objects
Warnings *ApolloWarningArrayV1 `json:"warnings,omitempty"`
}
PaymentTypeResponseV1 defines model for PaymentTypeResponseV1.
type PickupDetail ¶
type PickupDetail struct {
Date *string `json:"date"`
// EndTime End time for the pickup.
EndTime *string `json:"endTime"`
// StartTime Start time for the pickup.
StartTime *string `json:"startTime"`
}
PickupDetail defines model for PickupDetail.
type PortDetail ¶
type PortDetail struct {
PortCode *string `json:"portCode,omitempty"`
}
PortDetail Code of the port
type PricingDetail ¶
type PricingDetail struct {
ActualTotalPrice *float32 `json:"actualTotalPrice,omitempty"`
CurrencyCode *string `json:"currencyCode,omitempty"`
DiscountDetail *DiscountDetail `json:"discountDetail,omitempty"`
Message *string `json:"message,omitempty"`
NetTotalPrice *float32 `json:"netTotalPrice,omitempty"`
RateType *string `json:"rateType,omitempty"`
}
PricingDetail defines model for PricingDetail.
type PricingDetailV1 ¶
type PricingDetailV1 struct {
ActualTotalPrice *float32 `json:"actualTotalPrice,omitempty"`
CurrencyCode *string `json:"currencyCode,omitempty"`
DiscountDetail *DiscountDetailV1 `json:"discountDetail,omitempty"`
NetTotalPrice *float32 `json:"netTotalPrice,omitempty"`
RateDescription *string `json:"rateDescription,omitempty"`
RateType *string `json:"rateType,omitempty"`
}
PricingDetailV1 defines model for PricingDetailV1.
type PrimaryInformation ¶
type PrimaryInformation struct {
// ActualDeliveryDateTime The actual date and time when the shipment was delivered.
ActualDeliveryDateTime *time.Time `json:"actualDeliveryDateTime,omitempty"`
// ConsigneeReferenceNumber List of consignee reference numbers associated with the shipment.
ConsigneeReferenceNumber *[]CustomerReferenceInfo `json:"consigneeReferenceNumber,omitempty"`
// ContactInfo Contact information for parties involved in the shipment.
ContactInfo *[]ContactInfo `json:"contactInfo,omitempty"`
// ContainerInformation Information about containers or packages used in the shipment.
ContainerInformation *[]ContainerInfo `json:"containerInformation,omitempty"`
// CustomerPONumber List of customer purchase order numbers associated with the shipment.
CustomerPONumber *[]CustomerReferenceInfo `json:"customerPONumber,omitempty"`
// DestinationConsignee The name of the destination consignee (party receiving the goods).
DestinationConsignee *string `json:"destinationConsignee,omitempty"`
// FlightVoyageInformation List of flight or voyage information for the shipment journey.
FlightVoyageInformation *[]FlightVoyageInfo `json:"flightVoyageInformation,omitempty"`
// Id The unique identifier for the shipment.
Id *string `json:"id,omitempty"`
// LastKnownLocation The last known location of the shipment.
LastKnownLocation *string `json:"lastKnownLocation,omitempty"`
// LatestScheduledDeliveryDateTime The latest scheduled delivery date and time for the shipment.
LatestScheduledDeliveryDateTime *time.Time `json:"latestScheduledDeliveryDateTime,omitempty"`
// MilestoneStatus The current milestone status of the shipment (e.g., In Transit, Delivered).
MilestoneStatus *string `json:"milestoneStatus,omitempty"`
// Milestones Container for shipment milestone information.
Milestones *Milestone `json:"milestones,omitempty"`
// ModeOfTransportCode The code representing the mode of transport.
ModeOfTransportCode *string `json:"modeOfTransportCode,omitempty"`
// ModeOfTransportName The name of the mode of transport.
ModeOfTransportName *string `json:"modeOfTransportName,omitempty"`
// OriginalScheduledDeliveryDateTime The original scheduled delivery date and time for the shipment.
OriginalScheduledDeliveryDateTime *time.Time `json:"originalScheduledDeliveryDateTime,omitempty"`
// PodDateTime The date and time when the proof of delivery was obtained.
PodDateTime *time.Time `json:"podDateTime,omitempty"`
// PrimaryException The primary exception affecting the shipment, if any.
PrimaryException *string `json:"primaryException,omitempty"`
// Principal The principal party responsible for the shipment.
Principal *string `json:"principal,omitempty"`
// Product The product or service type used for the shipment.
Product *string `json:"product,omitempty"`
// ProofOfDelivery The name of the person who received the shipment as proof of delivery.
ProofOfDelivery *string `json:"proofOfDelivery,omitempty"`
// References List of various reference numbers associated with the shipment.
References *[]Reference `json:"references,omitempty"`
// ShipmentAdditionalInformation Additional shipment information including weight, volume, and cargo details.
ShipmentAdditionalInformation *AdditionalInformation `json:"shipmentAdditionalInformation,omitempty"`
// ShipmentBookedDateTime The date and time when the shipment was booked.
ShipmentBookedDateTime *time.Time `json:"shipmentBookedDateTime,omitempty"`
// ShipmentCreateDateTime The date and time when the shipment was created in the system.
ShipmentCreateDateTime *time.Time `json:"shipmentCreateDateTime,omitempty"`
// ShipmentDestination Address information for shipment origin or destination.
ShipmentDestination *ShipmentAddress `json:"shipmentDestination,omitempty"`
// ShipmentExceptionDetails Details about exceptions that occurred during the shipment.
ShipmentExceptionDetails *ShipmentExceptionDetails `json:"shipmentExceptionDetails,omitempty"`
// ShipmentLatestStatusDateTime The date and time of the latest status update for the shipment.
ShipmentLatestStatusDateTime *time.Time `json:"shipmentLatestStatusDateTime,omitempty"`
// ShipmentNumber The shipment number assigned to this shipment.
ShipmentNumber *string `json:"shipmentNumber,omitempty"`
// ShipmentOrigin Address information for shipment origin or destination.
ShipmentOrigin *ShipmentAddress `json:"shipmentOrigin,omitempty"`
// ShipmentServiceLevel The service level for the shipment (e.g., Express, Standard).
ShipmentServiceLevel *string `json:"shipmentServiceLevel,omitempty"`
// ShipmentType The type of shipment (e.g., Air, Ocean).
ShipmentType *string `json:"shipmentType,omitempty"`
// Shipper The name of the shipper (party sending the goods).
Shipper *string `json:"shipper,omitempty"`
// UpsDatasource The data source system from which the shipment information is retrieved.
UpsDatasource *string `json:"upsDatasource,omitempty"`
// UpsFileNumber The UPS file number associated with the shipment.
UpsFileNumber *string `json:"upsFileNumber,omitempty"`
// UpsOffice The UPS office code handling the shipment.
UpsOffice *string `json:"upsOffice,omitempty"`
}
PrimaryInformation Comprehensive primary information about the shipment including all tracking details.
type PrintAirManifestJSONRequestBody ¶
type PrintAirManifestJSONRequestBody = ApolloPrintManifestRequestV1
PrintAirManifestJSONRequestBody defines body for PrintAirManifest for application/json ContentType.
type PrintAirManifestParams ¶
type PrintAirManifestParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
PrintAirManifestParams defines parameters for PrintAirManifest.
type PrintAirManifestResponse ¶
type PrintAirManifestResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloAirShipmentDataResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParsePrintAirManifestResponse ¶
func ParsePrintAirManifestResponse(rsp *http.Response) (*PrintAirManifestResponse, error)
ParsePrintAirManifestResponse parses an HTTP response from a PrintAirManifestWithResponse call
func (PrintAirManifestResponse) Status ¶
func (r PrintAirManifestResponse) Status() string
Status returns HTTPResponse.Status
func (PrintAirManifestResponse) StatusCode ¶
func (r PrintAirManifestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PrintLabelJSONRequestBody ¶
type PrintLabelJSONRequestBody = ApolloOrderPrintLabelRequestV1
PrintLabelJSONRequestBody defines body for PrintLabel for application/json ContentType.
type PrintLabelParams ¶
type PrintLabelParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
PrintLabelParams defines parameters for PrintLabel.
type PrintLabelResponse ¶
type PrintLabelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Response An object representing the shipping label.
//
// | **labelFormat** | **Returned Containers** |
// | :--: | :-- |
// | DATA | labelFormat, labelData |
// | PDF, PNG | labelFormat, labelImage |
Response ApolloLabelV1 `json:"response"`
}
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParsePrintLabelResponse ¶
func ParsePrintLabelResponse(rsp *http.Response) (*PrintLabelResponse, error)
ParsePrintLabelResponse parses an HTTP response from a PrintLabelWithResponse call
func (PrintLabelResponse) Status ¶
func (r PrintLabelResponse) Status() string
Status returns HTTPResponse.Status
func (PrintLabelResponse) StatusCode ¶
func (r PrintLabelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QuoteCharges ¶
type QuoteCharges struct {
ChargeAmount *float32 `json:"chargeAmount,omitempty"`
ChargeType *string `json:"chargeType,omitempty"`
Currency *string `json:"currency,omitempty"`
}
QuoteCharges defines model for QuoteCharges.
type QuoteData ¶
type QuoteData struct {
// CurrencyCode ISO 4217 currency code.
CurrencyCode string `json:"currencyCode"`
// ExportCustomsBrokerageFee Indicates if export customs brokerage fee applies ("Y" or "N").
ExportCustomsBrokerageFee *string `json:"exportCustomsBrokerageFee,omitempty"`
// ImportCustomsBrokerageFee Indicates if import customs brokerage fee applies ("Y" or "N").
ImportCustomsBrokerageFee *string `json:"importCustomsBrokerageFee,omitempty"`
// IncoTermType Incoterm type for the shipment (e.g., EXW, DAP).
IncoTermType string `json:"incoTermType"`
// MovementTypeCode Code representing the movement type (e.g., DTD).
MovementTypeCode string `json:"movementTypeCode"`
PaymentTerm PaymentTerm `json:"paymentTerm"`
// ServiceLine The service line.
ServiceLine string `json:"serviceLine"`
// ServiceType The type of service (e.g., DF, AM).
ServiceType string `json:"serviceType"`
}
QuoteData defines model for QuoteData.
type QuoteDetailsResponse ¶
type QuoteDetailsResponse struct {
QuoteSummary QuoteSummary `json:"quoteSummary"`
}
QuoteDetailsResponse defines model for QuoteDetailsResponse.
type QuoteShipmentDetails ¶
type QuoteShipmentDetails struct {
AirCargoItems *[]AirCargoItem `json:"airCargoItems,omitempty"`
CommodityName *string `json:"commodityName,omitempty"`
CustomsValue *float32 `json:"customsValue,omitempty"`
CustomsValueCurrency *string `json:"customsValueCurrency,omitempty"`
FclCargoItems *[]CargoItem `json:"fclCargoItems,omitempty"`
InsuredValue *float32 `json:"insuredValue,omitempty"`
InsuredValueCurrency *string `json:"insuredValueCurrency,omitempty"`
LclCargoItems *[]LclCargoItem `json:"lclCargoItems,omitempty"`
Location *[]Location `json:"location,omitempty"`
}
QuoteShipmentDetails defines model for QuoteShipmentDetails.
type QuoteSummary ¶
type QuoteSummary struct {
ChargeDetails []ChargeDetails `json:"chargeDetails"`
ConfirmationId string `json:"confirmationId"`
CreateDate time.Time `json:"createDate"`
DestinationPort PortInfo `json:"destinationPort"`
EstimateChargableWeight float32 `json:"estimateChargableWeight"`
EstimateChargableWeightUnit string `json:"estimateChargableWeightUnit"`
NetTotal float32 `json:"netTotal"`
NonConformalReasons []string `json:"nonConformalReasons"`
OriginPort PortInfo `json:"originPort"`
PricingDetail PricingDetail `json:"pricingDetail"`
QuoteId string `json:"quoteId"`
ServiceGroup string `json:"serviceGroup"`
ServiceLine string `json:"serviceLine"`
ServiceType string `json:"serviceType"`
Status string `json:"status"`
TransitTime int `json:"transitTime"`
ValidTill time.Time `json:"validTill"`
}
QuoteSummary defines model for QuoteSummary.
type QuoteSummaryV1 ¶
type QuoteSummaryV1 struct {
ChargeDetails *[]ChargeDetail `json:"chargeDetails,omitempty"`
ConfirmationId *string `json:"confirmationId,omitempty"`
CreateDate *time.Time `json:"createDate,omitempty"`
DestinationPort *Location `json:"destinationPort,omitempty"`
EstimateChargableWeight *float32 `json:"estimateChargableWeight,omitempty"`
EstimateChargableWeightUnit *string `json:"estimateChargableWeightUnit,omitempty"`
IncoTermType *string `json:"incoTermType,omitempty"`
MovementTypeCode *string `json:"movementTypeCode,omitempty"`
NetTotal *float32 `json:"netTotal,omitempty"`
OriginPort *Location `json:"originPort,omitempty"`
PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
PortOfDischarge *string `json:"portOfDischarge,omitempty"`
PortOfLoad *string `json:"portOfLoad,omitempty"`
PricingDetail *PricingDetailV1 `json:"pricingDetail,omitempty"`
QuoteId *string `json:"quoteId,omitempty"`
ServiceGroup *string `json:"serviceGroup,omitempty"`
ServiceLine *string `json:"serviceLine,omitempty"`
ServiceType *string `json:"serviceType,omitempty"`
ShipmentDetails *QuoteShipmentDetails `json:"shipmentDetails,omitempty"`
ShipmentNumber *string `json:"shipmentNumber,omitempty"`
ShipmentPartyDetail *[]ShipmentPartyDetailV1 `json:"shipmentPartyDetail,omitempty"`
Status *string `json:"status,omitempty"`
TransitTime *int `json:"transitTime,omitempty"`
ValidTill *time.Time `json:"validTill,omitempty"`
Validity *int `json:"validity,omitempty"`
}
QuoteSummaryV1 defines model for QuoteSummaryV1.
type RateDetail ¶
type RateDetail struct {
// BillableWeight The billable weight.
BillableWeight *float64 `json:"billableWeight,omitempty"`
Charges *[]Charges `json:"charges,omitempty"`
// ContractRate Indicates if the contract rate applies.
ContractRate *bool `json:"contractRate,omitempty"`
// Currency The currency type.
Currency *string `json:"currency,omitempty"`
// DeliveryTime The estimated delivery time.
DeliveryTime *string `json:"deliveryTime,omitempty"`
// DimensionalWeight The dimensional weight.
DimensionalWeight *float64 `json:"dimensionalWeight,omitempty"`
// GuaranteedDelivery Indicates if delivery is guaranteed.
GuaranteedDelivery *bool `json:"guaranteedDelivery,omitempty"`
// HoldAtAirportTime The hold at airport time.
HoldAtAirportTime *string `json:"holdAtAirportTime,omitempty"`
// MinimumBillableWeightApplied Indicates if the minimum billable weight was applied.
MinimumBillableWeightApplied *bool `json:"minimumBillableWeightApplied,omitempty"`
// ServiceType The type of service.
ServiceType *string `json:"serviceType,omitempty"`
TotalCharge *ApolloChargeAmountV1 `json:"totalCharge,omitempty"`
// WeightUnit The Weight unit used.
WeightUnit *string `json:"weightUnit,omitempty"`
}
RateDetail defines model for RateDetail.
type Reference ¶
type Reference struct {
// Code The reference code identifier.
Code *string `json:"code,omitempty"`
// CreatedDate The date and time when the reference was created.
CreatedDate *time.Time `json:"createdDate,omitempty"`
// Number The reference number value.
Number *string `json:"number,omitempty"`
// Type The type of reference.
Type *string `json:"type,omitempty"`
}
Reference General reference information associated with the shipment.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Routing ¶
type Routing struct {
// Destination Code of the port
Destination *PortDetail `json:"destination,omitempty"`
// Origin Code of the port
Origin *PortDetail `json:"origin,omitempty"`
SpecialHandlings *[]SpecialHandling `json:"specialHandlings,omitempty"`
}
Routing defines model for Routing.
type ServiceTypeInfo ¶
type ServiceTypeInfo struct {
// Code Code for the service type.
Code string `json:"code"`
// Description Description of the service type.
Description string `json:"description"`
}
ServiceTypeInfo Service type information.
type ServiceTypeSearchResponseV1 ¶
type ServiceTypeSearchResponseV1 struct {
// Response Response containing a list of serviceTypes.
Response struct {
// ServiceTypes List of available service types.
ServiceTypes []ServiceTypeInfo `json:"serviceTypes"`
} `json:"response"`
}
ServiceTypeSearchResponseV1 Response containing service types.
type ShipmentAddress ¶
type ShipmentAddress struct {
// AddressLine1 The first line of the street address.
AddressLine1 *string `json:"addressLine1,omitempty"`
// AddressLine2 The second line of the street address (e.g., suite, building).
AddressLine2 *string `json:"addressLine2,omitempty"`
// City The city name.
City *string `json:"city,omitempty"`
// Country The country code (ISO format).
Country *string `json:"country,omitempty"`
// PostalCode The postal or ZIP code.
PostalCode *string `json:"postalCode,omitempty"`
// StateProvince The state or province code.
StateProvince *string `json:"stateProvince,omitempty"`
// Unloc The UN Location Code (UNLOC) for the address.
Unloc *string `json:"unloc,omitempty"`
}
ShipmentAddress Address information for shipment origin or destination.
type ShipmentDetail ¶
type ShipmentDetail struct {
// CloseTime Time when the shipment location will close (HH:MM:SS in 24-hour format).
CloseTime *string `json:"closeTime,omitempty"`
// ConsigneeReference Reference number provided by the consignee.
ConsigneeReference *string `json:"consigneeReference,omitempty"`
// CountryOfManufacture List of countries where the goods were manufactured.
CountryOfManufacture *[]string `json:"countryOfManufacture,omitempty"`
// CurrencyCode Currency code (e.g., USD, EUR).
CurrencyCode *string `json:"currencyCode,omitempty"`
// Details Unbounded array of additional key-value pair objects
Details *ApolloCustomArrayV1 `json:"details,omitempty"`
// DropoffTime Time when the shipment will be dropped off (HH:MM:SS in 24-hour format).
DropoffTime *string `json:"dropoffTime,omitempty"`
// FreightType FreightType - This is freight type of the shipment piece. Possible values PALLET, LOOSE.
FreightType ShipmentDetailFreightType `json:"freightType"`
// IsMetric Boolean value which indicates whether the shipment uses metric.
IsMetric *bool `json:"isMetric,omitempty"`
Items []Item `json:"items"`
// OrderDescription Description of the shipment.
OrderDescription *string `json:"orderDescription,omitempty"`
// PaymentType Payment method used for the shipment (e.g., PPD, COL, OTH/THD).
PaymentType ShipmentDetailPaymentType `json:"paymentType"`
// PickupDate Scheduled pickup date in YYYY-MM-DD format.
PickupDate openapi_types.Date `json:"pickupDate"`
// ReadyTime Time when the shipment will be ready for pickup (HH:MM:SS in 24-hour format).
ReadyTime *string `json:"readyTime,omitempty"`
// RequestBoL Boolean value which Indicates whether a Bill of Lading (BoL) is requested.
RequestBoL *bool `json:"requestBoL,omitempty"`
// RequestPickup Boolean value which indicates whether a pickup request is included.
RequestPickup *bool `json:"requestPickup,omitempty"`
// ServiceType Type of the service requested (e.g., AM, AMG, D2, D2G, DF, DFG, CA, EC, CX).
ServiceType ShipmentDetailServiceType `json:"serviceType"`
// ShipmentNumber Shipment number associated with the request.
ShipmentNumber *string `json:"shipmentNumber,omitempty"`
// ShipperReference Reference number provided by the shipper.
ShipperReference *string `json:"shipperReference,omitempty"`
// Weight Total weight of the shipment.
Weight *float64 `json:"weight,omitempty"`
}
ShipmentDetail defines model for ShipmentDetail.
type ShipmentDetailFreightType ¶
type ShipmentDetailFreightType string
ShipmentDetailFreightType FreightType - This is freight type of the shipment piece. Possible values PALLET, LOOSE.
const ( LOOSE ShipmentDetailFreightType = "LOOSE" PALLET ShipmentDetailFreightType = "PALLET" )
Defines values for ShipmentDetailFreightType.
type ShipmentDetailPaymentType ¶
type ShipmentDetailPaymentType string
ShipmentDetailPaymentType Payment method used for the shipment (e.g., PPD, COL, OTH/THD).
const ( COL ShipmentDetailPaymentType = "COL" OTHTHD ShipmentDetailPaymentType = "OTH/THD" PPD ShipmentDetailPaymentType = "PPD" )
Defines values for ShipmentDetailPaymentType.
type ShipmentDetailServiceType ¶
type ShipmentDetailServiceType string
ShipmentDetailServiceType Type of the service requested (e.g., AM, AMG, D2, D2G, DF, DFG, CA, EC, CX).
const ( ShipmentDetailServiceTypeAM ShipmentDetailServiceType = "AM" ShipmentDetailServiceTypeAMG ShipmentDetailServiceType = "AMG" ShipmentDetailServiceTypeCA ShipmentDetailServiceType = "CA" ShipmentDetailServiceTypeCX ShipmentDetailServiceType = "CX" ShipmentDetailServiceTypeD2 ShipmentDetailServiceType = "D2" ShipmentDetailServiceTypeD2G ShipmentDetailServiceType = "D2G" ShipmentDetailServiceTypeDF ShipmentDetailServiceType = "DF" ShipmentDetailServiceTypeDFG ShipmentDetailServiceType = "DFG" ShipmentDetailServiceTypeEC ShipmentDetailServiceType = "EC" )
Defines values for ShipmentDetailServiceType.
type ShipmentDetails ¶
type ShipmentDetails struct {
// CargoItems List of cargo items in the shipment.
CargoItems *[]CargoItem `json:"cargoItems,omitempty"`
// CommodityName Description of the commodity being shipped.
CommodityName *string `json:"commodityName,omitempty"`
// CustomsValue Customs value of the shipment.
CustomsValue *float32 `json:"customsValue,omitempty"`
// CustomsValueCurrency Currency code for customs value.
CustomsValueCurrency *string `json:"customsValueCurrency,omitempty"`
// InsuredValue Insured value of the shipment.
InsuredValue *float32 `json:"insuredValue,omitempty"`
// InsuredValueCurrency Currency code for insured value.
InsuredValueCurrency *string `json:"insuredValueCurrency,omitempty"`
// IsForkliftable Indicates if the cargo is forkliftable ("Y" or "N"), It is required for LCL.
IsForkliftable *string `json:"isForkliftable,omitempty"`
// IsHazmat Indicates if the shipment contains hazardous materials.
IsHazmat *bool `json:"isHazmat,omitempty"`
// IsLithium Indicates if the shipment contains lithium batteries.
IsLithium *bool `json:"isLithium,omitempty"`
// IsReefer Indicates if the shipment requires refrigeration.
IsReefer *bool `json:"isReefer,omitempty"`
// IsRestricted Indicates if the shipment contains restricted items.
IsRestricted *bool `json:"isRestricted,omitempty"`
// IsStackable Indicates if the cargo is stackable ("Y" or "N"), It is required for LCL.
IsStackable *string `json:"isStackable,omitempty"`
// IsTiltable Indicates if the cargo is tiltable ("Y" or "N"), It is required for LCL.
IsTiltable *string `json:"isTiltable,omitempty"`
}
ShipmentDetails defines model for ShipmentDetails.
type ShipmentException ¶
type ShipmentException struct {
// ExceptionDateTime The date and time when the exception occurred.
ExceptionDateTime *time.Time `json:"exceptionDateTime,omitempty"`
// ExceptionReason The reason for the exception.
ExceptionReason *string `json:"exceptionReason,omitempty"`
// ExceptionResolvedDateTime The date and time when the exception was resolved, if applicable.
ExceptionResolvedDateTime *time.Time `json:"exceptionResolvedDateTime,omitempty"`
// ExceptionType The type or category of the exception.
ExceptionType *string `json:"exceptionType,omitempty"`
// IsException Flag indicating whether this is an active exception (true/false).
IsException *string `json:"isException,omitempty"`
}
ShipmentException Individual exception that occurred during the shipment.
type ShipmentExceptionDetails ¶
type ShipmentExceptionDetails struct {
// ExceptionCount The total count of exceptions for the shipment.
ExceptionCount *string `json:"exceptionCount,omitempty"`
// ExceptionList List of exception details.
ExceptionList *[]ShipmentException `json:"exceptionList,omitempty"`
}
ShipmentExceptionDetails Details about exceptions that occurred during the shipment.
type ShipmentMilestone ¶
type ShipmentMilestone struct {
// Id The unique identifier for the milestone.
Id *string `json:"id,omitempty"`
// Label The descriptive label for the milestone (e.g., Picked Up, In Transit, Delivered).
Label *string `json:"label,omitempty"`
// MilestoneCompletionDateTime The date and time when the milestone was completed.
MilestoneCompletionDateTime *time.Time `json:"milestoneCompletionDateTime,omitempty"`
// MilestoneUNLOC The UN Location Code where the milestone occurred.
MilestoneUNLOC *string `json:"milestoneUNLOC,omitempty"`
}
ShipmentMilestone Individual milestone in the shipment journey.
type ShipmentPartyDetail ¶
type ShipmentPartyDetail struct {
// AccountNumber Account number for the party.
AccountNumber *string `json:"accountNumber"`
Address *PartyAddress `json:"address,omitempty"`
ContactDetail *ContactDetail `json:"contactDetail,omitempty"`
// Type Type of party (e.g., SHPR, CONS, THRD).
Type *string `json:"type,omitempty"`
}
ShipmentPartyDetail defines model for ShipmentPartyDetail.
type ShipmentPartyDetailV1 ¶
type ShipmentPartyDetailV1 struct {
AccountNumber *string `json:"accountNumber,omitempty"`
Address *Address `json:"address,omitempty"`
ContactDetail *ContactDetail `json:"contactDetail,omitempty"`
Type *string `json:"type,omitempty"`
}
ShipmentPartyDetailV1 defines model for ShipmentPartyDetailV1.
type ShipmentPartyDetails ¶
type ShipmentPartyDetails struct {
// City City of the address.
City string `json:"city"`
// CountryCode Two-letter country code (e.g., US, CA, GB).
CountryCode string `json:"countryCode"`
// IsResidential Indicates if the address is residential ("Y" or "N").
IsResidential string `json:"isResidential"`
// PostalCode Postal or ZIP code.
PostalCode *string `json:"postalCode,omitempty"`
// State The state code is required for country codes US or CA.
State *string `json:"state,omitempty"`
}
ShipmentPartyDetails defines model for ShipmentPartyDetails.
type ShipmentSummary ¶
type ShipmentSummary struct {
CargoDetails *CargoDetails `json:"cargoDetails,omitempty"`
// ChargeDetails Collection of charge details associated with the shipment.
ChargeDetails *[]ChargeDetailV1 `json:"chargeDetails,omitempty"`
// ConfirmationId Confirmation identifier for the shipment.
ConfirmationId *string `json:"confirmationId"`
// CreatedDate Date and time when the shipment was created.
CreatedDate *time.Time `json:"createdDate,omitempty"`
DestinationPort *PortInfo `json:"destinationPort,omitempty"`
// IncoTermType Incoterms type specifying the terms of trade.
IncoTermType *string `json:"incoTermType"`
// MovementType Movement type of the shipment.
MovementType *ShipmentSummaryMovementType `json:"movementType,omitempty"`
// MovementTypeCode Movement type code of the shipment.
MovementTypeCode *ShipmentSummaryMovementTypeCode `json:"movementTypeCode"`
OriginPort *PortInfo `json:"originPort,omitempty"`
// PartyDetails Collection of party details associated with the shipment.
PartyDetails *[]PartyDetail `json:"partyDetails,omitempty"`
PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
PickupDetail *PickupDetail `json:"pickupDetail,omitempty"`
// PortOfDischarge Port of discharge for the shipment.
PortOfDischarge *string `json:"portOfDischarge"`
// PortOfLoad Port of load for the shipment.
PortOfLoad *string `json:"portOfLoad"`
// QuoteIdentificationNumber Quote identification number.
QuoteIdentificationNumber *string `json:"quoteIdentificationNumber"`
// RateType Rate type of the shipment.
RateType *ShipmentSummaryRateType `json:"rateType,omitempty"`
// ServiceGroup Service group associated with the shipment.
ServiceGroup *string `json:"serviceGroup"`
// ServiceLine Service line associated with the shipment.
ServiceLine *string `json:"serviceLine,omitempty"`
// ServiceType Type of service being represented.
ServiceType *ShipmentSummaryServiceType `json:"serviceType,omitempty"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *string `json:"shipmentNumber"`
// Status Status of the shipment.
Status *string `json:"status,omitempty"`
// TransitTime Transit time in minutes.
TransitTime *int `json:"transitTime,omitempty"`
// ValidTill Date until which the shipment is valid.
ValidTill *time.Time `json:"validTill"`
// Validity Validity period of the shipment in days.
Validity *int `json:"validity,omitempty"`
}
ShipmentSummary defines model for ShipmentSummary.
type ShipmentSummaryMovementType ¶
type ShipmentSummaryMovementType string
ShipmentSummaryMovementType Movement type of the shipment.
const ( ShipmentSummaryMovementTypeDTD ShipmentSummaryMovementType = "DTD" ShipmentSummaryMovementTypeDTP ShipmentSummaryMovementType = "DTP" ShipmentSummaryMovementTypePTD ShipmentSummaryMovementType = "PTD" ShipmentSummaryMovementTypePTP ShipmentSummaryMovementType = "PTP" )
Defines values for ShipmentSummaryMovementType.
type ShipmentSummaryMovementTypeCode ¶
type ShipmentSummaryMovementTypeCode string
ShipmentSummaryMovementTypeCode Movement type code of the shipment.
const ( ShipmentSummaryMovementTypeCodeATA ShipmentSummaryMovementTypeCode = "ATA" ShipmentSummaryMovementTypeCodeATD ShipmentSummaryMovementTypeCode = "ATD" ShipmentSummaryMovementTypeCodeDTA ShipmentSummaryMovementTypeCode = "DTA" ShipmentSummaryMovementTypeCodeDTD ShipmentSummaryMovementTypeCode = "DTD" )
Defines values for ShipmentSummaryMovementTypeCode.
type ShipmentSummaryRateType ¶
type ShipmentSummaryRateType string
ShipmentSummaryRateType Rate type of the shipment.
const ( Market ShipmentSummaryRateType = "Market" Negotiated ShipmentSummaryRateType = "Negotiated" )
Defines values for ShipmentSummaryRateType.
type ShipmentSummaryServiceType ¶
type ShipmentSummaryServiceType string
ShipmentSummaryServiceType Type of service being represented.
const ( ShipmentSummaryServiceTypeAM ShipmentSummaryServiceType = "AM" ShipmentSummaryServiceTypeCA ShipmentSummaryServiceType = "CA" ShipmentSummaryServiceTypeCAD ShipmentSummaryServiceType = "CAD" ShipmentSummaryServiceTypeCX ShipmentSummaryServiceType = "CX" ShipmentSummaryServiceTypeD2 ShipmentSummaryServiceType = "D2" ShipmentSummaryServiceTypeD2G ShipmentSummaryServiceType = "D2G" ShipmentSummaryServiceTypeDF ShipmentSummaryServiceType = "DF" ShipmentSummaryServiceTypeDFG ShipmentSummaryServiceType = "DFG" ShipmentSummaryServiceTypeEC ShipmentSummaryServiceType = "EC" ShipmentSummaryServiceTypeEL ShipmentSummaryServiceType = "EL" ShipmentSummaryServiceTypePA ShipmentSummaryServiceType = "PA" ShipmentSummaryServiceTypePF ShipmentSummaryServiceType = "PF" ShipmentSummaryServiceTypeSA ShipmentSummaryServiceType = "SA" )
Defines values for ShipmentSummaryServiceType.
type SpecialHandling ¶
type SpecialHandling struct {
Message *string `json:"message,omitempty"`
// TemperatureControl Type of temperature control (e.g., Passive, Active).
TemperatureControl *string `json:"temperatureControl,omitempty"`
// Type Type of special handling
Type *string `json:"type,omitempty"`
}
SpecialHandling defines model for SpecialHandling.
type SubmitAirShipmentJSONRequestBody ¶
type SubmitAirShipmentJSONRequestBody = ApolloPatchReplaceReqV1
SubmitAirShipmentJSONRequestBody defines body for SubmitAirShipment for application/json ContentType.
type SubmitAirShipmentParams ¶
type SubmitAirShipmentParams struct {
// ShipperAccountNumber Unique shipper number. Required for all updates.
ShipperAccountNumber string `form:"shipper_account_number" json:"shipper_account_number"`
// PickupDate The <a href="https://www.rfc-editor.org/rfc/rfc3339#section-5.6" target="_blank">RFC 3339</a> scheduled pickup date.
PickupDate *ApolloDateV1 `form:"pickup_date,omitempty" json:"pickup_date,omitempty"`
// RequestManifest The flag indicating whether a manifest should be generated.
RequestManifest *bool `form:"request_manifest,omitempty" json:"request_manifest,omitempty"`
// ManifestFormat The format of the manifest to be generated.
ManifestFormat *SubmitAirShipmentParamsManifestFormat `form:"manifest_format,omitempty" json:"manifest_format,omitempty"`
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
SubmitAirShipmentParams defines parameters for SubmitAirShipment.
type SubmitAirShipmentParamsManifestFormat ¶
type SubmitAirShipmentParamsManifestFormat string
SubmitAirShipmentParamsManifestFormat defines parameters for SubmitAirShipment.
const ( SubmitAirShipmentParamsManifestFormatDATA SubmitAirShipmentParamsManifestFormat = "DATA" SubmitAirShipmentParamsManifestFormatPDF SubmitAirShipmentParamsManifestFormat = "PDF" )
Defines values for SubmitAirShipmentParamsManifestFormat.
type SubmitAirShipmentResponse ¶
type SubmitAirShipmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApolloAirShipmentDataResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseSubmitAirShipmentResponse ¶
func ParseSubmitAirShipmentResponse(rsp *http.Response) (*SubmitAirShipmentResponse, error)
ParseSubmitAirShipmentResponse parses an HTTP response from a SubmitAirShipmentWithResponse call
func (SubmitAirShipmentResponse) Status ¶
func (r SubmitAirShipmentResponse) Status() string
Status returns HTTPResponse.Status
func (SubmitAirShipmentResponse) StatusCode ¶
func (r SubmitAirShipmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadDocumentMultipartBody ¶
type UploadDocumentMultipartBody struct {
// AccountNumber Any account number (Shipper, consignee, or third party) associated with the shipment.
AccountNumber string `json:"AccountNumber"`
// DocumentToUpload The document file to upload. Supported format - PDF.
DocumentToUpload openapi_types.File `json:"DocumentToUpload"`
// DocumentType The type of document being uploaded.
DocumentType DocumentType `json:"DocumentType"`
// ShipmentNumber The shipment number to associate the document with.
ShipmentNumber string `json:"ShipmentNumber"`
}
UploadDocumentMultipartBody defines parameters for UploadDocument.
type UploadDocumentMultipartRequestBody ¶
type UploadDocumentMultipartRequestBody UploadDocumentMultipartBody
UploadDocumentMultipartRequestBody defines body for UploadDocument for multipart/form-data ContentType.
type UploadDocumentParams ¶
type UploadDocumentParams struct {
// TransId Unique transaction ID for debugging and tracking.
TransId *TransId `json:"transId,omitempty"`
}
UploadDocumentParams defines parameters for UploadDocument.
type UploadDocumentResponse ¶
type UploadDocumentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UploadDocumentResponseV1
JSON400 *ApolloErrorResponseV1
JSON401 *ApolloErrorResponseV1
JSON404 *ApolloErrorResponseV1
JSON500 *ApolloErrorResponseV1
}
func ParseUploadDocumentResponse ¶
func ParseUploadDocumentResponse(rsp *http.Response) (*UploadDocumentResponse, error)
ParseUploadDocumentResponse parses an HTTP response from a UploadDocumentWithResponse call
func (UploadDocumentResponse) Status ¶
func (r UploadDocumentResponse) Status() string
Status returns HTTPResponse.Status
func (UploadDocumentResponse) StatusCode ¶
func (r UploadDocumentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadDocumentResponseV1 ¶
type UploadDocumentResponseV1 struct {
Response struct {
// AccountNumber The account number associated with the uploaded document.
AccountNumber *string `json:"accountNumber,omitempty"`
// Message A message indicating the result of the upload operation.
Message *string `json:"message,omitempty"`
// ShipmentNumber Unique identifier for the shipment.
ShipmentNumber *ApolloShipmentNumberV1 `json:"shipmentNumber"`
} `json:"response"`
}
UploadDocumentResponseV1 Response from the document upload operation.
type VolumeMeasurement ¶
type VolumeMeasurement struct {
// UomCode The unit of measurement code (e.g., CBM, CFT).
UomCode *string `json:"uomCode,omitempty"`
// UomLabel The descriptive label for the unit of measurement.
UomLabel *string `json:"uomLabel,omitempty"`
// Volume The volume value.
Volume *string `json:"volume,omitempty"`
}
VolumeMeasurement Volume measurement including the value and unit of measurement.
type WeightDetail ¶
type WeightDetail struct {
UnitOfMeasurement *string `json:"unitOfMeasurement,omitempty"`
Weight *float32 `json:"weight,omitempty"`
}
WeightDetail defines model for WeightDetail.
type WeightMeasurement ¶
type WeightMeasurement struct {
// UomCode The unit of measurement code (e.g., KG, LB).
UomCode *string `json:"uomCode,omitempty"`
// UomLabel The descriptive label for the unit of measurement.
UomLabel *string `json:"uomLabel,omitempty"`
// Weight The weight value.
Weight *string `json:"weight,omitempty"`
}
WeightMeasurement Weight measurement including the value and unit of measurement.