Documentation
¶
Overview ¶
Package deliveryintercept 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 NewCancelInterceptOptionRequest(server string, trackingNumber string, params *CancelInterceptOptionParams, ...) (*http.Request, error)
- func NewCancelInterceptOptionRequestWithBody(server string, trackingNumber string, params *CancelInterceptOptionParams, ...) (*http.Request, error)
- func NewGetChargesRequest(server string, trackingNumber string, params *GetChargesParams, ...) (*http.Request, error)
- func NewGetChargesRequestWithBody(server string, trackingNumber string, params *GetChargesParams, ...) (*http.Request, error)
- func NewGetEligibilityOptionsRequest(server string, trackingNumber string, params *GetEligibilityOptionsParams) (*http.Request, error)
- func NewGetRedirectInterceptOptionsRequest(server string, trackingNumber string, ...) (*http.Request, error)
- func NewGetRedirectInterceptOptionsRequestWithBody(server string, trackingNumber string, ...) (*http.Request, error)
- func NewRescheduleInterceptOptionRequest(server string, trackingNumber string, params *RescheduleInterceptOptionParams, ...) (*http.Request, error)
- func NewRescheduleInterceptOptionRequestWithBody(server string, trackingNumber string, params *RescheduleInterceptOptionParams, ...) (*http.Request, error)
- func NewReturnInterceptOptionRequest(server string, trackingNumber string, params *ReturnInterceptOptionParams, ...) (*http.Request, error)
- func NewReturnInterceptOptionRequestWithBody(server string, trackingNumber string, params *ReturnInterceptOptionParams, ...) (*http.Request, error)
- func NewWillcallInterceptOptionRequest(server string, trackingNumber string, params *WillcallInterceptOptionParams, ...) (*http.Request, error)
- func NewWillcallInterceptOptionRequestWithBody(server string, trackingNumber string, params *WillcallInterceptOptionParams, ...) (*http.Request, error)
- type CancelInterceptOptionJSONRequestBody
- type CancelInterceptOptionParams
- type CancelInterceptOptionResponse
- type Client
- func (c *Client) CancelInterceptOption(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) CancelInterceptOptionWithBody(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) GetCharges(ctx context.Context, trackingNumber string, params *GetChargesParams, ...) (*http.Response, error)
- func (c *Client) GetChargesWithBody(ctx context.Context, trackingNumber string, params *GetChargesParams, ...) (*http.Response, error)
- func (c *Client) GetEligibilityOptions(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) GetRedirectInterceptOptions(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) GetRedirectInterceptOptionsWithBody(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) RescheduleInterceptOption(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) RescheduleInterceptOptionWithBody(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) ReturnInterceptOption(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) ReturnInterceptOptionWithBody(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) WillcallInterceptOption(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) WillcallInterceptOptionWithBody(ctx context.Context, trackingNumber string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CancelInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, ...) (*CancelInterceptOptionResponse, error)
- func (c *ClientWithResponses) CancelInterceptOptionWithResponse(ctx context.Context, trackingNumber string, ...) (*CancelInterceptOptionResponse, error)
- func (c *ClientWithResponses) GetChargesWithBodyWithResponse(ctx context.Context, trackingNumber string, params *GetChargesParams, ...) (*GetChargesResponse, error)
- func (c *ClientWithResponses) GetChargesWithResponse(ctx context.Context, trackingNumber string, params *GetChargesParams, ...) (*GetChargesResponse, error)
- func (c *ClientWithResponses) GetEligibilityOptionsWithResponse(ctx context.Context, trackingNumber string, ...) (*GetEligibilityOptionsResponse, error)
- func (c *ClientWithResponses) GetRedirectInterceptOptionsWithBodyWithResponse(ctx context.Context, trackingNumber string, ...) (*GetRedirectInterceptOptionsResponse, error)
- func (c *ClientWithResponses) GetRedirectInterceptOptionsWithResponse(ctx context.Context, trackingNumber string, ...) (*GetRedirectInterceptOptionsResponse, error)
- func (c *ClientWithResponses) RescheduleInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, ...) (*RescheduleInterceptOptionResponse, error)
- func (c *ClientWithResponses) RescheduleInterceptOptionWithResponse(ctx context.Context, trackingNumber string, ...) (*RescheduleInterceptOptionResponse, error)
- func (c *ClientWithResponses) ReturnInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, ...) (*ReturnInterceptOptionResponse, error)
- func (c *ClientWithResponses) ReturnInterceptOptionWithResponse(ctx context.Context, trackingNumber string, ...) (*ReturnInterceptOptionResponse, error)
- func (c *ClientWithResponses) WillcallInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, ...) (*WillcallInterceptOptionResponse, error)
- func (c *ClientWithResponses) WillcallInterceptOptionWithResponse(ctx context.Context, trackingNumber string, ...) (*WillcallInterceptOptionResponse, error)
- type ClientWithResponsesInterface
- type DeliveryInterceptAdditionalAddressV2
- func (a DeliveryInterceptAdditionalAddressV2) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptAdditionalAddressV2) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptAdditionalAddressV2) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptAdditionalAddressV2) UnmarshalJSON(b []byte) error
- type DeliveryInterceptAddressV2
- func (a DeliveryInterceptAddressV2) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptAddressV2) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptAddressV2) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptAddressV2) UnmarshalJSON(b []byte) error
- type DeliveryInterceptChargeDetailV2
- type DeliveryInterceptChargeV2
- type DeliveryInterceptChargesRequestV2
- func (a DeliveryInterceptChargesRequestV2) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptChargesRequestV2) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptChargesRequestV2) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptChargesRequestV2) UnmarshalJSON(b []byte) error
- type DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption
- type DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress
- func (a DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) UnmarshalJSON(b []byte) error
- type DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress
- func (a DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) UnmarshalJSON(b []byte) error
- type DeliveryInterceptChargesResponseV2
- type DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator
- type DeliveryInterceptChargesResponseV2_Response
- func (a DeliveryInterceptChargesResponseV2_Response) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptChargesResponseV2_Response) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptChargesResponseV2_Response) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptChargesResponseV2_Response) UnmarshalJSON(b []byte) error
- type DeliveryInterceptCommonResponseV2
- func (a DeliveryInterceptCommonResponseV2) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptCommonResponseV2) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptCommonResponseV2) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptCommonResponseV2) UnmarshalJSON(b []byte) error
- type DeliveryInterceptDateV2
- type DeliveryInterceptEligibilityOptionsResponseV2
- type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber
- type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText
- type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId
- type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature
- type DeliveryInterceptEligibilityOptionsResponseV2_Response
- func (a DeliveryInterceptEligibilityOptionsResponseV2_Response) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptEligibilityOptionsResponseV2_Response) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptEligibilityOptionsResponseV2_Response) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptEligibilityOptionsResponseV2_Response) UnmarshalJSON(b []byte) error
- type DeliveryInterceptEligibilityValueV2
- type DeliveryInterceptErrorResponseV2
- type DeliveryInterceptRequestV2
- type DeliveryInterceptRequestV2ReasonForReturn
- type DeliveryInterceptRequestV2RequestType
- type DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo
- func (a DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) UnmarshalJSON(b []byte) error
- type DeliveryInterceptRequestV2_RequesterContactInfo
- func (a DeliveryInterceptRequestV2_RequesterContactInfo) Get(fieldName string) (value interface{}, found bool)
- func (a DeliveryInterceptRequestV2_RequesterContactInfo) MarshalJSON() ([]byte, error)
- func (a *DeliveryInterceptRequestV2_RequesterContactInfo) Set(fieldName string, value interface{})
- func (a *DeliveryInterceptRequestV2_RequesterContactInfo) UnmarshalJSON(b []byte) error
- type DeliveryInterceptResponseV2
- type DeliveryInterceptSuccessErrorV2
- type DeliveryInterceptTrackingNumberV2
- type GetChargesJSONRequestBody
- type GetChargesParams
- type GetChargesResponse
- type GetEligibilityOptionsParams
- type GetEligibilityOptionsResponse
- type GetRedirectInterceptOptionsJSONRequestBody
- type GetRedirectInterceptOptionsParams
- type GetRedirectInterceptOptionsResponse
- type HttpRequestDoer
- type RequestEditorFn
- type RescheduleInterceptOptionJSONRequestBody
- type RescheduleInterceptOptionParams
- type RescheduleInterceptOptionResponse
- type ReturnInterceptOptionJSONRequestBody
- type ReturnInterceptOptionParams
- type ReturnInterceptOptionResponse
- type TransId
- type WillcallInterceptOptionJSONRequestBody
- type WillcallInterceptOptionParams
- type WillcallInterceptOptionResponse
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCancelInterceptOptionRequest ¶
func NewCancelInterceptOptionRequest(server string, trackingNumber string, params *CancelInterceptOptionParams, body CancelInterceptOptionJSONRequestBody) (*http.Request, error)
NewCancelInterceptOptionRequest calls the generic CancelInterceptOption builder with application/json body
func NewCancelInterceptOptionRequestWithBody ¶
func NewCancelInterceptOptionRequestWithBody(server string, trackingNumber string, params *CancelInterceptOptionParams, contentType string, body io.Reader) (*http.Request, error)
NewCancelInterceptOptionRequestWithBody generates requests for CancelInterceptOption with any type of body
func NewGetChargesRequest ¶
func NewGetChargesRequest(server string, trackingNumber string, params *GetChargesParams, body GetChargesJSONRequestBody) (*http.Request, error)
NewGetChargesRequest calls the generic GetCharges builder with application/json body
func NewGetChargesRequestWithBody ¶
func NewGetChargesRequestWithBody(server string, trackingNumber string, params *GetChargesParams, contentType string, body io.Reader) (*http.Request, error)
NewGetChargesRequestWithBody generates requests for GetCharges with any type of body
func NewGetEligibilityOptionsRequest ¶
func NewGetEligibilityOptionsRequest(server string, trackingNumber string, params *GetEligibilityOptionsParams) (*http.Request, error)
NewGetEligibilityOptionsRequest generates requests for GetEligibilityOptions
func NewGetRedirectInterceptOptionsRequest ¶
func NewGetRedirectInterceptOptionsRequest(server string, trackingNumber string, params *GetRedirectInterceptOptionsParams, body GetRedirectInterceptOptionsJSONRequestBody) (*http.Request, error)
NewGetRedirectInterceptOptionsRequest calls the generic GetRedirectInterceptOptions builder with application/json body
func NewGetRedirectInterceptOptionsRequestWithBody ¶
func NewGetRedirectInterceptOptionsRequestWithBody(server string, trackingNumber string, params *GetRedirectInterceptOptionsParams, contentType string, body io.Reader) (*http.Request, error)
NewGetRedirectInterceptOptionsRequestWithBody generates requests for GetRedirectInterceptOptions with any type of body
func NewRescheduleInterceptOptionRequest ¶
func NewRescheduleInterceptOptionRequest(server string, trackingNumber string, params *RescheduleInterceptOptionParams, body RescheduleInterceptOptionJSONRequestBody) (*http.Request, error)
NewRescheduleInterceptOptionRequest calls the generic RescheduleInterceptOption builder with application/json body
func NewRescheduleInterceptOptionRequestWithBody ¶
func NewRescheduleInterceptOptionRequestWithBody(server string, trackingNumber string, params *RescheduleInterceptOptionParams, contentType string, body io.Reader) (*http.Request, error)
NewRescheduleInterceptOptionRequestWithBody generates requests for RescheduleInterceptOption with any type of body
func NewReturnInterceptOptionRequest ¶
func NewReturnInterceptOptionRequest(server string, trackingNumber string, params *ReturnInterceptOptionParams, body ReturnInterceptOptionJSONRequestBody) (*http.Request, error)
NewReturnInterceptOptionRequest calls the generic ReturnInterceptOption builder with application/json body
func NewReturnInterceptOptionRequestWithBody ¶
func NewReturnInterceptOptionRequestWithBody(server string, trackingNumber string, params *ReturnInterceptOptionParams, contentType string, body io.Reader) (*http.Request, error)
NewReturnInterceptOptionRequestWithBody generates requests for ReturnInterceptOption with any type of body
func NewWillcallInterceptOptionRequest ¶
func NewWillcallInterceptOptionRequest(server string, trackingNumber string, params *WillcallInterceptOptionParams, body WillcallInterceptOptionJSONRequestBody) (*http.Request, error)
NewWillcallInterceptOptionRequest calls the generic WillcallInterceptOption builder with application/json body
func NewWillcallInterceptOptionRequestWithBody ¶
func NewWillcallInterceptOptionRequestWithBody(server string, trackingNumber string, params *WillcallInterceptOptionParams, contentType string, body io.Reader) (*http.Request, error)
NewWillcallInterceptOptionRequestWithBody generates requests for WillcallInterceptOption with any type of body
Types ¶
type CancelInterceptOptionJSONRequestBody ¶
type CancelInterceptOptionJSONRequestBody = DeliveryInterceptRequestV2
CancelInterceptOptionJSONRequestBody defines body for CancelInterceptOption for application/json ContentType.
type CancelInterceptOptionParams ¶
type CancelInterceptOptionParams struct {
// TransId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransId TransId `json:"transId"`
}
CancelInterceptOptionParams defines parameters for CancelInterceptOption.
type CancelInterceptOptionResponse ¶
type CancelInterceptOptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeliveryInterceptResponseV2
JSON400 *DeliveryInterceptErrorResponseV2
JSON401 *DeliveryInterceptErrorResponseV2
}
func ParseCancelInterceptOptionResponse ¶
func ParseCancelInterceptOptionResponse(rsp *http.Response) (*CancelInterceptOptionResponse, error)
ParseCancelInterceptOptionResponse parses an HTTP response from a CancelInterceptOptionWithResponse call
func (CancelInterceptOptionResponse) Status ¶
func (r CancelInterceptOptionResponse) Status() string
Status returns HTTPResponse.Status
func (CancelInterceptOptionResponse) StatusCode ¶
func (r CancelInterceptOptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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) CancelInterceptOption ¶
func (c *Client) CancelInterceptOption(ctx context.Context, trackingNumber string, params *CancelInterceptOptionParams, body CancelInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CancelInterceptOptionWithBody ¶
func (*Client) GetCharges ¶
func (c *Client) GetCharges(ctx context.Context, trackingNumber string, params *GetChargesParams, body GetChargesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChargesWithBody ¶
func (*Client) GetEligibilityOptions ¶
func (c *Client) GetEligibilityOptions(ctx context.Context, trackingNumber string, params *GetEligibilityOptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRedirectInterceptOptions ¶
func (c *Client) GetRedirectInterceptOptions(ctx context.Context, trackingNumber string, params *GetRedirectInterceptOptionsParams, body GetRedirectInterceptOptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRedirectInterceptOptionsWithBody ¶
func (*Client) RescheduleInterceptOption ¶
func (c *Client) RescheduleInterceptOption(ctx context.Context, trackingNumber string, params *RescheduleInterceptOptionParams, body RescheduleInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RescheduleInterceptOptionWithBody ¶
func (*Client) ReturnInterceptOption ¶
func (c *Client) ReturnInterceptOption(ctx context.Context, trackingNumber string, params *ReturnInterceptOptionParams, body ReturnInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReturnInterceptOptionWithBody ¶
func (*Client) WillcallInterceptOption ¶
func (c *Client) WillcallInterceptOption(ctx context.Context, trackingNumber string, params *WillcallInterceptOptionParams, body WillcallInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) WillcallInterceptOptionWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// CancelInterceptOptionWithBody request with any body
CancelInterceptOptionWithBody(ctx context.Context, trackingNumber string, params *CancelInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelInterceptOption(ctx context.Context, trackingNumber string, params *CancelInterceptOptionParams, body CancelInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetChargesWithBody request with any body
GetChargesWithBody(ctx context.Context, trackingNumber string, params *GetChargesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCharges(ctx context.Context, trackingNumber string, params *GetChargesParams, body GetChargesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEligibilityOptions request
GetEligibilityOptions(ctx context.Context, trackingNumber string, params *GetEligibilityOptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRedirectInterceptOptionsWithBody request with any body
GetRedirectInterceptOptionsWithBody(ctx context.Context, trackingNumber string, params *GetRedirectInterceptOptionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetRedirectInterceptOptions(ctx context.Context, trackingNumber string, params *GetRedirectInterceptOptionsParams, body GetRedirectInterceptOptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RescheduleInterceptOptionWithBody request with any body
RescheduleInterceptOptionWithBody(ctx context.Context, trackingNumber string, params *RescheduleInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RescheduleInterceptOption(ctx context.Context, trackingNumber string, params *RescheduleInterceptOptionParams, body RescheduleInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReturnInterceptOptionWithBody request with any body
ReturnInterceptOptionWithBody(ctx context.Context, trackingNumber string, params *ReturnInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReturnInterceptOption(ctx context.Context, trackingNumber string, params *ReturnInterceptOptionParams, body ReturnInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// WillcallInterceptOptionWithBody request with any body
WillcallInterceptOptionWithBody(ctx context.Context, trackingNumber string, params *WillcallInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
WillcallInterceptOption(ctx context.Context, trackingNumber string, params *WillcallInterceptOptionParams, body WillcallInterceptOptionJSONRequestBody, 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) CancelInterceptOptionWithBodyWithResponse ¶
func (c *ClientWithResponses) CancelInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, params *CancelInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelInterceptOptionResponse, error)
CancelInterceptOptionWithBodyWithResponse request with arbitrary body returning *CancelInterceptOptionResponse
func (*ClientWithResponses) CancelInterceptOptionWithResponse ¶
func (c *ClientWithResponses) CancelInterceptOptionWithResponse(ctx context.Context, trackingNumber string, params *CancelInterceptOptionParams, body CancelInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelInterceptOptionResponse, error)
func (*ClientWithResponses) GetChargesWithBodyWithResponse ¶
func (c *ClientWithResponses) GetChargesWithBodyWithResponse(ctx context.Context, trackingNumber string, params *GetChargesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChargesResponse, error)
GetChargesWithBodyWithResponse request with arbitrary body returning *GetChargesResponse
func (*ClientWithResponses) GetChargesWithResponse ¶
func (c *ClientWithResponses) GetChargesWithResponse(ctx context.Context, trackingNumber string, params *GetChargesParams, body GetChargesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChargesResponse, error)
func (*ClientWithResponses) GetEligibilityOptionsWithResponse ¶
func (c *ClientWithResponses) GetEligibilityOptionsWithResponse(ctx context.Context, trackingNumber string, params *GetEligibilityOptionsParams, reqEditors ...RequestEditorFn) (*GetEligibilityOptionsResponse, error)
GetEligibilityOptionsWithResponse request returning *GetEligibilityOptionsResponse
func (*ClientWithResponses) GetRedirectInterceptOptionsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetRedirectInterceptOptionsWithBodyWithResponse(ctx context.Context, trackingNumber string, params *GetRedirectInterceptOptionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetRedirectInterceptOptionsResponse, error)
GetRedirectInterceptOptionsWithBodyWithResponse request with arbitrary body returning *GetRedirectInterceptOptionsResponse
func (*ClientWithResponses) GetRedirectInterceptOptionsWithResponse ¶
func (c *ClientWithResponses) GetRedirectInterceptOptionsWithResponse(ctx context.Context, trackingNumber string, params *GetRedirectInterceptOptionsParams, body GetRedirectInterceptOptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetRedirectInterceptOptionsResponse, error)
func (*ClientWithResponses) RescheduleInterceptOptionWithBodyWithResponse ¶
func (c *ClientWithResponses) RescheduleInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, params *RescheduleInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RescheduleInterceptOptionResponse, error)
RescheduleInterceptOptionWithBodyWithResponse request with arbitrary body returning *RescheduleInterceptOptionResponse
func (*ClientWithResponses) RescheduleInterceptOptionWithResponse ¶
func (c *ClientWithResponses) RescheduleInterceptOptionWithResponse(ctx context.Context, trackingNumber string, params *RescheduleInterceptOptionParams, body RescheduleInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*RescheduleInterceptOptionResponse, error)
func (*ClientWithResponses) ReturnInterceptOptionWithBodyWithResponse ¶
func (c *ClientWithResponses) ReturnInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, params *ReturnInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReturnInterceptOptionResponse, error)
ReturnInterceptOptionWithBodyWithResponse request with arbitrary body returning *ReturnInterceptOptionResponse
func (*ClientWithResponses) ReturnInterceptOptionWithResponse ¶
func (c *ClientWithResponses) ReturnInterceptOptionWithResponse(ctx context.Context, trackingNumber string, params *ReturnInterceptOptionParams, body ReturnInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*ReturnInterceptOptionResponse, error)
func (*ClientWithResponses) WillcallInterceptOptionWithBodyWithResponse ¶
func (c *ClientWithResponses) WillcallInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, params *WillcallInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WillcallInterceptOptionResponse, error)
WillcallInterceptOptionWithBodyWithResponse request with arbitrary body returning *WillcallInterceptOptionResponse
func (*ClientWithResponses) WillcallInterceptOptionWithResponse ¶
func (c *ClientWithResponses) WillcallInterceptOptionWithResponse(ctx context.Context, trackingNumber string, params *WillcallInterceptOptionParams, body WillcallInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*WillcallInterceptOptionResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// CancelInterceptOptionWithBodyWithResponse request with any body
CancelInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, params *CancelInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelInterceptOptionResponse, error)
CancelInterceptOptionWithResponse(ctx context.Context, trackingNumber string, params *CancelInterceptOptionParams, body CancelInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelInterceptOptionResponse, error)
// GetChargesWithBodyWithResponse request with any body
GetChargesWithBodyWithResponse(ctx context.Context, trackingNumber string, params *GetChargesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChargesResponse, error)
GetChargesWithResponse(ctx context.Context, trackingNumber string, params *GetChargesParams, body GetChargesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChargesResponse, error)
// GetEligibilityOptionsWithResponse request
GetEligibilityOptionsWithResponse(ctx context.Context, trackingNumber string, params *GetEligibilityOptionsParams, reqEditors ...RequestEditorFn) (*GetEligibilityOptionsResponse, error)
// GetRedirectInterceptOptionsWithBodyWithResponse request with any body
GetRedirectInterceptOptionsWithBodyWithResponse(ctx context.Context, trackingNumber string, params *GetRedirectInterceptOptionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetRedirectInterceptOptionsResponse, error)
GetRedirectInterceptOptionsWithResponse(ctx context.Context, trackingNumber string, params *GetRedirectInterceptOptionsParams, body GetRedirectInterceptOptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetRedirectInterceptOptionsResponse, error)
// RescheduleInterceptOptionWithBodyWithResponse request with any body
RescheduleInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, params *RescheduleInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RescheduleInterceptOptionResponse, error)
RescheduleInterceptOptionWithResponse(ctx context.Context, trackingNumber string, params *RescheduleInterceptOptionParams, body RescheduleInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*RescheduleInterceptOptionResponse, error)
// ReturnInterceptOptionWithBodyWithResponse request with any body
ReturnInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, params *ReturnInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReturnInterceptOptionResponse, error)
ReturnInterceptOptionWithResponse(ctx context.Context, trackingNumber string, params *ReturnInterceptOptionParams, body ReturnInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*ReturnInterceptOptionResponse, error)
// WillcallInterceptOptionWithBodyWithResponse request with any body
WillcallInterceptOptionWithBodyWithResponse(ctx context.Context, trackingNumber string, params *WillcallInterceptOptionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WillcallInterceptOptionResponse, error)
WillcallInterceptOptionWithResponse(ctx context.Context, trackingNumber string, params *WillcallInterceptOptionParams, body WillcallInterceptOptionJSONRequestBody, reqEditors ...RequestEditorFn) (*WillcallInterceptOptionResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeliveryInterceptAdditionalAddressV2 ¶
type DeliveryInterceptAdditionalAddressV2 struct {
BuildingFloor *string `json:"buildingFloor,omitempty"`
// FirstName Required when the user choses to enter a new card providing the Billing address in CreditCardInformation .
FirstName string `json:"firstName"`
// FullName Full person name
FullName *string `json:"fullName,omitempty"`
// LastName Required when the user choses to enter a new card providing the Billing address in CreditCardInformation object.
LastName *string `json:"lastName,omitempty"`
PhoneNumber string `json:"phoneNumber"`
PublicLocationId *string `json:"publicLocationId,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptAdditionalAddressV2 defines model for DeliveryInterceptAdditionalAddressV2.
func (DeliveryInterceptAdditionalAddressV2) Get ¶
func (a DeliveryInterceptAdditionalAddressV2) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptAdditionalAddressV2. Returns the specified element and whether it was found
func (DeliveryInterceptAdditionalAddressV2) MarshalJSON ¶
func (a DeliveryInterceptAdditionalAddressV2) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptAdditionalAddressV2 to handle AdditionalProperties
func (*DeliveryInterceptAdditionalAddressV2) Set ¶
func (a *DeliveryInterceptAdditionalAddressV2) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptAdditionalAddressV2
func (*DeliveryInterceptAdditionalAddressV2) UnmarshalJSON ¶
func (a *DeliveryInterceptAdditionalAddressV2) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptAdditionalAddressV2 to handle AdditionalProperties
type DeliveryInterceptAddressV2 ¶
type DeliveryInterceptAddressV2 struct {
// AddressLine1 Line 1 of the street address. Required if streetAddressParsedIndicator is FALSE; Required when setting Billing Address.
AddressLine1 string `json:"addressLine1"`
// AddressLine2 Line 2 of the street address
AddressLine2 *string `json:"addressLine2,omitempty"`
// AddressLine3 Line 3 of the street
AddressLine3 *string `json:"addressLine3,omitempty"`
// City The city name of the address
City string `json:"city"`
// CountryCode The ISO country code of the address
CountryCode string `json:"countryCode"`
// PostalCode The postal code of the address (should be provided for postal countries)
PostalCode string `json:"postalCode"`
// State The state code of the address
State string `json:"state"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptAddressV2 defines model for DeliveryInterceptAddressV2.
func (DeliveryInterceptAddressV2) Get ¶
func (a DeliveryInterceptAddressV2) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptAddressV2. Returns the specified element and whether it was found
func (DeliveryInterceptAddressV2) MarshalJSON ¶
func (a DeliveryInterceptAddressV2) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptAddressV2 to handle AdditionalProperties
func (*DeliveryInterceptAddressV2) Set ¶
func (a *DeliveryInterceptAddressV2) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptAddressV2
func (*DeliveryInterceptAddressV2) UnmarshalJSON ¶
func (a *DeliveryInterceptAddressV2) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptAddressV2 to handle AdditionalProperties
type DeliveryInterceptChargeDetailV2 ¶
type DeliveryInterceptChargeDetailV2 struct {
// AccessorialCharge Includes sum of all accessorial charges (i.e. including addition handling, intercept)
AccessorialCharge *string `json:"accessorialCharge,omitempty"`
// CurrencyCode This will be used when authorizing credit cards or PayPal accounts
CurrencyCode string `json:"currencyCode"`
// DisplayShipperPaidInterceptCharges Indicates if a message should be displayed that the shipper has paid for the charges related to the intercept.
DisplayShipperPaidInterceptCharges *bool `json:"displayShipperPaidInterceptCharges,omitempty"`
// InterceptCharge The flat rate charge specific for the intercept
InterceptCharge *string `json:"interceptCharge,omitempty"`
// InterceptOption Intercept name of the charges
InterceptOption *string `json:"interceptOption,omitempty"`
// ShipperPaidInterceptCharges Indicates if charges related to the intercept are paid by the shipper.
ShipperPaidInterceptCharges *bool `json:"shipperPaidInterceptCharges,omitempty"`
Successful *bool `json:"successful,omitempty"`
// TotalCharge totalCharge
TotalCharge *string `json:"totalCharge,omitempty"`
// TransportationCharge Transportation Charge Only for Alternate Address (Redirect, Deliver to Another Address)
TransportationCharge *string `json:"transportationCharge,omitempty"`
}
DeliveryInterceptChargeDetailV2 defines model for DeliveryInterceptChargeDetailV2.
type DeliveryInterceptChargeV2 ¶
type DeliveryInterceptChargeV2 = string
DeliveryInterceptChargeV2 defines model for DeliveryInterceptChargeV2.
type DeliveryInterceptChargesRequestV2 ¶
type DeliveryInterceptChargesRequestV2 struct {
// ClientIP IP address of the requesting device
ClientIP *string `json:"clientIP,omitempty"`
// RatingRequest List of rating request data. If you want to find out the accessory and transportation charges of a "redirect" request
// for a specified Tracking number then this array list must contain one rating request. This array is unbounded.
RatingRequest []struct {
FromAddress DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress `json:"fromAddress"`
RedirectAddress *struct {
AddressInfo DeliveryInterceptAddressV2 `json:"addressInfo"`
// AddressNickName The nickname string assigned to the address entry.
AddressNickName string `json:"addressNickName"`
// ContactName The contact name at the customer address.
ContactName string `json:"contactName"`
// EmailAddress Email Address at the customer address.
EmailAddress *string `json:"emailAddress,omitempty"`
// NameOrCompanyName The name of the company or person customer address.(Required When calling submitAddress() API Empty String can be passed)
NameOrCompanyName string `json:"nameOrCompanyName"`
// PhoneExt The phone extension number at the customer address.(Required When calling submitAddress() API Empty String can be passed)
PhoneExt *string `json:"phoneExt,omitempty"`
// PhoneNumber The contact phone number at the customer address.(Required When calling submitAddress() API Empty String can be passed)
PhoneNumber string `json:"phoneNumber"`
} `json:"redirectAddress,omitempty"`
ToAddress DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress `json:"toAddress"`
TrackInfo struct {
// InterceptOption Intercept option to be mentioned to find the charges
InterceptOption DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption `json:"interceptOption"`
} `json:"trackInfo"`
} `json:"ratingRequest"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptChargesRequestV2 Request schema for Delivery Change Charges retrieval
func (DeliveryInterceptChargesRequestV2) Get ¶
func (a DeliveryInterceptChargesRequestV2) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptChargesRequestV2. Returns the specified element and whether it was found
func (DeliveryInterceptChargesRequestV2) MarshalJSON ¶
func (a DeliveryInterceptChargesRequestV2) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptChargesRequestV2 to handle AdditionalProperties
func (*DeliveryInterceptChargesRequestV2) Set ¶
func (a *DeliveryInterceptChargesRequestV2) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptChargesRequestV2
func (*DeliveryInterceptChargesRequestV2) UnmarshalJSON ¶
func (a *DeliveryInterceptChargesRequestV2) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptChargesRequestV2 to handle AdditionalProperties
type DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption ¶
type DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption string
DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption Intercept option to be mentioned to find the charges
const ( DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOptionAA DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption = "AA" DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOptionAL DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption = "AL" DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOptionFD DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption = "FD" DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOptionRS DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption = "RS" DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOptionSC DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption = "SC" DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOptionWC DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption = "WC" )
Defines values for DeliveryInterceptChargesRequestV2RatingRequestTrackInfoInterceptOption.
type DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress ¶
type DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress struct {
// AddressLine1 Line 1 of the street address. Required if streetAddressParsedIndicator is FALSE; Required when setting Billing Address.
AddressLine1 string `json:"addressLine1"`
// AddressLine2 Line 2 of the street address
AddressLine2 *string `json:"addressLine2,omitempty"`
// AddressLine3 Line 3 of the street
AddressLine3 *string `json:"addressLine3,omitempty"`
BuildingFloor *string `json:"buildingFloor,omitempty"`
// City The city name of the address
City string `json:"city"`
// CountryCode The ISO country code of the address
CountryCode string `json:"countryCode"`
// FirstName Required when the user choses to enter a new card providing the Billing address in CreditCardInformation .
FirstName string `json:"firstName"`
// FullName Full person name
FullName *string `json:"fullName,omitempty"`
// LastName Required when the user choses to enter a new card providing the Billing address in CreditCardInformation object.
LastName *string `json:"lastName,omitempty"`
PhoneNumber string `json:"phoneNumber"`
// PostalCode The postal code of the address (should be provided for postal countries)
PostalCode string `json:"postalCode"`
PublicLocationId *string `json:"publicLocationId,omitempty"`
// State The state code of the address
State string `json:"state"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress defines model for DeliveryInterceptChargesRequestV2.RatingRequest.FromAddress.
func (DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) Get ¶
func (a DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress. Returns the specified element and whether it was found
func (DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) MarshalJSON ¶
func (a DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress to handle AdditionalProperties
func (*DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) Set ¶
func (a *DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress
func (*DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) UnmarshalJSON ¶
func (a *DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptChargesRequestV2_RatingRequest_FromAddress to handle AdditionalProperties
type DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress ¶
type DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress struct {
// AddressLine1 Line 1 of the street address. Required if streetAddressParsedIndicator is FALSE; Required when setting Billing Address.
AddressLine1 string `json:"addressLine1"`
// AddressLine2 Line 2 of the street address
AddressLine2 *string `json:"addressLine2,omitempty"`
// AddressLine3 Line 3 of the street
AddressLine3 *string `json:"addressLine3,omitempty"`
BuildingFloor *string `json:"buildingFloor,omitempty"`
// City The city name of the address
City string `json:"city"`
// CountryCode The ISO country code of the address
CountryCode string `json:"countryCode"`
// FirstName Required when the user choses to enter a new card providing the Billing address in CreditCardInformation .
FirstName string `json:"firstName"`
// FullName Full person name
FullName *string `json:"fullName,omitempty"`
// LastName Required when the user choses to enter a new card providing the Billing address in CreditCardInformation object.
LastName *string `json:"lastName,omitempty"`
PhoneNumber string `json:"phoneNumber"`
// PostalCode The postal code of the address (should be provided for postal countries)
PostalCode string `json:"postalCode"`
PublicLocationId *string `json:"publicLocationId,omitempty"`
// State The state code of the address
State string `json:"state"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress defines model for DeliveryInterceptChargesRequestV2.RatingRequest.ToAddress.
func (DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) Get ¶
func (a DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress. Returns the specified element and whether it was found
func (DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) MarshalJSON ¶
func (a DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress to handle AdditionalProperties
func (*DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) Set ¶
func (a *DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress
func (*DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) UnmarshalJSON ¶
func (a *DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptChargesRequestV2_RatingRequest_ToAddress to handle AdditionalProperties
type DeliveryInterceptChargesResponseV2 ¶
type DeliveryInterceptChargesResponseV2 struct {
Response DeliveryInterceptChargesResponseV2_Response `json:"response"`
}
DeliveryInterceptChargesResponseV2 Response schema for Delivery Change Charge request
type DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator ¶
type DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator string
DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator Indicates if a tax disclaimer message should be displayed.
const ( NTA DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator = "NTA" NTC DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator = "NTC" TA DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator = "TA" TE DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator = "TE" TU DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator = "TU" )
Defines values for DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator.
type DeliveryInterceptChargesResponseV2_Response ¶
type DeliveryInterceptChargesResponseV2_Response struct {
// ChargeInfo For each 1z there will exist a ChargeInfo object. These are the charges that were applied. This array is unbounded.
ChargeInfo []struct {
AccessorialCharge DeliveryInterceptChargeV2 `json:"accessorialCharge"`
// AdditionalHandlingIndicator Additional handling indicator. May be set by NRF during rating.
AdditionalHandlingIndicator *bool `json:"additionalHandlingIndicator,omitempty"`
// ChargeCurrency The <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank">ISO 4217</a> currency code
ChargeCurrency string `json:"chargeCurrency"`
// ChargesPaidByThirdPartyShipper Indicates if the charges were paid by a third-party shipper and must be supplied by trusted end clients only.
//
// | CODE | DESCRIPTION |
// | :--: | :-- |
// | TRUE | the charges were paid by a third-party shipper. |
// | FALSE | the charges were paid by the original shipper. |
ChargesPaidByThirdPartyShipper *bool `json:"chargesPaidByThirdPartyShipper,omitempty"`
// DisplayShipperPaidInterceptCharges Indicates if a message should be displayed that the shipper has paid for the charges related to the intercept
DisplayShipperPaidInterceptCharges *bool `json:"displayShipperPaidInterceptCharges,omitempty"`
// DisplayShipperPaidTransportationCharges Indicates if a message should be displayed that the shipper has paid for the charges related to transportation.
// Applicable only for Redirect to Another Address and Redirect to UPS Location intercepts. TRUE - display a message
// that the shipper has paid the transportation charges.
DisplayShipperPaidTransportationCharges *bool `json:"displayShipperPaidTransportationCharges,omitempty"`
// DowngradeServiceCode Downgraded service code.
DowngradeServiceCode *string `json:"downgradeServiceCode"`
// EstDeliveryDate Provides the future dates available for delivery
EstDeliveryDate DeliveryInterceptDateV2 `json:"estDeliveryDate"`
InterceptCharge DeliveryInterceptChargeV2 `json:"interceptCharge"`
// InterceptChargeDetail Unbounded array of intercept charges details, available only for intercept option AL
InterceptChargeDetail *[]DeliveryInterceptChargeDetailV2 `json:"interceptChargeDetail,omitempty"`
// OversizeCode Oversize indicator. May be set by NRF during rating LPK.
OversizeCode *string `json:"oversizeCode"`
// PackageWeight Package weight. May also be changed by NRF during rating to billable weight.
PackageWeight string `json:"packageWeight"`
// PackageWeightUOM Package weight unit of measure
PackageWeightUOM string `json:"packageWeightUOM"`
// PackagingType Packaging Type code. Refer to the Packaging Types document for more details.
PackagingType string `json:"packagingType"`
PreTaxTotalCharge DeliveryInterceptChargeV2 `json:"preTaxTotalCharge"`
// ResidentialIndicator Ship to residential indicator.
ResidentialIndicator *bool `json:"residentialIndicator,omitempty"`
// ServiceCode Original service code. Refer to the Service Codes document for more details.
ServiceCode string `json:"serviceCode"`
// ServiceDesc Original service description. Refer to the Service Codes document for more details.
ServiceDesc string `json:"serviceDesc"`
// ShipperName Name of the shipper Applicable for Intercept options FD,AA,UR etc.
ShipperName string `json:"shipperName"`
// ShipperPaidInterceptCharges Indicates if charges related to the intercept are paid by the shipper.
ShipperPaidInterceptCharges *bool `json:"shipperPaidInterceptCharges,omitempty"`
// ShipperPaidTransportationCharges Indicates if charges related to transportation are paid by the shipper. Applicable only for Redirect to Another Address.
ShipperPaidTransportationCharges *bool `json:"shipperPaidTransportationCharges,omitempty"`
// TaxDisclaimerIndicator Indicates if a tax disclaimer message should be displayed.
TaxDisclaimerIndicator DeliveryInterceptChargesResponseV2ResponseChargeInfoTaxDisclaimerIndicator `json:"taxDisclaimerIndicator"`
// Taxes Taxes for EU/Mexico/Canada country movement. This array is unbounded.
Taxes *[]struct {
// Tax Identifies the tax type
Tax *string `json:"tax,omitempty"`
TaxAmount *DeliveryInterceptChargeV2 `json:"taxAmount,omitempty"`
} `json:"taxes,omitempty"`
TotalCharge DeliveryInterceptChargeV2 `json:"totalCharge"`
TotalTax *DeliveryInterceptChargeV2 `json:"totalTax,omitempty"`
TrackingNumber DeliveryInterceptTrackingNumberV2 `json:"trackingNumber"`
TransportationCharge DeliveryInterceptChargeV2 `json:"transportationCharge"`
} `json:"chargeInfo"`
// Errors Unbounded array of error objects
Errors *[]DeliveryInterceptSuccessErrorV2 `json:"errors"`
// StatusCode API response status code, Internal code regarding the success or failure of the operation
StatusCode string `json:"statusCode"`
// StatusMsg API response status message, Internal message regarding the success or failure of the operation
StatusMsg *string `json:"statusMsg,omitempty"`
// SubStatusCode A new status code for adding granularity to the existing status code structure
SubStatusCode *string `json:"subStatusCode,omitempty"`
// Success Indicates if the transaction is considered successful.
Success *bool `json:"success,omitempty"`
// TransactionId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransactionId string `json:"transactionId"`
// Warnings A map containing warning codes and descriptions as key/value pairs
Warnings *map[string]interface{} `json:"warnings"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptChargesResponseV2_Response defines model for DeliveryInterceptChargesResponseV2.Response.
func (DeliveryInterceptChargesResponseV2_Response) Get ¶
func (a DeliveryInterceptChargesResponseV2_Response) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptChargesResponseV2_Response. Returns the specified element and whether it was found
func (DeliveryInterceptChargesResponseV2_Response) MarshalJSON ¶
func (a DeliveryInterceptChargesResponseV2_Response) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptChargesResponseV2_Response to handle AdditionalProperties
func (*DeliveryInterceptChargesResponseV2_Response) Set ¶
func (a *DeliveryInterceptChargesResponseV2_Response) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptChargesResponseV2_Response
func (*DeliveryInterceptChargesResponseV2_Response) UnmarshalJSON ¶
func (a *DeliveryInterceptChargesResponseV2_Response) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptChargesResponseV2_Response to handle AdditionalProperties
type DeliveryInterceptCommonResponseV2 ¶
type DeliveryInterceptCommonResponseV2 struct {
// Errors Unbounded array of error objects
Errors *[]DeliveryInterceptSuccessErrorV2 `json:"errors"`
// StatusCode API response status code, Internal code regarding the success or failure of the operation
StatusCode string `json:"statusCode"`
// StatusMsg API response status message, Internal message regarding the success or failure of the operation
StatusMsg *string `json:"statusMsg,omitempty"`
// SubStatusCode A new status code for adding granularity to the existing status code structure
SubStatusCode *string `json:"subStatusCode,omitempty"`
// Success Indicates if the transaction is considered successful.
Success *bool `json:"success,omitempty"`
// TransactionId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransactionId string `json:"transactionId"`
// Warnings A map containing warning codes and descriptions as key/value pairs
Warnings *map[string]interface{} `json:"warnings"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptCommonResponseV2 Object to contain properties common to all responses
func (DeliveryInterceptCommonResponseV2) Get ¶
func (a DeliveryInterceptCommonResponseV2) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptCommonResponseV2. Returns the specified element and whether it was found
func (DeliveryInterceptCommonResponseV2) MarshalJSON ¶
func (a DeliveryInterceptCommonResponseV2) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptCommonResponseV2 to handle AdditionalProperties
func (*DeliveryInterceptCommonResponseV2) Set ¶
func (a *DeliveryInterceptCommonResponseV2) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptCommonResponseV2
func (*DeliveryInterceptCommonResponseV2) UnmarshalJSON ¶
func (a *DeliveryInterceptCommonResponseV2) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptCommonResponseV2 to handle AdditionalProperties
type DeliveryInterceptDateV2 ¶
type DeliveryInterceptDateV2 = string
DeliveryInterceptDateV2 Provides the future dates available for delivery
type DeliveryInterceptEligibilityOptionsResponseV2 ¶
type DeliveryInterceptEligibilityOptionsResponseV2 struct {
Response DeliveryInterceptEligibilityOptionsResponseV2_Response `json:"response"`
}
DeliveryInterceptEligibilityOptionsResponseV2 Response schema for Delivery Change Eligibility request
type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber ¶
type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber string
DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber Provides the number of the day of the week
const ( N01 DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber = "01" N02 DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber = "02" N03 DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber = "03" N04 DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber = "04" N05 DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber = "05" N06 DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber = "06" N07 DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber = "07" )
Defines values for DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber.
type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText ¶
type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText string
DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText Provides the day of the week
const ( Friday DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText = "Friday" Monday DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText = "Monday" Sunday DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText = "Sunday" Thursday DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText = "Thursday" Tuesday DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText = "Tuesday" Wednesday DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText = "Wednesday" )
Defines values for DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText.
type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId ¶
type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId string
DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId Provides the reason code for RTS
const ( DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSIdAM DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId = "AM" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSIdAN DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId = "AN" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSIdAQ DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId = "AQ" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSIdAR DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId = "AR" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSIdAS DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId = "AS" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSIdFA DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId = "FA" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSIdKR DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId = "KR" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSIdKS DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId = "KS" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSIdKV DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId = "KV" )
Defines values for DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId.
type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature ¶
type DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature string
DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature The specific delivery change options eligibilty is being returned for
const ( DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeatureFD DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature = "FD" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeatureRD DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature = "RD" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeatureRTS DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature = "RTS" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeatureSDWC DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature = "SDWC" DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeatureWC DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature = "WC" )
Defines values for DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature.
type DeliveryInterceptEligibilityOptionsResponseV2_Response ¶
type DeliveryInterceptEligibilityOptionsResponseV2_Response struct {
// CommonEligibilityMap Object that contains eligibility values for each intercept feature
CommonEligibilityMap struct {
// EligibilityValue Object that holds the eligibility values for a particular delivery change
EligibilityValue *struct {
CancelEligibility DeliveryInterceptEligibilityValueV2 `json:"cancelEligibility"`
CreateEligibility DeliveryInterceptEligibilityValueV2 `json:"createEligibility"`
// DateOptionsforFutureDelivery Unbounded array of future delivery dates. Available only for future delivery intercept option
DateOptionsforFutureDelivery *[]struct {
// Date Provides the future dates available for delivery
Date *DeliveryInterceptDateV2 `json:"date,omitempty"`
// DayOfWeekNumber Provides the number of the day of the week
DayOfWeekNumber *DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekNumber `json:"dayOfWeekNumber,omitempty"`
// DayOfWeekText Provides the day of the week
DayOfWeekText *DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueDateOptionsforFutureDeliveryDayOfWeekText `json:"dayOfWeekText,omitempty"`
} `json:"dateOptionsforFutureDelivery,omitempty"`
ModifyEligibility DeliveryInterceptEligibilityValueV2 `json:"modifyEligibility"`
// ReasonOptionsForRTS Array of reasons why the item is being returned. Available only for RTS intercept option
ReasonOptionsForRTS *[]struct {
// Id Provides the reason code for RTS
Id DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapEligibilityValueReasonOptionsForRTSId `json:"id"`
// Value Provides the reason text for RTS
Value string `json:"value"`
} `json:"reasonOptionsForRTS,omitempty"`
} `json:"eligibilityValue,omitempty"`
// InterceptFeature The specific delivery change options eligibilty is being returned for
InterceptFeature *DeliveryInterceptEligibilityOptionsResponseV2ResponseCommonEligibilityMapInterceptFeature `json:"interceptFeature,omitempty"`
} `json:"commonEligibilityMap"`
// Errors Unbounded array of error objects
Errors *[]DeliveryInterceptSuccessErrorV2 `json:"errors"`
// StatusCode API response status code, Internal code regarding the success or failure of the operation
StatusCode string `json:"statusCode"`
// StatusMsg API response status message, Internal message regarding the success or failure of the operation
StatusMsg *string `json:"statusMsg,omitempty"`
// SubStatusCode A new status code for adding granularity to the existing status code structure
SubStatusCode *string `json:"subStatusCode,omitempty"`
// Success Indicates if the transaction is considered successful.
Success *bool `json:"success,omitempty"`
// TransactionId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransactionId string `json:"transactionId"`
// Warnings A map containing warning codes and descriptions as key/value pairs
Warnings *map[string]interface{} `json:"warnings"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptEligibilityOptionsResponseV2_Response defines model for DeliveryInterceptEligibilityOptionsResponseV2.Response.
func (DeliveryInterceptEligibilityOptionsResponseV2_Response) Get ¶
func (a DeliveryInterceptEligibilityOptionsResponseV2_Response) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptEligibilityOptionsResponseV2_Response. Returns the specified element and whether it was found
func (DeliveryInterceptEligibilityOptionsResponseV2_Response) MarshalJSON ¶
func (a DeliveryInterceptEligibilityOptionsResponseV2_Response) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptEligibilityOptionsResponseV2_Response to handle AdditionalProperties
func (*DeliveryInterceptEligibilityOptionsResponseV2_Response) Set ¶
func (a *DeliveryInterceptEligibilityOptionsResponseV2_Response) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptEligibilityOptionsResponseV2_Response
func (*DeliveryInterceptEligibilityOptionsResponseV2_Response) UnmarshalJSON ¶
func (a *DeliveryInterceptEligibilityOptionsResponseV2_Response) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptEligibilityOptionsResponseV2_Response to handle AdditionalProperties
type DeliveryInterceptEligibilityValueV2 ¶
type DeliveryInterceptEligibilityValueV2 string
DeliveryInterceptEligibilityValueV2 defines model for DeliveryInterceptEligibilityValueV2.
const ( ELIGIBLE DeliveryInterceptEligibilityValueV2 = "ELIGIBLE" NOTELIGIBLE DeliveryInterceptEligibilityValueV2 = "NOT_ELIGIBLE" UNKNOWN DeliveryInterceptEligibilityValueV2 = "UNKNOWN" )
Defines values for DeliveryInterceptEligibilityValueV2.
type DeliveryInterceptErrorResponseV2 ¶
type DeliveryInterceptErrorResponseV2 struct {
Response struct {
// Errors Will only be returned if the HTTP statusCode isn't '200'(success). A list of one or more validation errors. On the API version
// v3 the first element of the errors array contains the statusCode and scoring statusMessage field. This array is unbounded.
Errors []struct {
// Code the code of the error
Code *string `json:"code,omitempty"`
// Message the message of the error
Message *string `json:"message,omitempty"`
} `json:"errors"`
// StatusCode API response status code, Internal code regarding the success or failure of the operation
StatusCode string `json:"statusCode"`
// SubStatusCode A new status code for adding granularity to the existing status code structure
SubStatusCode *string `json:"subStatusCode,omitempty"`
// Success Indicates if the transaction is considered successful.
Success *bool `json:"success,omitempty"`
// TransactionId A unique value that will be used to identify the transaction for logging and troubleshooting purposes.
TransactionId *string `json:"transactionId,omitempty"`
} `json:"response"`
}
DeliveryInterceptErrorResponseV2 defines model for DeliveryInterceptErrorResponseV2.
type DeliveryInterceptRequestV2 ¶
type DeliveryInterceptRequestV2 struct {
// DeliveryDate Original scheduled date of delivery. Required olny for FD intercept type.
DeliveryDate *string `json:"deliveryDate,omitempty"`
// NewDeliveryAddress New delivery address. Required olny for AA intercept type.
NewDeliveryAddress *struct {
// AddressInfo Address object, include line1, line2, line 3 state, postal code and country code. Required when processing a request if imsAddressIdentifier is not present.
AddressInfo *DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo `json:"addressInfo,omitempty"`
// AddressNickName The nickname string assigned to the address entry. Required only for AA intercept type.
AddressNickName *string `json:"addressNickName,omitempty"`
// ContactName The contact name at the customer address.
ContactName *string `json:"contactName,omitempty"`
// EmailAddress Email Address at the customer address.
EmailAddress *string `json:"emailAddress,omitempty"`
// NameOrCompanyName The name of the company or person customer address.(Required When calling submitAddress() API Empty String can be passed)
NameOrCompanyName *string `json:"nameOrCompanyName,omitempty"`
// PhoneExt The phone extension number at the customer address.(Required When calling submitAddress() API Empty String can be passed)
PhoneExt *string `json:"phoneExt,omitempty"`
// PhoneNumber The contact phone number at the customer address.(Required When calling submitAddress() API Empty String can be passed)
PhoneNumber *string `json:"phoneNumber,omitempty"`
} `json:"newDeliveryAddress,omitempty"`
// ReasonForReturn Reason for return code. Required only for RS intercept type.
ReasonForReturn *DeliveryInterceptRequestV2ReasonForReturn `json:"reasonForReturn,omitempty"`
// RequestType The request type of the intercept being performed
RequestType *DeliveryInterceptRequestV2RequestType `json:"requestType,omitempty"`
RequesterContactInfo DeliveryInterceptRequestV2_RequesterContactInfo `json:"requesterContactInfo"`
// SpecialInstructions Special Instructions sent to the driver. Available only to AA intercept type
SpecialInstructions *string `json:"specialInstructions"`
}
DeliveryInterceptRequestV2 defines model for DeliveryInterceptRequestV2.
type DeliveryInterceptRequestV2ReasonForReturn ¶
type DeliveryInterceptRequestV2ReasonForReturn string
DeliveryInterceptRequestV2ReasonForReturn Reason for return code. Required only for RS intercept type.
const ( DeliveryInterceptRequestV2ReasonForReturnAM DeliveryInterceptRequestV2ReasonForReturn = "AM" DeliveryInterceptRequestV2ReasonForReturnAN DeliveryInterceptRequestV2ReasonForReturn = "AN" DeliveryInterceptRequestV2ReasonForReturnAQ DeliveryInterceptRequestV2ReasonForReturn = "AQ" DeliveryInterceptRequestV2ReasonForReturnAR DeliveryInterceptRequestV2ReasonForReturn = "AR" DeliveryInterceptRequestV2ReasonForReturnAS DeliveryInterceptRequestV2ReasonForReturn = "AS" DeliveryInterceptRequestV2ReasonForReturnFA DeliveryInterceptRequestV2ReasonForReturn = "FA" DeliveryInterceptRequestV2ReasonForReturnKR DeliveryInterceptRequestV2ReasonForReturn = "KR" DeliveryInterceptRequestV2ReasonForReturnKS DeliveryInterceptRequestV2ReasonForReturn = "KS" DeliveryInterceptRequestV2ReasonForReturnKV DeliveryInterceptRequestV2ReasonForReturn = "KV" )
Defines values for DeliveryInterceptRequestV2ReasonForReturn.
type DeliveryInterceptRequestV2RequestType ¶
type DeliveryInterceptRequestV2RequestType string
DeliveryInterceptRequestV2RequestType The request type of the intercept being performed
const ( AA DeliveryInterceptRequestV2RequestType = "AA" FD DeliveryInterceptRequestV2RequestType = "FD" RS DeliveryInterceptRequestV2RequestType = "RS" SC DeliveryInterceptRequestV2RequestType = "SC" WC DeliveryInterceptRequestV2RequestType = "WC" )
Defines values for DeliveryInterceptRequestV2RequestType.
type DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo ¶
type DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo struct {
// AddressLine1 Line 1 of the street address. Required if streetAddressParsedIndicator is FALSE; Required when setting Billing Address.
AddressLine1 string `json:"addressLine1"`
// AddressLine2 Line 2 of the street address
AddressLine2 *string `json:"addressLine2,omitempty"`
// AddressLine3 Line 3 of the street
AddressLine3 *string `json:"addressLine3,omitempty"`
// City The city name of the address
City string `json:"city"`
// CountryCode The ISO country code of the address
CountryCode string `json:"countryCode"`
// PostalCode The postal code of the address (should be provided for postal countries)
PostalCode string `json:"postalCode"`
// State The state code of the address
State string `json:"state"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo Address object, include line1, line2, line 3 state, postal code and country code. Required when processing a request if imsAddressIdentifier is not present.
func (DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) Get ¶
func (a DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo. Returns the specified element and whether it was found
func (DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) MarshalJSON ¶
func (a DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo to handle AdditionalProperties
func (*DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) Set ¶
func (a *DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo
func (*DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) UnmarshalJSON ¶
func (a *DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptRequestV2_NewDeliveryAddress_AddressInfo to handle AdditionalProperties
type DeliveryInterceptRequestV2_RequesterContactInfo ¶
type DeliveryInterceptRequestV2_RequesterContactInfo struct {
// AltPhoneExt Alternate Contact phone extension
AltPhoneExt *string `json:"altPhoneExt,omitempty"`
// AltTelephone Alternate Contact phone number
AltTelephone *string `json:"altTelephone,omitempty"`
// DisplayPhoneNumber Indicates if the phone number of a UAP can be displayed to external clients.
DisplayPhoneNumber *bool `json:"displayPhoneNumber,omitempty"`
// EmailAddress Contact email address
EmailAddress *string `json:"emailAddress,omitempty"`
// Name Contact Name
Name string `json:"name"`
// PhoneExt Contact phone extension
PhoneExt *string `json:"phoneExt,omitempty"`
// Telephone Contact phone number
Telephone string `json:"telephone"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeliveryInterceptRequestV2_RequesterContactInfo defines model for DeliveryInterceptRequestV2.RequesterContactInfo.
func (DeliveryInterceptRequestV2_RequesterContactInfo) Get ¶
func (a DeliveryInterceptRequestV2_RequesterContactInfo) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeliveryInterceptRequestV2_RequesterContactInfo. Returns the specified element and whether it was found
func (DeliveryInterceptRequestV2_RequesterContactInfo) MarshalJSON ¶
func (a DeliveryInterceptRequestV2_RequesterContactInfo) MarshalJSON() ([]byte, error)
Override default JSON handling for DeliveryInterceptRequestV2_RequesterContactInfo to handle AdditionalProperties
func (*DeliveryInterceptRequestV2_RequesterContactInfo) Set ¶
func (a *DeliveryInterceptRequestV2_RequesterContactInfo) Set(fieldName string, value interface{})
Setter for additional properties for DeliveryInterceptRequestV2_RequesterContactInfo
func (*DeliveryInterceptRequestV2_RequesterContactInfo) UnmarshalJSON ¶
func (a *DeliveryInterceptRequestV2_RequesterContactInfo) UnmarshalJSON(b []byte) error
Override default JSON handling for DeliveryInterceptRequestV2_RequesterContactInfo to handle AdditionalProperties
type DeliveryInterceptResponseV2 ¶
type DeliveryInterceptResponseV2 struct {
// Errors Unbounded array of error objects
Errors *[]DeliveryInterceptSuccessErrorV2 `json:"errors"`
// StatusCode API response status code, Internal code regarding the success or failure of the operation
StatusCode string `json:"statusCode"`
// StatusMsg API response status message, Internal message regarding the success or failure of the operation
StatusMsg *string `json:"statusMsg,omitempty"`
// SubStatusCode A new status code for adding granularity to the existing status code structure
SubStatusCode *string `json:"subStatusCode,omitempty"`
// Success Indicates if the transaction is considered successful.
Success bool `json:"success"`
// TransactionId A unique value that will be used to identify the transaction for logging and troubleshooting purposes.
TransactionId string `json:"transactionId"`
// Warnings A map containing warning codes and descriptions as key/value pairs.
Warnings *map[string]string `json:"warnings,omitempty"`
}
DeliveryInterceptResponseV2 defines model for DeliveryInterceptResponseV2.
type DeliveryInterceptSuccessErrorV2 ¶
type DeliveryInterceptSuccessErrorV2 struct {
// ErrorCode The code of the error
ErrorCode string `json:"errorCode"`
// ErrorMessage The message of the error
ErrorMessage string `json:"errorMessage"`
// ErrorSource The source of the error
ErrorSource *string `json:"errorSource,omitempty"`
}
DeliveryInterceptSuccessErrorV2 Container to hold details related to an individual error. Will only be returned if the HTTP statusCode isn't '200'(success). On the API version v3 the first element of the errors array contains the statusCode and scoring statusMessage field.
type DeliveryInterceptTrackingNumberV2 ¶
type DeliveryInterceptTrackingNumberV2 = string
DeliveryInterceptTrackingNumberV2 defines model for DeliveryInterceptTrackingNumberV2.
type GetChargesJSONRequestBody ¶
type GetChargesJSONRequestBody = DeliveryInterceptChargesRequestV2
GetChargesJSONRequestBody defines body for GetCharges for application/json ContentType.
type GetChargesParams ¶
type GetChargesParams struct {
// TransId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransId TransId `json:"transId"`
}
GetChargesParams defines parameters for GetCharges.
type GetChargesResponse ¶
type GetChargesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeliveryInterceptChargesResponseV2
JSON400 *DeliveryInterceptErrorResponseV2
JSON401 *DeliveryInterceptErrorResponseV2
}
func ParseGetChargesResponse ¶
func ParseGetChargesResponse(rsp *http.Response) (*GetChargesResponse, error)
ParseGetChargesResponse parses an HTTP response from a GetChargesWithResponse call
func (GetChargesResponse) Status ¶
func (r GetChargesResponse) Status() string
Status returns HTTPResponse.Status
func (GetChargesResponse) StatusCode ¶
func (r GetChargesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEligibilityOptionsParams ¶
type GetEligibilityOptionsParams struct {
// TransId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransId TransId `json:"transId"`
}
GetEligibilityOptionsParams defines parameters for GetEligibilityOptions.
type GetEligibilityOptionsResponse ¶
type GetEligibilityOptionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeliveryInterceptEligibilityOptionsResponseV2
JSON400 *DeliveryInterceptErrorResponseV2
JSON401 *DeliveryInterceptErrorResponseV2
}
func ParseGetEligibilityOptionsResponse ¶
func ParseGetEligibilityOptionsResponse(rsp *http.Response) (*GetEligibilityOptionsResponse, error)
ParseGetEligibilityOptionsResponse parses an HTTP response from a GetEligibilityOptionsWithResponse call
func (GetEligibilityOptionsResponse) Status ¶
func (r GetEligibilityOptionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetEligibilityOptionsResponse) StatusCode ¶
func (r GetEligibilityOptionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRedirectInterceptOptionsJSONRequestBody ¶
type GetRedirectInterceptOptionsJSONRequestBody = DeliveryInterceptRequestV2
GetRedirectInterceptOptionsJSONRequestBody defines body for GetRedirectInterceptOptions for application/json ContentType.
type GetRedirectInterceptOptionsParams ¶
type GetRedirectInterceptOptionsParams struct {
// TransId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransId TransId `json:"transId"`
}
GetRedirectInterceptOptionsParams defines parameters for GetRedirectInterceptOptions.
type GetRedirectInterceptOptionsResponse ¶
type GetRedirectInterceptOptionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeliveryInterceptResponseV2
JSON400 *DeliveryInterceptErrorResponseV2
JSON401 *DeliveryInterceptErrorResponseV2
}
func ParseGetRedirectInterceptOptionsResponse ¶
func ParseGetRedirectInterceptOptionsResponse(rsp *http.Response) (*GetRedirectInterceptOptionsResponse, error)
ParseGetRedirectInterceptOptionsResponse parses an HTTP response from a GetRedirectInterceptOptionsWithResponse call
func (GetRedirectInterceptOptionsResponse) Status ¶
func (r GetRedirectInterceptOptionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetRedirectInterceptOptionsResponse) StatusCode ¶
func (r GetRedirectInterceptOptionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RescheduleInterceptOptionJSONRequestBody ¶
type RescheduleInterceptOptionJSONRequestBody = DeliveryInterceptRequestV2
RescheduleInterceptOptionJSONRequestBody defines body for RescheduleInterceptOption for application/json ContentType.
type RescheduleInterceptOptionParams ¶
type RescheduleInterceptOptionParams struct {
// TransId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransId TransId `json:"transId"`
}
RescheduleInterceptOptionParams defines parameters for RescheduleInterceptOption.
type RescheduleInterceptOptionResponse ¶
type RescheduleInterceptOptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeliveryInterceptResponseV2
JSON400 *DeliveryInterceptErrorResponseV2
JSON401 *DeliveryInterceptErrorResponseV2
}
func ParseRescheduleInterceptOptionResponse ¶
func ParseRescheduleInterceptOptionResponse(rsp *http.Response) (*RescheduleInterceptOptionResponse, error)
ParseRescheduleInterceptOptionResponse parses an HTTP response from a RescheduleInterceptOptionWithResponse call
func (RescheduleInterceptOptionResponse) Status ¶
func (r RescheduleInterceptOptionResponse) Status() string
Status returns HTTPResponse.Status
func (RescheduleInterceptOptionResponse) StatusCode ¶
func (r RescheduleInterceptOptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReturnInterceptOptionJSONRequestBody ¶
type ReturnInterceptOptionJSONRequestBody = DeliveryInterceptRequestV2
ReturnInterceptOptionJSONRequestBody defines body for ReturnInterceptOption for application/json ContentType.
type ReturnInterceptOptionParams ¶
type ReturnInterceptOptionParams struct {
// TransId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransId TransId `json:"transId"`
}
ReturnInterceptOptionParams defines parameters for ReturnInterceptOption.
type ReturnInterceptOptionResponse ¶
type ReturnInterceptOptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeliveryInterceptResponseV2
JSON400 *DeliveryInterceptErrorResponseV2
JSON401 *DeliveryInterceptErrorResponseV2
}
func ParseReturnInterceptOptionResponse ¶
func ParseReturnInterceptOptionResponse(rsp *http.Response) (*ReturnInterceptOptionResponse, error)
ParseReturnInterceptOptionResponse parses an HTTP response from a ReturnInterceptOptionWithResponse call
func (ReturnInterceptOptionResponse) Status ¶
func (r ReturnInterceptOptionResponse) Status() string
Status returns HTTPResponse.Status
func (ReturnInterceptOptionResponse) StatusCode ¶
func (r ReturnInterceptOptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WillcallInterceptOptionJSONRequestBody ¶
type WillcallInterceptOptionJSONRequestBody = DeliveryInterceptRequestV2
WillcallInterceptOptionJSONRequestBody defines body for WillcallInterceptOption for application/json ContentType.
type WillcallInterceptOptionParams ¶
type WillcallInterceptOptionParams struct {
// TransId A unique value that will be used to identify the transaction for logging and troubleshooting purposes
TransId TransId `json:"transId"`
}
WillcallInterceptOptionParams defines parameters for WillcallInterceptOption.
type WillcallInterceptOptionResponse ¶
type WillcallInterceptOptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeliveryInterceptResponseV2
JSON400 *DeliveryInterceptErrorResponseV2
JSON401 *DeliveryInterceptErrorResponseV2
}
func ParseWillcallInterceptOptionResponse ¶
func ParseWillcallInterceptOptionResponse(rsp *http.Response) (*WillcallInterceptOptionResponse, error)
ParseWillcallInterceptOptionResponse parses an HTTP response from a WillcallInterceptOptionWithResponse call
func (WillcallInterceptOptionResponse) Status ¶
func (r WillcallInterceptOptionResponse) Status() string
Status returns HTTPResponse.Status
func (WillcallInterceptOptionResponse) StatusCode ¶
func (r WillcallInterceptOptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode