Documentation ¶
Index ¶
- Constants
- func GetUserAgent(cfg *ClientConfig) string
- type APIClient
- type APIClientDraft
- type APIClientPagedQueryResponse
- type AccessDeniedError
- type Address
- type AnonymousCartSignInMode
- type Asset
- type AssetDimensions
- type AssetDraft
- type AssetSource
- type Attribute
- type AttributeBooleanType
- type AttributeConstraintEnum
- type AttributeConstraintEnumDraft
- type AttributeDateTimeType
- type AttributeDateType
- type AttributeDefinition
- type AttributeDefinitionDraft
- type AttributeEnumType
- type AttributeLocalizableTextType
- type AttributeLocalizedEnumType
- type AttributeLocalizedEnumValue
- type AttributeMoneyType
- type AttributeNestedType
- type AttributeNumberType
- type AttributePlainEnumValue
- type AttributeReferenceType
- type AttributeSetType
- type AttributeTextType
- type AttributeTimeType
- type AttributeType
- type AttributeValue
- type AzureEventGridDestination
- type AzureServiceBusDestination
- type BaseResource
- type Cart
- type CartAddCustomLineItemAction
- type CartAddDiscountCodeAction
- type CartAddItemShippingAddressAction
- type CartAddLineItemAction
- type CartAddPaymentAction
- type CartAddShoppingListAction
- type CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
- type CartApplyDeltaToLineItemShippingDetailsTargetsAction
- type CartChangeCustomLineItemMoneyAction
- type CartChangeCustomLineItemQuantityAction
- type CartChangeLineItemQuantityAction
- type CartChangeTaxCalculationModeAction
- type CartChangeTaxModeAction
- type CartChangeTaxRoundingModeAction
- type CartClassificationTier
- type CartClassificationType
- type CartDiscount
- type CartDiscountChangeCartPredicateAction
- type CartDiscountChangeIsActiveAction
- type CartDiscountChangeNameAction
- type CartDiscountChangeRequiresDiscountCodeAction
- type CartDiscountChangeSortOrderAction
- type CartDiscountChangeStackingModeAction
- type CartDiscountChangeTargetAction
- type CartDiscountChangeValueAction
- type CartDiscountCustomLineItemsTarget
- type CartDiscountDraft
- type CartDiscountLineItemsTarget
- type CartDiscountPagedQueryResponse
- type CartDiscountReference
- type CartDiscountResourceIdentifier
- type CartDiscountSetCustomFieldAction
- type CartDiscountSetCustomTypeAction
- type CartDiscountSetDescriptionAction
- type CartDiscountSetKeyAction
- type CartDiscountSetValidFromAction
- type CartDiscountSetValidFromAndUntilAction
- type CartDiscountSetValidUntilAction
- type CartDiscountShippingCostTarget
- type CartDiscountTarget
- type CartDiscountUpdate
- type CartDiscountUpdateAction
- type CartDiscountUpdateWithIDInput
- type CartDiscountUpdateWithKeyInput
- type CartDiscountValue
- type CartDiscountValueAbsolute
- type CartDiscountValueAbsoluteDraft
- type CartDiscountValueDraft
- type CartDiscountValueGiftLineItem
- type CartDiscountValueGiftLineItemDraft
- type CartDiscountValueRelative
- type CartDiscountValueRelativeDraft
- type CartDraft
- type CartOrigin
- type CartPagedQueryResponse
- type CartRecalculateAction
- type CartReference
- type CartRemoveCustomLineItemAction
- type CartRemoveDiscountCodeAction
- type CartRemoveItemShippingAddressAction
- type CartRemoveLineItemAction
- type CartRemovePaymentAction
- type CartResourceIdentifier
- type CartScoreTier
- type CartScoreType
- type CartSetAnonymousIDAction
- type CartSetBillingAddressAction
- type CartSetCartTotalTaxAction
- type CartSetCountryAction
- type CartSetCustomFieldAction
- type CartSetCustomLineItemCustomFieldAction
- type CartSetCustomLineItemCustomTypeAction
- type CartSetCustomLineItemShippingDetailsAction
- type CartSetCustomLineItemTaxAmountAction
- type CartSetCustomLineItemTaxRateAction
- type CartSetCustomShippingMethodAction
- type CartSetCustomTypeAction
- type CartSetCustomerEmailAction
- type CartSetCustomerGroupAction
- type CartSetCustomerIDAction
- type CartSetDeleteDaysAfterLastModificationAction
- type CartSetLineItemCustomFieldAction
- type CartSetLineItemCustomTypeAction
- type CartSetLineItemDistributionChannelAction
- type CartSetLineItemPriceAction
- type CartSetLineItemShippingDetailsAction
- type CartSetLineItemTaxAmountAction
- type CartSetLineItemTaxRateAction
- type CartSetLineItemTotalPriceAction
- type CartSetLocaleAction
- type CartSetShippingAddressAction
- type CartSetShippingMethodAction
- type CartSetShippingMethodTaxAmountAction
- type CartSetShippingMethodTaxRateAction
- type CartSetShippingRateInputAction
- type CartState
- type CartUpdate
- type CartUpdateAction
- type CartUpdateItemShippingAddressAction
- type CartUpdateWithIDInput
- type CartValueTier
- type CartValueType
- type CartsConfiguration
- type Category
- type CategoryAddAssetAction
- type CategoryChangeAssetNameAction
- type CategoryChangeAssetOrderAction
- type CategoryChangeNameAction
- type CategoryChangeOrderHintAction
- type CategoryChangeParentAction
- type CategoryChangeSlugAction
- type CategoryCreatedMessage
- type CategoryCreatedMessagePayload
- type CategoryDraft
- type CategoryOrderHints
- type CategoryPagedQueryResponse
- type CategoryReference
- type CategoryRemoveAssetAction
- type CategoryResourceIdentifier
- type CategorySetAssetCustomFieldAction
- type CategorySetAssetCustomTypeAction
- type CategorySetAssetDescriptionAction
- type CategorySetAssetKeyAction
- type CategorySetAssetSourcesAction
- type CategorySetAssetTagsAction
- type CategorySetCustomFieldAction
- type CategorySetCustomTypeAction
- type CategorySetDescriptionAction
- type CategorySetExternalIDAction
- type CategorySetKeyAction
- type CategorySetMetaDescriptionAction
- type CategorySetMetaKeywordsAction
- type CategorySetMetaTitleAction
- type CategorySlugChangedMessage
- type CategorySlugChangedMessagePayload
- type CategoryUpdate
- type CategoryUpdateAction
- type CategoryUpdateWithIDInput
- type CategoryUpdateWithKeyInput
- type CentPrecisionMoney
- type CentPrecisionMoneyDraft
- type ChangeSubscription
- type Channel
- type ChannelAddRolesAction
- type ChannelChangeDescriptionAction
- type ChannelChangeKeyAction
- type ChannelChangeNameAction
- type ChannelDraft
- type ChannelPagedQueryResponse
- type ChannelReference
- type ChannelRemoveRolesAction
- type ChannelResourceIdentifier
- type ChannelRoleEnum
- type ChannelSetAddressAction
- type ChannelSetCustomFieldAction
- type ChannelSetCustomTypeAction
- type ChannelSetGeoLocationAction
- type ChannelSetRolesAction
- type ChannelUpdate
- type ChannelUpdateAction
- type ChannelUpdateWithIDInput
- type ClassificationShippingRateInput
- type ClassificationShippingRateInputDraft
- type Client
- func (client *Client) APIClientCreate(ctx context.Context, draft *APIClientDraft, opts ...RequestOption) (result *APIClient, err error)
- func (client *Client) APIClientDeleteWithID(ctx context.Context, id string, opts ...RequestOption) (result *APIClient, err error)
- func (client *Client) APIClientGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *APIClient, err error)
- func (client *Client) APIClientQuery(ctx context.Context, input *QueryInput) (result *APIClientPagedQueryResponse, err error)
- func (client *Client) CartCreate(ctx context.Context, draft *CartDraft, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) CartDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, ...) (result *Cart, err error)
- func (client *Client) CartDiscountCreate(ctx context.Context, draft *CartDiscountDraft, opts ...RequestOption) (result *CartDiscount, err error)
- func (client *Client) CartDiscountDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *CartDiscount, err error)
- func (client *Client) CartDiscountDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *CartDiscount, err error)
- func (client *Client) CartDiscountGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *CartDiscount, err error)
- func (client *Client) CartDiscountGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *CartDiscount, err error)
- func (client *Client) CartDiscountQuery(ctx context.Context, input *QueryInput) (result *CartDiscountPagedQueryResponse, err error)
- func (client *Client) CartDiscountUpdateWithID(ctx context.Context, input *CartDiscountUpdateWithIDInput, ...) (result *CartDiscount, err error)
- func (client *Client) CartDiscountUpdateWithKey(ctx context.Context, input *CartDiscountUpdateWithKeyInput, ...) (result *CartDiscount, err error)
- func (client *Client) CartGetWithCustomerID(ctx context.Context, customerId string, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) CartGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) CartQuery(ctx context.Context, input *QueryInput) (result *CartPagedQueryResponse, err error)
- func (client *Client) CartReplicate(ctx context.Context, value *ReplicaCartDraft, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) CartUpdateWithID(ctx context.Context, input *CartUpdateWithIDInput, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) CategoryCreate(ctx context.Context, draft *CategoryDraft, opts ...RequestOption) (result *Category, err error)
- func (client *Client) CategoryDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Category, err error)
- func (client *Client) CategoryDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Category, err error)
- func (client *Client) CategoryGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Category, err error)
- func (client *Client) CategoryGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Category, err error)
- func (client *Client) CategoryQuery(ctx context.Context, input *QueryInput) (result *CategoryPagedQueryResponse, err error)
- func (client *Client) CategoryUpdateWithID(ctx context.Context, input *CategoryUpdateWithIDInput, opts ...RequestOption) (result *Category, err error)
- func (client *Client) CategoryUpdateWithKey(ctx context.Context, input *CategoryUpdateWithKeyInput, opts ...RequestOption) (result *Category, err error)
- func (client *Client) ChannelCreate(ctx context.Context, draft *ChannelDraft, opts ...RequestOption) (result *Channel, err error)
- func (client *Client) ChannelDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Channel, err error)
- func (client *Client) ChannelGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Channel, err error)
- func (client *Client) ChannelQuery(ctx context.Context, input *QueryInput) (result *ChannelPagedQueryResponse, err error)
- func (client *Client) ChannelUpdateWithID(ctx context.Context, input *ChannelUpdateWithIDInput, opts ...RequestOption) (result *Channel, err error)
- func (client *Client) CustomObjectCreate(ctx context.Context, draft *CustomObjectDraft, opts ...RequestOption) (result *CustomObject, err error)
- func (client *Client) CustomObjectDeleteWithContainerAndKey(ctx context.Context, container string, key string, version int, ...) (result *CustomObject, err error)
- func (client *Client) CustomObjectGetWithContainer(ctx context.Context, container string, opts ...RequestOption) (result *CustomObject, err error)
- func (client *Client) CustomObjectGetWithContainerAndKey(ctx context.Context, container string, key string, opts ...RequestOption) (result *CustomObject, err error)
- func (client *Client) CustomObjectQuery(ctx context.Context, input *QueryInput) (result *CustomObjectPagedQueryResponse, err error)
- func (client *Client) CustomerCreate(ctx context.Context, draft *CustomerDraft, opts ...RequestOption) (result *CustomerCreatedResponse, err error)
- func (client *Client) CustomerDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, ...) (result *Customer, err error)
- func (client *Client) CustomerDeleteWithKey(ctx context.Context, key string, version int, dataErasure bool, ...) (result *Customer, err error)
- func (client *Client) CustomerEmailToken(ctx context.Context, value *CustomerCreateEmailToken, opts ...RequestOption) (result *CustomerToken, err error)
- func (client *Client) CustomerEmailconfirm(ctx context.Context, value *CustomerEmailVerify, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) CustomerGetWithEmailToken(ctx context.Context, emailToken string, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) CustomerGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) CustomerGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) CustomerGetWithPasswordToken(ctx context.Context, passwordToken string, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) CustomerGroupCreate(ctx context.Context, draft *CustomerGroupDraft, opts ...RequestOption) (result *CustomerGroup, err error)
- func (client *Client) CustomerGroupDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *CustomerGroup, err error)
- func (client *Client) CustomerGroupDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *CustomerGroup, err error)
- func (client *Client) CustomerGroupGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *CustomerGroup, err error)
- func (client *Client) CustomerGroupGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *CustomerGroup, err error)
- func (client *Client) CustomerGroupQuery(ctx context.Context, input *QueryInput) (result *CustomerGroupPagedQueryResponse, err error)
- func (client *Client) CustomerGroupUpdateWithID(ctx context.Context, input *CustomerGroupUpdateWithIDInput, ...) (result *CustomerGroup, err error)
- func (client *Client) CustomerGroupUpdateWithKey(ctx context.Context, input *CustomerGroupUpdateWithKeyInput, ...) (result *CustomerGroup, err error)
- func (client *Client) CustomerPassword(ctx context.Context, value *CustomerChangePassword, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) CustomerPasswordToken(ctx context.Context, value *CustomerCreatePasswordResetToken, ...) (result *CustomerToken, err error)
- func (client *Client) CustomerPasswordreset(ctx context.Context, value *CustomerResetPassword, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) CustomerQuery(ctx context.Context, input *QueryInput) (result *CustomerPagedQueryResponse, err error)
- func (client *Client) CustomerUpdateWithID(ctx context.Context, input *CustomerUpdateWithIDInput, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) CustomerUpdateWithKey(ctx context.Context, input *CustomerUpdateWithKeyInput, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) DiscountCodeCreate(ctx context.Context, draft *DiscountCodeDraft, opts ...RequestOption) (result *DiscountCode, err error)
- func (client *Client) DiscountCodeDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, ...) (result *DiscountCode, err error)
- func (client *Client) DiscountCodeGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *DiscountCode, err error)
- func (client *Client) DiscountCodeQuery(ctx context.Context, input *QueryInput) (result *DiscountCodePagedQueryResponse, err error)
- func (client *Client) DiscountCodeUpdateWithID(ctx context.Context, input *DiscountCodeUpdateWithIDInput, ...) (result *DiscountCode, err error)
- func (c *Client) Endpoints() ClientEndpoints
- func (client *Client) ExtensionCreate(ctx context.Context, draft *ExtensionDraft, opts ...RequestOption) (result *Extension, err error)
- func (client *Client) ExtensionDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Extension, err error)
- func (client *Client) ExtensionDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Extension, err error)
- func (client *Client) ExtensionGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Extension, err error)
- func (client *Client) ExtensionGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Extension, err error)
- func (client *Client) ExtensionQuery(ctx context.Context, input *QueryInput) (result *ExtensionPagedQueryResponse, err error)
- func (client *Client) ExtensionUpdateWithID(ctx context.Context, input *ExtensionUpdateWithIDInput, opts ...RequestOption) (result *Extension, err error)
- func (client *Client) ExtensionUpdateWithKey(ctx context.Context, input *ExtensionUpdateWithKeyInput, opts ...RequestOption) (result *Extension, err error)
- func (client *Client) InventoryEntryCreate(ctx context.Context, draft *InventoryEntryDraft, opts ...RequestOption) (result *InventoryEntry, err error)
- func (client *Client) InventoryEntryDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *InventoryEntry, err error)
- func (client *Client) InventoryEntryGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *InventoryEntry, err error)
- func (client *Client) InventoryEntryQuery(ctx context.Context, input *QueryInput) (result *InventoryPagedQueryResponse, err error)
- func (client *Client) InventoryEntryUpdateWithID(ctx context.Context, input *InventoryEntryUpdateWithIDInput, ...) (result *InventoryEntry, err error)
- func (client *Client) Login(ctx context.Context, value *CustomerSignin, opts ...RequestOption) (result *CustomerSignInResult, err error)
- func (client *Client) MessageGetWithID(ctx context.Context, id string, opts ...RequestOption) (result Message, err error)
- func (client *Client) MessageQuery(ctx context.Context, input *QueryInput) (result *MessagePagedQueryResponse, err error)
- func (client *Client) MyActiveCart(ctx context.Context, opts ...RequestOption) (result *MyCart, err error)
- func (client *Client) MyCartCreate(ctx context.Context, draft *MyCartDraft, opts ...RequestOption) (result *MyCart, err error)
- func (client *Client) MyCartDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *MyCart, err error)
- func (client *Client) MyCartGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *MyCart, err error)
- func (client *Client) MyCartQuery(ctx context.Context, input *QueryInput) (result *CartPagedQueryResponse, err error)
- func (client *Client) MyCartUpdateWithID(ctx context.Context, input *MyCartUpdateWithIDInput, opts ...RequestOption) (result *MyCart, err error)
- func (client *Client) MyLogin(ctx context.Context, opts ...RequestOption) (result *CustomerSignInResult, err error)
- func (client *Client) MyOrderCreate(ctx context.Context, draft *MyOrderFromCartDraft, opts ...RequestOption) (result *MyOrder, err error)
- func (client *Client) MyOrderGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *MyOrder, err error)
- func (client *Client) MyOrderQuery(ctx context.Context, input *QueryInput) (result *OrderPagedQueryResponse, err error)
- func (client *Client) MyPaymentCreate(ctx context.Context, draft *MyPaymentDraft, opts ...RequestOption) (result *MyPayment, err error)
- func (client *Client) MyPaymentDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *MyPayment, err error)
- func (client *Client) MyPaymentDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *MyPayment, err error)
- func (client *Client) MyPaymentGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *MyPayment, err error)
- func (client *Client) MyPaymentGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *MyPayment, err error)
- func (client *Client) MyPaymentQuery(ctx context.Context, input *QueryInput) (result *MyPaymentPagedQueryResponse, err error)
- func (client *Client) MyPaymentUpdateWithID(ctx context.Context, input *MyPaymentUpdateWithIDInput, opts ...RequestOption) (result *MyPayment, err error)
- func (client *Client) MyPaymentUpdateWithKey(ctx context.Context, input *MyPaymentUpdateWithKeyInput, opts ...RequestOption) (result *MyPayment, err error)
- func (client *Client) MyReset(ctx context.Context, opts ...RequestOption) (result *MyCustomer, err error)
- func (client *Client) MyShoppingListCreate(ctx context.Context, draft *MyShoppingListDraft, opts ...RequestOption) (result *MyShoppingList, err error)
- func (client *Client) MyShoppingListDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *MyShoppingList, err error)
- func (client *Client) MyShoppingListDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *MyShoppingList, err error)
- func (client *Client) MyShoppingListGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *MyShoppingList, err error)
- func (client *Client) MyShoppingListGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *MyShoppingList, err error)
- func (client *Client) MyShoppingListQuery(ctx context.Context, input *QueryInput) (result *ShoppingListPagedQueryResponse, err error)
- func (client *Client) MyShoppingListUpdateWithID(ctx context.Context, input *MyShoppingListUpdateWithIDInput, ...) (result *MyShoppingList, err error)
- func (client *Client) MyShoppingListUpdateWithKey(ctx context.Context, input *MyShoppingListUpdateWithKeyInput, ...) (result *MyShoppingList, err error)
- func (client *Client) MySignup(ctx context.Context, value *MyCustomerDraft, opts ...RequestOption) (result *CustomerSignInResult, err error)
- func (client *Client) NewGraphQLQuery(query string) *GraphQLQuery
- func (client *Client) OrderCreate(ctx context.Context, draft *OrderFromCartDraft, opts ...RequestOption) (result *Order, err error)
- func (client *Client) OrderDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, ...) (result *Order, err error)
- func (client *Client) OrderDeleteWithOrderNumber(ctx context.Context, orderNumber string, version int, dataErasure bool, ...) (result *Order, err error)
- func (client *Client) OrderEditApply(ctx context.Context, value *OrderEditApply, opts ...RequestOption) (result *OrderEdit, err error)
- func (client *Client) OrderEditCreate(ctx context.Context, draft *OrderEditDraft, opts ...RequestOption) (result *OrderEdit, err error)
- func (client *Client) OrderEditDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *OrderEdit, err error)
- func (client *Client) OrderEditDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *OrderEdit, err error)
- func (client *Client) OrderEditGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *OrderEdit, err error)
- func (client *Client) OrderEditGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *OrderEdit, err error)
- func (client *Client) OrderEditQuery(ctx context.Context, input *QueryInput) (result *OrderEditPagedQueryResponse, err error)
- func (client *Client) OrderEditUpdateWithID(ctx context.Context, input *OrderEditUpdateWithIDInput, opts ...RequestOption) (result *OrderEdit, err error)
- func (client *Client) OrderEditUpdateWithKey(ctx context.Context, input *OrderEditUpdateWithKeyInput, opts ...RequestOption) (result *OrderEdit, err error)
- func (client *Client) OrderGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Order, err error)
- func (client *Client) OrderGetWithOrderNumber(ctx context.Context, orderNumber string, opts ...RequestOption) (result *Order, err error)
- func (client *Client) OrderImport(ctx context.Context, value *OrderImportDraft, opts ...RequestOption) (result *Order, err error)
- func (client *Client) OrderQuery(ctx context.Context, input *QueryInput) (result *OrderPagedQueryResponse, err error)
- func (client *Client) OrderUpdateWithID(ctx context.Context, input *OrderUpdateWithIDInput, opts ...RequestOption) (result *Order, err error)
- func (client *Client) OrderUpdateWithOrderNumber(ctx context.Context, input *OrderUpdateWithOrderNumberInput, ...) (result *Order, err error)
- func (client *Client) PaymentCreate(ctx context.Context, draft *PaymentDraft, opts ...RequestOption) (result *Payment, err error)
- func (client *Client) PaymentDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, ...) (result *Payment, err error)
- func (client *Client) PaymentDeleteWithKey(ctx context.Context, key string, version int, dataErasure bool, ...) (result *Payment, err error)
- func (client *Client) PaymentGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Payment, err error)
- func (client *Client) PaymentGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Payment, err error)
- func (client *Client) PaymentQuery(ctx context.Context, input *QueryInput) (result *PaymentPagedQueryResponse, err error)
- func (client *Client) PaymentUpdateWithID(ctx context.Context, input *PaymentUpdateWithIDInput, opts ...RequestOption) (result *Payment, err error)
- func (client *Client) PaymentUpdateWithKey(ctx context.Context, input *PaymentUpdateWithKeyInput, opts ...RequestOption) (result *Payment, err error)
- func (client *Client) ProductCreate(ctx context.Context, draft *ProductDraft, opts ...RequestOption) (result *Product, err error)
- func (client *Client) ProductDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Product, err error)
- func (client *Client) ProductDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Product, err error)
- func (client *Client) ProductDiscountCreate(ctx context.Context, draft *ProductDiscountDraft, opts ...RequestOption) (result *ProductDiscount, err error)
- func (client *Client) ProductDiscountDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *ProductDiscount, err error)
- func (client *Client) ProductDiscountDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *ProductDiscount, err error)
- func (client *Client) ProductDiscountGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ProductDiscount, err error)
- func (client *Client) ProductDiscountGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ProductDiscount, err error)
- func (client *Client) ProductDiscountMatching(ctx context.Context, value *ProductDiscountMatchQuery, opts ...RequestOption) (result *ProductDiscount, err error)
- func (client *Client) ProductDiscountQuery(ctx context.Context, input *QueryInput) (result *ProductDiscountPagedQueryResponse, err error)
- func (client *Client) ProductDiscountUpdateWithID(ctx context.Context, input *ProductDiscountUpdateWithIDInput, ...) (result *ProductDiscount, err error)
- func (client *Client) ProductDiscountUpdateWithKey(ctx context.Context, input *ProductDiscountUpdateWithKeyInput, ...) (result *ProductDiscount, err error)
- func (client *Client) ProductGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Product, err error)
- func (client *Client) ProductGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Product, err error)
- func (client *Client) ProductImages(ctx context.Context, value *ProductImagesInput, opts ...RequestOption) (result *Product, err error)
- func (client *Client) ProductProjectionGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ProductProjection, err error)
- func (client *Client) ProductProjectionGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ProductProjection, err error)
- func (client *Client) ProductProjectionQuery(ctx context.Context, input *QueryInput) (result *ProductProjectionPagedQueryResponse, err error)
- func (client *Client) ProductProjectionSearch(ctx context.Context, value *ProductProjectionSearchInput, ...) (result *ProductProjectionPagedSearchResponse, err error)
- func (client *Client) ProductProjectionSuggest(ctx context.Context, value *ProductProjectionSuggestInput, ...) (result *ProductProjection, err error)
- func (client *Client) ProductQuery(ctx context.Context, input *QueryInput) (result *ProductPagedQueryResponse, err error)
- func (client *Client) ProductTypeCreate(ctx context.Context, draft *ProductTypeDraft, opts ...RequestOption) (result *ProductType, err error)
- func (client *Client) ProductTypeDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *ProductType, err error)
- func (client *Client) ProductTypeDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *ProductType, err error)
- func (client *Client) ProductTypeGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ProductType, err error)
- func (client *Client) ProductTypeGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ProductType, err error)
- func (client *Client) ProductTypeQuery(ctx context.Context, input *QueryInput) (result *ProductTypePagedQueryResponse, err error)
- func (client *Client) ProductTypeUpdateWithID(ctx context.Context, input *ProductTypeUpdateWithIDInput, ...) (result *ProductType, err error)
- func (client *Client) ProductTypeUpdateWithKey(ctx context.Context, input *ProductTypeUpdateWithKeyInput, ...) (result *ProductType, err error)
- func (client *Client) ProductUpdateWithID(ctx context.Context, input *ProductUpdateWithIDInput, opts ...RequestOption) (result *Product, err error)
- func (client *Client) ProductUpdateWithKey(ctx context.Context, input *ProductUpdateWithKeyInput, opts ...RequestOption) (result *Product, err error)
- func (client *Client) ProjectGet() (result *Project, err error)
- func (c *Client) ProjectKey() string
- func (client *Client) ProjectUpdate(input *ProjectUpdateInput) (result *Project, err error)
- func (client *Client) ReviewCreate(ctx context.Context, draft *ReviewDraft, opts ...RequestOption) (result *Review, err error)
- func (client *Client) ReviewDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, ...) (result *Review, err error)
- func (client *Client) ReviewDeleteWithKey(ctx context.Context, key string, version int, dataErasure bool, ...) (result *Review, err error)
- func (client *Client) ReviewGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Review, err error)
- func (client *Client) ReviewGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Review, err error)
- func (client *Client) ReviewQuery(ctx context.Context, input *QueryInput) (result *ReviewPagedQueryResponse, err error)
- func (client *Client) ReviewUpdateWithID(ctx context.Context, input *ReviewUpdateWithIDInput, opts ...RequestOption) (result *Review, err error)
- func (client *Client) ReviewUpdateWithKey(ctx context.Context, input *ReviewUpdateWithKeyInput, opts ...RequestOption) (result *Review, err error)
- func (client *Client) ShippingMethodCreate(ctx context.Context, draft *ShippingMethodDraft, opts ...RequestOption) (result *ShippingMethod, err error)
- func (client *Client) ShippingMethodDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *ShippingMethod, err error)
- func (client *Client) ShippingMethodDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *ShippingMethod, err error)
- func (client *Client) ShippingMethodGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ShippingMethod, err error)
- func (client *Client) ShippingMethodGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ShippingMethod, err error)
- func (client *Client) ShippingMethodMatchingCart(ctx context.Context, value *ShippingMethodMatchingCartInput, ...) (result *ShippingMethodPagedQueryResponse, err error)
- func (client *Client) ShippingMethodMatchingLocation(ctx context.Context, value *ShippingMethodMatchingLocationInput, ...) (result *ShippingMethodPagedQueryResponse, err error)
- func (client *Client) ShippingMethodMatchingOrderedit(ctx context.Context, value *ShippingMethodMatchingOrdereditInput, ...) (result *ShippingMethodPagedQueryResponse, err error)
- func (client *Client) ShippingMethodQuery(ctx context.Context, input *QueryInput) (result *ShippingMethodPagedQueryResponse, err error)
- func (client *Client) ShippingMethodUpdateWithID(ctx context.Context, input *ShippingMethodUpdateWithIDInput, ...) (result *ShippingMethod, err error)
- func (client *Client) ShippingMethodUpdateWithKey(ctx context.Context, input *ShippingMethodUpdateWithKeyInput, ...) (result *ShippingMethod, err error)
- func (client *Client) ShoppingListCreate(ctx context.Context, draft *ShoppingListDraft, opts ...RequestOption) (result *ShoppingList, err error)
- func (client *Client) ShoppingListDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, ...) (result *ShoppingList, err error)
- func (client *Client) ShoppingListDeleteWithKey(ctx context.Context, key string, version int, dataErasure bool, ...) (result *ShoppingList, err error)
- func (client *Client) ShoppingListGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ShoppingList, err error)
- func (client *Client) ShoppingListGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ShoppingList, err error)
- func (client *Client) ShoppingListQuery(ctx context.Context, input *QueryInput) (result *ShoppingListPagedQueryResponse, err error)
- func (client *Client) ShoppingListUpdateWithID(ctx context.Context, input *ShoppingListUpdateWithIDInput, ...) (result *ShoppingList, err error)
- func (client *Client) ShoppingListUpdateWithKey(ctx context.Context, input *ShoppingListUpdateWithKeyInput, ...) (result *ShoppingList, err error)
- func (client *Client) StateCreate(ctx context.Context, draft *StateDraft, opts ...RequestOption) (result *State, err error)
- func (client *Client) StateDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *State, err error)
- func (client *Client) StateDeleteWithKey(ctx context.Context, Key string, version int, opts ...RequestOption) (result *State, err error)
- func (client *Client) StateGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *State, err error)
- func (client *Client) StateGetWithKey(ctx context.Context, Key string, opts ...RequestOption) (result *State, err error)
- func (client *Client) StateQuery(ctx context.Context, input *QueryInput) (result *StatePagedQueryResponse, err error)
- func (client *Client) StateUpdateWithID(ctx context.Context, input *StateUpdateWithIDInput, opts ...RequestOption) (result *State, err error)
- func (client *Client) StateUpdateWithKey(ctx context.Context, input *StateUpdateWithKeyInput, opts ...RequestOption) (result *State, err error)
- func (client *Client) StoreCartCreate(ctx context.Context, storeKey string, draft *CartDraft, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) StoreCartDeleteWithID(ctx context.Context, storeKey string, id string, version int, dataErasure bool, ...) (result *Cart, err error)
- func (client *Client) StoreCartGetWithCustomerID(ctx context.Context, storeKey string, customerId string, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) StoreCartGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) StoreCartQuery(ctx context.Context, storeKey string, input *QueryInput) (result *CartPagedQueryResponse, err error)
- func (client *Client) StoreCartUpdateWithID(ctx context.Context, storeKey string, input *StoreCartUpdateWithIDInput, ...) (result *Cart, err error)
- func (client *Client) StoreCreate(ctx context.Context, draft *StoreDraft, opts ...RequestOption) (result *Store, err error)
- func (client *Client) StoreCustomerCreate(ctx context.Context, storeKey string, draft *CustomerDraft, ...) (result *Customer, err error)
- func (client *Client) StoreCustomerDeleteWithID(ctx context.Context, storeKey string, id string, version int, dataErasure bool, ...) (result *Customer, err error)
- func (client *Client) StoreCustomerDeleteWithKey(ctx context.Context, storeKey string, key string, version int, ...) (result *Customer, err error)
- func (client *Client) StoreCustomerEmailToken(ctx context.Context, storeKey string, value *CustomerCreateEmailToken, ...) (result *CustomerToken, err error)
- func (client *Client) StoreCustomerEmailconfirm(ctx context.Context, storeKey string, value *CustomerEmailVerify, ...) (result *Customer, err error)
- func (client *Client) StoreCustomerGetWithEmailToken(ctx context.Context, storeKey string, emailToken string, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) StoreCustomerGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) StoreCustomerGetWithKey(ctx context.Context, storeKey string, key string, opts ...RequestOption) (result *Customer, err error)
- func (client *Client) StoreCustomerGetWithPasswordToken(ctx context.Context, storeKey string, passwordToken string, ...) (result *Customer, err error)
- func (client *Client) StoreCustomerPassword(ctx context.Context, storeKey string, value *CustomerChangePassword, ...) (result *Customer, err error)
- func (client *Client) StoreCustomerPasswordToken(ctx context.Context, storeKey string, value *CustomerCreatePasswordResetToken, ...) (result *CustomerToken, err error)
- func (client *Client) StoreCustomerPasswordreset(ctx context.Context, storeKey string, value *CustomerResetPassword, ...) (result *Customer, err error)
- func (client *Client) StoreCustomerQuery(ctx context.Context, storeKey string, input *QueryInput) (result *CustomerPagedQueryResponse, err error)
- func (client *Client) StoreCustomerUpdateWithID(ctx context.Context, storeKey string, input *StoreCustomerUpdateWithIDInput, ...) (result *Customer, err error)
- func (client *Client) StoreCustomerUpdateWithKey(ctx context.Context, storeKey string, input *StoreCustomerUpdateWithKeyInput, ...) (result *Customer, err error)
- func (client *Client) StoreDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Store, err error)
- func (client *Client) StoreDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Store, err error)
- func (client *Client) StoreGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Store, err error)
- func (client *Client) StoreGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Store, err error)
- func (client *Client) StoreLogin(ctx context.Context, storeKey string, value *CustomerSignin, ...) (result *CustomerSignInResult, err error)
- func (client *Client) StoreMyActiveCart(ctx context.Context, storeKey string, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) StoreMyCartCreate(ctx context.Context, storeKey string, draft *MyCartDraft, ...) (result *Cart, err error)
- func (client *Client) StoreMyCartDeleteWithID(ctx context.Context, storeKey string, id string, version int, ...) (result *Cart, err error)
- func (client *Client) StoreMyCartGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Cart, err error)
- func (client *Client) StoreMyCartQuery(ctx context.Context, storeKey string, input *QueryInput) (result *CartPagedQueryResponse, err error)
- func (client *Client) StoreMyCartUpdateWithID(ctx context.Context, storeKey string, input *StoreMyCartUpdateWithIDInput, ...) (result *Cart, err error)
- func (client *Client) StoreMyOrderCreate(ctx context.Context, storeKey string, draft *MyOrderFromCartDraft, ...) (result *Order, err error)
- func (client *Client) StoreMyOrderGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Order, err error)
- func (client *Client) StoreMyOrderQuery(ctx context.Context, storeKey string, input *QueryInput) (result *OrderPagedQueryResponse, err error)
- func (client *Client) StoreOrderCreate(ctx context.Context, storeKey string, draft *OrderFromCartDraft, ...) (result *Order, err error)
- func (client *Client) StoreOrderDeleteWithID(ctx context.Context, storeKey string, id string, version int, dataErasure bool, ...) (result *Order, err error)
- func (client *Client) StoreOrderDeleteWithOrderNumber(ctx context.Context, storeKey string, orderNumber string, version int, ...) (result *Order, err error)
- func (client *Client) StoreOrderGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Order, err error)
- func (client *Client) StoreOrderGetWithOrderNumber(ctx context.Context, storeKey string, orderNumber string, ...) (result *Order, err error)
- func (client *Client) StoreOrderQuery(ctx context.Context, storeKey string, input *QueryInput) (result *OrderPagedQueryResponse, err error)
- func (client *Client) StoreOrderUpdateWithID(ctx context.Context, storeKey string, input *StoreOrderUpdateWithIDInput, ...) (result *Order, err error)
- func (client *Client) StoreOrderUpdateWithOrderNumber(ctx context.Context, storeKey string, ...) (result *Order, err error)
- func (client *Client) StoreQuery(ctx context.Context, input *QueryInput) (result *StorePagedQueryResponse, err error)
- func (client *Client) StoreShippingMethodsForMatchingCart(ctx context.Context, storeKey string, ...) (result *ShippingMethodPagedQueryResponse, err error)
- func (client *Client) StoreUpdateWithID(ctx context.Context, input *StoreUpdateWithIDInput, opts ...RequestOption) (result *Store, err error)
- func (client *Client) StoreUpdateWithKey(ctx context.Context, input *StoreUpdateWithKeyInput, opts ...RequestOption) (result *Store, err error)
- func (client *Client) SubscriptionCreate(ctx context.Context, draft *SubscriptionDraft, opts ...RequestOption) (result *Subscription, err error)
- func (client *Client) SubscriptionDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Subscription, err error)
- func (client *Client) SubscriptionDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Subscription, err error)
- func (client *Client) SubscriptionGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Subscription, err error)
- func (client *Client) SubscriptionGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Subscription, err error)
- func (client *Client) SubscriptionQuery(ctx context.Context, input *QueryInput) (result *SubscriptionPagedQueryResponse, err error)
- func (client *Client) SubscriptionUpdateWithID(ctx context.Context, input *SubscriptionUpdateWithIDInput, ...) (result *Subscription, err error)
- func (client *Client) SubscriptionUpdateWithKey(ctx context.Context, input *SubscriptionUpdateWithKeyInput, ...) (result *Subscription, err error)
- func (client *Client) TaxCategoryCreate(ctx context.Context, draft *TaxCategoryDraft, opts ...RequestOption) (result *TaxCategory, err error)
- func (client *Client) TaxCategoryDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *TaxCategory, err error)
- func (client *Client) TaxCategoryDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *TaxCategory, err error)
- func (client *Client) TaxCategoryGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *TaxCategory, err error)
- func (client *Client) TaxCategoryGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *TaxCategory, err error)
- func (client *Client) TaxCategoryQuery(ctx context.Context, input *QueryInput) (result *TaxCategoryPagedQueryResponse, err error)
- func (client *Client) TaxCategoryUpdateWithID(ctx context.Context, input *TaxCategoryUpdateWithIDInput, ...) (result *TaxCategory, err error)
- func (client *Client) TaxCategoryUpdateWithKey(ctx context.Context, input *TaxCategoryUpdateWithKeyInput, ...) (result *TaxCategory, err error)
- func (client *Client) TypeCreate(ctx context.Context, draft *TypeDraft, opts ...RequestOption) (result *Type, err error)
- func (client *Client) TypeDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Type, err error)
- func (client *Client) TypeDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Type, err error)
- func (client *Client) TypeGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Type, err error)
- func (client *Client) TypeGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Type, err error)
- func (client *Client) TypeQuery(ctx context.Context, input *QueryInput) (result *TypePagedQueryResponse, err error)
- func (client *Client) TypeUpdateWithID(ctx context.Context, input *TypeUpdateWithIDInput, opts ...RequestOption) (result *Type, err error)
- func (client *Client) TypeUpdateWithKey(ctx context.Context, input *TypeUpdateWithKeyInput, opts ...RequestOption) (result *Type, err error)
- func (client *Client) ZoneCreate(ctx context.Context, draft *ZoneDraft, opts ...RequestOption) (result *Zone, err error)
- func (client *Client) ZoneDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Zone, err error)
- func (client *Client) ZoneDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Zone, err error)
- func (client *Client) ZoneGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Zone, err error)
- func (client *Client) ZoneGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Zone, err error)
- func (client *Client) ZoneQuery(ctx context.Context, input *QueryInput) (result *ZonePagedQueryResponse, err error)
- func (client *Client) ZoneUpdateWithID(ctx context.Context, input *ZoneUpdateWithIDInput, opts ...RequestOption) (result *Zone, err error)
- func (client *Client) ZoneUpdateWithKey(ctx context.Context, input *ZoneUpdateWithKeyInput, opts ...RequestOption) (result *Zone, err error)
- type ClientConfig
- type ClientCredentials
- type ClientEndpoints
- type ClientLogging
- type ConcurrentModificationError
- type Config
- type CountryCode
- type CreatedBy
- type CurrencyCode
- type CustomFieldBooleanType
- type CustomFieldDateTimeType
- type CustomFieldDateType
- type CustomFieldEnumType
- type CustomFieldEnumValue
- type CustomFieldLocalizedEnumType
- type CustomFieldLocalizedEnumValue
- type CustomFieldLocalizedStringType
- type CustomFieldMoneyType
- type CustomFieldNumberType
- type CustomFieldReferenceType
- type CustomFieldSetType
- type CustomFieldStringType
- type CustomFieldTimeType
- type CustomFields
- type CustomFieldsDraft
- type CustomLineItem
- type CustomLineItemDraft
- type CustomLineItemReturnItem
- type CustomLineItemStateTransitionMessage
- type CustomLineItemStateTransitionMessagePayload
- type CustomObject
- type CustomObjectDraft
- type CustomObjectPagedQueryResponse
- type CustomObjectReference
- type CustomTokenizer
- type Customer
- type CustomerAddAddressAction
- type CustomerAddBillingAddressIDAction
- type CustomerAddShippingAddressIDAction
- type CustomerAddStoreAction
- type CustomerAddressAddedMessage
- type CustomerAddressAddedMessagePayload
- type CustomerAddressChangedMessage
- type CustomerAddressChangedMessagePayload
- type CustomerAddressRemovedMessage
- type CustomerAddressRemovedMessagePayload
- type CustomerChangeAddressAction
- type CustomerChangeEmailAction
- type CustomerChangePassword
- type CustomerCompanyNameSetMessage
- type CustomerCompanyNameSetMessagePayload
- type CustomerCreateEmailToken
- type CustomerCreatePasswordResetToken
- type CustomerCreatedMessage
- type CustomerCreatedMessagePayload
- type CustomerCreatedResponse
- type CustomerDateOfBirthSetMessage
- type CustomerDateOfBirthSetMessagePayload
- type CustomerDraft
- type CustomerEmailChangedMessage
- type CustomerEmailChangedMessagePayload
- type CustomerEmailVerifiedMessage
- type CustomerEmailVerifiedMessagePayload
- type CustomerEmailVerify
- type CustomerGroup
- type CustomerGroupChangeNameAction
- type CustomerGroupDraft
- type CustomerGroupPagedQueryResponse
- type CustomerGroupReference
- type CustomerGroupResourceIdentifier
- type CustomerGroupSetCustomFieldAction
- type CustomerGroupSetCustomTypeAction
- type CustomerGroupSetKeyAction
- type CustomerGroupSetMessage
- type CustomerGroupSetMessagePayload
- type CustomerGroupUpdate
- type CustomerGroupUpdateAction
- type CustomerGroupUpdateWithIDInput
- type CustomerGroupUpdateWithKeyInput
- type CustomerPagedQueryResponse
- type CustomerReference
- type CustomerRemoveAddressAction
- type CustomerRemoveBillingAddressIDAction
- type CustomerRemoveShippingAddressIDAction
- type CustomerRemoveStoreAction
- type CustomerResetPassword
- type CustomerResourceIdentifier
- type CustomerResponse
- type CustomerSetCompanyNameAction
- type CustomerSetCustomFieldAction
- type CustomerSetCustomTypeAction
- type CustomerSetCustomerGroupAction
- type CustomerSetCustomerNumberAction
- type CustomerSetDateOfBirthAction
- type CustomerSetDefaultBillingAddressAction
- type CustomerSetDefaultShippingAddressAction
- type CustomerSetExternalIDAction
- type CustomerSetFirstNameAction
- type CustomerSetKeyAction
- type CustomerSetLastNameAction
- type CustomerSetLocaleAction
- type CustomerSetMiddleNameAction
- type CustomerSetSalutationAction
- type CustomerSetStoresAction
- type CustomerSetTitleAction
- type CustomerSetVatIDAction
- type CustomerSignInResult
- type CustomerSignin
- type CustomerToken
- type CustomerUpdate
- type CustomerUpdateAction
- type CustomerUpdateWithIDInput
- type CustomerUpdateWithKeyInput
- type Date
- type Delivery
- type DeliveryAddedMessage
- type DeliveryAddedMessagePayload
- type DeliveryAddressSetMessage
- type DeliveryAddressSetMessagePayload
- type DeliveryCloudEventsFormat
- type DeliveryFormat
- type DeliveryItem
- type DeliveryItemsUpdatedMessage
- type DeliveryItemsUpdatedMessagePayload
- type DeliveryPlatformFormat
- type DeliveryRemovedMessage
- type DeliveryRemovedMessagePayload
- type Destination
- type DiscountCode
- type DiscountCodeChangeCartDiscountsAction
- type DiscountCodeChangeGroupsAction
- type DiscountCodeChangeIsActiveAction
- type DiscountCodeDraft
- type DiscountCodeInfo
- type DiscountCodeNonApplicableError
- type DiscountCodePagedQueryResponse
- type DiscountCodeReference
- type DiscountCodeResourceIdentifier
- type DiscountCodeSetCartPredicateAction
- type DiscountCodeSetCustomFieldAction
- type DiscountCodeSetCustomTypeAction
- type DiscountCodeSetDescriptionAction
- type DiscountCodeSetMaxApplicationsAction
- type DiscountCodeSetMaxApplicationsPerCustomerAction
- type DiscountCodeSetNameAction
- type DiscountCodeSetValidFromAction
- type DiscountCodeSetValidFromAndUntilAction
- type DiscountCodeSetValidUntilAction
- type DiscountCodeState
- type DiscountCodeUpdate
- type DiscountCodeUpdateAction
- type DiscountCodeUpdateWithIDInput
- type DiscountedLineItemPortion
- type DiscountedLineItemPrice
- type DiscountedLineItemPriceDraft
- type DiscountedLineItemPriceForQuantity
- type DiscountedPrice
- type DuplicateAttributeValueError
- type DuplicateAttributeValuesError
- type DuplicateFieldError
- type DuplicateFieldWithConflictingResourceError
- type DuplicatePriceScopeError
- type DuplicateVariantValuesError
- type EnumValueIsUsedError
- type ErrorByExtension
- type ErrorObject
- type ErrorResponse
- type Extension
- type ExtensionAWSLambdaDestination
- type ExtensionAction
- type ExtensionAuthorizationHeaderAuthentication
- type ExtensionAzureFunctionsAuthentication
- type ExtensionBadResponseError
- type ExtensionChangeDestinationAction
- type ExtensionChangeTriggersAction
- type ExtensionDestination
- type ExtensionDraft
- type ExtensionHTTPDestination
- type ExtensionHTTPDestinationAuthentication
- type ExtensionInput
- type ExtensionNoResponseError
- type ExtensionPagedQueryResponse
- type ExtensionResourceTypeID
- type ExtensionSetKeyAction
- type ExtensionSetTimeoutInMsAction
- type ExtensionTrigger
- type ExtensionUpdate
- type ExtensionUpdateAction
- type ExtensionUpdateActionsFailedError
- type ExtensionUpdateWithIDInput
- type ExtensionUpdateWithKeyInput
- type ExternalLineItemTotalPrice
- type ExternalOAuth
- type ExternalTaxAmountDraft
- type ExternalTaxRateDraft
- type FacetResult
- type FacetResultRange
- type FacetResultTerm
- type FacetResults
- type FacetTypes
- type FieldContainer
- type FieldDefinition
- type FieldType
- type FilteredFacetResult
- type GeoJSON
- type GeoJSONPoint
- type GoogleCloudPubSubDestination
- type GraphQLError
- type GraphQLErrorLocation
- type GraphQLOption
- type GraphQLQuery
- type GraphQLRequest
- type GraphQLResponse
- type GraphQLVariablesMap
- type HighPrecisionMoney
- type HighPrecisionMoneyDraft
- type Image
- type ImageDimensions
- type InsufficientScopeError
- type InvalidCredentialsError
- type InvalidCurrentPasswordError
- type InvalidFieldError
- type InvalidInputError
- type InvalidItemShippingDetailsError
- type InvalidJSONInputError
- type InvalidOperationError
- type InvalidSubjectError
- type InvalidTokenError
- type InventoryEntry
- type InventoryEntryAddQuantityAction
- type InventoryEntryChangeQuantityAction
- type InventoryEntryCreatedMessage
- type InventoryEntryCreatedMessagePayload
- type InventoryEntryDeletedMessage
- type InventoryEntryDeletedMessagePayload
- type InventoryEntryDraft
- type InventoryEntryQuantitySetMessage
- type InventoryEntryQuantitySetMessagePayload
- type InventoryEntryReference
- type InventoryEntryRemoveQuantityAction
- type InventoryEntryResourceIdentifier
- type InventoryEntrySetCustomFieldAction
- type InventoryEntrySetCustomTypeAction
- type InventoryEntrySetExpectedDeliveryAction
- type InventoryEntrySetRestockableInDaysAction
- type InventoryEntrySetSupplyChannelAction
- type InventoryEntryUpdate
- type InventoryEntryUpdateAction
- type InventoryEntryUpdateWithIDInput
- type InventoryMode
- type InventoryPagedQueryResponse
- type IronMqDestination
- type ItemShippingDetails
- type ItemShippingDetailsDraft
- type ItemShippingTarget
- type ItemState
- type KeyReference
- type LanguageUsedInStoresError
- type LastModifiedBy
- type LineItem
- type LineItemDraft
- type LineItemImportDraft
- type LineItemMode
- type LineItemPriceMode
- type LineItemReturnItem
- type LineItemStateTransitionMessage
- type LineItemStateTransitionMessagePayload
- type Locale
- type LocalizedString
- type Location
- type MatchingPriceNotFoundError
- type Message
- type MessageConfiguration
- type MessageConfigurationDraft
- type MessageDelivery
- type MessagePagedQueryResponse
- type MessagePayload
- type MessageSubscription
- type MissingTaxRateForCountryError
- type Money
- type MoneyType
- type MultiBuyCustomLineItemsTarget
- type MultiBuyLineItemsTarget
- type MyCart
- type MyCartAddDiscountCodeAction
- type MyCartAddItemShippingAddressAction
- type MyCartAddLineItemAction
- type MyCartAddPaymentAction
- type MyCartApplyDeltaToLineItemShippingDetailsTargetsAction
- type MyCartChangeLineItemQuantityAction
- type MyCartChangeTaxModeAction
- type MyCartDraft
- type MyCartRecalculateAction
- type MyCartRemoveDiscountCodeAction
- type MyCartRemoveItemShippingAddressAction
- type MyCartRemoveLineItemAction
- type MyCartRemovePaymentAction
- type MyCartSetBillingAddressAction
- type MyCartSetCountryAction
- type MyCartSetCustomFieldAction
- type MyCartSetCustomShippingMethodAction
- type MyCartSetCustomTypeAction
- type MyCartSetDeleteDaysAfterLastModificationAction
- type MyCartSetLineItemCustomFieldAction
- type MyCartSetLineItemCustomTypeAction
- type MyCartSetLineItemDistributionChannelAction
- type MyCartSetLineItemShippingDetailsAction
- type MyCartSetLocaleAction
- type MyCartSetShippingAddressAction
- type MyCartSetShippingMethodAction
- type MyCartUpdateAction
- type MyCartUpdateItemShippingAddressAction
- type MyCartUpdateWithIDInput
- type MyCustomer
- type MyCustomerAddAddressAction
- type MyCustomerAddBillingAddressIDAction
- type MyCustomerAddShippingAddressIDAction
- type MyCustomerChangeAddressAction
- type MyCustomerChangeEmailAction
- type MyCustomerDraft
- type MyCustomerRemoveAddressAction
- type MyCustomerRemoveBillingAddressIDAction
- type MyCustomerRemoveShippingAddressIDAction
- type MyCustomerSetCompanyNameAction
- type MyCustomerSetCustomFieldAction
- type MyCustomerSetCustomTypeAction
- type MyCustomerSetDateOfBirthAction
- type MyCustomerSetDefaultBillingAddressAction
- type MyCustomerSetDefaultShippingAddressAction
- type MyCustomerSetFirstNameAction
- type MyCustomerSetLastNameAction
- type MyCustomerSetLocaleAction
- type MyCustomerSetMiddleNameAction
- type MyCustomerSetSalutationAction
- type MyCustomerSetTitleAction
- type MyCustomerSetVatIDAction
- type MyCustomerUpdateAction
- type MyLineItemDraft
- type MyOrder
- type MyOrderFromCartDraft
- type MyPayment
- type MyPaymentAddTransactionAction
- type MyPaymentChangeAmountPlannedAction
- type MyPaymentDraft
- type MyPaymentPagedQueryResponse
- type MyPaymentSetCustomFieldAction
- type MyPaymentSetMethodInfoInterfaceAction
- type MyPaymentSetMethodInfoMethodAction
- type MyPaymentSetMethodInfoNameAction
- type MyPaymentUpdate
- type MyPaymentUpdateAction
- type MyPaymentUpdateWithIDInput
- type MyPaymentUpdateWithKeyInput
- type MyShoppingList
- type MyShoppingListAddLineItemAction
- type MyShoppingListAddTextLineItemAction
- type MyShoppingListChangeLineItemQuantityAction
- type MyShoppingListChangeLineItemsOrderAction
- type MyShoppingListChangeNameAction
- type MyShoppingListChangeTextLineItemNameAction
- type MyShoppingListChangeTextLineItemQuantityAction
- type MyShoppingListChangeTextLineItemsOrderAction
- type MyShoppingListDraft
- type MyShoppingListRemoveLineItemAction
- type MyShoppingListRemoveTextLineItemAction
- type MyShoppingListSetCustomFieldAction
- type MyShoppingListSetCustomTypeAction
- type MyShoppingListSetDeleteDaysAfterLastModificationAction
- type MyShoppingListSetDescriptionAction
- type MyShoppingListSetLineItemCustomFieldAction
- type MyShoppingListSetLineItemCustomTypeAction
- type MyShoppingListSetTextLineItemCustomFieldAction
- type MyShoppingListSetTextLineItemCustomTypeAction
- type MyShoppingListSetTextLineItemDescriptionAction
- type MyShoppingListUpdate
- type MyShoppingListUpdateAction
- type MyShoppingListUpdateWithIDInput
- type MyShoppingListUpdateWithKeyInput
- type MyTransactionDraft
- type NoMatchingProductDiscountFoundError
- type Order
- type OrderAddDeliveryAction
- type OrderAddItemShippingAddressAction
- type OrderAddParcelToDeliveryAction
- type OrderAddPaymentAction
- type OrderAddReturnInfoAction
- type OrderBillingAddressSetMessage
- type OrderBillingAddressSetMessagePayload
- type OrderChangeOrderStateAction
- type OrderChangePaymentStateAction
- type OrderChangeShipmentStateAction
- type OrderCreatedMessage
- type OrderCreatedMessagePayload
- type OrderCustomLineItemDiscountSetMessage
- type OrderCustomLineItemDiscountSetMessagePayload
- type OrderCustomerEmailSetMessage
- type OrderCustomerEmailSetMessagePayload
- type OrderCustomerGroupSetMessage
- type OrderCustomerGroupSetMessagePayload
- type OrderCustomerSetMessage
- type OrderCustomerSetMessagePayload
- type OrderDeletedMessage
- type OrderDeletedMessagePayload
- type OrderDiscountCodeAddedMessage
- type OrderDiscountCodeAddedMessagePayload
- type OrderDiscountCodeRemovedMessage
- type OrderDiscountCodeRemovedMessagePayload
- type OrderDiscountCodeStateSetMessage
- type OrderDiscountCodeStateSetMessagePayload
- type OrderEdit
- type OrderEditAddStagedActionAction
- type OrderEditApplied
- type OrderEditAppliedMessage
- type OrderEditAppliedMessagePayload
- type OrderEditApply
- type OrderEditDraft
- type OrderEditNotProcessed
- type OrderEditPagedQueryResponse
- type OrderEditPreviewFailure
- type OrderEditPreviewSuccess
- type OrderEditReference
- type OrderEditResourceIdentifier
- type OrderEditResult
- type OrderEditSetCommentAction
- type OrderEditSetCustomFieldAction
- type OrderEditSetCustomTypeAction
- type OrderEditSetKeyAction
- type OrderEditSetStagedActionsAction
- type OrderEditUpdate
- type OrderEditUpdateAction
- type OrderEditUpdateWithIDInput
- type OrderEditUpdateWithKeyInput
- type OrderExcerpt
- type OrderFromCartDraft
- type OrderImportCustomLineItemStateAction
- type OrderImportDraft
- type OrderImportLineItemStateAction
- type OrderImportedMessage
- type OrderImportedMessagePayload
- type OrderLineItemAddedMessage
- type OrderLineItemAddedMessagePayload
- type OrderLineItemDiscountSetMessage
- type OrderLineItemDiscountSetMessagePayload
- type OrderPagedQueryResponse
- type OrderPaymentStateChangedMessage
- type OrderPaymentStateChangedMessagePayload
- type OrderReference
- type OrderRemoveDeliveryAction
- type OrderRemoveItemShippingAddressAction
- type OrderRemoveParcelFromDeliveryAction
- type OrderRemovePaymentAction
- type OrderResourceIdentifier
- type OrderReturnInfoAddedMessage
- type OrderReturnInfoAddedMessagePayload
- type OrderReturnShipmentStateChangedMessage
- type OrderReturnShipmentStateChangedMessagePayload
- type OrderSetBillingAddressAction
- type OrderSetCustomFieldAction
- type OrderSetCustomLineItemCustomFieldAction
- type OrderSetCustomLineItemCustomTypeAction
- type OrderSetCustomLineItemShippingDetailsAction
- type OrderSetCustomTypeAction
- type OrderSetCustomerEmailAction
- type OrderSetCustomerIDAction
- type OrderSetDeliveryAddressAction
- type OrderSetDeliveryItemsAction
- type OrderSetLineItemCustomFieldAction
- type OrderSetLineItemCustomTypeAction
- type OrderSetLineItemShippingDetailsAction
- type OrderSetLocaleAction
- type OrderSetOrderNumberAction
- type OrderSetParcelItemsAction
- type OrderSetParcelMeasurementsAction
- type OrderSetParcelTrackingDataAction
- type OrderSetReturnPaymentStateAction
- type OrderSetReturnShipmentStateAction
- type OrderSetShippingAddressAction
- type OrderSetStoreAction
- type OrderShipmentStateChangedMessage
- type OrderShipmentStateChangedMessagePayload
- type OrderShippingAddressSetMessage
- type OrderShippingAddressSetMessagePayload
- type OrderShippingInfoSetMessage
- type OrderShippingInfoSetMessagePayload
- type OrderShippingRateInputSetMessage
- type OrderShippingRateInputSetMessagePayload
- type OrderState
- type OrderStateChangedMessage
- type OrderStateChangedMessagePayload
- type OrderStateTransitionMessage
- type OrderStateTransitionMessagePayload
- type OrderStoreSetMessage
- type OrderStoreSetMessagePayload
- type OrderTransitionCustomLineItemStateAction
- type OrderTransitionLineItemStateAction
- type OrderTransitionStateAction
- type OrderUpdate
- type OrderUpdateAction
- type OrderUpdateItemShippingAddressAction
- type OrderUpdateSyncInfoAction
- type OrderUpdateWithIDInput
- type OrderUpdateWithOrderNumberInput
- type OutOfStockError
- type PagedQueryResponse
- type Parcel
- type ParcelAddedToDeliveryMessage
- type ParcelAddedToDeliveryMessagePayload
- type ParcelDraft
- type ParcelItemsUpdatedMessage
- type ParcelItemsUpdatedMessagePayload
- type ParcelMeasurements
- type ParcelMeasurementsUpdatedMessage
- type ParcelMeasurementsUpdatedMessagePayload
- type ParcelRemovedFromDeliveryMessage
- type ParcelRemovedFromDeliveryMessagePayload
- type ParcelTrackingDataUpdatedMessage
- type ParcelTrackingDataUpdatedMessagePayload
- type PayloadNotIncluded
- type Payment
- type PaymentAddInterfaceInteractionAction
- type PaymentAddTransactionAction
- type PaymentChangeAmountPlannedAction
- type PaymentChangeTransactionInteractionIDAction
- type PaymentChangeTransactionStateAction
- type PaymentChangeTransactionTimestampAction
- type PaymentCreatedMessage
- type PaymentCreatedMessagePayload
- type PaymentDraft
- type PaymentInfo
- type PaymentInteractionAddedMessage
- type PaymentInteractionAddedMessagePayload
- type PaymentMethodInfo
- type PaymentPagedQueryResponse
- type PaymentReference
- type PaymentResourceIdentifier
- type PaymentSetAmountPaidAction
- type PaymentSetAmountRefundedAction
- type PaymentSetAnonymousIDAction
- type PaymentSetAuthorizationAction
- type PaymentSetCustomFieldAction
- type PaymentSetCustomTypeAction
- type PaymentSetCustomerAction
- type PaymentSetExternalIDAction
- type PaymentSetInterfaceIDAction
- type PaymentSetKeyAction
- type PaymentSetMethodInfoInterfaceAction
- type PaymentSetMethodInfoMethodAction
- type PaymentSetMethodInfoNameAction
- type PaymentSetStatusInterfaceCodeAction
- type PaymentSetStatusInterfaceTextAction
- type PaymentState
- type PaymentStatus
- type PaymentStatusDraft
- type PaymentStatusInterfaceCodeSetMessage
- type PaymentStatusInterfaceCodeSetMessagePayload
- type PaymentStatusStateTransitionMessage
- type PaymentStatusStateTransitionMessagePayload
- type PaymentTransactionAddedMessage
- type PaymentTransactionAddedMessagePayload
- type PaymentTransactionStateChangedMessage
- type PaymentTransactionStateChangedMessagePayload
- type PaymentTransitionStateAction
- type PaymentUpdate
- type PaymentUpdateAction
- type PaymentUpdateWithIDInput
- type PaymentUpdateWithKeyInput
- type Price
- type PriceChangedError
- type PriceDraft
- type PriceFunction
- type PriceTier
- type PriceTierDraft
- type Product
- type ProductAddAssetAction
- type ProductAddExternalImageAction
- type ProductAddPriceAction
- type ProductAddToCategoryAction
- type ProductAddVariantAction
- type ProductAddedToCategoryMessage
- type ProductAddedToCategoryMessagePayload
- type ProductCatalogData
- type ProductChangeAssetNameAction
- type ProductChangeAssetOrderAction
- type ProductChangeMasterVariantAction
- type ProductChangeNameAction
- type ProductChangePriceAction
- type ProductChangeSlugAction
- type ProductCreatedMessage
- type ProductCreatedMessagePayload
- type ProductData
- type ProductDeletedMessage
- type ProductDeletedMessagePayload
- type ProductDiscount
- type ProductDiscountChangeIsActiveAction
- type ProductDiscountChangeNameAction
- type ProductDiscountChangePredicateAction
- type ProductDiscountChangeSortOrderAction
- type ProductDiscountChangeValueAction
- type ProductDiscountDraft
- type ProductDiscountMatchQuery
- type ProductDiscountPagedQueryResponse
- type ProductDiscountReference
- type ProductDiscountResourceIdentifier
- type ProductDiscountSetDescriptionAction
- type ProductDiscountSetKeyAction
- type ProductDiscountSetValidFromAction
- type ProductDiscountSetValidFromAndUntilAction
- type ProductDiscountSetValidUntilAction
- type ProductDiscountUpdate
- type ProductDiscountUpdateAction
- type ProductDiscountUpdateWithIDInput
- type ProductDiscountUpdateWithKeyInput
- type ProductDiscountValue
- type ProductDiscountValueAbsolute
- type ProductDiscountValueAbsoluteDraft
- type ProductDiscountValueDraft
- type ProductDiscountValueExternal
- type ProductDiscountValueExternalDraft
- type ProductDiscountValueRelative
- type ProductDiscountValueRelativeDraft
- type ProductDraft
- type ProductImageAddedMessage
- type ProductImageAddedMessagePayload
- type ProductImagesInput
- type ProductLegacySetSkuAction
- type ProductMoveImageToPositionAction
- type ProductPagedQueryResponse
- type ProductPriceDiscountsSetMessage
- type ProductPriceDiscountsSetMessagePayload
- type ProductPriceDiscountsSetUpdatedPrice
- type ProductPriceExternalDiscountSetMessage
- type ProductPriceExternalDiscountSetMessagePayload
- type ProductProjection
- type ProductProjectionPagedQueryResponse
- type ProductProjectionPagedSearchResponse
- type ProductProjectionSearchInput
- type ProductProjectionSuggestInput
- type ProductPublishAction
- type ProductPublishScope
- type ProductPublishedMessage
- type ProductPublishedMessagePayload
- type ProductReference
- type ProductRemoveAssetAction
- type ProductRemoveFromCategoryAction
- type ProductRemoveImageAction
- type ProductRemovePriceAction
- type ProductRemoveVariantAction
- type ProductRemovedFromCategoryMessage
- type ProductRemovedFromCategoryMessagePayload
- type ProductResourceIdentifier
- type ProductRevertStagedChangesAction
- type ProductRevertStagedVariantChangesAction
- type ProductRevertedStagedChangesMessage
- type ProductRevertedStagedChangesMessagePayload
- type ProductSetAssetCustomFieldAction
- type ProductSetAssetCustomTypeAction
- type ProductSetAssetDescriptionAction
- type ProductSetAssetKeyAction
- type ProductSetAssetSourcesAction
- type ProductSetAssetTagsAction
- type ProductSetAttributeAction
- type ProductSetAttributeInAllVariantsAction
- type ProductSetCategoryOrderHintAction
- type ProductSetDescriptionAction
- type ProductSetDiscountedPriceAction
- type ProductSetImageLabelAction
- type ProductSetKeyAction
- type ProductSetMetaDescriptionAction
- type ProductSetMetaKeywordsAction
- type ProductSetMetaTitleAction
- type ProductSetPricesAction
- type ProductSetProductPriceCustomFieldAction
- type ProductSetProductPriceCustomTypeAction
- type ProductSetProductVariantKeyAction
- type ProductSetSearchKeywordsAction
- type ProductSetSkuAction
- type ProductSetTaxCategoryAction
- type ProductSlugChangedMessage
- type ProductSlugChangedMessagePayload
- type ProductStateTransitionMessage
- type ProductStateTransitionMessagePayload
- type ProductTransitionStateAction
- type ProductType
- type ProductTypeAddAttributeDefinitionAction
- type ProductTypeAddLocalizedEnumValueAction
- type ProductTypeAddPlainEnumValueAction
- type ProductTypeChangeAttributeConstraintAction
- type ProductTypeChangeAttributeNameAction
- type ProductTypeChangeAttributeOrderAction
- type ProductTypeChangeAttributeOrderByNameAction
- type ProductTypeChangeDescriptionAction
- type ProductTypeChangeEnumKeyAction
- type ProductTypeChangeInputHintAction
- type ProductTypeChangeIsSearchableAction
- type ProductTypeChangeLabelAction
- type ProductTypeChangeLocalizedEnumValueLabelAction
- type ProductTypeChangeLocalizedEnumValueOrderAction
- type ProductTypeChangeNameAction
- type ProductTypeChangePlainEnumValueLabelAction
- type ProductTypeChangePlainEnumValueOrderAction
- type ProductTypeDraft
- type ProductTypePagedQueryResponse
- type ProductTypeReference
- type ProductTypeRemoveAttributeDefinitionAction
- type ProductTypeRemoveEnumValuesAction
- type ProductTypeResourceIdentifier
- type ProductTypeSetInputTipAction
- type ProductTypeSetKeyAction
- type ProductTypeUpdate
- type ProductTypeUpdateAction
- type ProductTypeUpdateWithIDInput
- type ProductTypeUpdateWithKeyInput
- type ProductUnpublishAction
- type ProductUnpublishedMessage
- type ProductUnpublishedMessagePayload
- type ProductUpdate
- type ProductUpdateAction
- type ProductUpdateWithIDInput
- type ProductUpdateWithKeyInput
- type ProductVariant
- type ProductVariantAvailability
- type ProductVariantChannelAvailability
- type ProductVariantChannelAvailabilityMap
- type ProductVariantDeletedMessage
- type ProductVariantDeletedMessagePayload
- type ProductVariantDraft
- type ProductVariantImportDraft
- type Project
- type ProjectChangeCountriesAction
- type ProjectChangeCountryTaxRateFallbackEnabledAction
- type ProjectChangeCurrenciesAction
- type ProjectChangeLanguagesAction
- type ProjectChangeMessagesConfigurationAction
- type ProjectChangeMessagesEnabledAction
- type ProjectChangeNameAction
- type ProjectSetExternalOAuthAction
- type ProjectSetShippingRateInputTypeAction
- type ProjectUpdate
- type ProjectUpdateAction
- type ProjectUpdateInput
- type QueryInput
- type QueryPrice
- type RangeFacetResult
- type Reference
- type ReferenceExistsError
- type ReferenceTypeID
- type ReferencedResourceNotFoundError
- type ReplicaCartDraft
- type RequestOption
- type RequiredFieldError
- type ResourceCreatedDelivery
- type ResourceDeletedDelivery
- type ResourceIdentifier
- type ResourceNotFoundError
- type ResourceTypeID
- type ResourceUpdatedDelivery
- type ReturnInfo
- type ReturnItem
- type ReturnItemDraft
- type ReturnPaymentState
- type ReturnShipmentState
- type Review
- type ReviewCreatedMessage
- type ReviewCreatedMessagePayload
- type ReviewDraft
- type ReviewPagedQueryResponse
- type ReviewRatingSetMessage
- type ReviewRatingSetMessagePayload
- type ReviewRatingStatistics
- type ReviewReference
- type ReviewResourceIdentifier
- type ReviewSetAuthorNameAction
- type ReviewSetCustomFieldAction
- type ReviewSetCustomTypeAction
- type ReviewSetCustomerAction
- type ReviewSetKeyAction
- type ReviewSetLocaleAction
- type ReviewSetRatingAction
- type ReviewSetTargetAction
- type ReviewSetTextAction
- type ReviewSetTitleAction
- type ReviewStateTransitionMessage
- type ReviewStateTransitionMessagePayload
- type ReviewTransitionStateAction
- type ReviewUpdate
- type ReviewUpdateAction
- type ReviewUpdateWithIDInput
- type ReviewUpdateWithKeyInput
- type RoundingMode
- type ScopedPrice
- type ScoreShippingRateInput
- type ScoreShippingRateInputDraft
- type SearchKeyword
- type SearchKeywords
- type SelectionMode
- type ShipmentState
- type ShippingInfo
- type ShippingInfoImportDraft
- type ShippingMethod
- type ShippingMethodAddShippingRateAction
- type ShippingMethodAddZoneAction
- type ShippingMethodChangeIsDefaultAction
- type ShippingMethodChangeNameAction
- type ShippingMethodChangeTaxCategoryAction
- type ShippingMethodDoesNotMatchCartError
- type ShippingMethodDraft
- type ShippingMethodMatchingCartInput
- type ShippingMethodMatchingLocationInput
- type ShippingMethodMatchingOrdereditInput
- type ShippingMethodPagedQueryResponse
- type ShippingMethodReference
- type ShippingMethodRemoveShippingRateAction
- type ShippingMethodRemoveZoneAction
- type ShippingMethodResourceIdentifier
- type ShippingMethodSetDescriptionAction
- type ShippingMethodSetKeyAction
- type ShippingMethodSetLocalizedDescriptionAction
- type ShippingMethodSetPredicateAction
- type ShippingMethodState
- type ShippingMethodUpdate
- type ShippingMethodUpdateAction
- type ShippingMethodUpdateWithIDInput
- type ShippingMethodUpdateWithKeyInput
- type ShippingRate
- type ShippingRateDraft
- type ShippingRateInput
- type ShippingRateInputDraft
- type ShippingRateInputType
- type ShippingRatePriceTier
- type ShippingRateTierType
- type ShoppingList
- type ShoppingListAddLineItemAction
- type ShoppingListAddTextLineItemAction
- type ShoppingListChangeLineItemQuantityAction
- type ShoppingListChangeLineItemsOrderAction
- type ShoppingListChangeNameAction
- type ShoppingListChangeTextLineItemNameAction
- type ShoppingListChangeTextLineItemQuantityAction
- type ShoppingListChangeTextLineItemsOrderAction
- type ShoppingListDraft
- type ShoppingListLineItem
- type ShoppingListLineItemDraft
- type ShoppingListPagedQueryResponse
- type ShoppingListReference
- type ShoppingListRemoveLineItemAction
- type ShoppingListRemoveTextLineItemAction
- type ShoppingListResourceIdentifier
- type ShoppingListSetAnonymousIDAction
- type ShoppingListSetCustomFieldAction
- type ShoppingListSetCustomTypeAction
- type ShoppingListSetCustomerAction
- type ShoppingListSetDeleteDaysAfterLastModificationAction
- type ShoppingListSetDescriptionAction
- type ShoppingListSetKeyAction
- type ShoppingListSetLineItemCustomFieldAction
- type ShoppingListSetLineItemCustomTypeAction
- type ShoppingListSetSlugAction
- type ShoppingListSetTextLineItemCustomFieldAction
- type ShoppingListSetTextLineItemCustomTypeAction
- type ShoppingListSetTextLineItemDescriptionAction
- type ShoppingListUpdate
- type ShoppingListUpdateAction
- type ShoppingListUpdateWithIDInput
- type ShoppingListUpdateWithKeyInput
- type SnsDestination
- type SqsDestination
- type StackingMode
- type StagedOrder
- type StagedOrderAddCustomLineItemAction
- type StagedOrderAddDeliveryAction
- type StagedOrderAddDiscountCodeAction
- type StagedOrderAddItemShippingAddressAction
- type StagedOrderAddLineItemAction
- type StagedOrderAddParcelToDeliveryAction
- type StagedOrderAddPaymentAction
- type StagedOrderAddReturnInfoAction
- type StagedOrderAddShoppingListAction
- type StagedOrderChangeCustomLineItemMoneyAction
- type StagedOrderChangeCustomLineItemQuantityAction
- type StagedOrderChangeLineItemQuantityAction
- type StagedOrderChangeOrderStateAction
- type StagedOrderChangePaymentStateAction
- type StagedOrderChangeShipmentStateAction
- type StagedOrderChangeTaxCalculationModeAction
- type StagedOrderChangeTaxModeAction
- type StagedOrderChangeTaxRoundingModeAction
- type StagedOrderImportCustomLineItemStateAction
- type StagedOrderImportLineItemStateAction
- type StagedOrderRemoveCustomLineItemAction
- type StagedOrderRemoveDeliveryAction
- type StagedOrderRemoveDiscountCodeAction
- type StagedOrderRemoveItemShippingAddressAction
- type StagedOrderRemoveLineItemAction
- type StagedOrderRemoveParcelFromDeliveryAction
- type StagedOrderRemovePaymentAction
- type StagedOrderSetBillingAddressAction
- type StagedOrderSetCountryAction
- type StagedOrderSetCustomFieldAction
- type StagedOrderSetCustomLineItemCustomFieldAction
- type StagedOrderSetCustomLineItemCustomTypeAction
- type StagedOrderSetCustomLineItemShippingDetailsAction
- type StagedOrderSetCustomLineItemTaxAmountAction
- type StagedOrderSetCustomLineItemTaxRateAction
- type StagedOrderSetCustomShippingMethodAction
- type StagedOrderSetCustomTypeAction
- type StagedOrderSetCustomerEmailAction
- type StagedOrderSetCustomerGroupAction
- type StagedOrderSetCustomerIDAction
- type StagedOrderSetDeliveryAddressAction
- type StagedOrderSetDeliveryItemsAction
- type StagedOrderSetLineItemCustomFieldAction
- type StagedOrderSetLineItemCustomTypeAction
- type StagedOrderSetLineItemDistributionChannelAction
- type StagedOrderSetLineItemPriceAction
- type StagedOrderSetLineItemShippingDetailsAction
- type StagedOrderSetLineItemTaxAmountAction
- type StagedOrderSetLineItemTaxRateAction
- type StagedOrderSetLineItemTotalPriceAction
- type StagedOrderSetLocaleAction
- type StagedOrderSetOrderNumberAction
- type StagedOrderSetOrderTotalTaxAction
- type StagedOrderSetParcelItemsAction
- type StagedOrderSetParcelMeasurementsAction
- type StagedOrderSetParcelTrackingDataAction
- type StagedOrderSetReturnPaymentStateAction
- type StagedOrderSetReturnShipmentStateAction
- type StagedOrderSetShippingAddressAction
- type StagedOrderSetShippingAddressAndCustomShippingMethodAction
- type StagedOrderSetShippingAddressAndShippingMethodAction
- type StagedOrderSetShippingMethodAction
- type StagedOrderSetShippingMethodTaxAmountAction
- type StagedOrderSetShippingMethodTaxRateAction
- type StagedOrderSetShippingRateInputAction
- type StagedOrderTransitionCustomLineItemStateAction
- type StagedOrderTransitionLineItemStateAction
- type StagedOrderTransitionStateAction
- type StagedOrderUpdateAction
- type StagedOrderUpdateItemShippingAddressAction
- type StagedOrderUpdateSyncInfoAction
- type State
- type StateAddRolesAction
- type StateChangeInitialAction
- type StateChangeKeyAction
- type StateChangeTypeAction
- type StateDraft
- type StatePagedQueryResponse
- type StateReference
- type StateRemoveRolesAction
- type StateResourceIdentifier
- type StateRoleEnum
- type StateSetDescriptionAction
- type StateSetNameAction
- type StateSetRolesAction
- type StateSetTransitionsAction
- type StateTypeEnum
- type StateUpdate
- type StateUpdateAction
- type StateUpdateWithIDInput
- type StateUpdateWithKeyInput
- type Store
- type StoreCartUpdateWithIDInput
- type StoreCustomerUpdateWithIDInput
- type StoreCustomerUpdateWithKeyInput
- type StoreDraft
- type StoreKeyReference
- type StoreMyCartUpdateWithIDInput
- type StoreOrderUpdateWithIDInput
- type StoreOrderUpdateWithOrderNumberInput
- type StorePagedQueryResponse
- type StoreReference
- type StoreResourceIdentifier
- type StoreSetLanguagesAction
- type StoreSetNameAction
- type StoreShippingMethodsForMatchingCartInput
- type StoreUpdate
- type StoreUpdateAction
- type StoreUpdateWithIDInput
- type StoreUpdateWithKeyInput
- type StoresAddDistributionChannelsAction
- type StoresAddSupplyChannelsAction
- type StoresRemoveDistributionChannelsAction
- type StoresRemoveSupplyChannelsAction
- type StoresSetDistributionChannelsAction
- type StoresSetSupplyChannelsAction
- type SubRate
- type Subscription
- type SubscriptionChangeDestinationAction
- type SubscriptionDelivery
- type SubscriptionDraft
- type SubscriptionHealthStatus
- type SubscriptionPagedQueryResponse
- type SubscriptionSetChangesAction
- type SubscriptionSetKeyAction
- type SubscriptionSetMessagesAction
- type SubscriptionUpdate
- type SubscriptionUpdateAction
- type SubscriptionUpdateWithIDInput
- type SubscriptionUpdateWithKeyInput
- type SuggestTokenizer
- type Suggestion
- type SuggestionResult
- type SyncInfo
- type TaxCalculationMode
- type TaxCategory
- type TaxCategoryAddTaxRateAction
- type TaxCategoryChangeNameAction
- type TaxCategoryDraft
- type TaxCategoryPagedQueryResponse
- type TaxCategoryReference
- type TaxCategoryRemoveTaxRateAction
- type TaxCategoryReplaceTaxRateAction
- type TaxCategoryResourceIdentifier
- type TaxCategorySetDescriptionAction
- type TaxCategorySetKeyAction
- type TaxCategoryUpdate
- type TaxCategoryUpdateAction
- type TaxCategoryUpdateWithIDInput
- type TaxCategoryUpdateWithKeyInput
- type TaxMode
- type TaxPortion
- type TaxPortionDraft
- type TaxRate
- type TaxRateDraft
- type TaxedItemPrice
- type TaxedItemPriceDraft
- type TaxedPrice
- type TaxedPriceDraft
- type TermFacetResult
- type TermFacetResultType
- type TextInputHint
- type TextLineItem
- type TextLineItemDraft
- type TrackingData
- type Transaction
- type TransactionDraft
- type TransactionState
- type TransactionType
- type Type
- type TypeAddEnumValueAction
- type TypeAddFieldDefinitionAction
- type TypeAddLocalizedEnumValueAction
- type TypeChangeEnumValueLabelAction
- type TypeChangeEnumValueOrderAction
- type TypeChangeFieldDefinitionLabelAction
- type TypeChangeFieldDefinitionOrderAction
- type TypeChangeInputHintAction
- type TypeChangeKeyAction
- type TypeChangeLabelAction
- type TypeChangeLocalizedEnumValueLabelAction
- type TypeChangeLocalizedEnumValueOrderAction
- type TypeChangeNameAction
- type TypeDraft
- type TypePagedQueryResponse
- type TypeReference
- type TypeRemoveFieldDefinitionAction
- type TypeResourceIdentifier
- type TypeSetDescriptionAction
- type TypeTextInputHint
- type TypeUpdate
- type TypeUpdateAction
- type TypeUpdateWithIDInput
- type TypeUpdateWithKeyInput
- type TypedMoney
- type TypedMoneyDraft
- type Update
- type UpdateAction
- type UserProvidedIdentifiers
- type VariantValues
- type WhitespaceTokenizer
- type Zone
- type ZoneAddLocationAction
- type ZoneChangeNameAction
- type ZoneDraft
- type ZonePagedQueryResponse
- type ZoneRate
- type ZoneRateDraft
- type ZoneReference
- type ZoneRemoveLocationAction
- type ZoneResourceIdentifier
- type ZoneSetDescriptionAction
- type ZoneSetKeyAction
- type ZoneUpdate
- type ZoneUpdateAction
- type ZoneUpdateWithIDInput
- type ZoneUpdateWithKeyInput
Constants ¶
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(cfg *ClientConfig) string
GetUserAgent determines the user agent for all HTTP requests.
Types ¶
type APIClient ¶
type APIClient struct { Secret string `json:"secret,omitempty"` Scope string `json:"scope"` Name string `json:"name"` LastUsedAt *Date `json:"lastUsedAt,omitempty"` ID string `json:"id"` DeleteAt *time.Time `json:"deleteAt,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` }
APIClient is a standalone struct
type APIClientDraft ¶
type APIClientDraft struct { Scope string `json:"scope"` Name string `json:"name"` DeleteDaysAfterCreation int `json:"deleteDaysAfterCreation,omitempty"` }
APIClientDraft is a standalone struct
type APIClientPagedQueryResponse ¶
type APIClientPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []APIClient `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
APIClientPagedQueryResponse is a standalone struct
type AccessDeniedError ¶
type AccessDeniedError struct {
Message string `json:"message"`
}
AccessDeniedError implements the interface ErrorObject
func (AccessDeniedError) Error ¶
func (obj AccessDeniedError) Error() string
func (AccessDeniedError) MarshalJSON ¶
func (obj AccessDeniedError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Address ¶
type Address struct { Title string `json:"title,omitempty"` StreetNumber string `json:"streetNumber,omitempty"` StreetName string `json:"streetName,omitempty"` State string `json:"state,omitempty"` Salutation string `json:"salutation,omitempty"` Region string `json:"region,omitempty"` PostalCode string `json:"postalCode,omitempty"` Phone string `json:"phone,omitempty"` POBox string `json:"pOBox,omitempty"` Mobile string `json:"mobile,omitempty"` LastName string `json:"lastName,omitempty"` Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` FirstName string `json:"firstName,omitempty"` Fax string `json:"fax,omitempty"` ExternalID string `json:"externalId,omitempty"` Email string `json:"email,omitempty"` Department string `json:"department,omitempty"` Country CountryCode `json:"country"` Company string `json:"company,omitempty"` City string `json:"city,omitempty"` Building string `json:"building,omitempty"` Apartment string `json:"apartment,omitempty"` AdditionalStreetInfo string `json:"additionalStreetInfo,omitempty"` AdditionalAddressInfo string `json:"additionalAddressInfo,omitempty"` }
Address is a standalone struct
type AnonymousCartSignInMode ¶
type AnonymousCartSignInMode string
AnonymousCartSignInMode is an enum type
const ( AnonymousCartSignInModeMergeWithExistingCustomerCart AnonymousCartSignInMode = "MergeWithExistingCustomerCart" AnonymousCartSignInModeUseAsNewActiveCustomerCart AnonymousCartSignInMode = "UseAsNewActiveCustomerCart" )
Enum values for AnonymousCartSignInMode
type Asset ¶
type Asset struct { Tags []string `json:"tags,omitempty"` Sources []AssetSource `json:"sources"` Name *LocalizedString `json:"name"` Key string `json:"key,omitempty"` ID string `json:"id"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFields `json:"custom,omitempty"` }
Asset is a standalone struct
type AssetDimensions ¶
AssetDimensions is a standalone struct
type AssetDraft ¶
type AssetDraft struct { Tags []string `json:"tags,omitempty"` Sources []AssetSource `json:"sources"` Name *LocalizedString `json:"name"` Key string `json:"key,omitempty"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` }
AssetDraft is a standalone struct
type AssetSource ¶
type AssetSource struct { URI string `json:"uri"` Key string `json:"key,omitempty"` Dimensions *AssetDimensions `json:"dimensions,omitempty"` ContentType string `json:"contentType,omitempty"` }
AssetSource is a standalone struct
type Attribute ¶
type Attribute struct { Value interface{} `json:"value"` Name string `json:"name"` }
Attribute is a standalone struct
type AttributeBooleanType ¶
type AttributeBooleanType struct{}
AttributeBooleanType implements the interface AttributeType
func (AttributeBooleanType) MarshalJSON ¶
func (obj AttributeBooleanType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeConstraintEnum ¶
type AttributeConstraintEnum string
AttributeConstraintEnum is an enum type
const ( AttributeConstraintEnumNone AttributeConstraintEnum = "None" AttributeConstraintEnumUnique AttributeConstraintEnum = "Unique" AttributeConstraintEnumCombinationUnique AttributeConstraintEnum = "CombinationUnique" AttributeConstraintEnumSameForAll AttributeConstraintEnum = "SameForAll" )
Enum values for AttributeConstraintEnum
type AttributeConstraintEnumDraft ¶
type AttributeConstraintEnumDraft string
AttributeConstraintEnumDraft is an enum type
const (
AttributeConstraintEnumDraftNone AttributeConstraintEnumDraft = "None"
)
Enum values for AttributeConstraintEnumDraft
type AttributeDateTimeType ¶
type AttributeDateTimeType struct{}
AttributeDateTimeType implements the interface AttributeType
func (AttributeDateTimeType) MarshalJSON ¶
func (obj AttributeDateTimeType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeDateType ¶
type AttributeDateType struct{}
AttributeDateType implements the interface AttributeType
func (AttributeDateType) MarshalJSON ¶
func (obj AttributeDateType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeDefinition ¶
type AttributeDefinition struct { Type AttributeType `json:"type"` Name string `json:"name"` Label *LocalizedString `json:"label"` IsSearchable bool `json:"isSearchable"` IsRequired bool `json:"isRequired"` InputTip *LocalizedString `json:"inputTip,omitempty"` InputHint TextInputHint `json:"inputHint"` AttributeConstraint AttributeConstraintEnum `json:"attributeConstraint"` }
AttributeDefinition is a standalone struct
func (*AttributeDefinition) UnmarshalJSON ¶
func (obj *AttributeDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type AttributeDefinitionDraft ¶
type AttributeDefinitionDraft struct { Type AttributeType `json:"type"` Name string `json:"name"` Label *LocalizedString `json:"label"` IsSearchable bool `json:"isSearchable"` IsRequired bool `json:"isRequired"` InputTip *LocalizedString `json:"inputTip,omitempty"` InputHint TextInputHint `json:"inputHint,omitempty"` AttributeConstraint AttributeConstraintEnum `json:"attributeConstraint,omitempty"` }
AttributeDefinitionDraft is a standalone struct
func (*AttributeDefinitionDraft) UnmarshalJSON ¶
func (obj *AttributeDefinitionDraft) 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"`
}
AttributeEnumType implements the interface AttributeType
func (AttributeEnumType) MarshalJSON ¶
func (obj AttributeEnumType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeLocalizableTextType ¶
type AttributeLocalizableTextType struct{}
AttributeLocalizableTextType implements the interface AttributeType
func (AttributeLocalizableTextType) MarshalJSON ¶
func (obj AttributeLocalizableTextType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeLocalizedEnumType ¶
type AttributeLocalizedEnumType struct {
Values []AttributeLocalizedEnumValue `json:"values"`
}
AttributeLocalizedEnumType implements the interface AttributeType
func (AttributeLocalizedEnumType) MarshalJSON ¶
func (obj AttributeLocalizedEnumType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeLocalizedEnumValue ¶
type AttributeLocalizedEnumValue struct { Label *LocalizedString `json:"label"` Key string `json:"key"` }
AttributeLocalizedEnumValue is a standalone struct
type AttributeMoneyType ¶
type AttributeMoneyType struct{}
AttributeMoneyType implements the interface AttributeType
func (AttributeMoneyType) MarshalJSON ¶
func (obj AttributeMoneyType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeNestedType ¶
type AttributeNestedType struct {
TypeReference *ProductTypeReference `json:"typeReference"`
}
AttributeNestedType implements the interface AttributeType
func (AttributeNestedType) MarshalJSON ¶
func (obj AttributeNestedType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeNumberType ¶
type AttributeNumberType struct{}
AttributeNumberType implements the interface AttributeType
func (AttributeNumberType) MarshalJSON ¶
func (obj AttributeNumberType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributePlainEnumValue ¶
AttributePlainEnumValue is a standalone struct
type AttributeReferenceType ¶
type AttributeReferenceType struct {
ReferenceTypeID ReferenceTypeID `json:"referenceTypeId"`
}
AttributeReferenceType implements the interface AttributeType
func (AttributeReferenceType) MarshalJSON ¶
func (obj AttributeReferenceType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeSetType ¶
type AttributeSetType struct {
ElementType AttributeType `json:"elementType"`
}
AttributeSetType implements the interface AttributeType
func (AttributeSetType) MarshalJSON ¶
func (obj AttributeSetType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
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{}
AttributeTextType implements the interface AttributeType
func (AttributeTextType) MarshalJSON ¶
func (obj AttributeTextType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeTimeType ¶
type AttributeTimeType struct{}
AttributeTimeType implements the interface AttributeType
func (AttributeTimeType) MarshalJSON ¶
func (obj AttributeTimeType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AttributeType ¶
type AttributeType interface{}
AttributeType uses name as discriminator attribute
type AzureEventGridDestination ¶
type AzureEventGridDestination struct { URI string `json:"uri"` AccessKey string `json:"accessKey"` }
AzureEventGridDestination implements the interface Destination
func (AzureEventGridDestination) MarshalJSON ¶
func (obj AzureEventGridDestination) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type AzureServiceBusDestination ¶
type AzureServiceBusDestination struct {
ConnectionString string `json:"connectionString"`
}
AzureServiceBusDestination implements the interface Destination
func (AzureServiceBusDestination) MarshalJSON ¶
func (obj AzureServiceBusDestination) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type BaseResource ¶
type BaseResource struct { Version int `json:"version"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedAt time.Time `json:"createdAt"` }
BaseResource is a standalone struct
type Cart ¶
type Cart struct { Version int `json:"version"` TotalPrice TypedMoney `json:"totalPrice"` TaxedPrice *TaxedPrice `json:"taxedPrice,omitempty"` TaxRoundingMode RoundingMode `json:"taxRoundingMode"` TaxMode TaxMode `json:"taxMode"` TaxCalculationMode TaxCalculationMode `json:"taxCalculationMode"` Store *StoreKeyReference `json:"store,omitempty"` ShippingRateInput ShippingRateInput `json:"shippingRateInput,omitempty"` ShippingInfo *ShippingInfo `json:"shippingInfo,omitempty"` ShippingAddress *Address `json:"shippingAddress,omitempty"` RefusedGifts []CartDiscountReference `json:"refusedGifts"` PaymentInfo *PaymentInfo `json:"paymentInfo,omitempty"` Origin CartOrigin `json:"origin"` Locale string `json:"locale,omitempty"` LineItems []LineItem `json:"lineItems"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ItemShippingAddresses []Address `json:"itemShippingAddresses,omitempty"` InventoryMode InventoryMode `json:"inventoryMode,omitempty"` ID string `json:"id"` DiscountCodes []DiscountCodeInfo `json:"discountCodes,omitempty"` DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"` CustomerID string `json:"customerId,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` CustomerEmail string `json:"customerEmail,omitempty"` CustomLineItems []CustomLineItem `json:"customLineItems"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Country CountryCode `json:"country,omitempty"` CartState CartState `json:"cartState"` BillingAddress *Address `json:"billingAddress,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
Cart is of type BaseResource
func (*Cart) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartAddCustomLineItemAction ¶
type CartAddCustomLineItemAction struct { TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"` Slug string `json:"slug"` Quantity int `json:"quantity"` Name *LocalizedString `json:"name"` Money *Money `json:"money"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` }
CartAddCustomLineItemAction implements the interface CartUpdateAction
func (CartAddCustomLineItemAction) MarshalJSON ¶
func (obj CartAddCustomLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartAddDiscountCodeAction ¶
type CartAddDiscountCodeAction struct {
Code string `json:"code"`
}
CartAddDiscountCodeAction implements the interface CartUpdateAction
func (CartAddDiscountCodeAction) MarshalJSON ¶
func (obj CartAddDiscountCodeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartAddItemShippingAddressAction ¶
type CartAddItemShippingAddressAction struct {
Address *Address `json:"address"`
}
CartAddItemShippingAddressAction implements the interface CartUpdateAction
func (CartAddItemShippingAddressAction) MarshalJSON ¶
func (obj CartAddItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartAddLineItemAction ¶
type CartAddLineItemAction struct { VariantID int `json:"variantId,omitempty"` SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` SKU string `json:"sku,omitempty"` ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` Quantity int `json:"quantity,omitempty"` ProductID string `json:"productId,omitempty"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` }
CartAddLineItemAction implements the interface CartUpdateAction
func (CartAddLineItemAction) MarshalJSON ¶
func (obj CartAddLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartAddPaymentAction ¶
type CartAddPaymentAction struct {
Payment *PaymentResourceIdentifier `json:"payment"`
}
CartAddPaymentAction implements the interface CartUpdateAction
func (CartAddPaymentAction) MarshalJSON ¶
func (obj CartAddPaymentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartAddShoppingListAction ¶
type CartAddShoppingListAction struct { SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` ShoppingList *ShoppingListResourceIdentifier `json:"shoppingList"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` }
CartAddShoppingListAction implements the interface CartUpdateAction
func (CartAddShoppingListAction) MarshalJSON ¶
func (obj CartAddShoppingListAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction ¶
type CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction struct { TargetsDelta []ItemShippingTarget `json:"targetsDelta"` CustomLineItemID string `json:"customLineItemId"` }
CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction implements the interface CartUpdateAction
func (CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction) MarshalJSON ¶
func (obj CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartApplyDeltaToLineItemShippingDetailsTargetsAction ¶
type CartApplyDeltaToLineItemShippingDetailsTargetsAction struct { TargetsDelta []ItemShippingTarget `json:"targetsDelta"` LineItemID string `json:"lineItemId"` }
CartApplyDeltaToLineItemShippingDetailsTargetsAction implements the interface CartUpdateAction
func (CartApplyDeltaToLineItemShippingDetailsTargetsAction) MarshalJSON ¶
func (obj CartApplyDeltaToLineItemShippingDetailsTargetsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartChangeCustomLineItemMoneyAction ¶
type CartChangeCustomLineItemMoneyAction struct { Money *Money `json:"money"` CustomLineItemID string `json:"customLineItemId"` }
CartChangeCustomLineItemMoneyAction implements the interface CartUpdateAction
func (CartChangeCustomLineItemMoneyAction) MarshalJSON ¶
func (obj CartChangeCustomLineItemMoneyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartChangeCustomLineItemQuantityAction ¶
type CartChangeCustomLineItemQuantityAction struct { Quantity int `json:"quantity"` CustomLineItemID string `json:"customLineItemId"` }
CartChangeCustomLineItemQuantityAction implements the interface CartUpdateAction
func (CartChangeCustomLineItemQuantityAction) MarshalJSON ¶
func (obj CartChangeCustomLineItemQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartChangeLineItemQuantityAction ¶
type CartChangeLineItemQuantityAction struct { Quantity int `json:"quantity"` LineItemID string `json:"lineItemId"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` }
CartChangeLineItemQuantityAction implements the interface CartUpdateAction
func (CartChangeLineItemQuantityAction) MarshalJSON ¶
func (obj CartChangeLineItemQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartChangeTaxCalculationModeAction ¶
type CartChangeTaxCalculationModeAction struct {
TaxCalculationMode TaxCalculationMode `json:"taxCalculationMode"`
}
CartChangeTaxCalculationModeAction implements the interface CartUpdateAction
func (CartChangeTaxCalculationModeAction) MarshalJSON ¶
func (obj CartChangeTaxCalculationModeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartChangeTaxModeAction ¶
type CartChangeTaxModeAction struct {
TaxMode TaxMode `json:"taxMode"`
}
CartChangeTaxModeAction implements the interface CartUpdateAction
func (CartChangeTaxModeAction) MarshalJSON ¶
func (obj CartChangeTaxModeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartChangeTaxRoundingModeAction ¶
type CartChangeTaxRoundingModeAction struct {
TaxRoundingMode RoundingMode `json:"taxRoundingMode"`
}
CartChangeTaxRoundingModeAction implements the interface CartUpdateAction
func (CartChangeTaxRoundingModeAction) MarshalJSON ¶
func (obj CartChangeTaxRoundingModeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartClassificationTier ¶
type CartClassificationTier struct { Value string `json:"value"` Price *Money `json:"price"` IsMatching bool `json:"isMatching"` }
CartClassificationTier implements the interface ShippingRatePriceTier
func (CartClassificationTier) MarshalJSON ¶
func (obj CartClassificationTier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartClassificationType ¶
type CartClassificationType struct {
Values []CustomFieldLocalizedEnumValue `json:"values"`
}
CartClassificationType implements the interface ShippingRateInputType
func (CartClassificationType) MarshalJSON ¶
func (obj CartClassificationType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscount ¶
type CartDiscount struct { Version int `json:"version"` Value CartDiscountValue `json:"value"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` Target CartDiscountTarget `json:"target,omitempty"` StackingMode StackingMode `json:"stackingMode"` SortOrder string `json:"sortOrder"` RequiresDiscountCode bool `json:"requiresDiscountCode"` References []Reference `json:"references"` Name *LocalizedString `json:"name"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` IsActive bool `json:"isActive"` ID string `json:"id"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` CartPredicate string `json:"cartPredicate"` }
CartDiscount is of type BaseResource
func (*CartDiscount) UnmarshalJSON ¶
func (obj *CartDiscount) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartDiscountChangeCartPredicateAction ¶
type CartDiscountChangeCartPredicateAction struct {
CartPredicate string `json:"cartPredicate"`
}
CartDiscountChangeCartPredicateAction implements the interface CartDiscountUpdateAction
func (CartDiscountChangeCartPredicateAction) MarshalJSON ¶
func (obj CartDiscountChangeCartPredicateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountChangeIsActiveAction ¶
type CartDiscountChangeIsActiveAction struct {
IsActive bool `json:"isActive"`
}
CartDiscountChangeIsActiveAction implements the interface CartDiscountUpdateAction
func (CartDiscountChangeIsActiveAction) MarshalJSON ¶
func (obj CartDiscountChangeIsActiveAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountChangeNameAction ¶
type CartDiscountChangeNameAction struct {
Name *LocalizedString `json:"name"`
}
CartDiscountChangeNameAction implements the interface CartDiscountUpdateAction
func (CartDiscountChangeNameAction) MarshalJSON ¶
func (obj CartDiscountChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountChangeRequiresDiscountCodeAction ¶
type CartDiscountChangeRequiresDiscountCodeAction struct {
RequiresDiscountCode bool `json:"requiresDiscountCode"`
}
CartDiscountChangeRequiresDiscountCodeAction implements the interface CartDiscountUpdateAction
func (CartDiscountChangeRequiresDiscountCodeAction) MarshalJSON ¶
func (obj CartDiscountChangeRequiresDiscountCodeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountChangeSortOrderAction ¶
type CartDiscountChangeSortOrderAction struct {
SortOrder string `json:"sortOrder"`
}
CartDiscountChangeSortOrderAction implements the interface CartDiscountUpdateAction
func (CartDiscountChangeSortOrderAction) MarshalJSON ¶
func (obj CartDiscountChangeSortOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountChangeStackingModeAction ¶
type CartDiscountChangeStackingModeAction struct {
StackingMode StackingMode `json:"stackingMode"`
}
CartDiscountChangeStackingModeAction implements the interface CartDiscountUpdateAction
func (CartDiscountChangeStackingModeAction) MarshalJSON ¶
func (obj CartDiscountChangeStackingModeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountChangeTargetAction ¶
type CartDiscountChangeTargetAction struct {
Target CartDiscountTarget `json:"target"`
}
CartDiscountChangeTargetAction implements the interface CartDiscountUpdateAction
func (CartDiscountChangeTargetAction) MarshalJSON ¶
func (obj CartDiscountChangeTargetAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*CartDiscountChangeTargetAction) UnmarshalJSON ¶
func (obj *CartDiscountChangeTargetAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartDiscountChangeValueAction ¶
type CartDiscountChangeValueAction struct {
Value CartDiscountValueDraft `json:"value"`
}
CartDiscountChangeValueAction implements the interface CartDiscountUpdateAction
func (CartDiscountChangeValueAction) MarshalJSON ¶
func (obj CartDiscountChangeValueAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*CartDiscountChangeValueAction) UnmarshalJSON ¶
func (obj *CartDiscountChangeValueAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartDiscountCustomLineItemsTarget ¶
type CartDiscountCustomLineItemsTarget struct {
Predicate string `json:"predicate"`
}
CartDiscountCustomLineItemsTarget implements the interface CartDiscountTarget
func (CartDiscountCustomLineItemsTarget) MarshalJSON ¶
func (obj CartDiscountCustomLineItemsTarget) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountDraft ¶
type CartDiscountDraft struct { Value CartDiscountValueDraft `json:"value"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` Target CartDiscountTarget `json:"target,omitempty"` StackingMode StackingMode `json:"stackingMode,omitempty"` SortOrder string `json:"sortOrder"` RequiresDiscountCode bool `json:"requiresDiscountCode"` Name *LocalizedString `json:"name"` Key string `json:"key,omitempty"` IsActive bool `json:"isActive"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CartPredicate string `json:"cartPredicate"` }
CartDiscountDraft is a standalone struct
func (*CartDiscountDraft) UnmarshalJSON ¶
func (obj *CartDiscountDraft) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartDiscountLineItemsTarget ¶
type CartDiscountLineItemsTarget struct {
Predicate string `json:"predicate"`
}
CartDiscountLineItemsTarget implements the interface CartDiscountTarget
func (CartDiscountLineItemsTarget) MarshalJSON ¶
func (obj CartDiscountLineItemsTarget) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountPagedQueryResponse ¶
type CartDiscountPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []CartDiscount `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
CartDiscountPagedQueryResponse is a standalone struct
type CartDiscountReference ¶
type CartDiscountReference struct { ID string `json:"id"` Obj *CartDiscount `json:"obj,omitempty"` }
CartDiscountReference implements the interface Reference
func (CartDiscountReference) MarshalJSON ¶
func (obj CartDiscountReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountResourceIdentifier ¶
type CartDiscountResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
CartDiscountResourceIdentifier implements the interface ResourceIdentifier
func (CartDiscountResourceIdentifier) MarshalJSON ¶
func (obj CartDiscountResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountSetCustomFieldAction ¶
type CartDiscountSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
CartDiscountSetCustomFieldAction implements the interface CartDiscountUpdateAction
func (CartDiscountSetCustomFieldAction) MarshalJSON ¶
func (obj CartDiscountSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountSetCustomTypeAction ¶
type CartDiscountSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields interface{} `json:"fields,omitempty"` }
CartDiscountSetCustomTypeAction implements the interface CartDiscountUpdateAction
func (CartDiscountSetCustomTypeAction) MarshalJSON ¶
func (obj CartDiscountSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountSetDescriptionAction ¶
type CartDiscountSetDescriptionAction struct {
Description *LocalizedString `json:"description,omitempty"`
}
CartDiscountSetDescriptionAction implements the interface CartDiscountUpdateAction
func (CartDiscountSetDescriptionAction) MarshalJSON ¶
func (obj CartDiscountSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountSetKeyAction ¶
type CartDiscountSetKeyAction struct {
Key string `json:"key,omitempty"`
}
CartDiscountSetKeyAction implements the interface CartDiscountUpdateAction
func (CartDiscountSetKeyAction) MarshalJSON ¶
func (obj CartDiscountSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountSetValidFromAction ¶
CartDiscountSetValidFromAction implements the interface CartDiscountUpdateAction
func (CartDiscountSetValidFromAction) MarshalJSON ¶
func (obj CartDiscountSetValidFromAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountSetValidFromAndUntilAction ¶
type CartDiscountSetValidFromAndUntilAction struct { ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` }
CartDiscountSetValidFromAndUntilAction implements the interface CartDiscountUpdateAction
func (CartDiscountSetValidFromAndUntilAction) MarshalJSON ¶
func (obj CartDiscountSetValidFromAndUntilAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountSetValidUntilAction ¶
CartDiscountSetValidUntilAction implements the interface CartDiscountUpdateAction
func (CartDiscountSetValidUntilAction) MarshalJSON ¶
func (obj CartDiscountSetValidUntilAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountShippingCostTarget ¶
type CartDiscountShippingCostTarget struct{}
CartDiscountShippingCostTarget implements the interface CartDiscountTarget
func (CartDiscountShippingCostTarget) MarshalJSON ¶
func (obj CartDiscountShippingCostTarget) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountTarget ¶
type CartDiscountTarget interface{}
CartDiscountTarget uses type as discriminator attribute
type CartDiscountUpdate ¶
type CartDiscountUpdate struct { Version int `json:"version"` Actions []CartDiscountUpdateAction `json:"actions"` }
CartDiscountUpdate is a standalone struct
func (*CartDiscountUpdate) UnmarshalJSON ¶
func (obj *CartDiscountUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartDiscountUpdateAction ¶
type CartDiscountUpdateAction interface{}
CartDiscountUpdateAction uses action as discriminator attribute
type CartDiscountUpdateWithIDInput ¶
type CartDiscountUpdateWithIDInput struct { ID string Version int Actions []CartDiscountUpdateAction }
CartDiscountUpdateWithIDInput is input for function CartDiscountUpdateWithID
func (*CartDiscountUpdateWithIDInput) Validate ¶
func (input *CartDiscountUpdateWithIDInput) Validate() error
type CartDiscountUpdateWithKeyInput ¶
type CartDiscountUpdateWithKeyInput struct { Key string Version int Actions []CartDiscountUpdateAction }
CartDiscountUpdateWithKeyInput is input for function CartDiscountUpdateWithKey
func (*CartDiscountUpdateWithKeyInput) Validate ¶
func (input *CartDiscountUpdateWithKeyInput) Validate() error
type CartDiscountValue ¶
type CartDiscountValue interface{}
CartDiscountValue uses type as discriminator attribute
type CartDiscountValueAbsolute ¶
type CartDiscountValueAbsolute struct {
Money []TypedMoney `json:"money"`
}
CartDiscountValueAbsolute implements the interface CartDiscountValue
func (CartDiscountValueAbsolute) MarshalJSON ¶
func (obj CartDiscountValueAbsolute) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*CartDiscountValueAbsolute) UnmarshalJSON ¶
func (obj *CartDiscountValueAbsolute) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartDiscountValueAbsoluteDraft ¶
type CartDiscountValueAbsoluteDraft struct {
Money []Money `json:"money"`
}
CartDiscountValueAbsoluteDraft implements the interface CartDiscountValueDraft
func (CartDiscountValueAbsoluteDraft) MarshalJSON ¶
func (obj CartDiscountValueAbsoluteDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountValueDraft ¶
type CartDiscountValueDraft interface{}
CartDiscountValueDraft uses type as discriminator attribute
type CartDiscountValueGiftLineItem ¶
type CartDiscountValueGiftLineItem struct { VariantID int `json:"variantId"` SupplyChannel *ChannelReference `json:"supplyChannel,omitempty"` Product *ProductReference `json:"product"` DistributionChannel *ChannelReference `json:"distributionChannel,omitempty"` }
CartDiscountValueGiftLineItem implements the interface CartDiscountValue
func (CartDiscountValueGiftLineItem) MarshalJSON ¶
func (obj CartDiscountValueGiftLineItem) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountValueGiftLineItemDraft ¶
type CartDiscountValueGiftLineItemDraft struct { VariantID int `json:"variantId"` SupplyChannel *ChannelReference `json:"supplyChannel,omitempty"` Product *ProductReference `json:"product"` DistributionChannel *ChannelReference `json:"distributionChannel,omitempty"` }
CartDiscountValueGiftLineItemDraft implements the interface CartDiscountValueDraft
func (CartDiscountValueGiftLineItemDraft) MarshalJSON ¶
func (obj CartDiscountValueGiftLineItemDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountValueRelative ¶
type CartDiscountValueRelative struct {
Permyriad int `json:"permyriad"`
}
CartDiscountValueRelative implements the interface CartDiscountValue
func (CartDiscountValueRelative) MarshalJSON ¶
func (obj CartDiscountValueRelative) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDiscountValueRelativeDraft ¶
type CartDiscountValueRelativeDraft struct {
Permyriad int `json:"permyriad"`
}
CartDiscountValueRelativeDraft implements the interface CartDiscountValueDraft
func (CartDiscountValueRelativeDraft) MarshalJSON ¶
func (obj CartDiscountValueRelativeDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartDraft ¶
type CartDraft struct { TaxRoundingMode RoundingMode `json:"taxRoundingMode,omitempty"` TaxMode TaxMode `json:"taxMode,omitempty"` TaxCalculationMode TaxCalculationMode `json:"taxCalculationMode,omitempty"` Store *StoreResourceIdentifier `json:"store,omitempty"` ShippingRateInput ShippingRateInputDraft `json:"shippingRateInput,omitempty"` ShippingMethod *ShippingMethodResourceIdentifier `json:"shippingMethod,omitempty"` ShippingAddress *Address `json:"shippingAddress,omitempty"` Origin CartOrigin `json:"origin,omitempty"` Locale string `json:"locale,omitempty"` LineItems []LineItemDraft `json:"lineItems,omitempty"` ItemShippingAddresses []Address `json:"itemShippingAddresses,omitempty"` InventoryMode InventoryMode `json:"inventoryMode,omitempty"` ExternalTaxRateForShippingMethod *ExternalTaxRateDraft `json:"externalTaxRateForShippingMethod,omitempty"` DiscountCodes []string `json:"discountCodes,omitempty"` DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"` CustomerID string `json:"customerId,omitempty"` CustomerGroup *CustomerGroupResourceIdentifier `json:"customerGroup,omitempty"` CustomerEmail string `json:"customerEmail,omitempty"` CustomLineItems []CustomLineItemDraft `json:"customLineItems,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` Currency CurrencyCode `json:"currency"` Country string `json:"country,omitempty"` BillingAddress *Address `json:"billingAddress,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
CartDraft is a standalone struct
func (*CartDraft) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartOrigin ¶
type CartOrigin string
CartOrigin is an enum type
const ( CartOriginCustomer CartOrigin = "Customer" CartOriginMerchant CartOrigin = "Merchant" )
Enum values for CartOrigin
type CartPagedQueryResponse ¶
type CartPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Cart `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
CartPagedQueryResponse is a standalone struct
type CartRecalculateAction ¶
type CartRecalculateAction struct {
UpdateProductData bool `json:"updateProductData"`
}
CartRecalculateAction implements the interface CartUpdateAction
func (CartRecalculateAction) MarshalJSON ¶
func (obj CartRecalculateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartReference ¶
CartReference implements the interface Reference
func (CartReference) MarshalJSON ¶
func (obj CartReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartRemoveCustomLineItemAction ¶
type CartRemoveCustomLineItemAction struct {
CustomLineItemID string `json:"customLineItemId"`
}
CartRemoveCustomLineItemAction implements the interface CartUpdateAction
func (CartRemoveCustomLineItemAction) MarshalJSON ¶
func (obj CartRemoveCustomLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartRemoveDiscountCodeAction ¶
type CartRemoveDiscountCodeAction struct {
DiscountCode *DiscountCodeReference `json:"discountCode"`
}
CartRemoveDiscountCodeAction implements the interface CartUpdateAction
func (CartRemoveDiscountCodeAction) MarshalJSON ¶
func (obj CartRemoveDiscountCodeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartRemoveItemShippingAddressAction ¶
type CartRemoveItemShippingAddressAction struct {
AddressKey string `json:"addressKey"`
}
CartRemoveItemShippingAddressAction implements the interface CartUpdateAction
func (CartRemoveItemShippingAddressAction) MarshalJSON ¶
func (obj CartRemoveItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartRemoveLineItemAction ¶
type CartRemoveLineItemAction struct { ShippingDetailsToRemove *ItemShippingDetailsDraft `json:"shippingDetailsToRemove,omitempty"` Quantity int `json:"quantity,omitempty"` LineItemID string `json:"lineItemId"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` }
CartRemoveLineItemAction implements the interface CartUpdateAction
func (CartRemoveLineItemAction) MarshalJSON ¶
func (obj CartRemoveLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartRemovePaymentAction ¶
type CartRemovePaymentAction struct {
Payment *PaymentResourceIdentifier `json:"payment"`
}
CartRemovePaymentAction implements the interface CartUpdateAction
func (CartRemovePaymentAction) MarshalJSON ¶
func (obj CartRemovePaymentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartResourceIdentifier ¶
type CartResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
CartResourceIdentifier implements the interface ResourceIdentifier
func (CartResourceIdentifier) MarshalJSON ¶
func (obj CartResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartScoreTier ¶
type CartScoreTier struct { Score float64 `json:"score"` PriceFunction *PriceFunction `json:"priceFunction,omitempty"` Price *Money `json:"price,omitempty"` IsMatching bool `json:"isMatching"` }
CartScoreTier implements the interface ShippingRatePriceTier
func (CartScoreTier) MarshalJSON ¶
func (obj CartScoreTier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartScoreType ¶
type CartScoreType struct{}
CartScoreType implements the interface ShippingRateInputType
func (CartScoreType) MarshalJSON ¶
func (obj CartScoreType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetAnonymousIDAction ¶
type CartSetAnonymousIDAction struct {
AnonymousID string `json:"anonymousId,omitempty"`
}
CartSetAnonymousIDAction implements the interface CartUpdateAction
func (CartSetAnonymousIDAction) MarshalJSON ¶
func (obj CartSetAnonymousIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetBillingAddressAction ¶
type CartSetBillingAddressAction struct {
Address *Address `json:"address,omitempty"`
}
CartSetBillingAddressAction implements the interface CartUpdateAction
func (CartSetBillingAddressAction) MarshalJSON ¶
func (obj CartSetBillingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCartTotalTaxAction ¶
type CartSetCartTotalTaxAction struct { ExternalTotalGross *Money `json:"externalTotalGross"` ExternalTaxPortions []TaxPortionDraft `json:"externalTaxPortions,omitempty"` }
CartSetCartTotalTaxAction implements the interface CartUpdateAction
func (CartSetCartTotalTaxAction) MarshalJSON ¶
func (obj CartSetCartTotalTaxAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCountryAction ¶
type CartSetCountryAction struct {
Country CountryCode `json:"country,omitempty"`
}
CartSetCountryAction implements the interface CartUpdateAction
func (CartSetCountryAction) MarshalJSON ¶
func (obj CartSetCountryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomFieldAction ¶
type CartSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
CartSetCustomFieldAction implements the interface CartUpdateAction
func (CartSetCustomFieldAction) MarshalJSON ¶
func (obj CartSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomLineItemCustomFieldAction ¶
type CartSetCustomLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` CustomLineItemID string `json:"customLineItemId"` }
CartSetCustomLineItemCustomFieldAction implements the interface CartUpdateAction
func (CartSetCustomLineItemCustomFieldAction) MarshalJSON ¶
func (obj CartSetCustomLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomLineItemCustomTypeAction ¶
type CartSetCustomLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
CartSetCustomLineItemCustomTypeAction implements the interface CartUpdateAction
func (CartSetCustomLineItemCustomTypeAction) MarshalJSON ¶
func (obj CartSetCustomLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomLineItemShippingDetailsAction ¶
type CartSetCustomLineItemShippingDetailsAction struct { ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
CartSetCustomLineItemShippingDetailsAction implements the interface CartUpdateAction
func (CartSetCustomLineItemShippingDetailsAction) MarshalJSON ¶
func (obj CartSetCustomLineItemShippingDetailsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomLineItemTaxAmountAction ¶
type CartSetCustomLineItemTaxAmountAction struct { ExternalTaxAmount *ExternalTaxAmountDraft `json:"externalTaxAmount,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
CartSetCustomLineItemTaxAmountAction implements the interface CartUpdateAction
func (CartSetCustomLineItemTaxAmountAction) MarshalJSON ¶
func (obj CartSetCustomLineItemTaxAmountAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomLineItemTaxRateAction ¶
type CartSetCustomLineItemTaxRateAction struct { ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
CartSetCustomLineItemTaxRateAction implements the interface CartUpdateAction
func (CartSetCustomLineItemTaxRateAction) MarshalJSON ¶
func (obj CartSetCustomLineItemTaxRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomShippingMethodAction ¶
type CartSetCustomShippingMethodAction struct { TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"` ShippingRate *ShippingRateDraft `json:"shippingRate"` ShippingMethodName string `json:"shippingMethodName"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` }
CartSetCustomShippingMethodAction implements the interface CartUpdateAction
func (CartSetCustomShippingMethodAction) MarshalJSON ¶
func (obj CartSetCustomShippingMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomTypeAction ¶
type CartSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
CartSetCustomTypeAction implements the interface CartUpdateAction
func (CartSetCustomTypeAction) MarshalJSON ¶
func (obj CartSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomerEmailAction ¶
type CartSetCustomerEmailAction struct {
Email string `json:"email"`
}
CartSetCustomerEmailAction implements the interface CartUpdateAction
func (CartSetCustomerEmailAction) MarshalJSON ¶
func (obj CartSetCustomerEmailAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomerGroupAction ¶
type CartSetCustomerGroupAction struct {
CustomerGroup *CustomerGroupResourceIdentifier `json:"customerGroup,omitempty"`
}
CartSetCustomerGroupAction implements the interface CartUpdateAction
func (CartSetCustomerGroupAction) MarshalJSON ¶
func (obj CartSetCustomerGroupAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetCustomerIDAction ¶
type CartSetCustomerIDAction struct {
CustomerID string `json:"customerId,omitempty"`
}
CartSetCustomerIDAction implements the interface CartUpdateAction
func (CartSetCustomerIDAction) MarshalJSON ¶
func (obj CartSetCustomerIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetDeleteDaysAfterLastModificationAction ¶
type CartSetDeleteDaysAfterLastModificationAction struct {
DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"`
}
CartSetDeleteDaysAfterLastModificationAction implements the interface CartUpdateAction
func (CartSetDeleteDaysAfterLastModificationAction) MarshalJSON ¶
func (obj CartSetDeleteDaysAfterLastModificationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetLineItemCustomFieldAction ¶
type CartSetLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` LineItemID string `json:"lineItemId"` }
CartSetLineItemCustomFieldAction implements the interface CartUpdateAction
func (CartSetLineItemCustomFieldAction) MarshalJSON ¶
func (obj CartSetLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetLineItemCustomTypeAction ¶
type CartSetLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` LineItemID string `json:"lineItemId"` Fields *FieldContainer `json:"fields,omitempty"` }
CartSetLineItemCustomTypeAction implements the interface CartUpdateAction
func (CartSetLineItemCustomTypeAction) MarshalJSON ¶
func (obj CartSetLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetLineItemDistributionChannelAction ¶
type CartSetLineItemDistributionChannelAction struct { LineItemID string `json:"lineItemId"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` }
CartSetLineItemDistributionChannelAction implements the interface CartUpdateAction
func (CartSetLineItemDistributionChannelAction) MarshalJSON ¶
func (obj CartSetLineItemDistributionChannelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetLineItemPriceAction ¶
type CartSetLineItemPriceAction struct { LineItemID string `json:"lineItemId"` ExternalPrice *Money `json:"externalPrice,omitempty"` }
CartSetLineItemPriceAction implements the interface CartUpdateAction
func (CartSetLineItemPriceAction) MarshalJSON ¶
func (obj CartSetLineItemPriceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetLineItemShippingDetailsAction ¶
type CartSetLineItemShippingDetailsAction struct { ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` LineItemID string `json:"lineItemId"` }
CartSetLineItemShippingDetailsAction implements the interface CartUpdateAction
func (CartSetLineItemShippingDetailsAction) MarshalJSON ¶
func (obj CartSetLineItemShippingDetailsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetLineItemTaxAmountAction ¶
type CartSetLineItemTaxAmountAction struct { LineItemID string `json:"lineItemId"` ExternalTaxAmount *ExternalTaxAmountDraft `json:"externalTaxAmount,omitempty"` }
CartSetLineItemTaxAmountAction implements the interface CartUpdateAction
func (CartSetLineItemTaxAmountAction) MarshalJSON ¶
func (obj CartSetLineItemTaxAmountAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetLineItemTaxRateAction ¶
type CartSetLineItemTaxRateAction struct { LineItemID string `json:"lineItemId"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` }
CartSetLineItemTaxRateAction implements the interface CartUpdateAction
func (CartSetLineItemTaxRateAction) MarshalJSON ¶
func (obj CartSetLineItemTaxRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetLineItemTotalPriceAction ¶
type CartSetLineItemTotalPriceAction struct { LineItemID string `json:"lineItemId"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` }
CartSetLineItemTotalPriceAction implements the interface CartUpdateAction
func (CartSetLineItemTotalPriceAction) MarshalJSON ¶
func (obj CartSetLineItemTotalPriceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetLocaleAction ¶
type CartSetLocaleAction struct {
Locale string `json:"locale,omitempty"`
}
CartSetLocaleAction implements the interface CartUpdateAction
func (CartSetLocaleAction) MarshalJSON ¶
func (obj CartSetLocaleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetShippingAddressAction ¶
type CartSetShippingAddressAction struct {
Address *Address `json:"address,omitempty"`
}
CartSetShippingAddressAction implements the interface CartUpdateAction
func (CartSetShippingAddressAction) MarshalJSON ¶
func (obj CartSetShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetShippingMethodAction ¶
type CartSetShippingMethodAction struct { ShippingMethod *ShippingMethodResourceIdentifier `json:"shippingMethod,omitempty"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` }
CartSetShippingMethodAction implements the interface CartUpdateAction
func (CartSetShippingMethodAction) MarshalJSON ¶
func (obj CartSetShippingMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetShippingMethodTaxAmountAction ¶
type CartSetShippingMethodTaxAmountAction struct {
ExternalTaxAmount *ExternalTaxAmountDraft `json:"externalTaxAmount,omitempty"`
}
CartSetShippingMethodTaxAmountAction implements the interface CartUpdateAction
func (CartSetShippingMethodTaxAmountAction) MarshalJSON ¶
func (obj CartSetShippingMethodTaxAmountAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetShippingMethodTaxRateAction ¶
type CartSetShippingMethodTaxRateAction struct {
ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"`
}
CartSetShippingMethodTaxRateAction implements the interface CartUpdateAction
func (CartSetShippingMethodTaxRateAction) MarshalJSON ¶
func (obj CartSetShippingMethodTaxRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartSetShippingRateInputAction ¶
type CartSetShippingRateInputAction struct {
ShippingRateInput ShippingRateInputDraft `json:"shippingRateInput,omitempty"`
}
CartSetShippingRateInputAction implements the interface CartUpdateAction
func (CartSetShippingRateInputAction) MarshalJSON ¶
func (obj CartSetShippingRateInputAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*CartSetShippingRateInputAction) UnmarshalJSON ¶
func (obj *CartSetShippingRateInputAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartUpdate ¶
type CartUpdate struct { Version int `json:"version"` Actions []CartUpdateAction `json:"actions"` }
CartUpdate is a standalone struct
func (*CartUpdate) UnmarshalJSON ¶
func (obj *CartUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CartUpdateAction ¶
type CartUpdateAction interface{}
CartUpdateAction uses action as discriminator attribute
type CartUpdateItemShippingAddressAction ¶
type CartUpdateItemShippingAddressAction struct {
Address *Address `json:"address"`
}
CartUpdateItemShippingAddressAction implements the interface CartUpdateAction
func (CartUpdateItemShippingAddressAction) MarshalJSON ¶
func (obj CartUpdateItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartUpdateWithIDInput ¶
type CartUpdateWithIDInput struct { ID string Version int Actions []CartUpdateAction }
CartUpdateWithIDInput is input for function CartUpdateWithID
func (*CartUpdateWithIDInput) Validate ¶
func (input *CartUpdateWithIDInput) Validate() error
type CartValueTier ¶
type CartValueTier struct { Price *Money `json:"price"` MinimumCentAmount int `json:"minimumCentAmount"` IsMatching bool `json:"isMatching"` }
CartValueTier implements the interface ShippingRatePriceTier
func (CartValueTier) MarshalJSON ¶
func (obj CartValueTier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartValueType ¶
type CartValueType struct{}
CartValueType implements the interface ShippingRateInputType
func (CartValueType) MarshalJSON ¶
func (obj CartValueType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CartsConfiguration ¶
type CartsConfiguration struct {
CountryTaxRateFallbackEnabled bool `json:"countryTaxRateFallbackEnabled"`
}
CartsConfiguration is a standalone struct
type Category ¶
type Category struct { Version int `json:"version"` Slug *LocalizedString `json:"slug"` Parent *CategoryReference `json:"parent,omitempty"` OrderHint string `json:"orderHint"` Name *LocalizedString `json:"name"` MetaTitle *LocalizedString `json:"metaTitle,omitempty"` MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` MetaDescription *LocalizedString `json:"metaDescription,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` ExternalID string `json:"externalId,omitempty"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Assets []Asset `json:"assets,omitempty"` Ancestors []CategoryReference `json:"ancestors"` }
Category is of type BaseResource
type CategoryAddAssetAction ¶
type CategoryAddAssetAction struct { Position float64 `json:"position,omitempty"` Asset *AssetDraft `json:"asset"` }
CategoryAddAssetAction implements the interface CategoryUpdateAction
func (CategoryAddAssetAction) MarshalJSON ¶
func (obj CategoryAddAssetAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryChangeAssetNameAction ¶
type CategoryChangeAssetNameAction struct { Name *LocalizedString `json:"name"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
CategoryChangeAssetNameAction implements the interface CategoryUpdateAction
func (CategoryChangeAssetNameAction) MarshalJSON ¶
func (obj CategoryChangeAssetNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryChangeAssetOrderAction ¶
type CategoryChangeAssetOrderAction struct {
AssetOrder []string `json:"assetOrder"`
}
CategoryChangeAssetOrderAction implements the interface CategoryUpdateAction
func (CategoryChangeAssetOrderAction) MarshalJSON ¶
func (obj CategoryChangeAssetOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryChangeNameAction ¶
type CategoryChangeNameAction struct {
Name *LocalizedString `json:"name"`
}
CategoryChangeNameAction implements the interface CategoryUpdateAction
func (CategoryChangeNameAction) MarshalJSON ¶
func (obj CategoryChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryChangeOrderHintAction ¶
type CategoryChangeOrderHintAction struct {
OrderHint string `json:"orderHint"`
}
CategoryChangeOrderHintAction implements the interface CategoryUpdateAction
func (CategoryChangeOrderHintAction) MarshalJSON ¶
func (obj CategoryChangeOrderHintAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryChangeParentAction ¶
type CategoryChangeParentAction struct {
Parent *CategoryResourceIdentifier `json:"parent"`
}
CategoryChangeParentAction implements the interface CategoryUpdateAction
func (CategoryChangeParentAction) MarshalJSON ¶
func (obj CategoryChangeParentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryChangeSlugAction ¶
type CategoryChangeSlugAction struct {
Slug *LocalizedString `json:"slug"`
}
CategoryChangeSlugAction implements the interface CategoryUpdateAction
func (CategoryChangeSlugAction) MarshalJSON ¶
func (obj CategoryChangeSlugAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryCreatedMessage ¶
type CategoryCreatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Category *Category `json:"category"` }
CategoryCreatedMessage implements the interface Message
func (CategoryCreatedMessage) MarshalJSON ¶
func (obj CategoryCreatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryCreatedMessagePayload ¶
type CategoryCreatedMessagePayload struct {
Category *Category `json:"category"`
}
CategoryCreatedMessagePayload implements the interface MessagePayload
func (CategoryCreatedMessagePayload) MarshalJSON ¶
func (obj CategoryCreatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryDraft ¶
type CategoryDraft struct { Slug *LocalizedString `json:"slug"` Parent *CategoryResourceIdentifier `json:"parent,omitempty"` OrderHint string `json:"orderHint,omitempty"` Name *LocalizedString `json:"name"` MetaTitle *LocalizedString `json:"metaTitle,omitempty"` MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` MetaDescription *LocalizedString `json:"metaDescription,omitempty"` Key string `json:"key,omitempty"` ExternalID string `json:"externalId,omitempty"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` Assets []AssetDraft `json:"assets,omitempty"` }
CategoryDraft is a standalone struct
type CategoryPagedQueryResponse ¶
type CategoryPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Category `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
CategoryPagedQueryResponse is a standalone struct
type CategoryReference ¶
CategoryReference implements the interface Reference
func (CategoryReference) MarshalJSON ¶
func (obj CategoryReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryRemoveAssetAction ¶
type CategoryRemoveAssetAction struct { AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
CategoryRemoveAssetAction implements the interface CategoryUpdateAction
func (CategoryRemoveAssetAction) MarshalJSON ¶
func (obj CategoryRemoveAssetAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryResourceIdentifier ¶
type CategoryResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
CategoryResourceIdentifier implements the interface ResourceIdentifier
func (CategoryResourceIdentifier) MarshalJSON ¶
func (obj CategoryResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetAssetCustomFieldAction ¶
type CategorySetAssetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
CategorySetAssetCustomFieldAction implements the interface CategoryUpdateAction
func (CategorySetAssetCustomFieldAction) MarshalJSON ¶
func (obj CategorySetAssetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetAssetCustomTypeAction ¶
type CategorySetAssetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields interface{} `json:"fields,omitempty"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
CategorySetAssetCustomTypeAction implements the interface CategoryUpdateAction
func (CategorySetAssetCustomTypeAction) MarshalJSON ¶
func (obj CategorySetAssetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetAssetDescriptionAction ¶
type CategorySetAssetDescriptionAction struct { Description *LocalizedString `json:"description,omitempty"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
CategorySetAssetDescriptionAction implements the interface CategoryUpdateAction
func (CategorySetAssetDescriptionAction) MarshalJSON ¶
func (obj CategorySetAssetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetAssetKeyAction ¶
type CategorySetAssetKeyAction struct { AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId"` }
CategorySetAssetKeyAction implements the interface CategoryUpdateAction
func (CategorySetAssetKeyAction) MarshalJSON ¶
func (obj CategorySetAssetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetAssetSourcesAction ¶
type CategorySetAssetSourcesAction struct { Sources []AssetSource `json:"sources"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
CategorySetAssetSourcesAction implements the interface CategoryUpdateAction
func (CategorySetAssetSourcesAction) MarshalJSON ¶
func (obj CategorySetAssetSourcesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetAssetTagsAction ¶
type CategorySetAssetTagsAction struct { Tags []string `json:"tags,omitempty"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
CategorySetAssetTagsAction implements the interface CategoryUpdateAction
func (CategorySetAssetTagsAction) MarshalJSON ¶
func (obj CategorySetAssetTagsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetCustomFieldAction ¶
type CategorySetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
CategorySetCustomFieldAction implements the interface CategoryUpdateAction
func (CategorySetCustomFieldAction) MarshalJSON ¶
func (obj CategorySetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetCustomTypeAction ¶
type CategorySetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
CategorySetCustomTypeAction implements the interface CategoryUpdateAction
func (CategorySetCustomTypeAction) MarshalJSON ¶
func (obj CategorySetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetDescriptionAction ¶
type CategorySetDescriptionAction struct {
Description *LocalizedString `json:"description,omitempty"`
}
CategorySetDescriptionAction implements the interface CategoryUpdateAction
func (CategorySetDescriptionAction) MarshalJSON ¶
func (obj CategorySetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetExternalIDAction ¶
type CategorySetExternalIDAction struct {
ExternalID string `json:"externalId,omitempty"`
}
CategorySetExternalIDAction implements the interface CategoryUpdateAction
func (CategorySetExternalIDAction) MarshalJSON ¶
func (obj CategorySetExternalIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetKeyAction ¶
type CategorySetKeyAction struct {
Key string `json:"key,omitempty"`
}
CategorySetKeyAction implements the interface CategoryUpdateAction
func (CategorySetKeyAction) MarshalJSON ¶
func (obj CategorySetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetMetaDescriptionAction ¶
type CategorySetMetaDescriptionAction struct {
MetaDescription *LocalizedString `json:"metaDescription,omitempty"`
}
CategorySetMetaDescriptionAction implements the interface CategoryUpdateAction
func (CategorySetMetaDescriptionAction) MarshalJSON ¶
func (obj CategorySetMetaDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetMetaKeywordsAction ¶
type CategorySetMetaKeywordsAction struct {
MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"`
}
CategorySetMetaKeywordsAction implements the interface CategoryUpdateAction
func (CategorySetMetaKeywordsAction) MarshalJSON ¶
func (obj CategorySetMetaKeywordsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySetMetaTitleAction ¶
type CategorySetMetaTitleAction struct {
MetaTitle *LocalizedString `json:"metaTitle,omitempty"`
}
CategorySetMetaTitleAction implements the interface CategoryUpdateAction
func (CategorySetMetaTitleAction) MarshalJSON ¶
func (obj CategorySetMetaTitleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySlugChangedMessage ¶
type CategorySlugChangedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Slug *LocalizedString `json:"slug"` }
CategorySlugChangedMessage implements the interface Message
func (CategorySlugChangedMessage) MarshalJSON ¶
func (obj CategorySlugChangedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategorySlugChangedMessagePayload ¶
type CategorySlugChangedMessagePayload struct {
Slug *LocalizedString `json:"slug"`
}
CategorySlugChangedMessagePayload implements the interface MessagePayload
func (CategorySlugChangedMessagePayload) MarshalJSON ¶
func (obj CategorySlugChangedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CategoryUpdate ¶
type CategoryUpdate struct { Version int `json:"version"` Actions []CategoryUpdateAction `json:"actions"` }
CategoryUpdate is a standalone struct
func (*CategoryUpdate) UnmarshalJSON ¶
func (obj *CategoryUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CategoryUpdateAction ¶
type CategoryUpdateAction interface{}
CategoryUpdateAction uses action as discriminator attribute
type CategoryUpdateWithIDInput ¶
type CategoryUpdateWithIDInput struct { ID string Version int Actions []CategoryUpdateAction }
CategoryUpdateWithIDInput is input for function CategoryUpdateWithID
func (*CategoryUpdateWithIDInput) Validate ¶
func (input *CategoryUpdateWithIDInput) Validate() error
type CategoryUpdateWithKeyInput ¶
type CategoryUpdateWithKeyInput struct { Key string Version int Actions []CategoryUpdateAction }
CategoryUpdateWithKeyInput is input for function CategoryUpdateWithKey
func (*CategoryUpdateWithKeyInput) Validate ¶
func (input *CategoryUpdateWithKeyInput) Validate() error
type CentPrecisionMoney ¶
type CentPrecisionMoney struct { FractionDigits float64 `json:"fractionDigits"` CurrencyCode CurrencyCode `json:"currencyCode"` CentAmount int `json:"centAmount"` }
CentPrecisionMoney implements the interface TypedMoney
func (CentPrecisionMoney) MarshalJSON ¶
func (obj CentPrecisionMoney) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CentPrecisionMoneyDraft ¶
type CentPrecisionMoneyDraft struct { CurrencyCode CurrencyCode `json:"currencyCode"` CentAmount int `json:"centAmount"` }
CentPrecisionMoneyDraft implements the interface TypedMoneyDraft
func (CentPrecisionMoneyDraft) MarshalJSON ¶
func (obj CentPrecisionMoneyDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChangeSubscription ¶
type ChangeSubscription struct {
ResourceTypeID string `json:"resourceTypeId"`
}
ChangeSubscription is a standalone struct
type Channel ¶
type Channel struct { Version int `json:"version"` Roles []ChannelRoleEnum `json:"roles"` ReviewRatingStatistics *ReviewRatingStatistics `json:"reviewRatingStatistics,omitempty"` Name *LocalizedString `json:"name,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key"` ID string `json:"id"` GeoLocation GeoJSON `json:"geoLocation,omitempty"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Address *Address `json:"address,omitempty"` }
Channel is of type BaseResource
func (*Channel) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ChannelAddRolesAction ¶
type ChannelAddRolesAction struct {
Roles []ChannelRoleEnum `json:"roles"`
}
ChannelAddRolesAction implements the interface ChannelUpdateAction
func (ChannelAddRolesAction) MarshalJSON ¶
func (obj ChannelAddRolesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelChangeDescriptionAction ¶
type ChannelChangeDescriptionAction struct {
Description *LocalizedString `json:"description"`
}
ChannelChangeDescriptionAction implements the interface ChannelUpdateAction
func (ChannelChangeDescriptionAction) MarshalJSON ¶
func (obj ChannelChangeDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelChangeKeyAction ¶
type ChannelChangeKeyAction struct {
Key string `json:"key"`
}
ChannelChangeKeyAction implements the interface ChannelUpdateAction
func (ChannelChangeKeyAction) MarshalJSON ¶
func (obj ChannelChangeKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelChangeNameAction ¶
type ChannelChangeNameAction struct {
Name *LocalizedString `json:"name"`
}
ChannelChangeNameAction implements the interface ChannelUpdateAction
func (ChannelChangeNameAction) MarshalJSON ¶
func (obj ChannelChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelDraft ¶
type ChannelDraft struct { Roles []ChannelRoleEnum `json:"roles,omitempty"` Name *LocalizedString `json:"name,omitempty"` Key string `json:"key"` GeoLocation GeoJSON `json:"geoLocation,omitempty"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` Address *Address `json:"address,omitempty"` }
ChannelDraft is a standalone struct
func (*ChannelDraft) UnmarshalJSON ¶
func (obj *ChannelDraft) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ChannelPagedQueryResponse ¶
type ChannelPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Channel `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
ChannelPagedQueryResponse is a standalone struct
type ChannelReference ¶
ChannelReference implements the interface Reference
func (ChannelReference) MarshalJSON ¶
func (obj ChannelReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelRemoveRolesAction ¶
type ChannelRemoveRolesAction struct {
Roles []ChannelRoleEnum `json:"roles"`
}
ChannelRemoveRolesAction implements the interface ChannelUpdateAction
func (ChannelRemoveRolesAction) MarshalJSON ¶
func (obj ChannelRemoveRolesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelResourceIdentifier ¶
type ChannelResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
ChannelResourceIdentifier implements the interface ResourceIdentifier
func (ChannelResourceIdentifier) MarshalJSON ¶
func (obj ChannelResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelRoleEnum ¶
type ChannelRoleEnum string
ChannelRoleEnum is an enum type
const ( ChannelRoleEnumInventorySupply ChannelRoleEnum = "InventorySupply" ChannelRoleEnumProductDistribution ChannelRoleEnum = "ProductDistribution" ChannelRoleEnumOrderExport ChannelRoleEnum = "OrderExport" ChannelRoleEnumOrderImport ChannelRoleEnum = "OrderImport" ChannelRoleEnumPrimary ChannelRoleEnum = "Primary" )
Enum values for ChannelRoleEnum
type ChannelSetAddressAction ¶
type ChannelSetAddressAction struct {
Address *Address `json:"address,omitempty"`
}
ChannelSetAddressAction implements the interface ChannelUpdateAction
func (ChannelSetAddressAction) MarshalJSON ¶
func (obj ChannelSetAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelSetCustomFieldAction ¶
type ChannelSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
ChannelSetCustomFieldAction implements the interface ChannelUpdateAction
func (ChannelSetCustomFieldAction) MarshalJSON ¶
func (obj ChannelSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelSetCustomTypeAction ¶
type ChannelSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
ChannelSetCustomTypeAction implements the interface ChannelUpdateAction
func (ChannelSetCustomTypeAction) MarshalJSON ¶
func (obj ChannelSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelSetGeoLocationAction ¶
type ChannelSetGeoLocationAction struct {
GeoLocation GeoJSON `json:"geoLocation,omitempty"`
}
ChannelSetGeoLocationAction implements the interface ChannelUpdateAction
func (ChannelSetGeoLocationAction) MarshalJSON ¶
func (obj ChannelSetGeoLocationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ChannelSetGeoLocationAction) UnmarshalJSON ¶
func (obj *ChannelSetGeoLocationAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ChannelSetRolesAction ¶
type ChannelSetRolesAction struct {
Roles []ChannelRoleEnum `json:"roles"`
}
ChannelSetRolesAction implements the interface ChannelUpdateAction
func (ChannelSetRolesAction) MarshalJSON ¶
func (obj ChannelSetRolesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ChannelUpdate ¶
type ChannelUpdate struct { Version int `json:"version"` Actions []ChannelUpdateAction `json:"actions"` }
ChannelUpdate is a standalone struct
func (*ChannelUpdate) UnmarshalJSON ¶
func (obj *ChannelUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ChannelUpdateAction ¶
type ChannelUpdateAction interface{}
ChannelUpdateAction uses action as discriminator attribute
type ChannelUpdateWithIDInput ¶
type ChannelUpdateWithIDInput struct { ID string Version int Actions []ChannelUpdateAction }
ChannelUpdateWithIDInput is input for function ChannelUpdateWithID
func (*ChannelUpdateWithIDInput) Validate ¶
func (input *ChannelUpdateWithIDInput) Validate() error
type ClassificationShippingRateInput ¶
type ClassificationShippingRateInput struct { Label *LocalizedString `json:"label"` Key string `json:"key"` }
ClassificationShippingRateInput implements the interface ShippingRateInput
func (ClassificationShippingRateInput) MarshalJSON ¶
func (obj ClassificationShippingRateInput) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ClassificationShippingRateInputDraft ¶
type ClassificationShippingRateInputDraft struct {
Key string `json:"key"`
}
ClassificationShippingRateInputDraft implements the interface ShippingRateInputDraft
func (ClassificationShippingRateInputDraft) MarshalJSON ¶
func (obj ClassificationShippingRateInputDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client bundles the logic for sending requests to the CommerceTools platform.
func NewClient ¶
func NewClient(cfg *ClientConfig) (*Client, error)
NewClient creates a new client based on the provided ClientConfig
func (*Client) APIClientCreate ¶
func (client *Client) APIClientCreate(ctx context.Context, draft *APIClientDraft, opts ...RequestOption) (result *APIClient, err error)
APIClientCreate creates a new instance of type APIClient
func (*Client) APIClientDeleteWithID ¶
func (client *Client) APIClientDeleteWithID(ctx context.Context, id string, opts ...RequestOption) (result *APIClient, err error)
APIClientDeleteWithID Delete ApiClient by ID
func (*Client) APIClientGetWithID ¶
func (client *Client) APIClientGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *APIClient, err error)
APIClientGetWithID Get ApiClient by ID
func (*Client) APIClientQuery ¶
func (client *Client) APIClientQuery(ctx context.Context, input *QueryInput) (result *APIClientPagedQueryResponse, err error)
APIClientQuery allows querying for type ApiClient
func (*Client) CartCreate ¶
func (client *Client) CartCreate(ctx context.Context, draft *CartDraft, opts ...RequestOption) (result *Cart, err error)
CartCreate creates a new instance of type Cart
func (*Client) CartDeleteWithID ¶
func (client *Client) CartDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, opts ...RequestOption) (result *Cart, err error)
CartDeleteWithID for type Cart
func (*Client) CartDiscountCreate ¶
func (client *Client) CartDiscountCreate(ctx context.Context, draft *CartDiscountDraft, opts ...RequestOption) (result *CartDiscount, err error)
CartDiscountCreate creates a new instance of type CartDiscount
func (*Client) CartDiscountDeleteWithID ¶
func (client *Client) CartDiscountDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *CartDiscount, err error)
CartDiscountDeleteWithID for type CartDiscount
func (*Client) CartDiscountDeleteWithKey ¶
func (client *Client) CartDiscountDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *CartDiscount, err error)
CartDiscountDeleteWithKey for type CartDiscount
func (*Client) CartDiscountGetWithID ¶
func (client *Client) CartDiscountGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *CartDiscount, err error)
CartDiscountGetWithID for type CartDiscount
func (*Client) CartDiscountGetWithKey ¶
func (client *Client) CartDiscountGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *CartDiscount, err error)
CartDiscountGetWithKey for type CartDiscount
func (*Client) CartDiscountQuery ¶
func (client *Client) CartDiscountQuery(ctx context.Context, input *QueryInput) (result *CartDiscountPagedQueryResponse, err error)
CartDiscountQuery allows querying for type CartDiscount
func (*Client) CartDiscountUpdateWithID ¶
func (client *Client) CartDiscountUpdateWithID(ctx context.Context, input *CartDiscountUpdateWithIDInput, opts ...RequestOption) (result *CartDiscount, err error)
CartDiscountUpdateWithID for type CartDiscount
func (*Client) CartDiscountUpdateWithKey ¶
func (client *Client) CartDiscountUpdateWithKey(ctx context.Context, input *CartDiscountUpdateWithKeyInput, opts ...RequestOption) (result *CartDiscount, err error)
CartDiscountUpdateWithKey for type CartDiscount
func (*Client) CartGetWithCustomerID ¶
func (client *Client) CartGetWithCustomerID(ctx context.Context, customerId string, opts ...RequestOption) (result *Cart, err error)
CartGetWithCustomerID Retrieves the active cart of the customer that has been modified most recently. It does not consider carts with CartOrigin Merchant. If no active cart exists, a 404 Not Found error is returned.
The cart may not contain up-to-date prices, discounts etc. If you want to ensure they're up-to-date, send an Update request with the Recalculate update action instead.
func (*Client) CartGetWithID ¶
func (client *Client) CartGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Cart, err error)
CartGetWithID The cart may not contain up-to-date prices, discounts etc. If you want to ensure they're up-to-date, send an Update request with the Recalculate update action instead.
func (*Client) CartQuery ¶
func (client *Client) CartQuery(ctx context.Context, input *QueryInput) (result *CartPagedQueryResponse, err error)
CartQuery allows querying for type Cart
func (*Client) CartReplicate ¶
func (client *Client) CartReplicate(ctx context.Context, value *ReplicaCartDraft, opts ...RequestOption) (result *Cart, err error)
CartReplicate for type ReplicaCartDraft
func (*Client) CartUpdateWithID ¶
func (client *Client) CartUpdateWithID(ctx context.Context, input *CartUpdateWithIDInput, opts ...RequestOption) (result *Cart, err error)
CartUpdateWithID for type Cart
func (*Client) CategoryCreate ¶
func (client *Client) CategoryCreate(ctx context.Context, draft *CategoryDraft, opts ...RequestOption) (result *Category, err error)
CategoryCreate creates a new instance of type Category
func (*Client) CategoryDeleteWithID ¶
func (client *Client) CategoryDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Category, err error)
CategoryDeleteWithID for type Category
func (*Client) CategoryDeleteWithKey ¶
func (client *Client) CategoryDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Category, err error)
CategoryDeleteWithKey for type Category
func (*Client) CategoryGetWithID ¶
func (client *Client) CategoryGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Category, err error)
CategoryGetWithID for type Category
func (*Client) CategoryGetWithKey ¶
func (client *Client) CategoryGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Category, err error)
CategoryGetWithKey for type Category
func (*Client) CategoryQuery ¶
func (client *Client) CategoryQuery(ctx context.Context, input *QueryInput) (result *CategoryPagedQueryResponse, err error)
CategoryQuery allows querying for type Category
func (*Client) CategoryUpdateWithID ¶
func (client *Client) CategoryUpdateWithID(ctx context.Context, input *CategoryUpdateWithIDInput, opts ...RequestOption) (result *Category, err error)
CategoryUpdateWithID for type Category
func (*Client) CategoryUpdateWithKey ¶
func (client *Client) CategoryUpdateWithKey(ctx context.Context, input *CategoryUpdateWithKeyInput, opts ...RequestOption) (result *Category, err error)
CategoryUpdateWithKey for type Category
func (*Client) ChannelCreate ¶
func (client *Client) ChannelCreate(ctx context.Context, draft *ChannelDraft, opts ...RequestOption) (result *Channel, err error)
ChannelCreate creates a new instance of type Channel
func (*Client) ChannelDeleteWithID ¶
func (client *Client) ChannelDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Channel, err error)
ChannelDeleteWithID for type Channel
func (*Client) ChannelGetWithID ¶
func (client *Client) ChannelGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Channel, err error)
ChannelGetWithID for type Channel
func (*Client) ChannelQuery ¶
func (client *Client) ChannelQuery(ctx context.Context, input *QueryInput) (result *ChannelPagedQueryResponse, err error)
ChannelQuery allows querying for type Channel
func (*Client) ChannelUpdateWithID ¶
func (client *Client) ChannelUpdateWithID(ctx context.Context, input *ChannelUpdateWithIDInput, opts ...RequestOption) (result *Channel, err error)
ChannelUpdateWithID for type Channel
func (*Client) CustomObjectCreate ¶
func (client *Client) CustomObjectCreate(ctx context.Context, draft *CustomObjectDraft, opts ...RequestOption) (result *CustomObject, err error)
CustomObjectCreate creates a new instance of type CustomObject
func (*Client) CustomObjectDeleteWithContainerAndKey ¶
func (client *Client) CustomObjectDeleteWithContainerAndKey(ctx context.Context, container string, key string, version int, dataErasure bool, opts ...RequestOption) (result *CustomObject, err error)
CustomObjectDeleteWithContainerAndKey Delete CustomObject by container and key
func (*Client) CustomObjectGetWithContainer ¶
func (client *Client) CustomObjectGetWithContainer(ctx context.Context, container string, opts ...RequestOption) (result *CustomObject, err error)
CustomObjectGetWithContainer for type CustomObject
func (*Client) CustomObjectGetWithContainerAndKey ¶
func (client *Client) CustomObjectGetWithContainerAndKey(ctx context.Context, container string, key string, opts ...RequestOption) (result *CustomObject, err error)
CustomObjectGetWithContainerAndKey Get CustomObject by container and key
func (*Client) CustomObjectQuery ¶
func (client *Client) CustomObjectQuery(ctx context.Context, input *QueryInput) (result *CustomObjectPagedQueryResponse, err error)
CustomObjectQuery allows querying for type CustomObject
The query endpoint allows to retrieve custom objects in a specific container or all custom objects. For performance reasons, it is highly advisable to query only for custom objects in a container by using the container field in the where predicate.
func (*Client) CustomerCreate ¶
func (client *Client) CustomerCreate(ctx context.Context, draft *CustomerDraft, opts ...RequestOption) (result *CustomerCreatedResponse, err error)
CustomerCreate creates a new instance of type Customer
func (*Client) CustomerDeleteWithID ¶
func (client *Client) CustomerDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, opts ...RequestOption) (result *Customer, err error)
CustomerDeleteWithID for type Customer
func (*Client) CustomerDeleteWithKey ¶
func (client *Client) CustomerDeleteWithKey(ctx context.Context, key string, version int, dataErasure bool, opts ...RequestOption) (result *Customer, err error)
CustomerDeleteWithKey for type Customer
func (*Client) CustomerEmailToken ¶
func (client *Client) CustomerEmailToken(ctx context.Context, value *CustomerCreateEmailToken, opts ...RequestOption) (result *CustomerToken, err error)
CustomerEmailToken To verify a customer's email, an email token can be created. This should be embedded in a link and sent to the customer via email. When the customer clicks on the link, the "verify customer's email" endpoint should be called, which sets customer's isVerifiedEmail field to true.
func (*Client) CustomerEmailconfirm ¶
func (client *Client) CustomerEmailconfirm(ctx context.Context, value *CustomerEmailVerify, opts ...RequestOption) (result *Customer, err error)
CustomerEmailconfirm for type CustomerEmailVerify
func (*Client) CustomerGetWithEmailToken ¶
func (client *Client) CustomerGetWithEmailToken(ctx context.Context, emailToken string, opts ...RequestOption) (result *Customer, err error)
CustomerGetWithEmailToken for type Customer
func (*Client) CustomerGetWithID ¶
func (client *Client) CustomerGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Customer, err error)
CustomerGetWithID for type Customer
func (*Client) CustomerGetWithKey ¶
func (client *Client) CustomerGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Customer, err error)
CustomerGetWithKey for type Customer
func (*Client) CustomerGetWithPasswordToken ¶
func (client *Client) CustomerGetWithPasswordToken(ctx context.Context, passwordToken string, opts ...RequestOption) (result *Customer, err error)
CustomerGetWithPasswordToken for type Customer
func (*Client) CustomerGroupCreate ¶
func (client *Client) CustomerGroupCreate(ctx context.Context, draft *CustomerGroupDraft, opts ...RequestOption) (result *CustomerGroup, err error)
CustomerGroupCreate creates a new instance of type CustomerGroup
func (*Client) CustomerGroupDeleteWithID ¶
func (client *Client) CustomerGroupDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *CustomerGroup, err error)
CustomerGroupDeleteWithID for type CustomerGroup
func (*Client) CustomerGroupDeleteWithKey ¶
func (client *Client) CustomerGroupDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *CustomerGroup, err error)
CustomerGroupDeleteWithKey for type CustomerGroup
func (*Client) CustomerGroupGetWithID ¶
func (client *Client) CustomerGroupGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *CustomerGroup, err error)
CustomerGroupGetWithID for type CustomerGroup
func (*Client) CustomerGroupGetWithKey ¶
func (client *Client) CustomerGroupGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *CustomerGroup, err error)
CustomerGroupGetWithKey Gets a customer group by Key.
func (*Client) CustomerGroupQuery ¶
func (client *Client) CustomerGroupQuery(ctx context.Context, input *QueryInput) (result *CustomerGroupPagedQueryResponse, err error)
CustomerGroupQuery allows querying for type CustomerGroup
func (*Client) CustomerGroupUpdateWithID ¶
func (client *Client) CustomerGroupUpdateWithID(ctx context.Context, input *CustomerGroupUpdateWithIDInput, opts ...RequestOption) (result *CustomerGroup, err error)
CustomerGroupUpdateWithID for type CustomerGroup
func (*Client) CustomerGroupUpdateWithKey ¶
func (client *Client) CustomerGroupUpdateWithKey(ctx context.Context, input *CustomerGroupUpdateWithKeyInput, opts ...RequestOption) (result *CustomerGroup, err error)
CustomerGroupUpdateWithKey for type CustomerGroup
func (*Client) CustomerPassword ¶
func (client *Client) CustomerPassword(ctx context.Context, value *CustomerChangePassword, opts ...RequestOption) (result *Customer, err error)
CustomerPassword for type CustomerChangePassword
func (*Client) CustomerPasswordToken ¶
func (client *Client) CustomerPasswordToken(ctx context.Context, value *CustomerCreatePasswordResetToken, opts ...RequestOption) (result *CustomerToken, err error)
CustomerPasswordToken The following workflow can be used to reset the customer's password:
* Create a password reset token and send it embedded in a link to the customer. * When the customer clicks on the link, the customer is retrieved with the token. * The customer enters a new password and the "reset customer's password" endpoint is called.
func (*Client) CustomerPasswordreset ¶
func (client *Client) CustomerPasswordreset(ctx context.Context, value *CustomerResetPassword, opts ...RequestOption) (result *Customer, err error)
CustomerPasswordreset for type CustomerResetPassword
func (*Client) CustomerQuery ¶
func (client *Client) CustomerQuery(ctx context.Context, input *QueryInput) (result *CustomerPagedQueryResponse, err error)
CustomerQuery allows querying for type Customer
func (*Client) CustomerUpdateWithID ¶
func (client *Client) CustomerUpdateWithID(ctx context.Context, input *CustomerUpdateWithIDInput, opts ...RequestOption) (result *Customer, err error)
CustomerUpdateWithID for type Customer
func (*Client) CustomerUpdateWithKey ¶
func (client *Client) CustomerUpdateWithKey(ctx context.Context, input *CustomerUpdateWithKeyInput, opts ...RequestOption) (result *Customer, err error)
CustomerUpdateWithKey for type Customer
func (*Client) DiscountCodeCreate ¶
func (client *Client) DiscountCodeCreate(ctx context.Context, draft *DiscountCodeDraft, opts ...RequestOption) (result *DiscountCode, err error)
DiscountCodeCreate creates a new instance of type DiscountCode
func (*Client) DiscountCodeDeleteWithID ¶
func (client *Client) DiscountCodeDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, opts ...RequestOption) (result *DiscountCode, err error)
DiscountCodeDeleteWithID for type DiscountCode
func (*Client) DiscountCodeGetWithID ¶
func (client *Client) DiscountCodeGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *DiscountCode, err error)
DiscountCodeGetWithID for type DiscountCode
func (*Client) DiscountCodeQuery ¶
func (client *Client) DiscountCodeQuery(ctx context.Context, input *QueryInput) (result *DiscountCodePagedQueryResponse, err error)
DiscountCodeQuery allows querying for type DiscountCode
func (*Client) DiscountCodeUpdateWithID ¶
func (client *Client) DiscountCodeUpdateWithID(ctx context.Context, input *DiscountCodeUpdateWithIDInput, opts ...RequestOption) (result *DiscountCode, err error)
DiscountCodeUpdateWithID for type DiscountCode
func (*Client) Endpoints ¶
func (c *Client) Endpoints() ClientEndpoints
func (*Client) ExtensionCreate ¶
func (client *Client) ExtensionCreate(ctx context.Context, draft *ExtensionDraft, opts ...RequestOption) (result *Extension, err error)
ExtensionCreate creates a new instance of type Extension
func (*Client) ExtensionDeleteWithID ¶
func (client *Client) ExtensionDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Extension, err error)
ExtensionDeleteWithID for type Extension
func (*Client) ExtensionDeleteWithKey ¶
func (client *Client) ExtensionDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Extension, err error)
ExtensionDeleteWithKey for type Extension
func (*Client) ExtensionGetWithID ¶
func (client *Client) ExtensionGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Extension, err error)
ExtensionGetWithID Retrieves the representation of an extension by its id.
func (*Client) ExtensionGetWithKey ¶
func (client *Client) ExtensionGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Extension, err error)
ExtensionGetWithKey Retrieves the representation of an extension by its key.
func (*Client) ExtensionQuery ¶
func (client *Client) ExtensionQuery(ctx context.Context, input *QueryInput) (result *ExtensionPagedQueryResponse, err error)
ExtensionQuery allows querying for type Extension
func (*Client) ExtensionUpdateWithID ¶
func (client *Client) ExtensionUpdateWithID(ctx context.Context, input *ExtensionUpdateWithIDInput, opts ...RequestOption) (result *Extension, err error)
ExtensionUpdateWithID for type Extension
func (*Client) ExtensionUpdateWithKey ¶
func (client *Client) ExtensionUpdateWithKey(ctx context.Context, input *ExtensionUpdateWithKeyInput, opts ...RequestOption) (result *Extension, err error)
ExtensionUpdateWithKey for type Extension
func (*Client) InventoryEntryCreate ¶
func (client *Client) InventoryEntryCreate(ctx context.Context, draft *InventoryEntryDraft, opts ...RequestOption) (result *InventoryEntry, err error)
InventoryEntryCreate creates a new instance of type InventoryEntry
func (*Client) InventoryEntryDeleteWithID ¶
func (client *Client) InventoryEntryDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *InventoryEntry, err error)
InventoryEntryDeleteWithID for type InventoryEntry
func (*Client) InventoryEntryGetWithID ¶
func (client *Client) InventoryEntryGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *InventoryEntry, err error)
InventoryEntryGetWithID for type InventoryEntry
func (*Client) InventoryEntryQuery ¶
func (client *Client) InventoryEntryQuery(ctx context.Context, input *QueryInput) (result *InventoryPagedQueryResponse, err error)
InventoryEntryQuery allows querying for type InventoryEntry
func (*Client) InventoryEntryUpdateWithID ¶
func (client *Client) InventoryEntryUpdateWithID(ctx context.Context, input *InventoryEntryUpdateWithIDInput, opts ...RequestOption) (result *InventoryEntry, err error)
InventoryEntryUpdateWithID for type InventoryEntry
func (*Client) Login ¶
func (client *Client) Login(ctx context.Context, value *CustomerSignin, opts ...RequestOption) (result *CustomerSignInResult, err error)
Login Authenticate Customer (Sign In). Retrieves the authenticated customer (a customer that matches the given email/password pair). If used with an access token for Anonymous Sessions, all orders and carts belonging to the anonymousId will be assigned to the newly created customer. If a cart is is returned as part of the CustomerSignInResult, it has been recalculated (It will have up-to-date prices, taxes and discounts, and invalid line items have been removed.).
func (*Client) MessageGetWithID ¶
func (client *Client) MessageGetWithID(ctx context.Context, id string, opts ...RequestOption) (result Message, err error)
MessageGetWithID for type Message
func (*Client) MessageQuery ¶
func (client *Client) MessageQuery(ctx context.Context, input *QueryInput) (result *MessagePagedQueryResponse, err error)
MessageQuery allows querying for type Message
func (*Client) MyActiveCart ¶
func (client *Client) MyActiveCart(ctx context.Context, opts ...RequestOption) (result *MyCart, err error)
MyActiveCart for type
func (*Client) MyCartCreate ¶
func (client *Client) MyCartCreate(ctx context.Context, draft *MyCartDraft, opts ...RequestOption) (result *MyCart, err error)
MyCartCreate creates a new instance of type MyCart
func (*Client) MyCartDeleteWithID ¶
func (client *Client) MyCartDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *MyCart, err error)
MyCartDeleteWithID for type MyCart
func (*Client) MyCartGetWithID ¶
func (client *Client) MyCartGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *MyCart, err error)
MyCartGetWithID for type MyCart
func (*Client) MyCartQuery ¶
func (client *Client) MyCartQuery(ctx context.Context, input *QueryInput) (result *CartPagedQueryResponse, err error)
MyCartQuery allows querying for type
func (*Client) MyCartUpdateWithID ¶
func (client *Client) MyCartUpdateWithID(ctx context.Context, input *MyCartUpdateWithIDInput, opts ...RequestOption) (result *MyCart, err error)
MyCartUpdateWithID for type MyCart
func (*Client) MyLogin ¶
func (client *Client) MyLogin(ctx context.Context, opts ...RequestOption) (result *CustomerSignInResult, err error)
MyLogin for type
func (*Client) MyOrderCreate ¶
func (client *Client) MyOrderCreate(ctx context.Context, draft *MyOrderFromCartDraft, opts ...RequestOption) (result *MyOrder, err error)
MyOrderCreate creates a new instance of type MyOrder
func (*Client) MyOrderGetWithID ¶
func (client *Client) MyOrderGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *MyOrder, err error)
MyOrderGetWithID for type MyOrder
func (*Client) MyOrderQuery ¶
func (client *Client) MyOrderQuery(ctx context.Context, input *QueryInput) (result *OrderPagedQueryResponse, err error)
MyOrderQuery allows querying for type
func (*Client) MyPaymentCreate ¶
func (client *Client) MyPaymentCreate(ctx context.Context, draft *MyPaymentDraft, opts ...RequestOption) (result *MyPayment, err error)
MyPaymentCreate creates a new instance of type MyPayment
func (*Client) MyPaymentDeleteWithID ¶
func (client *Client) MyPaymentDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *MyPayment, err error)
MyPaymentDeleteWithID for type MyPayment
func (*Client) MyPaymentDeleteWithKey ¶
func (client *Client) MyPaymentDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *MyPayment, err error)
MyPaymentDeleteWithKey for type MyPayment
func (*Client) MyPaymentGetWithID ¶
func (client *Client) MyPaymentGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *MyPayment, err error)
MyPaymentGetWithID for type MyPayment
func (*Client) MyPaymentGetWithKey ¶
func (client *Client) MyPaymentGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *MyPayment, err error)
MyPaymentGetWithKey for type MyPayment
func (*Client) MyPaymentQuery ¶
func (client *Client) MyPaymentQuery(ctx context.Context, input *QueryInput) (result *MyPaymentPagedQueryResponse, err error)
MyPaymentQuery allows querying for type
func (*Client) MyPaymentUpdateWithID ¶
func (client *Client) MyPaymentUpdateWithID(ctx context.Context, input *MyPaymentUpdateWithIDInput, opts ...RequestOption) (result *MyPayment, err error)
MyPaymentUpdateWithID for type MyPayment
func (*Client) MyPaymentUpdateWithKey ¶
func (client *Client) MyPaymentUpdateWithKey(ctx context.Context, input *MyPaymentUpdateWithKeyInput, opts ...RequestOption) (result *MyPayment, err error)
MyPaymentUpdateWithKey for type MyPayment
func (*Client) MyReset ¶
func (client *Client) MyReset(ctx context.Context, opts ...RequestOption) (result *MyCustomer, err error)
MyReset for type
func (*Client) MyShoppingListCreate ¶
func (client *Client) MyShoppingListCreate(ctx context.Context, draft *MyShoppingListDraft, opts ...RequestOption) (result *MyShoppingList, err error)
MyShoppingListCreate creates a new instance of type MyShoppingList
func (*Client) MyShoppingListDeleteWithID ¶
func (client *Client) MyShoppingListDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *MyShoppingList, err error)
MyShoppingListDeleteWithID for type MyShoppingList
func (*Client) MyShoppingListDeleteWithKey ¶
func (client *Client) MyShoppingListDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *MyShoppingList, err error)
MyShoppingListDeleteWithKey for type MyShoppingList
func (*Client) MyShoppingListGetWithID ¶
func (client *Client) MyShoppingListGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *MyShoppingList, err error)
MyShoppingListGetWithID for type MyShoppingList
func (*Client) MyShoppingListGetWithKey ¶
func (client *Client) MyShoppingListGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *MyShoppingList, err error)
MyShoppingListGetWithKey for type MyShoppingList
func (*Client) MyShoppingListQuery ¶
func (client *Client) MyShoppingListQuery(ctx context.Context, input *QueryInput) (result *ShoppingListPagedQueryResponse, err error)
MyShoppingListQuery allows querying for type
func (*Client) MyShoppingListUpdateWithID ¶
func (client *Client) MyShoppingListUpdateWithID(ctx context.Context, input *MyShoppingListUpdateWithIDInput, opts ...RequestOption) (result *MyShoppingList, err error)
MyShoppingListUpdateWithID for type MyShoppingList
func (*Client) MyShoppingListUpdateWithKey ¶
func (client *Client) MyShoppingListUpdateWithKey(ctx context.Context, input *MyShoppingListUpdateWithKeyInput, opts ...RequestOption) (result *MyShoppingList, err error)
MyShoppingListUpdateWithKey for type MyShoppingList
func (*Client) MySignup ¶
func (client *Client) MySignup(ctx context.Context, value *MyCustomerDraft, opts ...RequestOption) (result *CustomerSignInResult, err error)
MySignup for type MyCustomerDraft
func (*Client) NewGraphQLQuery ¶
func (client *Client) NewGraphQLQuery(query string) *GraphQLQuery
NewGraphQLQuery creates a new GraphQLQuery object which can be used to execute a GraphQL query
func (*Client) OrderCreate ¶
func (client *Client) OrderCreate(ctx context.Context, draft *OrderFromCartDraft, opts ...RequestOption) (result *Order, err error)
OrderCreate creates a new instance of type Order
func (*Client) OrderDeleteWithID ¶
func (client *Client) OrderDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, opts ...RequestOption) (result *Order, err error)
OrderDeleteWithID for type Order
func (*Client) OrderDeleteWithOrderNumber ¶
func (client *Client) OrderDeleteWithOrderNumber(ctx context.Context, orderNumber string, version int, dataErasure bool, opts ...RequestOption) (result *Order, err error)
OrderDeleteWithOrderNumber for type Order
func (*Client) OrderEditApply ¶
func (client *Client) OrderEditApply(ctx context.Context, value *OrderEditApply, opts ...RequestOption) (result *OrderEdit, err error)
OrderEditApply for type OrderEditApply
func (*Client) OrderEditCreate ¶
func (client *Client) OrderEditCreate(ctx context.Context, draft *OrderEditDraft, opts ...RequestOption) (result *OrderEdit, err error)
OrderEditCreate creates a new instance of type OrderEdit
func (*Client) OrderEditDeleteWithID ¶
func (client *Client) OrderEditDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *OrderEdit, err error)
OrderEditDeleteWithID for type OrderEdit
func (*Client) OrderEditDeleteWithKey ¶
func (client *Client) OrderEditDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *OrderEdit, err error)
OrderEditDeleteWithKey for type OrderEdit
func (*Client) OrderEditGetWithID ¶
func (client *Client) OrderEditGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *OrderEdit, err error)
OrderEditGetWithID for type OrderEdit
func (*Client) OrderEditGetWithKey ¶
func (client *Client) OrderEditGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *OrderEdit, err error)
OrderEditGetWithKey for type OrderEdit
func (*Client) OrderEditQuery ¶
func (client *Client) OrderEditQuery(ctx context.Context, input *QueryInput) (result *OrderEditPagedQueryResponse, err error)
OrderEditQuery allows querying for type Order
func (*Client) OrderEditUpdateWithID ¶
func (client *Client) OrderEditUpdateWithID(ctx context.Context, input *OrderEditUpdateWithIDInput, opts ...RequestOption) (result *OrderEdit, err error)
OrderEditUpdateWithID for type OrderEdit
func (*Client) OrderEditUpdateWithKey ¶
func (client *Client) OrderEditUpdateWithKey(ctx context.Context, input *OrderEditUpdateWithKeyInput, opts ...RequestOption) (result *OrderEdit, err error)
OrderEditUpdateWithKey for type OrderEdit
func (*Client) OrderGetWithID ¶
func (client *Client) OrderGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Order, err error)
OrderGetWithID for type Order
func (*Client) OrderGetWithOrderNumber ¶
func (client *Client) OrderGetWithOrderNumber(ctx context.Context, orderNumber string, opts ...RequestOption) (result *Order, err error)
OrderGetWithOrderNumber In case the orderNumber does not match the regular expression [a-zA-Z0-9_\-]+, it should be provided in URL-encoded format.
func (*Client) OrderImport ¶
func (client *Client) OrderImport(ctx context.Context, value *OrderImportDraft, opts ...RequestOption) (result *Order, err error)
OrderImport for type OrderImportDraft
func (*Client) OrderQuery ¶
func (client *Client) OrderQuery(ctx context.Context, input *QueryInput) (result *OrderPagedQueryResponse, err error)
OrderQuery allows querying for type Order
func (*Client) OrderUpdateWithID ¶
func (client *Client) OrderUpdateWithID(ctx context.Context, input *OrderUpdateWithIDInput, opts ...RequestOption) (result *Order, err error)
OrderUpdateWithID for type Order
func (*Client) OrderUpdateWithOrderNumber ¶
func (client *Client) OrderUpdateWithOrderNumber(ctx context.Context, input *OrderUpdateWithOrderNumberInput, opts ...RequestOption) (result *Order, err error)
OrderUpdateWithOrderNumber for type Order
func (*Client) PaymentCreate ¶
func (client *Client) PaymentCreate(ctx context.Context, draft *PaymentDraft, opts ...RequestOption) (result *Payment, err error)
PaymentCreate creates a new instance of type Payment
func (*Client) PaymentDeleteWithID ¶
func (client *Client) PaymentDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, opts ...RequestOption) (result *Payment, err error)
PaymentDeleteWithID for type Payment
func (*Client) PaymentDeleteWithKey ¶
func (client *Client) PaymentDeleteWithKey(ctx context.Context, key string, version int, dataErasure bool, opts ...RequestOption) (result *Payment, err error)
PaymentDeleteWithKey for type Payment
func (*Client) PaymentGetWithID ¶
func (client *Client) PaymentGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Payment, err error)
PaymentGetWithID for type Payment
func (*Client) PaymentGetWithKey ¶
func (client *Client) PaymentGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Payment, err error)
PaymentGetWithKey for type Payment
func (*Client) PaymentQuery ¶
func (client *Client) PaymentQuery(ctx context.Context, input *QueryInput) (result *PaymentPagedQueryResponse, err error)
PaymentQuery allows querying for type Payment
func (*Client) PaymentUpdateWithID ¶
func (client *Client) PaymentUpdateWithID(ctx context.Context, input *PaymentUpdateWithIDInput, opts ...RequestOption) (result *Payment, err error)
PaymentUpdateWithID for type Payment
func (*Client) PaymentUpdateWithKey ¶
func (client *Client) PaymentUpdateWithKey(ctx context.Context, input *PaymentUpdateWithKeyInput, opts ...RequestOption) (result *Payment, err error)
PaymentUpdateWithKey for type Payment
func (*Client) ProductCreate ¶
func (client *Client) ProductCreate(ctx context.Context, draft *ProductDraft, opts ...RequestOption) (result *Product, err error)
ProductCreate creates a new instance of type Product
func (*Client) ProductDeleteWithID ¶
func (client *Client) ProductDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Product, err error)
ProductDeleteWithID for type Product
func (*Client) ProductDeleteWithKey ¶
func (client *Client) ProductDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Product, err error)
ProductDeleteWithKey for type Product
func (*Client) ProductDiscountCreate ¶
func (client *Client) ProductDiscountCreate(ctx context.Context, draft *ProductDiscountDraft, opts ...RequestOption) (result *ProductDiscount, err error)
ProductDiscountCreate creates a new instance of type ProductDiscount
func (*Client) ProductDiscountDeleteWithID ¶
func (client *Client) ProductDiscountDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *ProductDiscount, err error)
ProductDiscountDeleteWithID for type ProductDiscount
func (*Client) ProductDiscountDeleteWithKey ¶
func (client *Client) ProductDiscountDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *ProductDiscount, err error)
ProductDiscountDeleteWithKey for type ProductDiscount
func (*Client) ProductDiscountGetWithID ¶
func (client *Client) ProductDiscountGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ProductDiscount, err error)
ProductDiscountGetWithID for type ProductDiscount
func (*Client) ProductDiscountGetWithKey ¶
func (client *Client) ProductDiscountGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ProductDiscount, err error)
ProductDiscountGetWithKey for type ProductDiscount
func (*Client) ProductDiscountMatching ¶
func (client *Client) ProductDiscountMatching(ctx context.Context, value *ProductDiscountMatchQuery, opts ...RequestOption) (result *ProductDiscount, err error)
ProductDiscountMatching for type ProductDiscountMatchQuery
func (*Client) ProductDiscountQuery ¶
func (client *Client) ProductDiscountQuery(ctx context.Context, input *QueryInput) (result *ProductDiscountPagedQueryResponse, err error)
ProductDiscountQuery allows querying for type ProductDiscount
func (*Client) ProductDiscountUpdateWithID ¶
func (client *Client) ProductDiscountUpdateWithID(ctx context.Context, input *ProductDiscountUpdateWithIDInput, opts ...RequestOption) (result *ProductDiscount, err error)
ProductDiscountUpdateWithID for type ProductDiscount
func (*Client) ProductDiscountUpdateWithKey ¶
func (client *Client) ProductDiscountUpdateWithKey(ctx context.Context, input *ProductDiscountUpdateWithKeyInput, opts ...RequestOption) (result *ProductDiscount, err error)
ProductDiscountUpdateWithKey for type ProductDiscount
func (*Client) ProductGetWithID ¶
func (client *Client) ProductGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Product, err error)
ProductGetWithID Gets the full representation of a product by ID.
func (*Client) ProductGetWithKey ¶
func (client *Client) ProductGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Product, err error)
ProductGetWithKey Gets the full representation of a product by Key.
func (*Client) ProductImages ¶
func (client *Client) ProductImages(ctx context.Context, value *ProductImagesInput, opts ...RequestOption) (result *Product, err error)
ProductImages Uploads a binary image file to a given product variant. The supported image formats are JPEG, PNG and GIF.
func (*Client) ProductProjectionGetWithID ¶
func (client *Client) ProductProjectionGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ProductProjection, err error)
ProductProjectionGetWithID Gets the current or staged representation of a product in a catalog by ID. When used with an API client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) product projections.
func (*Client) ProductProjectionGetWithKey ¶
func (client *Client) ProductProjectionGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ProductProjection, err error)
ProductProjectionGetWithKey Gets the current or staged representation of a product found by Key. When used with an API client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) product projections.
func (*Client) ProductProjectionQuery ¶
func (client *Client) ProductProjectionQuery(ctx context.Context, input *QueryInput) (result *ProductProjectionPagedQueryResponse, err error)
ProductProjectionQuery allows querying for type ProductProjection
You can use the product projections query endpoint to get the current or staged representations of Products. When used with an API client that has the view_published_products:{projectKey} scope, this endpoint only returns published (current) product projections.
func (*Client) ProductProjectionSearch ¶
func (client *Client) ProductProjectionSearch(ctx context.Context, value *ProductProjectionSearchInput, opts ...RequestOption) (result *ProductProjectionPagedSearchResponse, err error)
ProductProjectionSearch This endpoint provides high performance search queries over ProductProjections. The query result contains the ProductProjections for which at least one ProductVariant matches the search query. This means that variants can be included in the result also for which the search query does not match. To determine which ProductVariants match the search query, the returned ProductProjections include the additional field isMatchingVariant.
func (*Client) ProductProjectionSuggest ¶
func (client *Client) ProductProjectionSuggest(ctx context.Context, value *ProductProjectionSuggestInput, opts ...RequestOption) (result *ProductProjection, err error)
ProductProjectionSuggest The source of data for suggestions is the searchKeyword field in a product
func (*Client) ProductQuery ¶
func (client *Client) ProductQuery(ctx context.Context, input *QueryInput) (result *ProductPagedQueryResponse, err error)
ProductQuery allows querying for type Product
You can use the query endpoint to get the full representations of products. REMARK: We suggest to use the performance optimized search endpoint which has a bunch functionalities, the query API lacks like sorting on custom attributes, etc.
func (*Client) ProductTypeCreate ¶
func (client *Client) ProductTypeCreate(ctx context.Context, draft *ProductTypeDraft, opts ...RequestOption) (result *ProductType, err error)
ProductTypeCreate creates a new instance of type ProductType
func (*Client) ProductTypeDeleteWithID ¶
func (client *Client) ProductTypeDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *ProductType, err error)
ProductTypeDeleteWithID for type ProductType
func (*Client) ProductTypeDeleteWithKey ¶
func (client *Client) ProductTypeDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *ProductType, err error)
ProductTypeDeleteWithKey for type ProductType
func (*Client) ProductTypeGetWithID ¶
func (client *Client) ProductTypeGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ProductType, err error)
ProductTypeGetWithID for type ProductType
func (*Client) ProductTypeGetWithKey ¶
func (client *Client) ProductTypeGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ProductType, err error)
ProductTypeGetWithKey for type ProductType
func (*Client) ProductTypeQuery ¶
func (client *Client) ProductTypeQuery(ctx context.Context, input *QueryInput) (result *ProductTypePagedQueryResponse, err error)
ProductTypeQuery allows querying for type ProductType
func (*Client) ProductTypeUpdateWithID ¶
func (client *Client) ProductTypeUpdateWithID(ctx context.Context, input *ProductTypeUpdateWithIDInput, opts ...RequestOption) (result *ProductType, err error)
ProductTypeUpdateWithID for type ProductType
func (*Client) ProductTypeUpdateWithKey ¶
func (client *Client) ProductTypeUpdateWithKey(ctx context.Context, input *ProductTypeUpdateWithKeyInput, opts ...RequestOption) (result *ProductType, err error)
ProductTypeUpdateWithKey for type ProductType
func (*Client) ProductUpdateWithID ¶
func (client *Client) ProductUpdateWithID(ctx context.Context, input *ProductUpdateWithIDInput, opts ...RequestOption) (result *Product, err error)
ProductUpdateWithID for type Product
func (*Client) ProductUpdateWithKey ¶
func (client *Client) ProductUpdateWithKey(ctx context.Context, input *ProductUpdateWithKeyInput, opts ...RequestOption) (result *Product, err error)
ProductUpdateWithKey for type Product
func (*Client) ProjectGet ¶
ProjectGet will return the current project. OAuth2 Scopes: view_project_settings:{projectKey}
func (*Client) ProjectKey ¶
func (*Client) ProjectUpdate ¶
func (client *Client) ProjectUpdate(input *ProjectUpdateInput) (result *Project, err error)
ProjectUpdate will update the current project with the defined UpdateActions. OAuth2 Scopes: manage_project:{projectKey}
func (*Client) ReviewCreate ¶
func (client *Client) ReviewCreate(ctx context.Context, draft *ReviewDraft, opts ...RequestOption) (result *Review, err error)
ReviewCreate creates a new instance of type Review
func (*Client) ReviewDeleteWithID ¶
func (client *Client) ReviewDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, opts ...RequestOption) (result *Review, err error)
ReviewDeleteWithID for type Review
func (*Client) ReviewDeleteWithKey ¶
func (client *Client) ReviewDeleteWithKey(ctx context.Context, key string, version int, dataErasure bool, opts ...RequestOption) (result *Review, err error)
ReviewDeleteWithKey for type Review
func (*Client) ReviewGetWithID ¶
func (client *Client) ReviewGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Review, err error)
ReviewGetWithID for type Review
func (*Client) ReviewGetWithKey ¶
func (client *Client) ReviewGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Review, err error)
ReviewGetWithKey for type Review
func (*Client) ReviewQuery ¶
func (client *Client) ReviewQuery(ctx context.Context, input *QueryInput) (result *ReviewPagedQueryResponse, err error)
ReviewQuery allows querying for type Review
func (*Client) ReviewUpdateWithID ¶
func (client *Client) ReviewUpdateWithID(ctx context.Context, input *ReviewUpdateWithIDInput, opts ...RequestOption) (result *Review, err error)
ReviewUpdateWithID for type Review
func (*Client) ReviewUpdateWithKey ¶
func (client *Client) ReviewUpdateWithKey(ctx context.Context, input *ReviewUpdateWithKeyInput, opts ...RequestOption) (result *Review, err error)
ReviewUpdateWithKey for type Review
func (*Client) ShippingMethodCreate ¶
func (client *Client) ShippingMethodCreate(ctx context.Context, draft *ShippingMethodDraft, opts ...RequestOption) (result *ShippingMethod, err error)
ShippingMethodCreate creates a new instance of type ShippingMethod
func (*Client) ShippingMethodDeleteWithID ¶
func (client *Client) ShippingMethodDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *ShippingMethod, err error)
ShippingMethodDeleteWithID for type ShippingMethod
func (*Client) ShippingMethodDeleteWithKey ¶
func (client *Client) ShippingMethodDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *ShippingMethod, err error)
ShippingMethodDeleteWithKey for type ShippingMethod
func (*Client) ShippingMethodGetWithID ¶
func (client *Client) ShippingMethodGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ShippingMethod, err error)
ShippingMethodGetWithID for type ShippingMethod
func (*Client) ShippingMethodGetWithKey ¶
func (client *Client) ShippingMethodGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ShippingMethod, err error)
ShippingMethodGetWithKey for type ShippingMethod
func (*Client) ShippingMethodMatchingCart ¶
func (client *Client) ShippingMethodMatchingCart(ctx context.Context, value *ShippingMethodMatchingCartInput, opts ...RequestOption) (result *ShippingMethodPagedQueryResponse, err error)
ShippingMethodMatchingCart Get ShippingMethods for a cart
func (*Client) ShippingMethodMatchingLocation ¶
func (client *Client) ShippingMethodMatchingLocation(ctx context.Context, value *ShippingMethodMatchingLocationInput, opts ...RequestOption) (result *ShippingMethodPagedQueryResponse, err error)
ShippingMethodMatchingLocation Get ShippingMethods for a location
func (*Client) ShippingMethodMatchingOrderedit ¶
func (client *Client) ShippingMethodMatchingOrderedit(ctx context.Context, value *ShippingMethodMatchingOrdereditInput, opts ...RequestOption) (result *ShippingMethodPagedQueryResponse, err error)
ShippingMethodMatchingOrderedit Get ShippingMethods for an order edit
func (*Client) ShippingMethodQuery ¶
func (client *Client) ShippingMethodQuery(ctx context.Context, input *QueryInput) (result *ShippingMethodPagedQueryResponse, err error)
ShippingMethodQuery allows querying for type ShippingMethod
func (*Client) ShippingMethodUpdateWithID ¶
func (client *Client) ShippingMethodUpdateWithID(ctx context.Context, input *ShippingMethodUpdateWithIDInput, opts ...RequestOption) (result *ShippingMethod, err error)
ShippingMethodUpdateWithID for type ShippingMethod
func (*Client) ShippingMethodUpdateWithKey ¶
func (client *Client) ShippingMethodUpdateWithKey(ctx context.Context, input *ShippingMethodUpdateWithKeyInput, opts ...RequestOption) (result *ShippingMethod, err error)
ShippingMethodUpdateWithKey for type ShippingMethod
func (*Client) ShoppingListCreate ¶
func (client *Client) ShoppingListCreate(ctx context.Context, draft *ShoppingListDraft, opts ...RequestOption) (result *ShoppingList, err error)
ShoppingListCreate creates a new instance of type ShoppingList
func (*Client) ShoppingListDeleteWithID ¶
func (client *Client) ShoppingListDeleteWithID(ctx context.Context, id string, version int, dataErasure bool, opts ...RequestOption) (result *ShoppingList, err error)
ShoppingListDeleteWithID for type ShoppingList
func (*Client) ShoppingListDeleteWithKey ¶
func (client *Client) ShoppingListDeleteWithKey(ctx context.Context, key string, version int, dataErasure bool, opts ...RequestOption) (result *ShoppingList, err error)
ShoppingListDeleteWithKey for type ShoppingList
func (*Client) ShoppingListGetWithID ¶
func (client *Client) ShoppingListGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *ShoppingList, err error)
ShoppingListGetWithID Gets a shopping list by ID.
func (*Client) ShoppingListGetWithKey ¶
func (client *Client) ShoppingListGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *ShoppingList, err error)
ShoppingListGetWithKey Gets a shopping list by Key.
func (*Client) ShoppingListQuery ¶
func (client *Client) ShoppingListQuery(ctx context.Context, input *QueryInput) (result *ShoppingListPagedQueryResponse, err error)
ShoppingListQuery allows querying for type ShoppingList
func (*Client) ShoppingListUpdateWithID ¶
func (client *Client) ShoppingListUpdateWithID(ctx context.Context, input *ShoppingListUpdateWithIDInput, opts ...RequestOption) (result *ShoppingList, err error)
ShoppingListUpdateWithID for type ShoppingList
func (*Client) ShoppingListUpdateWithKey ¶
func (client *Client) ShoppingListUpdateWithKey(ctx context.Context, input *ShoppingListUpdateWithKeyInput, opts ...RequestOption) (result *ShoppingList, err error)
ShoppingListUpdateWithKey for type ShoppingList
func (*Client) StateCreate ¶
func (client *Client) StateCreate(ctx context.Context, draft *StateDraft, opts ...RequestOption) (result *State, err error)
StateCreate creates a new instance of type State
func (*Client) StateDeleteWithID ¶
func (client *Client) StateDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *State, err error)
StateDeleteWithID for type State
func (*Client) StateDeleteWithKey ¶
func (client *Client) StateDeleteWithKey(ctx context.Context, Key string, version int, opts ...RequestOption) (result *State, err error)
StateDeleteWithKey for type State
func (*Client) StateGetWithID ¶
func (client *Client) StateGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *State, err error)
StateGetWithID for type State
func (*Client) StateGetWithKey ¶
func (client *Client) StateGetWithKey(ctx context.Context, Key string, opts ...RequestOption) (result *State, err error)
StateGetWithKey for type State
func (*Client) StateQuery ¶
func (client *Client) StateQuery(ctx context.Context, input *QueryInput) (result *StatePagedQueryResponse, err error)
StateQuery allows querying for type State
func (*Client) StateUpdateWithID ¶
func (client *Client) StateUpdateWithID(ctx context.Context, input *StateUpdateWithIDInput, opts ...RequestOption) (result *State, err error)
StateUpdateWithID for type State
func (*Client) StateUpdateWithKey ¶
func (client *Client) StateUpdateWithKey(ctx context.Context, input *StateUpdateWithKeyInput, opts ...RequestOption) (result *State, err error)
StateUpdateWithKey for type State
func (*Client) StoreCartCreate ¶
func (client *Client) StoreCartCreate(ctx context.Context, storeKey string, draft *CartDraft, opts ...RequestOption) (result *Cart, err error)
StoreCartCreate creates a new instance of type Cart
func (*Client) StoreCartDeleteWithID ¶
func (client *Client) StoreCartDeleteWithID(ctx context.Context, storeKey string, id string, version int, dataErasure bool, opts ...RequestOption) (result *Cart, err error)
StoreCartDeleteWithID for type Cart
func (*Client) StoreCartGetWithCustomerID ¶
func (client *Client) StoreCartGetWithCustomerID(ctx context.Context, storeKey string, customerId string, opts ...RequestOption) (result *Cart, err error)
StoreCartGetWithCustomerID Retrieves the active cart of the customer that has been modified most recently in a specific Store. The {storeKey} path parameter maps to a Store's key.
If the cart exists in the commercetools project but does not have the store field, or the store field references a different store, this method returns a ResourceNotFound error.
The cart may not contain up-to-date prices, discounts etc. If you want to ensure they're up-to-date, send an Update request with the Recalculate update action instead.
func (*Client) StoreCartGetWithID ¶
func (client *Client) StoreCartGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Cart, err error)
StoreCartGetWithID Returns a cart by its ID from a specific Store. The {storeKey} path parameter maps to a Store's key. If the cart exists in the commercetools project but does not have the store field, or the store field references a different store, this method returns a ResourceNotFound error. The cart may not contain up-to-date prices, discounts etc. If you want to ensure they're up-to-date, send an Update request with the Recalculate update action instead.
func (*Client) StoreCartQuery ¶
func (client *Client) StoreCartQuery(ctx context.Context, storeKey string, input *QueryInput) (result *CartPagedQueryResponse, err error)
StoreCartQuery allows querying for type Queries carts in a specific Store. The {storeKey} path parameter maps to a Store's key.
func (*Client) StoreCartUpdateWithID ¶
func (client *Client) StoreCartUpdateWithID(ctx context.Context, storeKey string, input *StoreCartUpdateWithIDInput, opts ...RequestOption) (result *Cart, err error)
StoreCartUpdateWithID for type Cart
func (*Client) StoreCreate ¶
func (client *Client) StoreCreate(ctx context.Context, draft *StoreDraft, opts ...RequestOption) (result *Store, err error)
StoreCreate creates a new instance of type Store
func (*Client) StoreCustomerCreate ¶
func (client *Client) StoreCustomerCreate(ctx context.Context, storeKey string, draft *CustomerDraft, opts ...RequestOption) (result *Customer, err error)
StoreCustomerCreate creates a new instance of type Customer
func (*Client) StoreCustomerDeleteWithID ¶
func (client *Client) StoreCustomerDeleteWithID(ctx context.Context, storeKey string, id string, version int, dataErasure bool, opts ...RequestOption) (result *Customer, err error)
StoreCustomerDeleteWithID for type Customer
func (*Client) StoreCustomerDeleteWithKey ¶
func (client *Client) StoreCustomerDeleteWithKey(ctx context.Context, storeKey string, key string, version int, dataErasure bool, opts ...RequestOption) (result *Customer, err error)
StoreCustomerDeleteWithKey for type Customer
func (*Client) StoreCustomerEmailToken ¶
func (client *Client) StoreCustomerEmailToken(ctx context.Context, storeKey string, value *CustomerCreateEmailToken, opts ...RequestOption) (result *CustomerToken, err error)
StoreCustomerEmailToken To verify a customer's email, an email token can be created. This should be embedded in a link and sent to the customer via email. When the customer clicks on the link, the "verify customer's email" endpoint should be called, which sets customer's isVerifiedEmail field to true.
func (*Client) StoreCustomerEmailconfirm ¶
func (client *Client) StoreCustomerEmailconfirm(ctx context.Context, storeKey string, value *CustomerEmailVerify, opts ...RequestOption) (result *Customer, err error)
StoreCustomerEmailconfirm for type CustomerEmailVerify
func (*Client) StoreCustomerGetWithEmailToken ¶
func (client *Client) StoreCustomerGetWithEmailToken(ctx context.Context, storeKey string, emailToken string, opts ...RequestOption) (result *Customer, err error)
StoreCustomerGetWithEmailToken for type Customer
func (*Client) StoreCustomerGetWithID ¶
func (client *Client) StoreCustomerGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Customer, err error)
StoreCustomerGetWithID Returns a customer by its ID from a specific Store. The {storeKey} path parameter maps to a Store's key. It also considers customers that do not have the stores field. If the customer exists in the commercetools project but the stores field references different stores, this method returns a ResourceNotFound error.
func (*Client) StoreCustomerGetWithKey ¶
func (client *Client) StoreCustomerGetWithKey(ctx context.Context, storeKey string, key string, opts ...RequestOption) (result *Customer, err error)
StoreCustomerGetWithKey Returns a customer by its Key from a specific Store. The {storeKey} path parameter maps to a Store's key. It also considers customers that do not have the stores field. If the customer exists in the commercetools project but the stores field references different stores, this method returns a ResourceNotFound error.
func (*Client) StoreCustomerGetWithPasswordToken ¶
func (client *Client) StoreCustomerGetWithPasswordToken(ctx context.Context, storeKey string, passwordToken string, opts ...RequestOption) (result *Customer, err error)
StoreCustomerGetWithPasswordToken for type Customer
func (*Client) StoreCustomerPassword ¶
func (client *Client) StoreCustomerPassword(ctx context.Context, storeKey string, value *CustomerChangePassword, opts ...RequestOption) (result *Customer, err error)
StoreCustomerPassword for type CustomerChangePassword
func (*Client) StoreCustomerPasswordToken ¶
func (client *Client) StoreCustomerPasswordToken(ctx context.Context, storeKey string, value *CustomerCreatePasswordResetToken, opts ...RequestOption) (result *CustomerToken, err error)
StoreCustomerPasswordToken The following workflow can be used to reset the customer's password:
* Create a password reset token and send it embedded in a link to the customer. * When the customer clicks on the link, the customer is retrieved with the token. * The customer enters a new password and the "reset customer's password" endpoint is called.
func (*Client) StoreCustomerPasswordreset ¶
func (client *Client) StoreCustomerPasswordreset(ctx context.Context, storeKey string, value *CustomerResetPassword, opts ...RequestOption) (result *Customer, err error)
StoreCustomerPasswordreset for type CustomerResetPassword
func (*Client) StoreCustomerQuery ¶
func (client *Client) StoreCustomerQuery(ctx context.Context, storeKey string, input *QueryInput) (result *CustomerPagedQueryResponse, err error)
StoreCustomerQuery allows querying for type
func (*Client) StoreCustomerUpdateWithID ¶
func (client *Client) StoreCustomerUpdateWithID(ctx context.Context, storeKey string, input *StoreCustomerUpdateWithIDInput, opts ...RequestOption) (result *Customer, err error)
StoreCustomerUpdateWithID for type Customer
func (*Client) StoreCustomerUpdateWithKey ¶
func (client *Client) StoreCustomerUpdateWithKey(ctx context.Context, storeKey string, input *StoreCustomerUpdateWithKeyInput, opts ...RequestOption) (result *Customer, err error)
StoreCustomerUpdateWithKey for type Customer
func (*Client) StoreDeleteWithID ¶
func (client *Client) StoreDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Store, err error)
StoreDeleteWithID for type Store
func (*Client) StoreDeleteWithKey ¶
func (client *Client) StoreDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Store, err error)
StoreDeleteWithKey for type Store
func (*Client) StoreGetWithID ¶
func (client *Client) StoreGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Store, err error)
StoreGetWithID for type Store
func (*Client) StoreGetWithKey ¶
func (client *Client) StoreGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Store, err error)
StoreGetWithKey for type Store
func (*Client) StoreLogin ¶
func (client *Client) StoreLogin(ctx context.Context, storeKey string, value *CustomerSignin, opts ...RequestOption) (result *CustomerSignInResult, err error)
StoreLogin Authenticate Customer (Sign In)
func (*Client) StoreMyActiveCart ¶
func (client *Client) StoreMyActiveCart(ctx context.Context, storeKey string, opts ...RequestOption) (result *Cart, err error)
StoreMyActiveCart for type
func (*Client) StoreMyCartCreate ¶
func (client *Client) StoreMyCartCreate(ctx context.Context, storeKey string, draft *MyCartDraft, opts ...RequestOption) (result *Cart, err error)
StoreMyCartCreate creates a new instance of type Cart
func (*Client) StoreMyCartDeleteWithID ¶
func (client *Client) StoreMyCartDeleteWithID(ctx context.Context, storeKey string, id string, version int, opts ...RequestOption) (result *Cart, err error)
StoreMyCartDeleteWithID for type Cart
func (*Client) StoreMyCartGetWithID ¶
func (client *Client) StoreMyCartGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Cart, err error)
StoreMyCartGetWithID for type Cart
func (*Client) StoreMyCartQuery ¶
func (client *Client) StoreMyCartQuery(ctx context.Context, storeKey string, input *QueryInput) (result *CartPagedQueryResponse, err error)
StoreMyCartQuery allows querying for type
func (*Client) StoreMyCartUpdateWithID ¶
func (client *Client) StoreMyCartUpdateWithID(ctx context.Context, storeKey string, input *StoreMyCartUpdateWithIDInput, opts ...RequestOption) (result *Cart, err error)
StoreMyCartUpdateWithID for type Cart
func (*Client) StoreMyOrderCreate ¶
func (client *Client) StoreMyOrderCreate(ctx context.Context, storeKey string, draft *MyOrderFromCartDraft, opts ...RequestOption) (result *Order, err error)
StoreMyOrderCreate creates a new instance of type Order
func (*Client) StoreMyOrderGetWithID ¶
func (client *Client) StoreMyOrderGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Order, err error)
StoreMyOrderGetWithID for type Order
func (*Client) StoreMyOrderQuery ¶
func (client *Client) StoreMyOrderQuery(ctx context.Context, storeKey string, input *QueryInput) (result *OrderPagedQueryResponse, err error)
StoreMyOrderQuery allows querying for type
func (*Client) StoreOrderCreate ¶
func (client *Client) StoreOrderCreate(ctx context.Context, storeKey string, draft *OrderFromCartDraft, opts ...RequestOption) (result *Order, err error)
StoreOrderCreate creates a new instance of type Order
func (*Client) StoreOrderDeleteWithID ¶
func (client *Client) StoreOrderDeleteWithID(ctx context.Context, storeKey string, id string, version int, dataErasure bool, opts ...RequestOption) (result *Order, err error)
StoreOrderDeleteWithID for type Order
func (*Client) StoreOrderDeleteWithOrderNumber ¶
func (client *Client) StoreOrderDeleteWithOrderNumber(ctx context.Context, storeKey string, orderNumber string, version int, dataErasure bool, opts ...RequestOption) (result *Order, err error)
StoreOrderDeleteWithOrderNumber for type Order
func (*Client) StoreOrderGetWithID ¶
func (client *Client) StoreOrderGetWithID(ctx context.Context, storeKey string, id string, opts ...RequestOption) (result *Order, err error)
StoreOrderGetWithID Returns an order by its ID from a specific Store. The {storeKey} path parameter maps to a Store's key. If the order exists in the commercetools project but does not have the store field, or the store field references a different store, this method returns a ResourceNotFound error.
func (*Client) StoreOrderGetWithOrderNumber ¶
func (client *Client) StoreOrderGetWithOrderNumber(ctx context.Context, storeKey string, orderNumber string, opts ...RequestOption) (result *Order, err error)
StoreOrderGetWithOrderNumber Returns an order by its order number from a specific Store. The {storeKey} path parameter maps to a Store's key. If the order exists in the commercetools project but does not have the store field, or the store field references a different store, this method returns a ResourceNotFound error. In case the orderNumber does not match the regular expression [a-zA-Z0-9_\-]+, it should be provided in URL-encoded format.
func (*Client) StoreOrderQuery ¶
func (client *Client) StoreOrderQuery(ctx context.Context, storeKey string, input *QueryInput) (result *OrderPagedQueryResponse, err error)
StoreOrderQuery allows querying for type Queries orders in a specific Store. The {storeKey} path parameter maps to a Store's key.
func (*Client) StoreOrderUpdateWithID ¶
func (client *Client) StoreOrderUpdateWithID(ctx context.Context, storeKey string, input *StoreOrderUpdateWithIDInput, opts ...RequestOption) (result *Order, err error)
StoreOrderUpdateWithID for type Order
func (*Client) StoreOrderUpdateWithOrderNumber ¶
func (client *Client) StoreOrderUpdateWithOrderNumber(ctx context.Context, storeKey string, input *StoreOrderUpdateWithOrderNumberInput, opts ...RequestOption) (result *Order, err error)
StoreOrderUpdateWithOrderNumber for type Order
func (*Client) StoreQuery ¶
func (client *Client) StoreQuery(ctx context.Context, input *QueryInput) (result *StorePagedQueryResponse, err error)
StoreQuery allows querying for type Store
func (*Client) StoreShippingMethodsForMatchingCart ¶
func (client *Client) StoreShippingMethodsForMatchingCart(ctx context.Context, storeKey string, value *StoreShippingMethodsForMatchingCartInput, opts ...RequestOption) (result *ShippingMethodPagedQueryResponse, err error)
StoreShippingMethodsForMatchingCart for type StoreShippingMethodsForMatchingCartInput
func (*Client) StoreUpdateWithID ¶
func (client *Client) StoreUpdateWithID(ctx context.Context, input *StoreUpdateWithIDInput, opts ...RequestOption) (result *Store, err error)
StoreUpdateWithID for type Store
func (*Client) StoreUpdateWithKey ¶
func (client *Client) StoreUpdateWithKey(ctx context.Context, input *StoreUpdateWithKeyInput, opts ...RequestOption) (result *Store, err error)
StoreUpdateWithKey for type Store
func (*Client) SubscriptionCreate ¶
func (client *Client) SubscriptionCreate(ctx context.Context, draft *SubscriptionDraft, opts ...RequestOption) (result *Subscription, err error)
SubscriptionCreate creates a new instance of type Subscription
func (*Client) SubscriptionDeleteWithID ¶
func (client *Client) SubscriptionDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Subscription, err error)
SubscriptionDeleteWithID for type Subscription
func (*Client) SubscriptionDeleteWithKey ¶
func (client *Client) SubscriptionDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Subscription, err error)
SubscriptionDeleteWithKey for type Subscription
func (*Client) SubscriptionGetWithID ¶
func (client *Client) SubscriptionGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Subscription, err error)
SubscriptionGetWithID Retrieves the representation of a subscription by its id.
func (*Client) SubscriptionGetWithKey ¶
func (client *Client) SubscriptionGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Subscription, err error)
SubscriptionGetWithKey Retrieves the representation of a subscription by its key.
func (*Client) SubscriptionQuery ¶
func (client *Client) SubscriptionQuery(ctx context.Context, input *QueryInput) (result *SubscriptionPagedQueryResponse, err error)
SubscriptionQuery allows querying for type Subscription
func (*Client) SubscriptionUpdateWithID ¶
func (client *Client) SubscriptionUpdateWithID(ctx context.Context, input *SubscriptionUpdateWithIDInput, opts ...RequestOption) (result *Subscription, err error)
SubscriptionUpdateWithID for type Subscription
func (*Client) SubscriptionUpdateWithKey ¶
func (client *Client) SubscriptionUpdateWithKey(ctx context.Context, input *SubscriptionUpdateWithKeyInput, opts ...RequestOption) (result *Subscription, err error)
SubscriptionUpdateWithKey for type Subscription
func (*Client) TaxCategoryCreate ¶
func (client *Client) TaxCategoryCreate(ctx context.Context, draft *TaxCategoryDraft, opts ...RequestOption) (result *TaxCategory, err error)
TaxCategoryCreate creates a new instance of type TaxCategory
func (*Client) TaxCategoryDeleteWithID ¶
func (client *Client) TaxCategoryDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *TaxCategory, err error)
TaxCategoryDeleteWithID for type TaxCategory
func (*Client) TaxCategoryDeleteWithKey ¶
func (client *Client) TaxCategoryDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *TaxCategory, err error)
TaxCategoryDeleteWithKey for type TaxCategory
func (*Client) TaxCategoryGetWithID ¶
func (client *Client) TaxCategoryGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *TaxCategory, err error)
TaxCategoryGetWithID for type TaxCategory
func (*Client) TaxCategoryGetWithKey ¶
func (client *Client) TaxCategoryGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *TaxCategory, err error)
TaxCategoryGetWithKey for type TaxCategory
func (*Client) TaxCategoryQuery ¶
func (client *Client) TaxCategoryQuery(ctx context.Context, input *QueryInput) (result *TaxCategoryPagedQueryResponse, err error)
TaxCategoryQuery allows querying for type TaxCategory
func (*Client) TaxCategoryUpdateWithID ¶
func (client *Client) TaxCategoryUpdateWithID(ctx context.Context, input *TaxCategoryUpdateWithIDInput, opts ...RequestOption) (result *TaxCategory, err error)
TaxCategoryUpdateWithID for type TaxCategory
func (*Client) TaxCategoryUpdateWithKey ¶
func (client *Client) TaxCategoryUpdateWithKey(ctx context.Context, input *TaxCategoryUpdateWithKeyInput, opts ...RequestOption) (result *TaxCategory, err error)
TaxCategoryUpdateWithKey for type TaxCategory
func (*Client) TypeCreate ¶
func (client *Client) TypeCreate(ctx context.Context, draft *TypeDraft, opts ...RequestOption) (result *Type, err error)
TypeCreate creates a new instance of type Type
func (*Client) TypeDeleteWithID ¶
func (client *Client) TypeDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Type, err error)
TypeDeleteWithID for type Type
func (*Client) TypeDeleteWithKey ¶
func (client *Client) TypeDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Type, err error)
TypeDeleteWithKey for type Type
func (*Client) TypeGetWithID ¶
func (client *Client) TypeGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Type, err error)
TypeGetWithID for type Type
func (*Client) TypeGetWithKey ¶
func (client *Client) TypeGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Type, err error)
TypeGetWithKey for type Type
func (*Client) TypeQuery ¶
func (client *Client) TypeQuery(ctx context.Context, input *QueryInput) (result *TypePagedQueryResponse, err error)
TypeQuery allows querying for type Type
func (*Client) TypeUpdateWithID ¶
func (client *Client) TypeUpdateWithID(ctx context.Context, input *TypeUpdateWithIDInput, opts ...RequestOption) (result *Type, err error)
TypeUpdateWithID for type Type
func (*Client) TypeUpdateWithKey ¶
func (client *Client) TypeUpdateWithKey(ctx context.Context, input *TypeUpdateWithKeyInput, opts ...RequestOption) (result *Type, err error)
TypeUpdateWithKey for type Type
func (*Client) ZoneCreate ¶
func (client *Client) ZoneCreate(ctx context.Context, draft *ZoneDraft, opts ...RequestOption) (result *Zone, err error)
ZoneCreate creates a new instance of type Zone
func (*Client) ZoneDeleteWithID ¶
func (client *Client) ZoneDeleteWithID(ctx context.Context, id string, version int, opts ...RequestOption) (result *Zone, err error)
ZoneDeleteWithID for type Zone
func (*Client) ZoneDeleteWithKey ¶
func (client *Client) ZoneDeleteWithKey(ctx context.Context, key string, version int, opts ...RequestOption) (result *Zone, err error)
ZoneDeleteWithKey for type Zone
func (*Client) ZoneGetWithID ¶
func (client *Client) ZoneGetWithID(ctx context.Context, id string, opts ...RequestOption) (result *Zone, err error)
ZoneGetWithID for type Zone
func (*Client) ZoneGetWithKey ¶
func (client *Client) ZoneGetWithKey(ctx context.Context, key string, opts ...RequestOption) (result *Zone, err error)
ZoneGetWithKey for type Zone
func (*Client) ZoneQuery ¶
func (client *Client) ZoneQuery(ctx context.Context, input *QueryInput) (result *ZonePagedQueryResponse, err error)
ZoneQuery allows querying for type Zone
func (*Client) ZoneUpdateWithID ¶
func (client *Client) ZoneUpdateWithID(ctx context.Context, input *ZoneUpdateWithIDInput, opts ...RequestOption) (result *Zone, err error)
ZoneUpdateWithID for type Zone
func (*Client) ZoneUpdateWithKey ¶
func (client *Client) ZoneUpdateWithKey(ctx context.Context, input *ZoneUpdateWithKeyInput, opts ...RequestOption) (result *Zone, err error)
ZoneUpdateWithKey for type Zone
type ClientConfig ¶
type ClientConfig struct { ProjectKey string Endpoints *ClientEndpoints Credentials *ClientCredentials HTTPClient *http.Client LibraryName string LibraryVersion string ContactURL string ContactEmail string }
type ClientCredentials ¶
type ClientEndpoints ¶
func NewClientEndpoints ¶
func NewClientEndpoints(region string, provider string) *ClientEndpoints
type ClientLogging ¶
type ClientLogging struct { ExternalUserID string `json:"externalUserId,omitempty"` Customer *CustomerReference `json:"customer,omitempty"` ClientID string `json:"clientId,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
ClientLogging is a standalone struct
type ConcurrentModificationError ¶
type ConcurrentModificationError struct { Message string `json:"message"` CurrentVersion int `json:"currentVersion,omitempty"` }
ConcurrentModificationError implements the interface ErrorObject
func (ConcurrentModificationError) Error ¶
func (obj ConcurrentModificationError) Error() string
func (ConcurrentModificationError) MarshalJSON ¶
func (obj ConcurrentModificationError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Config ¶
type Config struct { ProjectKey string URL string HTTPClient *http.Client LibraryName string LibraryVersion string ContactURL string ContactEmail string }
Config is used to pass settings for creating a new Client object
type CreatedBy ¶
type CreatedBy struct { ExternalUserID string `json:"externalUserId,omitempty"` Customer *CustomerReference `json:"customer,omitempty"` ClientID string `json:"clientId,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
CreatedBy is of type ClientLogging
type CustomFieldBooleanType ¶
type CustomFieldBooleanType struct{}
CustomFieldBooleanType implements the interface FieldType
func (CustomFieldBooleanType) MarshalJSON ¶
func (obj CustomFieldBooleanType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldDateTimeType ¶
type CustomFieldDateTimeType struct{}
CustomFieldDateTimeType implements the interface FieldType
func (CustomFieldDateTimeType) MarshalJSON ¶
func (obj CustomFieldDateTimeType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldDateType ¶
type CustomFieldDateType struct{}
CustomFieldDateType implements the interface FieldType
func (CustomFieldDateType) MarshalJSON ¶
func (obj CustomFieldDateType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldEnumType ¶
type CustomFieldEnumType struct {
Values []CustomFieldEnumValue `json:"values"`
}
CustomFieldEnumType implements the interface FieldType
func (CustomFieldEnumType) MarshalJSON ¶
func (obj CustomFieldEnumType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldEnumValue ¶
CustomFieldEnumValue is a standalone struct
type CustomFieldLocalizedEnumType ¶
type CustomFieldLocalizedEnumType struct {
Values []CustomFieldLocalizedEnumValue `json:"values"`
}
CustomFieldLocalizedEnumType implements the interface FieldType
func (CustomFieldLocalizedEnumType) MarshalJSON ¶
func (obj CustomFieldLocalizedEnumType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldLocalizedEnumValue ¶
type CustomFieldLocalizedEnumValue struct { Label *LocalizedString `json:"label"` Key string `json:"key"` }
CustomFieldLocalizedEnumValue is a standalone struct
type CustomFieldLocalizedStringType ¶
type CustomFieldLocalizedStringType struct{}
CustomFieldLocalizedStringType implements the interface FieldType
func (CustomFieldLocalizedStringType) MarshalJSON ¶
func (obj CustomFieldLocalizedStringType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldMoneyType ¶
type CustomFieldMoneyType struct{}
CustomFieldMoneyType implements the interface FieldType
func (CustomFieldMoneyType) MarshalJSON ¶
func (obj CustomFieldMoneyType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldNumberType ¶
type CustomFieldNumberType struct{}
CustomFieldNumberType implements the interface FieldType
func (CustomFieldNumberType) MarshalJSON ¶
func (obj CustomFieldNumberType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldReferenceType ¶
type CustomFieldReferenceType struct {
ReferenceTypeID ReferenceTypeID `json:"referenceTypeId"`
}
CustomFieldReferenceType implements the interface FieldType
func (CustomFieldReferenceType) MarshalJSON ¶
func (obj CustomFieldReferenceType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldSetType ¶
type CustomFieldSetType struct {
ElementType FieldType `json:"elementType"`
}
CustomFieldSetType implements the interface FieldType
func (CustomFieldSetType) MarshalJSON ¶
func (obj CustomFieldSetType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*CustomFieldSetType) UnmarshalJSON ¶
func (obj *CustomFieldSetType) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CustomFieldStringType ¶
type CustomFieldStringType struct{}
CustomFieldStringType implements the interface FieldType
func (CustomFieldStringType) MarshalJSON ¶
func (obj CustomFieldStringType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFieldTimeType ¶
type CustomFieldTimeType struct{}
CustomFieldTimeType implements the interface FieldType
func (CustomFieldTimeType) MarshalJSON ¶
func (obj CustomFieldTimeType) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomFields ¶
type CustomFields struct { Type *TypeReference `json:"type"` Fields *FieldContainer `json:"fields"` }
CustomFields is a standalone struct
type CustomFieldsDraft ¶
type CustomFieldsDraft struct { Type *TypeResourceIdentifier `json:"type"` Fields *FieldContainer `json:"fields,omitempty"` }
CustomFieldsDraft is a standalone struct
type CustomLineItem ¶
type CustomLineItem struct { TotalPrice TypedMoney `json:"totalPrice"` TaxedPrice *TaxedItemPrice `json:"taxedPrice,omitempty"` TaxRate *TaxRate `json:"taxRate,omitempty"` TaxCategory *TaxCategoryReference `json:"taxCategory,omitempty"` State []ItemState `json:"state"` Slug string `json:"slug"` ShippingDetails *ItemShippingDetails `json:"shippingDetails,omitempty"` Quantity int `json:"quantity"` Name *LocalizedString `json:"name"` Money TypedMoney `json:"money"` ID string `json:"id"` DiscountedPricePerQuantity []DiscountedLineItemPriceForQuantity `json:"discountedPricePerQuantity"` Custom *CustomFields `json:"custom,omitempty"` }
CustomLineItem is a standalone struct
func (*CustomLineItem) UnmarshalJSON ¶
func (obj *CustomLineItem) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CustomLineItemDraft ¶
type CustomLineItemDraft struct { TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"` Slug string `json:"slug"` ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` Quantity int `json:"quantity"` Name *LocalizedString `json:"name"` Money *Money `json:"money"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` Custom *CustomFields `json:"custom,omitempty"` }
CustomLineItemDraft is a standalone struct
type CustomLineItemReturnItem ¶
type CustomLineItemReturnItem struct { ShipmentState ReturnShipmentState `json:"shipmentState"` Quantity int `json:"quantity"` PaymentState ReturnPaymentState `json:"paymentState"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedAt time.Time `json:"createdAt"` Comment string `json:"comment,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
CustomLineItemReturnItem implements the interface ReturnItem
func (CustomLineItemReturnItem) MarshalJSON ¶
func (obj CustomLineItemReturnItem) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomLineItemStateTransitionMessage ¶
type CustomLineItemStateTransitionMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` TransitionDate time.Time `json:"transitionDate"` ToState *StateReference `json:"toState"` Quantity int `json:"quantity"` FromState *StateReference `json:"fromState"` CustomLineItemID string `json:"customLineItemId"` }
CustomLineItemStateTransitionMessage implements the interface Message
func (CustomLineItemStateTransitionMessage) MarshalJSON ¶
func (obj CustomLineItemStateTransitionMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomLineItemStateTransitionMessagePayload ¶
type CustomLineItemStateTransitionMessagePayload struct { TransitionDate time.Time `json:"transitionDate"` ToState *StateReference `json:"toState"` Quantity int `json:"quantity"` FromState *StateReference `json:"fromState"` CustomLineItemID string `json:"customLineItemId"` }
CustomLineItemStateTransitionMessagePayload implements the interface MessagePayload
func (CustomLineItemStateTransitionMessagePayload) MarshalJSON ¶
func (obj CustomLineItemStateTransitionMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomObject ¶
type CustomObject struct { Version int `json:"version"` Value interface{} `json:"value"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Container string `json:"container"` }
CustomObject is of type BaseResource
type CustomObjectDraft ¶
type CustomObjectDraft struct { Version int `json:"version,omitempty"` Value interface{} `json:"value"` Key string `json:"key"` Container string `json:"container"` }
CustomObjectDraft is a standalone struct
type CustomObjectPagedQueryResponse ¶
type CustomObjectPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []CustomObject `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
CustomObjectPagedQueryResponse is a standalone struct
type CustomObjectReference ¶
type CustomObjectReference struct { ID string `json:"id"` Obj *CustomObject `json:"obj,omitempty"` }
CustomObjectReference implements the interface Reference
func (CustomObjectReference) MarshalJSON ¶
func (obj CustomObjectReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomTokenizer ¶
type CustomTokenizer struct {
Inputs []string `json:"inputs"`
}
CustomTokenizer implements the interface SuggestTokenizer
func (CustomTokenizer) MarshalJSON ¶
func (obj CustomTokenizer) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Customer ¶
type Customer struct { Version int `json:"version"` VatID string `json:"vatId,omitempty"` Title string `json:"title,omitempty"` Stores []StoreKeyReference `json:"stores,omitempty"` ShippingAddressIds []string `json:"shippingAddressIds,omitempty"` Salutation string `json:"salutation,omitempty"` Password string `json:"password"` MiddleName string `json:"middleName,omitempty"` Locale string `json:"locale,omitempty"` LastName string `json:"lastName,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` IsEmailVerified bool `json:"isEmailVerified"` ID string `json:"id"` FirstName string `json:"firstName,omitempty"` ExternalID string `json:"externalId,omitempty"` Email string `json:"email"` DefaultShippingAddressID string `json:"defaultShippingAddressId,omitempty"` DefaultBillingAddressID string `json:"defaultBillingAddressId,omitempty"` DateOfBirth *Date `json:"dateOfBirth,omitempty"` CustomerNumber string `json:"customerNumber,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` CompanyName string `json:"companyName,omitempty"` BillingAddressIds []string `json:"billingAddressIds,omitempty"` Addresses []Address `json:"addresses"` }
Customer is of type BaseResource
type CustomerAddAddressAction ¶
type CustomerAddAddressAction struct {
Address *Address `json:"address"`
}
CustomerAddAddressAction implements the interface CustomerUpdateAction
func (CustomerAddAddressAction) MarshalJSON ¶
func (obj CustomerAddAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerAddBillingAddressIDAction ¶
type CustomerAddBillingAddressIDAction struct { AddressKey string `json:"addressKey,omitempty"` AddressID string `json:"addressId,omitempty"` }
CustomerAddBillingAddressIDAction implements the interface CustomerUpdateAction
func (CustomerAddBillingAddressIDAction) MarshalJSON ¶
func (obj CustomerAddBillingAddressIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerAddShippingAddressIDAction ¶
type CustomerAddShippingAddressIDAction struct { AddressKey string `json:"addressKey,omitempty"` AddressID string `json:"addressId,omitempty"` }
CustomerAddShippingAddressIDAction implements the interface CustomerUpdateAction
func (CustomerAddShippingAddressIDAction) MarshalJSON ¶
func (obj CustomerAddShippingAddressIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerAddStoreAction ¶
type CustomerAddStoreAction struct {
Store *StoreResourceIdentifier `json:"store"`
}
CustomerAddStoreAction implements the interface CustomerUpdateAction
func (CustomerAddStoreAction) MarshalJSON ¶
func (obj CustomerAddStoreAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerAddressAddedMessage ¶
type CustomerAddressAddedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Address *Address `json:"address"` }
CustomerAddressAddedMessage implements the interface Message
func (CustomerAddressAddedMessage) MarshalJSON ¶
func (obj CustomerAddressAddedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerAddressAddedMessagePayload ¶
type CustomerAddressAddedMessagePayload struct {
Address *Address `json:"address"`
}
CustomerAddressAddedMessagePayload implements the interface MessagePayload
func (CustomerAddressAddedMessagePayload) MarshalJSON ¶
func (obj CustomerAddressAddedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerAddressChangedMessage ¶
type CustomerAddressChangedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Address *Address `json:"address"` }
CustomerAddressChangedMessage implements the interface Message
func (CustomerAddressChangedMessage) MarshalJSON ¶
func (obj CustomerAddressChangedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerAddressChangedMessagePayload ¶
type CustomerAddressChangedMessagePayload struct {
Address *Address `json:"address"`
}
CustomerAddressChangedMessagePayload implements the interface MessagePayload
func (CustomerAddressChangedMessagePayload) MarshalJSON ¶
func (obj CustomerAddressChangedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerAddressRemovedMessage ¶
type CustomerAddressRemovedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Address *Address `json:"address"` }
CustomerAddressRemovedMessage implements the interface Message
func (CustomerAddressRemovedMessage) MarshalJSON ¶
func (obj CustomerAddressRemovedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerAddressRemovedMessagePayload ¶
type CustomerAddressRemovedMessagePayload struct {
Address *Address `json:"address"`
}
CustomerAddressRemovedMessagePayload implements the interface MessagePayload
func (CustomerAddressRemovedMessagePayload) MarshalJSON ¶
func (obj CustomerAddressRemovedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerChangeAddressAction ¶
type CustomerChangeAddressAction struct { AddressKey string `json:"addressKey,omitempty"` AddressID string `json:"addressId,omitempty"` Address *Address `json:"address"` }
CustomerChangeAddressAction implements the interface CustomerUpdateAction
func (CustomerChangeAddressAction) MarshalJSON ¶
func (obj CustomerChangeAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerChangeEmailAction ¶
type CustomerChangeEmailAction struct {
Email string `json:"email"`
}
CustomerChangeEmailAction implements the interface CustomerUpdateAction
func (CustomerChangeEmailAction) MarshalJSON ¶
func (obj CustomerChangeEmailAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerChangePassword ¶
type CustomerChangePassword struct { Version int `json:"version"` NewPassword string `json:"newPassword"` ID string `json:"id"` CurrentPassword string `json:"currentPassword"` }
CustomerChangePassword is a standalone struct
type CustomerCompanyNameSetMessage ¶
type CustomerCompanyNameSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` CompanyName string `json:"companyName"` }
CustomerCompanyNameSetMessage implements the interface Message
func (CustomerCompanyNameSetMessage) MarshalJSON ¶
func (obj CustomerCompanyNameSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerCompanyNameSetMessagePayload ¶
type CustomerCompanyNameSetMessagePayload struct {
CompanyName string `json:"companyName"`
}
CustomerCompanyNameSetMessagePayload implements the interface MessagePayload
func (CustomerCompanyNameSetMessagePayload) MarshalJSON ¶
func (obj CustomerCompanyNameSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerCreateEmailToken ¶
type CustomerCreateEmailToken struct { Version int `json:"version,omitempty"` TTLMinutes int `json:"ttlMinutes"` ID string `json:"id"` }
CustomerCreateEmailToken is a standalone struct
type CustomerCreatePasswordResetToken ¶
type CustomerCreatePasswordResetToken struct { TTLMinutes int `json:"ttlMinutes,omitempty"` Email string `json:"email"` }
CustomerCreatePasswordResetToken is a standalone struct
type CustomerCreatedMessage ¶
type CustomerCreatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Customer *Customer `json:"customer"` }
CustomerCreatedMessage implements the interface Message
func (CustomerCreatedMessage) MarshalJSON ¶
func (obj CustomerCreatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerCreatedMessagePayload ¶
type CustomerCreatedMessagePayload struct {
Customer *Customer `json:"customer"`
}
CustomerCreatedMessagePayload implements the interface MessagePayload
func (CustomerCreatedMessagePayload) MarshalJSON ¶
func (obj CustomerCreatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerCreatedResponse ¶
type CustomerCreatedResponse struct {
Customer *Customer `json:"customer"`
}
type CustomerDateOfBirthSetMessage ¶
type CustomerDateOfBirthSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` DateOfBirth *Date `json:"dateOfBirth"` }
CustomerDateOfBirthSetMessage implements the interface Message
func (CustomerDateOfBirthSetMessage) MarshalJSON ¶
func (obj CustomerDateOfBirthSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerDateOfBirthSetMessagePayload ¶
type CustomerDateOfBirthSetMessagePayload struct {
DateOfBirth *Date `json:"dateOfBirth"`
}
CustomerDateOfBirthSetMessagePayload implements the interface MessagePayload
func (CustomerDateOfBirthSetMessagePayload) MarshalJSON ¶
func (obj CustomerDateOfBirthSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerDraft ¶
type CustomerDraft struct { VatID string `json:"vatId,omitempty"` Title string `json:"title,omitempty"` Stores []StoreResourceIdentifier `json:"stores,omitempty"` ShippingAddresses []int `json:"shippingAddresses,omitempty"` Salutation string `json:"salutation,omitempty"` Password string `json:"password"` MiddleName string `json:"middleName,omitempty"` Locale string `json:"locale,omitempty"` LastName string `json:"lastName,omitempty"` Key string `json:"key,omitempty"` IsEmailVerified bool `json:"isEmailVerified"` FirstName string `json:"firstName,omitempty"` ExternalID string `json:"externalId,omitempty"` Email string `json:"email"` DefaultShippingAddress int `json:"defaultShippingAddress,omitempty"` DefaultBillingAddress int `json:"defaultBillingAddress,omitempty"` DateOfBirth *Date `json:"dateOfBirth,omitempty"` CustomerNumber string `json:"customerNumber,omitempty"` CustomerGroup *CustomerGroupResourceIdentifier `json:"customerGroup,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` CompanyName string `json:"companyName,omitempty"` BillingAddresses []int `json:"billingAddresses,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` AnonymousCartID string `json:"anonymousCartId,omitempty"` Addresses []Address `json:"addresses,omitempty"` }
CustomerDraft is a standalone struct
type CustomerEmailChangedMessage ¶
type CustomerEmailChangedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Email string `json:"email"` }
CustomerEmailChangedMessage implements the interface Message
func (CustomerEmailChangedMessage) MarshalJSON ¶
func (obj CustomerEmailChangedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerEmailChangedMessagePayload ¶
type CustomerEmailChangedMessagePayload struct {
Email string `json:"email"`
}
CustomerEmailChangedMessagePayload implements the interface MessagePayload
func (CustomerEmailChangedMessagePayload) MarshalJSON ¶
func (obj CustomerEmailChangedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerEmailVerifiedMessage ¶
type CustomerEmailVerifiedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
CustomerEmailVerifiedMessage implements the interface Message
func (CustomerEmailVerifiedMessage) MarshalJSON ¶
func (obj CustomerEmailVerifiedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerEmailVerifiedMessagePayload ¶
type CustomerEmailVerifiedMessagePayload struct{}
CustomerEmailVerifiedMessagePayload implements the interface MessagePayload
func (CustomerEmailVerifiedMessagePayload) MarshalJSON ¶
func (obj CustomerEmailVerifiedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerEmailVerify ¶
type CustomerEmailVerify struct { Version int `json:"version,omitempty"` TokenValue string `json:"tokenValue"` }
CustomerEmailVerify is a standalone struct
type CustomerGroup ¶
type CustomerGroup struct { Version int `json:"version"` Name string `json:"name"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
CustomerGroup is of type BaseResource
type CustomerGroupChangeNameAction ¶
type CustomerGroupChangeNameAction struct {
Name string `json:"name"`
}
CustomerGroupChangeNameAction implements the interface CustomerGroupUpdateAction
func (CustomerGroupChangeNameAction) MarshalJSON ¶
func (obj CustomerGroupChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerGroupDraft ¶
type CustomerGroupDraft struct { Key string `json:"key,omitempty"` GroupName string `json:"groupName"` Custom *CustomFields `json:"custom,omitempty"` }
CustomerGroupDraft is a standalone struct
type CustomerGroupPagedQueryResponse ¶
type CustomerGroupPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []CustomerGroup `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
CustomerGroupPagedQueryResponse is a standalone struct
type CustomerGroupReference ¶
type CustomerGroupReference struct { ID string `json:"id"` Obj *CustomerGroup `json:"obj,omitempty"` }
CustomerGroupReference implements the interface Reference
func (CustomerGroupReference) MarshalJSON ¶
func (obj CustomerGroupReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerGroupResourceIdentifier ¶
type CustomerGroupResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
CustomerGroupResourceIdentifier implements the interface ResourceIdentifier
func (CustomerGroupResourceIdentifier) MarshalJSON ¶
func (obj CustomerGroupResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerGroupSetCustomFieldAction ¶
type CustomerGroupSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
CustomerGroupSetCustomFieldAction implements the interface CustomerGroupUpdateAction
func (CustomerGroupSetCustomFieldAction) MarshalJSON ¶
func (obj CustomerGroupSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerGroupSetCustomTypeAction ¶
type CustomerGroupSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
CustomerGroupSetCustomTypeAction implements the interface CustomerGroupUpdateAction
func (CustomerGroupSetCustomTypeAction) MarshalJSON ¶
func (obj CustomerGroupSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerGroupSetKeyAction ¶
type CustomerGroupSetKeyAction struct {
Key string `json:"key,omitempty"`
}
CustomerGroupSetKeyAction implements the interface CustomerGroupUpdateAction
func (CustomerGroupSetKeyAction) MarshalJSON ¶
func (obj CustomerGroupSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerGroupSetMessage ¶
type CustomerGroupSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` CustomerGroup *CustomerGroupReference `json:"customerGroup"` }
CustomerGroupSetMessage implements the interface Message
func (CustomerGroupSetMessage) MarshalJSON ¶
func (obj CustomerGroupSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerGroupSetMessagePayload ¶
type CustomerGroupSetMessagePayload struct {
CustomerGroup *CustomerGroupReference `json:"customerGroup"`
}
CustomerGroupSetMessagePayload implements the interface MessagePayload
func (CustomerGroupSetMessagePayload) MarshalJSON ¶
func (obj CustomerGroupSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerGroupUpdate ¶
type CustomerGroupUpdate struct { Version int `json:"version"` Actions []CustomerGroupUpdateAction `json:"actions"` }
CustomerGroupUpdate is a standalone struct
func (*CustomerGroupUpdate) UnmarshalJSON ¶
func (obj *CustomerGroupUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CustomerGroupUpdateAction ¶
type CustomerGroupUpdateAction interface{}
CustomerGroupUpdateAction uses action as discriminator attribute
type CustomerGroupUpdateWithIDInput ¶
type CustomerGroupUpdateWithIDInput struct { ID string Version int Actions []CustomerGroupUpdateAction }
CustomerGroupUpdateWithIDInput is input for function CustomerGroupUpdateWithID
func (*CustomerGroupUpdateWithIDInput) Validate ¶
func (input *CustomerGroupUpdateWithIDInput) Validate() error
type CustomerGroupUpdateWithKeyInput ¶
type CustomerGroupUpdateWithKeyInput struct { Key string Version int Actions []CustomerGroupUpdateAction }
CustomerGroupUpdateWithKeyInput is input for function CustomerGroupUpdateWithKey
func (*CustomerGroupUpdateWithKeyInput) Validate ¶
func (input *CustomerGroupUpdateWithKeyInput) Validate() error
type CustomerPagedQueryResponse ¶
type CustomerPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Customer `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
CustomerPagedQueryResponse is a standalone struct
type CustomerReference ¶
CustomerReference implements the interface Reference
func (CustomerReference) MarshalJSON ¶
func (obj CustomerReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerRemoveAddressAction ¶
type CustomerRemoveAddressAction struct { AddressKey string `json:"addressKey,omitempty"` AddressID string `json:"addressId,omitempty"` }
CustomerRemoveAddressAction implements the interface CustomerUpdateAction
func (CustomerRemoveAddressAction) MarshalJSON ¶
func (obj CustomerRemoveAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerRemoveBillingAddressIDAction ¶
type CustomerRemoveBillingAddressIDAction struct { AddressKey string `json:"addressKey,omitempty"` AddressID string `json:"addressId,omitempty"` }
CustomerRemoveBillingAddressIDAction implements the interface CustomerUpdateAction
func (CustomerRemoveBillingAddressIDAction) MarshalJSON ¶
func (obj CustomerRemoveBillingAddressIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerRemoveShippingAddressIDAction ¶
type CustomerRemoveShippingAddressIDAction struct { AddressKey string `json:"addressKey,omitempty"` AddressID string `json:"addressId,omitempty"` }
CustomerRemoveShippingAddressIDAction implements the interface CustomerUpdateAction
func (CustomerRemoveShippingAddressIDAction) MarshalJSON ¶
func (obj CustomerRemoveShippingAddressIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerRemoveStoreAction ¶
type CustomerRemoveStoreAction struct {
Store *StoreResourceIdentifier `json:"store"`
}
CustomerRemoveStoreAction implements the interface CustomerUpdateAction
func (CustomerRemoveStoreAction) MarshalJSON ¶
func (obj CustomerRemoveStoreAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerResetPassword ¶
type CustomerResetPassword struct { Version int `json:"version,omitempty"` TokenValue string `json:"tokenValue"` NewPassword string `json:"newPassword"` }
CustomerResetPassword is a standalone struct
type CustomerResourceIdentifier ¶
type CustomerResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
CustomerResourceIdentifier implements the interface ResourceIdentifier
func (CustomerResourceIdentifier) MarshalJSON ¶
func (obj CustomerResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerResponse ¶
type CustomerResponse struct {
Customer *Customer `json:"customer"`
}
type CustomerSetCompanyNameAction ¶
type CustomerSetCompanyNameAction struct {
CompanyName string `json:"companyName,omitempty"`
}
CustomerSetCompanyNameAction implements the interface CustomerUpdateAction
func (CustomerSetCompanyNameAction) MarshalJSON ¶
func (obj CustomerSetCompanyNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetCustomFieldAction ¶
type CustomerSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
CustomerSetCustomFieldAction implements the interface CustomerUpdateAction
func (CustomerSetCustomFieldAction) MarshalJSON ¶
func (obj CustomerSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetCustomTypeAction ¶
type CustomerSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
CustomerSetCustomTypeAction implements the interface CustomerUpdateAction
func (CustomerSetCustomTypeAction) MarshalJSON ¶
func (obj CustomerSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetCustomerGroupAction ¶
type CustomerSetCustomerGroupAction struct {
CustomerGroup *CustomerGroupResourceIdentifier `json:"customerGroup,omitempty"`
}
CustomerSetCustomerGroupAction implements the interface CustomerUpdateAction
func (CustomerSetCustomerGroupAction) MarshalJSON ¶
func (obj CustomerSetCustomerGroupAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetCustomerNumberAction ¶
type CustomerSetCustomerNumberAction struct {
CustomerNumber string `json:"customerNumber,omitempty"`
}
CustomerSetCustomerNumberAction implements the interface CustomerUpdateAction
func (CustomerSetCustomerNumberAction) MarshalJSON ¶
func (obj CustomerSetCustomerNumberAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetDateOfBirthAction ¶
type CustomerSetDateOfBirthAction struct {
DateOfBirth *Date `json:"dateOfBirth,omitempty"`
}
CustomerSetDateOfBirthAction implements the interface CustomerUpdateAction
func (CustomerSetDateOfBirthAction) MarshalJSON ¶
func (obj CustomerSetDateOfBirthAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetDefaultBillingAddressAction ¶
type CustomerSetDefaultBillingAddressAction struct { AddressKey string `json:"addressKey,omitempty"` AddressID string `json:"addressId,omitempty"` }
CustomerSetDefaultBillingAddressAction implements the interface CustomerUpdateAction
func (CustomerSetDefaultBillingAddressAction) MarshalJSON ¶
func (obj CustomerSetDefaultBillingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetDefaultShippingAddressAction ¶
type CustomerSetDefaultShippingAddressAction struct { AddressKey string `json:"addressKey,omitempty"` AddressID string `json:"addressId,omitempty"` }
CustomerSetDefaultShippingAddressAction implements the interface CustomerUpdateAction
func (CustomerSetDefaultShippingAddressAction) MarshalJSON ¶
func (obj CustomerSetDefaultShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetExternalIDAction ¶
type CustomerSetExternalIDAction struct {
ExternalID string `json:"externalId,omitempty"`
}
CustomerSetExternalIDAction implements the interface CustomerUpdateAction
func (CustomerSetExternalIDAction) MarshalJSON ¶
func (obj CustomerSetExternalIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetFirstNameAction ¶
type CustomerSetFirstNameAction struct {
FirstName string `json:"firstName,omitempty"`
}
CustomerSetFirstNameAction implements the interface CustomerUpdateAction
func (CustomerSetFirstNameAction) MarshalJSON ¶
func (obj CustomerSetFirstNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetKeyAction ¶
type CustomerSetKeyAction struct {
Key string `json:"key,omitempty"`
}
CustomerSetKeyAction implements the interface CustomerUpdateAction
func (CustomerSetKeyAction) MarshalJSON ¶
func (obj CustomerSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetLastNameAction ¶
type CustomerSetLastNameAction struct {
LastName string `json:"lastName,omitempty"`
}
CustomerSetLastNameAction implements the interface CustomerUpdateAction
func (CustomerSetLastNameAction) MarshalJSON ¶
func (obj CustomerSetLastNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetLocaleAction ¶
type CustomerSetLocaleAction struct {
Locale string `json:"locale,omitempty"`
}
CustomerSetLocaleAction implements the interface CustomerUpdateAction
func (CustomerSetLocaleAction) MarshalJSON ¶
func (obj CustomerSetLocaleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetMiddleNameAction ¶
type CustomerSetMiddleNameAction struct {
MiddleName string `json:"middleName,omitempty"`
}
CustomerSetMiddleNameAction implements the interface CustomerUpdateAction
func (CustomerSetMiddleNameAction) MarshalJSON ¶
func (obj CustomerSetMiddleNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetSalutationAction ¶
type CustomerSetSalutationAction struct {
Salutation string `json:"salutation,omitempty"`
}
CustomerSetSalutationAction implements the interface CustomerUpdateAction
func (CustomerSetSalutationAction) MarshalJSON ¶
func (obj CustomerSetSalutationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetStoresAction ¶
type CustomerSetStoresAction struct {
Stores []StoreResourceIdentifier `json:"stores,omitempty"`
}
CustomerSetStoresAction implements the interface CustomerUpdateAction
func (CustomerSetStoresAction) MarshalJSON ¶
func (obj CustomerSetStoresAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetTitleAction ¶
type CustomerSetTitleAction struct {
Title string `json:"title,omitempty"`
}
CustomerSetTitleAction implements the interface CustomerUpdateAction
func (CustomerSetTitleAction) MarshalJSON ¶
func (obj CustomerSetTitleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSetVatIDAction ¶
type CustomerSetVatIDAction struct {
VatID string `json:"vatId,omitempty"`
}
CustomerSetVatIDAction implements the interface CustomerUpdateAction
func (CustomerSetVatIDAction) MarshalJSON ¶
func (obj CustomerSetVatIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type CustomerSignInResult ¶
type CustomerSignInResult struct { Customer *Customer `json:"customer"` Cart interface{} `json:"cart,omitempty"` }
CustomerSignInResult is a standalone struct
type CustomerSignin ¶
type CustomerSignin struct { UpdateProductData bool `json:"updateProductData"` Password string `json:"password"` Email string `json:"email"` AnonymousID string `json:"anonymousId,omitempty"` AnonymousCartSignInMode AnonymousCartSignInMode `json:"anonymousCartSignInMode,omitempty"` AnonymousCartID string `json:"anonymousCartId,omitempty"` }
CustomerSignin is a standalone struct
type CustomerToken ¶
type CustomerToken struct { Value string `json:"value"` LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` ID string `json:"id"` ExpiresAt time.Time `json:"expiresAt"` CustomerID string `json:"customerId"` CreatedAt time.Time `json:"createdAt"` }
CustomerToken is a standalone struct
type CustomerUpdate ¶
type CustomerUpdate struct { Version int `json:"version"` Actions []CustomerUpdateAction `json:"actions"` }
CustomerUpdate is a standalone struct
func (*CustomerUpdate) UnmarshalJSON ¶
func (obj *CustomerUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type CustomerUpdateAction ¶
type CustomerUpdateAction interface{}
CustomerUpdateAction uses action as discriminator attribute
type CustomerUpdateWithIDInput ¶
type CustomerUpdateWithIDInput struct { ID string Version int Actions []CustomerUpdateAction }
CustomerUpdateWithIDInput is input for function CustomerUpdateWithID
func (*CustomerUpdateWithIDInput) Validate ¶
func (input *CustomerUpdateWithIDInput) Validate() error
type CustomerUpdateWithKeyInput ¶
type CustomerUpdateWithKeyInput struct { Key string Version int Actions []CustomerUpdateAction }
CustomerUpdateWithKeyInput is input for function CustomerUpdateWithKey
func (*CustomerUpdateWithKeyInput) Validate ¶
func (input *CustomerUpdateWithKeyInput) Validate() error
type Date ¶
Date holds date information for Commercetools API format
func (*Date) MarshalJSON ¶
MarshalJSON marshals into the commercetools date format
func (*Date) UnmarshalJSON ¶
UnmarshalJSON decodes JSON data into a Date struct
type Delivery ¶
type Delivery struct { Parcels []Parcel `json:"parcels"` Items []DeliveryItem `json:"items"` ID string `json:"id"` CreatedAt time.Time `json:"createdAt"` Address *Address `json:"address,omitempty"` }
Delivery is a standalone struct
type DeliveryAddedMessage ¶
type DeliveryAddedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Delivery *Delivery `json:"delivery"` }
DeliveryAddedMessage implements the interface Message
func (DeliveryAddedMessage) MarshalJSON ¶
func (obj DeliveryAddedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DeliveryAddedMessagePayload ¶
type DeliveryAddedMessagePayload struct {
Delivery *Delivery `json:"delivery"`
}
DeliveryAddedMessagePayload implements the interface MessagePayload
func (DeliveryAddedMessagePayload) MarshalJSON ¶
func (obj DeliveryAddedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DeliveryAddressSetMessage ¶
type DeliveryAddressSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` OldAddress *Address `json:"oldAddress,omitempty"` DeliveryID string `json:"deliveryId"` Address *Address `json:"address,omitempty"` }
DeliveryAddressSetMessage implements the interface Message
func (DeliveryAddressSetMessage) MarshalJSON ¶
func (obj DeliveryAddressSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DeliveryAddressSetMessagePayload ¶
type DeliveryAddressSetMessagePayload struct { OldAddress *Address `json:"oldAddress,omitempty"` DeliveryID string `json:"deliveryId"` Address *Address `json:"address,omitempty"` }
DeliveryAddressSetMessagePayload implements the interface MessagePayload
func (DeliveryAddressSetMessagePayload) MarshalJSON ¶
func (obj DeliveryAddressSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DeliveryCloudEventsFormat ¶
type DeliveryCloudEventsFormat struct {
CloudEventsVersion string `json:"cloudEventsVersion"`
}
DeliveryCloudEventsFormat implements the interface DeliveryFormat
func (DeliveryCloudEventsFormat) MarshalJSON ¶
func (obj DeliveryCloudEventsFormat) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DeliveryFormat ¶
type DeliveryFormat interface{}
DeliveryFormat uses type as discriminator attribute
type DeliveryItem ¶
DeliveryItem is a standalone struct
type DeliveryItemsUpdatedMessage ¶
type DeliveryItemsUpdatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` OldItems []DeliveryItem `json:"oldItems"` Items []DeliveryItem `json:"items"` DeliveryID string `json:"deliveryId"` }
DeliveryItemsUpdatedMessage implements the interface Message
func (DeliveryItemsUpdatedMessage) MarshalJSON ¶
func (obj DeliveryItemsUpdatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DeliveryItemsUpdatedMessagePayload ¶
type DeliveryItemsUpdatedMessagePayload struct { OldItems []DeliveryItem `json:"oldItems"` Items []DeliveryItem `json:"items"` DeliveryID string `json:"deliveryId"` }
DeliveryItemsUpdatedMessagePayload implements the interface MessagePayload
func (DeliveryItemsUpdatedMessagePayload) MarshalJSON ¶
func (obj DeliveryItemsUpdatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DeliveryPlatformFormat ¶
type DeliveryPlatformFormat struct{}
DeliveryPlatformFormat implements the interface DeliveryFormat
func (DeliveryPlatformFormat) MarshalJSON ¶
func (obj DeliveryPlatformFormat) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DeliveryRemovedMessage ¶
type DeliveryRemovedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Delivery *Delivery `json:"delivery"` }
DeliveryRemovedMessage implements the interface Message
func (DeliveryRemovedMessage) MarshalJSON ¶
func (obj DeliveryRemovedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DeliveryRemovedMessagePayload ¶
type DeliveryRemovedMessagePayload struct {
Delivery *Delivery `json:"delivery"`
}
DeliveryRemovedMessagePayload implements the interface MessagePayload
func (DeliveryRemovedMessagePayload) MarshalJSON ¶
func (obj DeliveryRemovedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCode ¶
type DiscountCode struct { Version int `json:"version"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` References []Reference `json:"references"` Name *LocalizedString `json:"name,omitempty"` MaxApplicationsPerCustomer int `json:"maxApplicationsPerCustomer,omitempty"` MaxApplications int `json:"maxApplications,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` IsActive bool `json:"isActive"` ID string `json:"id"` Groups []string `json:"groups"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Code string `json:"code"` CartPredicate string `json:"cartPredicate,omitempty"` CartDiscounts []CartDiscountReference `json:"cartDiscounts"` }
DiscountCode is of type BaseResource
func (*DiscountCode) UnmarshalJSON ¶
func (obj *DiscountCode) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type DiscountCodeChangeCartDiscountsAction ¶
type DiscountCodeChangeCartDiscountsAction struct {
CartDiscounts []CartDiscountResourceIdentifier `json:"cartDiscounts"`
}
DiscountCodeChangeCartDiscountsAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeChangeCartDiscountsAction) MarshalJSON ¶
func (obj DiscountCodeChangeCartDiscountsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeChangeGroupsAction ¶
type DiscountCodeChangeGroupsAction struct {
Groups []string `json:"groups"`
}
DiscountCodeChangeGroupsAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeChangeGroupsAction) MarshalJSON ¶
func (obj DiscountCodeChangeGroupsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeChangeIsActiveAction ¶
type DiscountCodeChangeIsActiveAction struct {
IsActive bool `json:"isActive"`
}
DiscountCodeChangeIsActiveAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeChangeIsActiveAction) MarshalJSON ¶
func (obj DiscountCodeChangeIsActiveAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeDraft ¶
type DiscountCodeDraft struct { ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` Name *LocalizedString `json:"name,omitempty"` MaxApplicationsPerCustomer int `json:"maxApplicationsPerCustomer,omitempty"` MaxApplications int `json:"maxApplications,omitempty"` IsActive bool `json:"isActive"` Groups []string `json:"groups,omitempty"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` Code string `json:"code"` CartPredicate string `json:"cartPredicate,omitempty"` CartDiscounts []CartDiscountResourceIdentifier `json:"cartDiscounts"` }
DiscountCodeDraft is a standalone struct
type DiscountCodeInfo ¶
type DiscountCodeInfo struct { State DiscountCodeState `json:"state"` DiscountCode *DiscountCodeReference `json:"discountCode"` }
DiscountCodeInfo is a standalone struct
type DiscountCodeNonApplicableError ¶
type DiscountCodeNonApplicableError struct { Message string `json:"message"` ValidityCheckTime *time.Time `json:"validityCheckTime,omitempty"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` Reason string `json:"reason,omitempty"` DiscountCode string `json:"discountCode,omitempty"` DicountCodeID string `json:"dicountCodeId,omitempty"` }
DiscountCodeNonApplicableError implements the interface ErrorObject
func (DiscountCodeNonApplicableError) Error ¶
func (obj DiscountCodeNonApplicableError) Error() string
func (DiscountCodeNonApplicableError) MarshalJSON ¶
func (obj DiscountCodeNonApplicableError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodePagedQueryResponse ¶
type DiscountCodePagedQueryResponse struct { Total int `json:"total,omitempty"` Results []DiscountCode `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
DiscountCodePagedQueryResponse is a standalone struct
type DiscountCodeReference ¶
type DiscountCodeReference struct { ID string `json:"id"` Obj *DiscountCode `json:"obj,omitempty"` }
DiscountCodeReference implements the interface Reference
func (DiscountCodeReference) MarshalJSON ¶
func (obj DiscountCodeReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeResourceIdentifier ¶
type DiscountCodeResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
DiscountCodeResourceIdentifier implements the interface ResourceIdentifier
func (DiscountCodeResourceIdentifier) MarshalJSON ¶
func (obj DiscountCodeResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetCartPredicateAction ¶
type DiscountCodeSetCartPredicateAction struct {
CartPredicate string `json:"cartPredicate,omitempty"`
}
DiscountCodeSetCartPredicateAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetCartPredicateAction) MarshalJSON ¶
func (obj DiscountCodeSetCartPredicateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetCustomFieldAction ¶
type DiscountCodeSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
DiscountCodeSetCustomFieldAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetCustomFieldAction) MarshalJSON ¶
func (obj DiscountCodeSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetCustomTypeAction ¶
type DiscountCodeSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
DiscountCodeSetCustomTypeAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetCustomTypeAction) MarshalJSON ¶
func (obj DiscountCodeSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetDescriptionAction ¶
type DiscountCodeSetDescriptionAction struct {
Description *LocalizedString `json:"description,omitempty"`
}
DiscountCodeSetDescriptionAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetDescriptionAction) MarshalJSON ¶
func (obj DiscountCodeSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetMaxApplicationsAction ¶
type DiscountCodeSetMaxApplicationsAction struct {
MaxApplications int `json:"maxApplications,omitempty"`
}
DiscountCodeSetMaxApplicationsAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetMaxApplicationsAction) MarshalJSON ¶
func (obj DiscountCodeSetMaxApplicationsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetMaxApplicationsPerCustomerAction ¶
type DiscountCodeSetMaxApplicationsPerCustomerAction struct {
MaxApplicationsPerCustomer int `json:"maxApplicationsPerCustomer,omitempty"`
}
DiscountCodeSetMaxApplicationsPerCustomerAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetMaxApplicationsPerCustomerAction) MarshalJSON ¶
func (obj DiscountCodeSetMaxApplicationsPerCustomerAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetNameAction ¶
type DiscountCodeSetNameAction struct {
Name *LocalizedString `json:"name,omitempty"`
}
DiscountCodeSetNameAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetNameAction) MarshalJSON ¶
func (obj DiscountCodeSetNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetValidFromAction ¶
DiscountCodeSetValidFromAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetValidFromAction) MarshalJSON ¶
func (obj DiscountCodeSetValidFromAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetValidFromAndUntilAction ¶
type DiscountCodeSetValidFromAndUntilAction struct { ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` }
DiscountCodeSetValidFromAndUntilAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetValidFromAndUntilAction) MarshalJSON ¶
func (obj DiscountCodeSetValidFromAndUntilAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeSetValidUntilAction ¶
DiscountCodeSetValidUntilAction implements the interface DiscountCodeUpdateAction
func (DiscountCodeSetValidUntilAction) MarshalJSON ¶
func (obj DiscountCodeSetValidUntilAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DiscountCodeState ¶
type DiscountCodeState string
DiscountCodeState is an enum type
const ( DiscountCodeStateNotActive DiscountCodeState = "NotActive" DiscountCodeStateDoesNotMatchCart DiscountCodeState = "DoesNotMatchCart" DiscountCodeStateMatchesCart DiscountCodeState = "MatchesCart" DiscountCodeStateMaxApplicationReached DiscountCodeState = "MaxApplicationReached" DiscountCodeStateApplicationStoppedByPreviousDiscount DiscountCodeState = "ApplicationStoppedByPreviousDiscount" DiscountCodeStateNotValid DiscountCodeState = "NotValid" )
Enum values for DiscountCodeState
type DiscountCodeUpdate ¶
type DiscountCodeUpdate struct { Version int `json:"version"` Actions []DiscountCodeUpdateAction `json:"actions"` }
DiscountCodeUpdate is a standalone struct
func (*DiscountCodeUpdate) UnmarshalJSON ¶
func (obj *DiscountCodeUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type DiscountCodeUpdateAction ¶
type DiscountCodeUpdateAction interface{}
DiscountCodeUpdateAction uses action as discriminator attribute
type DiscountCodeUpdateWithIDInput ¶
type DiscountCodeUpdateWithIDInput struct { ID string Version int Actions []DiscountCodeUpdateAction }
DiscountCodeUpdateWithIDInput is input for function DiscountCodeUpdateWithID
func (*DiscountCodeUpdateWithIDInput) Validate ¶
func (input *DiscountCodeUpdateWithIDInput) Validate() error
type DiscountedLineItemPortion ¶
type DiscountedLineItemPortion struct { DiscountedAmount TypedMoney `json:"discountedAmount"` Discount *CartDiscountReference `json:"discount"` }
DiscountedLineItemPortion is a standalone struct
func (*DiscountedLineItemPortion) UnmarshalJSON ¶
func (obj *DiscountedLineItemPortion) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type DiscountedLineItemPrice ¶
type DiscountedLineItemPrice struct { Value TypedMoney `json:"value"` IncludedDiscounts []DiscountedLineItemPortion `json:"includedDiscounts"` }
DiscountedLineItemPrice is a standalone struct
func (*DiscountedLineItemPrice) UnmarshalJSON ¶
func (obj *DiscountedLineItemPrice) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type DiscountedLineItemPriceDraft ¶
type DiscountedLineItemPriceDraft struct { Value *Money `json:"value"` IncludedDiscounts []DiscountedLineItemPortion `json:"includedDiscounts"` }
DiscountedLineItemPriceDraft is a standalone struct
type DiscountedLineItemPriceForQuantity ¶
type DiscountedLineItemPriceForQuantity struct { Quantity float64 `json:"quantity"` DiscountedPrice *DiscountedLineItemPrice `json:"discountedPrice"` }
DiscountedLineItemPriceForQuantity is a standalone struct
type DiscountedPrice ¶
type DiscountedPrice struct { Value *Money `json:"value"` Discount *ProductDiscountReference `json:"discount"` }
DiscountedPrice is a standalone struct
type DuplicateAttributeValueError ¶
type DuplicateAttributeValueError struct { Message string `json:"message"` Attribute *Attribute `json:"attribute"` }
DuplicateAttributeValueError implements the interface ErrorObject
func (DuplicateAttributeValueError) Error ¶
func (obj DuplicateAttributeValueError) Error() string
func (DuplicateAttributeValueError) MarshalJSON ¶
func (obj DuplicateAttributeValueError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DuplicateAttributeValuesError ¶
type DuplicateAttributeValuesError struct { Message string `json:"message"` Attributes []Attribute `json:"attributes"` }
DuplicateAttributeValuesError implements the interface ErrorObject
func (DuplicateAttributeValuesError) Error ¶
func (obj DuplicateAttributeValuesError) Error() string
func (DuplicateAttributeValuesError) MarshalJSON ¶
func (obj DuplicateAttributeValuesError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DuplicateFieldError ¶
type DuplicateFieldError struct { Message string `json:"message"` Field string `json:"field,omitempty"` DuplicateValue interface{} `json:"duplicateValue,omitempty"` ConflictingResource Reference `json:"conflictingResource,omitempty"` }
DuplicateFieldError implements the interface ErrorObject
func (DuplicateFieldError) Error ¶
func (obj DuplicateFieldError) Error() string
func (DuplicateFieldError) MarshalJSON ¶
func (obj DuplicateFieldError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*DuplicateFieldError) UnmarshalJSON ¶
func (obj *DuplicateFieldError) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type DuplicateFieldWithConflictingResourceError ¶
type DuplicateFieldWithConflictingResourceError struct { Message string `json:"message"` Field string `json:"field"` DuplicateValue interface{} `json:"duplicateValue"` ConflictingResource Reference `json:"conflictingResource"` }
DuplicateFieldWithConflictingResourceError implements the interface ErrorObject
func (DuplicateFieldWithConflictingResourceError) Error ¶
func (obj DuplicateFieldWithConflictingResourceError) Error() string
func (DuplicateFieldWithConflictingResourceError) MarshalJSON ¶
func (obj DuplicateFieldWithConflictingResourceError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*DuplicateFieldWithConflictingResourceError) UnmarshalJSON ¶
func (obj *DuplicateFieldWithConflictingResourceError) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type DuplicatePriceScopeError ¶
type DuplicatePriceScopeError struct { Message string `json:"message"` ConflictingPrices []Price `json:"conflictingPrices"` }
DuplicatePriceScopeError implements the interface ErrorObject
func (DuplicatePriceScopeError) Error ¶
func (obj DuplicatePriceScopeError) Error() string
func (DuplicatePriceScopeError) MarshalJSON ¶
func (obj DuplicatePriceScopeError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type DuplicateVariantValuesError ¶
type DuplicateVariantValuesError struct { Message string `json:"message"` VariantValues *VariantValues `json:"variantValues"` }
DuplicateVariantValuesError implements the interface ErrorObject
func (DuplicateVariantValuesError) Error ¶
func (obj DuplicateVariantValuesError) Error() string
func (DuplicateVariantValuesError) MarshalJSON ¶
func (obj DuplicateVariantValuesError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type EnumValueIsUsedError ¶
type EnumValueIsUsedError struct {
Message string `json:"message"`
}
EnumValueIsUsedError implements the interface ErrorObject
func (EnumValueIsUsedError) Error ¶
func (obj EnumValueIsUsedError) Error() string
func (EnumValueIsUsedError) MarshalJSON ¶
func (obj EnumValueIsUsedError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ErrorByExtension ¶
ErrorByExtension is a standalone struct
type ErrorResponse ¶
type ErrorResponse struct { StatusCode int `json:"statusCode"` Message string `json:"message"` Errors []ErrorObject `json:"errors,omitempty"` ErrorDescription string `json:"error_description,omitempty"` ErrorMessage string `json:"error,omitempty"` }
ErrorResponse is a standalone struct
func (ErrorResponse) Error ¶
func (obj ErrorResponse) Error() string
func (*ErrorResponse) UnmarshalJSON ¶
func (obj *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type Extension ¶
type Extension struct { Version int `json:"version"` Triggers []ExtensionTrigger `json:"triggers"` TimeoutInMs int `json:"timeoutInMs,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` Destination ExtensionDestination `json:"destination"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
Extension is of type BaseResource
func (*Extension) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ExtensionAWSLambdaDestination ¶
type ExtensionAWSLambdaDestination struct { Arn string `json:"arn"` AccessSecret string `json:"accessSecret"` AccessKey string `json:"accessKey"` }
ExtensionAWSLambdaDestination implements the interface ExtensionDestination
func (ExtensionAWSLambdaDestination) MarshalJSON ¶
func (obj ExtensionAWSLambdaDestination) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ExtensionAction ¶
type ExtensionAction string
ExtensionAction is an enum type
const ( ExtensionActionCreate ExtensionAction = "Create" ExtensionActionUpdate ExtensionAction = "Update" )
Enum values for ExtensionAction
type ExtensionAuthorizationHeaderAuthentication ¶
type ExtensionAuthorizationHeaderAuthentication struct {
HeaderValue string `json:"headerValue"`
}
ExtensionAuthorizationHeaderAuthentication implements the interface ExtensionHTTPDestinationAuthentication
func (ExtensionAuthorizationHeaderAuthentication) MarshalJSON ¶
func (obj ExtensionAuthorizationHeaderAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ExtensionAzureFunctionsAuthentication ¶
type ExtensionAzureFunctionsAuthentication struct {
Key string `json:"key"`
}
ExtensionAzureFunctionsAuthentication implements the interface ExtensionHTTPDestinationAuthentication
func (ExtensionAzureFunctionsAuthentication) MarshalJSON ¶
func (obj ExtensionAzureFunctionsAuthentication) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ExtensionBadResponseError ¶
type ExtensionBadResponseError struct { Message string `json:"message"` LocalizedMessage *LocalizedString `json:"localizedMessage,omitempty"` ExtensionExtraInfo interface{} `json:"extensionExtraInfo,omitempty"` ErrorByExtension *ErrorByExtension `json:"errorByExtension"` }
ExtensionBadResponseError implements the interface ErrorObject
func (ExtensionBadResponseError) Error ¶
func (obj ExtensionBadResponseError) Error() string
func (ExtensionBadResponseError) MarshalJSON ¶
func (obj ExtensionBadResponseError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ExtensionChangeDestinationAction ¶
type ExtensionChangeDestinationAction struct {
Destination ExtensionDestination `json:"destination"`
}
ExtensionChangeDestinationAction implements the interface ExtensionUpdateAction
func (ExtensionChangeDestinationAction) MarshalJSON ¶
func (obj ExtensionChangeDestinationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ExtensionChangeDestinationAction) UnmarshalJSON ¶
func (obj *ExtensionChangeDestinationAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ExtensionChangeTriggersAction ¶
type ExtensionChangeTriggersAction struct {
Triggers []ExtensionTrigger `json:"triggers"`
}
ExtensionChangeTriggersAction implements the interface ExtensionUpdateAction
func (ExtensionChangeTriggersAction) MarshalJSON ¶
func (obj ExtensionChangeTriggersAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ExtensionDestination ¶
type ExtensionDestination interface{}
ExtensionDestination uses type as discriminator attribute
type ExtensionDraft ¶
type ExtensionDraft struct { Triggers []ExtensionTrigger `json:"triggers"` TimeoutInMs int `json:"timeoutInMs,omitempty"` Key string `json:"key,omitempty"` Destination ExtensionDestination `json:"destination"` }
ExtensionDraft is a standalone struct
func (*ExtensionDraft) UnmarshalJSON ¶
func (obj *ExtensionDraft) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ExtensionHTTPDestination ¶
type ExtensionHTTPDestination struct { URL string `json:"url"` Authentication ExtensionHTTPDestinationAuthentication `json:"authentication,omitempty"` }
ExtensionHTTPDestination implements the interface ExtensionDestination
func (ExtensionHTTPDestination) MarshalJSON ¶
func (obj ExtensionHTTPDestination) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ExtensionHTTPDestination) UnmarshalJSON ¶
func (obj *ExtensionHTTPDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ExtensionHTTPDestinationAuthentication ¶
type ExtensionHTTPDestinationAuthentication interface{}
ExtensionHTTPDestinationAuthentication uses type as discriminator attribute
type ExtensionInput ¶
type ExtensionInput struct { Resource Reference `json:"resource"` Action ExtensionAction `json:"action"` }
ExtensionInput is a standalone struct
func (*ExtensionInput) UnmarshalJSON ¶
func (obj *ExtensionInput) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ExtensionNoResponseError ¶
type ExtensionNoResponseError struct { Message string `json:"message"` LocalizedMessage *LocalizedString `json:"localizedMessage,omitempty"` ExtensionExtraInfo interface{} `json:"extensionExtraInfo,omitempty"` ErrorByExtension *ErrorByExtension `json:"errorByExtension"` }
ExtensionNoResponseError implements the interface ErrorObject
func (ExtensionNoResponseError) Error ¶
func (obj ExtensionNoResponseError) Error() string
func (ExtensionNoResponseError) MarshalJSON ¶
func (obj ExtensionNoResponseError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ExtensionPagedQueryResponse ¶
type ExtensionPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Extension `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
ExtensionPagedQueryResponse is a standalone struct
type ExtensionResourceTypeID ¶
type ExtensionResourceTypeID string
ExtensionResourceTypeID is an enum type
const ( ExtensionResourceTypeIDCart ExtensionResourceTypeID = "cart" ExtensionResourceTypeIDOrder ExtensionResourceTypeID = "order" ExtensionResourceTypeIDPayment ExtensionResourceTypeID = "payment" ExtensionResourceTypeIDCustomer ExtensionResourceTypeID = "customer" )
Enum values for ExtensionResourceTypeID
type ExtensionSetKeyAction ¶
type ExtensionSetKeyAction struct {
Key string `json:"key,omitempty"`
}
ExtensionSetKeyAction implements the interface ExtensionUpdateAction
func (ExtensionSetKeyAction) MarshalJSON ¶
func (obj ExtensionSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ExtensionSetTimeoutInMsAction ¶
type ExtensionSetTimeoutInMsAction struct {
TimeoutInMs int `json:"timeoutInMs,omitempty"`
}
ExtensionSetTimeoutInMsAction implements the interface ExtensionUpdateAction
func (ExtensionSetTimeoutInMsAction) MarshalJSON ¶
func (obj ExtensionSetTimeoutInMsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ExtensionTrigger ¶
type ExtensionTrigger struct { ResourceTypeID ExtensionResourceTypeID `json:"resourceTypeId"` Actions []ExtensionAction `json:"actions"` }
ExtensionTrigger is a standalone struct
type ExtensionUpdate ¶
type ExtensionUpdate struct { Version int `json:"version"` Actions []ExtensionUpdateAction `json:"actions"` }
ExtensionUpdate is a standalone struct
func (*ExtensionUpdate) UnmarshalJSON ¶
func (obj *ExtensionUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ExtensionUpdateAction ¶
type ExtensionUpdateAction interface{}
ExtensionUpdateAction uses action as discriminator attribute
type ExtensionUpdateActionsFailedError ¶
type ExtensionUpdateActionsFailedError struct { Message string `json:"message"` LocalizedMessage *LocalizedString `json:"localizedMessage,omitempty"` ExtensionExtraInfo interface{} `json:"extensionExtraInfo,omitempty"` ErrorByExtension *ErrorByExtension `json:"errorByExtension"` }
ExtensionUpdateActionsFailedError implements the interface ErrorObject
func (ExtensionUpdateActionsFailedError) Error ¶
func (obj ExtensionUpdateActionsFailedError) Error() string
func (ExtensionUpdateActionsFailedError) MarshalJSON ¶
func (obj ExtensionUpdateActionsFailedError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ExtensionUpdateWithIDInput ¶
type ExtensionUpdateWithIDInput struct { ID string Version int Actions []ExtensionUpdateAction }
ExtensionUpdateWithIDInput is input for function ExtensionUpdateWithID
func (*ExtensionUpdateWithIDInput) Validate ¶
func (input *ExtensionUpdateWithIDInput) Validate() error
type ExtensionUpdateWithKeyInput ¶
type ExtensionUpdateWithKeyInput struct { Key string Version int Actions []ExtensionUpdateAction }
ExtensionUpdateWithKeyInput is input for function ExtensionUpdateWithKey
func (*ExtensionUpdateWithKeyInput) Validate ¶
func (input *ExtensionUpdateWithKeyInput) Validate() error
type ExternalLineItemTotalPrice ¶
type ExternalLineItemTotalPrice struct { TotalPrice *Money `json:"totalPrice"` Price *Money `json:"price"` }
ExternalLineItemTotalPrice is a standalone struct
type ExternalOAuth ¶
type ExternalOAuth struct { URL string `json:"url"` AuthorizationHeader string `json:"authorizationHeader"` }
ExternalOAuth is a standalone struct
type ExternalTaxAmountDraft ¶
type ExternalTaxAmountDraft struct { TotalGross *Money `json:"totalGross"` TaxRate *ExternalTaxRateDraft `json:"taxRate"` }
ExternalTaxAmountDraft is a standalone struct
type ExternalTaxRateDraft ¶
type ExternalTaxRateDraft struct { SubRates []SubRate `json:"subRates,omitempty"` State string `json:"state,omitempty"` Name string `json:"name"` IncludedInPrice bool `json:"includedInPrice"` Country string `json:"country"` Amount float64 `json:"amount,omitempty"` }
ExternalTaxRateDraft is a standalone struct
type FacetResultRange ¶
type FacetResultRange struct { Total int `json:"total"` ToStr string `json:"toStr"` To float64 `json:"to"` ProductCount int `json:"productCount,omitempty"` Min float64 `json:"min"` Mean float64 `json:"mean"` Max float64 `json:"max"` FromStr string `json:"fromStr"` From float64 `json:"from"` Count int `json:"count"` }
FacetResultRange is a standalone struct
type FacetResultTerm ¶
type FacetResultTerm struct { Term interface{} `json:"term"` ProductCount int `json:"productCount,omitempty"` Count int `json:"count"` }
FacetResultTerm is a standalone struct
type FacetResults ¶
type FacetResults struct { }
FacetResults is a standalone struct
func (*FacetResults) UnmarshalJSON ¶
func (obj *FacetResults) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type FacetTypes ¶
type FacetTypes string
FacetTypes is an enum type
const ( FacetTypesTerms FacetTypes = "terms" FacetTypesRange FacetTypes = "range" FacetTypesFilter FacetTypes = "filter" )
Enum values for FacetTypes
type FieldDefinition ¶
type FieldDefinition struct { Type FieldType `json:"type"` Required bool `json:"required"` Name string `json:"name"` Label *LocalizedString `json:"label"` InputHint TypeTextInputHint `json:"inputHint,omitempty"` }
FieldDefinition is a standalone struct
func (*FieldDefinition) UnmarshalJSON ¶
func (obj *FieldDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type FilteredFacetResult ¶
type FilteredFacetResult struct { ProductCount int `json:"productCount,omitempty"` Count int `json:"count"` }
FilteredFacetResult implements the interface FacetResult
func (FilteredFacetResult) MarshalJSON ¶
func (obj FilteredFacetResult) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type GeoJSONPoint ¶
type GeoJSONPoint struct {
Coordinates []float64 `json:"coordinates"`
}
GeoJSONPoint implements the interface GeoJSON
func (GeoJSONPoint) MarshalJSON ¶
func (obj GeoJSONPoint) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type GoogleCloudPubSubDestination ¶
type GoogleCloudPubSubDestination struct { Topic string `json:"topic"` ProjectID string `json:"projectId"` }
GoogleCloudPubSubDestination implements the interface Destination
func (GoogleCloudPubSubDestination) MarshalJSON ¶
func (obj GoogleCloudPubSubDestination) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type GraphQLError ¶
type GraphQLError struct { Path []interface{} `json:"path"` Message string `json:"message"` Locations []GraphQLErrorLocation `json:"locations"` }
GraphQLError is a standalone struct
func (GraphQLError) Error ¶
func (obj GraphQLError) Error() string
type GraphQLErrorLocation ¶
GraphQLErrorLocation is a standalone struct
type GraphQLOption ¶
type GraphQLOption func(o *GraphQLQuery)
type GraphQLQuery ¶
type GraphQLQuery struct {
// contains filtered or unexported fields
}
func (*GraphQLQuery) Bind ¶
func (gql *GraphQLQuery) Bind(key string, value interface{})
Bind variables to the GraphQL query
func (*GraphQLQuery) Execute ¶
func (gql *GraphQLQuery) Execute(respData interface{}, opts ...GraphQLOption) error
Execute the GraphQL query
func (*GraphQLQuery) ForMerchantCenter ¶
func (gql *GraphQLQuery) ForMerchantCenter() GraphQLOption
type GraphQLRequest ¶
type GraphQLRequest struct { Variables *GraphQLVariablesMap `json:"variables,omitempty"` Query string `json:"query"` OperationName string `json:"operationName,omitempty"` }
GraphQLRequest is a standalone struct
type GraphQLResponse ¶
type GraphQLResponse struct { Errors []GraphQLError `json:"errors,omitempty"` Data interface{} `json:"data,omitempty"` }
GraphQLResponse is a standalone struct
type GraphQLVariablesMap ¶
type GraphQLVariablesMap map[string]interface{}
GraphQLVariablesMap is a map
type HighPrecisionMoney ¶
type HighPrecisionMoney struct { FractionDigits float64 `json:"fractionDigits"` CurrencyCode CurrencyCode `json:"currencyCode"` CentAmount int `json:"centAmount"` PreciseAmount int `json:"preciseAmount"` }
HighPrecisionMoney implements the interface TypedMoney
func (HighPrecisionMoney) MarshalJSON ¶
func (obj HighPrecisionMoney) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type HighPrecisionMoneyDraft ¶
type HighPrecisionMoneyDraft struct { CurrencyCode CurrencyCode `json:"currencyCode"` CentAmount int `json:"centAmount"` PreciseAmount int `json:"preciseAmount"` }
HighPrecisionMoneyDraft implements the interface TypedMoneyDraft
func (HighPrecisionMoneyDraft) MarshalJSON ¶
func (obj HighPrecisionMoneyDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Image ¶
type Image struct { URL string `json:"url"` Label string `json:"label,omitempty"` Dimensions *ImageDimensions `json:"dimensions"` }
Image is a standalone struct
type ImageDimensions ¶
ImageDimensions is a standalone struct
type InsufficientScopeError ¶
type InsufficientScopeError struct {
Message string `json:"message"`
}
InsufficientScopeError implements the interface ErrorObject
func (InsufficientScopeError) Error ¶
func (obj InsufficientScopeError) Error() string
func (InsufficientScopeError) MarshalJSON ¶
func (obj InsufficientScopeError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InvalidCredentialsError ¶
type InvalidCredentialsError struct {
Message string `json:"message"`
}
InvalidCredentialsError implements the interface ErrorObject
func (InvalidCredentialsError) Error ¶
func (obj InvalidCredentialsError) Error() string
func (InvalidCredentialsError) MarshalJSON ¶
func (obj InvalidCredentialsError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InvalidCurrentPasswordError ¶
type InvalidCurrentPasswordError struct {
Message string `json:"message"`
}
InvalidCurrentPasswordError implements the interface ErrorObject
func (InvalidCurrentPasswordError) Error ¶
func (obj InvalidCurrentPasswordError) Error() string
func (InvalidCurrentPasswordError) MarshalJSON ¶
func (obj InvalidCurrentPasswordError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InvalidFieldError ¶
type InvalidFieldError struct { Message string `json:"message"` InvalidValue interface{} `json:"invalidValue"` Field string `json:"field"` AllowedValues []interface{} `json:"allowedValues,omitempty"` }
InvalidFieldError implements the interface ErrorObject
func (InvalidFieldError) Error ¶
func (obj InvalidFieldError) Error() string
func (InvalidFieldError) MarshalJSON ¶
func (obj InvalidFieldError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InvalidInputError ¶
type InvalidInputError struct {
Message string `json:"message"`
}
InvalidInputError implements the interface ErrorObject
func (InvalidInputError) Error ¶
func (obj InvalidInputError) Error() string
func (InvalidInputError) MarshalJSON ¶
func (obj InvalidInputError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InvalidItemShippingDetailsError ¶
type InvalidItemShippingDetailsError struct { Message string `json:"message"` Subject string `json:"subject"` ItemID string `json:"itemId"` }
InvalidItemShippingDetailsError implements the interface ErrorObject
func (InvalidItemShippingDetailsError) Error ¶
func (obj InvalidItemShippingDetailsError) Error() string
func (InvalidItemShippingDetailsError) MarshalJSON ¶
func (obj InvalidItemShippingDetailsError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InvalidJSONInputError ¶
type InvalidJSONInputError struct {
Message string `json:"message"`
}
InvalidJSONInputError implements the interface ErrorObject
func (InvalidJSONInputError) Error ¶
func (obj InvalidJSONInputError) Error() string
func (InvalidJSONInputError) MarshalJSON ¶
func (obj InvalidJSONInputError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InvalidOperationError ¶
type InvalidOperationError struct {
Message string `json:"message"`
}
InvalidOperationError implements the interface ErrorObject
func (InvalidOperationError) Error ¶
func (obj InvalidOperationError) Error() string
func (InvalidOperationError) MarshalJSON ¶
func (obj InvalidOperationError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InvalidSubjectError ¶
type InvalidSubjectError struct {
Message string `json:"message"`
}
InvalidSubjectError implements the interface ErrorObject
func (InvalidSubjectError) Error ¶
func (obj InvalidSubjectError) Error() string
func (InvalidSubjectError) MarshalJSON ¶
func (obj InvalidSubjectError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InvalidTokenError ¶
type InvalidTokenError struct {
Message string `json:"message"`
}
InvalidTokenError implements the interface ErrorObject
func (InvalidTokenError) Error ¶
func (obj InvalidTokenError) Error() string
func (InvalidTokenError) MarshalJSON ¶
func (obj InvalidTokenError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntry ¶
type InventoryEntry struct { Version int `json:"version"` SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` SKU string `json:"sku"` RestockableInDays int `json:"restockableInDays,omitempty"` QuantityOnStock int `json:"quantityOnStock"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` ExpectedDelivery *time.Time `json:"expectedDelivery,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` AvailableQuantity int `json:"availableQuantity"` }
InventoryEntry is of type BaseResource
type InventoryEntryAddQuantityAction ¶
type InventoryEntryAddQuantityAction struct {
Quantity int `json:"quantity"`
}
InventoryEntryAddQuantityAction implements the interface InventoryEntryUpdateAction
func (InventoryEntryAddQuantityAction) MarshalJSON ¶
func (obj InventoryEntryAddQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryChangeQuantityAction ¶
type InventoryEntryChangeQuantityAction struct {
Quantity int `json:"quantity"`
}
InventoryEntryChangeQuantityAction implements the interface InventoryEntryUpdateAction
func (InventoryEntryChangeQuantityAction) MarshalJSON ¶
func (obj InventoryEntryChangeQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryCreatedMessage ¶
type InventoryEntryCreatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` InventoryEntry *InventoryEntry `json:"inventoryEntry"` }
InventoryEntryCreatedMessage implements the interface Message
func (InventoryEntryCreatedMessage) MarshalJSON ¶
func (obj InventoryEntryCreatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryCreatedMessagePayload ¶
type InventoryEntryCreatedMessagePayload struct {
InventoryEntry *InventoryEntry `json:"inventoryEntry"`
}
InventoryEntryCreatedMessagePayload implements the interface MessagePayload
func (InventoryEntryCreatedMessagePayload) MarshalJSON ¶
func (obj InventoryEntryCreatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryDeletedMessage ¶
type InventoryEntryDeletedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` SupplyChannel *ChannelReference `json:"supplyChannel"` SKU string `json:"sku"` }
InventoryEntryDeletedMessage implements the interface Message
func (InventoryEntryDeletedMessage) MarshalJSON ¶
func (obj InventoryEntryDeletedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryDeletedMessagePayload ¶
type InventoryEntryDeletedMessagePayload struct { SupplyChannel *ChannelReference `json:"supplyChannel"` SKU string `json:"sku"` }
InventoryEntryDeletedMessagePayload implements the interface MessagePayload
func (InventoryEntryDeletedMessagePayload) MarshalJSON ¶
func (obj InventoryEntryDeletedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryDraft ¶
type InventoryEntryDraft struct { SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` SKU string `json:"sku"` RestockableInDays int `json:"restockableInDays,omitempty"` QuantityOnStock int `json:"quantityOnStock"` ExpectedDelivery *time.Time `json:"expectedDelivery,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` }
InventoryEntryDraft is a standalone struct
type InventoryEntryQuantitySetMessage ¶
type InventoryEntryQuantitySetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` OldQuantityOnStock int `json:"oldQuantityOnStock"` OldAvailableQuantity int `json:"oldAvailableQuantity"` NewQuantityOnStock int `json:"newQuantityOnStock"` NewAvailableQuantity int `json:"newAvailableQuantity"` }
InventoryEntryQuantitySetMessage implements the interface Message
func (InventoryEntryQuantitySetMessage) MarshalJSON ¶
func (obj InventoryEntryQuantitySetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryQuantitySetMessagePayload ¶
type InventoryEntryQuantitySetMessagePayload struct { OldQuantityOnStock int `json:"oldQuantityOnStock"` OldAvailableQuantity int `json:"oldAvailableQuantity"` NewQuantityOnStock int `json:"newQuantityOnStock"` NewAvailableQuantity int `json:"newAvailableQuantity"` }
InventoryEntryQuantitySetMessagePayload implements the interface MessagePayload
func (InventoryEntryQuantitySetMessagePayload) MarshalJSON ¶
func (obj InventoryEntryQuantitySetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryReference ¶
type InventoryEntryReference struct { ID string `json:"id"` Obj *InventoryEntry `json:"obj,omitempty"` }
InventoryEntryReference implements the interface Reference
func (InventoryEntryReference) MarshalJSON ¶
func (obj InventoryEntryReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryRemoveQuantityAction ¶
type InventoryEntryRemoveQuantityAction struct {
Quantity int `json:"quantity"`
}
InventoryEntryRemoveQuantityAction implements the interface InventoryEntryUpdateAction
func (InventoryEntryRemoveQuantityAction) MarshalJSON ¶
func (obj InventoryEntryRemoveQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryResourceIdentifier ¶
type InventoryEntryResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
InventoryEntryResourceIdentifier implements the interface ResourceIdentifier
func (InventoryEntryResourceIdentifier) MarshalJSON ¶
func (obj InventoryEntryResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntrySetCustomFieldAction ¶
type InventoryEntrySetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
InventoryEntrySetCustomFieldAction implements the interface InventoryEntryUpdateAction
func (InventoryEntrySetCustomFieldAction) MarshalJSON ¶
func (obj InventoryEntrySetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntrySetCustomTypeAction ¶
type InventoryEntrySetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
InventoryEntrySetCustomTypeAction implements the interface InventoryEntryUpdateAction
func (InventoryEntrySetCustomTypeAction) MarshalJSON ¶
func (obj InventoryEntrySetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntrySetExpectedDeliveryAction ¶
type InventoryEntrySetExpectedDeliveryAction struct {
ExpectedDelivery *time.Time `json:"expectedDelivery,omitempty"`
}
InventoryEntrySetExpectedDeliveryAction implements the interface InventoryEntryUpdateAction
func (InventoryEntrySetExpectedDeliveryAction) MarshalJSON ¶
func (obj InventoryEntrySetExpectedDeliveryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntrySetRestockableInDaysAction ¶
type InventoryEntrySetRestockableInDaysAction struct {
RestockableInDays int `json:"restockableInDays,omitempty"`
}
InventoryEntrySetRestockableInDaysAction implements the interface InventoryEntryUpdateAction
func (InventoryEntrySetRestockableInDaysAction) MarshalJSON ¶
func (obj InventoryEntrySetRestockableInDaysAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntrySetSupplyChannelAction ¶
type InventoryEntrySetSupplyChannelAction struct {
SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"`
}
InventoryEntrySetSupplyChannelAction implements the interface InventoryEntryUpdateAction
func (InventoryEntrySetSupplyChannelAction) MarshalJSON ¶
func (obj InventoryEntrySetSupplyChannelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type InventoryEntryUpdate ¶
type InventoryEntryUpdate struct { Version int `json:"version"` Actions []InventoryEntryUpdateAction `json:"actions"` }
InventoryEntryUpdate is a standalone struct
func (*InventoryEntryUpdate) UnmarshalJSON ¶
func (obj *InventoryEntryUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type InventoryEntryUpdateAction ¶
type InventoryEntryUpdateAction interface{}
InventoryEntryUpdateAction uses action as discriminator attribute
type InventoryEntryUpdateWithIDInput ¶
type InventoryEntryUpdateWithIDInput struct { ID string Version int Actions []InventoryEntryUpdateAction }
InventoryEntryUpdateWithIDInput is input for function InventoryEntryUpdateWithID
func (*InventoryEntryUpdateWithIDInput) Validate ¶
func (input *InventoryEntryUpdateWithIDInput) Validate() error
type InventoryMode ¶
type InventoryMode string
InventoryMode is an enum type
const ( InventoryModeTrackOnly InventoryMode = "TrackOnly" InventoryModeReserveOnOrder InventoryMode = "ReserveOnOrder" InventoryModeNone InventoryMode = "None" )
Enum values for InventoryMode
type InventoryPagedQueryResponse ¶
type InventoryPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []InventoryEntry `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
InventoryPagedQueryResponse is a standalone struct
type IronMqDestination ¶
type IronMqDestination struct {
URI string `json:"uri"`
}
IronMqDestination implements the interface Destination
func (IronMqDestination) MarshalJSON ¶
func (obj IronMqDestination) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ItemShippingDetails ¶
type ItemShippingDetails struct { Valid bool `json:"valid"` Targets []ItemShippingTarget `json:"targets"` }
ItemShippingDetails is a standalone struct
type ItemShippingDetailsDraft ¶
type ItemShippingDetailsDraft struct {
Targets []ItemShippingTarget `json:"targets"`
}
ItemShippingDetailsDraft is a standalone struct
type ItemShippingTarget ¶
type ItemShippingTarget struct { Quantity float64 `json:"quantity"` AddressKey string `json:"addressKey"` }
ItemShippingTarget is a standalone struct
type ItemState ¶
type ItemState struct { State *StateReference `json:"state"` Quantity float64 `json:"quantity"` }
ItemState is a standalone struct
type KeyReference ¶
type KeyReference interface{}
KeyReference uses typeId as discriminator attribute
type LanguageUsedInStoresError ¶
type LanguageUsedInStoresError struct {
Message string `json:"message"`
}
LanguageUsedInStoresError implements the interface ErrorObject
func (LanguageUsedInStoresError) Error ¶
func (obj LanguageUsedInStoresError) Error() string
func (LanguageUsedInStoresError) MarshalJSON ¶
func (obj LanguageUsedInStoresError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type LastModifiedBy ¶
type LastModifiedBy struct { ExternalUserID string `json:"externalUserId,omitempty"` Customer *CustomerReference `json:"customer,omitempty"` ClientID string `json:"clientId,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
LastModifiedBy is of type ClientLogging
type LineItem ¶
type LineItem struct { Variant *ProductVariant `json:"variant"` TotalPrice TypedMoney `json:"totalPrice"` TaxedPrice *TaxedItemPrice `json:"taxedPrice,omitempty"` TaxRate *TaxRate `json:"taxRate,omitempty"` SupplyChannel *ChannelReference `json:"supplyChannel,omitempty"` State []ItemState `json:"state"` ShippingDetails *ItemShippingDetails `json:"shippingDetails,omitempty"` Quantity int `json:"quantity"` ProductType *ProductTypeReference `json:"productType"` ProductSlug *LocalizedString `json:"productSlug,omitempty"` ProductID string `json:"productId"` PriceMode LineItemPriceMode `json:"priceMode"` Price *Price `json:"price"` Name *LocalizedString `json:"name"` LineItemMode LineItemMode `json:"lineItemMode"` ID string `json:"id"` DistributionChannel *ChannelReference `json:"distributionChannel,omitempty"` DiscountedPricePerQuantity []DiscountedLineItemPriceForQuantity `json:"discountedPricePerQuantity"` Custom *CustomFields `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
LineItem is a standalone struct
func (*LineItem) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type LineItemDraft ¶
type LineItemDraft struct { VariantID int `json:"variantId,omitempty"` SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` SKU string `json:"sku,omitempty"` ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` Quantity int `json:"quantity,omitempty"` ProductID string `json:"productId,omitempty"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
LineItemDraft is a standalone struct
type LineItemImportDraft ¶
type LineItemImportDraft struct { Variant *ProductVariantImportDraft `json:"variant"` TaxRate *TaxRate `json:"taxRate,omitempty"` SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` State []ItemState `json:"state,omitempty"` ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` Quantity float64 `json:"quantity"` ProductID string `json:"productId,omitempty"` Price *PriceDraft `json:"price"` Name *LocalizedString `json:"name"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` }
LineItemImportDraft is a standalone struct
type LineItemMode ¶
type LineItemMode string
LineItemMode is an enum type
const ( LineItemModeStandard LineItemMode = "Standard" LineItemModeGiftLineItem LineItemMode = "GiftLineItem" )
Enum values for LineItemMode
type LineItemPriceMode ¶
type LineItemPriceMode string
LineItemPriceMode is an enum type
const ( LineItemPriceModePlatform LineItemPriceMode = "Platform" LineItemPriceModeExternalTotal LineItemPriceMode = "ExternalTotal" LineItemPriceModeExternalPrice LineItemPriceMode = "ExternalPrice" )
Enum values for LineItemPriceMode
type LineItemReturnItem ¶
type LineItemReturnItem struct { ShipmentState ReturnShipmentState `json:"shipmentState"` Quantity int `json:"quantity"` PaymentState ReturnPaymentState `json:"paymentState"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedAt time.Time `json:"createdAt"` Comment string `json:"comment,omitempty"` LineItemID string `json:"lineItemId"` }
LineItemReturnItem implements the interface ReturnItem
func (LineItemReturnItem) MarshalJSON ¶
func (obj LineItemReturnItem) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type LineItemStateTransitionMessage ¶
type LineItemStateTransitionMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` TransitionDate time.Time `json:"transitionDate"` ToState *StateReference `json:"toState"` Quantity int `json:"quantity"` LineItemID string `json:"lineItemId"` FromState *StateReference `json:"fromState"` }
LineItemStateTransitionMessage implements the interface Message
func (LineItemStateTransitionMessage) MarshalJSON ¶
func (obj LineItemStateTransitionMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type LineItemStateTransitionMessagePayload ¶
type LineItemStateTransitionMessagePayload struct { TransitionDate time.Time `json:"transitionDate"` ToState *StateReference `json:"toState"` Quantity int `json:"quantity"` LineItemID string `json:"lineItemId"` FromState *StateReference `json:"fromState"` }
LineItemStateTransitionMessagePayload implements the interface MessagePayload
func (LineItemStateTransitionMessagePayload) MarshalJSON ¶
func (obj LineItemStateTransitionMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Location ¶
type Location struct { State string `json:"state,omitempty"` Country CountryCode `json:"country"` }
Location is a standalone struct
type MatchingPriceNotFoundError ¶
type MatchingPriceNotFoundError struct { Message string `json:"message"` VariantID int `json:"variantId"` ProductID string `json:"productId"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` Currency string `json:"currency,omitempty"` Country string `json:"country,omitempty"` Channel *ChannelReference `json:"channel,omitempty"` }
MatchingPriceNotFoundError implements the interface ErrorObject
func (MatchingPriceNotFoundError) Error ¶
func (obj MatchingPriceNotFoundError) Error() string
func (MatchingPriceNotFoundError) MarshalJSON ¶
func (obj MatchingPriceNotFoundError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MessageConfiguration ¶
type MessageConfiguration struct { Enabled bool `json:"enabled"` DeleteDaysAfterCreation float64 `json:"deleteDaysAfterCreation,omitempty"` }
MessageConfiguration is a standalone struct
type MessageConfigurationDraft ¶
type MessageConfigurationDraft struct { Enabled bool `json:"enabled"` DeleteDaysAfterCreation float64 `json:"deleteDaysAfterCreation"` }
MessageConfigurationDraft is a standalone struct
type MessageDelivery ¶
type MessageDelivery struct { ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` ProjectKey string `json:"projectKey"` Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` PayloadNotIncluded *PayloadNotIncluded `json:"payloadNotIncluded"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedAt time.Time `json:"createdAt"` }
MessageDelivery implements the interface SubscriptionDelivery
func (MessageDelivery) MarshalJSON ¶
func (obj MessageDelivery) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MessagePagedQueryResponse ¶
type MessagePagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Message `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
MessagePagedQueryResponse is a standalone struct
func (*MessagePagedQueryResponse) UnmarshalJSON ¶
func (obj *MessagePagedQueryResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type MessagePayload ¶
type MessagePayload interface{}
MessagePayload uses type as discriminator attribute
type MessageSubscription ¶
type MessageSubscription struct { Types []string `json:"types,omitempty"` ResourceTypeID string `json:"resourceTypeId"` }
MessageSubscription is a standalone struct
type MissingTaxRateForCountryError ¶
type MissingTaxRateForCountryError struct { Message string `json:"message"` TaxCategoryID string `json:"taxCategoryId"` State string `json:"state,omitempty"` Country string `json:"country,omitempty"` }
MissingTaxRateForCountryError implements the interface ErrorObject
func (MissingTaxRateForCountryError) Error ¶
func (obj MissingTaxRateForCountryError) Error() string
func (MissingTaxRateForCountryError) MarshalJSON ¶
func (obj MissingTaxRateForCountryError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Money ¶
type Money struct { CurrencyCode CurrencyCode `json:"currencyCode"` CentAmount int `json:"centAmount"` }
Money is a standalone struct
type MultiBuyCustomLineItemsTarget ¶
type MultiBuyCustomLineItemsTarget struct { TriggerQuantity int `json:"triggerQuantity"` SelectionMode SelectionMode `json:"selectionMode"` Predicate string `json:"predicate"` MaxOccurrence int `json:"maxOccurrence,omitempty"` DiscountedQuantity int `json:"discountedQuantity"` }
MultiBuyCustomLineItemsTarget implements the interface CartDiscountTarget
func (MultiBuyCustomLineItemsTarget) MarshalJSON ¶
func (obj MultiBuyCustomLineItemsTarget) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MultiBuyLineItemsTarget ¶
type MultiBuyLineItemsTarget struct { TriggerQuantity int `json:"triggerQuantity"` SelectionMode SelectionMode `json:"selectionMode"` Predicate string `json:"predicate"` MaxOccurrence int `json:"maxOccurrence,omitempty"` DiscountedQuantity int `json:"discountedQuantity"` }
MultiBuyLineItemsTarget implements the interface CartDiscountTarget
func (MultiBuyLineItemsTarget) MarshalJSON ¶
func (obj MultiBuyLineItemsTarget) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCart ¶
type MyCart struct { Version int `json:"version"` TotalPrice TypedMoney `json:"totalPrice"` TaxedPrice *TaxedPrice `json:"taxedPrice,omitempty"` TaxRoundingMode RoundingMode `json:"taxRoundingMode"` TaxMode TaxMode `json:"taxMode"` TaxCalculationMode TaxCalculationMode `json:"taxCalculationMode"` Store *StoreKeyReference `json:"store,omitempty"` ShippingRateInput ShippingRateInput `json:"shippingRateInput,omitempty"` ShippingInfo *ShippingInfo `json:"shippingInfo,omitempty"` ShippingAddress *Address `json:"shippingAddress,omitempty"` RefusedGifts []CartDiscountReference `json:"refusedGifts"` PaymentInfo *PaymentInfo `json:"paymentInfo,omitempty"` Origin CartOrigin `json:"origin"` Locale string `json:"locale,omitempty"` LineItems []LineItem `json:"lineItems"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ItemShippingAddresses []Address `json:"itemShippingAddresses,omitempty"` InventoryMode InventoryMode `json:"inventoryMode,omitempty"` ID string `json:"id"` DiscountCodes []DiscountCodeInfo `json:"discountCodes,omitempty"` DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"` CustomerID string `json:"customerId,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` CustomerEmail string `json:"customerEmail,omitempty"` CustomLineItems []CustomLineItem `json:"customLineItems"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Country CountryCode `json:"country,omitempty"` CartState CartState `json:"cartState"` BillingAddress *Address `json:"billingAddress,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
MyCart is of type BaseResource
func (*MyCart) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type MyCartAddDiscountCodeAction ¶
type MyCartAddDiscountCodeAction struct {
Code string `json:"code"`
}
MyCartAddDiscountCodeAction implements the interface MyCartUpdateAction
func (MyCartAddDiscountCodeAction) MarshalJSON ¶
func (obj MyCartAddDiscountCodeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartAddItemShippingAddressAction ¶
type MyCartAddItemShippingAddressAction struct {
Address *Address `json:"address"`
}
MyCartAddItemShippingAddressAction implements the interface MyCartUpdateAction
func (MyCartAddItemShippingAddressAction) MarshalJSON ¶
func (obj MyCartAddItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartAddLineItemAction ¶
type MyCartAddLineItemAction struct { VariantID int `json:"variantId,omitempty"` SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` SKU string `json:"sku,omitempty"` ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` Quantity float64 `json:"quantity,omitempty"` ProductID string `json:"productId,omitempty"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
MyCartAddLineItemAction implements the interface MyCartUpdateAction
func (MyCartAddLineItemAction) MarshalJSON ¶
func (obj MyCartAddLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartAddPaymentAction ¶
type MyCartAddPaymentAction struct {
Payment *PaymentResourceIdentifier `json:"payment"`
}
MyCartAddPaymentAction implements the interface MyCartUpdateAction
func (MyCartAddPaymentAction) MarshalJSON ¶
func (obj MyCartAddPaymentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartApplyDeltaToLineItemShippingDetailsTargetsAction ¶
type MyCartApplyDeltaToLineItemShippingDetailsTargetsAction struct { TargetsDelta []ItemShippingTarget `json:"targetsDelta"` LineItemID string `json:"lineItemId"` }
MyCartApplyDeltaToLineItemShippingDetailsTargetsAction implements the interface MyCartUpdateAction
func (MyCartApplyDeltaToLineItemShippingDetailsTargetsAction) MarshalJSON ¶
func (obj MyCartApplyDeltaToLineItemShippingDetailsTargetsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartChangeLineItemQuantityAction ¶
type MyCartChangeLineItemQuantityAction struct { Quantity float64 `json:"quantity"` LineItemID string `json:"lineItemId"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` }
MyCartChangeLineItemQuantityAction implements the interface MyCartUpdateAction
func (MyCartChangeLineItemQuantityAction) MarshalJSON ¶
func (obj MyCartChangeLineItemQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartChangeTaxModeAction ¶
type MyCartChangeTaxModeAction struct {
TaxMode TaxMode `json:"taxMode"`
}
MyCartChangeTaxModeAction implements the interface MyCartUpdateAction
func (MyCartChangeTaxModeAction) MarshalJSON ¶
func (obj MyCartChangeTaxModeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartDraft ¶
type MyCartDraft struct { TaxMode TaxMode `json:"taxMode,omitempty"` ShippingMethod *ShippingMethodResourceIdentifier `json:"shippingMethod,omitempty"` ShippingAddress *Address `json:"shippingAddress,omitempty"` Locale string `json:"locale,omitempty"` LineItems []MyLineItemDraft `json:"lineItems,omitempty"` ItemShippingAddresses []Address `json:"itemShippingAddresses,omitempty"` InventoryMode InventoryMode `json:"inventoryMode,omitempty"` DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"` CustomerEmail string `json:"customerEmail,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` Currency CurrencyCode `json:"currency"` Country string `json:"country,omitempty"` BillingAddress *Address `json:"billingAddress,omitempty"` }
MyCartDraft is a standalone struct
type MyCartRecalculateAction ¶
type MyCartRecalculateAction struct {
UpdateProductData bool `json:"updateProductData"`
}
MyCartRecalculateAction implements the interface MyCartUpdateAction
func (MyCartRecalculateAction) MarshalJSON ¶
func (obj MyCartRecalculateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartRemoveDiscountCodeAction ¶
type MyCartRemoveDiscountCodeAction struct {
DiscountCode *DiscountCodeReference `json:"discountCode"`
}
MyCartRemoveDiscountCodeAction implements the interface MyCartUpdateAction
func (MyCartRemoveDiscountCodeAction) MarshalJSON ¶
func (obj MyCartRemoveDiscountCodeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartRemoveItemShippingAddressAction ¶
type MyCartRemoveItemShippingAddressAction struct {
AddressKey string `json:"addressKey"`
}
MyCartRemoveItemShippingAddressAction implements the interface MyCartUpdateAction
func (MyCartRemoveItemShippingAddressAction) MarshalJSON ¶
func (obj MyCartRemoveItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartRemoveLineItemAction ¶
type MyCartRemoveLineItemAction struct { ShippingDetailsToRemove *ItemShippingDetailsDraft `json:"shippingDetailsToRemove,omitempty"` Quantity float64 `json:"quantity,omitempty"` LineItemID string `json:"lineItemId"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` }
MyCartRemoveLineItemAction implements the interface MyCartUpdateAction
func (MyCartRemoveLineItemAction) MarshalJSON ¶
func (obj MyCartRemoveLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartRemovePaymentAction ¶
type MyCartRemovePaymentAction struct {
Payment *PaymentResourceIdentifier `json:"payment"`
}
MyCartRemovePaymentAction implements the interface MyCartUpdateAction
func (MyCartRemovePaymentAction) MarshalJSON ¶
func (obj MyCartRemovePaymentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetBillingAddressAction ¶
type MyCartSetBillingAddressAction struct {
Address *Address `json:"address,omitempty"`
}
MyCartSetBillingAddressAction implements the interface MyCartUpdateAction
func (MyCartSetBillingAddressAction) MarshalJSON ¶
func (obj MyCartSetBillingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetCountryAction ¶
type MyCartSetCountryAction struct {
Country CountryCode `json:"country,omitempty"`
}
MyCartSetCountryAction implements the interface MyCartUpdateAction
func (MyCartSetCountryAction) MarshalJSON ¶
func (obj MyCartSetCountryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetCustomFieldAction ¶
type MyCartSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
MyCartSetCustomFieldAction implements the interface MyCartUpdateAction
func (MyCartSetCustomFieldAction) MarshalJSON ¶
func (obj MyCartSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetCustomShippingMethodAction ¶
type MyCartSetCustomShippingMethodAction struct { TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"` ShippingRate *ShippingRateDraft `json:"shippingRate"` ShippingMethodName string `json:"shippingMethodName"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` }
MyCartSetCustomShippingMethodAction implements the interface MyCartUpdateAction
func (MyCartSetCustomShippingMethodAction) MarshalJSON ¶
func (obj MyCartSetCustomShippingMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetCustomTypeAction ¶
type MyCartSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
MyCartSetCustomTypeAction implements the interface MyCartUpdateAction
func (MyCartSetCustomTypeAction) MarshalJSON ¶
func (obj MyCartSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetDeleteDaysAfterLastModificationAction ¶
type MyCartSetDeleteDaysAfterLastModificationAction struct {
DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"`
}
MyCartSetDeleteDaysAfterLastModificationAction implements the interface MyCartUpdateAction
func (MyCartSetDeleteDaysAfterLastModificationAction) MarshalJSON ¶
func (obj MyCartSetDeleteDaysAfterLastModificationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetLineItemCustomFieldAction ¶
type MyCartSetLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` LineItemID string `json:"lineItemId"` }
MyCartSetLineItemCustomFieldAction implements the interface MyCartUpdateAction
func (MyCartSetLineItemCustomFieldAction) MarshalJSON ¶
func (obj MyCartSetLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetLineItemCustomTypeAction ¶
type MyCartSetLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` LineItemID string `json:"lineItemId"` Fields *FieldContainer `json:"fields,omitempty"` }
MyCartSetLineItemCustomTypeAction implements the interface MyCartUpdateAction
func (MyCartSetLineItemCustomTypeAction) MarshalJSON ¶
func (obj MyCartSetLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetLineItemDistributionChannelAction ¶
type MyCartSetLineItemDistributionChannelAction struct { LineItemID string `json:"lineItemId"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` }
MyCartSetLineItemDistributionChannelAction implements the interface MyCartUpdateAction
func (MyCartSetLineItemDistributionChannelAction) MarshalJSON ¶
func (obj MyCartSetLineItemDistributionChannelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetLineItemShippingDetailsAction ¶
type MyCartSetLineItemShippingDetailsAction struct { ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` LineItemID string `json:"lineItemId"` }
MyCartSetLineItemShippingDetailsAction implements the interface MyCartUpdateAction
func (MyCartSetLineItemShippingDetailsAction) MarshalJSON ¶
func (obj MyCartSetLineItemShippingDetailsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetLocaleAction ¶
type MyCartSetLocaleAction struct {
Locale string `json:"locale,omitempty"`
}
MyCartSetLocaleAction implements the interface MyCartUpdateAction
func (MyCartSetLocaleAction) MarshalJSON ¶
func (obj MyCartSetLocaleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetShippingAddressAction ¶
type MyCartSetShippingAddressAction struct {
Address *Address `json:"address,omitempty"`
}
MyCartSetShippingAddressAction implements the interface MyCartUpdateAction
func (MyCartSetShippingAddressAction) MarshalJSON ¶
func (obj MyCartSetShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartSetShippingMethodAction ¶
type MyCartSetShippingMethodAction struct { ShippingMethod *ShippingMethodResourceIdentifier `json:"shippingMethod,omitempty"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` }
MyCartSetShippingMethodAction implements the interface MyCartUpdateAction
func (MyCartSetShippingMethodAction) MarshalJSON ¶
func (obj MyCartSetShippingMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartUpdateAction ¶
type MyCartUpdateAction interface{}
MyCartUpdateAction uses action as discriminator attribute
type MyCartUpdateItemShippingAddressAction ¶
type MyCartUpdateItemShippingAddressAction struct {
Address *Address `json:"address"`
}
MyCartUpdateItemShippingAddressAction implements the interface MyCartUpdateAction
func (MyCartUpdateItemShippingAddressAction) MarshalJSON ¶
func (obj MyCartUpdateItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCartUpdateWithIDInput ¶
type MyCartUpdateWithIDInput struct { ID string Version int Actions []MyCartUpdateAction }
MyCartUpdateWithIDInput is input for function MyCartUpdateWithID
func (*MyCartUpdateWithIDInput) Validate ¶
func (input *MyCartUpdateWithIDInput) Validate() error
type MyCustomer ¶
type MyCustomer struct { Version int `json:"version"` VatID string `json:"vatId,omitempty"` Title string `json:"title,omitempty"` Stores []StoreKeyReference `json:"stores,omitempty"` ShippingAddressIds []string `json:"shippingAddressIds,omitempty"` Salutation string `json:"salutation,omitempty"` Password string `json:"password"` MiddleName string `json:"middleName,omitempty"` Locale string `json:"locale,omitempty"` LastName string `json:"lastName,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` IsEmailVerified bool `json:"isEmailVerified"` ID string `json:"id"` FirstName string `json:"firstName,omitempty"` ExternalID string `json:"externalId,omitempty"` Email string `json:"email"` DefaultShippingAddressID string `json:"defaultShippingAddressId,omitempty"` DefaultBillingAddressID string `json:"defaultBillingAddressId,omitempty"` DateOfBirth *Date `json:"dateOfBirth,omitempty"` CustomerNumber string `json:"customerNumber,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` CompanyName string `json:"companyName,omitempty"` BillingAddressIds []string `json:"billingAddressIds,omitempty"` Addresses []Address `json:"addresses"` }
MyCustomer is of type BaseResource
type MyCustomerAddAddressAction ¶
type MyCustomerAddAddressAction struct {
Address *Address `json:"address"`
}
MyCustomerAddAddressAction implements the interface MyCustomerUpdateAction
func (MyCustomerAddAddressAction) MarshalJSON ¶
func (obj MyCustomerAddAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerAddBillingAddressIDAction ¶
type MyCustomerAddBillingAddressIDAction struct {
AddressID string `json:"addressId"`
}
MyCustomerAddBillingAddressIDAction implements the interface MyCustomerUpdateAction
func (MyCustomerAddBillingAddressIDAction) MarshalJSON ¶
func (obj MyCustomerAddBillingAddressIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerAddShippingAddressIDAction ¶
type MyCustomerAddShippingAddressIDAction struct {
AddressID string `json:"addressId"`
}
MyCustomerAddShippingAddressIDAction implements the interface MyCustomerUpdateAction
func (MyCustomerAddShippingAddressIDAction) MarshalJSON ¶
func (obj MyCustomerAddShippingAddressIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerChangeAddressAction ¶
type MyCustomerChangeAddressAction struct { AddressID string `json:"addressId"` Address *Address `json:"address"` }
MyCustomerChangeAddressAction implements the interface MyCustomerUpdateAction
func (MyCustomerChangeAddressAction) MarshalJSON ¶
func (obj MyCustomerChangeAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerChangeEmailAction ¶
type MyCustomerChangeEmailAction struct {
Email string `json:"email"`
}
MyCustomerChangeEmailAction implements the interface MyCustomerUpdateAction
func (MyCustomerChangeEmailAction) MarshalJSON ¶
func (obj MyCustomerChangeEmailAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerDraft ¶
type MyCustomerDraft struct { VatID string `json:"vatId,omitempty"` Title string `json:"title,omitempty"` Stores []StoreResourceIdentifier `json:"stores,omitempty"` Password string `json:"password"` MiddleName string `json:"middleName,omitempty"` Locale string `json:"locale,omitempty"` LastName string `json:"lastName,omitempty"` FirstName string `json:"firstName,omitempty"` Email string `json:"email"` DefaultShippingAddress int `json:"defaultShippingAddress,omitempty"` DefaultBillingAddress int `json:"defaultBillingAddress,omitempty"` DateOfBirth *Date `json:"dateOfBirth,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CompanyName string `json:"companyName,omitempty"` Addresses []Address `json:"addresses,omitempty"` }
MyCustomerDraft is a standalone struct
type MyCustomerRemoveAddressAction ¶
type MyCustomerRemoveAddressAction struct {
AddressID string `json:"addressId"`
}
MyCustomerRemoveAddressAction implements the interface MyCustomerUpdateAction
func (MyCustomerRemoveAddressAction) MarshalJSON ¶
func (obj MyCustomerRemoveAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerRemoveBillingAddressIDAction ¶
type MyCustomerRemoveBillingAddressIDAction struct {
AddressID string `json:"addressId"`
}
MyCustomerRemoveBillingAddressIDAction implements the interface MyCustomerUpdateAction
func (MyCustomerRemoveBillingAddressIDAction) MarshalJSON ¶
func (obj MyCustomerRemoveBillingAddressIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerRemoveShippingAddressIDAction ¶
type MyCustomerRemoveShippingAddressIDAction struct {
AddressID string `json:"addressId"`
}
MyCustomerRemoveShippingAddressIDAction implements the interface MyCustomerUpdateAction
func (MyCustomerRemoveShippingAddressIDAction) MarshalJSON ¶
func (obj MyCustomerRemoveShippingAddressIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetCompanyNameAction ¶
type MyCustomerSetCompanyNameAction struct {
CompanyName string `json:"companyName,omitempty"`
}
MyCustomerSetCompanyNameAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetCompanyNameAction) MarshalJSON ¶
func (obj MyCustomerSetCompanyNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetCustomFieldAction ¶
type MyCustomerSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
MyCustomerSetCustomFieldAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetCustomFieldAction) MarshalJSON ¶
func (obj MyCustomerSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetCustomTypeAction ¶
type MyCustomerSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
MyCustomerSetCustomTypeAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetCustomTypeAction) MarshalJSON ¶
func (obj MyCustomerSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetDateOfBirthAction ¶
type MyCustomerSetDateOfBirthAction struct {
DateOfBirth *Date `json:"dateOfBirth,omitempty"`
}
MyCustomerSetDateOfBirthAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetDateOfBirthAction) MarshalJSON ¶
func (obj MyCustomerSetDateOfBirthAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetDefaultBillingAddressAction ¶
type MyCustomerSetDefaultBillingAddressAction struct {
AddressID string `json:"addressId,omitempty"`
}
MyCustomerSetDefaultBillingAddressAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetDefaultBillingAddressAction) MarshalJSON ¶
func (obj MyCustomerSetDefaultBillingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetDefaultShippingAddressAction ¶
type MyCustomerSetDefaultShippingAddressAction struct {
AddressID string `json:"addressId,omitempty"`
}
MyCustomerSetDefaultShippingAddressAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetDefaultShippingAddressAction) MarshalJSON ¶
func (obj MyCustomerSetDefaultShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetFirstNameAction ¶
type MyCustomerSetFirstNameAction struct {
FirstName string `json:"firstName,omitempty"`
}
MyCustomerSetFirstNameAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetFirstNameAction) MarshalJSON ¶
func (obj MyCustomerSetFirstNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetLastNameAction ¶
type MyCustomerSetLastNameAction struct {
LastName string `json:"lastName,omitempty"`
}
MyCustomerSetLastNameAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetLastNameAction) MarshalJSON ¶
func (obj MyCustomerSetLastNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetLocaleAction ¶
type MyCustomerSetLocaleAction struct {
Locale string `json:"locale,omitempty"`
}
MyCustomerSetLocaleAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetLocaleAction) MarshalJSON ¶
func (obj MyCustomerSetLocaleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetMiddleNameAction ¶
type MyCustomerSetMiddleNameAction struct {
MiddleName string `json:"middleName,omitempty"`
}
MyCustomerSetMiddleNameAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetMiddleNameAction) MarshalJSON ¶
func (obj MyCustomerSetMiddleNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetSalutationAction ¶
type MyCustomerSetSalutationAction struct {
Salutation string `json:"salutation,omitempty"`
}
MyCustomerSetSalutationAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetSalutationAction) MarshalJSON ¶
func (obj MyCustomerSetSalutationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetTitleAction ¶
type MyCustomerSetTitleAction struct {
Title string `json:"title,omitempty"`
}
MyCustomerSetTitleAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetTitleAction) MarshalJSON ¶
func (obj MyCustomerSetTitleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerSetVatIDAction ¶
type MyCustomerSetVatIDAction struct {
VatID string `json:"vatId,omitempty"`
}
MyCustomerSetVatIDAction implements the interface MyCustomerUpdateAction
func (MyCustomerSetVatIDAction) MarshalJSON ¶
func (obj MyCustomerSetVatIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyCustomerUpdateAction ¶
type MyCustomerUpdateAction interface{}
MyCustomerUpdateAction uses action as discriminator attribute
type MyLineItemDraft ¶
type MyLineItemDraft struct { VariantID int `json:"variantId"` SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` SKU string `json:"sku,omitempty"` ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` Quantity float64 `json:"quantity"` ProductID string `json:"productId"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
MyLineItemDraft is a standalone struct
type MyOrder ¶
type MyOrder struct { Version int `json:"version"` TotalPrice TypedMoney `json:"totalPrice"` TaxedPrice *TaxedPrice `json:"taxedPrice,omitempty"` TaxRoundingMode RoundingMode `json:"taxRoundingMode,omitempty"` TaxMode TaxMode `json:"taxMode,omitempty"` TaxCalculationMode TaxCalculationMode `json:"taxCalculationMode,omitempty"` SyncInfo []SyncInfo `json:"syncInfo"` Store *StoreKeyReference `json:"store,omitempty"` State *StateReference `json:"state,omitempty"` ShippingRateInput ShippingRateInput `json:"shippingRateInput,omitempty"` ShippingInfo *ShippingInfo `json:"shippingInfo,omitempty"` ShippingAddress *Address `json:"shippingAddress,omitempty"` ShipmentState ShipmentState `json:"shipmentState,omitempty"` ReturnInfo []ReturnInfo `json:"returnInfo,omitempty"` RefusedGifts []CartDiscountReference `json:"refusedGifts"` PaymentState PaymentState `json:"paymentState,omitempty"` PaymentInfo *PaymentInfo `json:"paymentInfo,omitempty"` Origin CartOrigin `json:"origin"` OrderState OrderState `json:"orderState"` OrderNumber string `json:"orderNumber,omitempty"` Locale string `json:"locale,omitempty"` LineItems []LineItem `json:"lineItems"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` LastMessageSequenceNumber int `json:"lastMessageSequenceNumber"` ItemShippingAddresses []Address `json:"itemShippingAddresses,omitempty"` InventoryMode InventoryMode `json:"inventoryMode,omitempty"` ID string `json:"id"` DiscountCodes []DiscountCodeInfo `json:"discountCodes,omitempty"` CustomerID string `json:"customerId,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` CustomerEmail string `json:"customerEmail,omitempty"` CustomLineItems []CustomLineItem `json:"customLineItems"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Country string `json:"country,omitempty"` CompletedAt *time.Time `json:"completedAt,omitempty"` Cart *CartReference `json:"cart,omitempty"` BillingAddress *Address `json:"billingAddress,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
MyOrder is of type BaseResource
func (*MyOrder) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type MyOrderFromCartDraft ¶
MyOrderFromCartDraft is a standalone struct
type MyPayment ¶
type MyPayment struct { Version int `json:"version"` Transactions []Transaction `json:"transactions"` PaymentMethodInfo *PaymentMethodInfo `json:"paymentMethodInfo"` ID string `json:"id"` Customer *CustomerReference `json:"customer,omitempty"` Custom *CustomFields `json:"custom,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` AmountPlanned TypedMoney `json:"amountPlanned"` }
MyPayment is a standalone struct
func (*MyPayment) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type MyPaymentAddTransactionAction ¶
type MyPaymentAddTransactionAction struct {
Transaction *TransactionDraft `json:"transaction"`
}
MyPaymentAddTransactionAction implements the interface MyPaymentUpdateAction
func (MyPaymentAddTransactionAction) MarshalJSON ¶
func (obj MyPaymentAddTransactionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyPaymentChangeAmountPlannedAction ¶
type MyPaymentChangeAmountPlannedAction struct {
Amount *Money `json:"amount"`
}
MyPaymentChangeAmountPlannedAction implements the interface MyPaymentUpdateAction
func (MyPaymentChangeAmountPlannedAction) MarshalJSON ¶
func (obj MyPaymentChangeAmountPlannedAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyPaymentDraft ¶
type MyPaymentDraft struct { Transaction *MyTransactionDraft `json:"transaction,omitempty"` PaymentMethodInfo *PaymentMethodInfo `json:"paymentMethodInfo,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AmountPlanned *Money `json:"amountPlanned"` }
MyPaymentDraft is a standalone struct
type MyPaymentPagedQueryResponse ¶
type MyPaymentPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []MyPayment `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
MyPaymentPagedQueryResponse is a standalone struct
type MyPaymentSetCustomFieldAction ¶
type MyPaymentSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
MyPaymentSetCustomFieldAction implements the interface MyPaymentUpdateAction
func (MyPaymentSetCustomFieldAction) MarshalJSON ¶
func (obj MyPaymentSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyPaymentSetMethodInfoInterfaceAction ¶
type MyPaymentSetMethodInfoInterfaceAction struct {
Interface string `json:"interface"`
}
MyPaymentSetMethodInfoInterfaceAction implements the interface MyPaymentUpdateAction
func (MyPaymentSetMethodInfoInterfaceAction) MarshalJSON ¶
func (obj MyPaymentSetMethodInfoInterfaceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyPaymentSetMethodInfoMethodAction ¶
type MyPaymentSetMethodInfoMethodAction struct {
Method string `json:"method,omitempty"`
}
MyPaymentSetMethodInfoMethodAction implements the interface MyPaymentUpdateAction
func (MyPaymentSetMethodInfoMethodAction) MarshalJSON ¶
func (obj MyPaymentSetMethodInfoMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyPaymentSetMethodInfoNameAction ¶
type MyPaymentSetMethodInfoNameAction struct {
Name *LocalizedString `json:"name,omitempty"`
}
MyPaymentSetMethodInfoNameAction implements the interface MyPaymentUpdateAction
func (MyPaymentSetMethodInfoNameAction) MarshalJSON ¶
func (obj MyPaymentSetMethodInfoNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyPaymentUpdate ¶
type MyPaymentUpdate struct { Version int `json:"version"` Actions []MyPaymentUpdateAction `json:"actions"` }
MyPaymentUpdate is a standalone struct
func (*MyPaymentUpdate) UnmarshalJSON ¶
func (obj *MyPaymentUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type MyPaymentUpdateAction ¶
type MyPaymentUpdateAction interface{}
MyPaymentUpdateAction uses action as discriminator attribute
type MyPaymentUpdateWithIDInput ¶
type MyPaymentUpdateWithIDInput struct { ID string Version int Actions []MyPaymentUpdateAction }
MyPaymentUpdateWithIDInput is input for function MyPaymentUpdateWithID
func (*MyPaymentUpdateWithIDInput) Validate ¶
func (input *MyPaymentUpdateWithIDInput) Validate() error
type MyPaymentUpdateWithKeyInput ¶
type MyPaymentUpdateWithKeyInput struct { Key string Version int Actions []MyPaymentUpdateAction }
MyPaymentUpdateWithKeyInput is input for function MyPaymentUpdateWithKey
func (*MyPaymentUpdateWithKeyInput) Validate ¶
func (input *MyPaymentUpdateWithKeyInput) Validate() error
type MyShoppingList ¶
type MyShoppingList struct { Version int `json:"version"` TextLineItems []TextLineItem `json:"textLineItems,omitempty"` Slug *LocalizedString `json:"slug,omitempty"` Name *LocalizedString `json:"name"` LineItems []ShoppingListLineItem `json:"lineItems,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key *string `json:"key,omitempty"` ID string `json:"id"` Description *LocalizedString `json:"description,omitempty"` DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"` Customer *CustomerReference `json:"customer,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` AnonymousID string `json:"anonymousId,omitempty"` }
MyShoppingList is of type BaseResource
type MyShoppingListAddLineItemAction ¶
type MyShoppingListAddLineItemAction struct { VariantID int `json:"variantId,omitempty"` SKU string `json:"sku,omitempty"` Quantity int `json:"quantity,omitempty"` ProductID string `json:"productId,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
MyShoppingListAddLineItemAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListAddLineItemAction) MarshalJSON ¶
func (obj MyShoppingListAddLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListAddTextLineItemAction ¶
type MyShoppingListAddTextLineItemAction struct { Quantity int `json:"quantity,omitempty"` Name *LocalizedString `json:"name"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
MyShoppingListAddTextLineItemAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListAddTextLineItemAction) MarshalJSON ¶
func (obj MyShoppingListAddTextLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListChangeLineItemQuantityAction ¶
type MyShoppingListChangeLineItemQuantityAction struct { Quantity int `json:"quantity"` LineItemID string `json:"lineItemId"` }
MyShoppingListChangeLineItemQuantityAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListChangeLineItemQuantityAction) MarshalJSON ¶
func (obj MyShoppingListChangeLineItemQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListChangeLineItemsOrderAction ¶
type MyShoppingListChangeLineItemsOrderAction struct {
LineItemOrder []string `json:"lineItemOrder"`
}
MyShoppingListChangeLineItemsOrderAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListChangeLineItemsOrderAction) MarshalJSON ¶
func (obj MyShoppingListChangeLineItemsOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListChangeNameAction ¶
type MyShoppingListChangeNameAction struct {
Name *LocalizedString `json:"name"`
}
MyShoppingListChangeNameAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListChangeNameAction) MarshalJSON ¶
func (obj MyShoppingListChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListChangeTextLineItemNameAction ¶
type MyShoppingListChangeTextLineItemNameAction struct { TextLineItemID string `json:"textLineItemId"` Name *LocalizedString `json:"name"` }
MyShoppingListChangeTextLineItemNameAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListChangeTextLineItemNameAction) MarshalJSON ¶
func (obj MyShoppingListChangeTextLineItemNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListChangeTextLineItemQuantityAction ¶
type MyShoppingListChangeTextLineItemQuantityAction struct { TextLineItemID string `json:"textLineItemId"` Quantity int `json:"quantity"` }
MyShoppingListChangeTextLineItemQuantityAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListChangeTextLineItemQuantityAction) MarshalJSON ¶
func (obj MyShoppingListChangeTextLineItemQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListChangeTextLineItemsOrderAction ¶
type MyShoppingListChangeTextLineItemsOrderAction struct {
TextLineItemOrder []string `json:"textLineItemOrder"`
}
MyShoppingListChangeTextLineItemsOrderAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListChangeTextLineItemsOrderAction) MarshalJSON ¶
func (obj MyShoppingListChangeTextLineItemsOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListDraft ¶
type MyShoppingListDraft struct { TextLineItems []TextLineItemDraft `json:"textLineItems,omitempty"` Name *LocalizedString `json:"name"` LineItems []ShoppingListLineItemDraft `json:"lineItems,omitempty"` Description *LocalizedString `json:"description,omitempty"` DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` }
MyShoppingListDraft is a standalone struct
type MyShoppingListRemoveLineItemAction ¶
type MyShoppingListRemoveLineItemAction struct { Quantity int `json:"quantity,omitempty"` LineItemID string `json:"lineItemId"` }
MyShoppingListRemoveLineItemAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListRemoveLineItemAction) MarshalJSON ¶
func (obj MyShoppingListRemoveLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListRemoveTextLineItemAction ¶
type MyShoppingListRemoveTextLineItemAction struct { TextLineItemID string `json:"textLineItemId"` Quantity int `json:"quantity,omitempty"` }
MyShoppingListRemoveTextLineItemAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListRemoveTextLineItemAction) MarshalJSON ¶
func (obj MyShoppingListRemoveTextLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListSetCustomFieldAction ¶
type MyShoppingListSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
MyShoppingListSetCustomFieldAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListSetCustomFieldAction) MarshalJSON ¶
func (obj MyShoppingListSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListSetCustomTypeAction ¶
type MyShoppingListSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
MyShoppingListSetCustomTypeAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListSetCustomTypeAction) MarshalJSON ¶
func (obj MyShoppingListSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListSetDeleteDaysAfterLastModificationAction ¶
type MyShoppingListSetDeleteDaysAfterLastModificationAction struct {
DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"`
}
MyShoppingListSetDeleteDaysAfterLastModificationAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListSetDeleteDaysAfterLastModificationAction) MarshalJSON ¶
func (obj MyShoppingListSetDeleteDaysAfterLastModificationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListSetDescriptionAction ¶
type MyShoppingListSetDescriptionAction struct {
Description *LocalizedString `json:"description,omitempty"`
}
MyShoppingListSetDescriptionAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListSetDescriptionAction) MarshalJSON ¶
func (obj MyShoppingListSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListSetLineItemCustomFieldAction ¶
type MyShoppingListSetLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` LineItemID string `json:"lineItemId"` }
MyShoppingListSetLineItemCustomFieldAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListSetLineItemCustomFieldAction) MarshalJSON ¶
func (obj MyShoppingListSetLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListSetLineItemCustomTypeAction ¶
type MyShoppingListSetLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` LineItemID string `json:"lineItemId"` Fields *FieldContainer `json:"fields,omitempty"` }
MyShoppingListSetLineItemCustomTypeAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListSetLineItemCustomTypeAction) MarshalJSON ¶
func (obj MyShoppingListSetLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListSetTextLineItemCustomFieldAction ¶
type MyShoppingListSetTextLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` TextLineItemID string `json:"textLineItemId"` Name string `json:"name"` }
MyShoppingListSetTextLineItemCustomFieldAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListSetTextLineItemCustomFieldAction) MarshalJSON ¶
func (obj MyShoppingListSetTextLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListSetTextLineItemCustomTypeAction ¶
type MyShoppingListSetTextLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` TextLineItemID string `json:"textLineItemId"` Fields *FieldContainer `json:"fields,omitempty"` }
MyShoppingListSetTextLineItemCustomTypeAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListSetTextLineItemCustomTypeAction) MarshalJSON ¶
func (obj MyShoppingListSetTextLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListSetTextLineItemDescriptionAction ¶
type MyShoppingListSetTextLineItemDescriptionAction struct { TextLineItemID string `json:"textLineItemId"` Description *LocalizedString `json:"description,omitempty"` }
MyShoppingListSetTextLineItemDescriptionAction implements the interface MyShoppingListUpdateAction
func (MyShoppingListSetTextLineItemDescriptionAction) MarshalJSON ¶
func (obj MyShoppingListSetTextLineItemDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type MyShoppingListUpdate ¶
type MyShoppingListUpdate struct { Version int `json:"version"` Actions []MyShoppingListUpdateAction `json:"actions"` }
MyShoppingListUpdate is a standalone struct
func (*MyShoppingListUpdate) UnmarshalJSON ¶
func (obj *MyShoppingListUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type MyShoppingListUpdateAction ¶
type MyShoppingListUpdateAction interface{}
MyShoppingListUpdateAction uses action as discriminator attribute
type MyShoppingListUpdateWithIDInput ¶
type MyShoppingListUpdateWithIDInput struct { ID string Version int Actions []MyShoppingListUpdateAction }
MyShoppingListUpdateWithIDInput is input for function MyShoppingListUpdateWithID
func (*MyShoppingListUpdateWithIDInput) Validate ¶
func (input *MyShoppingListUpdateWithIDInput) Validate() error
type MyShoppingListUpdateWithKeyInput ¶
type MyShoppingListUpdateWithKeyInput struct { Key string Version int Actions []MyShoppingListUpdateAction }
MyShoppingListUpdateWithKeyInput is input for function MyShoppingListUpdateWithKey
func (*MyShoppingListUpdateWithKeyInput) Validate ¶
func (input *MyShoppingListUpdateWithKeyInput) Validate() error
type MyTransactionDraft ¶
type MyTransactionDraft struct { Type TransactionType `json:"type"` Timestamp *time.Time `json:"timestamp,omitempty"` InteractionID string `json:"interactionId,omitempty"` Amount *Money `json:"amount"` }
MyTransactionDraft is a standalone struct
type NoMatchingProductDiscountFoundError ¶
type NoMatchingProductDiscountFoundError struct {
Message string `json:"message"`
}
NoMatchingProductDiscountFoundError implements the interface ErrorObject
func (NoMatchingProductDiscountFoundError) Error ¶
func (obj NoMatchingProductDiscountFoundError) Error() string
func (NoMatchingProductDiscountFoundError) MarshalJSON ¶
func (obj NoMatchingProductDiscountFoundError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Order ¶
type Order struct { Version int `json:"version"` TotalPrice TypedMoney `json:"totalPrice"` TaxedPrice *TaxedPrice `json:"taxedPrice,omitempty"` TaxRoundingMode RoundingMode `json:"taxRoundingMode,omitempty"` TaxMode TaxMode `json:"taxMode,omitempty"` TaxCalculationMode TaxCalculationMode `json:"taxCalculationMode,omitempty"` SyncInfo []SyncInfo `json:"syncInfo"` Store *StoreKeyReference `json:"store,omitempty"` State *StateReference `json:"state,omitempty"` ShippingRateInput ShippingRateInput `json:"shippingRateInput,omitempty"` ShippingInfo *ShippingInfo `json:"shippingInfo,omitempty"` ShippingAddress *Address `json:"shippingAddress,omitempty"` ShipmentState ShipmentState `json:"shipmentState,omitempty"` ReturnInfo []ReturnInfo `json:"returnInfo,omitempty"` RefusedGifts []CartDiscountReference `json:"refusedGifts"` PaymentState PaymentState `json:"paymentState,omitempty"` PaymentInfo *PaymentInfo `json:"paymentInfo,omitempty"` Origin CartOrigin `json:"origin"` OrderState OrderState `json:"orderState"` OrderNumber string `json:"orderNumber,omitempty"` Locale string `json:"locale,omitempty"` LineItems []LineItem `json:"lineItems"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` LastMessageSequenceNumber int `json:"lastMessageSequenceNumber"` ItemShippingAddresses []Address `json:"itemShippingAddresses,omitempty"` InventoryMode InventoryMode `json:"inventoryMode,omitempty"` ID string `json:"id"` DiscountCodes []DiscountCodeInfo `json:"discountCodes,omitempty"` CustomerID string `json:"customerId,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` CustomerEmail string `json:"customerEmail,omitempty"` CustomLineItems []CustomLineItem `json:"customLineItems"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Country string `json:"country,omitempty"` CompletedAt *time.Time `json:"completedAt,omitempty"` Cart *CartReference `json:"cart,omitempty"` BillingAddress *Address `json:"billingAddress,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
Order is of type BaseResource
func (*Order) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderAddDeliveryAction ¶
type OrderAddDeliveryAction struct { Parcels []ParcelDraft `json:"parcels,omitempty"` Items []DeliveryItem `json:"items,omitempty"` Address *Address `json:"address,omitempty"` }
OrderAddDeliveryAction implements the interface OrderUpdateAction
func (OrderAddDeliveryAction) MarshalJSON ¶
func (obj OrderAddDeliveryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderAddItemShippingAddressAction ¶
type OrderAddItemShippingAddressAction struct {
Address *Address `json:"address"`
}
OrderAddItemShippingAddressAction implements the interface OrderUpdateAction
func (OrderAddItemShippingAddressAction) MarshalJSON ¶
func (obj OrderAddItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderAddParcelToDeliveryAction ¶
type OrderAddParcelToDeliveryAction struct { TrackingData *TrackingData `json:"trackingData,omitempty"` Measurements *ParcelMeasurements `json:"measurements,omitempty"` Items []DeliveryItem `json:"items,omitempty"` DeliveryID string `json:"deliveryId"` }
OrderAddParcelToDeliveryAction implements the interface OrderUpdateAction
func (OrderAddParcelToDeliveryAction) MarshalJSON ¶
func (obj OrderAddParcelToDeliveryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderAddPaymentAction ¶
type OrderAddPaymentAction struct {
Payment *PaymentResourceIdentifier `json:"payment"`
}
OrderAddPaymentAction implements the interface OrderUpdateAction
func (OrderAddPaymentAction) MarshalJSON ¶
func (obj OrderAddPaymentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderAddReturnInfoAction ¶
type OrderAddReturnInfoAction struct { ReturnTrackingID string `json:"returnTrackingId,omitempty"` ReturnDate *time.Time `json:"returnDate,omitempty"` Items []ReturnItemDraft `json:"items"` }
OrderAddReturnInfoAction implements the interface OrderUpdateAction
func (OrderAddReturnInfoAction) MarshalJSON ¶
func (obj OrderAddReturnInfoAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderBillingAddressSetMessage ¶
type OrderBillingAddressSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` OldAddress *Address `json:"oldAddress,omitempty"` Address *Address `json:"address,omitempty"` }
OrderBillingAddressSetMessage implements the interface Message
func (OrderBillingAddressSetMessage) MarshalJSON ¶
func (obj OrderBillingAddressSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderBillingAddressSetMessagePayload ¶
type OrderBillingAddressSetMessagePayload struct { OldAddress *Address `json:"oldAddress,omitempty"` Address *Address `json:"address,omitempty"` }
OrderBillingAddressSetMessagePayload implements the interface MessagePayload
func (OrderBillingAddressSetMessagePayload) MarshalJSON ¶
func (obj OrderBillingAddressSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderChangeOrderStateAction ¶
type OrderChangeOrderStateAction struct {
OrderState OrderState `json:"orderState"`
}
OrderChangeOrderStateAction implements the interface OrderUpdateAction
func (OrderChangeOrderStateAction) MarshalJSON ¶
func (obj OrderChangeOrderStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderChangePaymentStateAction ¶
type OrderChangePaymentStateAction struct {
PaymentState PaymentState `json:"paymentState,omitempty"`
}
OrderChangePaymentStateAction implements the interface OrderUpdateAction
func (OrderChangePaymentStateAction) MarshalJSON ¶
func (obj OrderChangePaymentStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderChangeShipmentStateAction ¶
type OrderChangeShipmentStateAction struct {
ShipmentState ShipmentState `json:"shipmentState,omitempty"`
}
OrderChangeShipmentStateAction implements the interface OrderUpdateAction
func (OrderChangeShipmentStateAction) MarshalJSON ¶
func (obj OrderChangeShipmentStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCreatedMessage ¶
type OrderCreatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Order *Order `json:"order"` }
OrderCreatedMessage implements the interface Message
func (OrderCreatedMessage) MarshalJSON ¶
func (obj OrderCreatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCreatedMessagePayload ¶
type OrderCreatedMessagePayload struct {
Order *Order `json:"order"`
}
OrderCreatedMessagePayload implements the interface MessagePayload
func (OrderCreatedMessagePayload) MarshalJSON ¶
func (obj OrderCreatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCustomLineItemDiscountSetMessage ¶
type OrderCustomLineItemDiscountSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` TaxedPrice *TaxedItemPrice `json:"taxedPrice,omitempty"` DiscountedPricePerQuantity []DiscountedLineItemPriceForQuantity `json:"discountedPricePerQuantity"` CustomLineItemID string `json:"customLineItemId"` }
OrderCustomLineItemDiscountSetMessage implements the interface Message
func (OrderCustomLineItemDiscountSetMessage) MarshalJSON ¶
func (obj OrderCustomLineItemDiscountSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCustomLineItemDiscountSetMessagePayload ¶
type OrderCustomLineItemDiscountSetMessagePayload struct { TaxedPrice *TaxedItemPrice `json:"taxedPrice,omitempty"` DiscountedPricePerQuantity []DiscountedLineItemPriceForQuantity `json:"discountedPricePerQuantity"` CustomLineItemID string `json:"customLineItemId"` }
OrderCustomLineItemDiscountSetMessagePayload implements the interface MessagePayload
func (OrderCustomLineItemDiscountSetMessagePayload) MarshalJSON ¶
func (obj OrderCustomLineItemDiscountSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCustomerEmailSetMessage ¶
type OrderCustomerEmailSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` OldEmail string `json:"oldEmail,omitempty"` Email string `json:"email,omitempty"` }
OrderCustomerEmailSetMessage implements the interface Message
func (OrderCustomerEmailSetMessage) MarshalJSON ¶
func (obj OrderCustomerEmailSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCustomerEmailSetMessagePayload ¶
type OrderCustomerEmailSetMessagePayload struct { OldEmail string `json:"oldEmail,omitempty"` Email string `json:"email,omitempty"` }
OrderCustomerEmailSetMessagePayload implements the interface MessagePayload
func (OrderCustomerEmailSetMessagePayload) MarshalJSON ¶
func (obj OrderCustomerEmailSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCustomerGroupSetMessage ¶
type OrderCustomerGroupSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` OldCustomerGroup *CustomerGroupReference `json:"oldCustomerGroup,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` }
OrderCustomerGroupSetMessage implements the interface Message
func (OrderCustomerGroupSetMessage) MarshalJSON ¶
func (obj OrderCustomerGroupSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCustomerGroupSetMessagePayload ¶
type OrderCustomerGroupSetMessagePayload struct { OldCustomerGroup *CustomerGroupReference `json:"oldCustomerGroup,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` }
OrderCustomerGroupSetMessagePayload implements the interface MessagePayload
func (OrderCustomerGroupSetMessagePayload) MarshalJSON ¶
func (obj OrderCustomerGroupSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCustomerSetMessage ¶
type OrderCustomerSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` OldCustomerGroup *CustomerGroupReference `json:"oldCustomerGroup,omitempty"` OldCustomer *CustomerReference `json:"oldCustomer,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` Customer *CustomerReference `json:"customer,omitempty"` }
OrderCustomerSetMessage implements the interface Message
func (OrderCustomerSetMessage) MarshalJSON ¶
func (obj OrderCustomerSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderCustomerSetMessagePayload ¶
type OrderCustomerSetMessagePayload struct { OldCustomerGroup *CustomerGroupReference `json:"oldCustomerGroup,omitempty"` OldCustomer *CustomerReference `json:"oldCustomer,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` Customer *CustomerReference `json:"customer,omitempty"` }
OrderCustomerSetMessagePayload implements the interface MessagePayload
func (OrderCustomerSetMessagePayload) MarshalJSON ¶
func (obj OrderCustomerSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderDeletedMessage ¶
type OrderDeletedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Order *Order `json:"order"` }
OrderDeletedMessage implements the interface Message
func (OrderDeletedMessage) MarshalJSON ¶
func (obj OrderDeletedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderDeletedMessagePayload ¶
type OrderDeletedMessagePayload struct {
Order *Order `json:"order"`
}
OrderDeletedMessagePayload implements the interface MessagePayload
func (OrderDeletedMessagePayload) MarshalJSON ¶
func (obj OrderDeletedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderDiscountCodeAddedMessage ¶
type OrderDiscountCodeAddedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` DiscountCode *DiscountCodeReference `json:"discountCode"` }
OrderDiscountCodeAddedMessage implements the interface Message
func (OrderDiscountCodeAddedMessage) MarshalJSON ¶
func (obj OrderDiscountCodeAddedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderDiscountCodeAddedMessagePayload ¶
type OrderDiscountCodeAddedMessagePayload struct {
DiscountCode *DiscountCodeReference `json:"discountCode"`
}
OrderDiscountCodeAddedMessagePayload implements the interface MessagePayload
func (OrderDiscountCodeAddedMessagePayload) MarshalJSON ¶
func (obj OrderDiscountCodeAddedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderDiscountCodeRemovedMessage ¶
type OrderDiscountCodeRemovedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` DiscountCode *DiscountCodeReference `json:"discountCode"` }
OrderDiscountCodeRemovedMessage implements the interface Message
func (OrderDiscountCodeRemovedMessage) MarshalJSON ¶
func (obj OrderDiscountCodeRemovedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderDiscountCodeRemovedMessagePayload ¶
type OrderDiscountCodeRemovedMessagePayload struct {
DiscountCode *DiscountCodeReference `json:"discountCode"`
}
OrderDiscountCodeRemovedMessagePayload implements the interface MessagePayload
func (OrderDiscountCodeRemovedMessagePayload) MarshalJSON ¶
func (obj OrderDiscountCodeRemovedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderDiscountCodeStateSetMessage ¶
type OrderDiscountCodeStateSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` State DiscountCodeState `json:"state"` OldState DiscountCodeState `json:"oldState,omitempty"` DiscountCode *DiscountCodeReference `json:"discountCode"` }
OrderDiscountCodeStateSetMessage implements the interface Message
func (OrderDiscountCodeStateSetMessage) MarshalJSON ¶
func (obj OrderDiscountCodeStateSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderDiscountCodeStateSetMessagePayload ¶
type OrderDiscountCodeStateSetMessagePayload struct { State DiscountCodeState `json:"state"` OldState DiscountCodeState `json:"oldState,omitempty"` DiscountCode *DiscountCodeReference `json:"discountCode"` }
OrderDiscountCodeStateSetMessagePayload implements the interface MessagePayload
func (OrderDiscountCodeStateSetMessagePayload) MarshalJSON ¶
func (obj OrderDiscountCodeStateSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEdit ¶
type OrderEdit struct { Version int `json:"version"` StagedActions []StagedOrderUpdateAction `json:"stagedActions"` Result OrderEditResult `json:"result"` Resource *OrderReference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Comment string `json:"comment,omitempty"` }
OrderEdit is of type BaseResource
func (*OrderEdit) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderEditAddStagedActionAction ¶
type OrderEditAddStagedActionAction struct {
StagedAction StagedOrderUpdateAction `json:"stagedAction"`
}
OrderEditAddStagedActionAction implements the interface OrderEditUpdateAction
func (OrderEditAddStagedActionAction) MarshalJSON ¶
func (obj OrderEditAddStagedActionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*OrderEditAddStagedActionAction) UnmarshalJSON ¶
func (obj *OrderEditAddStagedActionAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderEditApplied ¶
type OrderEditApplied struct { ExcerptBeforeEdit *OrderExcerpt `json:"excerptBeforeEdit"` ExcerptAfterEdit *OrderExcerpt `json:"excerptAfterEdit"` AppliedAt time.Time `json:"appliedAt"` }
OrderEditApplied implements the interface OrderEditResult
func (OrderEditApplied) MarshalJSON ¶
func (obj OrderEditApplied) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditAppliedMessage ¶
type OrderEditAppliedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Result *OrderEditApplied `json:"result"` Edit *OrderEditReference `json:"edit"` }
OrderEditAppliedMessage implements the interface Message
func (OrderEditAppliedMessage) MarshalJSON ¶
func (obj OrderEditAppliedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditAppliedMessagePayload ¶
type OrderEditAppliedMessagePayload struct { Result *OrderEditApplied `json:"result"` Edit *OrderEditReference `json:"edit"` }
OrderEditAppliedMessagePayload implements the interface MessagePayload
func (OrderEditAppliedMessagePayload) MarshalJSON ¶
func (obj OrderEditAppliedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditApply ¶
type OrderEditApply struct { ResourceVersion int `json:"resourceVersion"` EditVersion int `json:"editVersion"` }
OrderEditApply is a standalone struct
type OrderEditDraft ¶
type OrderEditDraft struct { StagedActions []StagedOrderUpdateAction `json:"stagedActions,omitempty"` Resource *OrderReference `json:"resource"` Key string `json:"key,omitempty"` DryRun bool `json:"dryRun"` Custom *CustomFieldsDraft `json:"custom,omitempty"` Comment string `json:"comment,omitempty"` }
OrderEditDraft is a standalone struct
func (*OrderEditDraft) UnmarshalJSON ¶
func (obj *OrderEditDraft) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderEditNotProcessed ¶
type OrderEditNotProcessed struct{}
OrderEditNotProcessed implements the interface OrderEditResult
func (OrderEditNotProcessed) MarshalJSON ¶
func (obj OrderEditNotProcessed) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditPagedQueryResponse ¶
type OrderEditPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []OrderEdit `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
OrderEditPagedQueryResponse is a standalone struct
type OrderEditPreviewFailure ¶
type OrderEditPreviewFailure struct {
Errors []ErrorObject `json:"errors"`
}
OrderEditPreviewFailure implements the interface OrderEditResult
func (OrderEditPreviewFailure) MarshalJSON ¶
func (obj OrderEditPreviewFailure) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*OrderEditPreviewFailure) UnmarshalJSON ¶
func (obj *OrderEditPreviewFailure) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderEditPreviewSuccess ¶
type OrderEditPreviewSuccess struct { Preview *StagedOrder `json:"preview"` MessagePayloads []MessagePayload `json:"messagePayloads"` }
OrderEditPreviewSuccess implements the interface OrderEditResult
func (OrderEditPreviewSuccess) MarshalJSON ¶
func (obj OrderEditPreviewSuccess) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*OrderEditPreviewSuccess) UnmarshalJSON ¶
func (obj *OrderEditPreviewSuccess) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderEditReference ¶
OrderEditReference implements the interface Reference
func (OrderEditReference) MarshalJSON ¶
func (obj OrderEditReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditResourceIdentifier ¶
type OrderEditResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
OrderEditResourceIdentifier implements the interface ResourceIdentifier
func (OrderEditResourceIdentifier) MarshalJSON ¶
func (obj OrderEditResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditResult ¶
type OrderEditResult interface{}
OrderEditResult uses type as discriminator attribute
type OrderEditSetCommentAction ¶
type OrderEditSetCommentAction struct {
Comment string `json:"comment,omitempty"`
}
OrderEditSetCommentAction implements the interface OrderEditUpdateAction
func (OrderEditSetCommentAction) MarshalJSON ¶
func (obj OrderEditSetCommentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditSetCustomFieldAction ¶
type OrderEditSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
OrderEditSetCustomFieldAction implements the interface OrderEditUpdateAction
func (OrderEditSetCustomFieldAction) MarshalJSON ¶
func (obj OrderEditSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditSetCustomTypeAction ¶
type OrderEditSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields interface{} `json:"fields,omitempty"` }
OrderEditSetCustomTypeAction implements the interface OrderEditUpdateAction
func (OrderEditSetCustomTypeAction) MarshalJSON ¶
func (obj OrderEditSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditSetKeyAction ¶
type OrderEditSetKeyAction struct {
Key string `json:"key,omitempty"`
}
OrderEditSetKeyAction implements the interface OrderEditUpdateAction
func (OrderEditSetKeyAction) MarshalJSON ¶
func (obj OrderEditSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderEditSetStagedActionsAction ¶
type OrderEditSetStagedActionsAction struct {
StagedActions []StagedOrderUpdateAction `json:"stagedActions"`
}
OrderEditSetStagedActionsAction implements the interface OrderEditUpdateAction
func (OrderEditSetStagedActionsAction) MarshalJSON ¶
func (obj OrderEditSetStagedActionsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*OrderEditSetStagedActionsAction) UnmarshalJSON ¶
func (obj *OrderEditSetStagedActionsAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderEditUpdate ¶
type OrderEditUpdate struct { Version int `json:"version"` DryRun bool `json:"dryRun"` Actions []OrderEditUpdateAction `json:"actions"` }
OrderEditUpdate is a standalone struct
func (*OrderEditUpdate) UnmarshalJSON ¶
func (obj *OrderEditUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderEditUpdateAction ¶
type OrderEditUpdateAction interface{}
OrderEditUpdateAction uses action as discriminator attribute
type OrderEditUpdateWithIDInput ¶
type OrderEditUpdateWithIDInput struct { ID string Version int Actions []OrderEditUpdateAction }
OrderEditUpdateWithIDInput is input for function OrderEditUpdateWithID
func (*OrderEditUpdateWithIDInput) Validate ¶
func (input *OrderEditUpdateWithIDInput) Validate() error
type OrderEditUpdateWithKeyInput ¶
type OrderEditUpdateWithKeyInput struct { Key string Version int Actions []OrderEditUpdateAction }
OrderEditUpdateWithKeyInput is input for function OrderEditUpdateWithKey
func (*OrderEditUpdateWithKeyInput) Validate ¶
func (input *OrderEditUpdateWithKeyInput) Validate() error
type OrderExcerpt ¶
type OrderExcerpt struct { Version int `json:"version"` TotalPrice TypedMoney `json:"totalPrice"` TaxedPrice *TaxedPrice `json:"taxedPrice,omitempty"` }
OrderExcerpt is a standalone struct
func (*OrderExcerpt) UnmarshalJSON ¶
func (obj *OrderExcerpt) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderFromCartDraft ¶
type OrderFromCartDraft struct { Version int `json:"version"` State *StateResourceIdentifier `json:"state,omitempty"` ShipmentState ShipmentState `json:"shipmentState,omitempty"` PaymentState PaymentState `json:"paymentState,omitempty"` OrderState OrderState `json:"orderState,omitempty"` OrderNumber string `json:"orderNumber,omitempty"` ID string `json:"id"` }
OrderFromCartDraft is a standalone struct
type OrderImportCustomLineItemStateAction ¶
type OrderImportCustomLineItemStateAction struct { State []ItemState `json:"state"` CustomLineItemID string `json:"customLineItemId"` }
OrderImportCustomLineItemStateAction implements the interface OrderUpdateAction
func (OrderImportCustomLineItemStateAction) MarshalJSON ¶
func (obj OrderImportCustomLineItemStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderImportDraft ¶
type OrderImportDraft struct { TotalPrice *Money `json:"totalPrice"` TaxedPrice *TaxedPriceDraft `json:"taxedPrice,omitempty"` TaxRoundingMode RoundingMode `json:"taxRoundingMode,omitempty"` Store *StoreResourceIdentifier `json:"store,omitempty"` ShippingInfo *ShippingInfoImportDraft `json:"shippingInfo,omitempty"` ShippingAddress *Address `json:"shippingAddress,omitempty"` ShipmentState ShipmentState `json:"shipmentState,omitempty"` PaymentState PaymentState `json:"paymentState,omitempty"` Origin CartOrigin `json:"origin,omitempty"` OrderState OrderState `json:"orderState,omitempty"` OrderNumber string `json:"orderNumber,omitempty"` LineItems []LineItemImportDraft `json:"lineItems,omitempty"` ItemShippingAddresses []Address `json:"itemShippingAddresses,omitempty"` InventoryMode InventoryMode `json:"inventoryMode,omitempty"` CustomerID string `json:"customerId,omitempty"` CustomerGroup *CustomerGroupResourceIdentifier `json:"customerGroup,omitempty"` CustomerEmail string `json:"customerEmail,omitempty"` CustomLineItems []CustomLineItemDraft `json:"customLineItems,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` Country string `json:"country,omitempty"` CompletedAt *time.Time `json:"completedAt,omitempty"` BillingAddress *Address `json:"billingAddress,omitempty"` }
OrderImportDraft is a standalone struct
type OrderImportLineItemStateAction ¶
type OrderImportLineItemStateAction struct { State []ItemState `json:"state"` LineItemID string `json:"lineItemId"` }
OrderImportLineItemStateAction implements the interface OrderUpdateAction
func (OrderImportLineItemStateAction) MarshalJSON ¶
func (obj OrderImportLineItemStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderImportedMessage ¶
type OrderImportedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Order *Order `json:"order"` }
OrderImportedMessage implements the interface Message
func (OrderImportedMessage) MarshalJSON ¶
func (obj OrderImportedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderImportedMessagePayload ¶
type OrderImportedMessagePayload struct {
Order *Order `json:"order"`
}
OrderImportedMessagePayload implements the interface MessagePayload
func (OrderImportedMessagePayload) MarshalJSON ¶
func (obj OrderImportedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderLineItemAddedMessage ¶
type OrderLineItemAddedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` LineItem *LineItem `json:"lineItem"` AddedQuantity int `json:"addedQuantity"` }
OrderLineItemAddedMessage implements the interface Message
func (OrderLineItemAddedMessage) MarshalJSON ¶
func (obj OrderLineItemAddedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderLineItemAddedMessagePayload ¶
type OrderLineItemAddedMessagePayload struct { LineItem *LineItem `json:"lineItem"` AddedQuantity int `json:"addedQuantity"` }
OrderLineItemAddedMessagePayload implements the interface MessagePayload
func (OrderLineItemAddedMessagePayload) MarshalJSON ¶
func (obj OrderLineItemAddedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderLineItemDiscountSetMessage ¶
type OrderLineItemDiscountSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` TotalPrice *Money `json:"totalPrice"` TaxedPrice *TaxedItemPrice `json:"taxedPrice,omitempty"` LineItemID string `json:"lineItemId"` DiscountedPricePerQuantity []DiscountedLineItemPriceForQuantity `json:"discountedPricePerQuantity"` }
OrderLineItemDiscountSetMessage implements the interface Message
func (OrderLineItemDiscountSetMessage) MarshalJSON ¶
func (obj OrderLineItemDiscountSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderLineItemDiscountSetMessagePayload ¶
type OrderLineItemDiscountSetMessagePayload struct { TotalPrice *Money `json:"totalPrice"` TaxedPrice *TaxedItemPrice `json:"taxedPrice,omitempty"` LineItemID string `json:"lineItemId"` DiscountedPricePerQuantity []DiscountedLineItemPriceForQuantity `json:"discountedPricePerQuantity"` }
OrderLineItemDiscountSetMessagePayload implements the interface MessagePayload
func (OrderLineItemDiscountSetMessagePayload) MarshalJSON ¶
func (obj OrderLineItemDiscountSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderPagedQueryResponse ¶
type OrderPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Order `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
OrderPagedQueryResponse is a standalone struct
type OrderPaymentStateChangedMessage ¶
type OrderPaymentStateChangedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` PaymentState PaymentState `json:"paymentState"` OldPaymentState PaymentState `json:"oldPaymentState,omitempty"` }
OrderPaymentStateChangedMessage implements the interface Message
func (OrderPaymentStateChangedMessage) MarshalJSON ¶
func (obj OrderPaymentStateChangedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderPaymentStateChangedMessagePayload ¶
type OrderPaymentStateChangedMessagePayload struct { PaymentState PaymentState `json:"paymentState"` OldPaymentState PaymentState `json:"oldPaymentState,omitempty"` }
OrderPaymentStateChangedMessagePayload implements the interface MessagePayload
func (OrderPaymentStateChangedMessagePayload) MarshalJSON ¶
func (obj OrderPaymentStateChangedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderReference ¶
OrderReference implements the interface Reference
func (OrderReference) MarshalJSON ¶
func (obj OrderReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderRemoveDeliveryAction ¶
type OrderRemoveDeliveryAction struct {
DeliveryID string `json:"deliveryId"`
}
OrderRemoveDeliveryAction implements the interface OrderUpdateAction
func (OrderRemoveDeliveryAction) MarshalJSON ¶
func (obj OrderRemoveDeliveryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderRemoveItemShippingAddressAction ¶
type OrderRemoveItemShippingAddressAction struct {
AddressKey string `json:"addressKey"`
}
OrderRemoveItemShippingAddressAction implements the interface OrderUpdateAction
func (OrderRemoveItemShippingAddressAction) MarshalJSON ¶
func (obj OrderRemoveItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderRemoveParcelFromDeliveryAction ¶
type OrderRemoveParcelFromDeliveryAction struct {
ParcelID string `json:"parcelId"`
}
OrderRemoveParcelFromDeliveryAction implements the interface OrderUpdateAction
func (OrderRemoveParcelFromDeliveryAction) MarshalJSON ¶
func (obj OrderRemoveParcelFromDeliveryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderRemovePaymentAction ¶
type OrderRemovePaymentAction struct {
Payment *PaymentResourceIdentifier `json:"payment"`
}
OrderRemovePaymentAction implements the interface OrderUpdateAction
func (OrderRemovePaymentAction) MarshalJSON ¶
func (obj OrderRemovePaymentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderResourceIdentifier ¶
type OrderResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
OrderResourceIdentifier implements the interface ResourceIdentifier
func (OrderResourceIdentifier) MarshalJSON ¶
func (obj OrderResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderReturnInfoAddedMessage ¶
type OrderReturnInfoAddedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` ReturnInfo *ReturnInfo `json:"returnInfo"` }
OrderReturnInfoAddedMessage implements the interface Message
func (OrderReturnInfoAddedMessage) MarshalJSON ¶
func (obj OrderReturnInfoAddedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderReturnInfoAddedMessagePayload ¶
type OrderReturnInfoAddedMessagePayload struct {
ReturnInfo *ReturnInfo `json:"returnInfo"`
}
OrderReturnInfoAddedMessagePayload implements the interface MessagePayload
func (OrderReturnInfoAddedMessagePayload) MarshalJSON ¶
func (obj OrderReturnInfoAddedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderReturnShipmentStateChangedMessage ¶
type OrderReturnShipmentStateChangedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` ReturnShipmentState ReturnShipmentState `json:"returnShipmentState"` ReturnItemID string `json:"returnItemId"` }
OrderReturnShipmentStateChangedMessage implements the interface Message
func (OrderReturnShipmentStateChangedMessage) MarshalJSON ¶
func (obj OrderReturnShipmentStateChangedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderReturnShipmentStateChangedMessagePayload ¶
type OrderReturnShipmentStateChangedMessagePayload struct { ReturnShipmentState ReturnShipmentState `json:"returnShipmentState"` ReturnItemID string `json:"returnItemId"` }
OrderReturnShipmentStateChangedMessagePayload implements the interface MessagePayload
func (OrderReturnShipmentStateChangedMessagePayload) MarshalJSON ¶
func (obj OrderReturnShipmentStateChangedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetBillingAddressAction ¶
type OrderSetBillingAddressAction struct {
Address *Address `json:"address,omitempty"`
}
OrderSetBillingAddressAction implements the interface OrderUpdateAction
func (OrderSetBillingAddressAction) MarshalJSON ¶
func (obj OrderSetBillingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetCustomFieldAction ¶
type OrderSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
OrderSetCustomFieldAction implements the interface OrderUpdateAction
func (OrderSetCustomFieldAction) MarshalJSON ¶
func (obj OrderSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetCustomLineItemCustomFieldAction ¶
type OrderSetCustomLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` CustomLineItemID string `json:"customLineItemId"` }
OrderSetCustomLineItemCustomFieldAction implements the interface OrderUpdateAction
func (OrderSetCustomLineItemCustomFieldAction) MarshalJSON ¶
func (obj OrderSetCustomLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetCustomLineItemCustomTypeAction ¶
type OrderSetCustomLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
OrderSetCustomLineItemCustomTypeAction implements the interface OrderUpdateAction
func (OrderSetCustomLineItemCustomTypeAction) MarshalJSON ¶
func (obj OrderSetCustomLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetCustomLineItemShippingDetailsAction ¶
type OrderSetCustomLineItemShippingDetailsAction struct { ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
OrderSetCustomLineItemShippingDetailsAction implements the interface OrderUpdateAction
func (OrderSetCustomLineItemShippingDetailsAction) MarshalJSON ¶
func (obj OrderSetCustomLineItemShippingDetailsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetCustomTypeAction ¶
type OrderSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
OrderSetCustomTypeAction implements the interface OrderUpdateAction
func (OrderSetCustomTypeAction) MarshalJSON ¶
func (obj OrderSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetCustomerEmailAction ¶
type OrderSetCustomerEmailAction struct {
Email string `json:"email,omitempty"`
}
OrderSetCustomerEmailAction implements the interface OrderUpdateAction
func (OrderSetCustomerEmailAction) MarshalJSON ¶
func (obj OrderSetCustomerEmailAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetCustomerIDAction ¶
type OrderSetCustomerIDAction struct {
CustomerID string `json:"customerId,omitempty"`
}
OrderSetCustomerIDAction implements the interface OrderUpdateAction
func (OrderSetCustomerIDAction) MarshalJSON ¶
func (obj OrderSetCustomerIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetDeliveryAddressAction ¶
type OrderSetDeliveryAddressAction struct { DeliveryID string `json:"deliveryId"` Address *Address `json:"address,omitempty"` }
OrderSetDeliveryAddressAction implements the interface OrderUpdateAction
func (OrderSetDeliveryAddressAction) MarshalJSON ¶
func (obj OrderSetDeliveryAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetDeliveryItemsAction ¶
type OrderSetDeliveryItemsAction struct { Items []DeliveryItem `json:"items"` DeliveryID string `json:"deliveryId"` }
OrderSetDeliveryItemsAction implements the interface OrderUpdateAction
func (OrderSetDeliveryItemsAction) MarshalJSON ¶
func (obj OrderSetDeliveryItemsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetLineItemCustomFieldAction ¶
type OrderSetLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` LineItemID string `json:"lineItemId"` }
OrderSetLineItemCustomFieldAction implements the interface OrderUpdateAction
func (OrderSetLineItemCustomFieldAction) MarshalJSON ¶
func (obj OrderSetLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetLineItemCustomTypeAction ¶
type OrderSetLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` LineItemID string `json:"lineItemId"` Fields *FieldContainer `json:"fields,omitempty"` }
OrderSetLineItemCustomTypeAction implements the interface OrderUpdateAction
func (OrderSetLineItemCustomTypeAction) MarshalJSON ¶
func (obj OrderSetLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetLineItemShippingDetailsAction ¶
type OrderSetLineItemShippingDetailsAction struct { ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` LineItemID string `json:"lineItemId"` }
OrderSetLineItemShippingDetailsAction implements the interface OrderUpdateAction
func (OrderSetLineItemShippingDetailsAction) MarshalJSON ¶
func (obj OrderSetLineItemShippingDetailsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetLocaleAction ¶
type OrderSetLocaleAction struct {
Locale string `json:"locale,omitempty"`
}
OrderSetLocaleAction implements the interface OrderUpdateAction
func (OrderSetLocaleAction) MarshalJSON ¶
func (obj OrderSetLocaleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetOrderNumberAction ¶
type OrderSetOrderNumberAction struct {
OrderNumber string `json:"orderNumber,omitempty"`
}
OrderSetOrderNumberAction implements the interface OrderUpdateAction
func (OrderSetOrderNumberAction) MarshalJSON ¶
func (obj OrderSetOrderNumberAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetParcelItemsAction ¶
type OrderSetParcelItemsAction struct { ParcelID string `json:"parcelId"` Items []DeliveryItem `json:"items"` }
OrderSetParcelItemsAction implements the interface OrderUpdateAction
func (OrderSetParcelItemsAction) MarshalJSON ¶
func (obj OrderSetParcelItemsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetParcelMeasurementsAction ¶
type OrderSetParcelMeasurementsAction struct { ParcelID string `json:"parcelId"` Measurements *ParcelMeasurements `json:"measurements,omitempty"` }
OrderSetParcelMeasurementsAction implements the interface OrderUpdateAction
func (OrderSetParcelMeasurementsAction) MarshalJSON ¶
func (obj OrderSetParcelMeasurementsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetParcelTrackingDataAction ¶
type OrderSetParcelTrackingDataAction struct { TrackingData *TrackingData `json:"trackingData,omitempty"` ParcelID string `json:"parcelId"` }
OrderSetParcelTrackingDataAction implements the interface OrderUpdateAction
func (OrderSetParcelTrackingDataAction) MarshalJSON ¶
func (obj OrderSetParcelTrackingDataAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetReturnPaymentStateAction ¶
type OrderSetReturnPaymentStateAction struct { ReturnItemID string `json:"returnItemId"` PaymentState ReturnPaymentState `json:"paymentState"` }
OrderSetReturnPaymentStateAction implements the interface OrderUpdateAction
func (OrderSetReturnPaymentStateAction) MarshalJSON ¶
func (obj OrderSetReturnPaymentStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetReturnShipmentStateAction ¶
type OrderSetReturnShipmentStateAction struct { ShipmentState ReturnShipmentState `json:"shipmentState"` ReturnItemID string `json:"returnItemId"` }
OrderSetReturnShipmentStateAction implements the interface OrderUpdateAction
func (OrderSetReturnShipmentStateAction) MarshalJSON ¶
func (obj OrderSetReturnShipmentStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetShippingAddressAction ¶
type OrderSetShippingAddressAction struct {
Address *Address `json:"address,omitempty"`
}
OrderSetShippingAddressAction implements the interface OrderUpdateAction
func (OrderSetShippingAddressAction) MarshalJSON ¶
func (obj OrderSetShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderSetStoreAction ¶
type OrderSetStoreAction struct {
Store *StoreResourceIdentifier `json:"store,omitempty"`
}
OrderSetStoreAction implements the interface OrderUpdateAction
func (OrderSetStoreAction) MarshalJSON ¶
func (obj OrderSetStoreAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderShipmentStateChangedMessage ¶
type OrderShipmentStateChangedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` ShipmentState ShipmentState `json:"shipmentState"` OldShipmentState ShipmentState `json:"oldShipmentState,omitempty"` }
OrderShipmentStateChangedMessage implements the interface Message
func (OrderShipmentStateChangedMessage) MarshalJSON ¶
func (obj OrderShipmentStateChangedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderShipmentStateChangedMessagePayload ¶
type OrderShipmentStateChangedMessagePayload struct { ShipmentState ShipmentState `json:"shipmentState"` OldShipmentState ShipmentState `json:"oldShipmentState,omitempty"` }
OrderShipmentStateChangedMessagePayload implements the interface MessagePayload
func (OrderShipmentStateChangedMessagePayload) MarshalJSON ¶
func (obj OrderShipmentStateChangedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderShippingAddressSetMessage ¶
type OrderShippingAddressSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` OldAddress *Address `json:"oldAddress,omitempty"` Address *Address `json:"address,omitempty"` }
OrderShippingAddressSetMessage implements the interface Message
func (OrderShippingAddressSetMessage) MarshalJSON ¶
func (obj OrderShippingAddressSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderShippingAddressSetMessagePayload ¶
type OrderShippingAddressSetMessagePayload struct { OldAddress *Address `json:"oldAddress,omitempty"` Address *Address `json:"address,omitempty"` }
OrderShippingAddressSetMessagePayload implements the interface MessagePayload
func (OrderShippingAddressSetMessagePayload) MarshalJSON ¶
func (obj OrderShippingAddressSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderShippingInfoSetMessage ¶
type OrderShippingInfoSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` ShippingInfo *ShippingInfo `json:"shippingInfo,omitempty"` OldShippingInfo *ShippingInfo `json:"oldShippingInfo,omitempty"` }
OrderShippingInfoSetMessage implements the interface Message
func (OrderShippingInfoSetMessage) MarshalJSON ¶
func (obj OrderShippingInfoSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderShippingInfoSetMessagePayload ¶
type OrderShippingInfoSetMessagePayload struct { ShippingInfo *ShippingInfo `json:"shippingInfo,omitempty"` OldShippingInfo *ShippingInfo `json:"oldShippingInfo,omitempty"` }
OrderShippingInfoSetMessagePayload implements the interface MessagePayload
func (OrderShippingInfoSetMessagePayload) MarshalJSON ¶
func (obj OrderShippingInfoSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderShippingRateInputSetMessage ¶
type OrderShippingRateInputSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` ShippingRateInput ShippingRateInput `json:"shippingRateInput,omitempty"` OldShippingRateInput ShippingRateInput `json:"oldShippingRateInput,omitempty"` }
OrderShippingRateInputSetMessage implements the interface Message
func (OrderShippingRateInputSetMessage) MarshalJSON ¶
func (obj OrderShippingRateInputSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*OrderShippingRateInputSetMessage) UnmarshalJSON ¶
func (obj *OrderShippingRateInputSetMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderShippingRateInputSetMessagePayload ¶
type OrderShippingRateInputSetMessagePayload struct { ShippingRateInput ShippingRateInput `json:"shippingRateInput,omitempty"` OldShippingRateInput ShippingRateInput `json:"oldShippingRateInput,omitempty"` }
OrderShippingRateInputSetMessagePayload implements the interface MessagePayload
func (OrderShippingRateInputSetMessagePayload) MarshalJSON ¶
func (obj OrderShippingRateInputSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*OrderShippingRateInputSetMessagePayload) UnmarshalJSON ¶
func (obj *OrderShippingRateInputSetMessagePayload) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderState ¶
type OrderState string
OrderState is an enum type
const ( OrderStateOpen OrderState = "Open" OrderStateConfirmed OrderState = "Confirmed" OrderStateComplete OrderState = "Complete" OrderStateCancelled OrderState = "Cancelled" )
Enum values for OrderState
type OrderStateChangedMessage ¶
type OrderStateChangedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` OrderState OrderState `json:"orderState"` OldOrderState OrderState `json:"oldOrderState"` }
OrderStateChangedMessage implements the interface Message
func (OrderStateChangedMessage) MarshalJSON ¶
func (obj OrderStateChangedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderStateChangedMessagePayload ¶
type OrderStateChangedMessagePayload struct { OrderState OrderState `json:"orderState"` OldOrderState OrderState `json:"oldOrderState"` }
OrderStateChangedMessagePayload implements the interface MessagePayload
func (OrderStateChangedMessagePayload) MarshalJSON ¶
func (obj OrderStateChangedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderStateTransitionMessage ¶
type OrderStateTransitionMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` State *StateReference `json:"state"` Force bool `json:"force"` }
OrderStateTransitionMessage implements the interface Message
func (OrderStateTransitionMessage) MarshalJSON ¶
func (obj OrderStateTransitionMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderStateTransitionMessagePayload ¶
type OrderStateTransitionMessagePayload struct { State *StateReference `json:"state"` Force bool `json:"force"` }
OrderStateTransitionMessagePayload implements the interface MessagePayload
func (OrderStateTransitionMessagePayload) MarshalJSON ¶
func (obj OrderStateTransitionMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderStoreSetMessage ¶
type OrderStoreSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Store *StoreKeyReference `json:"store"` }
OrderStoreSetMessage implements the interface Message
func (OrderStoreSetMessage) MarshalJSON ¶
func (obj OrderStoreSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderStoreSetMessagePayload ¶
type OrderStoreSetMessagePayload struct {
Store *StoreKeyReference `json:"store"`
}
OrderStoreSetMessagePayload implements the interface MessagePayload
func (OrderStoreSetMessagePayload) MarshalJSON ¶
func (obj OrderStoreSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderTransitionCustomLineItemStateAction ¶
type OrderTransitionCustomLineItemStateAction struct { ToState *StateResourceIdentifier `json:"toState"` Quantity int `json:"quantity"` FromState *StateResourceIdentifier `json:"fromState"` CustomLineItemID string `json:"customLineItemId"` ActualTransitionDate *time.Time `json:"actualTransitionDate,omitempty"` }
OrderTransitionCustomLineItemStateAction implements the interface OrderUpdateAction
func (OrderTransitionCustomLineItemStateAction) MarshalJSON ¶
func (obj OrderTransitionCustomLineItemStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderTransitionLineItemStateAction ¶
type OrderTransitionLineItemStateAction struct { ToState *StateResourceIdentifier `json:"toState"` Quantity int `json:"quantity"` LineItemID string `json:"lineItemId"` FromState *StateResourceIdentifier `json:"fromState"` ActualTransitionDate *time.Time `json:"actualTransitionDate,omitempty"` }
OrderTransitionLineItemStateAction implements the interface OrderUpdateAction
func (OrderTransitionLineItemStateAction) MarshalJSON ¶
func (obj OrderTransitionLineItemStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderTransitionStateAction ¶
type OrderTransitionStateAction struct { State *StateResourceIdentifier `json:"state"` Force bool `json:"force"` }
OrderTransitionStateAction implements the interface OrderUpdateAction
func (OrderTransitionStateAction) MarshalJSON ¶
func (obj OrderTransitionStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderUpdate ¶
type OrderUpdate struct { Version int `json:"version"` Actions []OrderUpdateAction `json:"actions"` }
OrderUpdate is a standalone struct
func (*OrderUpdate) UnmarshalJSON ¶
func (obj *OrderUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type OrderUpdateAction ¶
type OrderUpdateAction interface{}
OrderUpdateAction uses action as discriminator attribute
type OrderUpdateItemShippingAddressAction ¶
type OrderUpdateItemShippingAddressAction struct {
Address *Address `json:"address"`
}
OrderUpdateItemShippingAddressAction implements the interface OrderUpdateAction
func (OrderUpdateItemShippingAddressAction) MarshalJSON ¶
func (obj OrderUpdateItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderUpdateSyncInfoAction ¶
type OrderUpdateSyncInfoAction struct { SyncedAt *time.Time `json:"syncedAt,omitempty"` ExternalID string `json:"externalId,omitempty"` Channel *ChannelResourceIdentifier `json:"channel"` }
OrderUpdateSyncInfoAction implements the interface OrderUpdateAction
func (OrderUpdateSyncInfoAction) MarshalJSON ¶
func (obj OrderUpdateSyncInfoAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type OrderUpdateWithIDInput ¶
type OrderUpdateWithIDInput struct { ID string Version int Actions []OrderUpdateAction }
OrderUpdateWithIDInput is input for function OrderUpdateWithID
func (*OrderUpdateWithIDInput) Validate ¶
func (input *OrderUpdateWithIDInput) Validate() error
type OrderUpdateWithOrderNumberInput ¶
type OrderUpdateWithOrderNumberInput struct { OrderNumber string Version int Actions []OrderUpdateAction }
OrderUpdateWithOrderNumberInput is input for function OrderUpdateWithOrderNumber
func (*OrderUpdateWithOrderNumberInput) Validate ¶
func (input *OrderUpdateWithOrderNumberInput) Validate() error
type OutOfStockError ¶
type OutOfStockError struct { Message string `json:"message"` Skus []string `json:"skus"` LineItems []string `json:"lineItems"` }
OutOfStockError implements the interface ErrorObject
func (OutOfStockError) Error ¶
func (obj OutOfStockError) Error() string
func (OutOfStockError) MarshalJSON ¶
func (obj OutOfStockError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PagedQueryResponse ¶
type PagedQueryResponse struct { Total int `json:"total,omitempty"` Results []BaseResource `json:"results"` Offset int `json:"offset"` Meta interface{} `json:"meta,omitempty"` Limit int `json:"limit"` Facets *FacetResults `json:"facets,omitempty"` Count int `json:"count"` }
PagedQueryResponse is a standalone struct
type Parcel ¶
type Parcel struct { TrackingData *TrackingData `json:"trackingData,omitempty"` Measurements *ParcelMeasurements `json:"measurements,omitempty"` Items []DeliveryItem `json:"items,omitempty"` ID string `json:"id"` CreatedAt time.Time `json:"createdAt"` }
Parcel is a standalone struct
type ParcelAddedToDeliveryMessage ¶
type ParcelAddedToDeliveryMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Parcel *Parcel `json:"parcel"` Delivery *Delivery `json:"delivery"` }
ParcelAddedToDeliveryMessage implements the interface Message
func (ParcelAddedToDeliveryMessage) MarshalJSON ¶
func (obj ParcelAddedToDeliveryMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ParcelAddedToDeliveryMessagePayload ¶
type ParcelAddedToDeliveryMessagePayload struct { Parcel *Parcel `json:"parcel"` Delivery *Delivery `json:"delivery"` }
ParcelAddedToDeliveryMessagePayload implements the interface MessagePayload
func (ParcelAddedToDeliveryMessagePayload) MarshalJSON ¶
func (obj ParcelAddedToDeliveryMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ParcelDraft ¶
type ParcelDraft struct { TrackingData *TrackingData `json:"trackingData,omitempty"` Measurements *ParcelMeasurements `json:"measurements,omitempty"` Items []DeliveryItem `json:"items,omitempty"` }
ParcelDraft is a standalone struct
type ParcelItemsUpdatedMessage ¶
type ParcelItemsUpdatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` ParcelID string `json:"parcelId"` OldItems []DeliveryItem `json:"oldItems"` Items []DeliveryItem `json:"items"` DeliveryID string `json:"deliveryId,omitempty"` }
ParcelItemsUpdatedMessage implements the interface Message
func (ParcelItemsUpdatedMessage) MarshalJSON ¶
func (obj ParcelItemsUpdatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ParcelItemsUpdatedMessagePayload ¶
type ParcelItemsUpdatedMessagePayload struct { ParcelID string `json:"parcelId"` OldItems []DeliveryItem `json:"oldItems"` Items []DeliveryItem `json:"items"` DeliveryID string `json:"deliveryId,omitempty"` }
ParcelItemsUpdatedMessagePayload implements the interface MessagePayload
func (ParcelItemsUpdatedMessagePayload) MarshalJSON ¶
func (obj ParcelItemsUpdatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ParcelMeasurements ¶
type ParcelMeasurements struct { WidthInMillimeter float64 `json:"widthInMillimeter,omitempty"` WeightInGram float64 `json:"weightInGram,omitempty"` LengthInMillimeter float64 `json:"lengthInMillimeter,omitempty"` HeightInMillimeter float64 `json:"heightInMillimeter,omitempty"` }
ParcelMeasurements is a standalone struct
type ParcelMeasurementsUpdatedMessage ¶
type ParcelMeasurementsUpdatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` ParcelID string `json:"parcelId"` Measurements *ParcelMeasurements `json:"measurements,omitempty"` DeliveryID string `json:"deliveryId"` }
ParcelMeasurementsUpdatedMessage implements the interface Message
func (ParcelMeasurementsUpdatedMessage) MarshalJSON ¶
func (obj ParcelMeasurementsUpdatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ParcelMeasurementsUpdatedMessagePayload ¶
type ParcelMeasurementsUpdatedMessagePayload struct { ParcelID string `json:"parcelId"` Measurements *ParcelMeasurements `json:"measurements,omitempty"` DeliveryID string `json:"deliveryId"` }
ParcelMeasurementsUpdatedMessagePayload implements the interface MessagePayload
func (ParcelMeasurementsUpdatedMessagePayload) MarshalJSON ¶
func (obj ParcelMeasurementsUpdatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ParcelRemovedFromDeliveryMessage ¶
type ParcelRemovedFromDeliveryMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Parcel *Parcel `json:"parcel"` DeliveryID string `json:"deliveryId"` }
ParcelRemovedFromDeliveryMessage implements the interface Message
func (ParcelRemovedFromDeliveryMessage) MarshalJSON ¶
func (obj ParcelRemovedFromDeliveryMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ParcelRemovedFromDeliveryMessagePayload ¶
type ParcelRemovedFromDeliveryMessagePayload struct { Parcel *Parcel `json:"parcel"` DeliveryID string `json:"deliveryId"` }
ParcelRemovedFromDeliveryMessagePayload implements the interface MessagePayload
func (ParcelRemovedFromDeliveryMessagePayload) MarshalJSON ¶
func (obj ParcelRemovedFromDeliveryMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ParcelTrackingDataUpdatedMessage ¶
type ParcelTrackingDataUpdatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` TrackingData *TrackingData `json:"trackingData,omitempty"` ParcelID string `json:"parcelId"` DeliveryID string `json:"deliveryId"` }
ParcelTrackingDataUpdatedMessage implements the interface Message
func (ParcelTrackingDataUpdatedMessage) MarshalJSON ¶
func (obj ParcelTrackingDataUpdatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ParcelTrackingDataUpdatedMessagePayload ¶
type ParcelTrackingDataUpdatedMessagePayload struct { TrackingData *TrackingData `json:"trackingData,omitempty"` ParcelID string `json:"parcelId"` DeliveryID string `json:"deliveryId"` }
ParcelTrackingDataUpdatedMessagePayload implements the interface MessagePayload
func (ParcelTrackingDataUpdatedMessagePayload) MarshalJSON ¶
func (obj ParcelTrackingDataUpdatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PayloadNotIncluded ¶
type PayloadNotIncluded struct { Reason string `json:"reason"` PayloadType string `json:"payloadType"` }
PayloadNotIncluded is a standalone struct
type Payment ¶
type Payment struct { Version int `json:"version"` Transactions []Transaction `json:"transactions"` PaymentStatus *PaymentStatus `json:"paymentStatus"` PaymentMethodInfo *PaymentMethodInfo `json:"paymentMethodInfo"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` InterfaceInteractions []CustomFields `json:"interfaceInteractions"` InterfaceID string `json:"interfaceId,omitempty"` ID string `json:"id"` ExternalID string `json:"externalId,omitempty"` Customer *CustomerReference `json:"customer,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` AuthorizedUntil string `json:"authorizedUntil,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` AmountRefunded TypedMoney `json:"amountRefunded,omitempty"` AmountPlanned TypedMoney `json:"amountPlanned"` AmountPaid TypedMoney `json:"amountPaid,omitempty"` AmountAuthorized TypedMoney `json:"amountAuthorized,omitempty"` }
Payment is of type BaseResource
func (*Payment) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type PaymentAddInterfaceInteractionAction ¶
type PaymentAddInterfaceInteractionAction struct { Type *TypeResourceIdentifier `json:"type"` Fields *FieldContainer `json:"fields,omitempty"` }
PaymentAddInterfaceInteractionAction implements the interface PaymentUpdateAction
func (PaymentAddInterfaceInteractionAction) MarshalJSON ¶
func (obj PaymentAddInterfaceInteractionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentAddTransactionAction ¶
type PaymentAddTransactionAction struct {
Transaction *TransactionDraft `json:"transaction"`
}
PaymentAddTransactionAction implements the interface PaymentUpdateAction
func (PaymentAddTransactionAction) MarshalJSON ¶
func (obj PaymentAddTransactionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentChangeAmountPlannedAction ¶
type PaymentChangeAmountPlannedAction struct {
Amount *Money `json:"amount"`
}
PaymentChangeAmountPlannedAction implements the interface PaymentUpdateAction
func (PaymentChangeAmountPlannedAction) MarshalJSON ¶
func (obj PaymentChangeAmountPlannedAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentChangeTransactionInteractionIDAction ¶
type PaymentChangeTransactionInteractionIDAction struct { TransactionID string `json:"transactionId"` InteractionID string `json:"interactionId"` }
PaymentChangeTransactionInteractionIDAction implements the interface PaymentUpdateAction
func (PaymentChangeTransactionInteractionIDAction) MarshalJSON ¶
func (obj PaymentChangeTransactionInteractionIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentChangeTransactionStateAction ¶
type PaymentChangeTransactionStateAction struct { TransactionID string `json:"transactionId"` State TransactionState `json:"state"` }
PaymentChangeTransactionStateAction implements the interface PaymentUpdateAction
func (PaymentChangeTransactionStateAction) MarshalJSON ¶
func (obj PaymentChangeTransactionStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentChangeTransactionTimestampAction ¶
type PaymentChangeTransactionTimestampAction struct { TransactionID string `json:"transactionId"` Timestamp time.Time `json:"timestamp"` }
PaymentChangeTransactionTimestampAction implements the interface PaymentUpdateAction
func (PaymentChangeTransactionTimestampAction) MarshalJSON ¶
func (obj PaymentChangeTransactionTimestampAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentCreatedMessage ¶
type PaymentCreatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Payment *Payment `json:"payment"` }
PaymentCreatedMessage implements the interface Message
func (PaymentCreatedMessage) MarshalJSON ¶
func (obj PaymentCreatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentCreatedMessagePayload ¶
type PaymentCreatedMessagePayload struct {
Payment *Payment `json:"payment"`
}
PaymentCreatedMessagePayload implements the interface MessagePayload
func (PaymentCreatedMessagePayload) MarshalJSON ¶
func (obj PaymentCreatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentDraft ¶
type PaymentDraft struct { Transactions []TransactionDraft `json:"transactions,omitempty"` PaymentStatus *PaymentStatusDraft `json:"paymentStatus,omitempty"` PaymentMethodInfo *PaymentMethodInfo `json:"paymentMethodInfo,omitempty"` Key string `json:"key,omitempty"` InterfaceInteractions []CustomFieldsDraft `json:"interfaceInteractions,omitempty"` InterfaceID string `json:"interfaceId,omitempty"` ExternalID string `json:"externalId,omitempty"` Customer *CustomerResourceIdentifier `json:"customer,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AuthorizedUntil string `json:"authorizedUntil,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` AmountRefunded *Money `json:"amountRefunded,omitempty"` AmountPlanned *Money `json:"amountPlanned"` AmountPaid *Money `json:"amountPaid,omitempty"` AmountAuthorized *Money `json:"amountAuthorized,omitempty"` }
PaymentDraft is a standalone struct
type PaymentInfo ¶
type PaymentInfo struct {
Payments []PaymentReference `json:"payments"`
}
PaymentInfo is a standalone struct
type PaymentInteractionAddedMessage ¶
type PaymentInteractionAddedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Interaction *CustomFields `json:"interaction"` }
PaymentInteractionAddedMessage implements the interface Message
func (PaymentInteractionAddedMessage) MarshalJSON ¶
func (obj PaymentInteractionAddedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentInteractionAddedMessagePayload ¶
type PaymentInteractionAddedMessagePayload struct {
Interaction *CustomFields `json:"interaction"`
}
PaymentInteractionAddedMessagePayload implements the interface MessagePayload
func (PaymentInteractionAddedMessagePayload) MarshalJSON ¶
func (obj PaymentInteractionAddedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentMethodInfo ¶
type PaymentMethodInfo struct { PaymentInterface string `json:"paymentInterface,omitempty"` Name *LocalizedString `json:"name,omitempty"` Method string `json:"method,omitempty"` }
PaymentMethodInfo is a standalone struct
type PaymentPagedQueryResponse ¶
type PaymentPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Payment `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
PaymentPagedQueryResponse is a standalone struct
type PaymentReference ¶
PaymentReference implements the interface Reference
func (PaymentReference) MarshalJSON ¶
func (obj PaymentReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentResourceIdentifier ¶
type PaymentResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
PaymentResourceIdentifier implements the interface ResourceIdentifier
func (PaymentResourceIdentifier) MarshalJSON ¶
func (obj PaymentResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetAmountPaidAction ¶
type PaymentSetAmountPaidAction struct {
Amount *Money `json:"amount,omitempty"`
}
PaymentSetAmountPaidAction implements the interface PaymentUpdateAction
func (PaymentSetAmountPaidAction) MarshalJSON ¶
func (obj PaymentSetAmountPaidAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetAmountRefundedAction ¶
type PaymentSetAmountRefundedAction struct {
Amount *Money `json:"amount,omitempty"`
}
PaymentSetAmountRefundedAction implements the interface PaymentUpdateAction
func (PaymentSetAmountRefundedAction) MarshalJSON ¶
func (obj PaymentSetAmountRefundedAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetAnonymousIDAction ¶
type PaymentSetAnonymousIDAction struct {
AnonymousID string `json:"anonymousId,omitempty"`
}
PaymentSetAnonymousIDAction implements the interface PaymentUpdateAction
func (PaymentSetAnonymousIDAction) MarshalJSON ¶
func (obj PaymentSetAnonymousIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetAuthorizationAction ¶
type PaymentSetAuthorizationAction struct { Until *time.Time `json:"until,omitempty"` Amount *Money `json:"amount,omitempty"` }
PaymentSetAuthorizationAction implements the interface PaymentUpdateAction
func (PaymentSetAuthorizationAction) MarshalJSON ¶
func (obj PaymentSetAuthorizationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetCustomFieldAction ¶
type PaymentSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
PaymentSetCustomFieldAction implements the interface PaymentUpdateAction
func (PaymentSetCustomFieldAction) MarshalJSON ¶
func (obj PaymentSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetCustomTypeAction ¶
type PaymentSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
PaymentSetCustomTypeAction implements the interface PaymentUpdateAction
func (PaymentSetCustomTypeAction) MarshalJSON ¶
func (obj PaymentSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetCustomerAction ¶
type PaymentSetCustomerAction struct {
Customer *CustomerResourceIdentifier `json:"customer,omitempty"`
}
PaymentSetCustomerAction implements the interface PaymentUpdateAction
func (PaymentSetCustomerAction) MarshalJSON ¶
func (obj PaymentSetCustomerAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetExternalIDAction ¶
type PaymentSetExternalIDAction struct {
ExternalID string `json:"externalId,omitempty"`
}
PaymentSetExternalIDAction implements the interface PaymentUpdateAction
func (PaymentSetExternalIDAction) MarshalJSON ¶
func (obj PaymentSetExternalIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetInterfaceIDAction ¶
type PaymentSetInterfaceIDAction struct {
InterfaceID string `json:"interfaceId"`
}
PaymentSetInterfaceIDAction implements the interface PaymentUpdateAction
func (PaymentSetInterfaceIDAction) MarshalJSON ¶
func (obj PaymentSetInterfaceIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetKeyAction ¶
type PaymentSetKeyAction struct {
Key string `json:"key,omitempty"`
}
PaymentSetKeyAction implements the interface PaymentUpdateAction
func (PaymentSetKeyAction) MarshalJSON ¶
func (obj PaymentSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetMethodInfoInterfaceAction ¶
type PaymentSetMethodInfoInterfaceAction struct {
Interface string `json:"interface"`
}
PaymentSetMethodInfoInterfaceAction implements the interface PaymentUpdateAction
func (PaymentSetMethodInfoInterfaceAction) MarshalJSON ¶
func (obj PaymentSetMethodInfoInterfaceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetMethodInfoMethodAction ¶
type PaymentSetMethodInfoMethodAction struct {
Method string `json:"method,omitempty"`
}
PaymentSetMethodInfoMethodAction implements the interface PaymentUpdateAction
func (PaymentSetMethodInfoMethodAction) MarshalJSON ¶
func (obj PaymentSetMethodInfoMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetMethodInfoNameAction ¶
type PaymentSetMethodInfoNameAction struct {
Name *LocalizedString `json:"name,omitempty"`
}
PaymentSetMethodInfoNameAction implements the interface PaymentUpdateAction
func (PaymentSetMethodInfoNameAction) MarshalJSON ¶
func (obj PaymentSetMethodInfoNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetStatusInterfaceCodeAction ¶
type PaymentSetStatusInterfaceCodeAction struct {
InterfaceCode string `json:"interfaceCode,omitempty"`
}
PaymentSetStatusInterfaceCodeAction implements the interface PaymentUpdateAction
func (PaymentSetStatusInterfaceCodeAction) MarshalJSON ¶
func (obj PaymentSetStatusInterfaceCodeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentSetStatusInterfaceTextAction ¶
type PaymentSetStatusInterfaceTextAction struct {
InterfaceText string `json:"interfaceText"`
}
PaymentSetStatusInterfaceTextAction implements the interface PaymentUpdateAction
func (PaymentSetStatusInterfaceTextAction) MarshalJSON ¶
func (obj PaymentSetStatusInterfaceTextAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentState ¶
type PaymentState string
PaymentState is an enum type
const ( PaymentStateBalanceDue PaymentState = "BalanceDue" PaymentStateFailed PaymentState = "Failed" PaymentStatePending PaymentState = "Pending" PaymentStateCreditOwed PaymentState = "CreditOwed" PaymentStatePaid PaymentState = "Paid" )
Enum values for PaymentState
type PaymentStatus ¶
type PaymentStatus struct { State *StateReference `json:"state,omitempty"` InterfaceText string `json:"interfaceText,omitempty"` InterfaceCode string `json:"interfaceCode,omitempty"` }
PaymentStatus is a standalone struct
type PaymentStatusDraft ¶
type PaymentStatusDraft struct { State *StateResourceIdentifier `json:"state,omitempty"` InterfaceText string `json:"interfaceText,omitempty"` InterfaceCode string `json:"interfaceCode,omitempty"` }
PaymentStatusDraft is a standalone struct
type PaymentStatusInterfaceCodeSetMessage ¶
type PaymentStatusInterfaceCodeSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` PaymentID string `json:"paymentId"` InterfaceCode string `json:"interfaceCode"` }
PaymentStatusInterfaceCodeSetMessage implements the interface Message
func (PaymentStatusInterfaceCodeSetMessage) MarshalJSON ¶
func (obj PaymentStatusInterfaceCodeSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentStatusInterfaceCodeSetMessagePayload ¶
type PaymentStatusInterfaceCodeSetMessagePayload struct { PaymentID string `json:"paymentId"` InterfaceCode string `json:"interfaceCode"` }
PaymentStatusInterfaceCodeSetMessagePayload implements the interface MessagePayload
func (PaymentStatusInterfaceCodeSetMessagePayload) MarshalJSON ¶
func (obj PaymentStatusInterfaceCodeSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentStatusStateTransitionMessage ¶
type PaymentStatusStateTransitionMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` State *StateReference `json:"state"` Force bool `json:"force"` }
PaymentStatusStateTransitionMessage implements the interface Message
func (PaymentStatusStateTransitionMessage) MarshalJSON ¶
func (obj PaymentStatusStateTransitionMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentStatusStateTransitionMessagePayload ¶
type PaymentStatusStateTransitionMessagePayload struct { State *StateReference `json:"state"` Force bool `json:"force"` }
PaymentStatusStateTransitionMessagePayload implements the interface MessagePayload
func (PaymentStatusStateTransitionMessagePayload) MarshalJSON ¶
func (obj PaymentStatusStateTransitionMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentTransactionAddedMessage ¶
type PaymentTransactionAddedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Transaction *Transaction `json:"transaction"` }
PaymentTransactionAddedMessage implements the interface Message
func (PaymentTransactionAddedMessage) MarshalJSON ¶
func (obj PaymentTransactionAddedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentTransactionAddedMessagePayload ¶
type PaymentTransactionAddedMessagePayload struct {
Transaction *Transaction `json:"transaction"`
}
PaymentTransactionAddedMessagePayload implements the interface MessagePayload
func (PaymentTransactionAddedMessagePayload) MarshalJSON ¶
func (obj PaymentTransactionAddedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentTransactionStateChangedMessage ¶
type PaymentTransactionStateChangedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` TransactionID string `json:"transactionId"` State TransactionState `json:"state"` }
PaymentTransactionStateChangedMessage implements the interface Message
func (PaymentTransactionStateChangedMessage) MarshalJSON ¶
func (obj PaymentTransactionStateChangedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentTransactionStateChangedMessagePayload ¶
type PaymentTransactionStateChangedMessagePayload struct { TransactionID string `json:"transactionId"` State TransactionState `json:"state"` }
PaymentTransactionStateChangedMessagePayload implements the interface MessagePayload
func (PaymentTransactionStateChangedMessagePayload) MarshalJSON ¶
func (obj PaymentTransactionStateChangedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentTransitionStateAction ¶
type PaymentTransitionStateAction struct { State *StateResourceIdentifier `json:"state"` Force bool `json:"force"` }
PaymentTransitionStateAction implements the interface PaymentUpdateAction
func (PaymentTransitionStateAction) MarshalJSON ¶
func (obj PaymentTransitionStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PaymentUpdate ¶
type PaymentUpdate struct { Version int `json:"version"` Actions []PaymentUpdateAction `json:"actions"` }
PaymentUpdate is a standalone struct
func (*PaymentUpdate) UnmarshalJSON ¶
func (obj *PaymentUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type PaymentUpdateAction ¶
type PaymentUpdateAction interface{}
PaymentUpdateAction uses action as discriminator attribute
type PaymentUpdateWithIDInput ¶
type PaymentUpdateWithIDInput struct { ID string Version int Actions []PaymentUpdateAction }
PaymentUpdateWithIDInput is input for function PaymentUpdateWithID
func (*PaymentUpdateWithIDInput) Validate ¶
func (input *PaymentUpdateWithIDInput) Validate() error
type PaymentUpdateWithKeyInput ¶
type PaymentUpdateWithKeyInput struct { Key string Version int Actions []PaymentUpdateAction }
PaymentUpdateWithKeyInput is input for function PaymentUpdateWithKey
func (*PaymentUpdateWithKeyInput) Validate ¶
func (input *PaymentUpdateWithKeyInput) Validate() error
type Price ¶
type Price struct { Value TypedMoney `json:"value"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` Tiers []PriceTier `json:"tiers,omitempty"` ID string `json:"id"` Discounted *DiscountedPrice `json:"discounted,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` Custom *CustomFields `json:"custom,omitempty"` Country CountryCode `json:"country,omitempty"` Channel *ChannelReference `json:"channel,omitempty"` }
Price is a standalone struct
func (*Price) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type PriceChangedError ¶
type PriceChangedError struct { Message string `json:"message"` Shipping bool `json:"shipping"` LineItems []string `json:"lineItems"` }
PriceChangedError implements the interface ErrorObject
func (PriceChangedError) Error ¶
func (obj PriceChangedError) Error() string
func (PriceChangedError) MarshalJSON ¶
func (obj PriceChangedError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type PriceDraft ¶
type PriceDraft struct { Value *Money `json:"value"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` Tiers []PriceTierDraft `json:"tiers,omitempty"` Discounted *DiscountedPrice `json:"discounted,omitempty"` CustomerGroup *CustomerGroupResourceIdentifier `json:"customerGroup,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` Country CountryCode `json:"country,omitempty"` Channel *ChannelResourceIdentifier `json:"channel,omitempty"` }
PriceDraft is a standalone struct
type PriceFunction ¶
type PriceFunction struct { Function string `json:"function"` CurrencyCode CurrencyCode `json:"currencyCode"` }
PriceFunction is a standalone struct
type PriceTier ¶
type PriceTier struct { Value TypedMoney `json:"value"` MinimumQuantity int `json:"minimumQuantity"` }
PriceTier is a standalone struct
func (*PriceTier) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type PriceTierDraft ¶
type PriceTierDraft struct { Value *Money `json:"value"` MinimumQuantity int `json:"minimumQuantity"` }
PriceTierDraft is a standalone struct
type Product ¶
type Product struct { Version int `json:"version"` TaxCategory *TaxCategoryReference `json:"taxCategory,omitempty"` State *StateReference `json:"state,omitempty"` ReviewRatingStatistics *ReviewRatingStatistics `json:"reviewRatingStatistics,omitempty"` ProductType *ProductTypeReference `json:"productType"` MasterData *ProductCatalogData `json:"masterData"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
Product is of type BaseResource
type ProductAddAssetAction ¶
type ProductAddAssetAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Position float64 `json:"position,omitempty"` Asset *AssetDraft `json:"asset"` }
ProductAddAssetAction implements the interface ProductUpdateAction
func (ProductAddAssetAction) MarshalJSON ¶
func (obj ProductAddAssetAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductAddExternalImageAction ¶
type ProductAddExternalImageAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Image *Image `json:"image"` }
ProductAddExternalImageAction implements the interface ProductUpdateAction
func (ProductAddExternalImageAction) MarshalJSON ¶
func (obj ProductAddExternalImageAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductAddPriceAction ¶
type ProductAddPriceAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Price *PriceDraft `json:"price"` }
ProductAddPriceAction implements the interface ProductUpdateAction
func (ProductAddPriceAction) MarshalJSON ¶
func (obj ProductAddPriceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductAddToCategoryAction ¶
type ProductAddToCategoryAction struct { Staged bool `json:"staged"` OrderHint string `json:"orderHint,omitempty"` Category *CategoryResourceIdentifier `json:"category"` }
ProductAddToCategoryAction implements the interface ProductUpdateAction
func (ProductAddToCategoryAction) MarshalJSON ¶
func (obj ProductAddToCategoryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductAddVariantAction ¶
type ProductAddVariantAction struct { Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Prices []PriceDraft `json:"prices,omitempty"` Key string `json:"key,omitempty"` Images []Image `json:"images,omitempty"` Attributes []Attribute `json:"attributes,omitempty"` Assets []Asset `json:"assets,omitempty"` }
ProductAddVariantAction implements the interface ProductUpdateAction
func (ProductAddVariantAction) MarshalJSON ¶
func (obj ProductAddVariantAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductAddedToCategoryMessage ¶
type ProductAddedToCategoryMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Staged bool `json:"staged"` Category *CategoryReference `json:"category"` }
ProductAddedToCategoryMessage implements the interface Message
func (ProductAddedToCategoryMessage) MarshalJSON ¶
func (obj ProductAddedToCategoryMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductAddedToCategoryMessagePayload ¶
type ProductAddedToCategoryMessagePayload struct { Staged bool `json:"staged"` Category *CategoryReference `json:"category"` }
ProductAddedToCategoryMessagePayload implements the interface MessagePayload
func (ProductAddedToCategoryMessagePayload) MarshalJSON ¶
func (obj ProductAddedToCategoryMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductCatalogData ¶
type ProductCatalogData struct { Staged *ProductData `json:"staged"` Published bool `json:"published"` HasStagedChanges bool `json:"hasStagedChanges"` Current *ProductData `json:"current"` }
ProductCatalogData is a standalone struct
type ProductChangeAssetNameAction ¶
type ProductChangeAssetNameAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Name *LocalizedString `json:"name"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
ProductChangeAssetNameAction implements the interface ProductUpdateAction
func (ProductChangeAssetNameAction) MarshalJSON ¶
func (obj ProductChangeAssetNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductChangeAssetOrderAction ¶
type ProductChangeAssetOrderAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` AssetOrder []string `json:"assetOrder"` }
ProductChangeAssetOrderAction implements the interface ProductUpdateAction
func (ProductChangeAssetOrderAction) MarshalJSON ¶
func (obj ProductChangeAssetOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductChangeMasterVariantAction ¶
type ProductChangeMasterVariantAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` }
ProductChangeMasterVariantAction implements the interface ProductUpdateAction
func (ProductChangeMasterVariantAction) MarshalJSON ¶
func (obj ProductChangeMasterVariantAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductChangeNameAction ¶
type ProductChangeNameAction struct { Staged bool `json:"staged"` Name *LocalizedString `json:"name"` }
ProductChangeNameAction implements the interface ProductUpdateAction
func (ProductChangeNameAction) MarshalJSON ¶
func (obj ProductChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductChangePriceAction ¶
type ProductChangePriceAction struct { Staged bool `json:"staged"` PriceID string `json:"priceId"` Price *PriceDraft `json:"price"` }
ProductChangePriceAction implements the interface ProductUpdateAction
func (ProductChangePriceAction) MarshalJSON ¶
func (obj ProductChangePriceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductChangeSlugAction ¶
type ProductChangeSlugAction struct { Staged bool `json:"staged"` Slug *LocalizedString `json:"slug"` }
ProductChangeSlugAction implements the interface ProductUpdateAction
func (ProductChangeSlugAction) MarshalJSON ¶
func (obj ProductChangeSlugAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductCreatedMessage ¶
type ProductCreatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` ProductProjection *ProductProjection `json:"productProjection"` }
ProductCreatedMessage implements the interface Message
func (ProductCreatedMessage) MarshalJSON ¶
func (obj ProductCreatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductCreatedMessagePayload ¶
type ProductCreatedMessagePayload struct {
ProductProjection *ProductProjection `json:"productProjection"`
}
ProductCreatedMessagePayload implements the interface MessagePayload
func (ProductCreatedMessagePayload) MarshalJSON ¶
func (obj ProductCreatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductData ¶
type ProductData struct { Variants []ProductVariant `json:"variants"` Slug *LocalizedString `json:"slug"` SearchKeywords *SearchKeywords `json:"searchKeywords"` Name *LocalizedString `json:"name"` MetaTitle *LocalizedString `json:"metaTitle,omitempty"` MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` MetaDescription *LocalizedString `json:"metaDescription,omitempty"` MasterVariant *ProductVariant `json:"masterVariant"` Description *LocalizedString `json:"description,omitempty"` CategoryOrderHints *CategoryOrderHints `json:"categoryOrderHints,omitempty"` Categories []CategoryReference `json:"categories"` }
ProductData is a standalone struct
type ProductDeletedMessage ¶
type ProductDeletedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` RemovedImageUrls []string `json:"removedImageUrls"` CurrentProjection *ProductProjection `json:"currentProjection"` }
ProductDeletedMessage implements the interface Message
func (ProductDeletedMessage) MarshalJSON ¶
func (obj ProductDeletedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDeletedMessagePayload ¶
type ProductDeletedMessagePayload struct { RemovedImageUrls []string `json:"removedImageUrls"` CurrentProjection *ProductProjection `json:"currentProjection"` }
ProductDeletedMessagePayload implements the interface MessagePayload
func (ProductDeletedMessagePayload) MarshalJSON ¶
func (obj ProductDeletedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscount ¶
type ProductDiscount struct { Version int `json:"version"` Value ProductDiscountValue `json:"value"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` SortOrder string `json:"sortOrder"` References []Reference `json:"references"` Predicate string `json:"predicate"` Name *LocalizedString `json:"name"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` IsActive bool `json:"isActive"` ID string `json:"id"` Description *LocalizedString `json:"description,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
ProductDiscount is of type BaseResource
func (*ProductDiscount) UnmarshalJSON ¶
func (obj *ProductDiscount) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProductDiscountChangeIsActiveAction ¶
type ProductDiscountChangeIsActiveAction struct {
IsActive bool `json:"isActive"`
}
ProductDiscountChangeIsActiveAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountChangeIsActiveAction) MarshalJSON ¶
func (obj ProductDiscountChangeIsActiveAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountChangeNameAction ¶
type ProductDiscountChangeNameAction struct {
Name *LocalizedString `json:"name"`
}
ProductDiscountChangeNameAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountChangeNameAction) MarshalJSON ¶
func (obj ProductDiscountChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountChangePredicateAction ¶
type ProductDiscountChangePredicateAction struct {
Predicate string `json:"predicate"`
}
ProductDiscountChangePredicateAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountChangePredicateAction) MarshalJSON ¶
func (obj ProductDiscountChangePredicateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountChangeSortOrderAction ¶
type ProductDiscountChangeSortOrderAction struct {
SortOrder string `json:"sortOrder"`
}
ProductDiscountChangeSortOrderAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountChangeSortOrderAction) MarshalJSON ¶
func (obj ProductDiscountChangeSortOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountChangeValueAction ¶
type ProductDiscountChangeValueAction struct {
Value ProductDiscountValueDraft `json:"value"`
}
ProductDiscountChangeValueAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountChangeValueAction) MarshalJSON ¶
func (obj ProductDiscountChangeValueAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ProductDiscountChangeValueAction) UnmarshalJSON ¶
func (obj *ProductDiscountChangeValueAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProductDiscountDraft ¶
type ProductDiscountDraft struct { Value ProductDiscountValueDraft `json:"value"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` SortOrder string `json:"sortOrder"` Predicate string `json:"predicate"` Name *LocalizedString `json:"name"` Key string `json:"key,omitempty"` IsActive bool `json:"isActive"` Description *LocalizedString `json:"description,omitempty"` }
ProductDiscountDraft is a standalone struct
func (*ProductDiscountDraft) UnmarshalJSON ¶
func (obj *ProductDiscountDraft) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProductDiscountMatchQuery ¶
type ProductDiscountMatchQuery struct { VariantID float64 `json:"variantId"` Staged bool `json:"staged"` ProductID string `json:"productId"` Price *QueryPrice `json:"price"` }
ProductDiscountMatchQuery is a standalone struct
type ProductDiscountPagedQueryResponse ¶
type ProductDiscountPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []ProductDiscount `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
ProductDiscountPagedQueryResponse is a standalone struct
type ProductDiscountReference ¶
type ProductDiscountReference struct { ID string `json:"id"` Obj *ProductDiscount `json:"obj,omitempty"` }
ProductDiscountReference implements the interface Reference
func (ProductDiscountReference) MarshalJSON ¶
func (obj ProductDiscountReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountResourceIdentifier ¶
type ProductDiscountResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
ProductDiscountResourceIdentifier implements the interface ResourceIdentifier
func (ProductDiscountResourceIdentifier) MarshalJSON ¶
func (obj ProductDiscountResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountSetDescriptionAction ¶
type ProductDiscountSetDescriptionAction struct {
Description *LocalizedString `json:"description,omitempty"`
}
ProductDiscountSetDescriptionAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountSetDescriptionAction) MarshalJSON ¶
func (obj ProductDiscountSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountSetKeyAction ¶
type ProductDiscountSetKeyAction struct {
Key string `json:"key,omitempty"`
}
ProductDiscountSetKeyAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountSetKeyAction) MarshalJSON ¶
func (obj ProductDiscountSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountSetValidFromAction ¶
ProductDiscountSetValidFromAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountSetValidFromAction) MarshalJSON ¶
func (obj ProductDiscountSetValidFromAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountSetValidFromAndUntilAction ¶
type ProductDiscountSetValidFromAndUntilAction struct { ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` }
ProductDiscountSetValidFromAndUntilAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountSetValidFromAndUntilAction) MarshalJSON ¶
func (obj ProductDiscountSetValidFromAndUntilAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountSetValidUntilAction ¶
type ProductDiscountSetValidUntilAction struct {
ValidUntil *time.Time `json:"validUntil,omitempty"`
}
ProductDiscountSetValidUntilAction implements the interface ProductDiscountUpdateAction
func (ProductDiscountSetValidUntilAction) MarshalJSON ¶
func (obj ProductDiscountSetValidUntilAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountUpdate ¶
type ProductDiscountUpdate struct { Version int `json:"version"` Actions []ProductDiscountUpdateAction `json:"actions"` }
ProductDiscountUpdate is a standalone struct
func (*ProductDiscountUpdate) UnmarshalJSON ¶
func (obj *ProductDiscountUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProductDiscountUpdateAction ¶
type ProductDiscountUpdateAction interface{}
ProductDiscountUpdateAction uses action as discriminator attribute
type ProductDiscountUpdateWithIDInput ¶
type ProductDiscountUpdateWithIDInput struct { ID string Version int Actions []ProductDiscountUpdateAction }
ProductDiscountUpdateWithIDInput is input for function ProductDiscountUpdateWithID
func (*ProductDiscountUpdateWithIDInput) Validate ¶
func (input *ProductDiscountUpdateWithIDInput) Validate() error
type ProductDiscountUpdateWithKeyInput ¶
type ProductDiscountUpdateWithKeyInput struct { Key string Version int Actions []ProductDiscountUpdateAction }
ProductDiscountUpdateWithKeyInput is input for function ProductDiscountUpdateWithKey
func (*ProductDiscountUpdateWithKeyInput) Validate ¶
func (input *ProductDiscountUpdateWithKeyInput) Validate() error
type ProductDiscountValue ¶
type ProductDiscountValue interface{}
ProductDiscountValue uses type as discriminator attribute
type ProductDiscountValueAbsolute ¶
type ProductDiscountValueAbsolute struct {
Money []TypedMoney `json:"money"`
}
ProductDiscountValueAbsolute implements the interface ProductDiscountValue
func (ProductDiscountValueAbsolute) MarshalJSON ¶
func (obj ProductDiscountValueAbsolute) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ProductDiscountValueAbsolute) UnmarshalJSON ¶
func (obj *ProductDiscountValueAbsolute) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProductDiscountValueAbsoluteDraft ¶
type ProductDiscountValueAbsoluteDraft struct {
Money []Money `json:"money"`
}
ProductDiscountValueAbsoluteDraft implements the interface ProductDiscountValueDraft
func (ProductDiscountValueAbsoluteDraft) MarshalJSON ¶
func (obj ProductDiscountValueAbsoluteDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountValueDraft ¶
type ProductDiscountValueDraft interface{}
ProductDiscountValueDraft uses type as discriminator attribute
type ProductDiscountValueExternal ¶
type ProductDiscountValueExternal struct{}
ProductDiscountValueExternal implements the interface ProductDiscountValue
func (ProductDiscountValueExternal) MarshalJSON ¶
func (obj ProductDiscountValueExternal) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountValueExternalDraft ¶
type ProductDiscountValueExternalDraft struct{}
ProductDiscountValueExternalDraft implements the interface ProductDiscountValueDraft
func (ProductDiscountValueExternalDraft) MarshalJSON ¶
func (obj ProductDiscountValueExternalDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountValueRelative ¶
type ProductDiscountValueRelative struct {
Permyriad int `json:"permyriad"`
}
ProductDiscountValueRelative implements the interface ProductDiscountValue
func (ProductDiscountValueRelative) MarshalJSON ¶
func (obj ProductDiscountValueRelative) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDiscountValueRelativeDraft ¶
type ProductDiscountValueRelativeDraft struct {
Permyriad int `json:"permyriad"`
}
ProductDiscountValueRelativeDraft implements the interface ProductDiscountValueDraft
func (ProductDiscountValueRelativeDraft) MarshalJSON ¶
func (obj ProductDiscountValueRelativeDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductDraft ¶
type ProductDraft struct { Variants []ProductVariantDraft `json:"variants,omitempty"` TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"` State *StateResourceIdentifier `json:"state,omitempty"` Slug *LocalizedString `json:"slug"` SearchKeywords *SearchKeywords `json:"searchKeywords,omitempty"` Publish bool `json:"publish"` ProductType *ProductTypeResourceIdentifier `json:"productType"` Name *LocalizedString `json:"name"` MetaTitle *LocalizedString `json:"metaTitle,omitempty"` MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` MetaDescription *LocalizedString `json:"metaDescription,omitempty"` MasterVariant *ProductVariantDraft `json:"masterVariant,omitempty"` Key string `json:"key,omitempty"` Description *LocalizedString `json:"description,omitempty"` CategoryOrderHints *CategoryOrderHints `json:"categoryOrderHints,omitempty"` Categories []CategoryResourceIdentifier `json:"categories,omitempty"` }
ProductDraft is a standalone struct
type ProductImageAddedMessage ¶
type ProductImageAddedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` VariantID int `json:"variantId"` Staged bool `json:"staged"` Image *Image `json:"image"` }
ProductImageAddedMessage implements the interface Message
func (ProductImageAddedMessage) MarshalJSON ¶
func (obj ProductImageAddedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductImageAddedMessagePayload ¶
type ProductImageAddedMessagePayload struct { VariantID int `json:"variantId"` Staged bool `json:"staged"` Image *Image `json:"image"` }
ProductImageAddedMessagePayload implements the interface MessagePayload
func (ProductImageAddedMessagePayload) MarshalJSON ¶
func (obj ProductImageAddedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductImagesInput ¶
type ProductImagesInput struct { Filename string `url:"filename,omitempty"` SKU string `url:"sku,omitempty"` Staged bool `url:"staged,omitempty"` Variant float64 `url:"variant,omitempty"` }
ProductImagesInput is input for function ProductImages
type ProductLegacySetSkuAction ¶
type ProductLegacySetSkuAction struct { VariantID int `json:"variantId"` SKU string `json:"sku,omitempty"` }
ProductLegacySetSkuAction implements the interface ProductUpdateAction
func (ProductLegacySetSkuAction) MarshalJSON ¶
func (obj ProductLegacySetSkuAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductMoveImageToPositionAction ¶
type ProductMoveImageToPositionAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Position int `json:"position"` ImageURL string `json:"imageUrl"` }
ProductMoveImageToPositionAction implements the interface ProductUpdateAction
func (ProductMoveImageToPositionAction) MarshalJSON ¶
func (obj ProductMoveImageToPositionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductPagedQueryResponse ¶
type ProductPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Product `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
ProductPagedQueryResponse is a standalone struct
type ProductPriceDiscountsSetMessage ¶
type ProductPriceDiscountsSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` UpdatedPrices []ProductPriceDiscountsSetUpdatedPrice `json:"updatedPrices"` }
ProductPriceDiscountsSetMessage implements the interface Message
func (ProductPriceDiscountsSetMessage) MarshalJSON ¶
func (obj ProductPriceDiscountsSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductPriceDiscountsSetMessagePayload ¶
type ProductPriceDiscountsSetMessagePayload struct {
UpdatedPrices []ProductPriceDiscountsSetUpdatedPrice `json:"updatedPrices"`
}
ProductPriceDiscountsSetMessagePayload implements the interface MessagePayload
func (ProductPriceDiscountsSetMessagePayload) MarshalJSON ¶
func (obj ProductPriceDiscountsSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductPriceDiscountsSetUpdatedPrice ¶
type ProductPriceDiscountsSetUpdatedPrice struct { VariantKey string `json:"variantKey,omitempty"` VariantID int `json:"variantId"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` PriceID string `json:"priceId"` Discounted *DiscountedPrice `json:"discounted,omitempty"` }
ProductPriceDiscountsSetUpdatedPrice is a standalone struct
type ProductPriceExternalDiscountSetMessage ¶
type ProductPriceExternalDiscountSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` VariantKey string `json:"variantKey,omitempty"` VariantID int `json:"variantId"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` PriceID string `json:"priceId"` Discounted *DiscountedPrice `json:"discounted,omitempty"` }
ProductPriceExternalDiscountSetMessage implements the interface Message
func (ProductPriceExternalDiscountSetMessage) MarshalJSON ¶
func (obj ProductPriceExternalDiscountSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductPriceExternalDiscountSetMessagePayload ¶
type ProductPriceExternalDiscountSetMessagePayload struct { VariantKey string `json:"variantKey,omitempty"` VariantID int `json:"variantId"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` PriceID string `json:"priceId"` Discounted *DiscountedPrice `json:"discounted,omitempty"` }
ProductPriceExternalDiscountSetMessagePayload implements the interface MessagePayload
func (ProductPriceExternalDiscountSetMessagePayload) MarshalJSON ¶
func (obj ProductPriceExternalDiscountSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductProjection ¶
type ProductProjection struct { LastModifiedAt time.Time `json:"lastModifiedAt"` CreatedAt time.Time `json:"createdAt"` Version int `json:"version"` Variants []ProductVariant `json:"variants"` TaxCategory *TaxCategoryReference `json:"taxCategory,omitempty"` State *StateReference `json:"state,omitempty"` Slug *LocalizedString `json:"slug"` SearchKeywords *SearchKeywords `json:"searchKeywords,omitempty"` ReviewRatingStatistics *ReviewRatingStatistics `json:"reviewRatingStatistics,omitempty"` Published bool `json:"published"` ProductType *ProductTypeReference `json:"productType"` Name *LocalizedString `json:"name"` MetaTitle *LocalizedString `json:"metaTitle,omitempty"` MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` MetaDescription *LocalizedString `json:"metaDescription,omitempty"` MasterVariant *ProductVariant `json:"masterVariant"` Key string `json:"key,omitempty"` ID string `json:"id"` HasStagedChanges bool `json:"hasStagedChanges"` Description *LocalizedString `json:"description,omitempty"` CategoryOrderHints *CategoryOrderHints `json:"categoryOrderHints,omitempty"` Categories []CategoryReference `json:"categories"` }
ProductProjection is of type BaseResource
type ProductProjectionPagedQueryResponse ¶
type ProductProjectionPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []ProductProjection `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
ProductProjectionPagedQueryResponse is a standalone struct
type ProductProjectionPagedSearchResponse ¶
type ProductProjectionPagedSearchResponse struct { Total int `json:"total,omitempty"` Results []ProductProjection `json:"results"` Offset int `json:"offset"` Facets *FacetResults `json:"facets"` Count int `json:"count"` }
ProductProjectionPagedSearchResponse is a standalone struct
type ProductProjectionSearchInput ¶
type ProductProjectionSearchInput struct { Text map[string]string `url:"text"` Facet string `url:"facet,omitempty"` FilterFacets string `url:"filter.facets,omitempty"` FilterQuery string `url:"filter.query,omitempty"` Filter string `url:"filter,omitempty"` Fuzzy bool `url:"fuzzy,omitempty"` FuzzyLevel float64 `url:"fuzzyLevel,omitempty"` MarkMatchingVariants bool `url:"markMatchingVariants,omitempty"` Staged bool `url:"staged,omitempty"` }
ProductProjectionSearchInput is input for function ProductProjectionSearch
type ProductProjectionSuggestInput ¶
type ProductProjectionSuggestInput struct { SearchKeywords map[string]string `url:"searchKeywords"` Fuzzy bool `url:"fuzzy,omitempty"` Staged bool `url:"staged,omitempty"` }
ProductProjectionSuggestInput is input for function ProductProjectionSuggest
type ProductPublishAction ¶
type ProductPublishAction struct {
Scope ProductPublishScope `json:"scope,omitempty"`
}
ProductPublishAction implements the interface ProductUpdateAction
func (ProductPublishAction) MarshalJSON ¶
func (obj ProductPublishAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductPublishScope ¶
type ProductPublishScope string
ProductPublishScope is an enum type
const ( ProductPublishScopeAll ProductPublishScope = "All" ProductPublishScopePrices ProductPublishScope = "Prices" )
Enum values for ProductPublishScope
type ProductPublishedMessage ¶
type ProductPublishedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Scope ProductPublishScope `json:"scope"` RemovedImageUrls []interface{} `json:"removedImageUrls"` ProductProjection *ProductProjection `json:"productProjection"` }
ProductPublishedMessage implements the interface Message
func (ProductPublishedMessage) MarshalJSON ¶
func (obj ProductPublishedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductPublishedMessagePayload ¶
type ProductPublishedMessagePayload struct { Scope ProductPublishScope `json:"scope"` RemovedImageUrls []interface{} `json:"removedImageUrls"` ProductProjection *ProductProjection `json:"productProjection"` }
ProductPublishedMessagePayload implements the interface MessagePayload
func (ProductPublishedMessagePayload) MarshalJSON ¶
func (obj ProductPublishedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductReference ¶
ProductReference implements the interface Reference
func (ProductReference) MarshalJSON ¶
func (obj ProductReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRemoveAssetAction ¶
type ProductRemoveAssetAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
ProductRemoveAssetAction implements the interface ProductUpdateAction
func (ProductRemoveAssetAction) MarshalJSON ¶
func (obj ProductRemoveAssetAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRemoveFromCategoryAction ¶
type ProductRemoveFromCategoryAction struct { Staged bool `json:"staged"` Category *CategoryResourceIdentifier `json:"category"` }
ProductRemoveFromCategoryAction implements the interface ProductUpdateAction
func (ProductRemoveFromCategoryAction) MarshalJSON ¶
func (obj ProductRemoveFromCategoryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRemoveImageAction ¶
type ProductRemoveImageAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` ImageURL string `json:"imageUrl"` }
ProductRemoveImageAction implements the interface ProductUpdateAction
func (ProductRemoveImageAction) MarshalJSON ¶
func (obj ProductRemoveImageAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRemovePriceAction ¶
type ProductRemovePriceAction struct { Staged bool `json:"staged"` PriceID string `json:"priceId"` }
ProductRemovePriceAction implements the interface ProductUpdateAction
func (ProductRemovePriceAction) MarshalJSON ¶
func (obj ProductRemovePriceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRemoveVariantAction ¶
type ProductRemoveVariantAction struct { Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` ID int `json:"id,omitempty"` }
ProductRemoveVariantAction implements the interface ProductUpdateAction
func (ProductRemoveVariantAction) MarshalJSON ¶
func (obj ProductRemoveVariantAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRemovedFromCategoryMessage ¶
type ProductRemovedFromCategoryMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Staged bool `json:"staged"` Category *CategoryReference `json:"category"` }
ProductRemovedFromCategoryMessage implements the interface Message
func (ProductRemovedFromCategoryMessage) MarshalJSON ¶
func (obj ProductRemovedFromCategoryMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRemovedFromCategoryMessagePayload ¶
type ProductRemovedFromCategoryMessagePayload struct { Staged bool `json:"staged"` Category *CategoryReference `json:"category"` }
ProductRemovedFromCategoryMessagePayload implements the interface MessagePayload
func (ProductRemovedFromCategoryMessagePayload) MarshalJSON ¶
func (obj ProductRemovedFromCategoryMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductResourceIdentifier ¶
type ProductResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
ProductResourceIdentifier implements the interface ResourceIdentifier
func (ProductResourceIdentifier) MarshalJSON ¶
func (obj ProductResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRevertStagedChangesAction ¶
type ProductRevertStagedChangesAction struct{}
ProductRevertStagedChangesAction implements the interface ProductUpdateAction
func (ProductRevertStagedChangesAction) MarshalJSON ¶
func (obj ProductRevertStagedChangesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRevertStagedVariantChangesAction ¶
type ProductRevertStagedVariantChangesAction struct {
VariantID int `json:"variantId"`
}
ProductRevertStagedVariantChangesAction implements the interface ProductUpdateAction
func (ProductRevertStagedVariantChangesAction) MarshalJSON ¶
func (obj ProductRevertStagedVariantChangesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRevertedStagedChangesMessage ¶
type ProductRevertedStagedChangesMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` RemovedImageUrls []string `json:"removedImageUrls"` }
ProductRevertedStagedChangesMessage implements the interface Message
func (ProductRevertedStagedChangesMessage) MarshalJSON ¶
func (obj ProductRevertedStagedChangesMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductRevertedStagedChangesMessagePayload ¶
type ProductRevertedStagedChangesMessagePayload struct {
RemovedImageUrls []string `json:"removedImageUrls"`
}
ProductRevertedStagedChangesMessagePayload implements the interface MessagePayload
func (ProductRevertedStagedChangesMessagePayload) MarshalJSON ¶
func (obj ProductRevertedStagedChangesMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetAssetCustomFieldAction ¶
type ProductSetAssetCustomFieldAction struct { VariantID int `json:"variantId,omitempty"` Value interface{} `json:"value,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Name string `json:"name"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
ProductSetAssetCustomFieldAction implements the interface ProductUpdateAction
func (ProductSetAssetCustomFieldAction) MarshalJSON ¶
func (obj ProductSetAssetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetAssetCustomTypeAction ¶
type ProductSetAssetCustomTypeAction struct { VariantID int `json:"variantId,omitempty"` Type *TypeResourceIdentifier `json:"type,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Fields interface{} `json:"fields,omitempty"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
ProductSetAssetCustomTypeAction implements the interface ProductUpdateAction
func (ProductSetAssetCustomTypeAction) MarshalJSON ¶
func (obj ProductSetAssetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetAssetDescriptionAction ¶
type ProductSetAssetDescriptionAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Description *LocalizedString `json:"description,omitempty"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
ProductSetAssetDescriptionAction implements the interface ProductUpdateAction
func (ProductSetAssetDescriptionAction) MarshalJSON ¶
func (obj ProductSetAssetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetAssetKeyAction ¶
type ProductSetAssetKeyAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId"` }
ProductSetAssetKeyAction implements the interface ProductUpdateAction
func (ProductSetAssetKeyAction) MarshalJSON ¶
func (obj ProductSetAssetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetAssetSourcesAction ¶
type ProductSetAssetSourcesAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` Sources []AssetSource `json:"sources"` SKU string `json:"sku,omitempty"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
ProductSetAssetSourcesAction implements the interface ProductUpdateAction
func (ProductSetAssetSourcesAction) MarshalJSON ¶
func (obj ProductSetAssetSourcesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetAssetTagsAction ¶
type ProductSetAssetTagsAction struct { VariantID int `json:"variantId,omitempty"` Tags []string `json:"tags,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` AssetKey string `json:"assetKey,omitempty"` AssetID string `json:"assetId,omitempty"` }
ProductSetAssetTagsAction implements the interface ProductUpdateAction
func (ProductSetAssetTagsAction) MarshalJSON ¶
func (obj ProductSetAssetTagsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetAttributeAction ¶
type ProductSetAttributeAction struct { VariantID int `json:"variantId,omitempty"` Value interface{} `json:"value,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Name string `json:"name"` }
ProductSetAttributeAction implements the interface ProductUpdateAction
func (ProductSetAttributeAction) MarshalJSON ¶
func (obj ProductSetAttributeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetAttributeInAllVariantsAction ¶
type ProductSetAttributeInAllVariantsAction struct { Value interface{} `json:"value,omitempty"` Staged bool `json:"staged"` Name string `json:"name"` }
ProductSetAttributeInAllVariantsAction implements the interface ProductUpdateAction
func (ProductSetAttributeInAllVariantsAction) MarshalJSON ¶
func (obj ProductSetAttributeInAllVariantsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetCategoryOrderHintAction ¶
type ProductSetCategoryOrderHintAction struct { Staged bool `json:"staged"` OrderHint string `json:"orderHint,omitempty"` CategoryID string `json:"categoryId"` }
ProductSetCategoryOrderHintAction implements the interface ProductUpdateAction
func (ProductSetCategoryOrderHintAction) MarshalJSON ¶
func (obj ProductSetCategoryOrderHintAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetDescriptionAction ¶
type ProductSetDescriptionAction struct { Staged bool `json:"staged"` Description *LocalizedString `json:"description,omitempty"` }
ProductSetDescriptionAction implements the interface ProductUpdateAction
func (ProductSetDescriptionAction) MarshalJSON ¶
func (obj ProductSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetDiscountedPriceAction ¶
type ProductSetDiscountedPriceAction struct { Staged bool `json:"staged"` PriceID string `json:"priceId"` Discounted *DiscountedPrice `json:"discounted,omitempty"` }
ProductSetDiscountedPriceAction implements the interface ProductUpdateAction
func (ProductSetDiscountedPriceAction) MarshalJSON ¶
func (obj ProductSetDiscountedPriceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetImageLabelAction ¶
type ProductSetImageLabelAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Label string `json:"label,omitempty"` ImageURL string `json:"imageUrl"` }
ProductSetImageLabelAction implements the interface ProductUpdateAction
func (ProductSetImageLabelAction) MarshalJSON ¶
func (obj ProductSetImageLabelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetKeyAction ¶
type ProductSetKeyAction struct {
Key string `json:"key,omitempty"`
}
ProductSetKeyAction implements the interface ProductUpdateAction
func (ProductSetKeyAction) MarshalJSON ¶
func (obj ProductSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetMetaDescriptionAction ¶
type ProductSetMetaDescriptionAction struct { Staged bool `json:"staged"` MetaDescription *LocalizedString `json:"metaDescription,omitempty"` }
ProductSetMetaDescriptionAction implements the interface ProductUpdateAction
func (ProductSetMetaDescriptionAction) MarshalJSON ¶
func (obj ProductSetMetaDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetMetaKeywordsAction ¶
type ProductSetMetaKeywordsAction struct { Staged bool `json:"staged"` MetaKeywords *LocalizedString `json:"metaKeywords,omitempty"` }
ProductSetMetaKeywordsAction implements the interface ProductUpdateAction
func (ProductSetMetaKeywordsAction) MarshalJSON ¶
func (obj ProductSetMetaKeywordsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetMetaTitleAction ¶
type ProductSetMetaTitleAction struct { Staged bool `json:"staged"` MetaTitle *LocalizedString `json:"metaTitle,omitempty"` }
ProductSetMetaTitleAction implements the interface ProductUpdateAction
func (ProductSetMetaTitleAction) MarshalJSON ¶
func (obj ProductSetMetaTitleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetPricesAction ¶
type ProductSetPricesAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Prices []PriceDraft `json:"prices"` }
ProductSetPricesAction implements the interface ProductUpdateAction
func (ProductSetPricesAction) MarshalJSON ¶
func (obj ProductSetPricesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetProductPriceCustomFieldAction ¶
type ProductSetProductPriceCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Staged bool `json:"staged"` PriceID string `json:"priceId"` Name string `json:"name"` }
ProductSetProductPriceCustomFieldAction implements the interface ProductUpdateAction
func (ProductSetProductPriceCustomFieldAction) MarshalJSON ¶
func (obj ProductSetProductPriceCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetProductPriceCustomTypeAction ¶
type ProductSetProductPriceCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Staged bool `json:"staged"` PriceID string `json:"priceId"` Fields *FieldContainer `json:"fields,omitempty"` }
ProductSetProductPriceCustomTypeAction implements the interface ProductUpdateAction
func (ProductSetProductPriceCustomTypeAction) MarshalJSON ¶
func (obj ProductSetProductPriceCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetProductVariantKeyAction ¶
type ProductSetProductVariantKeyAction struct { VariantID int `json:"variantId,omitempty"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` Key string `json:"key,omitempty"` }
ProductSetProductVariantKeyAction implements the interface ProductUpdateAction
func (ProductSetProductVariantKeyAction) MarshalJSON ¶
func (obj ProductSetProductVariantKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetSearchKeywordsAction ¶
type ProductSetSearchKeywordsAction struct { Staged bool `json:"staged"` SearchKeywords *SearchKeywords `json:"searchKeywords"` }
ProductSetSearchKeywordsAction implements the interface ProductUpdateAction
func (ProductSetSearchKeywordsAction) MarshalJSON ¶
func (obj ProductSetSearchKeywordsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetSkuAction ¶
type ProductSetSkuAction struct { VariantID int `json:"variantId"` Staged bool `json:"staged"` SKU string `json:"sku,omitempty"` }
ProductSetSkuAction implements the interface ProductUpdateAction
func (ProductSetSkuAction) MarshalJSON ¶
func (obj ProductSetSkuAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSetTaxCategoryAction ¶
type ProductSetTaxCategoryAction struct {
TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"`
}
ProductSetTaxCategoryAction implements the interface ProductUpdateAction
func (ProductSetTaxCategoryAction) MarshalJSON ¶
func (obj ProductSetTaxCategoryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSlugChangedMessage ¶
type ProductSlugChangedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Slug *LocalizedString `json:"slug"` }
ProductSlugChangedMessage implements the interface Message
func (ProductSlugChangedMessage) MarshalJSON ¶
func (obj ProductSlugChangedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductSlugChangedMessagePayload ¶
type ProductSlugChangedMessagePayload struct {
Slug *LocalizedString `json:"slug"`
}
ProductSlugChangedMessagePayload implements the interface MessagePayload
func (ProductSlugChangedMessagePayload) MarshalJSON ¶
func (obj ProductSlugChangedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductStateTransitionMessage ¶
type ProductStateTransitionMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` State *StateReference `json:"state"` Force bool `json:"force"` }
ProductStateTransitionMessage implements the interface Message
func (ProductStateTransitionMessage) MarshalJSON ¶
func (obj ProductStateTransitionMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductStateTransitionMessagePayload ¶
type ProductStateTransitionMessagePayload struct { State *StateReference `json:"state"` Force bool `json:"force"` }
ProductStateTransitionMessagePayload implements the interface MessagePayload
func (ProductStateTransitionMessagePayload) MarshalJSON ¶
func (obj ProductStateTransitionMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTransitionStateAction ¶
type ProductTransitionStateAction struct { State *StateResourceIdentifier `json:"state,omitempty"` Force bool `json:"force"` }
ProductTransitionStateAction implements the interface ProductUpdateAction
func (ProductTransitionStateAction) MarshalJSON ¶
func (obj ProductTransitionStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductType ¶
type ProductType struct { Version int `json:"version"` Name string `json:"name"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` Description string `json:"description"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Attributes []AttributeDefinition `json:"attributes,omitempty"` }
ProductType is of type BaseResource
type ProductTypeAddAttributeDefinitionAction ¶
type ProductTypeAddAttributeDefinitionAction struct {
Attribute *AttributeDefinitionDraft `json:"attribute"`
}
ProductTypeAddAttributeDefinitionAction implements the interface ProductTypeUpdateAction
func (ProductTypeAddAttributeDefinitionAction) MarshalJSON ¶
func (obj ProductTypeAddAttributeDefinitionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeAddLocalizedEnumValueAction ¶
type ProductTypeAddLocalizedEnumValueAction struct { Value *AttributeLocalizedEnumValue `json:"value"` AttributeName string `json:"attributeName"` }
ProductTypeAddLocalizedEnumValueAction implements the interface ProductTypeUpdateAction
func (ProductTypeAddLocalizedEnumValueAction) MarshalJSON ¶
func (obj ProductTypeAddLocalizedEnumValueAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeAddPlainEnumValueAction ¶
type ProductTypeAddPlainEnumValueAction struct { Value *AttributePlainEnumValue `json:"value"` AttributeName string `json:"attributeName"` }
ProductTypeAddPlainEnumValueAction implements the interface ProductTypeUpdateAction
func (ProductTypeAddPlainEnumValueAction) MarshalJSON ¶
func (obj ProductTypeAddPlainEnumValueAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeAttributeConstraintAction ¶
type ProductTypeChangeAttributeConstraintAction struct { NewValue AttributeConstraintEnumDraft `json:"newValue"` AttributeName string `json:"attributeName"` }
ProductTypeChangeAttributeConstraintAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeAttributeConstraintAction) MarshalJSON ¶
func (obj ProductTypeChangeAttributeConstraintAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeAttributeNameAction ¶
type ProductTypeChangeAttributeNameAction struct { NewAttributeName string `json:"newAttributeName"` AttributeName string `json:"attributeName"` }
ProductTypeChangeAttributeNameAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeAttributeNameAction) MarshalJSON ¶
func (obj ProductTypeChangeAttributeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeAttributeOrderAction ¶
type ProductTypeChangeAttributeOrderAction struct {
Attributes []AttributeDefinition `json:"attributes"`
}
ProductTypeChangeAttributeOrderAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeAttributeOrderAction) MarshalJSON ¶
func (obj ProductTypeChangeAttributeOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeAttributeOrderByNameAction ¶
type ProductTypeChangeAttributeOrderByNameAction struct {
AttributeNames []string `json:"attributeNames"`
}
ProductTypeChangeAttributeOrderByNameAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeAttributeOrderByNameAction) MarshalJSON ¶
func (obj ProductTypeChangeAttributeOrderByNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeDescriptionAction ¶
type ProductTypeChangeDescriptionAction struct {
Description string `json:"description"`
}
ProductTypeChangeDescriptionAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeDescriptionAction) MarshalJSON ¶
func (obj ProductTypeChangeDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeEnumKeyAction ¶
type ProductTypeChangeEnumKeyAction struct { NewKey string `json:"newKey"` Key string `json:"key"` AttributeName string `json:"attributeName"` }
ProductTypeChangeEnumKeyAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeEnumKeyAction) MarshalJSON ¶
func (obj ProductTypeChangeEnumKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeInputHintAction ¶
type ProductTypeChangeInputHintAction struct { NewValue TextInputHint `json:"newValue"` AttributeName string `json:"attributeName"` }
ProductTypeChangeInputHintAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeInputHintAction) MarshalJSON ¶
func (obj ProductTypeChangeInputHintAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeIsSearchableAction ¶
type ProductTypeChangeIsSearchableAction struct { IsSearchable bool `json:"isSearchable"` AttributeName string `json:"attributeName"` }
ProductTypeChangeIsSearchableAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeIsSearchableAction) MarshalJSON ¶
func (obj ProductTypeChangeIsSearchableAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeLabelAction ¶
type ProductTypeChangeLabelAction struct { Label *LocalizedString `json:"label"` AttributeName string `json:"attributeName"` }
ProductTypeChangeLabelAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeLabelAction) MarshalJSON ¶
func (obj ProductTypeChangeLabelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeLocalizedEnumValueLabelAction ¶
type ProductTypeChangeLocalizedEnumValueLabelAction struct { NewValue *AttributeLocalizedEnumValue `json:"newValue"` AttributeName string `json:"attributeName"` }
ProductTypeChangeLocalizedEnumValueLabelAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeLocalizedEnumValueLabelAction) MarshalJSON ¶
func (obj ProductTypeChangeLocalizedEnumValueLabelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeLocalizedEnumValueOrderAction ¶
type ProductTypeChangeLocalizedEnumValueOrderAction struct { Values []AttributeLocalizedEnumValue `json:"values"` AttributeName string `json:"attributeName"` }
ProductTypeChangeLocalizedEnumValueOrderAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeLocalizedEnumValueOrderAction) MarshalJSON ¶
func (obj ProductTypeChangeLocalizedEnumValueOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangeNameAction ¶
type ProductTypeChangeNameAction struct {
Name string `json:"name"`
}
ProductTypeChangeNameAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangeNameAction) MarshalJSON ¶
func (obj ProductTypeChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangePlainEnumValueLabelAction ¶
type ProductTypeChangePlainEnumValueLabelAction struct { NewValue *AttributePlainEnumValue `json:"newValue"` AttributeName string `json:"attributeName"` }
ProductTypeChangePlainEnumValueLabelAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangePlainEnumValueLabelAction) MarshalJSON ¶
func (obj ProductTypeChangePlainEnumValueLabelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeChangePlainEnumValueOrderAction ¶
type ProductTypeChangePlainEnumValueOrderAction struct { Values []AttributePlainEnumValue `json:"values"` AttributeName string `json:"attributeName"` }
ProductTypeChangePlainEnumValueOrderAction implements the interface ProductTypeUpdateAction
func (ProductTypeChangePlainEnumValueOrderAction) MarshalJSON ¶
func (obj ProductTypeChangePlainEnumValueOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeDraft ¶
type ProductTypeDraft struct { Name string `json:"name"` Key string `json:"key,omitempty"` Description string `json:"description"` Attributes []AttributeDefinitionDraft `json:"attributes,omitempty"` }
ProductTypeDraft is a standalone struct
type ProductTypePagedQueryResponse ¶
type ProductTypePagedQueryResponse struct { Total int `json:"total,omitempty"` Results []ProductType `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
ProductTypePagedQueryResponse is a standalone struct
type ProductTypeReference ¶
type ProductTypeReference struct { ID string `json:"id"` Obj *ProductType `json:"obj,omitempty"` }
ProductTypeReference implements the interface Reference
func (ProductTypeReference) MarshalJSON ¶
func (obj ProductTypeReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeRemoveAttributeDefinitionAction ¶
type ProductTypeRemoveAttributeDefinitionAction struct {
Name string `json:"name"`
}
ProductTypeRemoveAttributeDefinitionAction implements the interface ProductTypeUpdateAction
func (ProductTypeRemoveAttributeDefinitionAction) MarshalJSON ¶
func (obj ProductTypeRemoveAttributeDefinitionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeRemoveEnumValuesAction ¶
type ProductTypeRemoveEnumValuesAction struct { Keys []string `json:"keys"` AttributeName string `json:"attributeName"` }
ProductTypeRemoveEnumValuesAction implements the interface ProductTypeUpdateAction
func (ProductTypeRemoveEnumValuesAction) MarshalJSON ¶
func (obj ProductTypeRemoveEnumValuesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeResourceIdentifier ¶
type ProductTypeResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
ProductTypeResourceIdentifier implements the interface ResourceIdentifier
func (ProductTypeResourceIdentifier) MarshalJSON ¶
func (obj ProductTypeResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeSetInputTipAction ¶
type ProductTypeSetInputTipAction struct { InputTip *LocalizedString `json:"inputTip,omitempty"` AttributeName string `json:"attributeName"` }
ProductTypeSetInputTipAction implements the interface ProductTypeUpdateAction
func (ProductTypeSetInputTipAction) MarshalJSON ¶
func (obj ProductTypeSetInputTipAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeSetKeyAction ¶
type ProductTypeSetKeyAction struct {
Key string `json:"key,omitempty"`
}
ProductTypeSetKeyAction implements the interface ProductTypeUpdateAction
func (ProductTypeSetKeyAction) MarshalJSON ¶
func (obj ProductTypeSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductTypeUpdate ¶
type ProductTypeUpdate struct { Version int `json:"version"` Actions []ProductTypeUpdateAction `json:"actions"` }
ProductTypeUpdate is a standalone struct
func (*ProductTypeUpdate) UnmarshalJSON ¶
func (obj *ProductTypeUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProductTypeUpdateAction ¶
type ProductTypeUpdateAction interface{}
ProductTypeUpdateAction uses action as discriminator attribute
type ProductTypeUpdateWithIDInput ¶
type ProductTypeUpdateWithIDInput struct { ID string Version int Actions []ProductTypeUpdateAction }
ProductTypeUpdateWithIDInput is input for function ProductTypeUpdateWithID
func (*ProductTypeUpdateWithIDInput) Validate ¶
func (input *ProductTypeUpdateWithIDInput) Validate() error
type ProductTypeUpdateWithKeyInput ¶
type ProductTypeUpdateWithKeyInput struct { Key string Version int Actions []ProductTypeUpdateAction }
ProductTypeUpdateWithKeyInput is input for function ProductTypeUpdateWithKey
func (*ProductTypeUpdateWithKeyInput) Validate ¶
func (input *ProductTypeUpdateWithKeyInput) Validate() error
type ProductUnpublishAction ¶
type ProductUnpublishAction struct{}
ProductUnpublishAction implements the interface ProductUpdateAction
func (ProductUnpublishAction) MarshalJSON ¶
func (obj ProductUnpublishAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductUnpublishedMessage ¶
type ProductUnpublishedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
ProductUnpublishedMessage implements the interface Message
func (ProductUnpublishedMessage) MarshalJSON ¶
func (obj ProductUnpublishedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductUnpublishedMessagePayload ¶
type ProductUnpublishedMessagePayload struct{}
ProductUnpublishedMessagePayload implements the interface MessagePayload
func (ProductUnpublishedMessagePayload) MarshalJSON ¶
func (obj ProductUnpublishedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductUpdate ¶
type ProductUpdate struct { Version int `json:"version"` Actions []ProductUpdateAction `json:"actions"` }
ProductUpdate is a standalone struct
func (*ProductUpdate) UnmarshalJSON ¶
func (obj *ProductUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProductUpdateAction ¶
type ProductUpdateAction interface{}
ProductUpdateAction uses action as discriminator attribute
type ProductUpdateWithIDInput ¶
type ProductUpdateWithIDInput struct { ID string Version int Actions []ProductUpdateAction }
ProductUpdateWithIDInput is input for function ProductUpdateWithID
func (*ProductUpdateWithIDInput) Validate ¶
func (input *ProductUpdateWithIDInput) Validate() error
type ProductUpdateWithKeyInput ¶
type ProductUpdateWithKeyInput struct { Key string Version int Actions []ProductUpdateAction }
ProductUpdateWithKeyInput is input for function ProductUpdateWithKey
func (*ProductUpdateWithKeyInput) Validate ¶
func (input *ProductUpdateWithKeyInput) Validate() error
type ProductVariant ¶
type ProductVariant struct { SKU string `json:"sku,omitempty"` ScopedPriceDiscounted bool `json:"scopedPriceDiscounted"` ScopedPrice *ScopedPrice `json:"scopedPrice,omitempty"` Prices []Price `json:"prices,omitempty"` Price *Price `json:"price,omitempty"` Key string `json:"key,omitempty"` IsMatchingVariant bool `json:"isMatchingVariant"` Images []Image `json:"images,omitempty"` ID int `json:"id"` Availability *ProductVariantAvailability `json:"availability,omitempty"` Attributes []Attribute `json:"attributes,omitempty"` Assets []Asset `json:"assets,omitempty"` }
ProductVariant is a standalone struct
type ProductVariantAvailability ¶
type ProductVariantAvailability struct { RestockableInDays int `json:"restockableInDays,omitempty"` IsOnStock bool `json:"isOnStock"` Channels *ProductVariantChannelAvailabilityMap `json:"channels,omitempty"` AvailableQuantity int `json:"availableQuantity,omitempty"` }
ProductVariantAvailability is a standalone struct
type ProductVariantChannelAvailability ¶
type ProductVariantChannelAvailability struct { RestockableInDays int `json:"restockableInDays,omitempty"` IsOnStock bool `json:"isOnStock"` AvailableQuantity int `json:"availableQuantity,omitempty"` }
ProductVariantChannelAvailability is a standalone struct
type ProductVariantChannelAvailabilityMap ¶
type ProductVariantChannelAvailabilityMap map[string]interface{}
ProductVariantChannelAvailabilityMap is a map
type ProductVariantDeletedMessage ¶
type ProductVariantDeletedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Variant *ProductVariant `json:"variant"` RemovedImageUrls []string `json:"removedImageUrls"` }
ProductVariantDeletedMessage implements the interface Message
func (ProductVariantDeletedMessage) MarshalJSON ¶
func (obj ProductVariantDeletedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductVariantDeletedMessagePayload ¶
type ProductVariantDeletedMessagePayload struct { Variant *ProductVariant `json:"variant"` RemovedImageUrls []string `json:"removedImageUrls"` }
ProductVariantDeletedMessagePayload implements the interface MessagePayload
func (ProductVariantDeletedMessagePayload) MarshalJSON ¶
func (obj ProductVariantDeletedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProductVariantDraft ¶
type ProductVariantDraft struct { SKU string `json:"sku,omitempty"` Prices []PriceDraft `json:"prices,omitempty"` Key string `json:"key,omitempty"` Images []Image `json:"images,omitempty"` Attributes []Attribute `json:"attributes,omitempty"` Assets []AssetDraft `json:"assets,omitempty"` }
ProductVariantDraft is a standalone struct
type ProductVariantImportDraft ¶
type ProductVariantImportDraft struct { SKU string `json:"sku,omitempty"` Prices []PriceDraft `json:"prices,omitempty"` Images []Image `json:"images,omitempty"` ID int `json:"id,omitempty"` Attributes []Attribute `json:"attributes,omitempty"` }
ProductVariantImportDraft is a standalone struct
type Project ¶
type Project struct { Version int `json:"version"` TrialUntil string `json:"trialUntil,omitempty"` ShippingRateInputType ShippingRateInputType `json:"shippingRateInputType,omitempty"` Name string `json:"name"` Messages *MessageConfiguration `json:"messages"` Languages []Locale `json:"languages"` Key string `json:"key"` ExternalOAuth *ExternalOAuth `json:"externalOAuth,omitempty"` Currencies []CurrencyCode `json:"currencies"` CreatedAt time.Time `json:"createdAt"` Countries []CountryCode `json:"countries"` Carts *CartsConfiguration `json:"carts"` }
Project is a standalone struct
func (*Project) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProjectChangeCountriesAction ¶
type ProjectChangeCountriesAction struct {
Countries []CountryCode `json:"countries"`
}
ProjectChangeCountriesAction implements the interface ProjectUpdateAction
func (ProjectChangeCountriesAction) MarshalJSON ¶
func (obj ProjectChangeCountriesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProjectChangeCountryTaxRateFallbackEnabledAction ¶
type ProjectChangeCountryTaxRateFallbackEnabledAction struct {
CountryTaxRateFallbackEnabled bool `json:"countryTaxRateFallbackEnabled"`
}
ProjectChangeCountryTaxRateFallbackEnabledAction implements the interface ProjectUpdateAction
func (ProjectChangeCountryTaxRateFallbackEnabledAction) MarshalJSON ¶
func (obj ProjectChangeCountryTaxRateFallbackEnabledAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProjectChangeCurrenciesAction ¶
type ProjectChangeCurrenciesAction struct {
Currencies []CurrencyCode `json:"currencies"`
}
ProjectChangeCurrenciesAction implements the interface ProjectUpdateAction
func (ProjectChangeCurrenciesAction) MarshalJSON ¶
func (obj ProjectChangeCurrenciesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProjectChangeLanguagesAction ¶
type ProjectChangeLanguagesAction struct {
Languages []Locale `json:"languages"`
}
ProjectChangeLanguagesAction implements the interface ProjectUpdateAction
func (ProjectChangeLanguagesAction) MarshalJSON ¶
func (obj ProjectChangeLanguagesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProjectChangeMessagesConfigurationAction ¶
type ProjectChangeMessagesConfigurationAction struct {
MessagesConfiguration *MessageConfigurationDraft `json:"messagesConfiguration"`
}
ProjectChangeMessagesConfigurationAction implements the interface ProjectUpdateAction
func (ProjectChangeMessagesConfigurationAction) MarshalJSON ¶
func (obj ProjectChangeMessagesConfigurationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProjectChangeMessagesEnabledAction ¶
type ProjectChangeMessagesEnabledAction struct {
MessagesEnabled bool `json:"messagesEnabled"`
}
ProjectChangeMessagesEnabledAction implements the interface ProjectUpdateAction
func (ProjectChangeMessagesEnabledAction) MarshalJSON ¶
func (obj ProjectChangeMessagesEnabledAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProjectChangeNameAction ¶
type ProjectChangeNameAction struct {
Name string `json:"name"`
}
ProjectChangeNameAction implements the interface ProjectUpdateAction
func (ProjectChangeNameAction) MarshalJSON ¶
func (obj ProjectChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProjectSetExternalOAuthAction ¶
type ProjectSetExternalOAuthAction struct {
ExternalOAuth *ExternalOAuth `json:"externalOAuth,omitempty"`
}
ProjectSetExternalOAuthAction implements the interface ProjectUpdateAction
func (ProjectSetExternalOAuthAction) MarshalJSON ¶
func (obj ProjectSetExternalOAuthAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ProjectSetShippingRateInputTypeAction ¶
type ProjectSetShippingRateInputTypeAction struct {
ShippingRateInputType ShippingRateInputType `json:"shippingRateInputType,omitempty"`
}
ProjectSetShippingRateInputTypeAction implements the interface ProjectUpdateAction
func (ProjectSetShippingRateInputTypeAction) MarshalJSON ¶
func (obj ProjectSetShippingRateInputTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ProjectSetShippingRateInputTypeAction) UnmarshalJSON ¶
func (obj *ProjectSetShippingRateInputTypeAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProjectUpdate ¶
type ProjectUpdate struct { Version int `json:"version"` Actions []ProjectUpdateAction `json:"actions"` }
ProjectUpdate is a standalone struct
func (*ProjectUpdate) UnmarshalJSON ¶
func (obj *ProjectUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ProjectUpdateAction ¶
type ProjectUpdateAction interface{}
ProjectUpdateAction uses action as discriminator attribute
type ProjectUpdateInput ¶
type ProjectUpdateInput struct { // The expected version of the project on which the changes should be // applied. If the expected version does not match the actual version, a 409 // Conflict will be returned. Version int // The list of update actions to be performed on the project. Actions []ProjectUpdateAction }
ProjectUpdateInput provides the data required to update a project.
type QueryInput ¶
type QueryInput struct { // The queryable APIs support ad-hoc filtering of resources through flexible // predicates. They do so via the where query parameter that accepts a // predicate expression to determine whether a specific resource // representation should be included in the result. The structure of // predicates and the names of the fields follow the structure and naming of // the fields in the documented response representation of the query // results. // https://docs.commercetools.com/http-api-query-predicates.html Where string // A query endpoint that supports sorting does so through the sort query // parameter. The provided value must be a valid sort expression. The // default sort direction is ASC. The allowed sort paths are typically // listed on the specific query endpoints. If multiple sort expressions are // specified via multiple sort parameters, they are combined into a composed // sort where the results are first sorted by the first expression, followed // by equal values being sorted according to the second expression, and so // on. // https://docs.commercetools.com/http-api.html#sorting Sort []string // Reference expansion is a feature of the resources listed in the table // below that enables clients to request server-side expansion of Reference // resources, thereby reducing the number of required client-server // roundtrips to obtain the data that a client needs for a specific // use-case. Reference expansion can be used when creating, updating, // querying, and deleting these resources. // https://docs.commercetools.com/http-api.html#reference-expansion Expand string Limit int Offset int FilterQuery string }
QueryInput provides the data required to query types.
type QueryPrice ¶
type QueryPrice struct { Value *Money `json:"value"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` Tiers []PriceTierDraft `json:"tiers,omitempty"` ID string `json:"id"` Discounted *DiscountedPrice `json:"discounted,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` Custom *CustomFields `json:"custom,omitempty"` Country CountryCode `json:"country,omitempty"` Channel *ChannelReference `json:"channel,omitempty"` }
QueryPrice is a standalone struct
type RangeFacetResult ¶
type RangeFacetResult struct {
Ranges []FacetResultRange `json:"ranges"`
}
RangeFacetResult implements the interface FacetResult
func (RangeFacetResult) MarshalJSON ¶
func (obj RangeFacetResult) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReferenceExistsError ¶
type ReferenceExistsError struct { Message string `json:"message"` ReferencedBy ReferenceTypeID `json:"referencedBy,omitempty"` }
ReferenceExistsError implements the interface ErrorObject
func (ReferenceExistsError) Error ¶
func (obj ReferenceExistsError) Error() string
func (ReferenceExistsError) MarshalJSON ¶
func (obj ReferenceExistsError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReferenceTypeID ¶
type ReferenceTypeID string
ReferenceTypeID is an enum type
const ( ReferenceTypeIDCart ReferenceTypeID = "cart" ReferenceTypeIDCartDiscount ReferenceTypeID = "cart-discount" ReferenceTypeIDCategory ReferenceTypeID = "category" ReferenceTypeIDChannel ReferenceTypeID = "channel" ReferenceTypeIDCustomer ReferenceTypeID = "customer" ReferenceTypeIDCustomerGroup ReferenceTypeID = "customer-group" ReferenceTypeIDDiscountCode ReferenceTypeID = "discount-code" ReferenceTypeIDKeyValueDocument ReferenceTypeID = "key-value-document" ReferenceTypeIDPayment ReferenceTypeID = "payment" ReferenceTypeIDProduct ReferenceTypeID = "product" ReferenceTypeIDProductType ReferenceTypeID = "product-type" ReferenceTypeIDProductDiscount ReferenceTypeID = "product-discount" ReferenceTypeIDOrder ReferenceTypeID = "order" ReferenceTypeIDReview ReferenceTypeID = "review" ReferenceTypeIDShoppingList ReferenceTypeID = "shopping-list" ReferenceTypeIDShippingMethod ReferenceTypeID = "shipping-method" ReferenceTypeIDState ReferenceTypeID = "state" ReferenceTypeIDStore ReferenceTypeID = "store" ReferenceTypeIDTaxCategory ReferenceTypeID = "tax-category" ReferenceTypeIDType ReferenceTypeID = "type" ReferenceTypeIDZone ReferenceTypeID = "zone" ReferenceTypeIDInventoryEntry ReferenceTypeID = "inventory-entry" ReferenceTypeIDOrderEdit ReferenceTypeID = "order-edit" )
Enum values for ReferenceTypeID
type ReferencedResourceNotFoundError ¶
type ReferencedResourceNotFoundError struct { Message string `json:"message"` TypeID ReferenceTypeID `json:"typeId"` Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
ReferencedResourceNotFoundError implements the interface ErrorObject
func (ReferencedResourceNotFoundError) Error ¶
func (obj ReferencedResourceNotFoundError) Error() string
func (ReferencedResourceNotFoundError) MarshalJSON ¶
func (obj ReferencedResourceNotFoundError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReplicaCartDraft ¶
type ReplicaCartDraft struct {
Reference Reference `json:"reference"`
}
ReplicaCartDraft is a standalone struct
func (*ReplicaCartDraft) UnmarshalJSON ¶
func (obj *ReplicaCartDraft) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type RequestOption ¶
func WithReferenceExpansion ¶
func WithReferenceExpansion(references ...string) RequestOption
type RequiredFieldError ¶
RequiredFieldError implements the interface ErrorObject
func (RequiredFieldError) Error ¶
func (obj RequiredFieldError) Error() string
func (RequiredFieldError) MarshalJSON ¶
func (obj RequiredFieldError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ResourceCreatedDelivery ¶
type ResourceCreatedDelivery struct { ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` ProjectKey string `json:"projectKey"` Version int `json:"version"` ModifiedAt time.Time `json:"modifiedAt"` }
ResourceCreatedDelivery implements the interface SubscriptionDelivery
func (ResourceCreatedDelivery) MarshalJSON ¶
func (obj ResourceCreatedDelivery) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ResourceDeletedDelivery ¶
type ResourceDeletedDelivery struct { ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` ProjectKey string `json:"projectKey"` Version int `json:"version"` ModifiedAt time.Time `json:"modifiedAt"` }
ResourceDeletedDelivery implements the interface SubscriptionDelivery
func (ResourceDeletedDelivery) MarshalJSON ¶
func (obj ResourceDeletedDelivery) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ResourceIdentifier ¶
type ResourceIdentifier interface{}
ResourceIdentifier uses typeId as discriminator attribute
type ResourceNotFoundError ¶
type ResourceNotFoundError struct {
Message string `json:"message"`
}
ResourceNotFoundError implements the interface ErrorObject
func (ResourceNotFoundError) Error ¶
func (obj ResourceNotFoundError) Error() string
func (ResourceNotFoundError) MarshalJSON ¶
func (obj ResourceNotFoundError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ResourceTypeID ¶
type ResourceTypeID string
ResourceTypeID is an enum type
const ( ResourceTypeIDAsset ResourceTypeID = "asset" ResourceTypeIDCategory ResourceTypeID = "category" ResourceTypeIDChannel ResourceTypeID = "channel" ResourceTypeIDCustomer ResourceTypeID = "customer" ResourceTypeIDOrder ResourceTypeID = "order" ResourceTypeIDOrderEdit ResourceTypeID = "order-edit" ResourceTypeIDInventoryEntry ResourceTypeID = "inventory-entry" ResourceTypeIDLineItem ResourceTypeID = "line-item" ResourceTypeIDCustomLineItem ResourceTypeID = "custom-line-item" ResourceTypeIDProductPrice ResourceTypeID = "product-price" ResourceTypeIDPayment ResourceTypeID = "payment" ResourceTypeIDPaymentInterfaceInteraction ResourceTypeID = "payment-interface-interaction" ResourceTypeIDReview ResourceTypeID = "review" ResourceTypeIDShoppingList ResourceTypeID = "shopping-list" ResourceTypeIDShoppingListTextLineItem ResourceTypeID = "shopping-list-text-line-item" ResourceTypeIDDiscountCode ResourceTypeID = "discount-code" ResourceTypeIDCartDiscount ResourceTypeID = "cart-discount" ResourceTypeIDCustomerGroup ResourceTypeID = "customer-group" )
Enum values for ResourceTypeID
type ResourceUpdatedDelivery ¶
type ResourceUpdatedDelivery struct { ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` ProjectKey string `json:"projectKey"` Version int `json:"version"` OldVersion int `json:"oldVersion"` ModifiedAt time.Time `json:"modifiedAt"` }
ResourceUpdatedDelivery implements the interface SubscriptionDelivery
func (ResourceUpdatedDelivery) MarshalJSON ¶
func (obj ResourceUpdatedDelivery) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReturnInfo ¶
type ReturnInfo struct { ReturnTrackingID string `json:"returnTrackingId,omitempty"` ReturnDate *time.Time `json:"returnDate,omitempty"` Items []ReturnItem `json:"items"` }
ReturnInfo is a standalone struct
func (*ReturnInfo) UnmarshalJSON ¶
func (obj *ReturnInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ReturnItemDraft ¶
type ReturnItemDraft struct { ShipmentState ReturnShipmentState `json:"shipmentState"` Quantity int `json:"quantity"` LineItemID string `json:"lineItemId,omitempty"` CustomLineItemID string `json:"customLineItemId,omitempty"` Comment string `json:"comment,omitempty"` }
ReturnItemDraft is a standalone struct
type ReturnPaymentState ¶
type ReturnPaymentState string
ReturnPaymentState is an enum type
const ( ReturnPaymentStateNonRefundable ReturnPaymentState = "NonRefundable" ReturnPaymentStateInitial ReturnPaymentState = "Initial" ReturnPaymentStateRefunded ReturnPaymentState = "Refunded" ReturnPaymentStateNotRefunded ReturnPaymentState = "NotRefunded" )
Enum values for ReturnPaymentState
type ReturnShipmentState ¶
type ReturnShipmentState string
ReturnShipmentState is an enum type
const ( ReturnShipmentStateAdvised ReturnShipmentState = "Advised" ReturnShipmentStateReturned ReturnShipmentState = "Returned" ReturnShipmentStateBackInStock ReturnShipmentState = "BackInStock" ReturnShipmentStateUnusable ReturnShipmentState = "Unusable" )
Enum values for ReturnShipmentState
type Review ¶
type Review struct { Version int `json:"version"` UniquenessValue string `json:"uniquenessValue,omitempty"` Title string `json:"title,omitempty"` Text string `json:"text,omitempty"` Target Reference `json:"target,omitempty"` State *StateReference `json:"state,omitempty"` Rating float64 `json:"rating,omitempty"` Locale string `json:"locale,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` IncludedInStatistics bool `json:"includedInStatistics"` ID string `json:"id"` Customer *CustomerReference `json:"customer,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` AuthorName string `json:"authorName,omitempty"` }
Review is of type BaseResource
func (*Review) UnmarshalJSON ¶
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ReviewCreatedMessage ¶
type ReviewCreatedMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Review *Review `json:"review"` }
ReviewCreatedMessage implements the interface Message
func (ReviewCreatedMessage) MarshalJSON ¶
func (obj ReviewCreatedMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewCreatedMessagePayload ¶
type ReviewCreatedMessagePayload struct {
Review *Review `json:"review"`
}
ReviewCreatedMessagePayload implements the interface MessagePayload
func (ReviewCreatedMessagePayload) MarshalJSON ¶
func (obj ReviewCreatedMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewDraft ¶
type ReviewDraft struct { UniquenessValue string `json:"uniquenessValue,omitempty"` Title string `json:"title,omitempty"` Text string `json:"text,omitempty"` Target ResourceIdentifier `json:"target,omitempty"` State *StateResourceIdentifier `json:"state,omitempty"` Rating float64 `json:"rating,omitempty"` Locale string `json:"locale,omitempty"` Key string `json:"key,omitempty"` Customer *CustomerResourceIdentifier `json:"customer,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AuthorName string `json:"authorName,omitempty"` }
ReviewDraft is a standalone struct
func (*ReviewDraft) UnmarshalJSON ¶
func (obj *ReviewDraft) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ReviewPagedQueryResponse ¶
type ReviewPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Review `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
ReviewPagedQueryResponse is a standalone struct
type ReviewRatingSetMessage ¶
type ReviewRatingSetMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Target Reference `json:"target,omitempty"` OldRating float64 `json:"oldRating,omitempty"` NewRating float64 `json:"newRating,omitempty"` IncludedInStatistics bool `json:"includedInStatistics"` }
ReviewRatingSetMessage implements the interface Message
func (ReviewRatingSetMessage) MarshalJSON ¶
func (obj ReviewRatingSetMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ReviewRatingSetMessage) UnmarshalJSON ¶
func (obj *ReviewRatingSetMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ReviewRatingSetMessagePayload ¶
type ReviewRatingSetMessagePayload struct { Target Reference `json:"target,omitempty"` OldRating float64 `json:"oldRating,omitempty"` NewRating float64 `json:"newRating,omitempty"` IncludedInStatistics bool `json:"includedInStatistics"` }
ReviewRatingSetMessagePayload implements the interface MessagePayload
func (ReviewRatingSetMessagePayload) MarshalJSON ¶
func (obj ReviewRatingSetMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ReviewRatingSetMessagePayload) UnmarshalJSON ¶
func (obj *ReviewRatingSetMessagePayload) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ReviewRatingStatistics ¶
type ReviewRatingStatistics struct { RatingsDistribution interface{} `json:"ratingsDistribution"` LowestRating float64 `json:"lowestRating"` HighestRating float64 `json:"highestRating"` Count int `json:"count"` AverageRating float64 `json:"averageRating"` }
ReviewRatingStatistics is a standalone struct
type ReviewReference ¶
ReviewReference implements the interface Reference
func (ReviewReference) MarshalJSON ¶
func (obj ReviewReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewResourceIdentifier ¶
type ReviewResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
ReviewResourceIdentifier implements the interface ResourceIdentifier
func (ReviewResourceIdentifier) MarshalJSON ¶
func (obj ReviewResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewSetAuthorNameAction ¶
type ReviewSetAuthorNameAction struct {
AuthorName string `json:"authorName,omitempty"`
}
ReviewSetAuthorNameAction implements the interface ReviewUpdateAction
func (ReviewSetAuthorNameAction) MarshalJSON ¶
func (obj ReviewSetAuthorNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewSetCustomFieldAction ¶
type ReviewSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
ReviewSetCustomFieldAction implements the interface ReviewUpdateAction
func (ReviewSetCustomFieldAction) MarshalJSON ¶
func (obj ReviewSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewSetCustomTypeAction ¶
type ReviewSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
ReviewSetCustomTypeAction implements the interface ReviewUpdateAction
func (ReviewSetCustomTypeAction) MarshalJSON ¶
func (obj ReviewSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewSetCustomerAction ¶
type ReviewSetCustomerAction struct {
Customer *CustomerResourceIdentifier `json:"customer,omitempty"`
}
ReviewSetCustomerAction implements the interface ReviewUpdateAction
func (ReviewSetCustomerAction) MarshalJSON ¶
func (obj ReviewSetCustomerAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewSetKeyAction ¶
type ReviewSetKeyAction struct {
Key string `json:"key,omitempty"`
}
ReviewSetKeyAction implements the interface ReviewUpdateAction
func (ReviewSetKeyAction) MarshalJSON ¶
func (obj ReviewSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewSetLocaleAction ¶
type ReviewSetLocaleAction struct {
Locale string `json:"locale,omitempty"`
}
ReviewSetLocaleAction implements the interface ReviewUpdateAction
func (ReviewSetLocaleAction) MarshalJSON ¶
func (obj ReviewSetLocaleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewSetRatingAction ¶
type ReviewSetRatingAction struct {
Rating float64 `json:"rating,omitempty"`
}
ReviewSetRatingAction implements the interface ReviewUpdateAction
func (ReviewSetRatingAction) MarshalJSON ¶
func (obj ReviewSetRatingAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewSetTargetAction ¶
type ReviewSetTargetAction struct {
Target ResourceIdentifier `json:"target"`
}
ReviewSetTargetAction implements the interface ReviewUpdateAction
func (ReviewSetTargetAction) MarshalJSON ¶
func (obj ReviewSetTargetAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ReviewSetTargetAction) UnmarshalJSON ¶
func (obj *ReviewSetTargetAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ReviewSetTextAction ¶
type ReviewSetTextAction struct {
Text string `json:"text,omitempty"`
}
ReviewSetTextAction implements the interface ReviewUpdateAction
func (ReviewSetTextAction) MarshalJSON ¶
func (obj ReviewSetTextAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewSetTitleAction ¶
type ReviewSetTitleAction struct {
Title string `json:"title,omitempty"`
}
ReviewSetTitleAction implements the interface ReviewUpdateAction
func (ReviewSetTitleAction) MarshalJSON ¶
func (obj ReviewSetTitleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewStateTransitionMessage ¶
type ReviewStateTransitionMessage struct { Version int `json:"version"` SequenceNumber int `json:"sequenceNumber"` ResourceVersion int `json:"resourceVersion"` ResourceUserProvidedIdentifiers *UserProvidedIdentifiers `json:"resourceUserProvidedIdentifiers,omitempty"` Resource Reference `json:"resource"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` ID string `json:"id"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Target Reference `json:"target"` OldState *StateReference `json:"oldState"` OldIncludedInStatistics bool `json:"oldIncludedInStatistics"` NewState *StateReference `json:"newState"` NewIncludedInStatistics bool `json:"newIncludedInStatistics"` Force bool `json:"force"` }
ReviewStateTransitionMessage implements the interface Message
func (ReviewStateTransitionMessage) MarshalJSON ¶
func (obj ReviewStateTransitionMessage) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ReviewStateTransitionMessage) UnmarshalJSON ¶
func (obj *ReviewStateTransitionMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ReviewStateTransitionMessagePayload ¶
type ReviewStateTransitionMessagePayload struct { Target Reference `json:"target"` OldState *StateReference `json:"oldState"` OldIncludedInStatistics bool `json:"oldIncludedInStatistics"` NewState *StateReference `json:"newState"` NewIncludedInStatistics bool `json:"newIncludedInStatistics"` Force bool `json:"force"` }
ReviewStateTransitionMessagePayload implements the interface MessagePayload
func (ReviewStateTransitionMessagePayload) MarshalJSON ¶
func (obj ReviewStateTransitionMessagePayload) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*ReviewStateTransitionMessagePayload) UnmarshalJSON ¶
func (obj *ReviewStateTransitionMessagePayload) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ReviewTransitionStateAction ¶
type ReviewTransitionStateAction struct { State *StateResourceIdentifier `json:"state"` Force bool `json:"force"` }
ReviewTransitionStateAction implements the interface ReviewUpdateAction
func (ReviewTransitionStateAction) MarshalJSON ¶
func (obj ReviewTransitionStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ReviewUpdate ¶
type ReviewUpdate struct { Version int `json:"version"` Actions []ReviewUpdateAction `json:"actions"` }
ReviewUpdate is a standalone struct
func (*ReviewUpdate) UnmarshalJSON ¶
func (obj *ReviewUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ReviewUpdateAction ¶
type ReviewUpdateAction interface{}
ReviewUpdateAction uses action as discriminator attribute
type ReviewUpdateWithIDInput ¶
type ReviewUpdateWithIDInput struct { ID string Version int Actions []ReviewUpdateAction }
ReviewUpdateWithIDInput is input for function ReviewUpdateWithID
func (*ReviewUpdateWithIDInput) Validate ¶
func (input *ReviewUpdateWithIDInput) Validate() error
type ReviewUpdateWithKeyInput ¶
type ReviewUpdateWithKeyInput struct { Key string Version int Actions []ReviewUpdateAction }
ReviewUpdateWithKeyInput is input for function ReviewUpdateWithKey
func (*ReviewUpdateWithKeyInput) Validate ¶
func (input *ReviewUpdateWithKeyInput) Validate() error
type RoundingMode ¶
type RoundingMode string
RoundingMode is an enum type
const ( RoundingModeHalfEven RoundingMode = "HalfEven" RoundingModeHalfUp RoundingMode = "HalfUp" RoundingModeHalfDown RoundingMode = "HalfDown" )
Enum values for RoundingMode
type ScopedPrice ¶
type ScopedPrice struct { Value TypedMoney `json:"value"` ValidUntil *time.Time `json:"validUntil,omitempty"` ValidFrom *time.Time `json:"validFrom,omitempty"` ID string `json:"id"` Discounted *DiscountedPrice `json:"discounted,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CurrentValue TypedMoney `json:"currentValue"` Country CountryCode `json:"country,omitempty"` Channel *ChannelReference `json:"channel,omitempty"` }
ScopedPrice is a standalone struct
func (*ScopedPrice) UnmarshalJSON ¶
func (obj *ScopedPrice) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ScoreShippingRateInput ¶
type ScoreShippingRateInput struct {
Score float64 `json:"score"`
}
ScoreShippingRateInput implements the interface ShippingRateInput
func (ScoreShippingRateInput) MarshalJSON ¶
func (obj ScoreShippingRateInput) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ScoreShippingRateInputDraft ¶
type ScoreShippingRateInputDraft struct {
Score float64 `json:"score"`
}
ScoreShippingRateInputDraft implements the interface ShippingRateInputDraft
func (ScoreShippingRateInputDraft) MarshalJSON ¶
func (obj ScoreShippingRateInputDraft) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type SearchKeyword ¶
type SearchKeyword struct { Text string `json:"text"` SuggestTokenizer SuggestTokenizer `json:"suggestTokenizer,omitempty"` }
SearchKeyword is a standalone struct
func (*SearchKeyword) UnmarshalJSON ¶
func (obj *SearchKeyword) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type SelectionMode ¶
type SelectionMode string
SelectionMode is an enum type
const ( SelectionModeCheapest SelectionMode = "Cheapest" SelectionModeMostExpensive SelectionMode = "MostExpensive" )
Enum values for SelectionMode
type ShipmentState ¶
type ShipmentState string
ShipmentState is an enum type
const ( ShipmentStateShipped ShipmentState = "Shipped" ShipmentStateReady ShipmentState = "Ready" ShipmentStatePending ShipmentState = "Pending" ShipmentStateDelayed ShipmentState = "Delayed" ShipmentStatePartial ShipmentState = "Partial" ShipmentStateBackorder ShipmentState = "Backorder" )
Enum values for ShipmentState
type ShippingInfo ¶
type ShippingInfo struct { TaxedPrice *TaxedItemPrice `json:"taxedPrice,omitempty"` TaxRate *TaxRate `json:"taxRate,omitempty"` TaxCategory *TaxCategoryReference `json:"taxCategory,omitempty"` ShippingRate *ShippingRate `json:"shippingRate"` ShippingMethodState ShippingMethodState `json:"shippingMethodState"` ShippingMethodName string `json:"shippingMethodName"` ShippingMethod *ShippingMethodReference `json:"shippingMethod,omitempty"` Price TypedMoney `json:"price"` DiscountedPrice *DiscountedLineItemPrice `json:"discountedPrice,omitempty"` Deliveries []Delivery `json:"deliveries,omitempty"` }
ShippingInfo is a standalone struct
func (*ShippingInfo) UnmarshalJSON ¶
func (obj *ShippingInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ShippingInfoImportDraft ¶
type ShippingInfoImportDraft struct { TaxRate *TaxRate `json:"taxRate,omitempty"` TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"` ShippingRate *ShippingRateDraft `json:"shippingRate"` ShippingMethodState ShippingMethodState `json:"shippingMethodState,omitempty"` ShippingMethodName string `json:"shippingMethodName"` ShippingMethod *ShippingMethodResourceIdentifier `json:"shippingMethod,omitempty"` Price *Money `json:"price"` DiscountedPrice *DiscountedLineItemPriceDraft `json:"discountedPrice,omitempty"` Deliveries []Delivery `json:"deliveries,omitempty"` }
ShippingInfoImportDraft is a standalone struct
type ShippingMethod ¶
type ShippingMethod struct { ZoneRates []ZoneRate `json:"zoneRates"` Version int `json:"version"` TaxCategory *TaxCategoryReference `json:"taxCategory"` Predicate string `json:"predicate,omitempty"` Name string `json:"name"` LocalizedDescription *LocalizedString `json:"localizedDescription,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` IsDefault bool `json:"isDefault"` ID string `json:"id"` Description string `json:"description,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
ShippingMethod is of type BaseResource
type ShippingMethodAddShippingRateAction ¶
type ShippingMethodAddShippingRateAction struct { Zone *ZoneResourceIdentifier `json:"zone"` ShippingRate *ShippingRateDraft `json:"shippingRate"` }
ShippingMethodAddShippingRateAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodAddShippingRateAction) MarshalJSON ¶
func (obj ShippingMethodAddShippingRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodAddZoneAction ¶
type ShippingMethodAddZoneAction struct {
Zone *ZoneResourceIdentifier `json:"zone"`
}
ShippingMethodAddZoneAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodAddZoneAction) MarshalJSON ¶
func (obj ShippingMethodAddZoneAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodChangeIsDefaultAction ¶
type ShippingMethodChangeIsDefaultAction struct {
IsDefault bool `json:"isDefault"`
}
ShippingMethodChangeIsDefaultAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodChangeIsDefaultAction) MarshalJSON ¶
func (obj ShippingMethodChangeIsDefaultAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodChangeNameAction ¶
type ShippingMethodChangeNameAction struct {
Name string `json:"name"`
}
ShippingMethodChangeNameAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodChangeNameAction) MarshalJSON ¶
func (obj ShippingMethodChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodChangeTaxCategoryAction ¶
type ShippingMethodChangeTaxCategoryAction struct {
TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory"`
}
ShippingMethodChangeTaxCategoryAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodChangeTaxCategoryAction) MarshalJSON ¶
func (obj ShippingMethodChangeTaxCategoryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodDoesNotMatchCartError ¶
type ShippingMethodDoesNotMatchCartError struct {
Message string `json:"message"`
}
ShippingMethodDoesNotMatchCartError implements the interface ErrorObject
func (ShippingMethodDoesNotMatchCartError) Error ¶
func (obj ShippingMethodDoesNotMatchCartError) Error() string
func (ShippingMethodDoesNotMatchCartError) MarshalJSON ¶
func (obj ShippingMethodDoesNotMatchCartError) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodDraft ¶
type ShippingMethodDraft struct { ZoneRates []ZoneRateDraft `json:"zoneRates"` TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory"` Predicate string `json:"predicate,omitempty"` Name string `json:"name"` LocalizedDescription *LocalizedString `json:"localizedDescription,omitempty"` Key string `json:"key,omitempty"` IsDefault bool `json:"isDefault"` Description string `json:"description,omitempty"` }
ShippingMethodDraft is a standalone struct
type ShippingMethodMatchingCartInput ¶
type ShippingMethodMatchingCartInput struct {
CartID string `url:"cartId"`
}
ShippingMethodMatchingCartInput is input for function ShippingMethodMatchingCart
type ShippingMethodMatchingLocationInput ¶
type ShippingMethodMatchingLocationInput struct { Country string `url:"country"` Currency string `url:"currency,omitempty"` State string `url:"state,omitempty"` }
ShippingMethodMatchingLocationInput is input for function ShippingMethodMatchingLocation
type ShippingMethodMatchingOrdereditInput ¶
type ShippingMethodMatchingOrdereditInput struct { Country string `url:"country"` OrderEditID string `url:"orderEditId"` State string `url:"state,omitempty"` }
ShippingMethodMatchingOrdereditInput is input for function ShippingMethodMatchingOrderedit
type ShippingMethodPagedQueryResponse ¶
type ShippingMethodPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []ShippingMethod `json:"results"` Offset int `json:"offset,omitempty"` Limit int `json:"limit,omitempty"` Count int `json:"count"` }
ShippingMethodPagedQueryResponse is a standalone struct
type ShippingMethodReference ¶
type ShippingMethodReference struct { ID string `json:"id"` Obj *ShippingMethod `json:"obj,omitempty"` }
ShippingMethodReference implements the interface Reference
func (ShippingMethodReference) MarshalJSON ¶
func (obj ShippingMethodReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodRemoveShippingRateAction ¶
type ShippingMethodRemoveShippingRateAction struct { Zone *ZoneResourceIdentifier `json:"zone"` ShippingRate *ShippingRateDraft `json:"shippingRate"` }
ShippingMethodRemoveShippingRateAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodRemoveShippingRateAction) MarshalJSON ¶
func (obj ShippingMethodRemoveShippingRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodRemoveZoneAction ¶
type ShippingMethodRemoveZoneAction struct {
Zone *ZoneResourceIdentifier `json:"zone"`
}
ShippingMethodRemoveZoneAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodRemoveZoneAction) MarshalJSON ¶
func (obj ShippingMethodRemoveZoneAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodResourceIdentifier ¶
type ShippingMethodResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
ShippingMethodResourceIdentifier implements the interface ResourceIdentifier
func (ShippingMethodResourceIdentifier) MarshalJSON ¶
func (obj ShippingMethodResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodSetDescriptionAction ¶
type ShippingMethodSetDescriptionAction struct {
Description string `json:"description,omitempty"`
}
ShippingMethodSetDescriptionAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodSetDescriptionAction) MarshalJSON ¶
func (obj ShippingMethodSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodSetKeyAction ¶
type ShippingMethodSetKeyAction struct {
Key string `json:"key,omitempty"`
}
ShippingMethodSetKeyAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodSetKeyAction) MarshalJSON ¶
func (obj ShippingMethodSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodSetLocalizedDescriptionAction ¶
type ShippingMethodSetLocalizedDescriptionAction struct {
LocalizedDescription string `json:"localizedDescription,omitempty"`
}
ShippingMethodSetLocalizedDescriptionAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodSetLocalizedDescriptionAction) MarshalJSON ¶
func (obj ShippingMethodSetLocalizedDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodSetPredicateAction ¶
type ShippingMethodSetPredicateAction struct {
Predicate string `json:"predicate,omitempty"`
}
ShippingMethodSetPredicateAction implements the interface ShippingMethodUpdateAction
func (ShippingMethodSetPredicateAction) MarshalJSON ¶
func (obj ShippingMethodSetPredicateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShippingMethodState ¶
type ShippingMethodState string
ShippingMethodState is an enum type
const ( ShippingMethodStateDoesNotMatchCart ShippingMethodState = "DoesNotMatchCart" ShippingMethodStateMatchesCart ShippingMethodState = "MatchesCart" )
Enum values for ShippingMethodState
type ShippingMethodUpdate ¶
type ShippingMethodUpdate struct { Version int `json:"version"` Actions []ShippingMethodUpdateAction `json:"actions"` }
ShippingMethodUpdate is a standalone struct
func (*ShippingMethodUpdate) UnmarshalJSON ¶
func (obj *ShippingMethodUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ShippingMethodUpdateAction ¶
type ShippingMethodUpdateAction interface{}
ShippingMethodUpdateAction uses action as discriminator attribute
type ShippingMethodUpdateWithIDInput ¶
type ShippingMethodUpdateWithIDInput struct { ID string Version int Actions []ShippingMethodUpdateAction }
ShippingMethodUpdateWithIDInput is input for function ShippingMethodUpdateWithID
func (*ShippingMethodUpdateWithIDInput) Validate ¶
func (input *ShippingMethodUpdateWithIDInput) Validate() error
type ShippingMethodUpdateWithKeyInput ¶
type ShippingMethodUpdateWithKeyInput struct { Key string Version int Actions []ShippingMethodUpdateAction }
ShippingMethodUpdateWithKeyInput is input for function ShippingMethodUpdateWithKey
func (*ShippingMethodUpdateWithKeyInput) Validate ¶
func (input *ShippingMethodUpdateWithKeyInput) Validate() error
type ShippingRate ¶
type ShippingRate struct { Tiers []ShippingRatePriceTier `json:"tiers"` Price TypedMoney `json:"price"` IsMatching bool `json:"isMatching"` FreeAbove TypedMoney `json:"freeAbove,omitempty"` }
ShippingRate is a standalone struct
func (*ShippingRate) UnmarshalJSON ¶
func (obj *ShippingRate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ShippingRateDraft ¶
type ShippingRateDraft struct { Tiers []ShippingRatePriceTier `json:"tiers,omitempty"` Price *Money `json:"price"` FreeAbove *Money `json:"freeAbove,omitempty"` }
ShippingRateDraft is a standalone struct
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{}
ShippingRateInput uses type as discriminator attribute
type ShippingRateInputDraft ¶
type ShippingRateInputDraft interface{}
ShippingRateInputDraft uses type as discriminator attribute
type ShippingRateInputType ¶
type ShippingRateInputType interface{}
ShippingRateInputType uses type as discriminator attribute
type ShippingRatePriceTier ¶
type ShippingRatePriceTier interface{}
ShippingRatePriceTier uses type as discriminator attribute
type ShippingRateTierType ¶
type ShippingRateTierType string
ShippingRateTierType is an enum type
const ( ShippingRateTierTypeCartValue ShippingRateTierType = "CartValue" ShippingRateTierTypeCartClassification ShippingRateTierType = "CartClassification" ShippingRateTierTypeCartScore ShippingRateTierType = "CartScore" )
Enum values for ShippingRateTierType
type ShoppingList ¶
type ShoppingList struct { Version int `json:"version"` TextLineItems []TextLineItem `json:"textLineItems,omitempty"` Slug *LocalizedString `json:"slug,omitempty"` Name *LocalizedString `json:"name"` LineItems []ShoppingListLineItem `json:"lineItems,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` Description *LocalizedString `json:"description,omitempty"` DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"` Customer *CustomerReference `json:"customer,omitempty"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` AnonymousID string `json:"anonymousId,omitempty"` }
ShoppingList is of type BaseResource
type ShoppingListAddLineItemAction ¶
type ShoppingListAddLineItemAction struct { VariantID int `json:"variantId,omitempty"` SKU string `json:"sku,omitempty"` Quantity int `json:"quantity,omitempty"` ProductID string `json:"productId,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
ShoppingListAddLineItemAction implements the interface ShoppingListUpdateAction
func (ShoppingListAddLineItemAction) MarshalJSON ¶
func (obj ShoppingListAddLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListAddTextLineItemAction ¶
type ShoppingListAddTextLineItemAction struct { Quantity int `json:"quantity,omitempty"` Name *LocalizedString `json:"name"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
ShoppingListAddTextLineItemAction implements the interface ShoppingListUpdateAction
func (ShoppingListAddTextLineItemAction) MarshalJSON ¶
func (obj ShoppingListAddTextLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListChangeLineItemQuantityAction ¶
type ShoppingListChangeLineItemQuantityAction struct { Quantity int `json:"quantity"` LineItemID string `json:"lineItemId"` }
ShoppingListChangeLineItemQuantityAction implements the interface ShoppingListUpdateAction
func (ShoppingListChangeLineItemQuantityAction) MarshalJSON ¶
func (obj ShoppingListChangeLineItemQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListChangeLineItemsOrderAction ¶
type ShoppingListChangeLineItemsOrderAction struct {
LineItemOrder []string `json:"lineItemOrder"`
}
ShoppingListChangeLineItemsOrderAction implements the interface ShoppingListUpdateAction
func (ShoppingListChangeLineItemsOrderAction) MarshalJSON ¶
func (obj ShoppingListChangeLineItemsOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListChangeNameAction ¶
type ShoppingListChangeNameAction struct {
Name *LocalizedString `json:"name"`
}
ShoppingListChangeNameAction implements the interface ShoppingListUpdateAction
func (ShoppingListChangeNameAction) MarshalJSON ¶
func (obj ShoppingListChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListChangeTextLineItemNameAction ¶
type ShoppingListChangeTextLineItemNameAction struct { TextLineItemID string `json:"textLineItemId"` Name *LocalizedString `json:"name"` }
ShoppingListChangeTextLineItemNameAction implements the interface ShoppingListUpdateAction
func (ShoppingListChangeTextLineItemNameAction) MarshalJSON ¶
func (obj ShoppingListChangeTextLineItemNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListChangeTextLineItemQuantityAction ¶
type ShoppingListChangeTextLineItemQuantityAction struct { TextLineItemID string `json:"textLineItemId"` Quantity int `json:"quantity"` }
ShoppingListChangeTextLineItemQuantityAction implements the interface ShoppingListUpdateAction
func (ShoppingListChangeTextLineItemQuantityAction) MarshalJSON ¶
func (obj ShoppingListChangeTextLineItemQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListChangeTextLineItemsOrderAction ¶
type ShoppingListChangeTextLineItemsOrderAction struct {
TextLineItemOrder []string `json:"textLineItemOrder"`
}
ShoppingListChangeTextLineItemsOrderAction implements the interface ShoppingListUpdateAction
func (ShoppingListChangeTextLineItemsOrderAction) MarshalJSON ¶
func (obj ShoppingListChangeTextLineItemsOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListDraft ¶
type ShoppingListDraft struct { TextLineItems []TextLineItemDraft `json:"textLineItems,omitempty"` Slug *LocalizedString `json:"slug,omitempty"` Name *LocalizedString `json:"name"` LineItems []ShoppingListLineItemDraft `json:"lineItems,omitempty"` Key string `json:"key,omitempty"` Description *LocalizedString `json:"description,omitempty"` DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"` Customer *CustomerResourceIdentifier `json:"customer,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
ShoppingListDraft is a standalone struct
type ShoppingListLineItem ¶
type ShoppingListLineItem struct { VariantID int `json:"variantId,omitempty"` Variant *ProductVariant `json:"variant,omitempty"` Quantity float64 `json:"quantity"` ProductType *ProductTypeReference `json:"productType"` ProductSlug *LocalizedString `json:"productSlug,omitempty"` ProductID string `json:"productId"` Name *LocalizedString `json:"name"` ID string `json:"id"` DeactivatedAt *time.Time `json:"deactivatedAt,omitempty"` Custom *CustomFields `json:"custom,omitempty"` AddedAt time.Time `json:"addedAt"` }
ShoppingListLineItem is a standalone struct
type ShoppingListLineItemDraft ¶
type ShoppingListLineItemDraft struct { VariantID int `json:"variantId,omitempty"` SKU string `json:"sku,omitempty"` Quantity float64 `json:"quantity,omitempty"` ProductID string `json:"productId,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
ShoppingListLineItemDraft is a standalone struct
type ShoppingListPagedQueryResponse ¶
type ShoppingListPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []ShoppingList `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
ShoppingListPagedQueryResponse is a standalone struct
type ShoppingListReference ¶
type ShoppingListReference struct { ID string `json:"id"` Obj *ShoppingList `json:"obj,omitempty"` }
ShoppingListReference implements the interface Reference
func (ShoppingListReference) MarshalJSON ¶
func (obj ShoppingListReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListRemoveLineItemAction ¶
type ShoppingListRemoveLineItemAction struct { Quantity int `json:"quantity,omitempty"` LineItemID string `json:"lineItemId"` }
ShoppingListRemoveLineItemAction implements the interface ShoppingListUpdateAction
func (ShoppingListRemoveLineItemAction) MarshalJSON ¶
func (obj ShoppingListRemoveLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListRemoveTextLineItemAction ¶
type ShoppingListRemoveTextLineItemAction struct { TextLineItemID string `json:"textLineItemId"` Quantity int `json:"quantity,omitempty"` }
ShoppingListRemoveTextLineItemAction implements the interface ShoppingListUpdateAction
func (ShoppingListRemoveTextLineItemAction) MarshalJSON ¶
func (obj ShoppingListRemoveTextLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListResourceIdentifier ¶
type ShoppingListResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
ShoppingListResourceIdentifier implements the interface ResourceIdentifier
func (ShoppingListResourceIdentifier) MarshalJSON ¶
func (obj ShoppingListResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetAnonymousIDAction ¶
type ShoppingListSetAnonymousIDAction struct {
AnonymousID string `json:"anonymousId,omitempty"`
}
ShoppingListSetAnonymousIDAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetAnonymousIDAction) MarshalJSON ¶
func (obj ShoppingListSetAnonymousIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetCustomFieldAction ¶
type ShoppingListSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
ShoppingListSetCustomFieldAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetCustomFieldAction) MarshalJSON ¶
func (obj ShoppingListSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetCustomTypeAction ¶
type ShoppingListSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
ShoppingListSetCustomTypeAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetCustomTypeAction) MarshalJSON ¶
func (obj ShoppingListSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetCustomerAction ¶
type ShoppingListSetCustomerAction struct {
Customer *CustomerResourceIdentifier `json:"customer,omitempty"`
}
ShoppingListSetCustomerAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetCustomerAction) MarshalJSON ¶
func (obj ShoppingListSetCustomerAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetDeleteDaysAfterLastModificationAction ¶
type ShoppingListSetDeleteDaysAfterLastModificationAction struct {
DeleteDaysAfterLastModification int `json:"deleteDaysAfterLastModification,omitempty"`
}
ShoppingListSetDeleteDaysAfterLastModificationAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetDeleteDaysAfterLastModificationAction) MarshalJSON ¶
func (obj ShoppingListSetDeleteDaysAfterLastModificationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetDescriptionAction ¶
type ShoppingListSetDescriptionAction struct {
Description *LocalizedString `json:"description,omitempty"`
}
ShoppingListSetDescriptionAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetDescriptionAction) MarshalJSON ¶
func (obj ShoppingListSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetKeyAction ¶
type ShoppingListSetKeyAction struct {
Key string `json:"key,omitempty"`
}
ShoppingListSetKeyAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetKeyAction) MarshalJSON ¶
func (obj ShoppingListSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetLineItemCustomFieldAction ¶
type ShoppingListSetLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` LineItemID string `json:"lineItemId"` }
ShoppingListSetLineItemCustomFieldAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetLineItemCustomFieldAction) MarshalJSON ¶
func (obj ShoppingListSetLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetLineItemCustomTypeAction ¶
type ShoppingListSetLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` LineItemID string `json:"lineItemId"` Fields *FieldContainer `json:"fields,omitempty"` }
ShoppingListSetLineItemCustomTypeAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetLineItemCustomTypeAction) MarshalJSON ¶
func (obj ShoppingListSetLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetSlugAction ¶
type ShoppingListSetSlugAction struct {
Slug *LocalizedString `json:"slug,omitempty"`
}
ShoppingListSetSlugAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetSlugAction) MarshalJSON ¶
func (obj ShoppingListSetSlugAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetTextLineItemCustomFieldAction ¶
type ShoppingListSetTextLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` TextLineItemID string `json:"textLineItemId"` Name string `json:"name"` }
ShoppingListSetTextLineItemCustomFieldAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetTextLineItemCustomFieldAction) MarshalJSON ¶
func (obj ShoppingListSetTextLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetTextLineItemCustomTypeAction ¶
type ShoppingListSetTextLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` TextLineItemID string `json:"textLineItemId"` Fields *FieldContainer `json:"fields,omitempty"` }
ShoppingListSetTextLineItemCustomTypeAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetTextLineItemCustomTypeAction) MarshalJSON ¶
func (obj ShoppingListSetTextLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListSetTextLineItemDescriptionAction ¶
type ShoppingListSetTextLineItemDescriptionAction struct { TextLineItemID string `json:"textLineItemId"` Description *LocalizedString `json:"description,omitempty"` }
ShoppingListSetTextLineItemDescriptionAction implements the interface ShoppingListUpdateAction
func (ShoppingListSetTextLineItemDescriptionAction) MarshalJSON ¶
func (obj ShoppingListSetTextLineItemDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ShoppingListUpdate ¶
type ShoppingListUpdate struct { Version int `json:"version"` Actions []ShoppingListUpdateAction `json:"actions"` }
ShoppingListUpdate is a standalone struct
func (*ShoppingListUpdate) UnmarshalJSON ¶
func (obj *ShoppingListUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ShoppingListUpdateAction ¶
type ShoppingListUpdateAction interface{}
ShoppingListUpdateAction uses action as discriminator attribute
type ShoppingListUpdateWithIDInput ¶
type ShoppingListUpdateWithIDInput struct { ID string Version int Actions []ShoppingListUpdateAction }
ShoppingListUpdateWithIDInput is input for function ShoppingListUpdateWithID
func (*ShoppingListUpdateWithIDInput) Validate ¶
func (input *ShoppingListUpdateWithIDInput) Validate() error
type ShoppingListUpdateWithKeyInput ¶
type ShoppingListUpdateWithKeyInput struct { Key string Version int Actions []ShoppingListUpdateAction }
ShoppingListUpdateWithKeyInput is input for function ShoppingListUpdateWithKey
func (*ShoppingListUpdateWithKeyInput) Validate ¶
func (input *ShoppingListUpdateWithKeyInput) Validate() error
type SnsDestination ¶
type SnsDestination struct { TopicArn string `json:"topicArn"` AccessSecret string `json:"accessSecret"` AccessKey string `json:"accessKey"` }
SnsDestination implements the interface Destination
func (SnsDestination) MarshalJSON ¶
func (obj SnsDestination) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type SqsDestination ¶
type SqsDestination struct { Region string `json:"region"` QueueURL string `json:"queueUrl"` AccessSecret string `json:"accessSecret"` AccessKey string `json:"accessKey"` }
SqsDestination implements the interface Destination
func (SqsDestination) MarshalJSON ¶
func (obj SqsDestination) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StackingMode ¶
type StackingMode string
StackingMode is an enum type
const ( StackingModeStacking StackingMode = "Stacking" StackingModeStopAfterThisDiscount StackingMode = "StopAfterThisDiscount" )
Enum values for StackingMode
type StagedOrder ¶
type StagedOrder struct { Version int `json:"version"` TotalPrice TypedMoney `json:"totalPrice"` TaxedPrice *TaxedPrice `json:"taxedPrice,omitempty"` TaxRoundingMode RoundingMode `json:"taxRoundingMode,omitempty"` TaxMode TaxMode `json:"taxMode,omitempty"` TaxCalculationMode TaxCalculationMode `json:"taxCalculationMode,omitempty"` SyncInfo []SyncInfo `json:"syncInfo"` Store *StoreKeyReference `json:"store,omitempty"` State *StateReference `json:"state,omitempty"` ShippingRateInput ShippingRateInput `json:"shippingRateInput,omitempty"` ShippingInfo *ShippingInfo `json:"shippingInfo,omitempty"` ShippingAddress *Address `json:"shippingAddress,omitempty"` ShipmentState ShipmentState `json:"shipmentState,omitempty"` ReturnInfo []ReturnInfo `json:"returnInfo,omitempty"` RefusedGifts []CartDiscountReference `json:"refusedGifts"` PaymentState PaymentState `json:"paymentState,omitempty"` PaymentInfo *PaymentInfo `json:"paymentInfo,omitempty"` Origin CartOrigin `json:"origin"` OrderState OrderState `json:"orderState"` OrderNumber string `json:"orderNumber,omitempty"` Locale string `json:"locale,omitempty"` LineItems []LineItem `json:"lineItems"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` LastMessageSequenceNumber int `json:"lastMessageSequenceNumber"` ItemShippingAddresses []Address `json:"itemShippingAddresses,omitempty"` InventoryMode InventoryMode `json:"inventoryMode,omitempty"` ID string `json:"id"` DiscountCodes []DiscountCodeInfo `json:"discountCodes,omitempty"` CustomerID string `json:"customerId,omitempty"` CustomerGroup *CustomerGroupReference `json:"customerGroup,omitempty"` CustomerEmail string `json:"customerEmail,omitempty"` CustomLineItems []CustomLineItem `json:"customLineItems"` Custom *CustomFields `json:"custom,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Country string `json:"country,omitempty"` CompletedAt *time.Time `json:"completedAt,omitempty"` Cart *CartReference `json:"cart,omitempty"` BillingAddress *Address `json:"billingAddress,omitempty"` AnonymousID string `json:"anonymousId,omitempty"` }
StagedOrder is of type Order
type StagedOrderAddCustomLineItemAction ¶
type StagedOrderAddCustomLineItemAction struct { TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"` Slug string `json:"slug"` Quantity float64 `json:"quantity,omitempty"` Name *LocalizedString `json:"name"` Money *Money `json:"money"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` }
StagedOrderAddCustomLineItemAction implements the interface StagedOrderUpdateAction
func (StagedOrderAddCustomLineItemAction) MarshalJSON ¶
func (obj StagedOrderAddCustomLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderAddDeliveryAction ¶
type StagedOrderAddDeliveryAction struct { Parcels []ParcelDraft `json:"parcels,omitempty"` Items []DeliveryItem `json:"items,omitempty"` Address *Address `json:"address,omitempty"` }
StagedOrderAddDeliveryAction implements the interface StagedOrderUpdateAction
func (StagedOrderAddDeliveryAction) MarshalJSON ¶
func (obj StagedOrderAddDeliveryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderAddDiscountCodeAction ¶
type StagedOrderAddDiscountCodeAction struct {
Code string `json:"code"`
}
StagedOrderAddDiscountCodeAction implements the interface StagedOrderUpdateAction
func (StagedOrderAddDiscountCodeAction) MarshalJSON ¶
func (obj StagedOrderAddDiscountCodeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderAddItemShippingAddressAction ¶
type StagedOrderAddItemShippingAddressAction struct {
Address *Address `json:"address"`
}
StagedOrderAddItemShippingAddressAction implements the interface StagedOrderUpdateAction
func (StagedOrderAddItemShippingAddressAction) MarshalJSON ¶
func (obj StagedOrderAddItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderAddLineItemAction ¶
type StagedOrderAddLineItemAction struct { VariantID int `json:"variantId,omitempty"` SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` SKU string `json:"sku,omitempty"` ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` Quantity float64 `json:"quantity,omitempty"` ProductID string `json:"productId,omitempty"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
StagedOrderAddLineItemAction implements the interface StagedOrderUpdateAction
func (StagedOrderAddLineItemAction) MarshalJSON ¶
func (obj StagedOrderAddLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderAddParcelToDeliveryAction ¶
type StagedOrderAddParcelToDeliveryAction struct { TrackingData *TrackingData `json:"trackingData,omitempty"` Measurements *ParcelMeasurements `json:"measurements,omitempty"` Items []DeliveryItem `json:"items,omitempty"` DeliveryID string `json:"deliveryId"` }
StagedOrderAddParcelToDeliveryAction implements the interface StagedOrderUpdateAction
func (StagedOrderAddParcelToDeliveryAction) MarshalJSON ¶
func (obj StagedOrderAddParcelToDeliveryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderAddPaymentAction ¶
type StagedOrderAddPaymentAction struct {
Payment *PaymentResourceIdentifier `json:"payment"`
}
StagedOrderAddPaymentAction implements the interface StagedOrderUpdateAction
func (StagedOrderAddPaymentAction) MarshalJSON ¶
func (obj StagedOrderAddPaymentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderAddReturnInfoAction ¶
type StagedOrderAddReturnInfoAction struct { ReturnTrackingID string `json:"returnTrackingId,omitempty"` ReturnDate *time.Time `json:"returnDate,omitempty"` Items []ReturnItemDraft `json:"items"` }
StagedOrderAddReturnInfoAction implements the interface StagedOrderUpdateAction
func (StagedOrderAddReturnInfoAction) MarshalJSON ¶
func (obj StagedOrderAddReturnInfoAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderAddShoppingListAction ¶
type StagedOrderAddShoppingListAction struct { SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel,omitempty"` ShoppingList *ShoppingListResourceIdentifier `json:"shoppingList"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` }
StagedOrderAddShoppingListAction implements the interface StagedOrderUpdateAction
func (StagedOrderAddShoppingListAction) MarshalJSON ¶
func (obj StagedOrderAddShoppingListAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderChangeCustomLineItemMoneyAction ¶
type StagedOrderChangeCustomLineItemMoneyAction struct { Money *Money `json:"money"` CustomLineItemID string `json:"customLineItemId"` }
StagedOrderChangeCustomLineItemMoneyAction implements the interface StagedOrderUpdateAction
func (StagedOrderChangeCustomLineItemMoneyAction) MarshalJSON ¶
func (obj StagedOrderChangeCustomLineItemMoneyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderChangeCustomLineItemQuantityAction ¶
type StagedOrderChangeCustomLineItemQuantityAction struct { Quantity float64 `json:"quantity"` CustomLineItemID string `json:"customLineItemId"` }
StagedOrderChangeCustomLineItemQuantityAction implements the interface StagedOrderUpdateAction
func (StagedOrderChangeCustomLineItemQuantityAction) MarshalJSON ¶
func (obj StagedOrderChangeCustomLineItemQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderChangeLineItemQuantityAction ¶
type StagedOrderChangeLineItemQuantityAction struct { Quantity float64 `json:"quantity"` LineItemID string `json:"lineItemId"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` }
StagedOrderChangeLineItemQuantityAction implements the interface StagedOrderUpdateAction
func (StagedOrderChangeLineItemQuantityAction) MarshalJSON ¶
func (obj StagedOrderChangeLineItemQuantityAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderChangeOrderStateAction ¶
type StagedOrderChangeOrderStateAction struct {
OrderState OrderState `json:"orderState"`
}
StagedOrderChangeOrderStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderChangeOrderStateAction) MarshalJSON ¶
func (obj StagedOrderChangeOrderStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderChangePaymentStateAction ¶
type StagedOrderChangePaymentStateAction struct {
PaymentState PaymentState `json:"paymentState,omitempty"`
}
StagedOrderChangePaymentStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderChangePaymentStateAction) MarshalJSON ¶
func (obj StagedOrderChangePaymentStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderChangeShipmentStateAction ¶
type StagedOrderChangeShipmentStateAction struct {
ShipmentState ShipmentState `json:"shipmentState,omitempty"`
}
StagedOrderChangeShipmentStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderChangeShipmentStateAction) MarshalJSON ¶
func (obj StagedOrderChangeShipmentStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderChangeTaxCalculationModeAction ¶
type StagedOrderChangeTaxCalculationModeAction struct {
TaxCalculationMode TaxCalculationMode `json:"taxCalculationMode"`
}
StagedOrderChangeTaxCalculationModeAction implements the interface StagedOrderUpdateAction
func (StagedOrderChangeTaxCalculationModeAction) MarshalJSON ¶
func (obj StagedOrderChangeTaxCalculationModeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderChangeTaxModeAction ¶
type StagedOrderChangeTaxModeAction struct {
TaxMode TaxMode `json:"taxMode"`
}
StagedOrderChangeTaxModeAction implements the interface StagedOrderUpdateAction
func (StagedOrderChangeTaxModeAction) MarshalJSON ¶
func (obj StagedOrderChangeTaxModeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderChangeTaxRoundingModeAction ¶
type StagedOrderChangeTaxRoundingModeAction struct {
TaxRoundingMode RoundingMode `json:"taxRoundingMode"`
}
StagedOrderChangeTaxRoundingModeAction implements the interface StagedOrderUpdateAction
func (StagedOrderChangeTaxRoundingModeAction) MarshalJSON ¶
func (obj StagedOrderChangeTaxRoundingModeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderImportCustomLineItemStateAction ¶
type StagedOrderImportCustomLineItemStateAction struct { State []ItemState `json:"state"` CustomLineItemID string `json:"customLineItemId"` }
StagedOrderImportCustomLineItemStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderImportCustomLineItemStateAction) MarshalJSON ¶
func (obj StagedOrderImportCustomLineItemStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderImportLineItemStateAction ¶
type StagedOrderImportLineItemStateAction struct { State []ItemState `json:"state"` LineItemID string `json:"lineItemId"` }
StagedOrderImportLineItemStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderImportLineItemStateAction) MarshalJSON ¶
func (obj StagedOrderImportLineItemStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderRemoveCustomLineItemAction ¶
type StagedOrderRemoveCustomLineItemAction struct {
CustomLineItemID string `json:"customLineItemId"`
}
StagedOrderRemoveCustomLineItemAction implements the interface StagedOrderUpdateAction
func (StagedOrderRemoveCustomLineItemAction) MarshalJSON ¶
func (obj StagedOrderRemoveCustomLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderRemoveDeliveryAction ¶
type StagedOrderRemoveDeliveryAction struct {
DeliveryID string `json:"deliveryId"`
}
StagedOrderRemoveDeliveryAction implements the interface StagedOrderUpdateAction
func (StagedOrderRemoveDeliveryAction) MarshalJSON ¶
func (obj StagedOrderRemoveDeliveryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderRemoveDiscountCodeAction ¶
type StagedOrderRemoveDiscountCodeAction struct {
DiscountCode *DiscountCodeReference `json:"discountCode"`
}
StagedOrderRemoveDiscountCodeAction implements the interface StagedOrderUpdateAction
func (StagedOrderRemoveDiscountCodeAction) MarshalJSON ¶
func (obj StagedOrderRemoveDiscountCodeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderRemoveItemShippingAddressAction ¶
type StagedOrderRemoveItemShippingAddressAction struct {
AddressKey string `json:"addressKey"`
}
StagedOrderRemoveItemShippingAddressAction implements the interface StagedOrderUpdateAction
func (StagedOrderRemoveItemShippingAddressAction) MarshalJSON ¶
func (obj StagedOrderRemoveItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderRemoveLineItemAction ¶
type StagedOrderRemoveLineItemAction struct { ShippingDetailsToRemove *ItemShippingDetailsDraft `json:"shippingDetailsToRemove,omitempty"` Quantity float64 `json:"quantity,omitempty"` LineItemID string `json:"lineItemId"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` ExternalPrice *Money `json:"externalPrice,omitempty"` }
StagedOrderRemoveLineItemAction implements the interface StagedOrderUpdateAction
func (StagedOrderRemoveLineItemAction) MarshalJSON ¶
func (obj StagedOrderRemoveLineItemAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderRemoveParcelFromDeliveryAction ¶
type StagedOrderRemoveParcelFromDeliveryAction struct {
ParcelID string `json:"parcelId"`
}
StagedOrderRemoveParcelFromDeliveryAction implements the interface StagedOrderUpdateAction
func (StagedOrderRemoveParcelFromDeliveryAction) MarshalJSON ¶
func (obj StagedOrderRemoveParcelFromDeliveryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderRemovePaymentAction ¶
type StagedOrderRemovePaymentAction struct {
Payment *PaymentResourceIdentifier `json:"payment"`
}
StagedOrderRemovePaymentAction implements the interface StagedOrderUpdateAction
func (StagedOrderRemovePaymentAction) MarshalJSON ¶
func (obj StagedOrderRemovePaymentAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetBillingAddressAction ¶
type StagedOrderSetBillingAddressAction struct {
Address *Address `json:"address,omitempty"`
}
StagedOrderSetBillingAddressAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetBillingAddressAction) MarshalJSON ¶
func (obj StagedOrderSetBillingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCountryAction ¶
type StagedOrderSetCountryAction struct {
Country string `json:"country,omitempty"`
}
StagedOrderSetCountryAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCountryAction) MarshalJSON ¶
func (obj StagedOrderSetCountryAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomFieldAction ¶
type StagedOrderSetCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` }
StagedOrderSetCustomFieldAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomFieldAction) MarshalJSON ¶
func (obj StagedOrderSetCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomLineItemCustomFieldAction ¶
type StagedOrderSetCustomLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` CustomLineItemID string `json:"customLineItemId"` }
StagedOrderSetCustomLineItemCustomFieldAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomLineItemCustomFieldAction) MarshalJSON ¶
func (obj StagedOrderSetCustomLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomLineItemCustomTypeAction ¶
type StagedOrderSetCustomLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
StagedOrderSetCustomLineItemCustomTypeAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomLineItemCustomTypeAction) MarshalJSON ¶
func (obj StagedOrderSetCustomLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomLineItemShippingDetailsAction ¶
type StagedOrderSetCustomLineItemShippingDetailsAction struct { ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
StagedOrderSetCustomLineItemShippingDetailsAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomLineItemShippingDetailsAction) MarshalJSON ¶
func (obj StagedOrderSetCustomLineItemShippingDetailsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomLineItemTaxAmountAction ¶
type StagedOrderSetCustomLineItemTaxAmountAction struct { ExternalTaxAmount *ExternalTaxAmountDraft `json:"externalTaxAmount,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
StagedOrderSetCustomLineItemTaxAmountAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomLineItemTaxAmountAction) MarshalJSON ¶
func (obj StagedOrderSetCustomLineItemTaxAmountAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomLineItemTaxRateAction ¶
type StagedOrderSetCustomLineItemTaxRateAction struct { ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` CustomLineItemID string `json:"customLineItemId"` }
StagedOrderSetCustomLineItemTaxRateAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomLineItemTaxRateAction) MarshalJSON ¶
func (obj StagedOrderSetCustomLineItemTaxRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomShippingMethodAction ¶
type StagedOrderSetCustomShippingMethodAction struct { TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"` ShippingRate *ShippingRateDraft `json:"shippingRate"` ShippingMethodName string `json:"shippingMethodName"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` }
StagedOrderSetCustomShippingMethodAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomShippingMethodAction) MarshalJSON ¶
func (obj StagedOrderSetCustomShippingMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomTypeAction ¶
type StagedOrderSetCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` Fields *FieldContainer `json:"fields,omitempty"` }
StagedOrderSetCustomTypeAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomTypeAction) MarshalJSON ¶
func (obj StagedOrderSetCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomerEmailAction ¶
type StagedOrderSetCustomerEmailAction struct {
Email string `json:"email,omitempty"`
}
StagedOrderSetCustomerEmailAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomerEmailAction) MarshalJSON ¶
func (obj StagedOrderSetCustomerEmailAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomerGroupAction ¶
type StagedOrderSetCustomerGroupAction struct {
CustomerGroup *CustomerGroupResourceIdentifier `json:"customerGroup,omitempty"`
}
StagedOrderSetCustomerGroupAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomerGroupAction) MarshalJSON ¶
func (obj StagedOrderSetCustomerGroupAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetCustomerIDAction ¶
type StagedOrderSetCustomerIDAction struct {
CustomerID string `json:"customerId,omitempty"`
}
StagedOrderSetCustomerIDAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetCustomerIDAction) MarshalJSON ¶
func (obj StagedOrderSetCustomerIDAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetDeliveryAddressAction ¶
type StagedOrderSetDeliveryAddressAction struct { DeliveryID string `json:"deliveryId"` Address *Address `json:"address,omitempty"` }
StagedOrderSetDeliveryAddressAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetDeliveryAddressAction) MarshalJSON ¶
func (obj StagedOrderSetDeliveryAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetDeliveryItemsAction ¶
type StagedOrderSetDeliveryItemsAction struct { Items []DeliveryItem `json:"items"` DeliveryID string `json:"deliveryId"` }
StagedOrderSetDeliveryItemsAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetDeliveryItemsAction) MarshalJSON ¶
func (obj StagedOrderSetDeliveryItemsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetLineItemCustomFieldAction ¶
type StagedOrderSetLineItemCustomFieldAction struct { Value interface{} `json:"value,omitempty"` Name string `json:"name"` LineItemID string `json:"lineItemId"` }
StagedOrderSetLineItemCustomFieldAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetLineItemCustomFieldAction) MarshalJSON ¶
func (obj StagedOrderSetLineItemCustomFieldAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetLineItemCustomTypeAction ¶
type StagedOrderSetLineItemCustomTypeAction struct { Type *TypeResourceIdentifier `json:"type,omitempty"` LineItemID string `json:"lineItemId"` Fields *FieldContainer `json:"fields,omitempty"` }
StagedOrderSetLineItemCustomTypeAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetLineItemCustomTypeAction) MarshalJSON ¶
func (obj StagedOrderSetLineItemCustomTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetLineItemDistributionChannelAction ¶
type StagedOrderSetLineItemDistributionChannelAction struct { LineItemID string `json:"lineItemId"` DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel,omitempty"` }
StagedOrderSetLineItemDistributionChannelAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetLineItemDistributionChannelAction) MarshalJSON ¶
func (obj StagedOrderSetLineItemDistributionChannelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetLineItemPriceAction ¶
type StagedOrderSetLineItemPriceAction struct { LineItemID string `json:"lineItemId"` ExternalPrice *Money `json:"externalPrice,omitempty"` }
StagedOrderSetLineItemPriceAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetLineItemPriceAction) MarshalJSON ¶
func (obj StagedOrderSetLineItemPriceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetLineItemShippingDetailsAction ¶
type StagedOrderSetLineItemShippingDetailsAction struct { ShippingDetails *ItemShippingDetailsDraft `json:"shippingDetails,omitempty"` LineItemID string `json:"lineItemId"` }
StagedOrderSetLineItemShippingDetailsAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetLineItemShippingDetailsAction) MarshalJSON ¶
func (obj StagedOrderSetLineItemShippingDetailsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetLineItemTaxAmountAction ¶
type StagedOrderSetLineItemTaxAmountAction struct { LineItemID string `json:"lineItemId"` ExternalTaxAmount *ExternalTaxAmountDraft `json:"externalTaxAmount,omitempty"` }
StagedOrderSetLineItemTaxAmountAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetLineItemTaxAmountAction) MarshalJSON ¶
func (obj StagedOrderSetLineItemTaxAmountAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetLineItemTaxRateAction ¶
type StagedOrderSetLineItemTaxRateAction struct { LineItemID string `json:"lineItemId"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` }
StagedOrderSetLineItemTaxRateAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetLineItemTaxRateAction) MarshalJSON ¶
func (obj StagedOrderSetLineItemTaxRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetLineItemTotalPriceAction ¶
type StagedOrderSetLineItemTotalPriceAction struct { LineItemID string `json:"lineItemId"` ExternalTotalPrice *ExternalLineItemTotalPrice `json:"externalTotalPrice,omitempty"` }
StagedOrderSetLineItemTotalPriceAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetLineItemTotalPriceAction) MarshalJSON ¶
func (obj StagedOrderSetLineItemTotalPriceAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetLocaleAction ¶
type StagedOrderSetLocaleAction struct {
Locale string `json:"locale,omitempty"`
}
StagedOrderSetLocaleAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetLocaleAction) MarshalJSON ¶
func (obj StagedOrderSetLocaleAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetOrderNumberAction ¶
type StagedOrderSetOrderNumberAction struct {
OrderNumber string `json:"orderNumber,omitempty"`
}
StagedOrderSetOrderNumberAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetOrderNumberAction) MarshalJSON ¶
func (obj StagedOrderSetOrderNumberAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetOrderTotalTaxAction ¶
type StagedOrderSetOrderTotalTaxAction struct { ExternalTotalGross *Money `json:"externalTotalGross"` ExternalTaxPortions []TaxPortionDraft `json:"externalTaxPortions,omitempty"` }
StagedOrderSetOrderTotalTaxAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetOrderTotalTaxAction) MarshalJSON ¶
func (obj StagedOrderSetOrderTotalTaxAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetParcelItemsAction ¶
type StagedOrderSetParcelItemsAction struct { ParcelID string `json:"parcelId"` Items []DeliveryItem `json:"items"` }
StagedOrderSetParcelItemsAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetParcelItemsAction) MarshalJSON ¶
func (obj StagedOrderSetParcelItemsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetParcelMeasurementsAction ¶
type StagedOrderSetParcelMeasurementsAction struct { ParcelID string `json:"parcelId"` Measurements *ParcelMeasurements `json:"measurements,omitempty"` }
StagedOrderSetParcelMeasurementsAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetParcelMeasurementsAction) MarshalJSON ¶
func (obj StagedOrderSetParcelMeasurementsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetParcelTrackingDataAction ¶
type StagedOrderSetParcelTrackingDataAction struct { TrackingData *TrackingData `json:"trackingData,omitempty"` ParcelID string `json:"parcelId"` }
StagedOrderSetParcelTrackingDataAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetParcelTrackingDataAction) MarshalJSON ¶
func (obj StagedOrderSetParcelTrackingDataAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetReturnPaymentStateAction ¶
type StagedOrderSetReturnPaymentStateAction struct { ReturnItemID string `json:"returnItemId"` PaymentState ReturnPaymentState `json:"paymentState"` }
StagedOrderSetReturnPaymentStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetReturnPaymentStateAction) MarshalJSON ¶
func (obj StagedOrderSetReturnPaymentStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetReturnShipmentStateAction ¶
type StagedOrderSetReturnShipmentStateAction struct { ShipmentState ReturnShipmentState `json:"shipmentState"` ReturnItemID string `json:"returnItemId"` }
StagedOrderSetReturnShipmentStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetReturnShipmentStateAction) MarshalJSON ¶
func (obj StagedOrderSetReturnShipmentStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetShippingAddressAction ¶
type StagedOrderSetShippingAddressAction struct {
Address *Address `json:"address,omitempty"`
}
StagedOrderSetShippingAddressAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetShippingAddressAction) MarshalJSON ¶
func (obj StagedOrderSetShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetShippingAddressAndCustomShippingMethodAction ¶
type StagedOrderSetShippingAddressAndCustomShippingMethodAction struct { TaxCategory *TaxCategoryResourceIdentifier `json:"taxCategory,omitempty"` ShippingRate *ShippingRateDraft `json:"shippingRate"` ShippingMethodName string `json:"shippingMethodName"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` Address *Address `json:"address"` }
StagedOrderSetShippingAddressAndCustomShippingMethodAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetShippingAddressAndCustomShippingMethodAction) MarshalJSON ¶
func (obj StagedOrderSetShippingAddressAndCustomShippingMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetShippingAddressAndShippingMethodAction ¶
type StagedOrderSetShippingAddressAndShippingMethodAction struct { ShippingMethod *ShippingMethodResourceIdentifier `json:"shippingMethod,omitempty"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` Address *Address `json:"address"` }
StagedOrderSetShippingAddressAndShippingMethodAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetShippingAddressAndShippingMethodAction) MarshalJSON ¶
func (obj StagedOrderSetShippingAddressAndShippingMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetShippingMethodAction ¶
type StagedOrderSetShippingMethodAction struct { ShippingMethod *ShippingMethodResourceIdentifier `json:"shippingMethod,omitempty"` ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"` }
StagedOrderSetShippingMethodAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetShippingMethodAction) MarshalJSON ¶
func (obj StagedOrderSetShippingMethodAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetShippingMethodTaxAmountAction ¶
type StagedOrderSetShippingMethodTaxAmountAction struct {
ExternalTaxAmount *ExternalTaxAmountDraft `json:"externalTaxAmount,omitempty"`
}
StagedOrderSetShippingMethodTaxAmountAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetShippingMethodTaxAmountAction) MarshalJSON ¶
func (obj StagedOrderSetShippingMethodTaxAmountAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetShippingMethodTaxRateAction ¶
type StagedOrderSetShippingMethodTaxRateAction struct {
ExternalTaxRate *ExternalTaxRateDraft `json:"externalTaxRate,omitempty"`
}
StagedOrderSetShippingMethodTaxRateAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetShippingMethodTaxRateAction) MarshalJSON ¶
func (obj StagedOrderSetShippingMethodTaxRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderSetShippingRateInputAction ¶
type StagedOrderSetShippingRateInputAction struct {
ShippingRateInput ShippingRateInputDraft `json:"shippingRateInput,omitempty"`
}
StagedOrderSetShippingRateInputAction implements the interface StagedOrderUpdateAction
func (StagedOrderSetShippingRateInputAction) MarshalJSON ¶
func (obj StagedOrderSetShippingRateInputAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*StagedOrderSetShippingRateInputAction) UnmarshalJSON ¶
func (obj *StagedOrderSetShippingRateInputAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type StagedOrderTransitionCustomLineItemStateAction ¶
type StagedOrderTransitionCustomLineItemStateAction struct { ToState *StateResourceIdentifier `json:"toState"` Quantity int `json:"quantity"` FromState *StateResourceIdentifier `json:"fromState"` CustomLineItemID string `json:"customLineItemId"` ActualTransitionDate *time.Time `json:"actualTransitionDate,omitempty"` }
StagedOrderTransitionCustomLineItemStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderTransitionCustomLineItemStateAction) MarshalJSON ¶
func (obj StagedOrderTransitionCustomLineItemStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderTransitionLineItemStateAction ¶
type StagedOrderTransitionLineItemStateAction struct { ToState *StateResourceIdentifier `json:"toState"` Quantity int `json:"quantity"` LineItemID string `json:"lineItemId"` FromState *StateResourceIdentifier `json:"fromState"` ActualTransitionDate *time.Time `json:"actualTransitionDate,omitempty"` }
StagedOrderTransitionLineItemStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderTransitionLineItemStateAction) MarshalJSON ¶
func (obj StagedOrderTransitionLineItemStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderTransitionStateAction ¶
type StagedOrderTransitionStateAction struct { State *StateResourceIdentifier `json:"state"` Force bool `json:"force"` }
StagedOrderTransitionStateAction implements the interface StagedOrderUpdateAction
func (StagedOrderTransitionStateAction) MarshalJSON ¶
func (obj StagedOrderTransitionStateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderUpdateAction ¶
type StagedOrderUpdateAction interface{}
StagedOrderUpdateAction uses action as discriminator attribute
type StagedOrderUpdateItemShippingAddressAction ¶
type StagedOrderUpdateItemShippingAddressAction struct {
Address *Address `json:"address"`
}
StagedOrderUpdateItemShippingAddressAction implements the interface StagedOrderUpdateAction
func (StagedOrderUpdateItemShippingAddressAction) MarshalJSON ¶
func (obj StagedOrderUpdateItemShippingAddressAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StagedOrderUpdateSyncInfoAction ¶
type StagedOrderUpdateSyncInfoAction struct { SyncedAt *time.Time `json:"syncedAt,omitempty"` ExternalID string `json:"externalId,omitempty"` Channel *ChannelResourceIdentifier `json:"channel"` }
StagedOrderUpdateSyncInfoAction implements the interface StagedOrderUpdateAction
func (StagedOrderUpdateSyncInfoAction) MarshalJSON ¶
func (obj StagedOrderUpdateSyncInfoAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type State ¶
type State struct { Version int `json:"version"` Type StateTypeEnum `json:"type"` Transitions []StateReference `json:"transitions,omitempty"` Roles []StateRoleEnum `json:"roles,omitempty"` Name *LocalizedString `json:"name,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key"` Initial bool `json:"initial"` ID string `json:"id"` Description *LocalizedString `json:"description,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` BuiltIn bool `json:"builtIn"` }
State is of type BaseResource
type StateAddRolesAction ¶
type StateAddRolesAction struct {
Roles []StateRoleEnum `json:"roles"`
}
StateAddRolesAction implements the interface StateUpdateAction
func (StateAddRolesAction) MarshalJSON ¶
func (obj StateAddRolesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateChangeInitialAction ¶
type StateChangeInitialAction struct {
Initial bool `json:"initial"`
}
StateChangeInitialAction implements the interface StateUpdateAction
func (StateChangeInitialAction) MarshalJSON ¶
func (obj StateChangeInitialAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateChangeKeyAction ¶
type StateChangeKeyAction struct {
Key string `json:"key"`
}
StateChangeKeyAction implements the interface StateUpdateAction
func (StateChangeKeyAction) MarshalJSON ¶
func (obj StateChangeKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateChangeTypeAction ¶
type StateChangeTypeAction struct {
Type StateTypeEnum `json:"type"`
}
StateChangeTypeAction implements the interface StateUpdateAction
func (StateChangeTypeAction) MarshalJSON ¶
func (obj StateChangeTypeAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateDraft ¶
type StateDraft struct { Type StateTypeEnum `json:"type"` Transitions []StateResourceIdentifier `json:"transitions,omitempty"` Roles []StateRoleEnum `json:"roles,omitempty"` Name *LocalizedString `json:"name,omitempty"` Key string `json:"key"` Initial bool `json:"initial"` Description *LocalizedString `json:"description,omitempty"` }
StateDraft is a standalone struct
type StatePagedQueryResponse ¶
type StatePagedQueryResponse struct { Total int `json:"total,omitempty"` Results []State `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
StatePagedQueryResponse is a standalone struct
type StateReference ¶
StateReference implements the interface Reference
func (StateReference) MarshalJSON ¶
func (obj StateReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateRemoveRolesAction ¶
type StateRemoveRolesAction struct {
Roles []StateRoleEnum `json:"roles"`
}
StateRemoveRolesAction implements the interface StateUpdateAction
func (StateRemoveRolesAction) MarshalJSON ¶
func (obj StateRemoveRolesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateResourceIdentifier ¶
type StateResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
StateResourceIdentifier implements the interface ResourceIdentifier
func (StateResourceIdentifier) MarshalJSON ¶
func (obj StateResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateRoleEnum ¶
type StateRoleEnum string
StateRoleEnum is an enum type
const ( StateRoleEnumReviewIncludedInStatistics StateRoleEnum = "ReviewIncludedInStatistics" StateRoleEnumReturn StateRoleEnum = "Return" )
Enum values for StateRoleEnum
type StateSetDescriptionAction ¶
type StateSetDescriptionAction struct {
Description *LocalizedString `json:"description"`
}
StateSetDescriptionAction implements the interface StateUpdateAction
func (StateSetDescriptionAction) MarshalJSON ¶
func (obj StateSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateSetNameAction ¶
type StateSetNameAction struct {
Name *LocalizedString `json:"name"`
}
StateSetNameAction implements the interface StateUpdateAction
func (StateSetNameAction) MarshalJSON ¶
func (obj StateSetNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateSetRolesAction ¶
type StateSetRolesAction struct {
Roles []StateRoleEnum `json:"roles"`
}
StateSetRolesAction implements the interface StateUpdateAction
func (StateSetRolesAction) MarshalJSON ¶
func (obj StateSetRolesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateSetTransitionsAction ¶
type StateSetTransitionsAction struct {
Transitions []StateResourceIdentifier `json:"transitions,omitempty"`
}
StateSetTransitionsAction implements the interface StateUpdateAction
func (StateSetTransitionsAction) MarshalJSON ¶
func (obj StateSetTransitionsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StateTypeEnum ¶
type StateTypeEnum string
StateTypeEnum is an enum type
const ( StateTypeEnumOrderState StateTypeEnum = "OrderState" StateTypeEnumLineItemState StateTypeEnum = "LineItemState" StateTypeEnumProductState StateTypeEnum = "ProductState" StateTypeEnumReviewState StateTypeEnum = "ReviewState" StateTypeEnumPaymentState StateTypeEnum = "PaymentState" )
Enum values for StateTypeEnum
type StateUpdate ¶
type StateUpdate struct { Version int `json:"version"` Actions []StateUpdateAction `json:"actions"` }
StateUpdate is a standalone struct
func (*StateUpdate) UnmarshalJSON ¶
func (obj *StateUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type StateUpdateAction ¶
type StateUpdateAction interface{}
StateUpdateAction uses action as discriminator attribute
type StateUpdateWithIDInput ¶
type StateUpdateWithIDInput struct { ID string Version int Actions []StateUpdateAction }
StateUpdateWithIDInput is input for function StateUpdateWithID
func (*StateUpdateWithIDInput) Validate ¶
func (input *StateUpdateWithIDInput) Validate() error
type StateUpdateWithKeyInput ¶
type StateUpdateWithKeyInput struct { Key string Version int Actions []StateUpdateAction }
StateUpdateWithKeyInput is input for function StateUpdateWithKey
func (*StateUpdateWithKeyInput) Validate ¶
func (input *StateUpdateWithKeyInput) Validate() error
type Store ¶
type Store struct { Version int `json:"version"` SupplyChannels []ChannelReference `json:"supplyChannels,omitempty"` Name *LocalizedString `json:"name,omitempty"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Languages []string `json:"languages,omitempty"` Key string `json:"key"` ID string `json:"id"` DistributionChannels []ChannelReference `json:"distributionChannels"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
Store is of type BaseResource
type StoreCartUpdateWithIDInput ¶
type StoreCartUpdateWithIDInput struct { ID string Version int Actions []CartUpdateAction }
StoreCartUpdateWithIDInput is input for function StoreCartUpdateWithID
func (*StoreCartUpdateWithIDInput) Validate ¶
func (input *StoreCartUpdateWithIDInput) Validate() error
type StoreCustomerUpdateWithIDInput ¶
type StoreCustomerUpdateWithIDInput struct { ID string Version int Actions []CustomerUpdateAction }
StoreCustomerUpdateWithIDInput is input for function StoreCustomerUpdateWithID
func (*StoreCustomerUpdateWithIDInput) Validate ¶
func (input *StoreCustomerUpdateWithIDInput) Validate() error
type StoreCustomerUpdateWithKeyInput ¶
type StoreCustomerUpdateWithKeyInput struct { Key string Version int Actions []CustomerUpdateAction }
StoreCustomerUpdateWithKeyInput is input for function StoreCustomerUpdateWithKey
func (*StoreCustomerUpdateWithKeyInput) Validate ¶
func (input *StoreCustomerUpdateWithKeyInput) Validate() error
type StoreDraft ¶
type StoreDraft struct { SupplyChannels []ChannelResourceIdentifier `json:"supplyChannels,omitempty"` Name *LocalizedString `json:"name"` Languages []string `json:"languages,omitempty"` Key string `json:"key"` DistributionChannels []ChannelResourceIdentifier `json:"distributionChannels,omitempty"` }
StoreDraft is a standalone struct
type StoreKeyReference ¶
type StoreKeyReference struct {
Key string `json:"key"`
}
StoreKeyReference implements the interface KeyReference
func (StoreKeyReference) MarshalJSON ¶
func (obj StoreKeyReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoreMyCartUpdateWithIDInput ¶
type StoreMyCartUpdateWithIDInput struct { ID string Version int Actions []CartUpdateAction }
StoreMyCartUpdateWithIDInput is input for function StoreMyCartUpdateWithID
func (*StoreMyCartUpdateWithIDInput) Validate ¶
func (input *StoreMyCartUpdateWithIDInput) Validate() error
type StoreOrderUpdateWithIDInput ¶
type StoreOrderUpdateWithIDInput struct { ID string Version int Actions []OrderUpdateAction }
StoreOrderUpdateWithIDInput is input for function StoreOrderUpdateWithID
func (*StoreOrderUpdateWithIDInput) Validate ¶
func (input *StoreOrderUpdateWithIDInput) Validate() error
type StoreOrderUpdateWithOrderNumberInput ¶
type StoreOrderUpdateWithOrderNumberInput struct { OrderNumber string Version int Actions []OrderUpdateAction }
StoreOrderUpdateWithOrderNumberInput is input for function StoreOrderUpdateWithOrderNumber
func (*StoreOrderUpdateWithOrderNumberInput) Validate ¶
func (input *StoreOrderUpdateWithOrderNumberInput) Validate() error
type StorePagedQueryResponse ¶
type StorePagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Store `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
StorePagedQueryResponse is a standalone struct
type StoreReference ¶
StoreReference implements the interface Reference
func (StoreReference) MarshalJSON ¶
func (obj StoreReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoreResourceIdentifier ¶
type StoreResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
StoreResourceIdentifier implements the interface ResourceIdentifier
func (StoreResourceIdentifier) MarshalJSON ¶
func (obj StoreResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoreSetLanguagesAction ¶
type StoreSetLanguagesAction struct {
Languages []string `json:"languages,omitempty"`
}
StoreSetLanguagesAction implements the interface StoreUpdateAction
func (StoreSetLanguagesAction) MarshalJSON ¶
func (obj StoreSetLanguagesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoreSetNameAction ¶
type StoreSetNameAction struct {
Name *LocalizedString `json:"name,omitempty"`
}
StoreSetNameAction implements the interface StoreUpdateAction
func (StoreSetNameAction) MarshalJSON ¶
func (obj StoreSetNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoreShippingMethodsForMatchingCartInput ¶
type StoreShippingMethodsForMatchingCartInput struct {
CartID string `url:"cartId"`
}
StoreShippingMethodsForMatchingCartInput is input for function StoreShippingMethodsForMatchingCart
type StoreUpdate ¶
type StoreUpdate struct { Version int `json:"version"` Actions []StoreUpdateAction `json:"actions"` }
StoreUpdate is a standalone struct
func (*StoreUpdate) UnmarshalJSON ¶
func (obj *StoreUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type StoreUpdateAction ¶
type StoreUpdateAction interface{}
StoreUpdateAction uses action as discriminator attribute
type StoreUpdateWithIDInput ¶
type StoreUpdateWithIDInput struct { ID string Version int Actions []StoreUpdateAction }
StoreUpdateWithIDInput is input for function StoreUpdateWithID
func (*StoreUpdateWithIDInput) Validate ¶
func (input *StoreUpdateWithIDInput) Validate() error
type StoreUpdateWithKeyInput ¶
type StoreUpdateWithKeyInput struct { Key string Version int Actions []StoreUpdateAction }
StoreUpdateWithKeyInput is input for function StoreUpdateWithKey
func (*StoreUpdateWithKeyInput) Validate ¶
func (input *StoreUpdateWithKeyInput) Validate() error
type StoresAddDistributionChannelsAction ¶
type StoresAddDistributionChannelsAction struct {
DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel"`
}
StoresAddDistributionChannelsAction implements the interface StoreUpdateAction
func (StoresAddDistributionChannelsAction) MarshalJSON ¶
func (obj StoresAddDistributionChannelsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoresAddSupplyChannelsAction ¶
type StoresAddSupplyChannelsAction struct {
SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel"`
}
StoresAddSupplyChannelsAction implements the interface StoreUpdateAction
func (StoresAddSupplyChannelsAction) MarshalJSON ¶
func (obj StoresAddSupplyChannelsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoresRemoveDistributionChannelsAction ¶
type StoresRemoveDistributionChannelsAction struct {
DistributionChannel *ChannelResourceIdentifier `json:"distributionChannel"`
}
StoresRemoveDistributionChannelsAction implements the interface StoreUpdateAction
func (StoresRemoveDistributionChannelsAction) MarshalJSON ¶
func (obj StoresRemoveDistributionChannelsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoresRemoveSupplyChannelsAction ¶
type StoresRemoveSupplyChannelsAction struct {
SupplyChannel *ChannelResourceIdentifier `json:"supplyChannel"`
}
StoresRemoveSupplyChannelsAction implements the interface StoreUpdateAction
func (StoresRemoveSupplyChannelsAction) MarshalJSON ¶
func (obj StoresRemoveSupplyChannelsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoresSetDistributionChannelsAction ¶
type StoresSetDistributionChannelsAction struct {
DistributionChannels []ChannelResourceIdentifier `json:"distributionChannels,omitempty"`
}
StoresSetDistributionChannelsAction implements the interface StoreUpdateAction
func (StoresSetDistributionChannelsAction) MarshalJSON ¶
func (obj StoresSetDistributionChannelsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type StoresSetSupplyChannelsAction ¶
type StoresSetSupplyChannelsAction struct {
SupplyChannels []ChannelResourceIdentifier `json:"supplyChannels,omitempty"`
}
StoresSetSupplyChannelsAction implements the interface StoreUpdateAction
func (StoresSetSupplyChannelsAction) MarshalJSON ¶
func (obj StoresSetSupplyChannelsAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Subscription ¶
type Subscription struct { Version int `json:"version"` Status SubscriptionHealthStatus `json:"status"` Messages []MessageSubscription `json:"messages"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` Format DeliveryFormat `json:"format"` Destination Destination `json:"destination"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` Changes []ChangeSubscription `json:"changes"` }
Subscription is of type BaseResource
func (*Subscription) UnmarshalJSON ¶
func (obj *Subscription) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type SubscriptionChangeDestinationAction ¶
type SubscriptionChangeDestinationAction struct {
Destination Destination `json:"destination"`
}
SubscriptionChangeDestinationAction implements the interface SubscriptionUpdateAction
func (SubscriptionChangeDestinationAction) MarshalJSON ¶
func (obj SubscriptionChangeDestinationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
func (*SubscriptionChangeDestinationAction) UnmarshalJSON ¶
func (obj *SubscriptionChangeDestinationAction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type SubscriptionDelivery ¶
type SubscriptionDelivery interface{}
SubscriptionDelivery uses notificationType as discriminator attribute
type SubscriptionDraft ¶
type SubscriptionDraft struct { Messages []MessageSubscription `json:"messages,omitempty"` Key string `json:"key,omitempty"` Format DeliveryFormat `json:"format,omitempty"` Destination Destination `json:"destination"` Changes []ChangeSubscription `json:"changes,omitempty"` }
SubscriptionDraft is a standalone struct
func (*SubscriptionDraft) UnmarshalJSON ¶
func (obj *SubscriptionDraft) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type SubscriptionHealthStatus ¶
type SubscriptionHealthStatus string
SubscriptionHealthStatus is an enum type
const ( SubscriptionHealthStatusHealthy SubscriptionHealthStatus = "Healthy" SubscriptionHealthStatusConfigurationError SubscriptionHealthStatus = "ConfigurationError" SubscriptionHealthStatusConfigurationErrorDeliveryStopped SubscriptionHealthStatus = "ConfigurationErrorDeliveryStopped" SubscriptionHealthStatusTemporaryError SubscriptionHealthStatus = "TemporaryError" )
Enum values for SubscriptionHealthStatus
type SubscriptionPagedQueryResponse ¶
type SubscriptionPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Subscription `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
SubscriptionPagedQueryResponse is a standalone struct
type SubscriptionSetChangesAction ¶
type SubscriptionSetChangesAction struct {
Changes []ChangeSubscription `json:"changes,omitempty"`
}
SubscriptionSetChangesAction implements the interface SubscriptionUpdateAction
func (SubscriptionSetChangesAction) MarshalJSON ¶
func (obj SubscriptionSetChangesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type SubscriptionSetKeyAction ¶
type SubscriptionSetKeyAction struct {
Key string `json:"key,omitempty"`
}
SubscriptionSetKeyAction implements the interface SubscriptionUpdateAction
func (SubscriptionSetKeyAction) MarshalJSON ¶
func (obj SubscriptionSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type SubscriptionSetMessagesAction ¶
type SubscriptionSetMessagesAction struct {
Messages []MessageSubscription `json:"messages,omitempty"`
}
SubscriptionSetMessagesAction implements the interface SubscriptionUpdateAction
func (SubscriptionSetMessagesAction) MarshalJSON ¶
func (obj SubscriptionSetMessagesAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type SubscriptionUpdate ¶
type SubscriptionUpdate struct { Version int `json:"version"` Actions []SubscriptionUpdateAction `json:"actions"` }
SubscriptionUpdate is a standalone struct
func (*SubscriptionUpdate) UnmarshalJSON ¶
func (obj *SubscriptionUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type SubscriptionUpdateAction ¶
type SubscriptionUpdateAction interface{}
SubscriptionUpdateAction uses action as discriminator attribute
type SubscriptionUpdateWithIDInput ¶
type SubscriptionUpdateWithIDInput struct { ID string Version int Actions []SubscriptionUpdateAction }
SubscriptionUpdateWithIDInput is input for function SubscriptionUpdateWithID
func (*SubscriptionUpdateWithIDInput) Validate ¶
func (input *SubscriptionUpdateWithIDInput) Validate() error
type SubscriptionUpdateWithKeyInput ¶
type SubscriptionUpdateWithKeyInput struct { Key string Version int Actions []SubscriptionUpdateAction }
SubscriptionUpdateWithKeyInput is input for function SubscriptionUpdateWithKey
func (*SubscriptionUpdateWithKeyInput) Validate ¶
func (input *SubscriptionUpdateWithKeyInput) Validate() error
type SuggestTokenizer ¶
type SuggestTokenizer interface{}
SuggestTokenizer uses type as discriminator attribute
type Suggestion ¶
type Suggestion struct {
Text string `json:"text"`
}
Suggestion is a standalone struct
type SyncInfo ¶
type SyncInfo struct { SyncedAt time.Time `json:"syncedAt"` ExternalID string `json:"externalId,omitempty"` Channel *ChannelReference `json:"channel"` }
SyncInfo is a standalone struct
type TaxCalculationMode ¶
type TaxCalculationMode string
TaxCalculationMode is an enum type
const ( TaxCalculationModeLineItemLevel TaxCalculationMode = "LineItemLevel" TaxCalculationModeUnitPriceLevel TaxCalculationMode = "UnitPriceLevel" )
Enum values for TaxCalculationMode
type TaxCategory ¶
type TaxCategory struct { Version int `json:"version"` Rates []TaxRate `json:"rates"` Name string `json:"name"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` Description string `json:"description,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
TaxCategory is of type BaseResource
type TaxCategoryAddTaxRateAction ¶
type TaxCategoryAddTaxRateAction struct {
TaxRate *TaxRateDraft `json:"taxRate"`
}
TaxCategoryAddTaxRateAction implements the interface TaxCategoryUpdateAction
func (TaxCategoryAddTaxRateAction) MarshalJSON ¶
func (obj TaxCategoryAddTaxRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TaxCategoryChangeNameAction ¶
type TaxCategoryChangeNameAction struct {
Name string `json:"name"`
}
TaxCategoryChangeNameAction implements the interface TaxCategoryUpdateAction
func (TaxCategoryChangeNameAction) MarshalJSON ¶
func (obj TaxCategoryChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TaxCategoryDraft ¶
type TaxCategoryDraft struct { Rates []TaxRateDraft `json:"rates"` Name string `json:"name"` Key string `json:"key,omitempty"` Description string `json:"description,omitempty"` }
TaxCategoryDraft is a standalone struct
type TaxCategoryPagedQueryResponse ¶
type TaxCategoryPagedQueryResponse struct { Total int `json:"total,omitempty"` Results []TaxCategory `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
TaxCategoryPagedQueryResponse is a standalone struct
type TaxCategoryReference ¶
type TaxCategoryReference struct { ID string `json:"id"` Obj *TaxCategory `json:"obj,omitempty"` }
TaxCategoryReference implements the interface Reference
func (TaxCategoryReference) MarshalJSON ¶
func (obj TaxCategoryReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TaxCategoryRemoveTaxRateAction ¶
type TaxCategoryRemoveTaxRateAction struct {
TaxRateID string `json:"taxRateId"`
}
TaxCategoryRemoveTaxRateAction implements the interface TaxCategoryUpdateAction
func (TaxCategoryRemoveTaxRateAction) MarshalJSON ¶
func (obj TaxCategoryRemoveTaxRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TaxCategoryReplaceTaxRateAction ¶
type TaxCategoryReplaceTaxRateAction struct { TaxRateID string `json:"taxRateId"` TaxRate *TaxRateDraft `json:"taxRate"` }
TaxCategoryReplaceTaxRateAction implements the interface TaxCategoryUpdateAction
func (TaxCategoryReplaceTaxRateAction) MarshalJSON ¶
func (obj TaxCategoryReplaceTaxRateAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TaxCategoryResourceIdentifier ¶
type TaxCategoryResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
TaxCategoryResourceIdentifier implements the interface ResourceIdentifier
func (TaxCategoryResourceIdentifier) MarshalJSON ¶
func (obj TaxCategoryResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TaxCategorySetDescriptionAction ¶
type TaxCategorySetDescriptionAction struct {
Description string `json:"description,omitempty"`
}
TaxCategorySetDescriptionAction implements the interface TaxCategoryUpdateAction
func (TaxCategorySetDescriptionAction) MarshalJSON ¶
func (obj TaxCategorySetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TaxCategorySetKeyAction ¶
type TaxCategorySetKeyAction struct {
Key string `json:"key,omitempty"`
}
TaxCategorySetKeyAction implements the interface TaxCategoryUpdateAction
func (TaxCategorySetKeyAction) MarshalJSON ¶
func (obj TaxCategorySetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TaxCategoryUpdate ¶
type TaxCategoryUpdate struct { Version int `json:"version"` Actions []TaxCategoryUpdateAction `json:"actions"` }
TaxCategoryUpdate is a standalone struct
func (*TaxCategoryUpdate) UnmarshalJSON ¶
func (obj *TaxCategoryUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type TaxCategoryUpdateAction ¶
type TaxCategoryUpdateAction interface{}
TaxCategoryUpdateAction uses action as discriminator attribute
type TaxCategoryUpdateWithIDInput ¶
type TaxCategoryUpdateWithIDInput struct { ID string Version int Actions []TaxCategoryUpdateAction }
TaxCategoryUpdateWithIDInput is input for function TaxCategoryUpdateWithID
func (*TaxCategoryUpdateWithIDInput) Validate ¶
func (input *TaxCategoryUpdateWithIDInput) Validate() error
type TaxCategoryUpdateWithKeyInput ¶
type TaxCategoryUpdateWithKeyInput struct { Key string Version int Actions []TaxCategoryUpdateAction }
TaxCategoryUpdateWithKeyInput is input for function TaxCategoryUpdateWithKey
func (*TaxCategoryUpdateWithKeyInput) Validate ¶
func (input *TaxCategoryUpdateWithKeyInput) Validate() error
type TaxPortion ¶
type TaxPortion struct { Rate *float64 `json:"rate"` Name string `json:"name,omitempty"` Amount TypedMoney `json:"amount"` }
TaxPortion is a standalone struct
func (*TaxPortion) UnmarshalJSON ¶
func (obj *TaxPortion) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type TaxPortionDraft ¶
type TaxPortionDraft struct { Rate *float64 `json:"rate"` Name string `json:"name,omitempty"` Amount *Money `json:"amount"` }
TaxPortionDraft is a standalone struct
type TaxRate ¶
type TaxRate struct { SubRates []SubRate `json:"subRates,omitempty"` State string `json:"state,omitempty"` Name string `json:"name"` IncludedInPrice bool `json:"includedInPrice"` ID string `json:"id,omitempty"` Country CountryCode `json:"country"` Amount *float64 `json:"amount"` }
TaxRate is a standalone struct
type TaxRateDraft ¶
type TaxRateDraft struct { SubRates []SubRate `json:"subRates,omitempty"` State string `json:"state,omitempty"` Name string `json:"name"` IncludedInPrice bool `json:"includedInPrice"` Country CountryCode `json:"country"` Amount *float64 `json:"amount,omitempty"` }
TaxRateDraft is a standalone struct
type TaxedItemPrice ¶
type TaxedItemPrice struct { TotalNet TypedMoney `json:"totalNet"` TotalGross TypedMoney `json:"totalGross"` }
TaxedItemPrice is a standalone struct
func (*TaxedItemPrice) UnmarshalJSON ¶
func (obj *TaxedItemPrice) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type TaxedItemPriceDraft ¶
type TaxedItemPriceDraft struct { TotalNet *Money `json:"totalNet"` TotalGross *Money `json:"totalGross"` }
TaxedItemPriceDraft is a standalone struct
type TaxedPrice ¶
type TaxedPrice struct { TotalNet TypedMoney `json:"totalNet"` TotalGross TypedMoney `json:"totalGross"` TaxPortions []TaxPortion `json:"taxPortions"` }
TaxedPrice is a standalone struct
func (*TaxedPrice) UnmarshalJSON ¶
func (obj *TaxedPrice) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type TaxedPriceDraft ¶
type TaxedPriceDraft struct { TotalNet TypedMoneyDraft `json:"totalNet"` TotalGross TypedMoneyDraft `json:"totalGross"` TaxPortions []TaxPortionDraft `json:"taxPortions"` }
TaxedPriceDraft is a standalone struct
func (*TaxedPriceDraft) UnmarshalJSON ¶
func (obj *TaxedPriceDraft) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type TermFacetResult ¶
type TermFacetResult struct { Total int `json:"total"` Terms []FacetResultTerm `json:"terms"` Other int `json:"other"` Missing int `json:"missing"` DataType TermFacetResultType `json:"dataType"` }
TermFacetResult implements the interface FacetResult
func (TermFacetResult) MarshalJSON ¶
func (obj TermFacetResult) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TermFacetResultType ¶
type TermFacetResultType string
TermFacetResultType is an enum type
const ( TermFacetResultTypeText TermFacetResultType = "text" TermFacetResultTypeDate TermFacetResultType = "date" TermFacetResultTypeTime TermFacetResultType = "time" TermFacetResultTypeDatetime TermFacetResultType = "datetime" TermFacetResultTypeBoolean TermFacetResultType = "boolean" TermFacetResultTypeNumber TermFacetResultType = "number" )
Enum values for TermFacetResultType
type TextInputHint ¶
type TextInputHint string
TextInputHint is an enum type
const ( TextInputHintSingleLine TextInputHint = "SingleLine" TextInputHintMultiLine TextInputHint = "MultiLine" )
Enum values for TextInputHint
type TextLineItem ¶
type TextLineItem struct { Quantity float64 `json:"quantity"` Name *LocalizedString `json:"name"` ID string `json:"id"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFields `json:"custom,omitempty"` AddedAt time.Time `json:"addedAt"` }
TextLineItem is a standalone struct
type TextLineItemDraft ¶
type TextLineItemDraft struct { Quantity float64 `json:"quantity,omitempty"` Name *LocalizedString `json:"name"` Description *LocalizedString `json:"description,omitempty"` Custom *CustomFieldsDraft `json:"custom,omitempty"` AddedAt *time.Time `json:"addedAt,omitempty"` }
TextLineItemDraft is a standalone struct
type TrackingData ¶
type TrackingData struct { TrackingID string `json:"trackingId,omitempty"` ProviderTransaction string `json:"providerTransaction,omitempty"` Provider string `json:"provider,omitempty"` IsReturn bool `json:"isReturn"` Carrier string `json:"carrier,omitempty"` }
TrackingData is a standalone struct
type Transaction ¶
type Transaction struct { Type TransactionType `json:"type"` Timestamp *time.Time `json:"timestamp,omitempty"` State TransactionState `json:"state,omitempty"` InteractionID string `json:"interactionId,omitempty"` ID string `json:"id"` Amount TypedMoney `json:"amount"` }
Transaction is a standalone struct
func (*Transaction) UnmarshalJSON ¶
func (obj *Transaction) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type TransactionDraft ¶
type TransactionDraft struct { Type TransactionType `json:"type"` Timestamp *time.Time `json:"timestamp,omitempty"` State TransactionState `json:"state,omitempty"` InteractionID string `json:"interactionId,omitempty"` Amount *Money `json:"amount"` }
TransactionDraft is a standalone struct
type TransactionState ¶
type TransactionState string
TransactionState is an enum type
const ( TransactionStateInitial TransactionState = "Initial" TransactionStatePending TransactionState = "Pending" TransactionStateSuccess TransactionState = "Success" TransactionStateFailure TransactionState = "Failure" )
Enum values for TransactionState
type TransactionType ¶
type TransactionType string
TransactionType is an enum type
const ( TransactionTypeAuthorization TransactionType = "Authorization" TransactionTypeCancelAuthorization TransactionType = "CancelAuthorization" TransactionTypeCharge TransactionType = "Charge" TransactionTypeRefund TransactionType = "Refund" TransactionTypeChargeback TransactionType = "Chargeback" )
Enum values for TransactionType
type Type ¶
type Type struct { Version int `json:"version"` ResourceTypeIds []ResourceTypeID `json:"resourceTypeIds"` Name *LocalizedString `json:"name"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key"` ID string `json:"id"` FieldDefinitions []FieldDefinition `json:"fieldDefinitions"` Description *LocalizedString `json:"description,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
Type is of type BaseResource
type TypeAddEnumValueAction ¶
type TypeAddEnumValueAction struct { Value *CustomFieldEnumValue `json:"value"` FieldName string `json:"fieldName"` }
TypeAddEnumValueAction implements the interface TypeUpdateAction
func (TypeAddEnumValueAction) MarshalJSON ¶
func (obj TypeAddEnumValueAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeAddFieldDefinitionAction ¶
type TypeAddFieldDefinitionAction struct {
FieldDefinition *FieldDefinition `json:"fieldDefinition"`
}
TypeAddFieldDefinitionAction implements the interface TypeUpdateAction
func (TypeAddFieldDefinitionAction) MarshalJSON ¶
func (obj TypeAddFieldDefinitionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeAddLocalizedEnumValueAction ¶
type TypeAddLocalizedEnumValueAction struct { Value *CustomFieldLocalizedEnumValue `json:"value"` FieldName string `json:"fieldName"` }
TypeAddLocalizedEnumValueAction implements the interface TypeUpdateAction
func (TypeAddLocalizedEnumValueAction) MarshalJSON ¶
func (obj TypeAddLocalizedEnumValueAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeEnumValueLabelAction ¶
type TypeChangeEnumValueLabelAction struct { Value *CustomFieldEnumValue `json:"value"` FieldName string `json:"fieldName"` }
TypeChangeEnumValueLabelAction implements the interface TypeUpdateAction
func (TypeChangeEnumValueLabelAction) MarshalJSON ¶
func (obj TypeChangeEnumValueLabelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeEnumValueOrderAction ¶
type TypeChangeEnumValueOrderAction struct { Keys []string `json:"keys"` FieldName string `json:"fieldName"` }
TypeChangeEnumValueOrderAction implements the interface TypeUpdateAction
func (TypeChangeEnumValueOrderAction) MarshalJSON ¶
func (obj TypeChangeEnumValueOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeFieldDefinitionLabelAction ¶
type TypeChangeFieldDefinitionLabelAction struct { Label *LocalizedString `json:"label"` FieldName string `json:"fieldName"` }
TypeChangeFieldDefinitionLabelAction implements the interface TypeUpdateAction
func (TypeChangeFieldDefinitionLabelAction) MarshalJSON ¶
func (obj TypeChangeFieldDefinitionLabelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeFieldDefinitionOrderAction ¶
type TypeChangeFieldDefinitionOrderAction struct {
FieldNames []string `json:"fieldNames"`
}
TypeChangeFieldDefinitionOrderAction implements the interface TypeUpdateAction
func (TypeChangeFieldDefinitionOrderAction) MarshalJSON ¶
func (obj TypeChangeFieldDefinitionOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeInputHintAction ¶
type TypeChangeInputHintAction struct { InputHint TypeTextInputHint `json:"inputHint"` FieldName string `json:"fieldName"` }
TypeChangeInputHintAction implements the interface TypeUpdateAction
func (TypeChangeInputHintAction) MarshalJSON ¶
func (obj TypeChangeInputHintAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeKeyAction ¶
type TypeChangeKeyAction struct {
Key string `json:"key"`
}
TypeChangeKeyAction implements the interface TypeUpdateAction
func (TypeChangeKeyAction) MarshalJSON ¶
func (obj TypeChangeKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeLabelAction ¶
type TypeChangeLabelAction struct { Label *LocalizedString `json:"label"` FieldName string `json:"fieldName"` }
TypeChangeLabelAction implements the interface TypeUpdateAction
func (TypeChangeLabelAction) MarshalJSON ¶
func (obj TypeChangeLabelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeLocalizedEnumValueLabelAction ¶
type TypeChangeLocalizedEnumValueLabelAction struct { Value *CustomFieldLocalizedEnumValue `json:"value"` FieldName string `json:"fieldName"` }
TypeChangeLocalizedEnumValueLabelAction implements the interface TypeUpdateAction
func (TypeChangeLocalizedEnumValueLabelAction) MarshalJSON ¶
func (obj TypeChangeLocalizedEnumValueLabelAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeLocalizedEnumValueOrderAction ¶
type TypeChangeLocalizedEnumValueOrderAction struct { Keys []string `json:"keys"` FieldName string `json:"fieldName"` }
TypeChangeLocalizedEnumValueOrderAction implements the interface TypeUpdateAction
func (TypeChangeLocalizedEnumValueOrderAction) MarshalJSON ¶
func (obj TypeChangeLocalizedEnumValueOrderAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeChangeNameAction ¶
type TypeChangeNameAction struct {
Name *LocalizedString `json:"name"`
}
TypeChangeNameAction implements the interface TypeUpdateAction
func (TypeChangeNameAction) MarshalJSON ¶
func (obj TypeChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeDraft ¶
type TypeDraft struct { ResourceTypeIds []ResourceTypeID `json:"resourceTypeIds"` Name *LocalizedString `json:"name"` Key string `json:"key"` FieldDefinitions []FieldDefinition `json:"fieldDefinitions,omitempty"` Description *LocalizedString `json:"description,omitempty"` }
TypeDraft is a standalone struct
type TypePagedQueryResponse ¶
type TypePagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Type `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
TypePagedQueryResponse is a standalone struct
type TypeReference ¶
TypeReference implements the interface Reference
func (TypeReference) MarshalJSON ¶
func (obj TypeReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeRemoveFieldDefinitionAction ¶
type TypeRemoveFieldDefinitionAction struct {
FieldName string `json:"fieldName"`
}
TypeRemoveFieldDefinitionAction implements the interface TypeUpdateAction
func (TypeRemoveFieldDefinitionAction) MarshalJSON ¶
func (obj TypeRemoveFieldDefinitionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeResourceIdentifier ¶
type TypeResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
TypeResourceIdentifier implements the interface ResourceIdentifier
func (TypeResourceIdentifier) MarshalJSON ¶
func (obj TypeResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeSetDescriptionAction ¶
type TypeSetDescriptionAction struct {
Description *LocalizedString `json:"description,omitempty"`
}
TypeSetDescriptionAction implements the interface TypeUpdateAction
func (TypeSetDescriptionAction) MarshalJSON ¶
func (obj TypeSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type TypeTextInputHint ¶
type TypeTextInputHint string
TypeTextInputHint is an enum type
const ( TypeTextInputHintSingleLine TypeTextInputHint = "SingleLine" TypeTextInputHintMultiLine TypeTextInputHint = "MultiLine" )
Enum values for TypeTextInputHint
type TypeUpdate ¶
type TypeUpdate struct { Version int `json:"version"` Actions []TypeUpdateAction `json:"actions"` }
TypeUpdate is a standalone struct
func (*TypeUpdate) UnmarshalJSON ¶
func (obj *TypeUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type TypeUpdateAction ¶
type TypeUpdateAction interface{}
TypeUpdateAction uses action as discriminator attribute
type TypeUpdateWithIDInput ¶
type TypeUpdateWithIDInput struct { ID string Version int Actions []TypeUpdateAction }
TypeUpdateWithIDInput is input for function TypeUpdateWithID
func (*TypeUpdateWithIDInput) Validate ¶
func (input *TypeUpdateWithIDInput) Validate() error
type TypeUpdateWithKeyInput ¶
type TypeUpdateWithKeyInput struct { Key string Version int Actions []TypeUpdateAction }
TypeUpdateWithKeyInput is input for function TypeUpdateWithKey
func (*TypeUpdateWithKeyInput) Validate ¶
func (input *TypeUpdateWithKeyInput) Validate() error
type TypedMoneyDraft ¶
type TypedMoneyDraft interface{}
TypedMoneyDraft uses type as discriminator attribute
type Update ¶
type Update struct { Version int `json:"version"` Actions []UpdateAction `json:"actions"` }
Update is a standalone struct
type UpdateAction ¶
type UpdateAction struct {
Action string `json:"action"`
}
UpdateAction is a standalone struct
type UserProvidedIdentifiers ¶
type UserProvidedIdentifiers struct { Slug *LocalizedString `json:"slug,omitempty"` SKU string `json:"sku,omitempty"` OrderNumber string `json:"orderNumber,omitempty"` Key string `json:"key,omitempty"` ExternalID string `json:"externalId,omitempty"` CustomerNumber string `json:"customerNumber,omitempty"` }
UserProvidedIdentifiers is a standalone struct
type VariantValues ¶
type VariantValues struct { SKU string `json:"sku,omitempty"` Prices []PriceDraft `json:"prices"` Attributes []Attribute `json:"attributes"` }
VariantValues is a standalone struct
type WhitespaceTokenizer ¶
type WhitespaceTokenizer struct{}
WhitespaceTokenizer implements the interface SuggestTokenizer
func (WhitespaceTokenizer) MarshalJSON ¶
func (obj WhitespaceTokenizer) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type Zone ¶
type Zone struct { Version int `json:"version"` Name string `json:"name"` Locations []Location `json:"locations"` LastModifiedBy *LastModifiedBy `json:"lastModifiedBy,omitempty"` LastModifiedAt time.Time `json:"lastModifiedAt"` Key string `json:"key,omitempty"` ID string `json:"id"` Description string `json:"description,omitempty"` CreatedBy *CreatedBy `json:"createdBy,omitempty"` CreatedAt time.Time `json:"createdAt"` }
Zone is of type BaseResource
type ZoneAddLocationAction ¶
type ZoneAddLocationAction struct {
Location *Location `json:"location"`
}
ZoneAddLocationAction implements the interface ZoneUpdateAction
func (ZoneAddLocationAction) MarshalJSON ¶
func (obj ZoneAddLocationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ZoneChangeNameAction ¶
type ZoneChangeNameAction struct {
Name string `json:"name"`
}
ZoneChangeNameAction implements the interface ZoneUpdateAction
func (ZoneChangeNameAction) MarshalJSON ¶
func (obj ZoneChangeNameAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ZoneDraft ¶
type ZoneDraft struct { Name string `json:"name"` Locations []Location `json:"locations"` Key string `json:"key,omitempty"` Description string `json:"description,omitempty"` }
ZoneDraft is a standalone struct
type ZonePagedQueryResponse ¶
type ZonePagedQueryResponse struct { Total int `json:"total,omitempty"` Results []Zone `json:"results"` Offset int `json:"offset"` Limit int `json:"limit"` Count int `json:"count"` }
ZonePagedQueryResponse is a standalone struct
type ZoneRate ¶
type ZoneRate struct { Zone *ZoneReference `json:"zone"` ShippingRates []ShippingRate `json:"shippingRates"` }
ZoneRate is a standalone struct
type ZoneRateDraft ¶
type ZoneRateDraft struct { Zone *ZoneResourceIdentifier `json:"zone"` ShippingRates []ShippingRateDraft `json:"shippingRates"` }
ZoneRateDraft is a standalone struct
type ZoneReference ¶
ZoneReference implements the interface Reference
func (ZoneReference) MarshalJSON ¶
func (obj ZoneReference) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ZoneRemoveLocationAction ¶
type ZoneRemoveLocationAction struct {
Location *Location `json:"location"`
}
ZoneRemoveLocationAction implements the interface ZoneUpdateAction
func (ZoneRemoveLocationAction) MarshalJSON ¶
func (obj ZoneRemoveLocationAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ZoneResourceIdentifier ¶
type ZoneResourceIdentifier struct { Key string `json:"key,omitempty"` ID string `json:"id,omitempty"` }
ZoneResourceIdentifier implements the interface ResourceIdentifier
func (ZoneResourceIdentifier) MarshalJSON ¶
func (obj ZoneResourceIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ZoneSetDescriptionAction ¶
type ZoneSetDescriptionAction struct {
Description string `json:"description,omitempty"`
}
ZoneSetDescriptionAction implements the interface ZoneUpdateAction
func (ZoneSetDescriptionAction) MarshalJSON ¶
func (obj ZoneSetDescriptionAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ZoneSetKeyAction ¶
type ZoneSetKeyAction struct {
Key string `json:"key,omitempty"`
}
ZoneSetKeyAction implements the interface ZoneUpdateAction
func (ZoneSetKeyAction) MarshalJSON ¶
func (obj ZoneSetKeyAction) MarshalJSON() ([]byte, error)
MarshalJSON override to set the discriminator value
type ZoneUpdate ¶
type ZoneUpdate struct { Version int `json:"version"` Actions []ZoneUpdateAction `json:"actions"` }
ZoneUpdate is a standalone struct
func (*ZoneUpdate) UnmarshalJSON ¶
func (obj *ZoneUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON override to deserialize correct attribute types based on the discriminator value
type ZoneUpdateAction ¶
type ZoneUpdateAction interface{}
ZoneUpdateAction uses action as discriminator attribute
type ZoneUpdateWithIDInput ¶
type ZoneUpdateWithIDInput struct { ID string Version int Actions []ZoneUpdateAction }
ZoneUpdateWithIDInput is input for function ZoneUpdateWithID
func (*ZoneUpdateWithIDInput) Validate ¶
func (input *ZoneUpdateWithIDInput) Validate() error
type ZoneUpdateWithKeyInput ¶
type ZoneUpdateWithKeyInput struct { Key string Version int Actions []ZoneUpdateAction }
ZoneUpdateWithKeyInput is input for function ZoneUpdateWithKey
func (*ZoneUpdateWithKeyInput) Validate ¶
func (input *ZoneUpdateWithKeyInput) Validate() error
Source Files ¶
- client.go
- client_expand.go
- client_graphql.go
- client_logger.go
- client_queryinput.go
- client_useragent.go
- date.go
- service_api_client.go
- service_cart.go
- service_cart_discount.go
- service_category.go
- service_channel.go
- service_custom_object.go
- service_customer.go
- service_customer_group.go
- service_discount_code.go
- service_extension.go
- service_in_store.go
- service_inventory_entry.go
- service_login.go
- service_me.go
- service_message.go
- service_order.go
- service_payment.go
- service_product.go
- service_product_discount.go
- service_product_projection.go
- service_product_type.go
- service_project.go
- service_review.go
- service_shipping_method.go
- service_shopping_list.go
- service_state.go
- service_store.go
- service_subscription.go
- service_tax_category.go
- service_type.go
- service_zone.go
- types_api_client.go
- types_base.go
- types_cart.go
- types_cart_discount.go
- types_category.go
- types_channel.go
- types_common.go
- types_custom_object.go
- types_customer.go
- types_customer_group.go
- types_discount_code.go
- types_error.go
- types_extension.go
- types_graph_ql.go
- types_inventory.go
- types_me.go
- types_message.go
- types_order.go
- types_order_edit.go
- types_payment.go
- types_product.go
- types_product_discount.go
- types_product_type.go
- types_project.go
- types_review.go
- types_shipping_method.go
- types_shopping_list.go
- types_state.go
- types_store.go
- types_subscription.go
- types_tax_category.go
- types_type.go
- types_zone.go
- utils.go