Documentation ¶
Overview ¶
Package apluscontentv20201101 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 ¶
- func NewCreateContentDocumentRequest(server string, params *CreateContentDocumentParams, ...) (*http.Request, error)
- func NewCreateContentDocumentRequestWithBody(server string, params *CreateContentDocumentParams, contentType string, ...) (*http.Request, error)
- func NewGetContentDocumentRequest(server string, contentReferenceKey string, params *GetContentDocumentParams) (*http.Request, error)
- func NewListContentDocumentAsinRelationsRequest(server string, contentReferenceKey string, ...) (*http.Request, error)
- func NewPostContentDocumentApprovalSubmissionRequest(server string, contentReferenceKey string, ...) (*http.Request, error)
- func NewPostContentDocumentAsinRelationsRequest(server string, contentReferenceKey string, ...) (*http.Request, error)
- func NewPostContentDocumentAsinRelationsRequestWithBody(server string, contentReferenceKey string, ...) (*http.Request, error)
- func NewPostContentDocumentSuspendSubmissionRequest(server string, contentReferenceKey string, ...) (*http.Request, error)
- func NewSearchContentDocumentsRequest(server string, params *SearchContentDocumentsParams) (*http.Request, error)
- func NewSearchContentPublishRecordsRequest(server string, params *SearchContentPublishRecordsParams) (*http.Request, error)
- func NewUpdateContentDocumentRequest(server string, contentReferenceKey string, params *UpdateContentDocumentParams, ...) (*http.Request, error)
- func NewUpdateContentDocumentRequestWithBody(server string, contentReferenceKey string, params *UpdateContentDocumentParams, ...) (*http.Request, error)
- func NewValidateContentDocumentAsinRelationsRequest(server string, params *ValidateContentDocumentAsinRelationsParams, ...) (*http.Request, error)
- func NewValidateContentDocumentAsinRelationsRequestWithBody(server string, params *ValidateContentDocumentAsinRelationsParams, ...) (*http.Request, error)
- type AplusPaginatedResponse
- type AplusResponse
- type Asin
- type AsinBadge
- type AsinBadgeSet
- type AsinMetadata
- type AsinMetadataSet
- type AsinSet
- type Client
- func (c *Client) CreateContentDocument(ctx context.Context, params *CreateContentDocumentParams, ...) (*http.Response, error)
- func (c *Client) CreateContentDocumentWithBody(ctx context.Context, params *CreateContentDocumentParams, contentType string, ...) (*http.Response, error)
- func (c *Client) GetContentDocument(ctx context.Context, contentReferenceKey string, ...) (*http.Response, error)
- func (c *Client) ListContentDocumentAsinRelations(ctx context.Context, contentReferenceKey string, ...) (*http.Response, error)
- func (c *Client) PostContentDocumentApprovalSubmission(ctx context.Context, contentReferenceKey string, ...) (*http.Response, error)
- func (c *Client) PostContentDocumentAsinRelations(ctx context.Context, contentReferenceKey string, ...) (*http.Response, error)
- func (c *Client) PostContentDocumentAsinRelationsWithBody(ctx context.Context, contentReferenceKey string, ...) (*http.Response, error)
- func (c *Client) PostContentDocumentSuspendSubmission(ctx context.Context, contentReferenceKey string, ...) (*http.Response, error)
- func (c *Client) SearchContentDocuments(ctx context.Context, params *SearchContentDocumentsParams) (*http.Response, error)
- func (c *Client) SearchContentPublishRecords(ctx context.Context, params *SearchContentPublishRecordsParams) (*http.Response, error)
- func (c *Client) UpdateContentDocument(ctx context.Context, contentReferenceKey string, ...) (*http.Response, error)
- func (c *Client) UpdateContentDocumentWithBody(ctx context.Context, contentReferenceKey string, ...) (*http.Response, error)
- func (c *Client) ValidateContentDocumentAsinRelations(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, ...) (*http.Response, error)
- func (c *Client) ValidateContentDocumentAsinRelationsWithBody(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateContentDocumentWithBodyWithResponse(ctx context.Context, params *CreateContentDocumentParams, contentType string, ...) (*CreateContentDocumentResp, error)
- func (c *ClientWithResponses) CreateContentDocumentWithResponse(ctx context.Context, params *CreateContentDocumentParams, ...) (*CreateContentDocumentResp, error)
- func (c *ClientWithResponses) GetContentDocumentWithResponse(ctx context.Context, contentReferenceKey string, ...) (*GetContentDocumentResp, error)
- func (c *ClientWithResponses) ListContentDocumentAsinRelationsWithResponse(ctx context.Context, contentReferenceKey string, ...) (*ListContentDocumentAsinRelationsResp, error)
- func (c *ClientWithResponses) PostContentDocumentApprovalSubmissionWithResponse(ctx context.Context, contentReferenceKey string, ...) (*PostContentDocumentApprovalSubmissionResp, error)
- func (c *ClientWithResponses) PostContentDocumentAsinRelationsWithBodyWithResponse(ctx context.Context, contentReferenceKey string, ...) (*PostContentDocumentAsinRelationsResp, error)
- func (c *ClientWithResponses) PostContentDocumentAsinRelationsWithResponse(ctx context.Context, contentReferenceKey string, ...) (*PostContentDocumentAsinRelationsResp, error)
- func (c *ClientWithResponses) PostContentDocumentSuspendSubmissionWithResponse(ctx context.Context, contentReferenceKey string, ...) (*PostContentDocumentSuspendSubmissionResp, error)
- func (c *ClientWithResponses) SearchContentDocumentsWithResponse(ctx context.Context, params *SearchContentDocumentsParams) (*SearchContentDocumentsResp, error)
- func (c *ClientWithResponses) SearchContentPublishRecordsWithResponse(ctx context.Context, params *SearchContentPublishRecordsParams) (*SearchContentPublishRecordsResp, error)
- func (c *ClientWithResponses) UpdateContentDocumentWithBodyWithResponse(ctx context.Context, contentReferenceKey string, ...) (*UpdateContentDocumentResp, error)
- func (c *ClientWithResponses) UpdateContentDocumentWithResponse(ctx context.Context, contentReferenceKey string, ...) (*UpdateContentDocumentResp, error)
- func (c *ClientWithResponses) ValidateContentDocumentAsinRelationsWithBodyWithResponse(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, ...) (*ValidateContentDocumentAsinRelationsResp, error)
- func (c *ClientWithResponses) ValidateContentDocumentAsinRelationsWithResponse(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, ...) (*ValidateContentDocumentAsinRelationsResp, error)
- type ClientWithResponsesInterface
- type ColorType
- type ContentBadge
- type ContentBadgeSet
- type ContentDocument
- type ContentMetadata
- type ContentMetadataRecord
- type ContentMetadataRecordList
- type ContentModule
- type ContentModuleList
- type ContentModuleType
- type ContentRecord
- type ContentReferenceKey
- type ContentReferenceKeySet
- type ContentStatus
- type ContentSubType
- type ContentType
- type CreateContentDocumentJSONRequestBody
- type CreateContentDocumentParams
- type CreateContentDocumentResp
- type Decorator
- type DecoratorSet
- type DecoratorType
- type Error
- type ErrorList
- type GetContentDocumentParams
- type GetContentDocumentParamsIncludedDataSet
- type GetContentDocumentResp
- type GetContentDocumentResponse
- type HttpRequestDoer
- type ImageComponent
- type ImageCropSpecification
- type ImageDimensions
- type ImageOffsets
- type IntegerWithUnits
- type LanguageTag
- type ListContentDocumentAsinRelationsParams
- type ListContentDocumentAsinRelationsParamsIncludedDataSet
- type ListContentDocumentAsinRelationsResp
- type ListContentDocumentAsinRelationsResponse
- type MarketplaceId
- type MessageSet
- type PageToken
- type ParagraphComponent
- type PlainTextItem
- type PositionType
- type PostContentDocumentApprovalSubmissionParams
- type PostContentDocumentApprovalSubmissionResp
- type PostContentDocumentApprovalSubmissionResponse
- type PostContentDocumentAsinRelationsJSONRequestBody
- type PostContentDocumentAsinRelationsParams
- type PostContentDocumentAsinRelationsRequest
- type PostContentDocumentAsinRelationsResp
- type PostContentDocumentAsinRelationsResponse
- type PostContentDocumentRequest
- type PostContentDocumentResponse
- type PostContentDocumentSuspendSubmissionParams
- type PostContentDocumentSuspendSubmissionResp
- type PostContentDocumentSuspendSubmissionResponse
- type PublishRecord
- type PublishRecordList
- type RequestEditorFn
- type ResponseEditorFn
- type SearchContentDocumentsParams
- type SearchContentDocumentsResp
- type SearchContentDocumentsResponse
- type SearchContentPublishRecordsParams
- type SearchContentPublishRecordsResp
- type SearchContentPublishRecordsResponse
- type StandardCompanyLogoModule
- type StandardComparisonProductBlock
- type StandardComparisonTableModule
- type StandardFourImageTextModule
- type StandardFourImageTextQuadrantModule
- type StandardHeaderImageTextModule
- type StandardHeaderTextListBlock
- type StandardImageCaptionBlock
- type StandardImageSidebarModule
- type StandardImageTextBlock
- type StandardImageTextCaptionBlock
- type StandardImageTextOverlayModule
- type StandardMultipleImageTextModule
- type StandardProductDescriptionModule
- type StandardSingleImageHighlightsModule
- type StandardSingleImageSpecsDetailModule
- type StandardSingleSideImageModule
- type StandardTechSpecsModule
- type StandardTextBlock
- type StandardTextListBlock
- type StandardTextModule
- type StandardTextPairBlock
- type StandardThreeImageTextModule
- type TextComponent
- type TextItem
- type UpdateContentDocumentJSONRequestBody
- type UpdateContentDocumentParams
- type UpdateContentDocumentResp
- type ValidateContentDocumentAsinRelationsJSONRequestBody
- type ValidateContentDocumentAsinRelationsParams
- type ValidateContentDocumentAsinRelationsResp
- type ValidateContentDocumentAsinRelationsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateContentDocumentRequest ¶
func NewCreateContentDocumentRequest(server string, params *CreateContentDocumentParams, body CreateContentDocumentJSONRequestBody) (*http.Request, error)
NewCreateContentDocumentRequest calls the generic CreateContentDocument builder with application/json body
func NewCreateContentDocumentRequestWithBody ¶
func NewCreateContentDocumentRequestWithBody(server string, params *CreateContentDocumentParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateContentDocumentRequestWithBody generates requests for CreateContentDocument with any type of body
func NewGetContentDocumentRequest ¶
func NewGetContentDocumentRequest(server string, contentReferenceKey string, params *GetContentDocumentParams) (*http.Request, error)
NewGetContentDocumentRequest generates requests for GetContentDocument
func NewListContentDocumentAsinRelationsRequest ¶
func NewListContentDocumentAsinRelationsRequest(server string, contentReferenceKey string, params *ListContentDocumentAsinRelationsParams) (*http.Request, error)
NewListContentDocumentAsinRelationsRequest generates requests for ListContentDocumentAsinRelations
func NewPostContentDocumentApprovalSubmissionRequest ¶
func NewPostContentDocumentApprovalSubmissionRequest(server string, contentReferenceKey string, params *PostContentDocumentApprovalSubmissionParams) (*http.Request, error)
NewPostContentDocumentApprovalSubmissionRequest generates requests for PostContentDocumentApprovalSubmission
func NewPostContentDocumentAsinRelationsRequest ¶
func NewPostContentDocumentAsinRelationsRequest(server string, contentReferenceKey string, params *PostContentDocumentAsinRelationsParams, body PostContentDocumentAsinRelationsJSONRequestBody) (*http.Request, error)
NewPostContentDocumentAsinRelationsRequest calls the generic PostContentDocumentAsinRelations builder with application/json body
func NewPostContentDocumentAsinRelationsRequestWithBody ¶
func NewPostContentDocumentAsinRelationsRequestWithBody(server string, contentReferenceKey string, params *PostContentDocumentAsinRelationsParams, contentType string, body io.Reader) (*http.Request, error)
NewPostContentDocumentAsinRelationsRequestWithBody generates requests for PostContentDocumentAsinRelations with any type of body
func NewPostContentDocumentSuspendSubmissionRequest ¶
func NewPostContentDocumentSuspendSubmissionRequest(server string, contentReferenceKey string, params *PostContentDocumentSuspendSubmissionParams) (*http.Request, error)
NewPostContentDocumentSuspendSubmissionRequest generates requests for PostContentDocumentSuspendSubmission
func NewSearchContentDocumentsRequest ¶
func NewSearchContentDocumentsRequest(server string, params *SearchContentDocumentsParams) (*http.Request, error)
NewSearchContentDocumentsRequest generates requests for SearchContentDocuments
func NewSearchContentPublishRecordsRequest ¶
func NewSearchContentPublishRecordsRequest(server string, params *SearchContentPublishRecordsParams) (*http.Request, error)
NewSearchContentPublishRecordsRequest generates requests for SearchContentPublishRecords
func NewUpdateContentDocumentRequest ¶
func NewUpdateContentDocumentRequest(server string, contentReferenceKey string, params *UpdateContentDocumentParams, body UpdateContentDocumentJSONRequestBody) (*http.Request, error)
NewUpdateContentDocumentRequest calls the generic UpdateContentDocument builder with application/json body
func NewUpdateContentDocumentRequestWithBody ¶
func NewUpdateContentDocumentRequestWithBody(server string, contentReferenceKey string, params *UpdateContentDocumentParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateContentDocumentRequestWithBody generates requests for UpdateContentDocument with any type of body
func NewValidateContentDocumentAsinRelationsRequest ¶
func NewValidateContentDocumentAsinRelationsRequest(server string, params *ValidateContentDocumentAsinRelationsParams, body ValidateContentDocumentAsinRelationsJSONRequestBody) (*http.Request, error)
NewValidateContentDocumentAsinRelationsRequest calls the generic ValidateContentDocumentAsinRelations builder with application/json body
func NewValidateContentDocumentAsinRelationsRequestWithBody ¶
func NewValidateContentDocumentAsinRelationsRequestWithBody(server string, params *ValidateContentDocumentAsinRelationsParams, contentType string, body io.Reader) (*http.Request, error)
NewValidateContentDocumentAsinRelationsRequestWithBody generates requests for ValidateContentDocumentAsinRelations with any type of body
Types ¶
type AplusPaginatedResponse ¶
type AplusPaginatedResponse struct { // NextPageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. NextPageToken *PageToken `json:"nextPageToken,omitempty"` // Warnings A set of messages to the user, such as warnings or comments. Warnings *MessageSet `json:"warnings,omitempty"` }
AplusPaginatedResponse defines model for AplusPaginatedResponse.
type AplusResponse ¶
type AplusResponse struct { // Warnings A set of messages to the user, such as warnings or comments. Warnings *MessageSet `json:"warnings,omitempty"` }
AplusResponse The base response data for all A+ Content operations when a request is successful or partially successful. Individual operations may extend this with additional data.
type AsinBadge ¶
type AsinBadge string
AsinBadge A flag that provides additional information about an ASIN. This is contextual and may change depending on the request that generated it.
type AsinMetadata ¶
type AsinMetadata struct { // Asin The Amazon Standard Identification Number (ASIN). Asin Asin `json:"asin"` // BadgeSet The set of ASIN badges. BadgeSet *AsinBadgeSet `json:"badgeSet,omitempty"` // ContentReferenceKeySet A set of content reference keys. ContentReferenceKeySet *ContentReferenceKeySet `json:"contentReferenceKeySet,omitempty"` // ImageUrl The default image for the ASIN in the Amazon catalog. ImageUrl *string `json:"imageUrl,omitempty"` // Parent The Amazon Standard Identification Number (ASIN). Parent *Asin `json:"parent,omitempty"` // Title The title for the ASIN in the Amazon catalog. Title *string `json:"title,omitempty"` }
AsinMetadata The A+ Content ASIN with additional metadata for content management. If you don't include the `includedDataSet` parameter in a call to the listContentDocumentAsinRelations operation, the related ASINs are returned without metadata.
type AsinMetadataSet ¶
type AsinMetadataSet = []AsinMetadata
AsinMetadataSet The set of ASIN metadata.
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) CreateContentDocument ¶
func (c *Client) CreateContentDocument(ctx context.Context, params *CreateContentDocumentParams, body CreateContentDocumentJSONRequestBody) (*http.Response, error)
func (*Client) CreateContentDocumentWithBody ¶
func (*Client) GetContentDocument ¶
func (*Client) ListContentDocumentAsinRelations ¶
func (*Client) PostContentDocumentApprovalSubmission ¶
func (*Client) PostContentDocumentAsinRelations ¶
func (c *Client) PostContentDocumentAsinRelations(ctx context.Context, contentReferenceKey string, params *PostContentDocumentAsinRelationsParams, body PostContentDocumentAsinRelationsJSONRequestBody) (*http.Response, error)
func (*Client) PostContentDocumentAsinRelationsWithBody ¶
func (*Client) PostContentDocumentSuspendSubmission ¶
func (*Client) SearchContentDocuments ¶
func (*Client) SearchContentPublishRecords ¶
func (*Client) UpdateContentDocument ¶
func (c *Client) UpdateContentDocument(ctx context.Context, contentReferenceKey string, params *UpdateContentDocumentParams, body UpdateContentDocumentJSONRequestBody) (*http.Response, error)
func (*Client) UpdateContentDocumentWithBody ¶
func (*Client) ValidateContentDocumentAsinRelations ¶
func (c *Client) ValidateContentDocumentAsinRelations(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, body ValidateContentDocumentAsinRelationsJSONRequestBody) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // ValidateContentDocumentAsinRelationsWithBody request with any body ValidateContentDocumentAsinRelationsWithBody(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, contentType string, body io.Reader) (*http.Response, error) ValidateContentDocumentAsinRelations(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, body ValidateContentDocumentAsinRelationsJSONRequestBody) (*http.Response, error) // SearchContentDocuments request SearchContentDocuments(ctx context.Context, params *SearchContentDocumentsParams) (*http.Response, error) // CreateContentDocumentWithBody request with any body CreateContentDocumentWithBody(ctx context.Context, params *CreateContentDocumentParams, contentType string, body io.Reader) (*http.Response, error) CreateContentDocument(ctx context.Context, params *CreateContentDocumentParams, body CreateContentDocumentJSONRequestBody) (*http.Response, error) // GetContentDocument request GetContentDocument(ctx context.Context, contentReferenceKey string, params *GetContentDocumentParams) (*http.Response, error) // UpdateContentDocumentWithBody request with any body UpdateContentDocumentWithBody(ctx context.Context, contentReferenceKey string, params *UpdateContentDocumentParams, contentType string, body io.Reader) (*http.Response, error) UpdateContentDocument(ctx context.Context, contentReferenceKey string, params *UpdateContentDocumentParams, body UpdateContentDocumentJSONRequestBody) (*http.Response, error) // PostContentDocumentApprovalSubmission request PostContentDocumentApprovalSubmission(ctx context.Context, contentReferenceKey string, params *PostContentDocumentApprovalSubmissionParams) (*http.Response, error) // ListContentDocumentAsinRelations request ListContentDocumentAsinRelations(ctx context.Context, contentReferenceKey string, params *ListContentDocumentAsinRelationsParams) (*http.Response, error) // PostContentDocumentAsinRelationsWithBody request with any body PostContentDocumentAsinRelationsWithBody(ctx context.Context, contentReferenceKey string, params *PostContentDocumentAsinRelationsParams, contentType string, body io.Reader) (*http.Response, error) PostContentDocumentAsinRelations(ctx context.Context, contentReferenceKey string, params *PostContentDocumentAsinRelationsParams, body PostContentDocumentAsinRelationsJSONRequestBody) (*http.Response, error) // PostContentDocumentSuspendSubmission request PostContentDocumentSuspendSubmission(ctx context.Context, contentReferenceKey string, params *PostContentDocumentSuspendSubmissionParams) (*http.Response, error) // SearchContentPublishRecords request SearchContentPublishRecords(ctx context.Context, params *SearchContentPublishRecordsParams) (*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.
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) CreateContentDocumentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateContentDocumentWithBodyWithResponse(ctx context.Context, params *CreateContentDocumentParams, contentType string, body io.Reader) (*CreateContentDocumentResp, error)
CreateContentDocumentWithBodyWithResponse request with arbitrary body returning *CreateContentDocumentResp
func (*ClientWithResponses) CreateContentDocumentWithResponse ¶
func (c *ClientWithResponses) CreateContentDocumentWithResponse(ctx context.Context, params *CreateContentDocumentParams, body CreateContentDocumentJSONRequestBody) (*CreateContentDocumentResp, error)
func (*ClientWithResponses) GetContentDocumentWithResponse ¶
func (c *ClientWithResponses) GetContentDocumentWithResponse(ctx context.Context, contentReferenceKey string, params *GetContentDocumentParams) (*GetContentDocumentResp, error)
GetContentDocumentWithResponse request returning *GetContentDocumentResp
func (*ClientWithResponses) ListContentDocumentAsinRelationsWithResponse ¶
func (c *ClientWithResponses) ListContentDocumentAsinRelationsWithResponse(ctx context.Context, contentReferenceKey string, params *ListContentDocumentAsinRelationsParams) (*ListContentDocumentAsinRelationsResp, error)
ListContentDocumentAsinRelationsWithResponse request returning *ListContentDocumentAsinRelationsResp
func (*ClientWithResponses) PostContentDocumentApprovalSubmissionWithResponse ¶
func (c *ClientWithResponses) PostContentDocumentApprovalSubmissionWithResponse(ctx context.Context, contentReferenceKey string, params *PostContentDocumentApprovalSubmissionParams) (*PostContentDocumentApprovalSubmissionResp, error)
PostContentDocumentApprovalSubmissionWithResponse request returning *PostContentDocumentApprovalSubmissionResp
func (*ClientWithResponses) PostContentDocumentAsinRelationsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostContentDocumentAsinRelationsWithBodyWithResponse(ctx context.Context, contentReferenceKey string, params *PostContentDocumentAsinRelationsParams, contentType string, body io.Reader) (*PostContentDocumentAsinRelationsResp, error)
PostContentDocumentAsinRelationsWithBodyWithResponse request with arbitrary body returning *PostContentDocumentAsinRelationsResp
func (*ClientWithResponses) PostContentDocumentAsinRelationsWithResponse ¶
func (c *ClientWithResponses) PostContentDocumentAsinRelationsWithResponse(ctx context.Context, contentReferenceKey string, params *PostContentDocumentAsinRelationsParams, body PostContentDocumentAsinRelationsJSONRequestBody) (*PostContentDocumentAsinRelationsResp, error)
func (*ClientWithResponses) PostContentDocumentSuspendSubmissionWithResponse ¶
func (c *ClientWithResponses) PostContentDocumentSuspendSubmissionWithResponse(ctx context.Context, contentReferenceKey string, params *PostContentDocumentSuspendSubmissionParams) (*PostContentDocumentSuspendSubmissionResp, error)
PostContentDocumentSuspendSubmissionWithResponse request returning *PostContentDocumentSuspendSubmissionResp
func (*ClientWithResponses) SearchContentDocumentsWithResponse ¶
func (c *ClientWithResponses) SearchContentDocumentsWithResponse(ctx context.Context, params *SearchContentDocumentsParams) (*SearchContentDocumentsResp, error)
SearchContentDocumentsWithResponse request returning *SearchContentDocumentsResp
func (*ClientWithResponses) SearchContentPublishRecordsWithResponse ¶
func (c *ClientWithResponses) SearchContentPublishRecordsWithResponse(ctx context.Context, params *SearchContentPublishRecordsParams) (*SearchContentPublishRecordsResp, error)
SearchContentPublishRecordsWithResponse request returning *SearchContentPublishRecordsResp
func (*ClientWithResponses) UpdateContentDocumentWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateContentDocumentWithBodyWithResponse(ctx context.Context, contentReferenceKey string, params *UpdateContentDocumentParams, contentType string, body io.Reader) (*UpdateContentDocumentResp, error)
UpdateContentDocumentWithBodyWithResponse request with arbitrary body returning *UpdateContentDocumentResp
func (*ClientWithResponses) UpdateContentDocumentWithResponse ¶
func (c *ClientWithResponses) UpdateContentDocumentWithResponse(ctx context.Context, contentReferenceKey string, params *UpdateContentDocumentParams, body UpdateContentDocumentJSONRequestBody) (*UpdateContentDocumentResp, error)
func (*ClientWithResponses) ValidateContentDocumentAsinRelationsWithBodyWithResponse ¶
func (c *ClientWithResponses) ValidateContentDocumentAsinRelationsWithBodyWithResponse(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, contentType string, body io.Reader) (*ValidateContentDocumentAsinRelationsResp, error)
ValidateContentDocumentAsinRelationsWithBodyWithResponse request with arbitrary body returning *ValidateContentDocumentAsinRelationsResp
func (*ClientWithResponses) ValidateContentDocumentAsinRelationsWithResponse ¶
func (c *ClientWithResponses) ValidateContentDocumentAsinRelationsWithResponse(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, body ValidateContentDocumentAsinRelationsJSONRequestBody) (*ValidateContentDocumentAsinRelationsResp, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // ValidateContentDocumentAsinRelationsWithBodyWithResponse request with any body ValidateContentDocumentAsinRelationsWithBodyWithResponse(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, contentType string, body io.Reader) (*ValidateContentDocumentAsinRelationsResp, error) ValidateContentDocumentAsinRelationsWithResponse(ctx context.Context, params *ValidateContentDocumentAsinRelationsParams, body ValidateContentDocumentAsinRelationsJSONRequestBody) (*ValidateContentDocumentAsinRelationsResp, error) // SearchContentDocumentsWithResponse request SearchContentDocumentsWithResponse(ctx context.Context, params *SearchContentDocumentsParams) (*SearchContentDocumentsResp, error) // CreateContentDocumentWithBodyWithResponse request with any body CreateContentDocumentWithBodyWithResponse(ctx context.Context, params *CreateContentDocumentParams, contentType string, body io.Reader) (*CreateContentDocumentResp, error) CreateContentDocumentWithResponse(ctx context.Context, params *CreateContentDocumentParams, body CreateContentDocumentJSONRequestBody) (*CreateContentDocumentResp, error) // GetContentDocumentWithResponse request GetContentDocumentWithResponse(ctx context.Context, contentReferenceKey string, params *GetContentDocumentParams) (*GetContentDocumentResp, error) // UpdateContentDocumentWithBodyWithResponse request with any body UpdateContentDocumentWithBodyWithResponse(ctx context.Context, contentReferenceKey string, params *UpdateContentDocumentParams, contentType string, body io.Reader) (*UpdateContentDocumentResp, error) UpdateContentDocumentWithResponse(ctx context.Context, contentReferenceKey string, params *UpdateContentDocumentParams, body UpdateContentDocumentJSONRequestBody) (*UpdateContentDocumentResp, error) // PostContentDocumentApprovalSubmissionWithResponse request PostContentDocumentApprovalSubmissionWithResponse(ctx context.Context, contentReferenceKey string, params *PostContentDocumentApprovalSubmissionParams) (*PostContentDocumentApprovalSubmissionResp, error) // ListContentDocumentAsinRelationsWithResponse request ListContentDocumentAsinRelationsWithResponse(ctx context.Context, contentReferenceKey string, params *ListContentDocumentAsinRelationsParams) (*ListContentDocumentAsinRelationsResp, error) // PostContentDocumentAsinRelationsWithBodyWithResponse request with any body PostContentDocumentAsinRelationsWithBodyWithResponse(ctx context.Context, contentReferenceKey string, params *PostContentDocumentAsinRelationsParams, contentType string, body io.Reader) (*PostContentDocumentAsinRelationsResp, error) PostContentDocumentAsinRelationsWithResponse(ctx context.Context, contentReferenceKey string, params *PostContentDocumentAsinRelationsParams, body PostContentDocumentAsinRelationsJSONRequestBody) (*PostContentDocumentAsinRelationsResp, error) // PostContentDocumentSuspendSubmissionWithResponse request PostContentDocumentSuspendSubmissionWithResponse(ctx context.Context, contentReferenceKey string, params *PostContentDocumentSuspendSubmissionParams) (*PostContentDocumentSuspendSubmissionResp, error) // SearchContentPublishRecordsWithResponse request SearchContentPublishRecordsWithResponse(ctx context.Context, params *SearchContentPublishRecordsParams) (*SearchContentPublishRecordsResp, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ContentBadge ¶
type ContentBadge string
ContentBadge A flag that provides additional information about an A+ Content document.
const ( BULK ContentBadge = "BULK" GENERATED ContentBadge = "GENERATED" LAUNCHPAD ContentBadge = "LAUNCHPAD" PREMIUM ContentBadge = "PREMIUM" STANDARD ContentBadge = "STANDARD" )
Defines values for ContentBadge.
type ContentBadgeSet ¶
type ContentBadgeSet = []ContentBadge
ContentBadgeSet The set of content badges.
type ContentDocument ¶
type ContentDocument struct { // ContentModuleList A list of A+ Content modules. ContentModuleList ContentModuleList `json:"contentModuleList"` // ContentSubType The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time. ContentSubType *ContentSubType `json:"contentSubType,omitempty"` // ContentType The A+ Content document type. ContentType ContentType `json:"contentType"` // Locale The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags. // **Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$ Locale LanguageTag `json:"locale"` // Name The A+ Content document name. Name string `json:"name"` }
ContentDocument The A+ Content document. This is the enhanced content that is published to product detail pages.
type ContentMetadata ¶
type ContentMetadata struct { // BadgeSet The set of content badges. BadgeSet ContentBadgeSet `json:"badgeSet"` // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId MarketplaceId `json:"marketplaceId"` // Name The A+ Content document name. Name string `json:"name"` // Status The submission status of the content document. Status ContentStatus `json:"status"` // UpdateTime The approximate age of the A+ Content document and metadata. UpdateTime time.Time `json:"updateTime"` }
ContentMetadata The metadata of an A+ Content document.
type ContentMetadataRecord ¶
type ContentMetadataRecord struct { // ContentMetadata The metadata of an A+ Content document. ContentMetadata ContentMetadata `json:"contentMetadata"` // ContentReferenceKey A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. ContentReferenceKey ContentReferenceKey `json:"contentReferenceKey"` }
ContentMetadataRecord The metadata for an A+ Content document, with additional information for content management.
type ContentMetadataRecordList ¶
type ContentMetadataRecordList = []ContentMetadataRecord
ContentMetadataRecordList A list of A+ Content metadata records.
type ContentModule ¶
type ContentModule struct { // ContentModuleType The type of A+ Content module. ContentModuleType ContentModuleType `json:"contentModuleType"` // StandardCompanyLogo The standard company logo image. StandardCompanyLogo *StandardCompanyLogoModule `json:"standardCompanyLogo,omitempty"` // StandardComparisonTable The standard product comparison table. StandardComparisonTable *StandardComparisonTableModule `json:"standardComparisonTable,omitempty"` // StandardFourImageText Four standard images with text, presented across a single row. StandardFourImageText *StandardFourImageTextModule `json:"standardFourImageText,omitempty"` // StandardFourImageTextQuadrant Four standard images with text, presented on a grid of four quadrants. StandardFourImageTextQuadrant *StandardFourImageTextQuadrantModule `json:"standardFourImageTextQuadrant,omitempty"` // StandardHeaderImageText Standard headline text, an image, and body text. StandardHeaderImageText *StandardHeaderImageTextModule `json:"standardHeaderImageText,omitempty"` // StandardImageSidebar Two images, two paragraphs, and two bulleted lists. One image is smaller and displayed in the sidebar. StandardImageSidebar *StandardImageSidebarModule `json:"standardImageSidebar,omitempty"` // StandardImageTextOverlay A standard background image with a floating text box. StandardImageTextOverlay *StandardImageTextOverlayModule `json:"standardImageTextOverlay,omitempty"` // StandardMultipleImageText Standard images with text, presented one at a time. The user clicks on thumbnails to view each block. StandardMultipleImageText *StandardMultipleImageTextModule `json:"standardMultipleImageText,omitempty"` // StandardProductDescription Standard product description text. StandardProductDescription *StandardProductDescriptionModule `json:"standardProductDescription,omitempty"` // StandardSingleImageHighlights A standard image with several paragraphs and a bulleted list. StandardSingleImageHighlights *StandardSingleImageHighlightsModule `json:"standardSingleImageHighlights,omitempty"` // StandardSingleImageSpecsDetail A standard image with paragraphs and a bulleted list, and extra space for technical details. StandardSingleImageSpecsDetail *StandardSingleImageSpecsDetailModule `json:"standardSingleImageSpecsDetail,omitempty"` // StandardSingleSideImage A standard headline and body text with an image on the side. StandardSingleSideImage *StandardSingleSideImageModule `json:"standardSingleSideImage,omitempty"` // StandardTechSpecs The standard table of technical feature names and definitions. StandardTechSpecs *StandardTechSpecsModule `json:"standardTechSpecs,omitempty"` // StandardText A standard headline and body text. StandardText *StandardTextModule `json:"standardText,omitempty"` // StandardThreeImageText Three standard images with text, presented across a single row. StandardThreeImageText *StandardThreeImageTextModule `json:"standardThreeImageText,omitempty"` }
ContentModule An A+ Content module. An A+ Content document is composed of content modules. The contentModuleType property selects which content module types to use.
type ContentModuleList ¶
type ContentModuleList = []ContentModule
ContentModuleList A list of A+ Content modules.
type ContentModuleType ¶
type ContentModuleType string
ContentModuleType The type of A+ Content module.
const ( STANDARDCOMPANYLOGO ContentModuleType = "STANDARD_COMPANY_LOGO" STANDARDCOMPARISONTABLE ContentModuleType = "STANDARD_COMPARISON_TABLE" STANDARDFOURIMAGETEXT ContentModuleType = "STANDARD_FOUR_IMAGE_TEXT" STANDARDFOURIMAGETEXTQUADRANT ContentModuleType = "STANDARD_FOUR_IMAGE_TEXT_QUADRANT" STANDARDHEADERIMAGETEXT ContentModuleType = "STANDARD_HEADER_IMAGE_TEXT" STANDARDIMAGESIDEBAR ContentModuleType = "STANDARD_IMAGE_SIDEBAR" STANDARDIMAGETEXTOVERLAY ContentModuleType = "STANDARD_IMAGE_TEXT_OVERLAY" STANDARDMULTIPLEIMAGETEXT ContentModuleType = "STANDARD_MULTIPLE_IMAGE_TEXT" STANDARDPRODUCTDESCRIPTION ContentModuleType = "STANDARD_PRODUCT_DESCRIPTION" STANDARDSINGLEIMAGEHIGHLIGHTS ContentModuleType = "STANDARD_SINGLE_IMAGE_HIGHLIGHTS" STANDARDSINGLEIMAGESPECSDETAIL ContentModuleType = "STANDARD_SINGLE_IMAGE_SPECS_DETAIL" STANDARDSINGLESIDEIMAGE ContentModuleType = "STANDARD_SINGLE_SIDE_IMAGE" STANDARDTECHSPECS ContentModuleType = "STANDARD_TECH_SPECS" STANDARDTEXT ContentModuleType = "STANDARD_TEXT" STANDARDTHREEIMAGETEXT ContentModuleType = "STANDARD_THREE_IMAGE_TEXT" )
Defines values for ContentModuleType.
type ContentRecord ¶
type ContentRecord struct { // ContentDocument The A+ Content document. This is the enhanced content that is published to product detail pages. ContentDocument *ContentDocument `json:"contentDocument,omitempty"` // ContentMetadata The metadata of an A+ Content document. ContentMetadata *ContentMetadata `json:"contentMetadata,omitempty"` // ContentReferenceKey A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. ContentReferenceKey ContentReferenceKey `json:"contentReferenceKey"` }
ContentRecord A content document with additional information for content management.
type ContentReferenceKey ¶
type ContentReferenceKey = string
ContentReferenceKey A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier.
type ContentReferenceKeySet ¶
type ContentReferenceKeySet = []ContentReferenceKey
ContentReferenceKeySet A set of content reference keys.
type ContentStatus ¶
type ContentStatus string
ContentStatus The submission status of the content document.
const ( APPROVED ContentStatus = "APPROVED" DRAFT ContentStatus = "DRAFT" REJECTED ContentStatus = "REJECTED" SUBMITTED ContentStatus = "SUBMITTED" )
Defines values for ContentStatus.
type ContentSubType ¶
type ContentSubType = string
ContentSubType The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time.
type ContentType ¶
type ContentType string
ContentType The A+ Content document type.
const ( EBC ContentType = "EBC" EMC ContentType = "EMC" )
Defines values for ContentType.
type CreateContentDocumentJSONRequestBody ¶
type CreateContentDocumentJSONRequestBody = PostContentDocumentRequest
CreateContentDocumentJSONRequestBody defines body for CreateContentDocument for application/json ContentType.
type CreateContentDocumentParams ¶
type CreateContentDocumentParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` }
CreateContentDocumentParams defines parameters for CreateContentDocument.
type CreateContentDocumentResp ¶
type CreateContentDocumentResp struct { Body []byte HTTPResponse *http.Response JSON200 *PostContentDocumentResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseCreateContentDocumentResp ¶
func ParseCreateContentDocumentResp(rsp *http.Response) (*CreateContentDocumentResp, error)
ParseCreateContentDocumentResp parses an HTTP response from a CreateContentDocumentWithResponse call
func (CreateContentDocumentResp) Status ¶
func (r CreateContentDocumentResp) Status() string
Status returns HTTPResponse.Status
func (CreateContentDocumentResp) StatusCode ¶
func (r CreateContentDocumentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Decorator ¶
type Decorator struct { // Depth The relative intensity or variation of this decorator. Decorators such as bullet-points, for example, can have multiple indentation depths. Depth *int `json:"depth,omitempty"` // Length The number of content characters to alter with this decorator. Decorators such as line breaks can have zero length and fit between characters. Length *int `json:"length,omitempty"` // Offset The starting character of this decorator within the content string. Use zero for the first character. Offset *int `json:"offset,omitempty"` // Type The type of rich text decorator. Type *DecoratorType `json:"type,omitempty"` }
Decorator A decorator applied to a content string value in order to create rich text.
type DecoratorType ¶
type DecoratorType string
DecoratorType The type of rich text decorator.
const ( LISTITEM DecoratorType = "LIST_ITEM" LISTORDERED DecoratorType = "LIST_ORDERED" LISTUNORDERED DecoratorType = "LIST_UNORDERED" STYLEBOLD DecoratorType = "STYLE_BOLD" STYLEITALIC DecoratorType = "STYLE_ITALIC" STYLELINEBREAK DecoratorType = "STYLE_LINEBREAK" STYLEPARAGRAPH DecoratorType = "STYLE_PARAGRAPH" STYLEUNDERLINE DecoratorType = "STYLE_UNDERLINE" )
Defines values for DecoratorType.
type Error ¶
type Error struct { // Code The code that identifies the type of error condition. Code string `json:"code"` // Details Additional information, if available, to clarify the error condition. Details *string `json:"details,omitempty"` // Message A human readable description of the error condition. Message string `json:"message"` }
Error 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 The error response for when a request is unsuccessful.
type GetContentDocumentParams ¶
type GetContentDocumentParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` // IncludedDataSet The set of A+ Content data types to include in the response. IncludedDataSet []GetContentDocumentParamsIncludedDataSet `form:"includedDataSet" json:"includedDataSet"` }
GetContentDocumentParams defines parameters for GetContentDocument.
type GetContentDocumentParamsIncludedDataSet ¶
type GetContentDocumentParamsIncludedDataSet string
GetContentDocumentParamsIncludedDataSet defines parameters for GetContentDocument.
const ( GetContentDocumentParamsIncludedDataSetCONTENTS GetContentDocumentParamsIncludedDataSet = "CONTENTS" GetContentDocumentParamsIncludedDataSetMETADATA GetContentDocumentParamsIncludedDataSet = "METADATA" )
Defines values for GetContentDocumentParamsIncludedDataSet.
type GetContentDocumentResp ¶
type GetContentDocumentResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetContentDocumentResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON410 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseGetContentDocumentResp ¶
func ParseGetContentDocumentResp(rsp *http.Response) (*GetContentDocumentResp, error)
ParseGetContentDocumentResp parses an HTTP response from a GetContentDocumentWithResponse call
func (GetContentDocumentResp) Status ¶
func (r GetContentDocumentResp) Status() string
Status returns HTTPResponse.Status
func (GetContentDocumentResp) StatusCode ¶
func (r GetContentDocumentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetContentDocumentResponse ¶
type GetContentDocumentResponse struct { // ContentRecord A content document with additional information for content management. ContentRecord ContentRecord `json:"contentRecord"` // Warnings A set of messages to the user, such as warnings or comments. Warnings *MessageSet `json:"warnings,omitempty"` }
GetContentDocumentResponse defines model for GetContentDocumentResponse.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImageComponent ¶
type ImageComponent struct { // AltText The alternative text for the image. AltText string `json:"altText"` // ImageCropSpecification The instructions for optionally cropping an image. If no cropping is desired, set the dimensions to the original image size. If the image is cropped and no offset values are provided, then the coordinates of the top left corner of the cropped image, relative to the original image, are defaulted to (0,0). ImageCropSpecification ImageCropSpecification `json:"imageCropSpecification"` // UploadDestinationId This identifier is provided by the Selling Partner API for Uploads. UploadDestinationId string `json:"uploadDestinationId"` }
ImageComponent A reference to an image, hosted in the A+ Content media library.
type ImageCropSpecification ¶
type ImageCropSpecification struct { // Offset The top left corner of the cropped image, specified in the original image's coordinate space. Offset *ImageOffsets `json:"offset,omitempty"` // Size The dimensions extending from the top left corner of the cropped image, or the top left corner of the original image if there is no cropping. Only `pixels` is allowed as the units value for ImageDimensions. Size ImageDimensions `json:"size"` }
ImageCropSpecification The instructions for optionally cropping an image. If no cropping is desired, set the dimensions to the original image size. If the image is cropped and no offset values are provided, then the coordinates of the top left corner of the cropped image, relative to the original image, are defaulted to (0,0).
type ImageDimensions ¶
type ImageDimensions struct { // Height A whole number dimension and its unit of measurement. For example, this can represent 100 pixels. Height IntegerWithUnits `json:"height"` // Width A whole number dimension and its unit of measurement. For example, this can represent 100 pixels. Width IntegerWithUnits `json:"width"` }
ImageDimensions The dimensions extending from the top left corner of the cropped image, or the top left corner of the original image if there is no cropping. Only `pixels` is allowed as the units value for ImageDimensions.
type ImageOffsets ¶
type ImageOffsets struct { // X A whole number dimension and its unit of measurement. For example, this can represent 100 pixels. X IntegerWithUnits `json:"x"` // Y A whole number dimension and its unit of measurement. For example, this can represent 100 pixels. Y IntegerWithUnits `json:"y"` }
ImageOffsets The top left corner of the cropped image, specified in the original image's coordinate space.
type IntegerWithUnits ¶
type IntegerWithUnits struct { // Units The unit of measurement. Units string `json:"units"` // Value The dimension value. Value int `json:"value"` }
IntegerWithUnits A whole number dimension and its unit of measurement. For example, this can represent 100 pixels.
type LanguageTag ¶
type LanguageTag = string
LanguageTag The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags. **Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$
type ListContentDocumentAsinRelationsParams ¶
type ListContentDocumentAsinRelationsParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` // IncludedDataSet The set of A+ Content data types to include in the response. If you do not include this parameter, the operation returns the related ASINs without metadata. IncludedDataSet *[]ListContentDocumentAsinRelationsParamsIncludedDataSet `form:"includedDataSet,omitempty" json:"includedDataSet,omitempty"` // AsinSet The set of ASINs. AsinSet *[]string `form:"asinSet,omitempty" json:"asinSet,omitempty"` // PageToken A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"` }
ListContentDocumentAsinRelationsParams defines parameters for ListContentDocumentAsinRelations.
type ListContentDocumentAsinRelationsParamsIncludedDataSet ¶
type ListContentDocumentAsinRelationsParamsIncludedDataSet string
ListContentDocumentAsinRelationsParamsIncludedDataSet defines parameters for ListContentDocumentAsinRelations.
const (
ListContentDocumentAsinRelationsParamsIncludedDataSetMETADATA ListContentDocumentAsinRelationsParamsIncludedDataSet = "METADATA"
)
Defines values for ListContentDocumentAsinRelationsParamsIncludedDataSet.
type ListContentDocumentAsinRelationsResp ¶
type ListContentDocumentAsinRelationsResp struct { Body []byte HTTPResponse *http.Response JSON200 *ListContentDocumentAsinRelationsResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON410 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseListContentDocumentAsinRelationsResp ¶
func ParseListContentDocumentAsinRelationsResp(rsp *http.Response) (*ListContentDocumentAsinRelationsResp, error)
ParseListContentDocumentAsinRelationsResp parses an HTTP response from a ListContentDocumentAsinRelationsWithResponse call
func (ListContentDocumentAsinRelationsResp) Status ¶
func (r ListContentDocumentAsinRelationsResp) Status() string
Status returns HTTPResponse.Status
func (ListContentDocumentAsinRelationsResp) StatusCode ¶
func (r ListContentDocumentAsinRelationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListContentDocumentAsinRelationsResponse ¶
type ListContentDocumentAsinRelationsResponse struct { // AsinMetadataSet The set of ASIN metadata. AsinMetadataSet AsinMetadataSet `json:"asinMetadataSet"` // NextPageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. NextPageToken *PageToken `json:"nextPageToken,omitempty"` // Warnings A set of messages to the user, such as warnings or comments. Warnings *MessageSet `json:"warnings,omitempty"` }
ListContentDocumentAsinRelationsResponse defines model for ListContentDocumentAsinRelationsResponse.
type MarketplaceId ¶
type MarketplaceId = string
MarketplaceId The identifier for the marketplace where the A+ Content is published.
type MessageSet ¶
type MessageSet = []Error
MessageSet A set of messages to the user, such as warnings or comments.
type PageToken ¶
type PageToken = string
PageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter.
type ParagraphComponent ¶
type ParagraphComponent struct {
TextList []TextComponent `json:"textList"`
}
ParagraphComponent A list of rich text content, usually presented in a text box.
type PlainTextItem ¶
type PlainTextItem struct { // Position The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection. Position int `json:"position"` // Value The actual plain text. Value string `json:"value"` }
PlainTextItem Plain positional text, used in collections of brief labels and descriptors.
type PositionType ¶
type PositionType string
PositionType The relative positioning of content.
const ( LEFT PositionType = "LEFT" RIGHT PositionType = "RIGHT" )
Defines values for PositionType.
type PostContentDocumentApprovalSubmissionParams ¶
type PostContentDocumentApprovalSubmissionParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` }
PostContentDocumentApprovalSubmissionParams defines parameters for PostContentDocumentApprovalSubmission.
type PostContentDocumentApprovalSubmissionResp ¶
type PostContentDocumentApprovalSubmissionResp struct { Body []byte HTTPResponse *http.Response JSON200 *PostContentDocumentApprovalSubmissionResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON410 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParsePostContentDocumentApprovalSubmissionResp ¶
func ParsePostContentDocumentApprovalSubmissionResp(rsp *http.Response) (*PostContentDocumentApprovalSubmissionResp, error)
ParsePostContentDocumentApprovalSubmissionResp parses an HTTP response from a PostContentDocumentApprovalSubmissionWithResponse call
func (PostContentDocumentApprovalSubmissionResp) Status ¶
func (r PostContentDocumentApprovalSubmissionResp) Status() string
Status returns HTTPResponse.Status
func (PostContentDocumentApprovalSubmissionResp) StatusCode ¶
func (r PostContentDocumentApprovalSubmissionResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostContentDocumentApprovalSubmissionResponse ¶
type PostContentDocumentApprovalSubmissionResponse = AplusResponse
PostContentDocumentApprovalSubmissionResponse The base response data for all A+ Content operations when a request is successful or partially successful. Individual operations may extend this with additional data.
type PostContentDocumentAsinRelationsJSONRequestBody ¶
type PostContentDocumentAsinRelationsJSONRequestBody = PostContentDocumentAsinRelationsRequest
PostContentDocumentAsinRelationsJSONRequestBody defines body for PostContentDocumentAsinRelations for application/json ContentType.
type PostContentDocumentAsinRelationsParams ¶
type PostContentDocumentAsinRelationsParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` }
PostContentDocumentAsinRelationsParams defines parameters for PostContentDocumentAsinRelations.
type PostContentDocumentAsinRelationsRequest ¶
type PostContentDocumentAsinRelationsRequest struct { // AsinSet The set of ASINs. AsinSet AsinSet `json:"asinSet"` }
PostContentDocumentAsinRelationsRequest defines model for PostContentDocumentAsinRelationsRequest.
type PostContentDocumentAsinRelationsResp ¶
type PostContentDocumentAsinRelationsResp struct { Body []byte HTTPResponse *http.Response JSON200 *PostContentDocumentAsinRelationsResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON410 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParsePostContentDocumentAsinRelationsResp ¶
func ParsePostContentDocumentAsinRelationsResp(rsp *http.Response) (*PostContentDocumentAsinRelationsResp, error)
ParsePostContentDocumentAsinRelationsResp parses an HTTP response from a PostContentDocumentAsinRelationsWithResponse call
func (PostContentDocumentAsinRelationsResp) Status ¶
func (r PostContentDocumentAsinRelationsResp) Status() string
Status returns HTTPResponse.Status
func (PostContentDocumentAsinRelationsResp) StatusCode ¶
func (r PostContentDocumentAsinRelationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostContentDocumentAsinRelationsResponse ¶
type PostContentDocumentAsinRelationsResponse = AplusResponse
PostContentDocumentAsinRelationsResponse The base response data for all A+ Content operations when a request is successful or partially successful. Individual operations may extend this with additional data.
type PostContentDocumentRequest ¶
type PostContentDocumentRequest struct { // ContentDocument The A+ Content document. This is the enhanced content that is published to product detail pages. ContentDocument ContentDocument `json:"contentDocument"` }
PostContentDocumentRequest defines model for PostContentDocumentRequest.
type PostContentDocumentResponse ¶
type PostContentDocumentResponse struct { // ContentReferenceKey A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. ContentReferenceKey ContentReferenceKey `json:"contentReferenceKey"` // Warnings A set of messages to the user, such as warnings or comments. Warnings *MessageSet `json:"warnings,omitempty"` }
PostContentDocumentResponse defines model for PostContentDocumentResponse.
type PostContentDocumentSuspendSubmissionParams ¶
type PostContentDocumentSuspendSubmissionParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` }
PostContentDocumentSuspendSubmissionParams defines parameters for PostContentDocumentSuspendSubmission.
type PostContentDocumentSuspendSubmissionResp ¶
type PostContentDocumentSuspendSubmissionResp struct { Body []byte HTTPResponse *http.Response JSON200 *PostContentDocumentSuspendSubmissionResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON410 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParsePostContentDocumentSuspendSubmissionResp ¶
func ParsePostContentDocumentSuspendSubmissionResp(rsp *http.Response) (*PostContentDocumentSuspendSubmissionResp, error)
ParsePostContentDocumentSuspendSubmissionResp parses an HTTP response from a PostContentDocumentSuspendSubmissionWithResponse call
func (PostContentDocumentSuspendSubmissionResp) Status ¶
func (r PostContentDocumentSuspendSubmissionResp) Status() string
Status returns HTTPResponse.Status
func (PostContentDocumentSuspendSubmissionResp) StatusCode ¶
func (r PostContentDocumentSuspendSubmissionResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostContentDocumentSuspendSubmissionResponse ¶
type PostContentDocumentSuspendSubmissionResponse = AplusResponse
PostContentDocumentSuspendSubmissionResponse The base response data for all A+ Content operations when a request is successful or partially successful. Individual operations may extend this with additional data.
type PublishRecord ¶
type PublishRecord struct { // Asin The Amazon Standard Identification Number (ASIN). Asin Asin `json:"asin"` // ContentReferenceKey A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier. ContentReferenceKey ContentReferenceKey `json:"contentReferenceKey"` // ContentSubType The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time. ContentSubType *ContentSubType `json:"contentSubType,omitempty"` // ContentType The A+ Content document type. ContentType ContentType `json:"contentType"` // Locale The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags. // **Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$ Locale LanguageTag `json:"locale"` // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId MarketplaceId `json:"marketplaceId"` }
PublishRecord The full context for an A+ Content publishing event.
type PublishRecordList ¶
type PublishRecordList = []PublishRecord
PublishRecordList A list of A+ Content publishing records.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseEditorFn ¶
ResponseEditorFn is the function signature for the ResponseEditor callback function
type SearchContentDocumentsParams ¶
type SearchContentDocumentsParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` // PageToken A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"` }
SearchContentDocumentsParams defines parameters for SearchContentDocuments.
type SearchContentDocumentsResp ¶
type SearchContentDocumentsResp struct { Body []byte HTTPResponse *http.Response JSON200 *SearchContentDocumentsResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON410 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseSearchContentDocumentsResp ¶
func ParseSearchContentDocumentsResp(rsp *http.Response) (*SearchContentDocumentsResp, error)
ParseSearchContentDocumentsResp parses an HTTP response from a SearchContentDocumentsWithResponse call
func (SearchContentDocumentsResp) Status ¶
func (r SearchContentDocumentsResp) Status() string
Status returns HTTPResponse.Status
func (SearchContentDocumentsResp) StatusCode ¶
func (r SearchContentDocumentsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchContentDocumentsResponse ¶
type SearchContentDocumentsResponse struct { // ContentMetadataRecords A list of A+ Content metadata records. ContentMetadataRecords ContentMetadataRecordList `json:"contentMetadataRecords"` // NextPageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. NextPageToken *PageToken `json:"nextPageToken,omitempty"` // Warnings A set of messages to the user, such as warnings or comments. Warnings *MessageSet `json:"warnings,omitempty"` }
SearchContentDocumentsResponse defines model for SearchContentDocumentsResponse.
type SearchContentPublishRecordsParams ¶
type SearchContentPublishRecordsParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` // Asin The Amazon Standard Identification Number (ASIN). Asin string `form:"asin" json:"asin"` // PageToken A page token from the nextPageToken response element returned by your previous call to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any other parameter will cause the request to fail. When no nextPageToken value is returned there are no more pages to return. A pageToken value is not usable across different operations. PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"` }
SearchContentPublishRecordsParams defines parameters for SearchContentPublishRecords.
type SearchContentPublishRecordsResp ¶
type SearchContentPublishRecordsResp struct { Body []byte HTTPResponse *http.Response JSON200 *SearchContentPublishRecordsResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseSearchContentPublishRecordsResp ¶
func ParseSearchContentPublishRecordsResp(rsp *http.Response) (*SearchContentPublishRecordsResp, error)
ParseSearchContentPublishRecordsResp parses an HTTP response from a SearchContentPublishRecordsWithResponse call
func (SearchContentPublishRecordsResp) Status ¶
func (r SearchContentPublishRecordsResp) Status() string
Status returns HTTPResponse.Status
func (SearchContentPublishRecordsResp) StatusCode ¶
func (r SearchContentPublishRecordsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchContentPublishRecordsResponse ¶
type SearchContentPublishRecordsResponse struct { // NextPageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter. NextPageToken *PageToken `json:"nextPageToken,omitempty"` // PublishRecordList A list of A+ Content publishing records. PublishRecordList PublishRecordList `json:"publishRecordList"` // Warnings A set of messages to the user, such as warnings or comments. Warnings *MessageSet `json:"warnings,omitempty"` }
SearchContentPublishRecordsResponse defines model for SearchContentPublishRecordsResponse.
type StandardCompanyLogoModule ¶
type StandardCompanyLogoModule struct { // CompanyLogo A reference to an image, hosted in the A+ Content media library. CompanyLogo ImageComponent `json:"companyLogo"` }
StandardCompanyLogoModule The standard company logo image.
type StandardComparisonProductBlock ¶
type StandardComparisonProductBlock struct { // Asin The Amazon Standard Identification Number (ASIN). Asin *Asin `json:"asin,omitempty"` // Highlight Determines whether this block of content is visually highlighted. Highlight *bool `json:"highlight,omitempty"` // Image A reference to an image, hosted in the A+ Content media library. Image *ImageComponent `json:"image,omitempty"` // Metrics Comparison metrics for the product. Metrics *[]PlainTextItem `json:"metrics,omitempty"` // Position The rank or index of this comparison product block within the module. Different blocks cannot occupy the same position within a single module. Position int `json:"position"` // Title The comparison product title. Title *string `json:"title,omitempty"` }
StandardComparisonProductBlock The A+ Content standard comparison product block.
type StandardComparisonTableModule ¶
type StandardComparisonTableModule struct { MetricRowLabels *[]PlainTextItem `json:"metricRowLabels,omitempty"` ProductColumns *[]StandardComparisonProductBlock `json:"productColumns,omitempty"` }
StandardComparisonTableModule The standard product comparison table.
type StandardFourImageTextModule ¶
type StandardFourImageTextModule struct { // Block1 The A+ Content standard image and text box block. Block1 *StandardImageTextBlock `json:"block1,omitempty"` // Block2 The A+ Content standard image and text box block. Block2 *StandardImageTextBlock `json:"block2,omitempty"` // Block3 The A+ Content standard image and text box block. Block3 *StandardImageTextBlock `json:"block3,omitempty"` // Block4 The A+ Content standard image and text box block. Block4 *StandardImageTextBlock `json:"block4,omitempty"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` }
StandardFourImageTextModule Four standard images with text, presented across a single row.
type StandardFourImageTextQuadrantModule ¶
type StandardFourImageTextQuadrantModule struct { // Block1 The A+ Content standard image and text box block. Block1 StandardImageTextBlock `json:"block1"` // Block2 The A+ Content standard image and text box block. Block2 StandardImageTextBlock `json:"block2"` // Block3 The A+ Content standard image and text box block. Block3 StandardImageTextBlock `json:"block3"` // Block4 The A+ Content standard image and text box block. Block4 StandardImageTextBlock `json:"block4"` }
StandardFourImageTextQuadrantModule Four standard images with text, presented on a grid of four quadrants.
type StandardHeaderImageTextModule ¶
type StandardHeaderImageTextModule struct { // Block The A+ Content standard image and text box block. Block *StandardImageTextBlock `json:"block,omitempty"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` }
StandardHeaderImageTextModule Standard headline text, an image, and body text.
type StandardHeaderTextListBlock ¶
type StandardHeaderTextListBlock struct { // Block The A+ Content standard fixed length list of text, usually presented as bullet points. Block *StandardTextListBlock `json:"block,omitempty"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` }
StandardHeaderTextListBlock The A+ standard fixed-length list of text, with a related headline.
type StandardImageCaptionBlock ¶
type StandardImageCaptionBlock struct { // Caption Rich text content. Caption *TextComponent `json:"caption,omitempty"` // Image A reference to an image, hosted in the A+ Content media library. Image *ImageComponent `json:"image,omitempty"` }
StandardImageCaptionBlock The A+ Content standard image and caption block.
type StandardImageSidebarModule ¶
type StandardImageSidebarModule struct { // DescriptionListBlock The A+ Content standard fixed length list of text, usually presented as bullet points. DescriptionListBlock *StandardTextListBlock `json:"descriptionListBlock,omitempty"` // DescriptionTextBlock The A+ Content standard text box block, comprised of a paragraph with a headline. DescriptionTextBlock *StandardTextBlock `json:"descriptionTextBlock,omitempty"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` // ImageCaptionBlock The A+ Content standard image and caption block. ImageCaptionBlock *StandardImageCaptionBlock `json:"imageCaptionBlock,omitempty"` // SidebarImageTextBlock The A+ Content standard image and text box block. SidebarImageTextBlock *StandardImageTextBlock `json:"sidebarImageTextBlock,omitempty"` // SidebarListBlock The A+ Content standard fixed length list of text, usually presented as bullet points. SidebarListBlock *StandardTextListBlock `json:"sidebarListBlock,omitempty"` }
StandardImageSidebarModule Two images, two paragraphs, and two bulleted lists. One image is smaller and displayed in the sidebar.
type StandardImageTextBlock ¶
type StandardImageTextBlock struct { // Body A list of rich text content, usually presented in a text box. Body *ParagraphComponent `json:"body,omitempty"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` // Image A reference to an image, hosted in the A+ Content media library. Image *ImageComponent `json:"image,omitempty"` }
StandardImageTextBlock The A+ Content standard image and text box block.
type StandardImageTextCaptionBlock ¶
type StandardImageTextCaptionBlock struct { // Block The A+ Content standard image and text box block. Block *StandardImageTextBlock `json:"block,omitempty"` // Caption Rich text content. Caption *TextComponent `json:"caption,omitempty"` }
StandardImageTextCaptionBlock The A+ Content standard image and text block, with a related caption. The caption may not display on all devices.
type StandardImageTextOverlayModule ¶
type StandardImageTextOverlayModule struct { // Block The A+ Content standard image and text box block. Block *StandardImageTextBlock `json:"block,omitempty"` // OverlayColorType The relative color scheme of content. OverlayColorType ColorType `json:"overlayColorType"` }
StandardImageTextOverlayModule A standard background image with a floating text box.
type StandardMultipleImageTextModule ¶
type StandardMultipleImageTextModule struct {
Blocks *[]StandardImageTextCaptionBlock `json:"blocks,omitempty"`
}
StandardMultipleImageTextModule Standard images with text, presented one at a time. The user clicks on thumbnails to view each block.
type StandardProductDescriptionModule ¶
type StandardProductDescriptionModule struct { // Body A list of rich text content, usually presented in a text box. Body ParagraphComponent `json:"body"` }
StandardProductDescriptionModule Standard product description text.
type StandardSingleImageHighlightsModule ¶
type StandardSingleImageHighlightsModule struct { // BulletedListBlock The A+ standard fixed-length list of text, with a related headline. BulletedListBlock *StandardHeaderTextListBlock `json:"bulletedListBlock,omitempty"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` // Image A reference to an image, hosted in the A+ Content media library. Image *ImageComponent `json:"image,omitempty"` // TextBlock1 The A+ Content standard text box block, comprised of a paragraph with a headline. TextBlock1 *StandardTextBlock `json:"textBlock1,omitempty"` // TextBlock2 The A+ Content standard text box block, comprised of a paragraph with a headline. TextBlock2 *StandardTextBlock `json:"textBlock2,omitempty"` // TextBlock3 The A+ Content standard text box block, comprised of a paragraph with a headline. TextBlock3 *StandardTextBlock `json:"textBlock3,omitempty"` }
StandardSingleImageHighlightsModule A standard image with several paragraphs and a bulleted list.
type StandardSingleImageSpecsDetailModule ¶
type StandardSingleImageSpecsDetailModule struct { // DescriptionBlock1 The A+ Content standard text box block, comprised of a paragraph with a headline. DescriptionBlock1 *StandardTextBlock `json:"descriptionBlock1,omitempty"` // DescriptionBlock2 The A+ Content standard text box block, comprised of a paragraph with a headline. DescriptionBlock2 *StandardTextBlock `json:"descriptionBlock2,omitempty"` // DescriptionHeadline Rich text content. DescriptionHeadline *TextComponent `json:"descriptionHeadline,omitempty"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` // Image A reference to an image, hosted in the A+ Content media library. Image *ImageComponent `json:"image,omitempty"` // SpecificationHeadline Rich text content. SpecificationHeadline *TextComponent `json:"specificationHeadline,omitempty"` // SpecificationListBlock The A+ standard fixed-length list of text, with a related headline. SpecificationListBlock *StandardHeaderTextListBlock `json:"specificationListBlock,omitempty"` // SpecificationTextBlock The A+ Content standard text box block, comprised of a paragraph with a headline. SpecificationTextBlock *StandardTextBlock `json:"specificationTextBlock,omitempty"` }
StandardSingleImageSpecsDetailModule A standard image with paragraphs and a bulleted list, and extra space for technical details.
type StandardSingleSideImageModule ¶
type StandardSingleSideImageModule struct { // Block The A+ Content standard image and text box block. Block *StandardImageTextBlock `json:"block,omitempty"` // ImagePositionType The relative positioning of content. ImagePositionType PositionType `json:"imagePositionType"` }
StandardSingleSideImageModule A standard headline and body text with an image on the side.
type StandardTechSpecsModule ¶
type StandardTechSpecsModule struct { // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` // SpecificationList The specification list. SpecificationList []StandardTextPairBlock `json:"specificationList"` // TableCount The number of tables to present. Features are evenly divided between the tables. TableCount *int `json:"tableCount,omitempty"` }
StandardTechSpecsModule The standard table of technical feature names and definitions.
type StandardTextBlock ¶
type StandardTextBlock struct { // Body A list of rich text content, usually presented in a text box. Body *ParagraphComponent `json:"body,omitempty"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` }
StandardTextBlock The A+ Content standard text box block, comprised of a paragraph with a headline.
type StandardTextListBlock ¶
type StandardTextListBlock struct {
TextList []TextItem `json:"textList"`
}
StandardTextListBlock The A+ Content standard fixed length list of text, usually presented as bullet points.
type StandardTextModule ¶
type StandardTextModule struct { // Body A list of rich text content, usually presented in a text box. Body ParagraphComponent `json:"body"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` }
StandardTextModule A standard headline and body text.
type StandardTextPairBlock ¶
type StandardTextPairBlock struct { // Description Rich text content. Description *TextComponent `json:"description,omitempty"` // Label Rich text content. Label *TextComponent `json:"label,omitempty"` }
StandardTextPairBlock The A+ Content standard label and description block, comprised of a pair of text components.
type StandardThreeImageTextModule ¶
type StandardThreeImageTextModule struct { // Block1 The A+ Content standard image and text box block. Block1 *StandardImageTextBlock `json:"block1,omitempty"` // Block2 The A+ Content standard image and text box block. Block2 *StandardImageTextBlock `json:"block2,omitempty"` // Block3 The A+ Content standard image and text box block. Block3 *StandardImageTextBlock `json:"block3,omitempty"` // Headline Rich text content. Headline *TextComponent `json:"headline,omitempty"` }
StandardThreeImageTextModule Three standard images with text, presented across a single row.
type TextComponent ¶
type TextComponent struct { // DecoratorSet A set of content decorators. DecoratorSet *DecoratorSet `json:"decoratorSet,omitempty"` // Value The actual plain text. Value string `json:"value"` }
TextComponent Rich text content.
type TextItem ¶
type TextItem struct { // Position The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection. Position int `json:"position"` // Text Rich text content. Text TextComponent `json:"text"` }
TextItem Rich positional text, usually presented as a collection of bullet points.
type UpdateContentDocumentJSONRequestBody ¶
type UpdateContentDocumentJSONRequestBody = PostContentDocumentRequest
UpdateContentDocumentJSONRequestBody defines body for UpdateContentDocument for application/json ContentType.
type UpdateContentDocumentParams ¶
type UpdateContentDocumentParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` }
UpdateContentDocumentParams defines parameters for UpdateContentDocument.
type UpdateContentDocumentResp ¶
type UpdateContentDocumentResp struct { Body []byte HTTPResponse *http.Response JSON200 *PostContentDocumentResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON410 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseUpdateContentDocumentResp ¶
func ParseUpdateContentDocumentResp(rsp *http.Response) (*UpdateContentDocumentResp, error)
ParseUpdateContentDocumentResp parses an HTTP response from a UpdateContentDocumentWithResponse call
func (UpdateContentDocumentResp) Status ¶
func (r UpdateContentDocumentResp) Status() string
Status returns HTTPResponse.Status
func (UpdateContentDocumentResp) StatusCode ¶
func (r UpdateContentDocumentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ValidateContentDocumentAsinRelationsJSONRequestBody ¶
type ValidateContentDocumentAsinRelationsJSONRequestBody = PostContentDocumentRequest
ValidateContentDocumentAsinRelationsJSONRequestBody defines body for ValidateContentDocumentAsinRelations for application/json ContentType.
type ValidateContentDocumentAsinRelationsParams ¶
type ValidateContentDocumentAsinRelationsParams struct { // MarketplaceId The identifier for the marketplace where the A+ Content is published. MarketplaceId string `form:"marketplaceId" json:"marketplaceId"` // AsinSet The set of ASINs. AsinSet *[]string `form:"asinSet,omitempty" json:"asinSet,omitempty"` }
ValidateContentDocumentAsinRelationsParams defines parameters for ValidateContentDocumentAsinRelations.
type ValidateContentDocumentAsinRelationsResp ¶
type ValidateContentDocumentAsinRelationsResp struct { Body []byte HTTPResponse *http.Response JSON200 *ValidateContentDocumentAsinRelationsResponse JSON400 *ErrorList JSON401 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseValidateContentDocumentAsinRelationsResp ¶
func ParseValidateContentDocumentAsinRelationsResp(rsp *http.Response) (*ValidateContentDocumentAsinRelationsResp, error)
ParseValidateContentDocumentAsinRelationsResp parses an HTTP response from a ValidateContentDocumentAsinRelationsWithResponse call
func (ValidateContentDocumentAsinRelationsResp) Status ¶
func (r ValidateContentDocumentAsinRelationsResp) Status() string
Status returns HTTPResponse.Status
func (ValidateContentDocumentAsinRelationsResp) StatusCode ¶
func (r ValidateContentDocumentAsinRelationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ValidateContentDocumentAsinRelationsResponse ¶
type ValidateContentDocumentAsinRelationsResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors []Error `json:"errors"` // Warnings A set of messages to the user, such as warnings or comments. Warnings *MessageSet `json:"warnings,omitempty"` }
ValidateContentDocumentAsinRelationsResponse defines model for ValidateContentDocumentAsinRelationsResponse.