smartpickup

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package smartpickup 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

View Source
const (
	Oauth2Scopes    = "oauth2.Scopes"
	Oauth2CieScopes = "oauth2Cie.Scopes"
)

Variables

This section is empty.

Functions

func NewSmartTriggerRequest

func NewSmartTriggerRequest(server string, params *SmartTriggerParams, body SmartTriggerJSONRequestBody) (*http.Request, error)

NewSmartTriggerRequest calls the generic SmartTrigger builder with application/json body

func NewSmartTriggerRequestWithBody

func NewSmartTriggerRequestWithBody(server string, params *SmartTriggerParams, contentType string, body io.Reader) (*http.Request, error)

NewSmartTriggerRequestWithBody generates requests for SmartTrigger with any type of body

func NewUpdatePickupInfoRequest

func NewUpdatePickupInfoRequest(server string, params *UpdatePickupInfoParams, body UpdatePickupInfoJSONRequestBody) (*http.Request, error)

NewUpdatePickupInfoRequest calls the generic UpdatePickupInfo builder with application/json body

func NewUpdatePickupInfoRequestWithBody

func NewUpdatePickupInfoRequestWithBody(server string, params *UpdatePickupInfoParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePickupInfoRequestWithBody generates requests for UpdatePickupInfo with any type of body

func NewViewPickupInfoRequest

func NewViewPickupInfoRequest(server string, params *ViewPickupInfoParams, body ViewPickupInfoJSONRequestBody) (*http.Request, error)

NewViewPickupInfoRequest calls the generic ViewPickupInfo builder with application/json body

func NewViewPickupInfoRequestWithBody

func NewViewPickupInfoRequestWithBody(server string, params *ViewPickupInfoParams, contentType string, body io.Reader) (*http.Request, error)

NewViewPickupInfoRequestWithBody generates requests for ViewPickupInfo with any type of body

Types

type BadRequest

type BadRequest = SmartPickupErrorResponseV1

BadRequest Response object for errors

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) SmartTrigger

func (c *Client) SmartTrigger(ctx context.Context, params *SmartTriggerParams, body SmartTriggerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SmartTriggerWithBody

func (c *Client) SmartTriggerWithBody(ctx context.Context, params *SmartTriggerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePickupInfo

func (c *Client) UpdatePickupInfo(ctx context.Context, params *UpdatePickupInfoParams, body UpdatePickupInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePickupInfoWithBody

func (c *Client) UpdatePickupInfoWithBody(ctx context.Context, params *UpdatePickupInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ViewPickupInfo

func (c *Client) ViewPickupInfo(ctx context.Context, params *ViewPickupInfoParams, body ViewPickupInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ViewPickupInfoWithBody

func (c *Client) ViewPickupInfoWithBody(ctx context.Context, params *ViewPickupInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// SmartTriggerWithBody request with any body
	SmartTriggerWithBody(ctx context.Context, params *SmartTriggerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SmartTrigger(ctx context.Context, params *SmartTriggerParams, body SmartTriggerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePickupInfoWithBody request with any body
	UpdatePickupInfoWithBody(ctx context.Context, params *UpdatePickupInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePickupInfo(ctx context.Context, params *UpdatePickupInfoParams, body UpdatePickupInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ViewPickupInfoWithBody request with any body
	ViewPickupInfoWithBody(ctx context.Context, params *ViewPickupInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ViewPickupInfo(ctx context.Context, params *ViewPickupInfoParams, body ViewPickupInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) SmartTriggerWithBodyWithResponse

func (c *ClientWithResponses) SmartTriggerWithBodyWithResponse(ctx context.Context, params *SmartTriggerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SmartTriggerResponse, error)

SmartTriggerWithBodyWithResponse request with arbitrary body returning *SmartTriggerResponse

func (*ClientWithResponses) SmartTriggerWithResponse

func (c *ClientWithResponses) SmartTriggerWithResponse(ctx context.Context, params *SmartTriggerParams, body SmartTriggerJSONRequestBody, reqEditors ...RequestEditorFn) (*SmartTriggerResponse, error)

func (*ClientWithResponses) UpdatePickupInfoWithBodyWithResponse

func (c *ClientWithResponses) UpdatePickupInfoWithBodyWithResponse(ctx context.Context, params *UpdatePickupInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePickupInfoResponse, error)

UpdatePickupInfoWithBodyWithResponse request with arbitrary body returning *UpdatePickupInfoResponse

func (*ClientWithResponses) UpdatePickupInfoWithResponse

func (c *ClientWithResponses) UpdatePickupInfoWithResponse(ctx context.Context, params *UpdatePickupInfoParams, body UpdatePickupInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePickupInfoResponse, error)

func (*ClientWithResponses) ViewPickupInfoWithBodyWithResponse

func (c *ClientWithResponses) ViewPickupInfoWithBodyWithResponse(ctx context.Context, params *ViewPickupInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ViewPickupInfoResponse, error)

ViewPickupInfoWithBodyWithResponse request with arbitrary body returning *ViewPickupInfoResponse

func (*ClientWithResponses) ViewPickupInfoWithResponse

func (c *ClientWithResponses) ViewPickupInfoWithResponse(ctx context.Context, params *ViewPickupInfoParams, body ViewPickupInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*ViewPickupInfoResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// SmartTriggerWithBodyWithResponse request with any body
	SmartTriggerWithBodyWithResponse(ctx context.Context, params *SmartTriggerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SmartTriggerResponse, error)

	SmartTriggerWithResponse(ctx context.Context, params *SmartTriggerParams, body SmartTriggerJSONRequestBody, reqEditors ...RequestEditorFn) (*SmartTriggerResponse, error)

	// UpdatePickupInfoWithBodyWithResponse request with any body
	UpdatePickupInfoWithBodyWithResponse(ctx context.Context, params *UpdatePickupInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePickupInfoResponse, error)

	UpdatePickupInfoWithResponse(ctx context.Context, params *UpdatePickupInfoParams, body UpdatePickupInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePickupInfoResponse, error)

	// ViewPickupInfoWithBodyWithResponse request with any body
	ViewPickupInfoWithBodyWithResponse(ctx context.Context, params *ViewPickupInfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ViewPickupInfoResponse, error)

	ViewPickupInfoWithResponse(ctx context.Context, params *ViewPickupInfoParams, body ViewPickupInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*ViewPickupInfoResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ServerError

type ServerError = SmartPickupErrorResponseV1

ServerError Response object for errors

type SmartPickupAccountInfoV1

type SmartPickupAccountInfoV1 struct {
	// AccountNmber The existing UPS account number.
	AccountNmber *SmartPickupAccountNumberV1 `json:"AccountNmber,omitempty"`

	// CountryCode The <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank">ISO 3166</a> country or territory code
	CountryCode          *SmartPickupCountryCodeV1 `json:"CountryCode,omitempty"`
	AdditionalProperties map[string]interface{}    `json:"-"`
}

SmartPickupAccountInfoV1 The UPS account information that you want to use for SmartPickupTrigger and NotificationIndicator

func (SmartPickupAccountInfoV1) Get

func (a SmartPickupAccountInfoV1) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for SmartPickupAccountInfoV1. Returns the specified element and whether it was found

func (SmartPickupAccountInfoV1) MarshalJSON

func (a SmartPickupAccountInfoV1) MarshalJSON() ([]byte, error)

Override default JSON handling for SmartPickupAccountInfoV1 to handle AdditionalProperties

func (*SmartPickupAccountInfoV1) Set

func (a *SmartPickupAccountInfoV1) Set(fieldName string, value interface{})

Setter for additional properties for SmartPickupAccountInfoV1

func (*SmartPickupAccountInfoV1) UnmarshalJSON

func (a *SmartPickupAccountInfoV1) UnmarshalJSON(b []byte) error

Override default JSON handling for SmartPickupAccountInfoV1 to handle AdditionalProperties

type SmartPickupAccountNumberV1

type SmartPickupAccountNumberV1 = string

SmartPickupAccountNumberV1 The existing UPS account number.

type SmartPickupAddressV1

type SmartPickupAddressV1 struct {
	// Address To obtain the pickup address.
	Address struct {
		// AddressLine2 Additional address information. Not applicable for US, CA, and PR.
		AddressLine2 *string `json:"AddressLine2,omitempty"`

		// AddressLine3 Additional address information. Not applicable for US, CA, and PR.
		AddressLine3 *string `json:"AddressLine3,omitempty"`

		// City City Name.
		City *string `json:"City,omitempty"`

		// CompanyName Company name for pickup address.
		CompanyName *string `json:"CompanyName,omitempty"`

		// CountryCode The <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank">ISO 3166</a> country or territory code
		CountryCode *SmartPickupCountryCodeV1 `json:"CountryCode,omitempty"`

		// PostalCode Postal code or equivalent for postal countries.
		PostalCode *string `json:"PostalCode,omitempty"`

		// PostalCodeExtension Postal Code Extension.
		PostalCodeExtension *string `json:"PostalCodeExtension,omitempty"`

		// RoomSuite Room or Suite Number. Only for US, CA, and PR.
		RoomSuite *string `json:"RoomSuite,omitempty"`

		// State The <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US" target="_blank">ISO 3166-2</a> state code.
		State *string `json:"State,omitempty"`

		// StreetName Street name for pickup location.
		StreetName string `json:"StreetName"`

		// StreetNumber Street number for pickup location.
		StreetNumber *string `json:"StreetNumber,omitempty"`

		// StreetPrefix Street Prefix for pickup location.
		StreetPrefix *string `json:"StreetPrefix,omitempty"`

		// StreetSuffix Street Suffix for pickup location.
		StreetSuffix *string `json:"StreetSuffix,omitempty"`

		// StreetType Street type for pickup location.
		StreetType *string `json:"StreetType,omitempty"`
	} `json:"Address"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

SmartPickupAddressV1 To obtain the pickup Address details

func (SmartPickupAddressV1) Get

func (a SmartPickupAddressV1) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for SmartPickupAddressV1. Returns the specified element and whether it was found

func (SmartPickupAddressV1) MarshalJSON

func (a SmartPickupAddressV1) MarshalJSON() ([]byte, error)

Override default JSON handling for SmartPickupAddressV1 to handle AdditionalProperties

func (*SmartPickupAddressV1) Set

func (a *SmartPickupAddressV1) Set(fieldName string, value interface{})

Setter for additional properties for SmartPickupAddressV1

func (*SmartPickupAddressV1) UnmarshalJSON

func (a *SmartPickupAddressV1) UnmarshalJSON(b []byte) error

Override default JSON handling for SmartPickupAddressV1 to handle AdditionalProperties

type SmartPickupCommonResponseV1

type SmartPickupCommonResponseV1 struct {
	// Alert Alert Container.
	Alert struct {
		// Code Warning code returned by the system
		Code string `json:"Code"`

		// Description Warning description returned by the system
		Description string `json:"Description"`
	} `json:"Alert"`

	// ResponseStatus The Response status container
	ResponseStatus struct {
		// Code Identifies the success of the transaction.
		Code SmartPickupCommonResponseV1ResponseStatusCode `json:"Code"`

		// Description Describes Response Status Code. Such as Success
		Description string `json:"Description"`
	} `json:"ResponseStatus"`

	// TransactionReference Transaction Reference Container
	TransactionReference *struct {
		// CustomerContext The CustomerContext Information which will be echoed during response.
		CustomerContext string `json:"CustomerContext"`

		// TransactionIdentifier The Unique TransactionIdentifier Information for that transaction.
		TransactionIdentifier string `json:"TransactionIdentifier"`
	} `json:"TransactionReference,omitempty"`
}

SmartPickupCommonResponseV1 The generic response container

type SmartPickupCommonResponseV1ResponseStatusCode

type SmartPickupCommonResponseV1ResponseStatusCode string

SmartPickupCommonResponseV1ResponseStatusCode Identifies the success of the transaction.

Defines values for SmartPickupCommonResponseV1ResponseStatusCode.

type SmartPickupCountryCodeV1

type SmartPickupCountryCodeV1 = string

SmartPickupCountryCodeV1 The <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank">ISO 3166</a> country or territory code

type SmartPickupErrorResponseV1

type SmartPickupErrorResponseV1 struct {
	// Response Response container to store errors
	Response struct {
		// Errors Unbounded array containing one or more errors
		Errors []struct {
			// Code error code
			Code string `json:"code"`

			// Message error message
			Message string `json:"message"`
		} `json:"errors"`
	} `json:"response"`
}

SmartPickupErrorResponseV1 Response object for errors

type SmartPickupLocaleV1

type SmartPickupLocaleV1 struct {
	// CountryCode The <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank">ISO 3166</a> country or territory code
	CountryCode SmartPickupCountryCodeV1 `json:"CountryCode"`

	// LanguageCode The <a href="https://www.iso.org/iso-639-language-code.html" target="_blank">ISO 639</a> language codes
	LanguageCode string `json:"LanguageCode"`
}

SmartPickupLocaleV1 To set locale information

type SmartPickupNotificationIndicatorV1

type SmartPickupNotificationIndicatorV1 string

SmartPickupNotificationIndicatorV1 Notification opt-out - a CTA/link on the transactional PU alert that takes the User to a unique landing page (determined by whether the User/Email combo have a ups.com User ID or not) so that they can opt-out of receiving these transactional alerts for this account. Required when Action is Add or Update.

const (
	SmartPickupNotificationIndicatorV1N01 SmartPickupNotificationIndicatorV1 = "01"
	SmartPickupNotificationIndicatorV1N02 SmartPickupNotificationIndicatorV1 = "02"
)

Defines values for SmartPickupNotificationIndicatorV1.

type SmartPickupPendingStatusIndicatorV1

type SmartPickupPendingStatusIndicatorV1 = string

SmartPickupPendingStatusIndicatorV1 Available when existing PickupTypeCode changes are pending.

type SmartPickupPickupInfoResponseV1

type SmartPickupPickupInfoResponseV1 struct {
	// AccountNumber UPS Account Number. Must be an existing UPS account number
	AccountNumber    *string            `json:"AccountNumber,omitempty"`
	PickUpNotifyTime *SmartPickupTimeV1 `json:"PickUpNotifyTime,omitempty"`

	// PickUpPendingStatusIndicator Available when existing PickupTypeCode changes are pending.
	PickUpPendingStatusIndicator *SmartPickupPendingStatusIndicatorV1 `json:"PickUpPendingStatusIndicator,omitempty"`

	// Response The generic response container
	Response                SmartPickupCommonResponseV1 `json:"Response"`
	SundayPickUpNotifyTime  *SmartPickupTimeV1          `json:"SundayPickUpNotifyTime,omitempty"`
	WeekEndPickUpNotifyTime *SmartPickupTimeV1          `json:"WeekEndPickUpNotifyTime,omitempty"`
	AdditionalProperties    map[string]interface{}      `json:"-"`
}

SmartPickupPickupInfoResponseV1 defines model for SmartPickupPickupInfoResponseV1.

func (SmartPickupPickupInfoResponseV1) Get

func (a SmartPickupPickupInfoResponseV1) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for SmartPickupPickupInfoResponseV1. Returns the specified element and whether it was found

func (SmartPickupPickupInfoResponseV1) MarshalJSON

func (a SmartPickupPickupInfoResponseV1) MarshalJSON() ([]byte, error)

Override default JSON handling for SmartPickupPickupInfoResponseV1 to handle AdditionalProperties

func (*SmartPickupPickupInfoResponseV1) Set

func (a *SmartPickupPickupInfoResponseV1) Set(fieldName string, value interface{})

Setter for additional properties for SmartPickupPickupInfoResponseV1

func (*SmartPickupPickupInfoResponseV1) UnmarshalJSON

func (a *SmartPickupPickupInfoResponseV1) UnmarshalJSON(b []byte) error

Override default JSON handling for SmartPickupPickupInfoResponseV1 to handle AdditionalProperties

type SmartPickupPickupInfoV1

type SmartPickupPickupInfoV1 struct {
	PickUpTime SmartPickupPickupTimeV1 `json:"PickUpTime"`

	// PickupPoint Location of shipment pickup.
	PickupPoint SmartPickupPickupPointV1 `json:"PickupPoint"`

	// WeekendPickupInformation Weekend pickup Information. Available when WeekendServiceTerritoryIndicator is populated and PickupTypeCode is **02**.
	WeekendPickupInformation *struct {
		// DeliveryOptions Weekend delivery options. Valid only for US.
		DeliveryOptions *SmartPickupPickupInfoV1WeekendPickupInformationDeliveryOptions `json:"DeliveryOptions,omitempty"`

		// PickUpDate Unbounded container for weekend pickup dates
		PickUpDate []struct {
			WeekEndPickUpDay SmartPickupPickupInfoV1WeekendPickupInformationPickUpDateWeekEndPickUpDay `json:"WeekEndPickUpDay"`
		} `json:"PickUpDate"`
		PickUpTime SmartPickupPickupTimeV1 `json:"PickUpTime"`

		// PickupPoint Location of shipment pickup.
		PickupPoint SmartPickupPickupPointV1 `json:"PickupPoint"`
	} `json:"WeekendPickupInformation,omitempty"`

	// WeekendServiceTerritoryIndicator Indicates if the pickup address qualifies for WST (Weekend Service Territory) pickup.
	// Available when PickupTypeCode is **02** and pickup address is WST area.
	WeekendServiceTerritoryIndicator *SmartPickupPickupInfoV1WeekendServiceTerritoryIndicator `json:"WeekendServiceTerritoryIndicator,omitempty"`
	AdditionalProperties             map[string]interface{}                                   `json:"-"`
}

SmartPickupPickupInfoV1 PickUpInfo Contains PickUp Location information. Available when PickupTypeCode is **02**.

func (SmartPickupPickupInfoV1) Get

func (a SmartPickupPickupInfoV1) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for SmartPickupPickupInfoV1. Returns the specified element and whether it was found

func (SmartPickupPickupInfoV1) MarshalJSON

func (a SmartPickupPickupInfoV1) MarshalJSON() ([]byte, error)

Override default JSON handling for SmartPickupPickupInfoV1 to handle AdditionalProperties

func (*SmartPickupPickupInfoV1) Set

func (a *SmartPickupPickupInfoV1) Set(fieldName string, value interface{})

Setter for additional properties for SmartPickupPickupInfoV1

func (*SmartPickupPickupInfoV1) UnmarshalJSON

func (a *SmartPickupPickupInfoV1) UnmarshalJSON(b []byte) error

Override default JSON handling for SmartPickupPickupInfoV1 to handle AdditionalProperties

type SmartPickupPickupInfoV1WeekendPickupInformationDeliveryOptions

type SmartPickupPickupInfoV1WeekendPickupInformationDeliveryOptions string

SmartPickupPickupInfoV1WeekendPickupInformationDeliveryOptions Weekend delivery options. Valid only for US.

const (
	SmartPickupPickupInfoV1WeekendPickupInformationDeliveryOptionsN01 SmartPickupPickupInfoV1WeekendPickupInformationDeliveryOptions = "01"
	SmartPickupPickupInfoV1WeekendPickupInformationDeliveryOptionsN02 SmartPickupPickupInfoV1WeekendPickupInformationDeliveryOptions = "02"
)

Defines values for SmartPickupPickupInfoV1WeekendPickupInformationDeliveryOptions.

type SmartPickupPickupInfoV1WeekendPickupInformationPickUpDateWeekEndPickUpDay

type SmartPickupPickupInfoV1WeekendPickupInformationPickUpDateWeekEndPickUpDay string

SmartPickupPickupInfoV1WeekendPickupInformationPickUpDateWeekEndPickUpDay defines model for SmartPickupPickupInfoV1.WeekendPickupInformation.PickUpDate.WeekEndPickUpDay.

const (
	SmartPickupPickupInfoV1WeekendPickupInformationPickUpDateWeekEndPickUpDayN01 SmartPickupPickupInfoV1WeekendPickupInformationPickUpDateWeekEndPickUpDay = "01"
	SmartPickupPickupInfoV1WeekendPickupInformationPickUpDateWeekEndPickUpDayN02 SmartPickupPickupInfoV1WeekendPickupInformationPickUpDateWeekEndPickUpDay = "02"
)

Defines values for SmartPickupPickupInfoV1WeekendPickupInformationPickUpDateWeekEndPickUpDay.

type SmartPickupPickupInfoV1WeekendServiceTerritoryIndicator

type SmartPickupPickupInfoV1WeekendServiceTerritoryIndicator string

SmartPickupPickupInfoV1WeekendServiceTerritoryIndicator Indicates if the pickup address qualifies for WST (Weekend Service Territory) pickup. Available when PickupTypeCode is **02** and pickup address is WST area.

const (
	SmartPickupPickupInfoV1WeekendServiceTerritoryIndicatorN SmartPickupPickupInfoV1WeekendServiceTerritoryIndicator = "N"
	SmartPickupPickupInfoV1WeekendServiceTerritoryIndicatorY SmartPickupPickupInfoV1WeekendServiceTerritoryIndicator = "Y"
)

Defines values for SmartPickupPickupInfoV1WeekendServiceTerritoryIndicator.

type SmartPickupPickupPointV1

type SmartPickupPickupPointV1 string

SmartPickupPickupPointV1 Location of shipment pickup.

const (
	SmartPickupPickupPointV1N001 SmartPickupPickupPointV1 = "001"
	SmartPickupPickupPointV1N002 SmartPickupPickupPointV1 = "002"
	SmartPickupPickupPointV1N003 SmartPickupPickupPointV1 = "003"
	SmartPickupPickupPointV1N004 SmartPickupPickupPointV1 = "004"
	SmartPickupPickupPointV1N005 SmartPickupPickupPointV1 = "005"
	SmartPickupPickupPointV1N006 SmartPickupPickupPointV1 = "006"
	SmartPickupPickupPointV1N007 SmartPickupPickupPointV1 = "007"
	SmartPickupPickupPointV1N010 SmartPickupPickupPointV1 = "010"
	SmartPickupPickupPointV1N011 SmartPickupPickupPointV1 = "011"
	SmartPickupPickupPointV1N012 SmartPickupPickupPointV1 = "012"
	SmartPickupPickupPointV1N013 SmartPickupPickupPointV1 = "013"
	SmartPickupPickupPointV1N014 SmartPickupPickupPointV1 = "014"
	SmartPickupPickupPointV1N8   SmartPickupPickupPointV1 = "8"
	SmartPickupPickupPointV1N9   SmartPickupPickupPointV1 = "9"
)

Defines values for SmartPickupPickupPointV1.

type SmartPickupPickupTimeV1

type SmartPickupPickupTimeV1 struct {
	EarliestTime  SmartPickupTimeV1 `json:"EarliestTime"`
	LatestTime    SmartPickupTimeV1 `json:"LatestTime"`
	PreferredTime SmartPickupTimeV1 `json:"PreferredTime"`
}

SmartPickupPickupTimeV1 defines model for SmartPickupPickupTimeV1.

type SmartPickupRequestV1

type SmartPickupRequestV1 struct {
	// SmartPickupRequest The SmartPickup request container
	SmartPickupRequest struct {
		// AccountInfo The UPS account information that you want to use for SmartPickupTrigger and NotificationIndicator
		AccountInfo SmartPickupAccountInfoV1 `json:"AccountInfo"`

		// Action Action indicator to decide the flow.
		Action SmartPickupRequestV1SmartPickupRequestAction `json:"Action"`

		// NotificationIndicator Notification opt-out - a CTA/link on the transactional PU alert that takes the User to a unique landing page
		// (determined by whether the User/Email combo have a ups.com User ID or not) so that they can opt-out of receiving
		// these transactional alerts for this account. Required when Action is Add or Update.
		NotificationIndicator *SmartPickupNotificationIndicatorV1 `json:"NotificationIndicator,omitempty"`

		// SmartPickupTrigger Smart pickup trigger when the PU event (PRN) for the Smart PU is moved from pending to scheduled. Required when Action is Add or Updtae.
		SmartPickupTrigger *SmartPickupTriggerV1 `json:"SmartPickupTrigger,omitempty"`
	} `json:"SmartPickupRequest"`
}

SmartPickupRequestV1 The SmartPickup request container

type SmartPickupRequestV1SmartPickupRequestAction

type SmartPickupRequestV1SmartPickupRequestAction string

SmartPickupRequestV1SmartPickupRequestAction Action indicator to decide the flow.

Defines values for SmartPickupRequestV1SmartPickupRequestAction.

type SmartPickupResponseV1

type SmartPickupResponseV1 struct {
	// SmartPickupResponse The SmartPickup response for a successful request.
	SmartPickupResponse struct {
		// NotificationIndicator Notification opt-out - a CTA/link on the transactional PU alert that takes the User to a unique landing page
		// (determined by whether the User/Email combo have a ups.com User ID or not) so that they can opt-out of receiving
		// these transactional alerts for this account. Required when Action is Add or Update.
		NotificationIndicator SmartPickupNotificationIndicatorV1 `json:"NotificationIndicator"`

		// Response The generic response container
		Response SmartPickupCommonResponseV1 `json:"Response"`

		// SmartPickupTrigger Smart pickup trigger when the PU event (PRN) for the Smart PU is moved from pending to scheduled. Required when Action is Add or Updtae.
		SmartPickupTrigger SmartPickupTriggerV1 `json:"SmartPickupTrigger"`
	} `json:"SmartPickupResponse"`
}

SmartPickupResponseV1 The SmartPickup response for a successful SmartPickupTrigger and NotificationIndicator request

type SmartPickupTimeV1

type SmartPickupTimeV1 = string

SmartPickupTimeV1 defines model for SmartPickupTimeV1.

type SmartPickupTriggerV1

type SmartPickupTriggerV1 string

SmartPickupTriggerV1 Smart pickup trigger when the PU event (PRN) for the Smart PU is moved from pending to scheduled. Required when Action is Add or Updtae.

const (
	SmartPickupTriggerV1N01 SmartPickupTriggerV1 = "01"
	SmartPickupTriggerV1N02 SmartPickupTriggerV1 = "02"
)

Defines values for SmartPickupTriggerV1.

type SmartTriggerJSONRequestBody

type SmartTriggerJSONRequestBody = SmartPickupRequestV1

SmartTriggerJSONRequestBody defines body for SmartTrigger for application/json ContentType.

type SmartTriggerParams

type SmartTriggerParams struct {
	// TransId An identifier unique to the request.
	TransId TransId `json:"transId"`
}

SmartTriggerParams defines parameters for SmartTrigger.

type SmartTriggerResponse

type SmartTriggerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SmartPickupResponseV1
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON500      *ServerError
}

func ParseSmartTriggerResponse

func ParseSmartTriggerResponse(rsp *http.Response) (*SmartTriggerResponse, error)

ParseSmartTriggerResponse parses an HTTP response from a SmartTriggerWithResponse call

func (SmartTriggerResponse) Status

func (r SmartTriggerResponse) Status() string

Status returns HTTPResponse.Status

func (SmartTriggerResponse) StatusCode

func (r SmartTriggerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TransId

type TransId = string

TransId defines model for transId.

type Unauthorized

type Unauthorized = SmartPickupErrorResponseV1

Unauthorized Response object for errors

type UpdatePickupInfoJSONRequestBody

type UpdatePickupInfoJSONRequestBody = UpdatePickupInfoRequestV1

UpdatePickupInfoJSONRequestBody defines body for UpdatePickupInfo for application/json ContentType.

type UpdatePickupInfoParams

type UpdatePickupInfoParams struct {
	// TransId An identifier unique to the request.
	TransId TransId `json:"transId"`
}

UpdatePickupInfoParams defines parameters for UpdatePickupInfo.

type UpdatePickupInfoRequestV1

type UpdatePickupInfoRequestV1 struct {
	UpdatePickupInfoRequest UpdatePickupInfoRequestV1_UpdatePickupInfoRequest `json:"UpdatePickupInfoRequest"`
}

UpdatePickupInfoRequestV1 The Updated Pickup Info request enable user to update the Pickup information and Pick Address details.

type UpdatePickupInfoRequestV1UpdatePickupInfoRequestPickUpTypeCode

type UpdatePickupInfoRequestV1UpdatePickupInfoRequestPickUpTypeCode string

UpdatePickupInfoRequestV1UpdatePickupInfoRequestPickUpTypeCode Type of Pickup. Note: Pickup changes are not allowed when PickupType code is 97.

const (
	UpdatePickupInfoRequestV1UpdatePickupInfoRequestPickUpTypeCodeN02 UpdatePickupInfoRequestV1UpdatePickupInfoRequestPickUpTypeCode = "02"
	UpdatePickupInfoRequestV1UpdatePickupInfoRequestPickUpTypeCodeN8  UpdatePickupInfoRequestV1UpdatePickupInfoRequestPickUpTypeCode = "8"
)

Defines values for UpdatePickupInfoRequestV1UpdatePickupInfoRequestPickUpTypeCode.

type UpdatePickupInfoRequestV1_UpdatePickupInfoRequest

type UpdatePickupInfoRequestV1_UpdatePickupInfoRequest struct {
	// AccountInfo The UPS account information that you want to use for SmartPickupTrigger and NotificationIndicator
	AccountInfo SmartPickupAccountInfoV1 `json:"AccountInfo"`

	// Address To obtain the pickup address.
	Address struct {
		// AddressLine2 Additional address information. Not applicable for US, CA, and PR.
		AddressLine2 *string `json:"AddressLine2,omitempty"`

		// AddressLine3 Additional address information. Not applicable for US, CA, and PR.
		AddressLine3 *string `json:"AddressLine3,omitempty"`

		// City City Name.
		City *string `json:"City,omitempty"`

		// CompanyName Company name for pickup address.
		CompanyName *string `json:"CompanyName,omitempty"`

		// CountryCode The <a href="https://www.iso.org/iso-3166-country-codes.html" target="_blank">ISO 3166</a> country or territory code
		CountryCode *SmartPickupCountryCodeV1 `json:"CountryCode,omitempty"`

		// PostalCode Postal code or equivalent for postal countries.
		PostalCode *string `json:"PostalCode,omitempty"`

		// PostalCodeExtension Postal Code Extension.
		PostalCodeExtension *string `json:"PostalCodeExtension,omitempty"`

		// RoomSuite Room or Suite Number. Only for US, CA, and PR.
		RoomSuite *string `json:"RoomSuite,omitempty"`

		// State The <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US" target="_blank">ISO 3166-2</a> state code.
		State *string `json:"State,omitempty"`

		// StreetName Street name for pickup location.
		StreetName string `json:"StreetName"`

		// StreetNumber Street number for pickup location.
		StreetNumber *string `json:"StreetNumber,omitempty"`

		// StreetPrefix Street Prefix for pickup location.
		StreetPrefix *string `json:"StreetPrefix,omitempty"`

		// StreetSuffix Street Suffix for pickup location.
		StreetSuffix *string `json:"StreetSuffix,omitempty"`

		// StreetType Street type for pickup location.
		StreetType *string `json:"StreetType,omitempty"`
	} `json:"Address"`

	// Locale To set locale information
	Locale SmartPickupLocaleV1 `json:"Locale"`

	// PickUpInfo PickUpInfo Contains PickUp Location information.  Available when PickupTypeCode is **02**.
	PickUpInfo *SmartPickupPickupInfoV1 `json:"PickUpInfo,omitempty"`

	// PickUpTypeCode Type of Pickup. Note: Pickup changes are not allowed when PickupType code is 97.
	PickUpTypeCode       UpdatePickupInfoRequestV1UpdatePickupInfoRequestPickUpTypeCode `json:"PickUpTypeCode"`
	AdditionalProperties map[string]interface{}                                         `json:"-"`
}

UpdatePickupInfoRequestV1_UpdatePickupInfoRequest defines model for UpdatePickupInfoRequestV1.UpdatePickupInfoRequest.

func (UpdatePickupInfoRequestV1_UpdatePickupInfoRequest) Get

func (a UpdatePickupInfoRequestV1_UpdatePickupInfoRequest) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for UpdatePickupInfoRequestV1_UpdatePickupInfoRequest. Returns the specified element and whether it was found

func (UpdatePickupInfoRequestV1_UpdatePickupInfoRequest) MarshalJSON

Override default JSON handling for UpdatePickupInfoRequestV1_UpdatePickupInfoRequest to handle AdditionalProperties

func (*UpdatePickupInfoRequestV1_UpdatePickupInfoRequest) Set

func (a *UpdatePickupInfoRequestV1_UpdatePickupInfoRequest) Set(fieldName string, value interface{})

Setter for additional properties for UpdatePickupInfoRequestV1_UpdatePickupInfoRequest

func (*UpdatePickupInfoRequestV1_UpdatePickupInfoRequest) UnmarshalJSON

Override default JSON handling for UpdatePickupInfoRequestV1_UpdatePickupInfoRequest to handle AdditionalProperties

type UpdatePickupInfoResponse

type UpdatePickupInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UpdatePickupInfoResponseV1
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON500      *ServerError
}

func ParseUpdatePickupInfoResponse

func ParseUpdatePickupInfoResponse(rsp *http.Response) (*UpdatePickupInfoResponse, error)

ParseUpdatePickupInfoResponse parses an HTTP response from a UpdatePickupInfoWithResponse call

func (UpdatePickupInfoResponse) Status

func (r UpdatePickupInfoResponse) Status() string

Status returns HTTPResponse.Status

func (UpdatePickupInfoResponse) StatusCode

func (r UpdatePickupInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePickupInfoResponseV1

type UpdatePickupInfoResponseV1 struct {
	UpdatePickupInfoResponse SmartPickupPickupInfoResponseV1 `json:"UpdatePickupInfoResponse"`
}

UpdatePickupInfoResponseV1 The Update Pickup Info response for a successful request.

type ViewPickupInfoJSONRequestBody

type ViewPickupInfoJSONRequestBody = ViewPickupInfoRequestV1

ViewPickupInfoJSONRequestBody defines body for ViewPickupInfo for application/json ContentType.

type ViewPickupInfoParams

type ViewPickupInfoParams struct {
	// TransId An identifier unique to the request.
	TransId TransId `json:"transId"`
}

ViewPickupInfoParams defines parameters for ViewPickupInfo.

type ViewPickupInfoRequestV1

type ViewPickupInfoRequestV1 struct {
	// ViewPickupInfoRequest The View Pickup Info request container.
	ViewPickupInfoRequest struct {
		// AccountInfo The UPS account information that you want to use for SmartPickupTrigger and NotificationIndicator
		AccountInfo SmartPickupAccountInfoV1 `json:"AccountInfo"`

		// Locale To set locale information
		Locale SmartPickupLocaleV1 `json:"Locale"`
	} `json:"ViewPickupInfoRequest"`
}

ViewPickupInfoRequestV1 The View Pickup Info request container.

type ViewPickupInfoResponse

type ViewPickupInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ViewPickupInfoResponseV1
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON500      *ServerError
}

func ParseViewPickupInfoResponse

func ParseViewPickupInfoResponse(rsp *http.Response) (*ViewPickupInfoResponse, error)

ParseViewPickupInfoResponse parses an HTTP response from a ViewPickupInfoWithResponse call

func (ViewPickupInfoResponse) Status

func (r ViewPickupInfoResponse) Status() string

Status returns HTTPResponse.Status

func (ViewPickupInfoResponse) StatusCode

func (r ViewPickupInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ViewPickupInfoResponseV1

type ViewPickupInfoResponseV1 struct {
	ViewPickupInfoResponse ViewPickupInfoResponseV1_ViewPickupInfoResponse `json:"ViewPickupInfoResponse"`
}

ViewPickupInfoResponseV1 The View Pickup Info response for a successful request.

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay string

ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay Specific day pickup, maximum days are 4.

const (
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDayN01 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay = "01"
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDayN02 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay = "02"
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDayN03 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay = "03"
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDayN04 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay = "04"
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDayN05 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay = "05"
)

Defines values for ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay.

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationDeliveryOptions

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationDeliveryOptions string

ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationDeliveryOptions Weekend delivery options. Valid only for US.

const (
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationDeliveryOptionsN01 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationDeliveryOptions = "01"
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationDeliveryOptionsN02 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationDeliveryOptions = "02"
)

Defines values for ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationDeliveryOptions.

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationPickUpDateWeekEndPickUpDay

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationPickUpDateWeekEndPickUpDay string

ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationPickUpDateWeekEndPickUpDay defines model for ViewPickupInfoResponseV1.ViewPickupInfoResponse.PickUpInfo.WeekendPickupInformation.PickUpDate.WeekEndPickUpDay.

const (
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationPickUpDateWeekEndPickUpDayN01 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationPickUpDateWeekEndPickUpDay = "01"
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationPickUpDateWeekEndPickUpDayN02 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationPickUpDateWeekEndPickUpDay = "02"
)

Defines values for ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationPickUpDateWeekEndPickUpDay.

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendServiceTerritoryIndicator

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendServiceTerritoryIndicator string

ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendServiceTerritoryIndicator Indicates if the pickup address qualifies for WST (Weekend Service Territory) pickup. Available when PickupTypeCode is **02** and pickup address is WST area.

const (
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendServiceTerritoryIndicatorN ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendServiceTerritoryIndicator = "N"
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendServiceTerritoryIndicatorY ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendServiceTerritoryIndicator = "Y"
)

Defines values for ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendServiceTerritoryIndicator.

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpTypeCode

type ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpTypeCode string

ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpTypeCode Type of Pickup. Note: Pickup changes are not allowed when PickupType code is 97.

const (
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpTypeCodeN02 ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpTypeCode = "02"
	ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpTypeCodeN8  ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpTypeCode = "8"
)

Defines values for ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpTypeCode.

type ViewPickupInfoResponseV1_ViewPickupInfoResponse

type ViewPickupInfoResponseV1_ViewPickupInfoResponse struct {
	// AccountNumber UPS Account Number. Must be an existing UPS account number
	AccountNumber *string `json:"AccountNumber,omitempty"`

	// ContactInfo To obtain the pickup Address details
	ContactInfo      SmartPickupAddressV1                                        `json:"ContactInfo"`
	PickUpInfo       *ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo `json:"PickUpInfo,omitempty"`
	PickUpNotifyTime *SmartPickupTimeV1                                          `json:"PickUpNotifyTime,omitempty"`

	// PickUpPendingStatusIndicator Available when existing PickupTypeCode changes are pending.
	PickUpPendingStatusIndicator *SmartPickupPendingStatusIndicatorV1 `json:"PickUpPendingStatusIndicator,omitempty"`

	// PickUpTypeCode Type of Pickup. Note: Pickup changes are not allowed when PickupType code is 97.
	PickUpTypeCode *ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpTypeCode `json:"PickUpTypeCode,omitempty"`

	// Response The generic response container
	Response                SmartPickupCommonResponseV1 `json:"Response"`
	SundayPickUpNotifyTime  *SmartPickupTimeV1          `json:"SundayPickUpNotifyTime,omitempty"`
	WeekEndPickUpNotifyTime *SmartPickupTimeV1          `json:"WeekEndPickUpNotifyTime,omitempty"`
	AdditionalProperties    map[string]interface{}      `json:"-"`
}

ViewPickupInfoResponseV1_ViewPickupInfoResponse defines model for ViewPickupInfoResponseV1.ViewPickupInfoResponse.

func (ViewPickupInfoResponseV1_ViewPickupInfoResponse) Get

func (a ViewPickupInfoResponseV1_ViewPickupInfoResponse) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ViewPickupInfoResponseV1_ViewPickupInfoResponse. Returns the specified element and whether it was found

func (ViewPickupInfoResponseV1_ViewPickupInfoResponse) MarshalJSON

Override default JSON handling for ViewPickupInfoResponseV1_ViewPickupInfoResponse to handle AdditionalProperties

func (*ViewPickupInfoResponseV1_ViewPickupInfoResponse) Set

func (a *ViewPickupInfoResponseV1_ViewPickupInfoResponse) Set(fieldName string, value interface{})

Setter for additional properties for ViewPickupInfoResponseV1_ViewPickupInfoResponse

func (*ViewPickupInfoResponseV1_ViewPickupInfoResponse) UnmarshalJSON

Override default JSON handling for ViewPickupInfoResponseV1_ViewPickupInfoResponse to handle AdditionalProperties

type ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo

type ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo struct {
	// PickUpDate Shipment Pickup Date. Available when PickupTypeCode is **03,04,05,06**.
	PickUpDate struct {
		// PickUpDay Specific day pickup, maximum days are 4.
		PickUpDay ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoPickUpDatePickUpDay `json:"PickUpDay"`
	} `json:"PickUpDate"`
	PickUpTime SmartPickupPickupTimeV1 `json:"PickUpTime"`

	// PickupPoint Location of shipment pickup.
	PickupPoint SmartPickupPickupPointV1 `json:"PickupPoint"`

	// WeekendPickupInformation Weekend pickup Information. Available when WeekendServiceTerritoryIndicator is populated and PickupTypeCode is **02**.
	WeekendPickupInformation *struct {
		// DeliveryOptions Weekend delivery options. Valid only for US.
		DeliveryOptions *ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationDeliveryOptions `json:"DeliveryOptions,omitempty"`

		// PickUpDate Unbounded container for weekend pickup dates
		PickUpDate []struct {
			WeekEndPickUpDay ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendPickupInformationPickUpDateWeekEndPickUpDay `json:"WeekEndPickUpDay"`
		} `json:"PickUpDate"`
		PickUpTime SmartPickupPickupTimeV1 `json:"PickUpTime"`

		// PickupPoint Location of shipment pickup.
		PickupPoint SmartPickupPickupPointV1 `json:"PickupPoint"`
	} `json:"WeekendPickupInformation,omitempty"`

	// WeekendServiceTerritoryIndicator Indicates if the pickup address qualifies for WST (Weekend Service Territory) pickup.
	// Available when PickupTypeCode is **02** and pickup address is WST area.
	WeekendServiceTerritoryIndicator *ViewPickupInfoResponseV1ViewPickupInfoResponsePickUpInfoWeekendServiceTerritoryIndicator `json:"WeekendServiceTerritoryIndicator,omitempty"`
	AdditionalProperties             map[string]interface{}                                                                    `json:"-"`
}

ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo defines model for ViewPickupInfoResponseV1.ViewPickupInfoResponse.PickUpInfo.

func (ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo) Get

func (a ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo. Returns the specified element and whether it was found

func (ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo) MarshalJSON

Override default JSON handling for ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo to handle AdditionalProperties

func (*ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo) Set

func (a *ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo) Set(fieldName string, value interface{})

Setter for additional properties for ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo

func (*ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo) UnmarshalJSON

Override default JSON handling for ViewPickupInfoResponseV1_ViewPickupInfoResponse_PickUpInfo to handle AdditionalProperties

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL