Documentation
¶
Index ¶
- Constants
- type AppRecurringPricingDetails
- type AppSubscriptionCreateReply
- type AppSubscriptionCreateResource
- type AppSubscriptionCreateVariables
- type AppSubscriptionResource
- type AppUsagePricingDetails
- type CappedAmount
- type CreateMediaInput
- type CreateMediaInputMediaContentType
- type Discount
- type Errors
- type FulfillmentCreateV2Fulfillment
- type FulfillmentCreateV2Reply
- type FulfillmentCreateV2Request
- type FulfillmentOrderLineItems
- type FulfillmentResource
- type FulfillmentTrackingInfoUpdateV2Reply
- type FulfillmentTrackingInfoUpdateV2Request
- type Image
- type Images
- type Input
- type InventoryBulkAdjustQuantityAtLocationReply
- type InventoryBulkAdjustQuantityAtLocationRequest
- type InventoryItem
- type InventoryItemAdjustment
- type InventoryQuantities
- type InventoryQuantity
- type LineItems
- type LineItemsByFulfillmentOrder
- type MediaUserError
- type Metafields
- type Plan
- type Price
- type PrivateMetafields
- type ProductAppendImage
- type ProductAppendImagesInput
- type ProductAppendImagesReply
- type ProductAppendImagesRequest
- type ProductCategory
- type ProductCreateMediaRequest
- type ProductCreateMediaRequestReply
- type ProductCreateReply
- type ProductCreateRequest
- type ProductDeleteAsyncReply
- type ProductPublications
- type ProductVariantsBulkInput
- type ProductVariantsUpdateReply
- type ProductVariantsUpdateRequest
- type Publications
- type Request
- type Seo
- type StandardizedProductType
- type TrackingInfo
- type UserErrors
- type Value
- type ValueInput
- type Variant
- type Variants
Constants ¶
View Source
const (
BasePath = "graphql.json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSubscriptionCreateReply ¶
type AppSubscriptionCreateReply struct { Errors Data struct { AppSubscriptionCreate AppSubscriptionCreateResource `json:"appSubscriptionCreate"` } `json:"data"` }
type AppSubscriptionCreateResource ¶
type AppSubscriptionCreateResource struct { UserErrors []UserErrors `json:"userErrors"` AppSubscription AppSubscriptionResource `json:"appSubscription"` ConfirmationURL string `json:"confirmationUrl"` }
type AppSubscriptionCreateVariables ¶
type AppSubscriptionCreateVariables struct { LineItems []*LineItems `json:"lineItems,omitempty"` Name string `json:"name,omitempty"` ReplacementBehavior string `json:"replacementBehavior,omitempty"` ReturnURL string `json:"returnUrl,omitempty"` Test bool `json:"test,omitempty"` TrialDays int `json:"trialDays,omitempty"` }
type AppSubscriptionResource ¶
type AppUsagePricingDetails ¶
type AppUsagePricingDetails struct { CappedAmount *CappedAmount `json:"cappedAmount,omitempty"` Terms string `json:"terms,omitempty"` }
type CappedAmount ¶
type CreateMediaInput ¶
type CreateMediaInput struct { Alt string `json:"alt"` MediaContentType CreateMediaInputMediaContentType `json:"mediaContentType"` OriginalSource string `json:"originalSource"` }
type CreateMediaInputMediaContentType ¶
type CreateMediaInputMediaContentType string
const ( MEDIA_CONTENT_TYPE_EXTERNAL_VIDEO CreateMediaInputMediaContentType = "EXTERNAL_VIDEO" MEDIA_CONTENT_TYPE_IMAGE CreateMediaInputMediaContentType = "IMAGE" MEDIA_CONTENT_TYPE_MODEL_3D CreateMediaInputMediaContentType = "MODEL_3D" MEDIA_CONTENT_TYPE_VIDEO CreateMediaInputMediaContentType = "VIDEO" )
type Errors ¶
type Errors struct { Errors []struct { Message string `json:"message,omitempty"` } `json:"errors,omitempty"` }
Errors 公共错误
type FulfillmentCreateV2Fulfillment ¶
type FulfillmentCreateV2Fulfillment struct { LineItemsByFulfillmentOrder []*LineItemsByFulfillmentOrder `json:"lineItemsByFulfillmentOrder,omitempty"` NotifyCustomer bool `json:"notifyCustomer,omitempty"` TrackingInfo *TrackingInfo `json:"trackingInfo,omitempty"` }
type FulfillmentCreateV2Reply ¶
type FulfillmentCreateV2Reply struct { Errors Data struct { FulfillmentCreateV2 struct { Fulfillment FulfillmentResource `json:"fulfillment"` UserErrors []UserErrors `json:"userErrors"` } `json:"fulfillmentCreateV2"` } `json:"data"` }
type FulfillmentCreateV2Request ¶
type FulfillmentCreateV2Request struct { Fulfillment *FulfillmentCreateV2Fulfillment `json:"fulfillment,omitempty"` Message string `json:"message,omitempty"` }
type FulfillmentResource ¶
type FulfillmentTrackingInfoUpdateV2Reply ¶
type FulfillmentTrackingInfoUpdateV2Reply struct { Errors Data struct { FulfillmentTrackingInfoUpdateV2 struct { Fulfillment FulfillmentResource `json:"fulfillment"` UserErrors []UserErrors `json:"userErrors"` } `json:"FulfillmentTrackingInfoUpdateV2"` } `json:"data"` }
type Input ¶
type Input struct { BodyHTML string `json:"bodyHtml,omitempty"` CollectionsToJoin []string `json:"collectionsToJoin,omitempty"` CollectionsToLeave []string `json:"collectionsToLeave,omitempty"` CustomProductType string `json:"customProductType,omitempty"` DescriptionHTML string `json:"descriptionHtml,omitempty"` GiftCard *bool `json:"giftCard,omitempty"` GiftCardTemplateSuffix string `json:"giftCardTemplateSuffix,omitempty"` Handle string `json:"handle,omitempty"` ID string `json:"id,omitempty"` Images []Images `json:"images,omitempty"` Metafields []Metafields `json:"metafields,omitempty"` Options []string `json:"options,omitempty"` PrivateMetafields []PrivateMetafields `json:"privateMetafields,omitempty"` ProductCategory *ProductCategory `json:"productCategory,omitempty"` ProductPublications []ProductPublications `json:"productPublications,omitempty"` ProductType string `json:"productType,omitempty"` Publications []Publications `json:"publications,omitempty"` PublishDate string `json:"publishDate,omitempty"` PublishOn string `json:"publishOn,omitempty"` Published *bool `json:"published,omitempty"` PublishedAt string `json:"publishedAt,omitempty"` RedirectNewHandle *bool `json:"redirectNewHandle,omitempty"` RequiresSellingPlan *bool `json:"requiresSellingPlan,omitempty"` Seo *Seo `json:"seo,omitempty"` StandardizedProductType *StandardizedProductType `json:"standardizedProductType,omitempty"` Status string `json:"status,omitempty"` Tags []string `json:"tags,omitempty"` TemplateSuffix string `json:"templateSuffix,omitempty"` Title string `json:"title,omitempty"` Variants []Variants `json:"variants,omitempty"` Vendor string `json:"vendor,omitempty"` }
type InventoryBulkAdjustQuantityAtLocationReply ¶
type InventoryBulkAdjustQuantityAtLocationReply struct { Errors Data struct { InventoryBulkAdjustQuantityAtLocation struct { InventoryLevels []struct { Id string `json:"id,omitempty"` Available int `json:"available,omitempty"` } `json:"inventoryLevels,omitempty"` UserErrors []UserErrors `json:"userErrors,omitempty"` } `json:"inventoryBulkAdjustQuantityAtLocation,omitempty"` } `json:"data,omitempty"` }
type InventoryBulkAdjustQuantityAtLocationRequest ¶
type InventoryBulkAdjustQuantityAtLocationRequest struct { InventoryItemAdjustments []InventoryItemAdjustment `json:"inventoryItemAdjustments"` LocationId string `json:"locationId"` }
type InventoryItem ¶
type InventoryItemAdjustment ¶
type InventoryQuantities ¶
type InventoryQuantity ¶
type LineItemsByFulfillmentOrder ¶
type LineItemsByFulfillmentOrder struct { FulfillmentOrderID string `json:"fulfillmentOrderId,omitempty"` FulfillmentOrderLineItems []*FulfillmentOrderLineItems `json:"fulfillmentOrderLineItems,omitempty"` }
type MediaUserError ¶
type MediaUserError struct { Message string `json:"message,omitempty"` Field []string `json:"field,omitempty"` }
MediaUserError
type Metafields ¶
type Plan ¶
type Plan struct { AppRecurringPricingDetails *AppRecurringPricingDetails `json:"appRecurringPricingDetails,omitempty"` AppUsagePricingDetails *AppUsagePricingDetails `json:"appUsagePricingDetails,omitempty"` }
type PrivateMetafields ¶
type PrivateMetafields struct { Key string `json:"key,omitempty"` Namespace string `json:"namespace,omitempty"` Owner string `json:"owner,omitempty"` ValueInput *ValueInput `json:"valueInput,omitempty"` }
type ProductAppendImage ¶
type ProductAppendImagesInput ¶
type ProductAppendImagesInput struct { Id string `json:"id,omitempty"` Images []*ProductAppendImage `json:"images,omitempty"` }
type ProductAppendImagesReply ¶
type ProductAppendImagesReply struct { Errors Data struct { ProductAppendImages struct { NewImages []struct { Id string `json:"id,omitempty"` AltText string `json:"altText,omitempty"` } `json:"newImages,omitempty"` Product struct { Id string `json:"id,omitempty"` } `json:"product,omitempty"` UserErrors []UserErrors `json:"userErrors,omitempty"` } `json:"productAppendImages,omitempty"` } `json:"data,omitempty"` }
type ProductAppendImagesRequest ¶
type ProductAppendImagesRequest struct {
Input *ProductAppendImagesInput `json:"input,omitempty"`
}
type ProductCategory ¶
type ProductCategory struct {
ProductTaxonomyNodeID string `json:"productTaxonomyNodeId,omitempty"`
}
type ProductCreateMediaRequest ¶
type ProductCreateMediaRequest struct { ProductId string `json:"productId"` Media []*CreateMediaInput `json:"media"` }
type ProductCreateMediaRequestReply ¶
type ProductCreateMediaRequestReply struct { Errors Data struct { ProductCreateMedia struct { Media []struct { Id string `json:"id,omitempty"` Alt string `json:"alt,omitempty"` MediaContentType string `json:"mediaContentType,omitempty"` Status string `json:"status,omitempty"` } `json:"media,omitempty"` MediaUserErrors []MediaUserError `json:"mediaUserErrors,omitempty"` Product struct { ID string `json:"id,omitempty"` Title string `json:"title,omitempty"` } `json:"product,omitempty"` } `json:"productCreateMedia,omitempty"` } `json:"data,omitempty"` }
type ProductCreateReply ¶
type ProductCreateReply struct { Errors Data struct { ProductCreate struct { Product struct { Id string `json:"id,omitempty"` } `json:"product,omitempty"` UserErrors []UserErrors `json:"userErrors,omitempty"` } `json:"productCreate,omitempty"` } `json:"data,omitempty"` }
type ProductCreateRequest ¶
type ProductCreateRequest struct {
Input *Input `json:"input,omitempty"`
}
type ProductDeleteAsyncReply ¶
type ProductDeleteAsyncReply struct { Errors Data struct { ProductDeleteAsync struct { UserErrors []UserErrors `json:"userErrors,omitempty"` } `json:"productDeleteAsync,omitempty"` } `json:"data,omitempty"` }
type ProductPublications ¶
type ProductVariantsBulkInput ¶
type ProductVariantsBulkInput struct { Id string `json:"id,omitempty"` Barcode string `json:"barcode,omitempty"` Price string `json:"price,omitempty"` CompareAtPrice string `json:"compareAtPrice,omitempty"` HarmonizedSystemCode string `json:"harmonizedSystemCode,omitempty"` ImageId string `json:"imageId,omitempty"` ImageSrc string `json:"imageSrc,omitempty"` InventoryItem *InventoryItem `json:"inventoryItem,omitempty"` InventoryPolicy string `json:"inventoryPolicy,omitempty"` InventoryQuantities []*InventoryQuantity `json:"inventoryQuantities,omitempty"` MediaSrc []string `json:"mediaSrc,omitempty"` Options []string `json:"options,omitempty"` RequiresShipping bool `json:"requiresShipping,omitempty"` Sku string `json:"sku,omitempty"` TaxCode string `json:"taxCode,omitempty"` Taxable bool `json:"taxable,omitempty"` Weight float64 `json:"weight,omitempty"` WeightUnit string `json:"weightUnit,omitempty"` MediaId string `json:"mediaId,omitempty"` }
type ProductVariantsUpdateReply ¶
type ProductVariantsUpdateReply struct { Errors Data struct { ProductVariantsBulkUpdate struct { Product struct { Id string `json:"id,omitempty"` } `json:"product,omitempty"` ProductVariants []*Variant `json:"productVariants,omitempty"` UserErrors []UserErrors `json:"userErrors,omitempty"` } `json:"productVariantsBulkUpdate,omitempty"` } `json:"data,omitempty"` }
type ProductVariantsUpdateRequest ¶
type ProductVariantsUpdateRequest struct { ProductId string `json:"productId,omitempty"` Variants []*ProductVariantsBulkInput `json:"variants,omitempty"` }
type Publications ¶
type Request ¶
type Request struct { Query string `json:"query,omitempty"` Variables any `json:"variables,omitempty"` }
Request 公共请求体
type StandardizedProductType ¶
type StandardizedProductType struct {
ProductTaxonomyNodeID string `json:"productTaxonomyNodeId,omitempty"`
}
type TrackingInfo ¶
type UserErrors ¶
type UserErrors struct {
Message string `json:"message,omitempty"`
}
UserErrors 用户错误
type ValueInput ¶
type Variant ¶
type Variant struct { Title string `json:"title,omitempty"` DisplayName string `json:"displayName,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` Price string `json:"price,omitempty"` CompareAtPrice string `json:"compareAtPrice,omitempty"` InventoryQuantity int `json:"inventoryQuantity,omitempty"` AvailableForSale bool `json:"availableForSale,omitempty"` Weight int `json:"weight,omitempty"` WeightUnit string `json:"weightUnit,omitempty"` Image *Image `json:"image,omitempty"` }
type Variants ¶
type Variants struct { Barcode string `json:"barcode,omitempty"` CompareAtPrice string `json:"compareAtPrice,omitempty"` FulfillmentServiceID string `json:"fulfillmentServiceId,omitempty"` HarmonizedSystemCode string `json:"harmonizedSystemCode,omitempty"` ID string `json:"id,omitempty"` ImageID string `json:"imageId,omitempty"` ImageSrc string `json:"imageSrc,omitempty"` InventoryItem *InventoryItem `json:"inventoryItem,omitempty"` InventoryManagement string `json:"inventoryManagement,omitempty"` InventoryPolicy string `json:"inventoryPolicy,omitempty"` InventoryQuantities []InventoryQuantities `json:"inventoryQuantities,omitempty"` MediaSrc []string `json:"mediaSrc,omitempty"` Metafields []Metafields `json:"metafields,omitempty"` Options []string `json:"options,omitempty"` Position *int `json:"position,omitempty"` Price string `json:"price,omitempty"` PrivateMetafields []PrivateMetafields `json:"privateMetafields,omitempty"` ProductID string `json:"productId,omitempty"` RequiresShipping *bool `json:"requiresShipping,omitempty"` Sku string `json:"sku,omitempty"` TaxCode string `json:"taxCode,omitempty"` Taxable *bool `json:"taxable,omitempty"` Title string `json:"title,omitempty"` Weight *float32 `json:"weight,omitempty"` WeightUnit string `json:"weightUnit,omitempty"` }
Click to show internal directories.
Click to hide internal directories.