importapi

package
v1.0.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 16 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

View Source
const Version = "0.1.0"

Version identifies the current library version. Should match the git tag

Variables ¶

This section is empty.

Functions ¶

func GetUserAgent ¶

func GetUserAgent() string

Types ¶

type AccessDeniedError ¶

type AccessDeniedError struct {
	Message string `json:"message"`
}

* * This is the generic error code for access denied. In case of a wrong scope, an InvalidScopeError(#invalidscopeerror) will be returned.

func (AccessDeniedError) Error ¶

func (obj AccessDeniedError) Error() string

func (AccessDeniedError) MarshalJSON ¶

func (obj AccessDeniedError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type Address ¶

type Address struct {
	ID                   *string `json:"id,omitempty"`
	Key                  *string `json:"key,omitempty"`
	Title                *string `json:"title,omitempty"`
	Salutation           *string `json:"salutation,omitempty"`
	FirstName            *string `json:"firstName,omitempty"`
	LastName             *string `json:"lastName,omitempty"`
	StreetName           *string `json:"streetName,omitempty"`
	StreetNumber         *string `json:"streetNumber,omitempty"`
	AdditionalStreetInfo *string `json:"additionalStreetInfo,omitempty"`
	PostalCode           *string `json:"postalCode,omitempty"`
	City                 *string `json:"city,omitempty"`
	Region               *string `json:"region,omitempty"`
	State                *string `json:"state,omitempty"`
	// A two-digit country code as per [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
	Country               string  `json:"country"`
	Company               *string `json:"company,omitempty"`
	Department            *string `json:"department,omitempty"`
	Building              *string `json:"building,omitempty"`
	Apartment             *string `json:"apartment,omitempty"`
	POBox                 *string `json:"pOBox,omitempty"`
	Phone                 *string `json:"phone,omitempty"`
	Mobile                *string `json:"mobile,omitempty"`
	Email                 *string `json:"email,omitempty"`
	Fax                   *string `json:"fax,omitempty"`
	AdditionalAddressInfo *string `json:"additionalAddressInfo,omitempty"`
	ExternalId            *string `json:"externalId,omitempty"`
}

type Asset ¶

type Asset struct {
	// User-defined identifier for the asset.
	// Asset keys are unique inside their container (a product variant or a category).
	Key     string        `json:"key"`
	Sources []AssetSource `json:"sources"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	Name LocalizedString `json:"name"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	Description *LocalizedString `json:"description,omitempty"`
	Tags        []string         `json:"tags"`
	// The representation to be sent to the server when creating a resource with custom fields.
	Custom *Custom `json:"custom,omitempty"`
}

func (Asset) MarshalJSON ¶

func (obj Asset) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AssetDimensions ¶

type AssetDimensions struct {
	// The width of the asset source.
	W int `json:"w"`
	// The height of the asset source.
	H int `json:"h"`
}

* * The width and height of the Asset Source.

type AssetSource ¶

type AssetSource struct {
	Uri string  `json:"uri"`
	Key *string `json:"key,omitempty"`
	// The width and height of the Asset Source.
	Dimensions  *AssetDimensions `json:"dimensions,omitempty"`
	ContentType *string          `json:"contentType,omitempty"`
}

* * An AssetSource is a representation of an Asset in a specific format, for example, a video in a certain encoding or an image in a certain resolution.

type Attribute ¶

type Attribute interface{}

* * This type represents the value of an attribute of a product variant. * The name and type property must match the name and type property of an attribute definition of the product type. *

type AttributeBooleanType ¶

type AttributeBooleanType struct {
}

func (AttributeBooleanType) MarshalJSON ¶

func (obj AttributeBooleanType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeConstraintEnum ¶

type AttributeConstraintEnum string
const (
	AttributeConstraintEnumNone              AttributeConstraintEnum = "None"
	AttributeConstraintEnumUnique            AttributeConstraintEnum = "Unique"
	AttributeConstraintEnumCombinationUnique AttributeConstraintEnum = "CombinationUnique"
	AttributeConstraintEnumSameForAll        AttributeConstraintEnum = "SameForAll"
)

type AttributeDateTimeType ¶

type AttributeDateTimeType struct {
}

func (AttributeDateTimeType) MarshalJSON ¶

func (obj AttributeDateTimeType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeDateType ¶

type AttributeDateType struct {
}

func (AttributeDateType) MarshalJSON ¶

func (obj AttributeDateType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeDefinition ¶

type AttributeDefinition struct {
	Type AttributeType `json:"type"`
	Name string        `json:"name"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	Label               LocalizedString          `json:"label"`
	IsRequired          bool                     `json:"isRequired"`
	AttributeConstraint *AttributeConstraintEnum `json:"attributeConstraint,omitempty"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	InputTip     *LocalizedString `json:"inputTip,omitempty"`
	InputHint    *TextInputHint   `json:"inputHint,omitempty"`
	IsSearchable *bool            `json:"isSearchable,omitempty"`
}

func (*AttributeDefinition) UnmarshalJSON ¶

func (obj *AttributeDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type AttributeEnumType ¶

type AttributeEnumType struct {
	Values []AttributePlainEnumValue `json:"values"`
}

func (AttributeEnumType) MarshalJSON ¶

func (obj AttributeEnumType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeLocalizableTextType ¶

type AttributeLocalizableTextType struct {
}

func (AttributeLocalizableTextType) MarshalJSON ¶

func (obj AttributeLocalizableTextType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeLocalizedEnumType ¶

type AttributeLocalizedEnumType struct {
	Values []AttributeLocalizedEnumValue `json:"values"`
}

func (AttributeLocalizedEnumType) MarshalJSON ¶

func (obj AttributeLocalizedEnumType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeLocalizedEnumValue ¶

type AttributeLocalizedEnumValue struct {
	Key string `json:"key"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	Label LocalizedString `json:"label"`
}

type AttributeMoneyType ¶

type AttributeMoneyType struct {
}

func (AttributeMoneyType) MarshalJSON ¶

func (obj AttributeMoneyType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeNestedType ¶

type AttributeNestedType struct {
	// References a product type by key.
	TypeReference ProductTypeKeyReference `json:"typeReference"`
}

func (AttributeNestedType) MarshalJSON ¶

func (obj AttributeNestedType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeNumberType ¶

type AttributeNumberType struct {
}

func (AttributeNumberType) MarshalJSON ¶

func (obj AttributeNumberType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributePlainEnumValue ¶

type AttributePlainEnumValue struct {
	Key   string `json:"key"`
	Label string `json:"label"`
}

type AttributeReferenceType ¶

type AttributeReferenceType struct {
	// The type of the referenced resource.
	ReferenceTypeId ReferenceType `json:"referenceTypeId"`
}

func (AttributeReferenceType) MarshalJSON ¶

func (obj AttributeReferenceType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeSetType ¶

type AttributeSetType struct {
	ElementType AttributeType `json:"elementType"`
}

func (AttributeSetType) MarshalJSON ¶

func (obj AttributeSetType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*AttributeSetType) UnmarshalJSON ¶

func (obj *AttributeSetType) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type AttributeTextType ¶

type AttributeTextType struct {
}

func (AttributeTextType) MarshalJSON ¶

func (obj AttributeTextType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeTimeType ¶

type AttributeTimeType struct {
}

func (AttributeTimeType) MarshalJSON ¶

func (obj AttributeTimeType) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type AttributeType ¶

type AttributeType interface{}

type Attributes ¶

type Attributes map[string]interface{}

type BooleanAttribute ¶

type BooleanAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string `json:"name,omitempty"`
	Value bool    `json:"value"`
}

* * This type represents an attribute whose value is either "true" or "false". *

func (BooleanAttribute) MarshalJSON ¶

func (obj BooleanAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type BooleanField ¶

type BooleanField struct {
	Value bool `json:"value"`
}

* * A field with a boolean value.

func (BooleanField) MarshalJSON ¶

func (obj BooleanField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type BooleanSetAttribute ¶

type BooleanSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string `json:"name,omitempty"`
	Value []bool  `json:"value"`
}

* * This type represents an attribute whose value is set of boolean values. *

func (BooleanSetAttribute) MarshalJSON ¶

func (obj BooleanSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type BooleanSetField ¶

type BooleanSetField struct {
	Value []bool `json:"value"`
}

* * A field with a boolean set value.

func (BooleanSetField) MarshalJSON ¶

func (obj BooleanSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a request for creating new Categories or updating existing ones.

type ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a request for creating new Categories or updating existing ones.

func (*ByProjectKeyCategoriesImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyCategoriesImportContainersRequestBuilder ¶

type ByProjectKeyCategoriesImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the ImportOperation of a given ID. *

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the ImportOperation of a given ID. *

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all category import operations of an import sink key. *

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Debug ¶

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all category import operations of an import sink key. *

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) ResourceKey ¶

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Sort ¶

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates import request for creating new categories or updating existing ones.

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates import request for creating new categories or updating existing ones.

func (*ByProjectKeyCategoriesImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyCategoriesRequestBuilder ¶

type ByProjectKeyCategoriesRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCategoriesRequestBuilder) ImportContainers ¶

func (*ByProjectKeyCategoriesRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

type ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a request for creating new Customers or updating existing ones.

type ByProjectKeyCustomersImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyCustomersImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyCustomersImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a request for creating new Customers or updating existing ones.

func (*ByProjectKeyCustomersImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyCustomersImportContainersRequestBuilder ¶

type ByProjectKeyCustomersImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the import operation with the given id. *

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the import operation with the given id. *

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all customer import operations of an import sink key.

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) WithIdValue ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Debug ¶

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all customer import operations of an import sink key.

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) ResourceKey ¶

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Sort ¶

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestBuilder) ImportOperations ¶

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates import request for creating new customers or updating existing ones.

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates import request for creating new customers or updating existing ones.

func (*ByProjectKeyCustomersImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyCustomersRequestBuilder ¶

type ByProjectKeyCustomersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyCustomersRequestBuilder) ImportContainers ¶

func (*ByProjectKeyCustomersRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

type ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder ¶

type ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all [ImportOperations](ctp:import:type:ImportOperation) of a given ImportContainer key. *

type ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGet) Debug ¶

func (*ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all [ImportOperations](ctp:import:type:ImportOperation) of a given ImportContainer key. *

func (*ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGet) ResourceKey ¶

func (*ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGet) Sort ¶

func (*ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder ¶

type ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder) Get ¶

* * Retrieves an ImportSummary(ctp:import:type:ImportSummary) for the given import container. An ImportSummary(ctp:import:type:ImportSummary) is calculated on demand. *

type ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestMethodGet ¶

type ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestMethodGet) Dump ¶

func (*ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestMethodGet) Execute ¶

* * Retrieves an ImportSummary(ctp:import:type:ImportSummary) for the given import container. An ImportSummary(ctp:import:type:ImportSummary) is calculated on demand. *

func (*ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestMethodGet) WithHeaders ¶

type ByProjectKeyImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersByImportContainerKeyRequestBuilder) Delete ¶

* * Deletes the import container given by the key.

func (*ByProjectKeyImportContainersByImportContainerKeyRequestBuilder) Get ¶

* * Retrieves the import container given by the key.

func (*ByProjectKeyImportContainersByImportContainerKeyRequestBuilder) ImportOperations ¶

func (*ByProjectKeyImportContainersByImportContainerKeyRequestBuilder) ImportSummaries ¶

func (*ByProjectKeyImportContainersByImportContainerKeyRequestBuilder) Put ¶

* * Updates the import container given by the key.

type ByProjectKeyImportContainersByImportContainerKeyRequestMethodDelete ¶

type ByProjectKeyImportContainersByImportContainerKeyRequestMethodDelete struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersByImportContainerKeyRequestMethodDelete) Dump ¶

func (*ByProjectKeyImportContainersByImportContainerKeyRequestMethodDelete) Execute ¶

* * Deletes the import container given by the key.

func (*ByProjectKeyImportContainersByImportContainerKeyRequestMethodDelete) WithHeaders ¶

type ByProjectKeyImportContainersByImportContainerKeyRequestMethodGet ¶

type ByProjectKeyImportContainersByImportContainerKeyRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersByImportContainerKeyRequestMethodGet) Dump ¶

func (*ByProjectKeyImportContainersByImportContainerKeyRequestMethodGet) Execute ¶

* * Retrieves the import container given by the key.

func (*ByProjectKeyImportContainersByImportContainerKeyRequestMethodGet) WithHeaders ¶

type ByProjectKeyImportContainersByImportContainerKeyRequestMethodPut ¶

type ByProjectKeyImportContainersByImportContainerKeyRequestMethodPut struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersByImportContainerKeyRequestMethodPut) Dump ¶

func (*ByProjectKeyImportContainersByImportContainerKeyRequestMethodPut) Execute ¶

* * Updates the import container given by the key.

func (*ByProjectKeyImportContainersByImportContainerKeyRequestMethodPut) WithHeaders ¶

type ByProjectKeyImportContainersRequestBuilder ¶

type ByProjectKeyImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersRequestBuilder) Get ¶

* * Retrieves all import containers of a given project key.

func (*ByProjectKeyImportContainersRequestBuilder) Post ¶

* * Creates a new import container.

func (*ByProjectKeyImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyImportContainersRequestMethodGet ¶

type ByProjectKeyImportContainersRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersRequestMethodGet) Dump ¶

func (r *ByProjectKeyImportContainersRequestMethodGet) Dump() map[string]interface{}

func (*ByProjectKeyImportContainersRequestMethodGet) Execute ¶

* * Retrieves all import containers of a given project key.

func (*ByProjectKeyImportContainersRequestMethodGet) Limit ¶

func (*ByProjectKeyImportContainersRequestMethodGet) Offset ¶

func (*ByProjectKeyImportContainersRequestMethodGet) Sort ¶

func (*ByProjectKeyImportContainersRequestMethodGet) WithHeaders ¶

type ByProjectKeyImportContainersRequestMethodGetInput ¶

type ByProjectKeyImportContainersRequestMethodGetInput struct {
	Limit  *float64
	Offset *float64
	Sort   []string
}

func (*ByProjectKeyImportContainersRequestMethodGetInput) Values ¶

type ByProjectKeyImportContainersRequestMethodPost ¶

type ByProjectKeyImportContainersRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportContainersRequestMethodPost) Dump ¶

func (r *ByProjectKeyImportContainersRequestMethodPost) Dump() map[string]interface{}

func (*ByProjectKeyImportContainersRequestMethodPost) Execute ¶

* * Creates a new import container.

func (*ByProjectKeyImportContainersRequestMethodPost) WithHeaders ¶

type ByProjectKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the ImportOperation(ctp:import:type:ImportOperation) of a given ID. *

type ByProjectKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (r *ByProjectKeyImportOperationsByIdRequestMethodGet) Dump() map[string]interface{}

func (*ByProjectKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the ImportOperation(ctp:import:type:ImportOperation) of a given ID. *

func (*ByProjectKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyImportOperationsRequestBuilder ¶

type ByProjectKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportOperationsRequestBuilder) WithIdValue ¶

type ByProjectKeyImportSinksByImportSinkKeyRequestBuilder ¶

type ByProjectKeyImportSinksByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSinksByImportSinkKeyRequestBuilder) Delete ¶

* * Deletes the import sink given by the key.

func (*ByProjectKeyImportSinksByImportSinkKeyRequestBuilder) Get ¶

* * Retrieves the import sink given by the key.

func (*ByProjectKeyImportSinksByImportSinkKeyRequestBuilder) Put ¶

* * Updates the import sink given by the key.

type ByProjectKeyImportSinksByImportSinkKeyRequestMethodDelete ¶

type ByProjectKeyImportSinksByImportSinkKeyRequestMethodDelete struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSinksByImportSinkKeyRequestMethodDelete) Dump ¶

func (*ByProjectKeyImportSinksByImportSinkKeyRequestMethodDelete) Execute ¶

* * Deletes the import sink given by the key.

func (*ByProjectKeyImportSinksByImportSinkKeyRequestMethodDelete) WithHeaders ¶

type ByProjectKeyImportSinksByImportSinkKeyRequestMethodGet ¶

type ByProjectKeyImportSinksByImportSinkKeyRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSinksByImportSinkKeyRequestMethodGet) Dump ¶

func (*ByProjectKeyImportSinksByImportSinkKeyRequestMethodGet) Execute ¶

* * Retrieves the import sink given by the key.

func (*ByProjectKeyImportSinksByImportSinkKeyRequestMethodGet) WithHeaders ¶

type ByProjectKeyImportSinksByImportSinkKeyRequestMethodPut ¶

type ByProjectKeyImportSinksByImportSinkKeyRequestMethodPut struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSinksByImportSinkKeyRequestMethodPut) Dump ¶

func (*ByProjectKeyImportSinksByImportSinkKeyRequestMethodPut) Execute ¶

* * Updates the import sink given by the key.

func (*ByProjectKeyImportSinksByImportSinkKeyRequestMethodPut) WithHeaders ¶

type ByProjectKeyImportSinksRequestBuilder ¶

type ByProjectKeyImportSinksRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSinksRequestBuilder) Get ¶

* * Retrieves all import sinks of a project key.

func (*ByProjectKeyImportSinksRequestBuilder) Post ¶

* * Creates a new import sink.

func (*ByProjectKeyImportSinksRequestBuilder) WithImportSinkKeyValue ¶

type ByProjectKeyImportSinksRequestMethodGet ¶

type ByProjectKeyImportSinksRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSinksRequestMethodGet) Dump ¶

func (r *ByProjectKeyImportSinksRequestMethodGet) Dump() map[string]interface{}

func (*ByProjectKeyImportSinksRequestMethodGet) Execute ¶

* * Retrieves all import sinks of a project key.

func (*ByProjectKeyImportSinksRequestMethodGet) Limit ¶

func (*ByProjectKeyImportSinksRequestMethodGet) Offset ¶

func (*ByProjectKeyImportSinksRequestMethodGet) Sort ¶

func (*ByProjectKeyImportSinksRequestMethodGet) WithHeaders ¶

type ByProjectKeyImportSinksRequestMethodGetInput ¶

type ByProjectKeyImportSinksRequestMethodGetInput struct {
	Limit  *float64
	Offset *float64
	Sort   []string
}

func (*ByProjectKeyImportSinksRequestMethodGetInput) Values ¶

type ByProjectKeyImportSinksRequestMethodPost ¶

type ByProjectKeyImportSinksRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSinksRequestMethodPost) Dump ¶

func (r *ByProjectKeyImportSinksRequestMethodPost) Dump() map[string]interface{}

func (*ByProjectKeyImportSinksRequestMethodPost) Execute ¶

* * Creates a new import sink.

func (*ByProjectKeyImportSinksRequestMethodPost) WithHeaders ¶

type ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestBuilder) Get ¶

* * Retrieves an import summary for the given import sink. * * The import summary is calculated on demand. *

type ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestMethodGet ¶

type ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestMethodGet) Dump ¶

func (*ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestMethodGet) Execute ¶

* * Retrieves an import summary for the given import sink. * * The import summary is calculated on demand. *

func (*ByProjectKeyImportSummariesImportSinkKeyByImportSinkKeyRequestMethodGet) WithHeaders ¶

type ByProjectKeyImportSummariesRequestBuilder ¶

type ByProjectKeyImportSummariesRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyImportSummariesRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

type ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a new import request for order patches

type ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a new import request for order patches

func (*ByProjectKeyOrderPatchesImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyOrderPatchesImportContainersRequestBuilder ¶

type ByProjectKeyOrderPatchesImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the import operation with the given id. *

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the import operation with the given id. *

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all order-patches import operations of an import sink key.

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all order-patches import operations of an import sink key.

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) ResourceKey ¶

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates a new import request for order patches

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates a new import request for order patches

func (*ByProjectKeyOrderPatchesImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyOrderPatchesRequestBuilder ¶

type ByProjectKeyOrderPatchesRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrderPatchesRequestBuilder) ImportContainers ¶

func (*ByProjectKeyOrderPatchesRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

type ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a request for creating new Orders or updating existing ones.

type ByProjectKeyOrdersImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyOrdersImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyOrdersImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a request for creating new Orders or updating existing ones.

func (*ByProjectKeyOrdersImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyOrdersImportContainersRequestBuilder ¶

type ByProjectKeyOrdersImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the import operation with the given id. *

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the import operation with the given id. *

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all order import operations of an import sink key.

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) WithIdValue ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Debug ¶

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all order import operations of an import sink key.

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) ResourceKey ¶

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Sort ¶

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestBuilder) ImportOperations ¶

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates import request for creating new orders or updating existing ones.

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates import request for creating new orders or updating existing ones.

func (*ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyOrdersRequestBuilder ¶

type ByProjectKeyOrdersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyOrdersRequestBuilder) ImportContainers ¶

func (*ByProjectKeyOrdersRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

func (rb *ByProjectKeyOrdersRequestBuilder) ImportSinkKeyWithImportSinkKeyValue(importSinkKey string) *ByProjectKeyOrdersImportSinkKeyByImportSinkKeyRequestBuilder

type ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a request for creating new Prices or updating existing ones.

type ByProjectKeyPricesImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyPricesImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyPricesImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a request for creating new Prices or updating existing ones.

func (*ByProjectKeyPricesImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyPricesImportContainersRequestBuilder ¶

type ByProjectKeyPricesImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the import operation with the given id. *

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the import operation with the given id. *

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all price import operations of an import sink key.

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) WithIdValue ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Debug ¶

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all price import operations of an import sink key.

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) ResourceKey ¶

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Sort ¶

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestBuilder) ImportOperations ¶

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates import request for creating new prices or updating existing ones.

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates import request for creating new prices or updating existing ones.

func (*ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyPricesRequestBuilder ¶

type ByProjectKeyPricesRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyPricesRequestBuilder) ImportContainers ¶

func (*ByProjectKeyPricesRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

func (rb *ByProjectKeyPricesRequestBuilder) ImportSinkKeyWithImportSinkKeyValue(importSinkKey string) *ByProjectKeyPricesImportSinkKeyByImportSinkKeyRequestBuilder

type ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a request for creating new ProductDrafts or updating existing ones. *

type ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a request for creating new ProductDrafts or updating existing ones. *

func (*ByProjectKeyProductDraftsImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductDraftsImportContainersRequestBuilder ¶

type ByProjectKeyProductDraftsImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the import operation with the given id. *

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the import operation with the given id. *

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all import operations of an import sink key.

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all import operations of an import sink key.

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates import request for creating new product drafts or updating existing ones. *

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates import request for creating new product drafts or updating existing ones. *

func (*ByProjectKeyProductDraftsImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductDraftsRequestBuilder ¶

type ByProjectKeyProductDraftsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductDraftsRequestBuilder) ImportContainers ¶

func (*ByProjectKeyProductDraftsRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

type ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a request for creating new ProductTypes or updating existing ones.

type ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a request for creating new ProductTypes or updating existing ones.

func (*ByProjectKeyProductTypesImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductTypesImportContainersRequestBuilder ¶

type ByProjectKeyProductTypesImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the import operation with the given id. *

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the import operation with the given id. *

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all import operations of an import sink key.

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all import operations of an import sink key.

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) ResourceKey ¶

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates import request for creating new product types or updating existing ones.

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates import request for creating new product types or updating existing ones.

func (*ByProjectKeyProductTypesImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductTypesRequestBuilder ¶

type ByProjectKeyProductTypesRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductTypesRequestBuilder) ImportContainers ¶

func (*ByProjectKeyProductTypesRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

type ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a new import request for product variant patches

type ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a new import request for product variant patches

func (*ByProjectKeyProductVariantPatchesImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductVariantPatchesImportContainersRequestBuilder ¶

type ByProjectKeyProductVariantPatchesImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the import operation with the given id. *

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the import operation with the given id. *

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all product-variant-patches import operations of an import sink key.

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all product-variant-patches import operations of an import sink key.

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates a new import request for product variant patches

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates a new import request for product variant patches

func (*ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductVariantPatchesRequestBuilder ¶

type ByProjectKeyProductVariantPatchesRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantPatchesRequestBuilder) ImportContainers ¶

func (*ByProjectKeyProductVariantPatchesRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

type ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a request for creating new ProductVariants or updating existing ones.

type ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a request for creating new ProductVariants or updating existing ones.

func (*ByProjectKeyProductVariantsImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductVariantsImportContainersRequestBuilder ¶

type ByProjectKeyProductVariantsImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the import operation with the given id. *

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the import operation with the given id. *

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all product-variant import operations of an import sink key.

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all product-variant import operations of an import sink key.

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates import request for creating new product variants or updating existing ones.

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates import request for creating new product variants or updating existing ones.

func (*ByProjectKeyProductVariantsImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductVariantsRequestBuilder ¶

type ByProjectKeyProductVariantsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductVariantsRequestBuilder) ImportContainers ¶

func (*ByProjectKeyProductVariantsRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

type ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder ¶

type ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsImportContainersByImportContainerKeyRequestBuilder) Post ¶

* * Creates a request for creating new Products or updating existing ones.

type ByProjectKeyProductsImportContainersByImportContainerKeyRequestMethodPost ¶

type ByProjectKeyProductsImportContainersByImportContainerKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsImportContainersByImportContainerKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductsImportContainersByImportContainerKeyRequestMethodPost) Execute ¶

* * Creates a request for creating new Products or updating existing ones.

func (*ByProjectKeyProductsImportContainersByImportContainerKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductsImportContainersRequestBuilder ¶

type ByProjectKeyProductsImportContainersRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsImportContainersRequestBuilder) WithImportContainerKeyValue ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestBuilder) Get ¶

* * Retrieves the import operation with the given id. *

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Dump ¶

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) Execute ¶

* * Retrieves the import operation with the given id. *

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsByIdRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) Get ¶

* * Retrieves all product import operations of an import sink key.

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestBuilder) WithIdValue ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Debug ¶

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Dump ¶

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Execute ¶

* * Retrieves all product import operations of an import sink key.

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) ResourceKey ¶

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) Sort ¶

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGet) WithHeaders ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput struct {
	Limit       *float64
	Offset      *float64
	Sort        []string
	ResourceKey *string
	State       *ProcessingState
	Debug       *bool
}

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyImportOperationsRequestMethodGetInput) Values ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestBuilder ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestBuilder) ImportOperations ¶

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestBuilder) Post ¶

* * Creates import request for creating new products or updating existing ones.

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestMethodPost ¶

type ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestMethodPost struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestMethodPost) Dump ¶

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestMethodPost) Execute ¶

* * Creates import request for creating new products or updating existing ones.

func (*ByProjectKeyProductsImportSinkKeyByImportSinkKeyRequestMethodPost) WithHeaders ¶

type ByProjectKeyProductsRequestBuilder ¶

type ByProjectKeyProductsRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyProductsRequestBuilder) ImportContainers ¶

func (*ByProjectKeyProductsRequestBuilder) ImportSinkKeyWithImportSinkKeyValue ¶

type ByProjectKeyRequestBuilder ¶

type ByProjectKeyRequestBuilder struct {
	// contains filtered or unexported fields
}

func (*ByProjectKeyRequestBuilder) Categories ¶

func (*ByProjectKeyRequestBuilder) Customers ¶

func (*ByProjectKeyRequestBuilder) ImportContainers ¶

func (*ByProjectKeyRequestBuilder) ImportOperations ¶

func (*ByProjectKeyRequestBuilder) ImportSinks ¶

func (*ByProjectKeyRequestBuilder) ImportSummaries ¶

func (*ByProjectKeyRequestBuilder) OrderPatches ¶

func (*ByProjectKeyRequestBuilder) Orders ¶

func (*ByProjectKeyRequestBuilder) Prices ¶

func (*ByProjectKeyRequestBuilder) ProductDrafts ¶

func (*ByProjectKeyRequestBuilder) ProductTypes ¶

func (*ByProjectKeyRequestBuilder) ProductVariantPatches ¶

func (*ByProjectKeyRequestBuilder) ProductVariants ¶

func (*ByProjectKeyRequestBuilder) Products ¶

type CartClassificationTier ¶

type CartClassificationTier struct {
	Value      string                  `json:"value"`
	Price      Money                   `json:"price"`
	Tiers      []ShippingRatePriceTier `json:"tiers"`
	IsMatching *bool                   `json:"isMatching,omitempty"`
}

func (CartClassificationTier) MarshalJSON ¶

func (obj CartClassificationTier) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*CartClassificationTier) UnmarshalJSON ¶

func (obj *CartClassificationTier) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type CartDiscountKeyReference ¶

type CartDiscountKeyReference struct {
	Key string `json:"key"`
}

* * References a cart discount by key.

func (CartDiscountKeyReference) MarshalJSON ¶

func (obj CartDiscountKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type CartKeyReference ¶

type CartKeyReference struct {
	Key string `json:"key"`
}

* * References a cart by key.

func (CartKeyReference) MarshalJSON ¶

func (obj CartKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type CartOrigin ¶

type CartOrigin string

* * Maps to `Order.origin`.

const (
	CartOriginCustomer CartOrigin = "Customer"
	CartOriginMerchant CartOrigin = "Merchant"
)

type CategoryImport ¶

type CategoryImport struct {
	Key string `json:"key"`
	// Maps to `Category.name`.
	Name LocalizedString `json:"name"`
	// Maps to `Category.slug`.
	// Must match the pattern `[-a-zA-Z0-9_]{2,256}`.
	Slug LocalizedString `json:"slug"`
	// Maps to `Category.description`.
	Description *LocalizedString `json:"description,omitempty"`
	// Maps to `Category.parent`.
	// The Reference to the parent [Category](/../api/projects/categories#category) with which the Category is associated.
	// If referenced Category does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Category is created.
	Parent *CategoryKeyReference `json:"parent,omitempty"`
	// Maps to `Category.orderHint`.
	OrderHint *string `json:"orderHint,omitempty"`
	// Maps to `Category.externalId`.
	ExternalId *string `json:"externalId,omitempty"`
	// Maps to `Category.metaTitle`.
	MetaTitle *LocalizedString `json:"metaTitle,omitempty"`
	// Maps to `Category.metaDescription`.
	MetaDescription *LocalizedString `json:"metaDescription,omitempty"`
	// Maps to `Category.metaKeywords`.
	MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"`
	Assets       []Asset          `json:"assets"`
	// The custom fields for this Category.
	Custom *Custom `json:"custom,omitempty"`
}

* * The data representation for a Category to be imported that is persisted as a [Category](/../api/projects/categories#category) in the Project. *

func (CategoryImport) MarshalJSON ¶

func (obj CategoryImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type CategoryImportRequest ¶

type CategoryImportRequest struct {
	// The category import resources of this request.
	Resources []CategoryImport `json:"resources"`
}

* * The request body to [import Categories](#import-categories). Contains data for [Categories](/../api/projects/categories#category) to be created or updated in a commercetools Project. *

func (CategoryImportRequest) MarshalJSON ¶

func (obj CategoryImportRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type CategoryKeyReference ¶

type CategoryKeyReference struct {
	Key string `json:"key"`
}

* * References a category by key.

func (CategoryKeyReference) MarshalJSON ¶

func (obj CategoryKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ChannelKeyReference ¶

type ChannelKeyReference struct {
	Key string `json:"key"`
}

* * References a channel by key.

func (ChannelKeyReference) MarshalJSON ¶

func (obj ChannelKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ClassificationShippingRateInput ¶

type ClassificationShippingRateInput struct {
	Key string `json:"key"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	Label LocalizedString `json:"label"`
}

func (ClassificationShippingRateInput) MarshalJSON ¶

func (obj ClassificationShippingRateInput) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type Client ¶

type Client struct {
	// contains filtered or unexported fields
}

func NewClient ¶

func NewClient(cfg *ClientConfig) (*Client, error)

NewClient creates a new client based on the provided ClientConfig

func (*Client) WithProjectKeyValue ¶

func (c *Client) WithProjectKeyValue(projectKey string) *ByProjectKeyRequestBuilder

type ClientConfig ¶

type ClientConfig struct {
	URL         string
	Credentials *clientcredentials.Config
	LogLevel    int
	HTTPClient  *http.Client
	UserAgent   string
}

type ConcurrentModificationError ¶

type ConcurrentModificationError struct {
	Message string `json:"message"`
	// The version specified in the failed request.
	SpecifiedVersion *int `json:"specifiedVersion,omitempty"`
	// The current version of the resource.
	CurrentVersion int `json:"currentVersion"`
	// The resource in conflict.
	ConflictedResource interface{} `json:"conflictedResource,omitempty"`
}

* * The request conflicts with the current state of the involved resources. * This error typically occurs when the request attempts to modify a resource that is out of date, that is, it has been modified by another client since the last time it was retrieved by the system attempting to update it. * The client application should resolve the conflict (with or without involving the end-user) before retrying the request. *

func (ConcurrentModificationError) Error ¶

func (obj ConcurrentModificationError) Error() string

func (ConcurrentModificationError) MarshalJSON ¶

func (obj ConcurrentModificationError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ContentionError ¶

type ContentionError struct {
	Message string `json:"message"`
}

func (ContentionError) Error ¶

func (obj ContentionError) Error() string

func (ContentionError) MarshalJSON ¶

func (obj ContentionError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type Custom ¶

type Custom struct {
	// The type that provides the field definitions for this object.
	Type TypeKeyReference `json:"type"`
	// The custom fields of this object.
	Fields *FieldContainer `json:"fields,omitempty"`
}

* * The representation to be sent to the server when creating a resource with custom fields.

type CustomField ¶

type CustomField interface{}

* * Provides the value for a custom field of a specific type.

type CustomLineItemDraft ¶

type CustomLineItemDraft struct {
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	Name       LocalizedString           `json:"name"`
	Money      TypedMoney                `json:"money"`
	TaxedPrice *CustomLineItemTaxedPrice `json:"taxedPrice,omitempty"`
	TotalPrice TypedMoney                `json:"totalPrice"`
	Slug       string                    `json:"slug"`
	Quantity   float64                   `json:"quantity"`
	State      []ItemState               `json:"state"`
	// References a tax category by key.
	TaxCategory                *TaxCategoryKeyReference       `json:"taxCategory,omitempty"`
	TaxRate                    *TaxRate                       `json:"taxRate,omitempty"`
	ExternalTaxRate            *ExternalTaxRateDraft          `json:"externalTaxRate,omitempty"`
	DiscountedPricePerQuantity []DiscountedLineItemPriceDraft `json:"discountedPricePerQuantity"`
	ShippingDetails            *ItemShippingDetailsDraft      `json:"shippingDetails,omitempty"`
}

func (CustomLineItemDraft) MarshalJSON ¶

func (obj CustomLineItemDraft) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*CustomLineItemDraft) UnmarshalJSON ¶

func (obj *CustomLineItemDraft) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type CustomLineItemTaxedPrice ¶

type CustomLineItemTaxedPrice struct {
	TotalNet   TypedMoney `json:"totalNet"`
	TotalGross TypedMoney `json:"totalGross"`
}

func (*CustomLineItemTaxedPrice) UnmarshalJSON ¶

func (obj *CustomLineItemTaxedPrice) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type CustomObjectKeyReference ¶

type CustomObjectKeyReference struct {
	Key       string `json:"key"`
	Container string `json:"container"`
}

* * References a key value document by key.

func (CustomObjectKeyReference) MarshalJSON ¶

func (obj CustomObjectKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type CustomTokenizer ¶

type CustomTokenizer struct {
	Inputs []string `json:"inputs"`
}

func (CustomTokenizer) MarshalJSON ¶

func (obj CustomTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type CustomerAddress ¶

type CustomerAddress struct {
	// User-defined identifier for the address.
	// Must follow the pattern `[a-zA-Z0-9_\-]{2,256}` and must be unique per customer.
	Key                  string  `json:"key"`
	Title                *string `json:"title,omitempty"`
	Salutation           *string `json:"salutation,omitempty"`
	FirstName            *string `json:"firstName,omitempty"`
	LastName             *string `json:"lastName,omitempty"`
	StreetName           *string `json:"streetName,omitempty"`
	StreetNumber         *string `json:"streetNumber,omitempty"`
	AdditionalStreetInfo *string `json:"additionalStreetInfo,omitempty"`
	PostalCode           *string `json:"postalCode,omitempty"`
	City                 *string `json:"city,omitempty"`
	Region               *string `json:"region,omitempty"`
	State                *string `json:"state,omitempty"`
	// A two-digit country code as per [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
	Country               string  `json:"country"`
	Company               *string `json:"company,omitempty"`
	Department            *string `json:"department,omitempty"`
	Building              *string `json:"building,omitempty"`
	Apartment             *string `json:"apartment,omitempty"`
	POBox                 *string `json:"pOBox,omitempty"`
	Phone                 *string `json:"phone,omitempty"`
	Mobile                *string `json:"mobile,omitempty"`
	Email                 *string `json:"email,omitempty"`
	Fax                   *string `json:"fax,omitempty"`
	AdditionalAddressInfo *string `json:"additionalAddressInfo,omitempty"`
	ExternalId            *string `json:"externalId,omitempty"`
}

* * Different from Address in that `key` is required and `id` is not supported. *

type CustomerGroupKeyReference ¶

type CustomerGroupKeyReference struct {
	Key string `json:"key"`
}

* * References a customer group by key.

func (CustomerGroupKeyReference) MarshalJSON ¶

func (obj CustomerGroupKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type CustomerImport ¶

type CustomerImport struct {
	Key string `json:"key"`
	// Maps to `Customer.customerNumber`.
	CustomerNumber *string `json:"customerNumber,omitempty"`
	// Maps to `Customer.email`.
	Email string `json:"email"`
	// Maps to `Customer.password`.
	Password string `json:"password"`
	// The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Stores are created.
	Stores []StoreKeyReference `json:"stores"`
	// Maps to `Customer.firstName`.
	FirstName *string `json:"firstName,omitempty"`
	// Maps to `Customer.lastName`.
	LastName *string `json:"lastName,omitempty"`
	// Maps to `Customer.middleName`.
	MiddleName *string `json:"middleName,omitempty"`
	// Maps to `Customer.title`.
	Title *string `json:"title,omitempty"`
	// Maps to `Customer.salutation`.
	Salutation *string `json:"salutation,omitempty"`
	// Maps to `Customer.externalId`.
	ExternalId *string `json:"externalId,omitempty"`
	// Maps to `Customer.dateOfBirth`.
	DateOfBirth *Date `json:"dateOfBirth,omitempty"`
	// Maps to `Customer.companyName`.
	CompanyName *string `json:"companyName,omitempty"`
	// Maps to `Customer.vatId`.
	VatId *string `json:"vatId,omitempty"`
	// Maps to `Customer.isEmailVerified`.
	IsEmailVerified *bool `json:"isEmailVerified,omitempty"`
	// The Reference to the [CustomerGroup](/../api/projects/customerGroups#customergroup) with which the Customer is associated.
	// If referenced CustomerGroup does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary CustomerGroup is created.
	CustomerGroup *CustomerGroupKeyReference `json:"customerGroup,omitempty"`
	// Maps to `Customer.addresses`.
	Addresses []CustomerAddress `json:"addresses"`
	// The index of the address in the addresses array. The `defaultBillingAddressId` of the customer will be set to the ID of that address.
	DefaultBillingAddress *int `json:"defaultBillingAddress,omitempty"`
	// The indices of the billing addresses in the addresses array. The `billingAddressIds` of the customer will be set to the IDs of that addresses.
	BillingAddresses []int `json:"billingAddresses"`
	// The index of the address in the addresses array. The `defaultShippingAddressId` of the customer will be set to the ID of that address.
	DefaultShippingAddress *int `json:"defaultShippingAddress,omitempty"`
	// The indices of the shipping addresses in the addresses array. The `shippingAddressIds` of the customer will be set to the IDs of that addresses.
	ShippingAddresses []int `json:"shippingAddresses"`
	// Maps to `Customer.locale`.
	Locale *string `json:"locale,omitempty"`
	// The custom fields for this Customer.
	Custom *Custom `json:"custom,omitempty"`
}

* * The data representation for a Customer to be imported that is persisted as a [Customer](/../api/projects/customers#top) in the Project. *

func (CustomerImport) MarshalJSON ¶

func (obj CustomerImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type CustomerImportRequest ¶

type CustomerImportRequest struct {
	// The customer import resources of this request.
	Resources []CustomerImport `json:"resources"`
}

* * The request body to [import Customers](#import-customers). Contains data for [Customers](/../api/projects/customers#customer) to be created or updated in a commercetools Project. *

func (CustomerImportRequest) MarshalJSON ¶

func (obj CustomerImportRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type CustomerKeyReference ¶

type CustomerKeyReference struct {
	Key string `json:"key"`
}

* * References a customer by key.

func (CustomerKeyReference) MarshalJSON ¶

func (obj CustomerKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type Date ¶

type Date struct {
	Year  int
	Month time.Month
	Day   int
}

Date holds date information for Commercetools API format

func NewDate ¶

func NewDate(year int, month time.Month, day int) Date

NewDate initializes a Date struct

func (*Date) MarshalJSON ¶

func (d *Date) MarshalJSON() ([]byte, error)

MarshalJSON marshals into the commercetools date format

func (*Date) UnmarshalJSON ¶

func (d *Date) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes JSON data into a Date struct

type DateAttribute ¶

type DateAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string `json:"name,omitempty"`
	Value Date    `json:"value"`
}

* * This type represents an attribute whose value is a date. *

func (DateAttribute) MarshalJSON ¶

func (obj DateAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DateField ¶

type DateField struct {
	Value Date `json:"value"`
}

* * A field with a date value.

func (DateField) MarshalJSON ¶

func (obj DateField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DateSetAttribute ¶

type DateSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string `json:"name,omitempty"`
	Value []Date  `json:"value"`
}

* * This type represents an attribute whose value is a set of dates. *

func (DateSetAttribute) MarshalJSON ¶

func (obj DateSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DateSetField ¶

type DateSetField struct {
	Value []Date `json:"value"`
}

* * A field with a date set value.

func (DateSetField) MarshalJSON ¶

func (obj DateSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DateTimeAttribute ¶

type DateTimeAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string   `json:"name,omitempty"`
	Value time.Time `json:"value"`
}

* * This type represents an attribute whose value is a date with time. *

func (DateTimeAttribute) MarshalJSON ¶

func (obj DateTimeAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DateTimeField ¶

type DateTimeField struct {
	Value time.Time `json:"value"`
}

* * A field with a date time value.

func (DateTimeField) MarshalJSON ¶

func (obj DateTimeField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DateTimeSetAttribute ¶

type DateTimeSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string     `json:"name,omitempty"`
	Value []time.Time `json:"value"`
}

* * This type represents an attribute whose value is a set of dates with time. *

func (DateTimeSetAttribute) MarshalJSON ¶

func (obj DateTimeSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DateTimeSetField ¶

type DateTimeSetField struct {
	Value []time.Time `json:"value"`
}

* * A field with a date time set value.

func (DateTimeSetField) MarshalJSON ¶

func (obj DateTimeSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type Delivery ¶

type Delivery struct {
	ID        string         `json:"id"`
	CreatedAt time.Time      `json:"createdAt"`
	Items     []DeliveryItem `json:"items"`
	Parcels   []Parcel       `json:"parcels"`
	Address   *Address       `json:"address,omitempty"`
}

type DeliveryAddressDraft ¶

type DeliveryAddressDraft struct {
	DeliveryId string   `json:"deliveryId"`
	Address    *Address `json:"address,omitempty"`
}

type DeliveryDraft ¶

type DeliveryDraft struct {
	Items   []DeliveryItem        `json:"items"`
	Address *Address              `json:"address,omitempty"`
	Parcels []DeliveryParcelDraft `json:"parcels"`
}

type DeliveryItem ¶

type DeliveryItem struct {
	ID       string  `json:"id"`
	Quantity float64 `json:"quantity"`
}

type DeliveryParcel ¶

type DeliveryParcel struct {
	DeliveryId   string              `json:"deliveryId"`
	Measurements *ParcelMeasurements `json:"measurements,omitempty"`
	TrackingData *TrackingData       `json:"trackingData,omitempty"`
	Items        []DeliveryItem      `json:"items"`
}

func (DeliveryParcel) MarshalJSON ¶

func (obj DeliveryParcel) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DeliveryParcelDraft ¶

type DeliveryParcelDraft struct {
	Measurements *ParcelMeasurements `json:"measurements,omitempty"`
	TrackingData *TrackingData       `json:"trackingData,omitempty"`
	Items        []DeliveryItem      `json:"items"`
}

func (DeliveryParcelDraft) MarshalJSON ¶

func (obj DeliveryParcelDraft) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DiscountCodeInfo ¶

type DiscountCodeInfo struct {
	// References a discount code by key.
	DiscountCode DiscountCodeKeyReference `json:"discountCode"`
	// Maps to `DiscountCodeInfo.state`
	State *DiscountCodeState `json:"state,omitempty"`
}

type DiscountCodeKeyReference ¶

type DiscountCodeKeyReference struct {
	Key string `json:"key"`
}

* * References a discount code by key.

func (DiscountCodeKeyReference) MarshalJSON ¶

func (obj DiscountCodeKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DiscountCodeState ¶

type DiscountCodeState string

* * Maps to `DiscountCodeInfo.state`

const (
	DiscountCodeStateNotActive                            DiscountCodeState = "NotActive"
	DiscountCodeStateNotValid                             DiscountCodeState = "NotValid"
	DiscountCodeStateDoesNotMatchCart                     DiscountCodeState = "DoesNotMatchCart"
	DiscountCodeStateMatchesCart                          DiscountCodeState = "MatchesCart"
	DiscountCodeStateMaxApplicationReached                DiscountCodeState = "MaxApplicationReached"
	DiscountCodeStateApplicationStoppedByPreviousDiscount DiscountCodeState = "ApplicationStoppedByPreviousDiscount"
)

type DiscountedLineItemPortion ¶

type DiscountedLineItemPortion struct {
	// References a cart discount by key.
	Discount         CartDiscountKeyReference `json:"discount"`
	DiscountedAmount Money                    `json:"discountedAmount"`
}

type DiscountedLineItemPriceDraft ¶

type DiscountedLineItemPriceDraft struct {
	Value             Money                       `json:"value"`
	IncludedDiscounts []DiscountedLineItemPortion `json:"includedDiscounts"`
}

type DiscountedPrice ¶

type DiscountedPrice struct {
	Value TypedMoney `json:"value"`
	// Reference to a ProductDiscount.
	Discount ProductDiscountKeyReference `json:"discount"`
}

func (*DiscountedPrice) UnmarshalJSON ¶

func (obj *DiscountedPrice) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type DuplicateAttributeValueError ¶

type DuplicateAttributeValueError struct {
	Message string `json:"message"`
	// The attribute in conflict.
	Attribute Attribute `json:"attribute"`
}

* * The `Unique` [Attribute Constraint](/../api/projects/productTypes#attributeconstraint-enum) was violated.

func (DuplicateAttributeValueError) Error ¶

func (DuplicateAttributeValueError) MarshalJSON ¶

func (obj DuplicateAttributeValueError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*DuplicateAttributeValueError) UnmarshalJSON ¶

func (obj *DuplicateAttributeValueError) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type DuplicateAttributeValuesError ¶

type DuplicateAttributeValuesError struct {
	Message    string      `json:"message"`
	Attributes []Attribute `json:"attributes"`
}

* * The `CombinationUnique` [Attribute Constraint](/../api/projects/productTypes#attributeconstraint-enum) was violated.

func (DuplicateAttributeValuesError) Error ¶

func (DuplicateAttributeValuesError) MarshalJSON ¶

func (obj DuplicateAttributeValuesError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*DuplicateAttributeValuesError) UnmarshalJSON ¶

func (obj *DuplicateAttributeValuesError) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type DuplicateFieldError ¶

type DuplicateFieldError struct {
	Message string `json:"message"`
	// The name of the field.
	Field *string `json:"field,omitempty"`
	// The offending duplicate value.
	DuplicateValue interface{} `json:"duplicateValue,omitempty"`
}

* * The given value already exists for a field that is checked for unique values.

func (DuplicateFieldError) Error ¶

func (obj DuplicateFieldError) Error() string

func (DuplicateFieldError) MarshalJSON ¶

func (obj DuplicateFieldError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type DuplicateVariantValuesError ¶

type DuplicateVariantValuesError struct {
	Message string `json:"message"`
	// The offending variant values.
	VariantValues VariantValues `json:"variantValues"`
}

* * The given combination of values of a [Product Variant](/../api/projects/products#productvariant) conflicts with an existing one. * Every [Product Variant](/../api/projects/products#productvariant) must have a distinct combination of SKU, prices, and custom attribute values. *

func (DuplicateVariantValuesError) Error ¶

func (obj DuplicateVariantValuesError) Error() string

func (DuplicateVariantValuesError) MarshalJSON ¶

func (obj DuplicateVariantValuesError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type EnumAttribute ¶

type EnumAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string `json:"name,omitempty"`
	Value string  `json:"value"`
}

* * This type represents an attribute whose value is an enum. * The attribute value refers to the key of the enum value. *

func (EnumAttribute) MarshalJSON ¶

func (obj EnumAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type EnumField ¶

type EnumField struct {
	Value string `json:"value"`
}

* * A field with a enum value.

func (EnumField) MarshalJSON ¶

func (obj EnumField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type EnumSetAttribute ¶

type EnumSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string  `json:"name,omitempty"`
	Value []string `json:"value"`
}

* * This type represents an attribute whose value is an enum. * The attribute value refers to the key of the enum value. *

func (EnumSetAttribute) MarshalJSON ¶

func (obj EnumSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type EnumSetField ¶

type EnumSetField struct {
	Value []string `json:"value"`
}

* * A field with a enum set value.

func (EnumSetField) MarshalJSON ¶

func (obj EnumSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type EnumValue ¶

type EnumValue struct {
	Key   string `json:"key"`
	Label string `json:"label"`
}

type ErrorObject ¶

type ErrorObject interface{}

type ErrorResponse ¶

type ErrorResponse struct {
	// The http status code of the response.
	StatusCode int `json:"statusCode"`
	// Describes the error.
	Message string `json:"message"`
	// This property is only used for OAuth2 errors.
	// Contains the error code.
	ErrorMessage *string `json:"error,omitempty"`
	// This property is only used for OAuth2 errors.
	// Additional information to assist the client developer in
	// understanding the error.
	ErrorDescription *string `json:"error_description,omitempty"`
	// The errors that caused this error response.
	Errors []ErrorObject `json:"errors"`
}

* * The response in case of an error. *

func (ErrorResponse) Error ¶

func (obj ErrorResponse) Error() string

func (ErrorResponse) MarshalJSON ¶

func (obj ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ErrorResponse) UnmarshalJSON ¶

func (obj *ErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ExternalTaxRateDraft ¶

type ExternalTaxRateDraft struct {
	Name            string    `json:"name"`
	Amount          *float64  `json:"amount,omitempty"`
	Country         string    `json:"country"`
	State           *string   `json:"state,omitempty"`
	SubRates        []SubRate `json:"subRates"`
	IncludedInPrice *bool     `json:"includedInPrice,omitempty"`
}

func (ExternalTaxRateDraft) MarshalJSON ¶

func (obj ExternalTaxRateDraft) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type FieldContainer ¶

type FieldContainer map[string]CustomField

* * Maps the custom field names to the actual values.

type GenericError ¶

type GenericError struct {
	Message string `json:"message"`
}

func (GenericError) Error ¶

func (obj GenericError) Error() string

func (GenericError) MarshalJSON ¶

func (obj GenericError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type GenericRequestError ¶

type GenericRequestError struct {
	Content    []byte
	StatusCode int
}

func (GenericRequestError) Error ¶

func (e GenericRequestError) Error() string

type HighPrecisionMoney ¶

type HighPrecisionMoney struct {
	FractionDigits *int `json:"fractionDigits,omitempty"`
	CentAmount     int  `json:"centAmount"`
	// The currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
	CurrencyCode  string `json:"currencyCode"`
	PreciseAmount int    `json:"preciseAmount"`
}

func (HighPrecisionMoney) MarshalJSON ¶

func (obj HighPrecisionMoney) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type Image ¶

type Image struct {
	// URL of the image in its original size. The URL must be unique within a single variant. It can be used to obtain the image in different sizes.
	Url string `json:"url"`
	// Dimensions of the original image. This can be used by your application, for example, to determine whether the image is large enough to display a zoom view.
	Dimensions AssetDimensions `json:"dimensions"`
	// Custom label that can be used, for example, as an image description.
	Label *string `json:"label,omitempty"`
}

* * An Image uploaded to the commercetools platform is stored in a Content Delivery Network and it's available in several pre-defined sizes. If you already have an image stored on an external service, you can save the URL when creating a new product or adding a variant, or you can add it later.

type ImportContainer ¶

type ImportContainer struct {
	// User-defined unique identifier for the ImportContainer.
	// Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
	Key string `json:"key"`
	// The [resource type](#importresourcetype) the ImportContainer is able to handle.
	// If not present, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
	ResourceType *ImportResourceType `json:"resourceType,omitempty"`
	// The version of the ImportContainer.
	Version int `json:"version"`
	// The time when the ImportContainer was created.
	CreatedAt time.Time `json:"createdAt"`
	// The last time when the ImportContainer was modified.
	LastModifiedAt time.Time `json:"lastModifiedAt"`
}

* * Serves as the entry point of resources. * An Import Container is not resource type-specific. *

type ImportContainerDraft ¶

type ImportContainerDraft struct {
	// User-defined unique identifier of the ImportContainer.
	// Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
	Key string `json:"key"`
	// The [resource type](#importresourcetype) to be imported.
	// If not given, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
	ResourceType *ImportResourceType `json:"resourceType,omitempty"`
}

* * The representation sent to the server when creating an ImportContainer(#importcontainer). *

type ImportContainerPagedResponse ¶

type ImportContainerPagedResponse struct {
	// Number of [results requested](/../api/general-concepts#limit).
	Limit int `json:"limit"`
	// Number of [elements skipped](/../api/general-concepts#offset).
	Offset int `json:"offset"`
	// The actual number of results returned.
	Count int `json:"count"`
	// The total number of results matching the query.
	Total int `json:"total"`
	// The array of Import Containers matching the query.
	Results []ImportContainer `json:"results"`
}

* * [PagedQueryResult](/../api/general-concepts#pagedqueryresult) for [ImportContainers](#importcontainer). * Used as a response to a query request for [ImportContainers](#importcontainer). *

type ImportContainerUpdateDraft ¶

type ImportContainerUpdateDraft struct {
	// Current version of the ImportContainer.
	Version int `json:"version"`
	// The [resource type](#importresourcetype) to be imported.
	// If not given, the ImportContainer is able to import all of the supported [ImportResourceTypes](#importresourcetype).
	ResourceType *ImportResourceType `json:"resourceType,omitempty"`
}

* * The representation sent to the server when updating an import container. *

type ImportOperation ¶

type ImportOperation struct {
	// The version of the ImportOperation.
	Version int `json:"version"`
	// The key of the [importContainer](/import-container#importcontainer).
	ImportContainerKey string `json:"importContainerKey"`
	// The key of the resource.
	ResourceKey string `json:"resourceKey"`
	// The ID of the ImportOperation.
	ID string `json:"id"`
	// The import status of the resource. Set to `rejected` or `validationFailed` if the import of the resource was not successful.
	State ProcessingState `json:"state"`
	// The version of the impmorted resource when the import was successful.
	ResourceVersion *int `json:"resourceVersion,omitempty"`
	// Contains an error if the import of the resource was not successful. See [Errors](/error).
	Errors []ErrorObject `json:"errors"`
	// In case of unresolved status this array will show the unresolved references
	UnresolvedReferences []UnresolvedReferences `json:"unresolvedReferences"`
	// The time when the ImportOperation was created.
	CreatedAt time.Time `json:"createdAt"`
	// The last time When the ImportOperation was modified.
	LastModifiedAt time.Time `json:"lastModifiedAt"`
	// The expiration time of the ImportOperation.
	ExpiresAt time.Time `json:"expiresAt"`
}

* * Import Operation describes the import status of a specific resource. *

func (ImportOperation) MarshalJSON ¶

func (obj ImportOperation) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ImportOperation) UnmarshalJSON ¶

func (obj *ImportOperation) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ImportOperationPagedResponse ¶

type ImportOperationPagedResponse struct {
	// Number of [results requested](/../api/general-concepts#limit).
	Limit int `json:"limit"`
	// Number of [elements skipped](/../api/general-concepts#offset).
	Offset int `json:"offset"`
	// The actual number of results returned.
	Count int `json:"count"`
	// The total number of import operations matching the query.
	Total int `json:"total"`
	// The array of Import Operations matching the query.
	Results []ImportOperation `json:"results"`
}

* * [PagedQueryResult](/../api/general-concepts#pagedqueryresult) for Import Operations. *

type ImportOperationState ¶

type ImportOperationState string

* * Describes the validation state of a newly created ImportOperation(#importoperation). *

const (
	ImportOperationStateProcessing       ImportOperationState = "processing"
	ImportOperationStateValidationFailed ImportOperationState = "validationFailed"
)

type ImportOperationStatus ¶

type ImportOperationStatus struct {
	// The ID of the [ImportOperation](#importoperation).
	OperationId *string `json:"operationId,omitempty"`
	// The validation state of the [ImportOperation](#importoperation).
	State ImportOperationState `json:"state"`
	// The validation errors for the [ImportOperation](#importoperation).
	// See [Errors](/error).
	Errors []ErrorObject `json:"errors"`
}

func (ImportOperationStatus) MarshalJSON ¶

func (obj ImportOperationStatus) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ImportOperationStatus) UnmarshalJSON ¶

func (obj *ImportOperationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ImportRequest ¶

type ImportRequest interface{}

* * An import request batches multiple import resources of the same import resource type for processing by an import container. *

type ImportResource ¶

type ImportResource struct {
	Key string `json:"key"`
}

* * A representation of the resource to import. * Import resources are similar to commercetools draft types, but they only support key references. * In general, import resources are more granular then the normal commercetools resource. * They are optimized for incremental updates and therefore have a slightly different structure. *

type ImportResourceType ¶

type ImportResourceType string

* * The type of the import resource. *

const (
	ImportResourceTypeCategory            ImportResourceType = "category"
	ImportResourceTypeOrder               ImportResourceType = "order"
	ImportResourceTypeOrderPatch          ImportResourceType = "order-patch"
	ImportResourceTypePrice               ImportResourceType = "price"
	ImportResourceTypeProduct             ImportResourceType = "product"
	ImportResourceTypeProductDraft        ImportResourceType = "product-draft"
	ImportResourceTypeProductType         ImportResourceType = "product-type"
	ImportResourceTypeProductVariant      ImportResourceType = "product-variant"
	ImportResourceTypeProductVariantPatch ImportResourceType = "product-variant-patch"
	ImportResourceTypeCustomer            ImportResourceType = "customer"
)

type ImportResponse ¶

type ImportResponse struct {
	OperationStatus []ImportOperationStatus `json:"operationStatus"`
}

* * A list of the ID's and validation statuses of newly created [ImportOperations](#importoperation). * Used as a response at each resource-specific import endpoint, for example, at [Import Categories](/category#import-categories) and [Import ProductTypes](/product-type#import-producttypes). *

type ImportSink ¶

type ImportSink struct {
	// User-defined unique identifier for the ImportSink.
	// Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
	Key string `json:"key"`
	// The [resource type](#importresourcetype) the ImportSink is able to handle.
	// If not present, the ImportSink is able to import all of the supported [ImportResourceTypes](#importresourcetype).
	ResourceType *ImportResourceType `json:"resourceType,omitempty"`
	// The version of the ImportSink.
	Version int `json:"version"`
	// The time when the ImportSink was created.
	CreatedAt time.Time `json:"createdAt"`
	// The last time when the ImportSink was modified.
	LastModifiedAt time.Time `json:"lastModifiedAt"`
}

* * Serves as the entry point of resources. *

type ImportSinkDraft ¶

type ImportSinkDraft struct {
	// User-defined unique identifier of the ImportSink.
	// Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
	Key string `json:"key"`
	// The [resource type](#importresourcetype) to be imported.
	// If not given, the ImportSink is able to import all of the supported [ImportResourceTypes](#importresourcetype).
	ResourceType *ImportResourceType `json:"resourceType,omitempty"`
}

* * The representation sent to the server when creating an ImportSink(#importsink). *

type ImportSinkPagedResponse ¶

type ImportSinkPagedResponse struct {
	// Number of [results requested](/../api/general-concepts#limit).
	Limit int `json:"limit"`
	// Number of [elements skipped](/../api/general-concepts#offset).
	Offset int `json:"offset"`
	// The actual number of results returned.
	Count int `json:"count"`
	// The total number of results matching the query.
	Total int `json:"total"`
	// The array of Import Sinks matching the query.
	Results []ImportSink `json:"results"`
}

* * [PagedQueryResult](/../api/general-concepts#pagedqueryresult) for [ImportSinks](#importsink). * Used as a response to a query request for [ImportSinks](#importsink). *

type ImportSinkUpdateDraft ¶

type ImportSinkUpdateDraft struct {
	// Current version of the ImportSink.
	Version int `json:"version"`
	// The [resource type](#importresourcetype) to be imported.
	// If not given, the ImportSink is able to import all of the supported [ImportResourceTypes](#importresourcetype).
	ResourceType *ImportResourceType `json:"resourceType,omitempty"`
}

* * The representation sent to the server when updating an ImportSink(#importsink). *

type ImportSummary ¶

type ImportSummary struct {
	// The import status of an [ImportContainer](/import-container#importcontainer) given by the number of resources in each [Processing State](/processing-state#processingstate).
	States OperationStates `json:"states"`
	// The total number of [ImportOperations](/import-operation#importoperation) received for this Import Summary.
	Total int `json:"total"`
}

* * Describes the status of an ImportContainer(/import-container#importcontainer) by the number of resources in each [Processing State](/processing-state#processingstate). * Can be used to monitor the import progress per [Import Container](/import-container). *

type InsufficientScopeError ¶

type InsufficientScopeError struct {
	Message string `json:"message"`
}

func (InsufficientScopeError) Error ¶

func (obj InsufficientScopeError) Error() string

func (InsufficientScopeError) MarshalJSON ¶

func (obj InsufficientScopeError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type InvalidCredentialsError ¶

type InvalidCredentialsError struct {
	Message string `json:"message"`
}

func (InvalidCredentialsError) Error ¶

func (obj InvalidCredentialsError) Error() string

func (InvalidCredentialsError) MarshalJSON ¶

func (obj InvalidCredentialsError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type InvalidFieldError ¶

type InvalidFieldError struct {
	Message string `json:"message"`
	// The name of the field.
	Field string `json:"field"`
	// The invalid value.
	InvalidValue interface{} `json:"invalidValue"`
	// The set of allowed values for the field, if any.
	AllowedValues []interface{} `json:"allowedValues"`
	ResourceIndex *int          `json:"resourceIndex,omitempty"`
}

* * A given field is not supported. * This error occurs, for example, if the field `variants`, which is not supported by [Product Import](/product#productimport), is sent to the Product Import endpoint. *

func (InvalidFieldError) Error ¶

func (obj InvalidFieldError) Error() string

func (InvalidFieldError) MarshalJSON ¶

func (obj InvalidFieldError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type InvalidInput ¶

type InvalidInput struct {
	Message string `json:"message"`
}

* * An invalid input has been sent to the service. The client application should validate the input according to the * constraints described in the error message before sending the request again. *

func (InvalidInput) MarshalJSON ¶

func (obj InvalidInput) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type InvalidJsonInput ¶

type InvalidJsonInput struct {
	Message string `json:"message"`
}

* * An invalid JSON input has been sent to the service. * Either the JSON is syntactically incorrect or the JSON has an unexpected shape, for example, a required field is missing. * The client application should validate the input according to the constraints described in the error message before sending the request again. *

func (InvalidJsonInput) MarshalJSON ¶

func (obj InvalidJsonInput) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type InvalidOperation ¶

type InvalidOperation struct {
	Message string `json:"message"`
}

* * The resources in the request are not in the valid state for the operation. * The client application should validate the constraints described in the error message before sending the request again. *

func (InvalidOperation) MarshalJSON ¶

func (obj InvalidOperation) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type InvalidScopeError ¶

type InvalidScopeError struct {
	Message string `json:"message"`
}

* * The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner. *

func (InvalidScopeError) Error ¶

func (obj InvalidScopeError) Error() string

func (InvalidScopeError) MarshalJSON ¶

func (obj InvalidScopeError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type InvalidStateTransitionError ¶

type InvalidStateTransitionError struct {
	Message string `json:"message"`
	// Every [Import Operation](/import-operation) is assigned with one of the following states.
	CurrentState ProcessingState `json:"currentState"`
	// Every [Import Operation](/import-operation) is assigned with one of the following states.
	NewState ProcessingState `json:"newState"`
}

func (InvalidStateTransitionError) Error ¶

func (obj InvalidStateTransitionError) Error() string

func (InvalidStateTransitionError) MarshalJSON ¶

func (obj InvalidStateTransitionError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type InvalidTokenError ¶

type InvalidTokenError struct {
	Message string `json:"message"`
}

func (InvalidTokenError) Error ¶

func (obj InvalidTokenError) Error() string

func (InvalidTokenError) MarshalJSON ¶

func (obj InvalidTokenError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type InventoryMode ¶

type InventoryMode string

* * Maps to `Order.inventoryMode`.

const (
	InventoryModeTrackOnly      InventoryMode = "TrackOnly"
	InventoryModeReserveOnOrder InventoryMode = "ReserveOnOrder"
)

type ItemShippingDetailsDraft ¶

type ItemShippingDetailsDraft struct {
	// Maps to `ItemShippingDetailsDraft.targets`.
	Targets []ItemShippingTarget `json:"targets"`
}

type ItemShippingTarget ¶

type ItemShippingTarget struct {
	// Maps to `ItemShippingTarget.addressKey`.
	AddressKey string `json:"addressKey"`
	// Maps to `ItemShippingTarget.quantity`.
	Quantity float64 `json:"quantity"`
}

* * The item's shipping target. *

type ItemState ¶

type ItemState struct {
	Quantity float64 `json:"quantity"`
	// Maps to `ItemState.state`.
	State StateKeyReference `json:"state"`
}

* * The item's state. *

type KeyReference ¶

type KeyReference interface{}

* * References a resource by key.

type LineItemImportDraft ¶

type LineItemImportDraft struct {
	// Maps to `LineItem.productId`.
	Product *ProductKeyReference `json:"product,omitempty"`
	// Maps to `LineItem.name`.
	Name LocalizedString `json:"name"`
	// Maps to `ProductVariantImportDraft`.
	Variant LineItemProductVariantImportDraft `json:"variant"`
	// Maps to `LineItem.price`.
	Price LineItemPrice `json:"price"`
	// Maps to `LineItem.quantity`.
	Quantity float64     `json:"quantity"`
	State    []ItemState `json:"state"`
	// Maps to `LineItem.supplyChannel`.
	// The Reference to the Supply [Channel](/../api/projects/channels#channel) with which the LineItem is associated.
	// If referenced Supply Channel does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Supply Channel is created.
	SupplyChannel *ChannelKeyReference `json:"supplyChannel,omitempty"`
	// Maps to `LineItem.distributionChannel`.
	// The Reference to the Distribution [Channel](/../api/projects/channels#channel) with which the LineItem is associated.
	// If referenced CustomerGroup does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Distribution Channel is created.
	DistributionChannel *ChannelKeyReference `json:"distributionChannel,omitempty"`
	// Maps to `LineItem.taxRate`.
	TaxRate *TaxRate `json:"taxRate,omitempty"`
	// Maps to LineItem.shippingDetails.
	ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"`
}

* * Represents an individual Line Item in an Order. A line item is a snapshot of a product at the time it was added to the order. * * You cannot create an Order that includes line item operations that do not exist in the Project or have been deleted. * Products and Product Variants referenced by a line item must already exist in the commercetools Project. *

func (LineItemImportDraft) MarshalJSON ¶

func (obj LineItemImportDraft) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type LineItemPrice ¶

type LineItemPrice struct {
	// Maps to `Price.value`.
	Value TypedMoney `json:"value"`
	// Maps to `Price.county`.
	Country *string `json:"country,omitempty"`
	// Maps to `Price.validFrom`.
	ValidFrom *time.Time `json:"validFrom,omitempty"`
	// Maps to `Price.validUntil`.
	ValidUntil *time.Time `json:"validUntil,omitempty"`
	// References a customer group by key.
	CustomerGroup *CustomerGroupKeyReference `json:"customerGroup,omitempty"`
	// References a channel by key.
	Channel *ChannelKeyReference `json:"channel,omitempty"`
	// Sets a discounted price from an external service.
	Discounted *DiscountedPrice `json:"discounted,omitempty"`
	// The tiered prices for this price.
	Tiers []PriceTier `json:"tiers"`
	// Maps to `Price.custom`.
	Custom *Custom `json:"custom,omitempty"`
}

func (LineItemPrice) MarshalJSON ¶

func (obj LineItemPrice) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*LineItemPrice) UnmarshalJSON ¶

func (obj *LineItemPrice) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type LineItemProductVariantImportDraft ¶

type LineItemProductVariantImportDraft struct {
	// Maps to `ProductVariant.product`.
	ProductVariant *ProductVariantKeyReference `json:"productVariant,omitempty"`
	// Maps to `ProductVariantImportDraft.sku`.
	Sku *string `json:"sku,omitempty"`
	// Maps to `ProductVariantImportDraft.prices`
	Prices []LineItemPrice `json:"prices"`
	// Maps to `ProductVariantImportDraft.attributes`
	Attributes []Attribute `json:"attributes"`
	// Maps to `ProductVariantImportDraft.images`.
	Images []Image `json:"images"`
}

func (LineItemProductVariantImportDraft) MarshalJSON ¶

func (obj LineItemProductVariantImportDraft) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*LineItemProductVariantImportDraft) UnmarshalJSON ¶

func (obj *LineItemProductVariantImportDraft) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type LocalizableEnumAttribute ¶

type LocalizableEnumAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string `json:"name,omitempty"`
	Value string  `json:"value"`
}

* * This type represents an attribute whose value is a localized enum. * The attribute value refers to the key of the enum value. *

func (LocalizableEnumAttribute) MarshalJSON ¶

func (obj LocalizableEnumAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type LocalizableEnumSetAttribute ¶

type LocalizableEnumSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string  `json:"name,omitempty"`
	Value []string `json:"value"`
}

* * This type represents an attribute whose value is a localized enum. * The attribute value refers to the key of the enum value. *

func (LocalizableEnumSetAttribute) MarshalJSON ¶

func (obj LocalizableEnumSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type LocalizableTextAttribute ¶

type LocalizableTextAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name *string `json:"name,omitempty"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	Value LocalizedString `json:"value"`
}

* * This type represents an attribute whose value is a localized text. *

func (LocalizableTextAttribute) MarshalJSON ¶

func (obj LocalizableTextAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type LocalizableTextSetAttribute ¶

type LocalizableTextSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string           `json:"name,omitempty"`
	Value []LocalizedString `json:"value"`
}

* * This type represents an attribute whose value is a localized text. *

func (LocalizableTextSetAttribute) MarshalJSON ¶

func (obj LocalizableTextSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type LocalizedEnumField ¶

type LocalizedEnumField struct {
	Value string `json:"value"`
}

* * A field with a localized enum value.

func (LocalizedEnumField) MarshalJSON ¶

func (obj LocalizedEnumField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type LocalizedEnumSetField ¶

type LocalizedEnumSetField struct {
	Value []string `json:"value"`
}

* * A field with a localized enum set value.

func (LocalizedEnumSetField) MarshalJSON ¶

func (obj LocalizedEnumSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type LocalizedEnumValue ¶

type LocalizedEnumValue struct {
	Key string `json:"key"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	Label LocalizedString `json:"label"`
}

type LocalizedString ¶

type LocalizedString map[string]string

* * A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language. * ```json * { * "de": "Hundefutter", * "en": "dog food" * } * ``` *

type LocalizedStringField ¶

type LocalizedStringField struct {
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	Value LocalizedString `json:"value"`
}

* * A field with a localized string value.

func (LocalizedStringField) MarshalJSON ¶

func (obj LocalizedStringField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type LocalizedStringSetField ¶

type LocalizedStringSetField struct {
	Value []LocalizedString `json:"value"`
}

* * A field with a localized string set value.

func (LocalizedStringSetField) MarshalJSON ¶

func (obj LocalizedStringSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type Money ¶

type Money struct {
	FractionDigits *int `json:"fractionDigits,omitempty"`
	CentAmount     int  `json:"centAmount"`
	// The currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
	CurrencyCode string `json:"currencyCode"`
}

func (Money) MarshalJSON ¶

func (obj Money) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type MoneyAttribute ¶

type MoneyAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string    `json:"name,omitempty"`
	Value TypedMoney `json:"value"`
}

* * This type represents an attribute whose value is a money object. *

func (MoneyAttribute) MarshalJSON ¶

func (obj MoneyAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*MoneyAttribute) UnmarshalJSON ¶

func (obj *MoneyAttribute) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type MoneyField ¶

type MoneyField struct {
	Value TypedMoney `json:"value"`
}

* * A field with a money value.

func (MoneyField) MarshalJSON ¶

func (obj MoneyField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*MoneyField) UnmarshalJSON ¶

func (obj *MoneyField) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type MoneySetAttribute ¶

type MoneySetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string      `json:"name,omitempty"`
	Value []TypedMoney `json:"value"`
}

* * This type represents an attribute whose value is a set of money objects. *

func (MoneySetAttribute) MarshalJSON ¶

func (obj MoneySetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*MoneySetAttribute) UnmarshalJSON ¶

func (obj *MoneySetAttribute) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type MoneySetField ¶

type MoneySetField struct {
	Value []Money `json:"value"`
}

* * A field with a money set value.

func (MoneySetField) MarshalJSON ¶

func (obj MoneySetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type MoneyType ¶

type MoneyType string
const (
	MoneyTypeCentPrecision MoneyType = "centPrecision"
	MoneyTypeHighPrecision MoneyType = "highPrecision"
)

type NumberAttribute ¶

type NumberAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string `json:"name,omitempty"`
	Value float64 `json:"value"`
}

* * This type represents an attribute whose value is a number. *

func (NumberAttribute) MarshalJSON ¶

func (obj NumberAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type NumberField ¶

type NumberField struct {
	Value float64 `json:"value"`
}

* * A field with a number value.

func (NumberField) MarshalJSON ¶

func (obj NumberField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type NumberSetAttribute ¶

type NumberSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string   `json:"name,omitempty"`
	Value []float64 `json:"value"`
}

* * This type represents an attribute whose value is a set of numbers. *

func (NumberSetAttribute) MarshalJSON ¶

func (obj NumberSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type NumberSetField ¶

type NumberSetField struct {
	Value []float64 `json:"value"`
}

* * A field with a number value.

func (NumberSetField) MarshalJSON ¶

func (obj NumberSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type OperationStates ¶

type OperationStates struct {
	// The number of resources in the `processing` state.
	Processing int `json:"processing"`
	// The number of resources in the `validationFailed` state.
	ValidationFailed int `json:"validationFailed"`
	// The number of resources in the `unresolved` state.
	Unresolved int `json:"unresolved"`
	// The number of resources in the `waitForMasterVariant` state.
	WaitForMasterVariant int `json:"waitForMasterVariant"`
	// The number of resources in the `imported` state.
	Imported int `json:"imported"`
	// The number of resources in the `rejected` state.
	Rejected int `json:"rejected"`
}

type OrderField ¶

type OrderField struct {
	// Maps to `Order.returnInfo`
	AddReturnInfo *ReturnInfo `json:"addReturnInfo,omitempty"`
	// Maps to `Order.delivery`
	AddParcelToDelivery *DeliveryParcel `json:"addParcelToDelivery,omitempty"`
	// Maps to `Order.delivery`
	AddDeliveries []DeliveryDraft `json:"addDeliveries"`
	// Maps to `Order.removeDelivery`
	RemoveDelivery *RemoveDeliveryDraft `json:"removeDelivery,omitempty"`
	// Maps to `Order.removeParcelFromDelivery`
	RemoveParcelFromDelivery *RemoveParcelFromDeliveryDraft `json:"removeParcelFromDelivery,omitempty"`
	// Maps to `Order.addressDraft`
	SetDeliveryAddress *DeliveryAddressDraft `json:"setDeliveryAddress,omitempty"`
	// Maps to `Order.parcelMeasurements`
	SetParcelMeasurements *ParcelMeasurementDraft `json:"setParcelMeasurements,omitempty"`
	// Maps to `Order.parcelTrackingData`
	SetParcelTrackingData *ParcelTrackingData `json:"setParcelTrackingData,omitempty"`
	// Maps to `Order.parcelItems`
	SetParcelItems []ParcelItems `json:"setParcelItems"`
}

* * Order fields that needs to be added or updated. *

func (OrderField) MarshalJSON ¶

func (obj OrderField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type OrderImport ¶

type OrderImport struct {
	// Maps to `Order.orderNumber`, String that uniquely identifies an order. It should be unique across a project. Once it's set it cannot be changed.
	OrderNumber string                `json:"orderNumber"`
	Customer    *CustomerKeyReference `json:"customer,omitempty"`
	// Maps to `Order.customerEmail`.
	CustomerEmail *string `json:"customerEmail,omitempty"`
	// Maps to `Order.lineItems`.
	LineItems []LineItemImportDraft `json:"lineItems"`
	// Maps to `Order.customLineItems`
	CustomLineItems []CustomLineItemDraft `json:"customLineItems"`
	// Maps to `Order.totalPrice`.
	TotalPrice TypedMoney `json:"totalPrice"`
	// Maps to `Order.taxedPrice`.
	TaxedPrice *TaxedPrice `json:"taxedPrice,omitempty"`
	// Maps to `Order.shippingAddress`.
	ShippingAddress *Address `json:"shippingAddress,omitempty"`
	// Maps to `Order.billingAddress`.
	BillingAddress *Address `json:"billingAddress,omitempty"`
	// Maps to `Order.customerGroup`.
	CustomerGroup *CustomerGroupKeyReference `json:"customerGroup,omitempty"`
	// Maps to `Order.country`.
	Country *string `json:"country,omitempty"`
	// Maps to `Order.orderState`.
	OrderState *OrderState `json:"orderState,omitempty"`
	// Maps to `Order.shipmentState`.
	ShipmentState *ShipmentState `json:"shipmentState,omitempty"`
	// Maps to `Order.paymentState`.
	PaymentState *PaymentState `json:"paymentState,omitempty"`
	// Maps to `Order.shippingInfo`.
	ShippingInfo *ShippingInfoImportDraft `json:"shippingInfo,omitempty"`
	// Maps to `Order.completedAt`.
	CompletedAt *time.Time `json:"completedAt,omitempty"`
	// Maps to `Order.custom`.
	Custom *Custom `json:"custom,omitempty"`
	// Maps to `Order.inventoryMode`.
	InventoryMode *InventoryMode `json:"inventoryMode,omitempty"`
	// Maps to `Order.taxRoundingMode`.
	TaxRoundingMode *RoundingMode `json:"taxRoundingMode,omitempty"`
	// Maps to `Order.taxCalculationMode`.
	TaxCalculationMode *TaxCalculationMode `json:"taxCalculationMode,omitempty"`
	// Maps to `Order.origin`.
	Origin *CartOrigin `json:"origin,omitempty"`
	// Maps to `Order.itemShippingAddresses`.
	ItemShippingAddresses []Address `json:"itemShippingAddresses"`
}

* * The data representation for an Order to be imported that is persisted as an [Order](/../api/projects/orders#top) in the Project. * * In commercetools, you can import an Order using the * [Create Order by Import](https://docs.commercetools.com/http-api-projects-orders-import.html#create-an-order-by-import) * endpoint method instead of creating it from a Cart. * * An OrderImport is a snapshot of an order at the time it was imported. *

func (OrderImport) MarshalJSON ¶

func (obj OrderImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*OrderImport) UnmarshalJSON ¶

func (obj *OrderImport) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type OrderImportRequest ¶

type OrderImportRequest struct {
	// The order import resources of this request.
	Resources []OrderImport `json:"resources"`
}

* * The request body to [import Orders](#import-orders). Contains data for [Orders](/../api/projects/orders#order) to be created or updated in a commercetools Project. *

func (OrderImportRequest) MarshalJSON ¶

func (obj OrderImportRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type OrderKeyReference ¶

type OrderKeyReference struct {
	Key string `json:"key"`
}

* * References an order by key.

func (OrderKeyReference) MarshalJSON ¶

func (obj OrderKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type OrderPatchImport ¶

type OrderPatchImport struct {
	// Maps to `Order.orderNumber`, String that uniquely identifies an order, unique across a project.
	OrderNumber string `json:"orderNumber"`
	// Each field referenced must be defined in an already existing order in the commercetools project or the import operation state is set to `validationFailed`.
	Fields OrderField `json:"fields"`
}

* * Representation for an update of an [Order](/../api/projects/orders#order). Use this type to import updates for existing * [Orders](/../api/projects/orders#order) in a commercetools Project. *

type OrderPatchImportRequest ¶

type OrderPatchImportRequest struct {
	// The order patches of this request
	Patches []OrderPatchImport `json:"patches"`
}

* * The request body to [import OrderPatches](#import-orderpatches). The data to be imported are represented by OrderPatchImport(#orderpatchimport). *

func (OrderPatchImportRequest) MarshalJSON ¶

func (obj OrderPatchImportRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type OrderState ¶

type OrderState string

* * Maps to `Order.orderState`.

const (
	OrderStateOpen      OrderState = "Open"
	OrderStateConfirmed OrderState = "Confirmed"
	OrderStateComplete  OrderState = "Complete"
	OrderStateCancelled OrderState = "Cancelled"
)

type Parcel ¶

type Parcel struct {
	ID           string              `json:"id"`
	CreatedAt    time.Time           `json:"createdAt"`
	Measurements *ParcelMeasurements `json:"measurements,omitempty"`
	TrackingData *TrackingData       `json:"trackingData,omitempty"`
	Items        []DeliveryItem      `json:"items"`
}

func (Parcel) MarshalJSON ¶

func (obj Parcel) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ParcelItems ¶

type ParcelItems struct {
	ParcelId string         `json:"parcelId"`
	Items    []DeliveryItem `json:"items"`
}

func (ParcelItems) MarshalJSON ¶

func (obj ParcelItems) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ParcelMeasurementDraft ¶

type ParcelMeasurementDraft struct {
	ParcelId     string              `json:"parcelId"`
	Measurements *ParcelMeasurements `json:"measurements,omitempty"`
}

type ParcelMeasurements ¶

type ParcelMeasurements struct {
	HeightInMillimeter *float64 `json:"heightInMillimeter,omitempty"`
	LengthInMillimeter *float64 `json:"lengthInMillimeter,omitempty"`
	WidthInMillimeter  *float64 `json:"widthInMillimeter,omitempty"`
	WeightInGram       *float64 `json:"weightInGram,omitempty"`
}

type ParcelTrackingData ¶

type ParcelTrackingData struct {
	ParcelId     string        `json:"parcelId"`
	TrackingData *TrackingData `json:"trackingData,omitempty"`
}

type PaymentKeyReference ¶

type PaymentKeyReference struct {
	Key string `json:"key"`
}

* * References a payment by key.

func (PaymentKeyReference) MarshalJSON ¶

func (obj PaymentKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type PaymentState ¶

type PaymentState string

* * Maps to `Order.paymentState`.

const (
	PaymentStateBalanceDue PaymentState = "BalanceDue"
	PaymentStateFailed     PaymentState = "Failed"
	PaymentStatePending    PaymentState = "Pending"
	PaymentStateCreditOwed PaymentState = "CreditOwed"
	PaymentStatePaid       PaymentState = "Paid"
)

type PriceDraftImport ¶

type PriceDraftImport struct {
	Value TypedMoney `json:"value"`
	// A two-digit country code as per [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
	Country *string `json:"country,omitempty"`
	// References a customer group by key.
	CustomerGroup *CustomerGroupKeyReference `json:"customerGroup,omitempty"`
	// References a channel by key.
	Channel    *ChannelKeyReference `json:"channel,omitempty"`
	ValidFrom  *time.Time           `json:"validFrom,omitempty"`
	ValidUntil *time.Time           `json:"validUntil,omitempty"`
	// The custom fields for this category.
	Custom *Custom `json:"custom,omitempty"`
	// Sets a discounted price from an external service.
	Discounted *DiscountedPrice `json:"discounted,omitempty"`
	// The tiered prices for this price.
	Tiers []PriceTier `json:"tiers"`
	Key   *string     `json:"key,omitempty"`
}

* * The representation of a Price Draft for the import purpose. *

func (PriceDraftImport) MarshalJSON ¶

func (obj PriceDraftImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*PriceDraftImport) UnmarshalJSON ¶

func (obj *PriceDraftImport) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type PriceImport ¶

type PriceImport struct {
	Key string `json:"key"`
	// Maps to `Price.value`.
	Value TypedMoney `json:"value"`
	// Maps to `Price.county`.
	Country *string `json:"country,omitempty"`
	// Maps to `Price.validFrom`.
	ValidFrom *time.Time `json:"validFrom,omitempty"`
	// Maps to `Price.validUntil`.
	ValidUntil *time.Time `json:"validUntil,omitempty"`
	// The Reference to the [CustomerGroup](/../api/projects/customerGroups#customergroup) with which the [EmbeddedPrice](/../api/projects/products#embeddedprice) is associated.
	// If referenced CustomerGroup does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary CustomerGroup is created.
	CustomerGroup *CustomerGroupKeyReference `json:"customerGroup,omitempty"`
	// The Reference to the [Channel](/../api/projects/channels#channel) with which the [EmbeddedPrice](/../api/projects/products#embeddedprice) is associated.
	// If referenced Channel does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Channel is created.
	Channel *ChannelKeyReference `json:"channel,omitempty"`
	// Sets a discounted price from an external service.
	Discounted *DiscountedPrice `json:"discounted,omitempty"`
	// Only the [EmbeddedPrice](/../api/projects/products#embeddedprice) updates will be published to `staged` and `current` projection.
	Publish *bool `json:"publish,omitempty"`
	// The tiered prices for this price.
	Tiers []PriceTier `json:"tiers"`
	// The custom fields for this price.
	Custom *Custom `json:"custom,omitempty"`
	// The ProductVariant in which this [EmbeddedPrice](/../api/projects/products#embeddedprice) is contained.
	// The Reference to the [ProductVariant](/../api/projects/products#productvariant) with which the [EmbeddedPrice](/../api/projects/products#embeddedprice) is associated.
	// If referenced ProductVariant does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductVariant is created.
	ProductVariant ProductVariantKeyReference `json:"productVariant"`
	// The Product in which the Product Variant containing this [EmbeddedPrice](/../api/projects/products#embeddedprice) is contained. Maps to `ProductVariant.product`.
	// The Reference to the [Product](/../api/projects/products#product) with which the [EmbeddedPrice](/../api/projects/products#embeddedprice) is associated.
	// If referenced Product does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Product is created.
	Product ProductKeyReference `json:"product"`
}

* * The data representation for a price to be imported that is persisted as an [EmbeddedPrice](/../api/projects/products#embeddedprice) in the Project. *

func (PriceImport) MarshalJSON ¶

func (obj PriceImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*PriceImport) UnmarshalJSON ¶

func (obj *PriceImport) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type PriceImportRequest ¶

type PriceImportRequest struct {
	// The price import resources of this request.
	Resources []PriceImport `json:"resources"`
}

* * The request body to [import Prices](#import-prices). Contains data for [EmbeddedPrices](/../api/projects/products#embeddedprice) to be created or updated in a commercetools Project. *

func (PriceImportRequest) MarshalJSON ¶

func (obj PriceImportRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type PriceKeyReference ¶

type PriceKeyReference struct {
	Key string `json:"key"`
}

* * References a price by key.

func (PriceKeyReference) MarshalJSON ¶

func (obj PriceKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type PriceTier ¶

type PriceTier struct {
	// The minimum quantity this price tier is valid for.
	MinimumQuantity int `json:"minimumQuantity"`
	// The currency of a price tier is always the same as the currency of the base Price.
	Value TypedMoney `json:"value"`
}

* * A price tier is selected instead of the default price when a certain quantity of the ProductVariant is added to a cart and ordered. *

func (*PriceTier) UnmarshalJSON ¶

func (obj *PriceTier) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ProcessingState ¶

type ProcessingState string

* * Every [Import Operation](/import-operation) is assigned with one of the following states. *

const (
	ProcessingStateProcessing           ProcessingState = "processing"
	ProcessingStateValidationFailed     ProcessingState = "validationFailed"
	ProcessingStateUnresolved           ProcessingState = "unresolved"
	ProcessingStateWaitForMasterVariant ProcessingState = "waitForMasterVariant"
	ProcessingStateImported             ProcessingState = "imported"
	ProcessingStateRejected             ProcessingState = "rejected"
)

type ProductDiscountKeyReference ¶

type ProductDiscountKeyReference struct {
	Key string `json:"key"`
}

* * References a product discount by key.

func (ProductDiscountKeyReference) MarshalJSON ¶

func (obj ProductDiscountKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductDraftImport ¶

type ProductDraftImport struct {
	Key string `json:"key"`
	// The `productType` of a [Product](/../api/projects/products#product).
	// Maps to `Product.productType`.
	// The Reference to the [ProductType](/../api/projects/productTypes#producttype) with which the ProductDraft is associated.
	// If referenced ProductType does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductType is created.
	ProductType ProductTypeKeyReference `json:"productType"`
	Name        LocalizedString         `json:"name"`
	// Human-readable identifiers usually used as deep-link URL to the related product. Each slug must be unique across a project,
	// but a product can have the same slug for different languages. Allowed are alphabetic, numeric, underscore (_) and hyphen (-) characters.
	Slug LocalizedString `json:"slug"`
	// Maps to `Product.description`.
	Description *LocalizedString `json:"description,omitempty"`
	// The Reference to the [Categories](/../api/projects/categories#category) with which the ProductDraft is associated.
	// If referenced Categories do not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Categories are created.
	Categories []CategoryKeyReference `json:"categories"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	MetaTitle *LocalizedString `json:"metaTitle,omitempty"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	MetaDescription *LocalizedString `json:"metaDescription,omitempty"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"`
	// The master Product variant.
	// Required if the `variants` array contains a Product Variant.
	MasterVariant *ProductVariantDraftImport `json:"masterVariant,omitempty"`
	// An array of related Product Variants.
	Variants []ProductVariantDraftImport `json:"variants"`
	// The Reference to the [TaxCategory](/../api/projects/taxCategories#taxcategory) with which the ProductDraft is associated.
	// If referenced TaxCategory does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary TaxCategory is created.
	TaxCategory *TaxCategoryKeyReference `json:"taxCategory,omitempty"`
	// Search keywords are primarily used by the suggester but are also considered for the full-text search. SearchKeywords is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). The value to a language tag key is an array of SearchKeyword for the specific language.
	// “`json
	// {
	//   "en": [
	//     { "text": "Multi tool" },
	//     { "text": "Swiss Army Knife", "suggestTokenizer": { "type": "whitespace" } }
	//   ],
	//   "de": [
	//     {
	//       "text": "Schweizer Messer",
	//       "suggestTokenizer": {
	//         "type": "custom",
	//         "inputs": ["schweizer messer", "offiziersmesser", "sackmesser"]
	//       }
	//     }
	//   ]
	// }
	// “`
	SearchKeywords *SearchKeywords `json:"searchKeywords,omitempty"`
	// The Reference to the [State](/../api/projects/states#state) with which the ProductDraft is associated.
	// If referenced State does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary State is created.
	State *StateKeyReference `json:"state,omitempty"`
	// If `publish` is set to either `true` or `false`, both staged and current projections are set to the same value provided by the import data.
	// If `publish` is not set, the staged projection is set to the provided import data, but the current projection stays unchanged.
	// However, if the import data contains no update, that is, if it matches the staged projection of the existing Product in the platform, the import induces no change in the existing Product whether `publish` is set or not.
	Publish *bool `json:"publish,omitempty"`
}

* * The representation of a Product Draft for the import purpose. *

func (ProductDraftImport) MarshalJSON ¶

func (obj ProductDraftImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductDraftImportRequest ¶

type ProductDraftImportRequest struct {
	// The product draft import resources of this request.
	Resources []ProductDraftImport `json:"resources"`
}

* * The request body to [import ProductDrafts](#import-productdrafts). Contains data for [Products](/../api/projects/products#productdraft) to be created or updated in a commercetools Project. *

func (ProductDraftImportRequest) MarshalJSON ¶

func (obj ProductDraftImportRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductImport ¶

type ProductImport struct {
	Key string `json:"key"`
	// Maps to `Product.name`.
	Name LocalizedString `json:"name"`
	// The `productType` of a [Product](/../api/projects/products#product).
	// Maps to `Product.productType`.
	// The Reference to the [ProductType](/../api/projects/productTypes#producttype) with which the Product is associated.
	// If referenced ProductType does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductType is created.
	ProductType ProductTypeKeyReference `json:"productType"`
	// Human-readable identifiers usually used as deep-link URL to the related product. Each slug must be unique across a Project,
	// but a product can have the same slug for different languages. Allowed are alphabetic, numeric, underscore (_) and hyphen (-) characters.
	Slug LocalizedString `json:"slug"`
	// Maps to `Product.description`.
	Description *LocalizedString `json:"description,omitempty"`
	// Maps to `Product.categories`.
	// The References to the [Categories](/../api/projects/categories#category) with which the Product is associated.
	// If referenced Categories do not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Categories are created.
	Categories []CategoryKeyReference `json:"categories"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	MetaTitle *LocalizedString `json:"metaTitle,omitempty"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	MetaDescription *LocalizedString `json:"metaDescription,omitempty"`
	// A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.
	// “`json
	// {
	//   "de": "Hundefutter",
	//   "en": "dog food"
	// }
	// “`
	MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"`
	// The Reference to the [TaxCategory](/../api/projects/taxCategories#taxcategory) with which the Product is associated.
	// If referenced TaxCategory does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary TaxCategory is created.
	TaxCategory *TaxCategoryKeyReference `json:"taxCategory,omitempty"`
	// Search keywords are primarily used by the suggester but are also considered for the full-text search. SearchKeywords is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). The value to a language tag key is an array of SearchKeyword for the specific language.
	// “`json
	// {
	//   "en": [
	//     { "text": "Multi tool" },
	//     { "text": "Swiss Army Knife", "suggestTokenizer": { "type": "whitespace" } }
	//   ],
	//   "de": [
	//     {
	//       "text": "Schweizer Messer",
	//       "suggestTokenizer": {
	//         "type": "custom",
	//         "inputs": ["schweizer messer", "offiziersmesser", "sackmesser"]
	//       }
	//     }
	//   ]
	// }
	// “`
	SearchKeywords *SearchKeywords `json:"searchKeywords,omitempty"`
	// The Reference to the [State](/../api/projects/states#state) with which the Product is associated.
	// If referenced State does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary State is created.
	State *StateKeyReference `json:"state,omitempty"`
	// If `publish` is set to either `true` or `false`, both staged and current projections are set to the same value provided by the import data.
	// If `publish` is not set, the staged projection is set to the provided import data, but the current projection stays unchanged.
	// However, if the import data contains no update, that is, if it matches the staged projection of the existing Product in the platform, the import induces no change in the existing Product whether `publish` is set or not.
	Publish *bool `json:"publish,omitempty"`
}

* * The data representation for a Product to be imported that is persisted as a [Product](/../api/projects/products#product) in the Project. * * This is the minimal representation required for creating a [Product](/../api/projects/products#product) in commercetools. *

func (ProductImport) MarshalJSON ¶

func (obj ProductImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductImportRequest ¶

type ProductImportRequest struct {
	// The product import resources of this request.
	Resources []ProductImport `json:"resources"`
}

* * The request body to [import Products](#import-products). Contains data for [Products](/../api/projects/products#product) to be created or updated in a commercetools Project. *

func (ProductImportRequest) MarshalJSON ¶

func (obj ProductImportRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductKeyReference ¶

type ProductKeyReference struct {
	Key string `json:"key"`
}

* * References a product by key.

func (ProductKeyReference) MarshalJSON ¶

func (obj ProductKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductTypeImport ¶

type ProductTypeImport struct {
	Key string `json:"key"`
	// Maps to `ProductType.name`.
	Name string `json:"name"`
	// Maps to `ProductType.description`.
	Description string `json:"description"`
	// The `attributes` of [ProductType](/../api/projects/productTypes#producttype).
	Attributes []AttributeDefinition `json:"attributes"`
}

* * The data representation for a ProductType to be imported that is persisted as a [ProductType](/../api/projects/productTypes#producttype) in the Project. *

func (ProductTypeImport) MarshalJSON ¶

func (obj ProductTypeImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductTypeImportRequest ¶

type ProductTypeImportRequest struct {
	// The product type import resources of this request.
	Resources []ProductTypeImport `json:"resources"`
}

* * The request body to [import ProductTypes](#import-producttypes). Contains data for [ProductTypes](/../api/projects/productTypes#producttype) to be created or updated in a commercetools Project. *

func (ProductTypeImportRequest) MarshalJSON ¶

func (obj ProductTypeImportRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductTypeKeyReference ¶

type ProductTypeKeyReference struct {
	Key string `json:"key"`
}

* * References a product type by key.

func (ProductTypeKeyReference) MarshalJSON ¶

func (obj ProductTypeKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductVariantDraftImport ¶

type ProductVariantDraftImport struct {
	Sku        *string            `json:"sku,omitempty"`
	Key        string             `json:"key"`
	Prices     []PriceDraftImport `json:"prices"`
	Attributes []Attribute        `json:"attributes"`
	Images     []Image            `json:"images"`
	Assets     []Asset            `json:"assets"`
}

* * The representation of a Product Variant Draft for the import purpose. *

func (ProductVariantDraftImport) MarshalJSON ¶

func (obj ProductVariantDraftImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ProductVariantDraftImport) UnmarshalJSON ¶

func (obj *ProductVariantDraftImport) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ProductVariantImport ¶

type ProductVariantImport struct {
	Key string `json:"key"`
	// Maps to `ProductVariant.sku`.
	Sku *string `json:"sku,omitempty"`
	// Maps to `ProductVariant.isMasterVariant`.
	IsMasterVariant bool `json:"isMasterVariant"`
	// Maps to `ProductVariant.attributes`.
	// The referenced attribute must be defined in an already existing ProductType in the commercetools project, or the `state` of the [ImportOperation](/import-operation#importoperation) will be `unresolved`.
	Attributes []Attribute `json:"attributes"`
	// Maps to `ProductVariant.images`.
	Images []Image `json:"images"`
	// Maps to `ProductVariant.assets`.
	Assets []Asset `json:"assets"`
	// If `publish` is set to either `true` or `false`, both staged and current projections are set to the same value provided by the import data.
	// If `publish` is not set, the staged projection is set to the provided import data, but the current projection stays unchanged.
	// However, if the import data contains no update, that is, if it matches the staged projection of the existing Product in the platform, the import induces no change in the existing Product whether `publish` is set or not.
	Publish *bool `json:"publish,omitempty"`
	// The [Product](/../api/projects/products#productvariant) to which this Product Variant belongs. Maps to `ProductVariant.product`.
	// The Reference to the [Product](/../api/projects/products#product) with which the ProductVariant is associated.
	// If referenced Product does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Product is created.
	Product ProductKeyReference `json:"product"`
}

* * The data representation for a ProductVariant to be imported that is persisted as a [ProductVariant](/../api/projects/products#productvariant) in the Project. *

func (ProductVariantImport) MarshalJSON ¶

func (obj ProductVariantImport) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ProductVariantImport) UnmarshalJSON ¶

func (obj *ProductVariantImport) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ProductVariantImportRequest ¶

type ProductVariantImportRequest struct {
	// The product variant import resources of this request.
	Resources []ProductVariantImport `json:"resources"`
}

* * The request body to [import ProductVariants](#import-productvariants). Contains data for [ProductVariants](/../api/projects/products#productvariant) to be created or updated in a commercetools Project. *

func (ProductVariantImportRequest) MarshalJSON ¶

func (obj ProductVariantImportRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductVariantKeyReference ¶

type ProductVariantKeyReference struct {
	Key string `json:"key"`
}

* * References a product variant by key.

func (ProductVariantKeyReference) MarshalJSON ¶

func (obj ProductVariantKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ProductVariantPatch ¶

type ProductVariantPatch struct {
	// The [ProductVariant](/../api/projects/products#productvariant) to which this patch is applied.
	// The Reference to the [ProductVariant](/../api/projects/products#productvariant) with which the ProductVariantPatch is associated.
	// If referenced ProductVariant does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductVariant is created.
	ProductVariant ProductVariantKeyReference `json:"productVariant"`
	// Maps to `ProductVariant.attributes`.
	// The referenced attribute must be defined in an already existing [ProductType](/../api/projects/productTypes#producttype) in the commercetools Project, or the `state` of the [ImportOperation](/import-operation#importoperation) will be `unresolved`.
	Attributes *Attributes `json:"attributes,omitempty"`
	// If `false`, the attribute changes are applied to both [current and staged projected representations](/../api/projects/productProjections#current--staged) of the [Product](/../api/projects/products#product).
	Staged *bool `json:"staged,omitempty"`
}

* * Representation for an update of a [ProductVariant](/../api/projects/products#productvariant). Use this type to import updates for existing * [ProductVariants](/../api/projects/products#productvariant) in a commercetools Project. *

type ProductVariantPatchRequest ¶

type ProductVariantPatchRequest struct {
	// The product variant patches of this request.
	Patches []ProductVariantPatch `json:"patches"`
}

* * The request body to [import ProductVariantPatches](#import-productvariantpatches). The data to be imported are represented by ProductVariantPatch(#productvariantpatch). *

func (ProductVariantPatchRequest) MarshalJSON ¶

func (obj ProductVariantPatchRequest) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ReferenceAttribute ¶

type ReferenceAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name *string `json:"name,omitempty"`
	// References a resource by key.
	Value KeyReference `json:"value"`
}

* * This type represents an attribute whose value is a key reference. *

func (ReferenceAttribute) MarshalJSON ¶

func (obj ReferenceAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ReferenceAttribute) UnmarshalJSON ¶

func (obj *ReferenceAttribute) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ReferenceField ¶

type ReferenceField struct {
	// References a resource by key
	Value KeyReference `json:"value"`
}

* * A field with a reference value.

func (ReferenceField) MarshalJSON ¶

func (obj ReferenceField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ReferenceField) UnmarshalJSON ¶

func (obj *ReferenceField) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ReferenceSetAttribute ¶

type ReferenceSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string        `json:"name,omitempty"`
	Value []KeyReference `json:"value"`
}

* * This type represents an attribute whose value is a set of references. *

func (ReferenceSetAttribute) MarshalJSON ¶

func (obj ReferenceSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ReferenceSetAttribute) UnmarshalJSON ¶

func (obj *ReferenceSetAttribute) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ReferenceSetField ¶

type ReferenceSetField struct {
	Value []KeyReference `json:"value"`
}

* * A field with a reference set value.

func (ReferenceSetField) MarshalJSON ¶

func (obj ReferenceSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ReferenceSetField) UnmarshalJSON ¶

func (obj *ReferenceSetField) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ReferenceType ¶

type ReferenceType string

* * The type of the referenced resource. *

const (
	ReferenceTypeCart             ReferenceType = "cart"
	ReferenceTypeCartDiscount     ReferenceType = "cart-discount"
	ReferenceTypeCategory         ReferenceType = "category"
	ReferenceTypeChannel          ReferenceType = "channel"
	ReferenceTypeCustomer         ReferenceType = "customer"
	ReferenceTypeCustomerGroup    ReferenceType = "customer-group"
	ReferenceTypeDiscountCode     ReferenceType = "discount-code"
	ReferenceTypeOrder            ReferenceType = "order"
	ReferenceTypePayment          ReferenceType = "payment"
	ReferenceTypePrice            ReferenceType = "price"
	ReferenceTypeProduct          ReferenceType = "product"
	ReferenceTypeProductDiscount  ReferenceType = "product-discount"
	ReferenceTypeProductType      ReferenceType = "product-type"
	ReferenceTypeProductVariant   ReferenceType = "product-variant"
	ReferenceTypeShippingMethod   ReferenceType = "shipping-method"
	ReferenceTypeState            ReferenceType = "state"
	ReferenceTypeStore            ReferenceType = "store"
	ReferenceTypeTaxCategory      ReferenceType = "tax-category"
	ReferenceTypeType             ReferenceType = "type"
	ReferenceTypeKeyValueDocument ReferenceType = "key-value-document"
)

type RemoveDeliveryDraft ¶

type RemoveDeliveryDraft struct {
	ID string `json:"id"`
}

type RemoveParcelFromDeliveryDraft ¶

type RemoveParcelFromDeliveryDraft struct {
	ParcelId string `json:"parcelId"`
}

type RequiredFieldError ¶

type RequiredFieldError struct {
	Message string `json:"message"`
	// The name of the field.
	Field string `json:"field"`
}

* * A required field is missing a value.

func (RequiredFieldError) Error ¶

func (obj RequiredFieldError) Error() string

func (RequiredFieldError) MarshalJSON ¶

func (obj RequiredFieldError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ResourceCreationError ¶

type ResourceCreationError struct {
	Message  string      `json:"message"`
	Resource interface{} `json:"resource,omitempty"`
}

func (ResourceCreationError) Error ¶

func (obj ResourceCreationError) Error() string

func (ResourceCreationError) MarshalJSON ¶

func (obj ResourceCreationError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ResourceDeletionError ¶

type ResourceDeletionError struct {
	Message  string      `json:"message"`
	Resource interface{} `json:"resource,omitempty"`
}

func (ResourceDeletionError) Error ¶

func (obj ResourceDeletionError) Error() string

func (ResourceDeletionError) MarshalJSON ¶

func (obj ResourceDeletionError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ResourceNotFoundError ¶

type ResourceNotFoundError struct {
	Message  string      `json:"message"`
	Resource interface{} `json:"resource,omitempty"`
}

func (ResourceNotFoundError) Error ¶

func (obj ResourceNotFoundError) Error() string

func (ResourceNotFoundError) MarshalJSON ¶

func (obj ResourceNotFoundError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ResourceUpdateError ¶

type ResourceUpdateError struct {
	Message  string      `json:"message"`
	Resource interface{} `json:"resource,omitempty"`
}

func (ResourceUpdateError) Error ¶

func (obj ResourceUpdateError) Error() string

func (ResourceUpdateError) MarshalJSON ¶

func (obj ResourceUpdateError) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ReturnInfo ¶

type ReturnInfo struct {
	Items []ReturnItemDraft `json:"items"`
	// Maps to `ReturnInfo.returnTrackingId`
	ReturnTrackingId *string `json:"returnTrackingId,omitempty"`
	// Maps to `ReturnInfo.returnDate`
	ReturnDate *time.Time `json:"returnDate,omitempty"`
}

type ReturnItemDraft ¶

type ReturnItemDraft struct {
	Quantity         float64 `json:"quantity"`
	LineItemId       *string `json:"lineItemId,omitempty"`
	CustomLineItemId *string `json:"customLineItemId,omitempty"`
	Comment          *string `json:"comment,omitempty"`
	// Maps to `ReturnItem.shipmentState`
	ShipmentState ReturnShipmentState `json:"shipmentState"`
}

type ReturnShipmentState ¶

type ReturnShipmentState string

* * Maps to `ReturnItem.shipmentState`

const (
	ReturnShipmentStateAdvised     ReturnShipmentState = "Advised"
	ReturnShipmentStateReturned    ReturnShipmentState = "Returned"
	ReturnShipmentStateBackInStock ReturnShipmentState = "BackInStock"
	ReturnShipmentStateUnusable    ReturnShipmentState = "Unusable"
)

type RoundingMode ¶

type RoundingMode string

* * Maps to `Order.taxRoundingMode`.

const (
	RoundingModeHalfEven RoundingMode = "HalfEven"
	RoundingModeHalfUp   RoundingMode = "HalfUp"
	RoundingModeHalfDown RoundingMode = "HalfDown"
)

type ScoreShippingRateInput ¶

type ScoreShippingRateInput struct {
	Score float64 `json:"score"`
}

func (ScoreShippingRateInput) MarshalJSON ¶

func (obj ScoreShippingRateInput) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type SearchKeyword ¶

type SearchKeyword struct {
	Text string `json:"text"`
	// The tokenizer defines the tokens that are used to match against the [Suggest Query](/../products-suggestions#suggest-query) input.
	SuggestTokenizer SuggestTokenizer `json:"suggestTokenizer,omitempty"`
}

func (*SearchKeyword) UnmarshalJSON ¶

func (obj *SearchKeyword) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type SearchKeywords ¶

type SearchKeywords map[string][]SearchKeyword

* * Search keywords are primarily used by the suggester but are also considered for the full-text search. SearchKeywords is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). The value to a language tag key is an array of SearchKeyword for the specific language. * ```json * { * "en": [ * { "text": "Multi tool" }, * { "text": "Swiss Army Knife", "suggestTokenizer": { "type": "whitespace" } } * ], * "de": [ * { * "text": "Schweizer Messer", * "suggestTokenizer": { * "type": "custom", * "inputs": ["schweizer messer", "offiziersmesser", "sackmesser"] * } * } * ] * } * ``` *

type ShipmentState ¶

type ShipmentState string

* * Maps to `Order.shipmentState`.

const (
	ShipmentStateShipped   ShipmentState = "Shipped"
	ShipmentStateReady     ShipmentState = "Ready"
	ShipmentStatePending   ShipmentState = "Pending"
	ShipmentStateDelayed   ShipmentState = "Delayed"
	ShipmentStatePartial   ShipmentState = "Partial"
	ShipmentStateBackorder ShipmentState = "Backorder"
)

type ShippingInfoImportDraft ¶

type ShippingInfoImportDraft struct {
	ShippingMethodName string            `json:"shippingMethodName"`
	Price              TypedMoney        `json:"price"`
	ShippingRate       ShippingRateDraft `json:"shippingRate"`
	TaxRate            *TaxRate          `json:"taxRate,omitempty"`
	// References a tax category by key.
	TaxCategory *TaxCategoryKeyReference `json:"taxCategory,omitempty"`
	// References a shipping method by key.
	ShippingMethod *ShippingMethodKeyReference `json:"shippingMethod,omitempty"`
	// Note that you can not add a `DeliveryItem` on import, as `LineItems` and `CustomLineItems` are not yet referencable by an `id`.
	Deliveries          []Delivery                    `json:"deliveries"`
	DiscountedPrice     *DiscountedLineItemPriceDraft `json:"discountedPrice,omitempty"`
	ShippingMethodState *ShippingMethodState          `json:"shippingMethodState,omitempty"`
}

* * Maps to an order's `shippingInfo` property. This field is usually populated by the cart assosciated with * the order, but when importing orders you must provide a draft representation as a part of the OrderImport. *

func (ShippingInfoImportDraft) MarshalJSON ¶

func (obj ShippingInfoImportDraft) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ShippingInfoImportDraft) UnmarshalJSON ¶

func (obj *ShippingInfoImportDraft) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ShippingMethodKeyReference ¶

type ShippingMethodKeyReference struct {
	Key string `json:"key"`
}

* * References a shipping method by key.

func (ShippingMethodKeyReference) MarshalJSON ¶

func (obj ShippingMethodKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type ShippingMethodState ¶

type ShippingMethodState string
const (
	ShippingMethodStateDoesNotMatchCart ShippingMethodState = "DoesNotMatchCart"
	ShippingMethodStateMatchesCart      ShippingMethodState = "MatchesCart"
)

type ShippingRateDraft ¶

type ShippingRateDraft struct {
	Price     Money                   `json:"price"`
	FreeAbove *Money                  `json:"freeAbove,omitempty"`
	Tiers     []ShippingRatePriceTier `json:"tiers"`
}

func (ShippingRateDraft) MarshalJSON ¶

func (obj ShippingRateDraft) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

func (*ShippingRateDraft) UnmarshalJSON ¶

func (obj *ShippingRateDraft) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type ShippingRateInput ¶

type ShippingRateInput interface{}

type ShippingRateInputType ¶

type ShippingRateInputType string
const (
	ShippingRateInputTypeClassification ShippingRateInputType = "Classification"
	ShippingRateInputTypeScore          ShippingRateInputType = "Score"
)

type ShippingRatePriceTier ¶

type ShippingRatePriceTier interface{}

type ShippingRateTierType ¶

type ShippingRateTierType string
const (
	ShippingRateTierTypeCartValue          ShippingRateTierType = "CartValue"
	ShippingRateTierTypeCartClassification ShippingRateTierType = "CartClassification"
	ShippingRateTierTypeCartScore          ShippingRateTierType = "CartScore"
)

type StateKeyReference ¶

type StateKeyReference struct {
	Key string `json:"key"`
}

* * References a state by key.

func (StateKeyReference) MarshalJSON ¶

func (obj StateKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type StoreKeyReference ¶

type StoreKeyReference struct {
	Key string `json:"key"`
}

* * References a store by key.

func (StoreKeyReference) MarshalJSON ¶

func (obj StoreKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type StringField ¶

type StringField struct {
	Value string `json:"value"`
}

* * A field with a string value.

func (StringField) MarshalJSON ¶

func (obj StringField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type StringSetField ¶

type StringSetField struct {
	Value []string `json:"value"`
}

* * A field with a string set value.

func (StringSetField) MarshalJSON ¶

func (obj StringSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type SubRate ¶

type SubRate struct {
	Name   string  `json:"name"`
	Amount float64 `json:"amount"`
}

type SuggestTokenizer ¶

type SuggestTokenizer interface{}

* * The tokenizer defines the tokens that are used to match against the [Suggest Query](/../products-suggestions#suggest-query) input. *

type SyncInfo ¶

type SyncInfo struct {
	// Maps to `SyncInfo.channel`
	Channel ChannelKeyReference `json:"channel"`
	// Maps to `SyncInfo.externalId`
	ExternalId *string `json:"externalId,omitempty"`
	// Maps to `SyncInfo.syncedAt`
	SyncedAt time.Time `json:"syncedAt"`
}

type TaxCalculationMode ¶

type TaxCalculationMode string

* * Maps to `Order.taxCalculationMode`.

const (
	TaxCalculationModeLineItemLevel  TaxCalculationMode = "LineItemLevel"
	TaxCalculationModeUnitPriceLevel TaxCalculationMode = "UnitPriceLevel"
)

type TaxCategoryKeyReference ¶

type TaxCategoryKeyReference struct {
	Key string `json:"key"`
}

* * References a tax category by key.

func (TaxCategoryKeyReference) MarshalJSON ¶

func (obj TaxCategoryKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type TaxMode ¶

type TaxMode string

* * Maps to `Order.taxMode`

const (
	TaxModePlatform       TaxMode = "Platform"
	TaxModeExternal       TaxMode = "External"
	TaxModeExternalAmount TaxMode = "ExternalAmount"
	TaxModeDisabled       TaxMode = "Disabled"
)

type TaxPortion ¶

type TaxPortion struct {
	Name   *string    `json:"name,omitempty"`
	Rate   float64    `json:"rate"`
	Amount TypedMoney `json:"amount"`
}

func (*TaxPortion) UnmarshalJSON ¶

func (obj *TaxPortion) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type TaxRate ¶

type TaxRate struct {
	ID              *string `json:"id,omitempty"`
	Name            string  `json:"name"`
	Amount          float64 `json:"amount"`
	IncludedInPrice bool    `json:"includedInPrice"`
	// A two-digit country code as per [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
	Country  string    `json:"country"`
	State    *string   `json:"state,omitempty"`
	SubRates []SubRate `json:"subRates"`
}

func (TaxRate) MarshalJSON ¶

func (obj TaxRate) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type TaxedPrice ¶

type TaxedPrice struct {
	// Maps to `TaxedPrice.totalNet`.
	TotalNet Money `json:"totalNet"`
	// Maps to `TaxedPrice.totalGross`.
	TotalGross Money `json:"totalGross"`
	// Maps to `TaxedPrice.taxPortions`.
	TaxPortions []TaxPortion `json:"taxPortions"`
	// Maps to `TaxedPrice.totalTax`.
	TotalTax *Money `json:"totalTax,omitempty"`
}

type TextAttribute ¶

type TextAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string `json:"name,omitempty"`
	Value string  `json:"value"`
}

* * This type represents an attribute whose value is a string. *

func (TextAttribute) MarshalJSON ¶

func (obj TextAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type TextInputHint ¶

type TextInputHint string
const (
	TextInputHintSingleLine TextInputHint = "SingleLine"
	TextInputHintMultiLine  TextInputHint = "MultiLine"
)

type TextSetAttribute ¶

type TextSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string  `json:"name,omitempty"`
	Value []string `json:"value"`
}

* * This type represents an attribute whose value is a set of strings. *

func (TextSetAttribute) MarshalJSON ¶

func (obj TextSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type TimeAttribute ¶

type TimeAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string   `json:"name,omitempty"`
	Value time.Time `json:"value"`
}

* * This type represents an attribute whose value is a time. *

func (TimeAttribute) MarshalJSON ¶

func (obj TimeAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type TimeField ¶

type TimeField struct {
	Value time.Time `json:"value"`
}

* * A field with a time value.

func (TimeField) MarshalJSON ¶

func (obj TimeField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type TimeSetAttribute ¶

type TimeSetAttribute struct {
	// The name of this attribute must match a name of the product types attribute definitions.
	// The name is required if this type is used in a product variant and must not be set when
	// used in a product variant patch.
	Name  *string     `json:"name,omitempty"`
	Value []time.Time `json:"value"`
}

* * This type represents an attribute whose value is a set of times. *

func (TimeSetAttribute) MarshalJSON ¶

func (obj TimeSetAttribute) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type TimeSetField ¶

type TimeSetField struct {
	Value []time.Time `json:"value"`
}

* * A field with a time set value.

func (TimeSetField) MarshalJSON ¶

func (obj TimeSetField) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type TrackingData ¶

type TrackingData struct {
	TrackingId          *string `json:"trackingId,omitempty"`
	Carrier             *string `json:"carrier,omitempty"`
	Provider            *string `json:"provider,omitempty"`
	ProviderTransaction *string `json:"providerTransaction,omitempty"`
	IsReturn            *bool   `json:"isReturn,omitempty"`
}

type TypeKeyReference ¶

type TypeKeyReference struct {
	Key string `json:"key"`
}

* * References a type by key.

func (TypeKeyReference) MarshalJSON ¶

func (obj TypeKeyReference) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

type TypedMoney ¶

type TypedMoney interface{}

type UnresolvedReferences ¶

type UnresolvedReferences struct {
	Key string `json:"key"`
	// The type of the referenced resource.
	TypeId ReferenceType `json:"typeId"`
}

type VariantValues ¶

type VariantValues struct {
	Sku        *string       `json:"sku,omitempty"`
	Prices     []PriceImport `json:"prices"`
	Attributes []Attribute   `json:"attributes"`
}

func (*VariantValues) UnmarshalJSON ¶

func (obj *VariantValues) UnmarshalJSON(data []byte) error

UnmarshalJSON override to deserialize correct attribute types based on the discriminator value

type WhitespaceTokenizer ¶

type WhitespaceTokenizer struct {
}

func (WhitespaceTokenizer) MarshalJSON ¶

func (obj WhitespaceTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override to set the discriminator value or remove optional nil slices

Source Files ¶

Jump to

Keyboard shortcuts

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