supplysourcesv20200701

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package supplysourcesv20200701 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArchiveSupplySourceRequest

func NewArchiveSupplySourceRequest(server string, supplySourceId string) (*http.Request, error)

NewArchiveSupplySourceRequest generates requests for ArchiveSupplySource

func NewCreateSupplySourceRequest

func NewCreateSupplySourceRequest(server string, body CreateSupplySourceJSONRequestBody) (*http.Request, error)

NewCreateSupplySourceRequest calls the generic CreateSupplySource builder with application/json body

func NewCreateSupplySourceRequestWithBody

func NewCreateSupplySourceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSupplySourceRequestWithBody generates requests for CreateSupplySource with any type of body

func NewGetSupplySourceRequest

func NewGetSupplySourceRequest(server string, supplySourceId string) (*http.Request, error)

NewGetSupplySourceRequest generates requests for GetSupplySource

func NewGetSupplySourcesRequest

func NewGetSupplySourcesRequest(server string, params *GetSupplySourcesParams) (*http.Request, error)

NewGetSupplySourcesRequest generates requests for GetSupplySources

func NewUpdateSupplySourceRequest

func NewUpdateSupplySourceRequest(server string, supplySourceId string, body UpdateSupplySourceJSONRequestBody) (*http.Request, error)

NewUpdateSupplySourceRequest calls the generic UpdateSupplySource builder with application/json body

func NewUpdateSupplySourceRequestWithBody

func NewUpdateSupplySourceRequestWithBody(server string, supplySourceId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSupplySourceRequestWithBody generates requests for UpdateSupplySource with any type of body

func NewUpdateSupplySourceStatusRequest

func NewUpdateSupplySourceStatusRequest(server string, supplySourceId string, body UpdateSupplySourceStatusJSONRequestBody) (*http.Request, error)

NewUpdateSupplySourceStatusRequest calls the generic UpdateSupplySourceStatus builder with application/json body

func NewUpdateSupplySourceStatusRequestWithBody

func NewUpdateSupplySourceStatusRequestWithBody(server string, supplySourceId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSupplySourceStatusRequestWithBody generates requests for UpdateSupplySourceStatus with any type of body

Types

type Address

type Address struct {
	// AddressLine1 The first line of the address.
	AddressLine1 string `json:"addressLine1"`

	// AddressLine2 The additional address information, if required.
	AddressLine2 *string `json:"addressLine2,omitempty"`

	// AddressLine3 The additional address information, if required.
	AddressLine3 *string `json:"addressLine3,omitempty"`

	// City The city where the person, business or institution is located.
	City *string `json:"city,omitempty"`

	// CountryCode The two digit country code. In ISO 3166-1 alpha-2 format.
	CountryCode string `json:"countryCode"`

	// County The county where person, business or institution is located.
	County *string `json:"county,omitempty"`

	// District The district where person, business or institution is located.
	District *string `json:"district,omitempty"`

	// Name The name of the person, business or institution at that address.
	Name string `json:"name"`

	// Phone The phone number of the person, business or institution located at that address.
	Phone *string `json:"phone,omitempty"`

	// PostalCode The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation.
	PostalCode *string `json:"postalCode,omitempty"`

	// StateOrRegion The state or region where person, business or institution is located.
	StateOrRegion string `json:"stateOrRegion"`
}

Address A physical address.

type AddressWithContact

type AddressWithContact struct {
	// Address A physical address.
	Address *Address `json:"address,omitempty"`

	// ContactDetails The contact details
	ContactDetails *ContactDetails `json:"contactDetails,omitempty"`
}

AddressWithContact The address and contact details.

type ArchiveSupplySourceResp

type ArchiveSupplySourceResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *ErrorList
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseArchiveSupplySourceResp

func ParseArchiveSupplySourceResp(rsp *http.Response) (*ArchiveSupplySourceResp, error)

ParseArchiveSupplySourceResp parses an HTTP response from a ArchiveSupplySourceWithResponse call

func (ArchiveSupplySourceResp) Status

func (r ArchiveSupplySourceResp) Status() string

Status returns HTTPResponse.Status

func (ArchiveSupplySourceResp) StatusCode

func (r ArchiveSupplySourceResp) 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

	// A callback for modifying response which are generated after receive from the network.
	ResponseEditors []ResponseEditorFn

	// The user agent header identifies your application, its version number, and the platform and programming language you are using.
	// You must include a user agent header in each request submitted to the sales partner API.
	UserAgent string
}

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

func (c *Client) ArchiveSupplySource(ctx context.Context, supplySourceId string) (*http.Response, error)

func (*Client) CreateSupplySource

func (c *Client) CreateSupplySource(ctx context.Context, body CreateSupplySourceJSONRequestBody) (*http.Response, error)

func (*Client) CreateSupplySourceWithBody

func (c *Client) CreateSupplySourceWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

func (*Client) GetSupplySource

func (c *Client) GetSupplySource(ctx context.Context, supplySourceId string) (*http.Response, error)

func (*Client) GetSupplySources

func (c *Client) GetSupplySources(ctx context.Context, params *GetSupplySourcesParams) (*http.Response, error)

func (*Client) UpdateSupplySource

func (c *Client) UpdateSupplySource(ctx context.Context, supplySourceId string, body UpdateSupplySourceJSONRequestBody) (*http.Response, error)

func (*Client) UpdateSupplySourceStatus

func (c *Client) UpdateSupplySourceStatus(ctx context.Context, supplySourceId string, body UpdateSupplySourceStatusJSONRequestBody) (*http.Response, error)

func (*Client) UpdateSupplySourceStatusWithBody

func (c *Client) UpdateSupplySourceStatusWithBody(ctx context.Context, supplySourceId string, contentType string, body io.Reader) (*http.Response, error)

func (*Client) UpdateSupplySourceWithBody

func (c *Client) UpdateSupplySourceWithBody(ctx context.Context, supplySourceId string, contentType string, body io.Reader) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetSupplySources request
	GetSupplySources(ctx context.Context, params *GetSupplySourcesParams) (*http.Response, error)

	// CreateSupplySourceWithBody request with any body
	CreateSupplySourceWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

	CreateSupplySource(ctx context.Context, body CreateSupplySourceJSONRequestBody) (*http.Response, error)

	// ArchiveSupplySource request
	ArchiveSupplySource(ctx context.Context, supplySourceId string) (*http.Response, error)

	// GetSupplySource request
	GetSupplySource(ctx context.Context, supplySourceId string) (*http.Response, error)

	// UpdateSupplySourceWithBody request with any body
	UpdateSupplySourceWithBody(ctx context.Context, supplySourceId string, contentType string, body io.Reader) (*http.Response, error)

	UpdateSupplySource(ctx context.Context, supplySourceId string, body UpdateSupplySourceJSONRequestBody) (*http.Response, error)

	// UpdateSupplySourceStatusWithBody request with any body
	UpdateSupplySourceStatusWithBody(ctx context.Context, supplySourceId string, contentType string, body io.Reader) (*http.Response, error)

	UpdateSupplySourceStatus(ctx context.Context, supplySourceId string, body UpdateSupplySourceStatusJSONRequestBody) (*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.

func WithResponseEditorFn

func WithResponseEditorFn(fn ResponseEditorFn) ClientOption

WithResponseEditorFn allows setting up a callback function, which will be called right after receive the response.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) ArchiveSupplySourceWithResponse

func (c *ClientWithResponses) ArchiveSupplySourceWithResponse(ctx context.Context, supplySourceId string) (*ArchiveSupplySourceResp, error)

ArchiveSupplySourceWithResponse request returning *ArchiveSupplySourceResp

func (*ClientWithResponses) CreateSupplySourceWithBodyWithResponse

func (c *ClientWithResponses) CreateSupplySourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateSupplySourceResp, error)

CreateSupplySourceWithBodyWithResponse request with arbitrary body returning *CreateSupplySourceResp

func (*ClientWithResponses) CreateSupplySourceWithResponse

func (c *ClientWithResponses) CreateSupplySourceWithResponse(ctx context.Context, body CreateSupplySourceJSONRequestBody) (*CreateSupplySourceResp, error)

func (*ClientWithResponses) GetSupplySourceWithResponse

func (c *ClientWithResponses) GetSupplySourceWithResponse(ctx context.Context, supplySourceId string) (*GetSupplySourceResp, error)

GetSupplySourceWithResponse request returning *GetSupplySourceResp

func (*ClientWithResponses) GetSupplySourcesWithResponse

func (c *ClientWithResponses) GetSupplySourcesWithResponse(ctx context.Context, params *GetSupplySourcesParams) (*GetSupplySourcesResp, error)

GetSupplySourcesWithResponse request returning *GetSupplySourcesResp

func (*ClientWithResponses) UpdateSupplySourceStatusWithBodyWithResponse

func (c *ClientWithResponses) UpdateSupplySourceStatusWithBodyWithResponse(ctx context.Context, supplySourceId string, contentType string, body io.Reader) (*UpdateSupplySourceStatusResp, error)

UpdateSupplySourceStatusWithBodyWithResponse request with arbitrary body returning *UpdateSupplySourceStatusResp

func (*ClientWithResponses) UpdateSupplySourceStatusWithResponse

func (c *ClientWithResponses) UpdateSupplySourceStatusWithResponse(ctx context.Context, supplySourceId string, body UpdateSupplySourceStatusJSONRequestBody) (*UpdateSupplySourceStatusResp, error)

func (*ClientWithResponses) UpdateSupplySourceWithBodyWithResponse

func (c *ClientWithResponses) UpdateSupplySourceWithBodyWithResponse(ctx context.Context, supplySourceId string, contentType string, body io.Reader) (*UpdateSupplySourceResp, error)

UpdateSupplySourceWithBodyWithResponse request with arbitrary body returning *UpdateSupplySourceResp

func (*ClientWithResponses) UpdateSupplySourceWithResponse

func (c *ClientWithResponses) UpdateSupplySourceWithResponse(ctx context.Context, supplySourceId string, body UpdateSupplySourceJSONRequestBody) (*UpdateSupplySourceResp, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetSupplySourcesWithResponse request
	GetSupplySourcesWithResponse(ctx context.Context, params *GetSupplySourcesParams) (*GetSupplySourcesResp, error)

	// CreateSupplySourceWithBodyWithResponse request with any body
	CreateSupplySourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateSupplySourceResp, error)

	CreateSupplySourceWithResponse(ctx context.Context, body CreateSupplySourceJSONRequestBody) (*CreateSupplySourceResp, error)

	// ArchiveSupplySourceWithResponse request
	ArchiveSupplySourceWithResponse(ctx context.Context, supplySourceId string) (*ArchiveSupplySourceResp, error)

	// GetSupplySourceWithResponse request
	GetSupplySourceWithResponse(ctx context.Context, supplySourceId string) (*GetSupplySourceResp, error)

	// UpdateSupplySourceWithBodyWithResponse request with any body
	UpdateSupplySourceWithBodyWithResponse(ctx context.Context, supplySourceId string, contentType string, body io.Reader) (*UpdateSupplySourceResp, error)

	UpdateSupplySourceWithResponse(ctx context.Context, supplySourceId string, body UpdateSupplySourceJSONRequestBody) (*UpdateSupplySourceResp, error)

	// UpdateSupplySourceStatusWithBodyWithResponse request with any body
	UpdateSupplySourceStatusWithBodyWithResponse(ctx context.Context, supplySourceId string, contentType string, body io.Reader) (*UpdateSupplySourceStatusResp, error)

	UpdateSupplySourceStatusWithResponse(ctx context.Context, supplySourceId string, body UpdateSupplySourceStatusJSONRequestBody) (*UpdateSupplySourceStatusResp, error)
}

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

type ContactDetails

type ContactDetails struct {
	Primary *struct {
		// Email The email address to which email messages are delivered.
		Email *EmailAddress `json:"email,omitempty"`

		// Phone The phone number of the person, business or institution.
		Phone *string `json:"phone,omitempty"`
	} `json:"primary,omitempty"`
}

ContactDetails The contact details

type CreateSupplySourceJSONRequestBody

type CreateSupplySourceJSONRequestBody = CreateSupplySourceRequest

CreateSupplySourceJSONRequestBody defines body for CreateSupplySource for application/json ContentType.

type CreateSupplySourceRequest

type CreateSupplySourceRequest struct {
	// Address A physical address.
	Address Address `json:"address"`

	// Alias The custom alias for this supply source
	Alias SupplySourceAlias `json:"alias"`

	// SupplySourceCode The seller-provided unique supply source code.
	SupplySourceCode SupplySourceCode `json:"supplySourceCode"`
}

CreateSupplySourceRequest A request to create a supply source.

type CreateSupplySourceResp

type CreateSupplySourceResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CreateSupplySourceResponse
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseCreateSupplySourceResp

func ParseCreateSupplySourceResp(rsp *http.Response) (*CreateSupplySourceResp, error)

ParseCreateSupplySourceResp parses an HTTP response from a CreateSupplySourceWithResponse call

func (CreateSupplySourceResp) Status

func (r CreateSupplySourceResp) Status() string

Status returns HTTPResponse.Status

func (CreateSupplySourceResp) StatusCode

func (r CreateSupplySourceResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSupplySourceResponse

type CreateSupplySourceResponse struct {
	// SupplySourceCode The seller-provided unique supply source code.
	SupplySourceCode SupplySourceCode `json:"supplySourceCode"`

	// SupplySourceId An Amazon generated unique supply source ID.
	SupplySourceId SupplySourceId `json:"supplySourceId"`
}

CreateSupplySourceResponse The result of creating a new supply source.

type CurbsidePickupConfiguration

type CurbsidePickupConfiguration struct {
	// IsSupported When true, curbside pickup is supported by the supply source.
	IsSupported *bool `json:"isSupported,omitempty"`

	// OperationalConfiguration The operational configuration of `supplySources`.
	OperationalConfiguration *OperationalConfiguration `json:"operationalConfiguration,omitempty"`

	// ParkingWithAddressConfiguration The parking configuration with the address.
	ParkingWithAddressConfiguration *ParkingWithAddressConfiguration `json:"parkingWithAddressConfiguration,omitempty"`
}

CurbsidePickupConfiguration The curbside pickup configuration of a supply source.

type DateTime

type DateTime = string

DateTime A date and time in the rfc3339 format.

type DeliveryChannel

type DeliveryChannel struct {
	IsSupported *bool `json:"isSupported,omitempty"`

	// OperationalConfiguration The operational configuration of `supplySources`.
	OperationalConfiguration *OperationalConfiguration `json:"operationalConfiguration,omitempty"`
}

DeliveryChannel The delivery channel of a supply source.

type Duration

type Duration struct {
	// TimeUnit The time unit
	TimeUnit *TimeUnit `json:"timeUnit,omitempty"`

	// Value An unsigned integer that can be only positive or zero.
	Value *NonNegativeInteger `json:"value,omitempty"`
}

Duration The duration of time.

type EmailAddress

type EmailAddress = string

EmailAddress The email address to which email messages are delivered.

type Error

type Error struct {
	// Code An error code that identifies the type of error that occured.
	Code string `json:"code"`

	// Details The additional details that can help the caller understand or fix the issue.
	Details *string `json:"details,omitempty"`

	// Message A message that describes the error condition in a human-readable form.
	Message string `json:"message"`
}

Error An error response returned when the request is unsuccessful.

type ErrorList

type ErrorList struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors []Error `json:"errors"`
}

ErrorList A list of error responses returned when a request is unsuccessful.

type GetSupplySourceResp

type GetSupplySourceResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SupplySource
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseGetSupplySourceResp

func ParseGetSupplySourceResp(rsp *http.Response) (*GetSupplySourceResp, error)

ParseGetSupplySourceResp parses an HTTP response from a GetSupplySourceWithResponse call

func (GetSupplySourceResp) Status

func (r GetSupplySourceResp) Status() string

Status returns HTTPResponse.Status

func (GetSupplySourceResp) StatusCode

func (r GetSupplySourceResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSupplySourcesParams

type GetSupplySourcesParams struct {
	// NextPageToken The pagination token to retrieve a specific page of results.
	NextPageToken *string `form:"nextPageToken,omitempty" json:"nextPageToken,omitempty"`

	// PageSize The number of supply sources to return per paginated request.
	PageSize *float32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
}

GetSupplySourcesParams defines parameters for GetSupplySources.

type GetSupplySourcesResp

type GetSupplySourcesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetSupplySourcesResponse
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseGetSupplySourcesResp

func ParseGetSupplySourcesResp(rsp *http.Response) (*GetSupplySourcesResp, error)

ParseGetSupplySourcesResp parses an HTTP response from a GetSupplySourcesWithResponse call

func (GetSupplySourcesResp) Status

func (r GetSupplySourcesResp) Status() string

Status returns HTTPResponse.Status

func (GetSupplySourcesResp) StatusCode

func (r GetSupplySourcesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSupplySourcesResponse

type GetSupplySourcesResponse struct {
	// NextPageToken If present, use this pagination token to retrieve the next page of supply sources.
	NextPageToken *string `json:"nextPageToken,omitempty"`

	// SupplySources The list of `SupplySource`s.
	SupplySources *SupplySourceList `json:"supplySources,omitempty"`
}

GetSupplySourcesResponse The paginated list of supply sources.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InStorePickupConfiguration

type InStorePickupConfiguration struct {
	// IsSupported When true, in-store pickup is supported by the supply source (default: `isSupported` value in `PickupChannel`).
	IsSupported *bool `json:"isSupported,omitempty"`

	// ParkingConfiguration The parking configuration.
	ParkingConfiguration *ParkingConfiguration `json:"parkingConfiguration,omitempty"`
}

InStorePickupConfiguration The in-store pickup configuration of a supply source.

type NonNegativeInteger

type NonNegativeInteger = int

NonNegativeInteger An unsigned integer that can be only positive or zero.

type OperatingHour

type OperatingHour struct {
	// EndTime The closing time, ISO 8601 formatted timestamp without date, HH:mm.
	EndTime *string `json:"endTime,omitempty"`

	// StartTime The opening time, ISO 8601 formatted timestamp without date, HH:mm.
	StartTime *string `json:"startTime,omitempty"`
}

OperatingHour The operating hour schema

type OperatingHours

type OperatingHours = []OperatingHour

OperatingHours A list of Operating Hours.

type OperatingHoursByDay

type OperatingHoursByDay struct {
	// Friday A list of Operating Hours.
	Friday *OperatingHours `json:"friday,omitempty"`

	// Monday A list of Operating Hours.
	Monday *OperatingHours `json:"monday,omitempty"`

	// Saturday A list of Operating Hours.
	Saturday *OperatingHours `json:"saturday,omitempty"`

	// Sunday A list of Operating Hours.
	Sunday *OperatingHours `json:"sunday,omitempty"`

	// Thursday A list of Operating Hours.
	Thursday *OperatingHours `json:"thursday,omitempty"`

	// Tuesday A list of Operating Hours.
	Tuesday *OperatingHours `json:"tuesday,omitempty"`

	// Wednesday A list of Operating Hours.
	Wednesday *OperatingHours `json:"wednesday,omitempty"`
}

OperatingHoursByDay The operating hours per day

type OperationalConfiguration

type OperationalConfiguration struct {
	// ContactDetails The contact details
	ContactDetails *ContactDetails `json:"contactDetails,omitempty"`

	// HandlingTime The duration of time.
	HandlingTime *Duration `json:"handlingTime,omitempty"`

	// OperatingHoursByDay The operating hours per day
	OperatingHoursByDay *OperatingHoursByDay `json:"operatingHoursByDay,omitempty"`

	// ThroughputConfig The throughput configuration.
	ThroughputConfig *ThroughputConfig `json:"throughputConfig,omitempty"`
}

OperationalConfiguration The operational configuration of `supplySources`.

type OutboundCapability

type OutboundCapability struct {
	// DeliveryChannel The delivery channel of a supply source.
	DeliveryChannel *DeliveryChannel `json:"deliveryChannel,omitempty"`
	IsSupported     *bool            `json:"isSupported,omitempty"`

	// OperationalConfiguration The operational configuration of `supplySources`.
	OperationalConfiguration *OperationalConfiguration `json:"operationalConfiguration,omitempty"`

	// PickupChannel The pick up channel of a supply source.
	PickupChannel *PickupChannel `json:"pickupChannel,omitempty"`

	// ReturnLocation The address or reference to another `supplySourceId` to act as a return location.
	ReturnLocation *ReturnLocation `json:"returnLocation,omitempty"`
}

OutboundCapability The outbound capability of a supply source.

type ParkingConfiguration

type ParkingConfiguration struct {
	// NumberOfParkingSpots An unsigned integer that can be only positive or zero.
	NumberOfParkingSpots *NonNegativeInteger `json:"numberOfParkingSpots,omitempty"`

	// ParkingCostType The parking cost type.
	ParkingCostType *ParkingCostType `json:"parkingCostType,omitempty"`

	// ParkingSpotIdentificationType The type of parking spot identification.
	ParkingSpotIdentificationType *ParkingSpotIdentificationType `json:"parkingSpotIdentificationType,omitempty"`
}

ParkingConfiguration The parking configuration.

type ParkingCostType

type ParkingCostType string

ParkingCostType The parking cost type.

const (
	ParkingCostTypeFree  ParkingCostType = "Free"
	ParkingCostTypeOther ParkingCostType = "Other"
)

Defines values for ParkingCostType.

type ParkingSpotIdentificationType

type ParkingSpotIdentificationType string

ParkingSpotIdentificationType The type of parking spot identification.

const (
	ParkingSpotIdentificationTypeNumbered ParkingSpotIdentificationType = "Numbered"
	ParkingSpotIdentificationTypeOther    ParkingSpotIdentificationType = "Other"
)

Defines values for ParkingSpotIdentificationType.

type ParkingWithAddressConfiguration

type ParkingWithAddressConfiguration struct {
	// Address A physical address.
	Address *Address `json:"address,omitempty"`

	// NumberOfParkingSpots An unsigned integer that can be only positive or zero.
	NumberOfParkingSpots *NonNegativeInteger `json:"numberOfParkingSpots,omitempty"`

	// ParkingCostType The parking cost type.
	ParkingCostType *ParkingCostType `json:"parkingCostType,omitempty"`

	// ParkingSpotIdentificationType The type of parking spot identification.
	ParkingSpotIdentificationType *ParkingSpotIdentificationType `json:"parkingSpotIdentificationType,omitempty"`
}

ParkingWithAddressConfiguration defines model for ParkingWithAddressConfiguration.

type PickupChannel

type PickupChannel struct {
	// CurbsidePickupConfiguration The curbside pickup configuration of a supply source.
	CurbsidePickupConfiguration *CurbsidePickupConfiguration `json:"curbsidePickupConfiguration,omitempty"`

	// InStorePickupConfiguration The in-store pickup configuration of a supply source.
	InStorePickupConfiguration *InStorePickupConfiguration `json:"inStorePickupConfiguration,omitempty"`

	// InventoryHoldPeriod The duration of time.
	InventoryHoldPeriod *Duration `json:"inventoryHoldPeriod,omitempty"`
	IsSupported         *bool     `json:"isSupported,omitempty"`

	// OperationalConfiguration The operational configuration of `supplySources`.
	OperationalConfiguration *OperationalConfiguration `json:"operationalConfiguration,omitempty"`
}

PickupChannel The pick up channel of a supply source.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ResponseEditorFn

type ResponseEditorFn func(ctx context.Context, rsp *http.Response) error

ResponseEditorFn is the function signature for the ResponseEditor callback function

type ReturnLocation

type ReturnLocation struct {
	// AddressWithContact The address and contact details.
	AddressWithContact *AddressWithContact `json:"addressWithContact,omitempty"`

	// SupplySourceId The Amazon provided `supplySourceId` where orders can be returned to.
	SupplySourceId *string `json:"supplySourceId,omitempty"`
}

ReturnLocation The address or reference to another `supplySourceId` to act as a return location.

type ServicesCapability

type ServicesCapability struct {
	// IsSupported When true, `SupplySource` supports the Service capability.
	IsSupported *bool `json:"isSupported,omitempty"`

	// OperationalConfiguration The operational configuration of `supplySources`.
	OperationalConfiguration *OperationalConfiguration `json:"operationalConfiguration,omitempty"`
}

ServicesCapability The services capability of a supply source.

type SupplySource

type SupplySource struct {
	// Address A physical address.
	Address *Address `json:"address,omitempty"`

	// Alias The custom alias for this supply source
	Alias *SupplySourceAlias `json:"alias,omitempty"`

	// Capabilities The capabilities of a supply source.
	Capabilities *SupplySourceCapabilities `json:"capabilities,omitempty"`

	// Configuration Includes configuration and timezone of a supply source.
	Configuration *SupplySourceConfiguration `json:"configuration,omitempty"`

	// CreatedAt A date and time in the rfc3339 format.
	CreatedAt *DateTime `json:"createdAt,omitempty"`

	// Status The `SupplySource` status.
	Status *SupplySourceStatusReadOnly `json:"status,omitempty"`

	// SupplySourceCode The seller-provided unique supply source code.
	SupplySourceCode *SupplySourceCode `json:"supplySourceCode,omitempty"`

	// SupplySourceId An Amazon generated unique supply source ID.
	SupplySourceId *SupplySourceId `json:"supplySourceId,omitempty"`

	// UpdatedAt A date and time in the rfc3339 format.
	UpdatedAt *DateTime `json:"updatedAt,omitempty"`
}

SupplySource The supply source details, including configurations and capabilities.

type SupplySourceAlias

type SupplySourceAlias = string

SupplySourceAlias The custom alias for this supply source

type SupplySourceCapabilities

type SupplySourceCapabilities struct {
	// Outbound The outbound capability of a supply source.
	Outbound *OutboundCapability `json:"outbound,omitempty"`

	// Services The services capability of a supply source.
	Services *ServicesCapability `json:"services,omitempty"`
}

SupplySourceCapabilities The capabilities of a supply source.

type SupplySourceCode

type SupplySourceCode = string

SupplySourceCode The seller-provided unique supply source code.

type SupplySourceConfiguration

type SupplySourceConfiguration struct {
	// OperationalConfiguration The operational configuration of `supplySources`.
	OperationalConfiguration *OperationalConfiguration `json:"operationalConfiguration,omitempty"`

	// Timezone Please see RFC 6557, should be a canonical time zone ID as listed here: https://www.joda.org/joda-time/timezones.html.
	Timezone *string `json:"timezone,omitempty"`
}

SupplySourceConfiguration Includes configuration and timezone of a supply source.

type SupplySourceId

type SupplySourceId = string

SupplySourceId An Amazon generated unique supply source ID.

type SupplySourceList

type SupplySourceList = []struct {
	// Address A physical address.
	Address *Address `json:"address,omitempty"`

	// Alias The custom alias for this supply source
	Alias *SupplySourceAlias `json:"alias,omitempty"`

	// SupplySourceCode The seller-provided unique supply source code.
	SupplySourceCode *SupplySourceCode `json:"supplySourceCode,omitempty"`

	// SupplySourceId An Amazon generated unique supply source ID.
	SupplySourceId *SupplySourceId `json:"supplySourceId,omitempty"`
}

SupplySourceList The list of `SupplySource`s.

type SupplySourceStatus

type SupplySourceStatus string

SupplySourceStatus The `SupplySource` status

const (
	SupplySourceStatusActive   SupplySourceStatus = "Active"
	SupplySourceStatusInactive SupplySourceStatus = "Inactive"
)

Defines values for SupplySourceStatus.

type SupplySourceStatusReadOnly

type SupplySourceStatusReadOnly string

SupplySourceStatusReadOnly The `SupplySource` status.

const (
	SupplySourceStatusReadOnlyActive   SupplySourceStatusReadOnly = "Active"
	SupplySourceStatusReadOnlyArchived SupplySourceStatusReadOnly = "Archived"
	SupplySourceStatusReadOnlyInactive SupplySourceStatusReadOnly = "Inactive"
)

Defines values for SupplySourceStatusReadOnly.

type ThroughputCap

type ThroughputCap struct {
	// TimeUnit The time unit
	TimeUnit *TimeUnit `json:"timeUnit,omitempty"`

	// Value An unsigned integer that can be only positive or zero.
	Value *NonNegativeInteger `json:"value,omitempty"`
}

ThroughputCap The throughput capacity

type ThroughputConfig

type ThroughputConfig struct {
	// ThroughputCap The throughput capacity
	ThroughputCap *ThroughputCap `json:"throughputCap,omitempty"`

	// ThroughputUnit The throughput unit
	ThroughputUnit ThroughputUnit `json:"throughputUnit"`
}

ThroughputConfig The throughput configuration.

type ThroughputUnit

type ThroughputUnit string

ThroughputUnit The throughput unit

const (
	Order ThroughputUnit = "Order"
)

Defines values for ThroughputUnit.

type TimeUnit

type TimeUnit string

TimeUnit The time unit

const (
	Days    TimeUnit = "Days"
	Hours   TimeUnit = "Hours"
	Minutes TimeUnit = "Minutes"
)

Defines values for TimeUnit.

type UpdateSupplySourceJSONRequestBody

type UpdateSupplySourceJSONRequestBody = UpdateSupplySourceRequest

UpdateSupplySourceJSONRequestBody defines body for UpdateSupplySource for application/json ContentType.

type UpdateSupplySourceRequest

type UpdateSupplySourceRequest struct {
	// Alias The custom alias for this supply source
	Alias *SupplySourceAlias `json:"alias,omitempty"`

	// Capabilities The capabilities of a supply source.
	Capabilities *SupplySourceCapabilities `json:"capabilities,omitempty"`

	// Configuration Includes configuration and timezone of a supply source.
	Configuration *SupplySourceConfiguration `json:"configuration,omitempty"`
}

UpdateSupplySourceRequest A request to update the configuration and capabilities of a supply source.

type UpdateSupplySourceResp

type UpdateSupplySourceResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *ErrorList
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseUpdateSupplySourceResp

func ParseUpdateSupplySourceResp(rsp *http.Response) (*UpdateSupplySourceResp, error)

ParseUpdateSupplySourceResp parses an HTTP response from a UpdateSupplySourceWithResponse call

func (UpdateSupplySourceResp) Status

func (r UpdateSupplySourceResp) Status() string

Status returns HTTPResponse.Status

func (UpdateSupplySourceResp) StatusCode

func (r UpdateSupplySourceResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSupplySourceStatusJSONRequestBody

type UpdateSupplySourceStatusJSONRequestBody = UpdateSupplySourceStatusRequest

UpdateSupplySourceStatusJSONRequestBody defines body for UpdateSupplySourceStatus for application/json ContentType.

type UpdateSupplySourceStatusRequest

type UpdateSupplySourceStatusRequest struct {
	// Status The `SupplySource` status
	Status *SupplySourceStatus `json:"status,omitempty"`
}

UpdateSupplySourceStatusRequest A request to update the status of a supply source.

type UpdateSupplySourceStatusResp

type UpdateSupplySourceStatusResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *ErrorList
	JSON400      *ErrorList
	JSON403      *ErrorList
	JSON404      *ErrorList
	JSON413      *ErrorList
	JSON415      *ErrorList
	JSON429      *ErrorList
	JSON500      *ErrorList
	JSON503      *ErrorList
}

func ParseUpdateSupplySourceStatusResp

func ParseUpdateSupplySourceStatusResp(rsp *http.Response) (*UpdateSupplySourceStatusResp, error)

ParseUpdateSupplySourceStatusResp parses an HTTP response from a UpdateSupplySourceStatusWithResponse call

func (UpdateSupplySourceStatusResp) Status

Status returns HTTPResponse.Status

func (UpdateSupplySourceStatusResp) StatusCode

func (r UpdateSupplySourceStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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