models

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllWeightUnit = []WeightUnit{
	WeightUnitGram,
}

Functions

This section is empty.

Types

type AddAttributeParams

type AddAttributeParams struct {
	Name       string   `json:"name"`
	Values     []string `json:"values"`
	IsRequired bool     `json:"isRequired"`
}

type AddAttributeResponse

type AddAttributeResponse struct {
	Attribute ProductAttribute `json:"attribute"`
}

type AddAttributeToProductParams

type AddAttributeToProductParams struct {
	ProductID string             `json:"productId"`
	Attribute AddAttributeParams `json:"attribute"`
}

type AddBlogPostComment

type AddBlogPostComment struct {
	Content string `json:"content"`
}

type AddBlogPostCommentResponse

type AddBlogPostCommentResponse struct {
	Comment BlogPostComment `json:"comment"`
}

type AddCouponCodeResponse

type AddCouponCodeResponse struct {
	Coupon CouponCode `json:"coupon"`
}

type AddDigitalContentParams

type AddDigitalContentParams struct {
	Title          string             `json:"title"`
	ContentType    DigitalContentType `json:"contentType"`
	IsTrialAllowed bool               `json:"isTrialAllowed"`
	ContentText    *string            `json:"contentText,omitempty"`
	ContentFile    *graphql.Upload    `json:"contentFile,omitempty"`
	Position       *int               `json:"position,omitempty"`
}

type AddDigitalItemParams

type AddDigitalItemParams struct {
	Title       string  `json:"title"`
	Description *string `json:"description,omitempty"`
	Position    *int    `json:"position,omitempty"`
}

type AddFeedbackParams

type AddFeedbackParams struct {
	Rating  int     `json:"rating"`
	Comment *string `json:"comment,omitempty"`
}

type AddProductsToCollectionParams

type AddProductsToCollectionParams struct {
	CollectionID string   `json:"collectionId"`
	ProductIds   []string `json:"productIds"`
}

type AddVariationParams

type AddVariationParams struct {
	Name       string      `json:"name"`
	Price      int         `json:"price"`
	Cost       int         `json:"cost"`
	Sku        *string     `json:"sku,omitempty"`
	Stock      *int        `json:"stock,omitempty"`
	Weight     *float64    `json:"weight,omitempty"`
	WeightUnit *WeightUnit `json:"weightUnit,omitempty"`
}

type AddVariationResponse

type AddVariationResponse struct {
	Variation ProductVariation `json:"variation"`
}

type AddVariationToProductParams

type AddVariationToProductParams struct {
	ProductID string             `json:"productId"`
	Variation AddVariationParams `json:"variation"`
}

type Address

type Address struct {
	ID        string   `json:"id"`
	Street    string   `json:"street"`
	StreetTwo *string  `json:"streetTwo,omitempty"`
	City      string   `json:"city"`
	State     *string  `json:"state,omitempty"`
	Postcode  string   `json:"postcode"`
	Email     *string  `json:"email,omitempty"`
	Phone     *string  `json:"phone,omitempty"`
	Location  Location `json:"location"`
}

type AddressParams

type AddressParams struct {
	Street     string  `json:"street"`
	StreetTwo  *string `json:"streetTwo,omitempty"`
	City       string  `json:"city"`
	State      *string `json:"state,omitempty"`
	Postcode   string  `json:"postcode"`
	Email      *string `json:"email,omitempty"`
	Phone      *string `json:"phone,omitempty"`
	LocationID string  `json:"locationId"`
}

type BlogPost

type BlogPost struct {
	ID              string             `json:"id"`
	Title           string             `json:"title"`
	Slug            *string            `json:"slug,omitempty"`
	BannerImage     *string            `json:"bannerImage,omitempty"`
	BannerImageFull *string            `json:"bannerImageFull,omitempty"`
	Content         string             `json:"content"`
	Tags            []string           `json:"tags,omitempty"`
	IsPublished     bool               `json:"isPublished"`
	IsFeatured      bool               `json:"isFeatured"`
	Views           int                `json:"views"`
	Favourites      int                `json:"favourites"`
	Comments        []*BlogPostComment `json:"comments"`
	CreatedAt       string             `json:"createdAt"`
	UpdatedAt       *string            `json:"updatedAt,omitempty"`
}

type BlogPostComment

type BlogPostComment struct {
	ID        string   `json:"id"`
	Content   string   `json:"content"`
	Customer  Customer `json:"customer"`
	CreatedAt string   `json:"createdAt"`
	UpdatedAt *string  `json:"updatedAt,omitempty"`
}

type Cart

type Cart struct {
	ID                 string      `json:"id"`
	IsShippingRequired bool        `json:"isShippingRequired"`
	CartItems          []*CartItem `json:"cartItems"`
}

type CartItem

type CartItem struct {
	ID               int                     `json:"id"`
	Product          Product                 `json:"product"`
	Quantity         int                     `json:"quantity"`
	PurchasePrice    int                     `json:"purchasePrice"`
	PurchaseTimeCost int                     `json:"purchaseTimeCost"`
	Attributes       []*CartProductAttribute `json:"attributes"`
	Variation        *ProductVariation       `json:"variation,omitempty"`
}

type CartItemAttributeParams

type CartItemAttributeParams struct {
	ID                     string `json:"Id"`
	AttributeSelectedValue string `json:"attributeSelectedValue"`
}

type CartItemParams

type CartItemParams struct {
	ProductID          string                     `json:"productId"`
	ProductAttributes  []*CartItemAttributeParams `json:"productAttributes,omitempty"`
	ProductVariationID *string                    `json:"productVariationId,omitempty"`
	Quantity           int                        `json:"quantity"`
}

type CartProductAttribute

type CartProductAttribute struct {
	Name          string `json:"name"`
	SelectedValue string `json:"selectedValue"`
}

type Category

type Category struct {
	ID           string  `json:"id"`
	Name         string  `json:"name"`
	Slug         string  `json:"slug"`
	IsPublished  bool    `json:"isPublished"`
	Description  *string `json:"description,omitempty"`
	Image        *string `json:"image,omitempty"`
	FullImage    *string `json:"fullImage,omitempty"`
	CreatedAt    string  `json:"createdAt"`
	UpdatedAt    *string `json:"updatedAt,omitempty"`
	ProductCount int     `json:"productCount"`
	Position     int     `json:"position"`
}

type Collection

type Collection struct {
	ID           string     `json:"id"`
	Name         string     `json:"name"`
	Slug         string     `json:"slug"`
	IsPublished  bool       `json:"isPublished"`
	Description  *string    `json:"description,omitempty"`
	Image        *string    `json:"image,omitempty"`
	FullImage    *string    `json:"fullImage,omitempty"`
	CreatedAt    string     `json:"createdAt"`
	UpdatedAt    *string    `json:"updatedAt,omitempty"`
	Products     []*Product `json:"products,omitempty"`
	ProductCount int        `json:"productCount"`
	Position     int        `json:"position"`
}

type CouponCode

type CouponCode struct {
	ID                string       `json:"id"`
	Code              string       `json:"code"`
	Amount            int          `json:"amount"`
	MinOrderAmount    *int         `json:"minOrderAmount,omitempty"`
	MaxDiscountAmount *int         `json:"maxDiscountAmount,omitempty"`
	IsActive          bool         `json:"isActive"`
	IsFlatDiscount    bool         `json:"isFlatDiscount"`
	IsForNewUsersOnly bool         `json:"isForNewUsersOnly"`
	IsUserSpecific    bool         `json:"isUserSpecific"`
	MaxUsage          *int         `json:"maxUsage,omitempty"`
	MaxUsagePerUser   *int         `json:"maxUsagePerUser,omitempty"`
	DiscountType      DiscountType `json:"discountType"`
	Description       *string      `json:"description,omitempty"`
	Image             *string      `json:"image,omitempty"`
	StartAt           *string      `json:"startAt,omitempty"`
	EndAt             *string      `json:"endAt,omitempty"`
	CreatedAt         string       `json:"createdAt"`
	UpdatedAt         *string      `json:"updatedAt,omitempty"`
	Customers         []*Customer  `json:"customers,omitempty"`
}

type CreateBlogPostResponse

type CreateBlogPostResponse struct {
	Post BlogPost `json:"post"`
}

type CreateCartResponse

type CreateCartResponse struct {
	Cart Cart `json:"cart"`
}

type CreateCategoryResponse

type CreateCategoryResponse struct {
	Category Category `json:"category"`
}

type CreateCollectionResponse

type CreateCollectionResponse struct {
	Collection Collection `json:"collection"`
}

type CreateProductResponse

type CreateProductResponse struct {
	Product Product `json:"product"`
}

type CreateShippingMethodResponse

type CreateShippingMethodResponse struct {
	Method ShippingMethod `json:"method"`
}

type CreateShopResponse

type CreateShopResponse struct {
	Shop Store `json:"shop"`
}

type Currency

type Currency string
const (
	CurrencyUsd Currency = "USD"
	CurrencyBdt Currency = "BDT"
	CurrencyEur Currency = "EUR"
)

func (Currency) IsValid

func (e Currency) IsValid() bool

func (Currency) MarshalGQL

func (e Currency) MarshalGQL(w io.Writer)

func (Currency) String

func (e Currency) String() string

func (*Currency) UnmarshalGQL

func (e *Currency) UnmarshalGQL(v interface{}) error

type Customer

type Customer struct {
	Email              string  `json:"email"`
	Phone              *string `json:"phone,omitempty"`
	FirstName          string  `json:"firstName"`
	LastName           string  `json:"lastName"`
	ProfilePicture     *string `json:"profilePicture,omitempty"`
	ProfilePictureFull *string `json:"profilePictureFull,omitempty"`
}

type CustomerChangePasswordParams

type CustomerChangePasswordParams struct {
	OldPassword string `json:"oldPassword"`
	NewPassword string `json:"newPassword"`
}

type CustomerResetPasswordParams

type CustomerResetPasswordParams struct {
	Email       string `json:"email"`
	ResetToken  string `json:"resetToken"`
	NewPassword string `json:"newPassword"`
}

type CustomerResetPasswordRequestParams

type CustomerResetPasswordRequestParams struct {
	Email string `json:"email"`
}

type DigitalContent

type DigitalContent struct {
	ID             string             `json:"id"`
	Title          string             `json:"title"`
	ContentType    DigitalContentType `json:"contentType"`
	IsTrialAllowed bool               `json:"isTrialAllowed"`
	ContentText    *string            `json:"contentText,omitempty"`
	ContentURL     *string            `json:"contentUrl,omitempty"`
	UpdatedAt      string             `json:"updatedAt"`
	Position       int                `json:"position"`
}

type DigitalContentType

type DigitalContentType string
const (
	DigitalContentTypeFile  DigitalContentType = "File"
	DigitalContentTypeText  DigitalContentType = "Text"
	DigitalContentTypeVideo DigitalContentType = "Video"
	DigitalContentTypeAudio DigitalContentType = "Audio"
	DigitalContentTypeURL   DigitalContentType = "Url"
)

func (DigitalContentType) IsValid

func (e DigitalContentType) IsValid() bool

func (DigitalContentType) MarshalGQL

func (e DigitalContentType) MarshalGQL(w io.Writer)

func (DigitalContentType) String

func (e DigitalContentType) String() string

func (*DigitalContentType) UnmarshalGQL

func (e *DigitalContentType) UnmarshalGQL(v interface{}) error

type DigitalItem

type DigitalItem struct {
	ID          string            `json:"id"`
	Title       string            `json:"title"`
	Description *string           `json:"description,omitempty"`
	Position    int               `json:"position"`
	Contents    []*DigitalContent `json:"contents"`
}

type DiscountType

type DiscountType string
const (
	DiscountTypeProduct  DiscountType = "Product"
	DiscountTypeShipping DiscountType = "Shipping"
	DiscountTypeOverall  DiscountType = "Overall"
)

func (DiscountType) IsValid

func (e DiscountType) IsValid() bool

func (DiscountType) MarshalGQL

func (e DiscountType) MarshalGQL(w io.Writer)

func (DiscountType) String

func (e DiscountType) String() string

func (*DiscountType) UnmarshalGQL

func (e *DiscountType) UnmarshalGQL(v interface{}) error

type Feedback

type Feedback struct {
	Rating    int     `json:"rating"`
	Comment   *string `json:"comment,omitempty"`
	CreatedAt string  `json:"createdAt"`
}

type FilterKey

type FilterKey string
const (
	FilterKeyCollection FilterKey = "collection"
	FilterKeyCategory   FilterKey = "category"
	FilterKeyEmail      FilterKey = "email"
)

func (FilterKey) IsValid

func (e FilterKey) IsValid() bool

func (FilterKey) MarshalGQL

func (e FilterKey) MarshalGQL(w io.Writer)

func (FilterKey) String

func (e FilterKey) String() string

func (*FilterKey) UnmarshalGQL

func (e *FilterKey) UnmarshalGQL(v interface{}) error

type FilterQuery

type FilterQuery struct {
	Key   FilterKey `json:"key"`
	Value string    `json:"value"`
}

type GeneratePaymentNoneResponse

type GeneratePaymentNoneResponse struct {
	PaymentGatewayName   string  `json:"PaymentGatewayName"`
	Nonce                string  `json:"Nonce"`
	StripePublishableKey *string `json:"StripePublishableKey,omitempty"`
}

type GenerateShopSecretResponse

type GenerateShopSecretResponse struct {
	Secret StoreSecret `json:"secret"`
}

type GetAdminBlogPostResponse

type GetAdminBlogPostResponse struct {
	Post BlogPost `json:"post"`
}

type GetAdminCategoryByIDResponse

type GetAdminCategoryByIDResponse struct {
	Category Category `json:"category"`
}

type GetAdminCollectionByIDResponse

type GetAdminCollectionByIDResponse struct {
	Collection Collection `json:"collection"`
}

type GetAdminProductByIDResponse

type GetAdminProductByIDResponse struct {
	Product Product `json:"product"`
}

type GetBlogPostResponse

type GetBlogPostResponse struct {
	Post PBlogPost `json:"post"`
}

type GetCartByIDResponse

type GetCartByIDResponse struct {
	Cart Cart `json:"cart"`
}

type GetCategoryByIDResponse

type GetCategoryByIDResponse struct {
	Category PCategory `json:"category"`
}

type GetCollectionByIDResponse

type GetCollectionByIDResponse struct {
	Collection PCollection `json:"collection"`
}

type GetCouponCodeByCodeResponse

type GetCouponCodeByCodeResponse struct {
	Coupon CouponCode `json:"coupon"`
}

type GetCouponCodeByIDResponse

type GetCouponCodeByIDResponse struct {
	Coupon CouponCode `json:"coupon"`
}

type GetCustomerOrderByHashResponse

type GetCustomerOrderByHashResponse struct {
	Order Order `json:"order"`
}

type GetCustomerOrderByIDResponse

type GetCustomerOrderByIDResponse struct {
	Order Order `json:"order"`
}

type GetProductByIDResponse

type GetProductByIDResponse struct {
	Product PProduct `json:"product"`
}

type GetShippingMethodByIDResponse

type GetShippingMethodByIDResponse struct {
	Method ShippingMethod `json:"method"`
}

type GuestCheckoutPlaceOrderParams

type GuestCheckoutPlaceOrderParams struct {
	CartID           string         `json:"cartId"`
	BillingAddress   AddressParams  `json:"billingAddress"`
	ShippingAddress  *AddressParams `json:"shippingAddress,omitempty"`
	PaymentMethodID  *string        `json:"paymentMethodId,omitempty"`
	ShippingMethodID *string        `json:"shippingMethodId,omitempty"`
	CouponCode       *string        `json:"couponCode,omitempty"`
	FirstName        string         `json:"firstName"`
	LastName         string         `json:"lastName"`
	Email            string         `json:"email"`
	Note             *string        `json:"note,omitempty"`
}

type IsDigitalProductPurchasedByCustomerResp

type IsDigitalProductPurchasedByCustomerResp struct {
	IsPurchased  bool   `json:"isPurchased"`
	OrderHash    string `json:"orderHash"`
	PurchaseDate string `json:"purchaseDate"`
}

type ListAdminBlogPostResponse

type ListAdminBlogPostResponse struct {
	Posts []*BlogPost `json:"posts"`
}

type ListAdminCategoryResponse

type ListAdminCategoryResponse struct {
	Categories []*Category `json:"categories"`
}

type ListAdminCollectionResponse

type ListAdminCollectionResponse struct {
	Collections []*Collection `json:"collections"`
}

type ListAdminProductAttributeResponse

type ListAdminProductAttributeResponse struct {
	Attributes []*ProductAttribute `json:"attributes"`
}

type ListAdminProductResponse

type ListAdminProductResponse struct {
	Products []*Product `json:"products"`
}

type ListAdminProductVariationResponse

type ListAdminProductVariationResponse struct {
	Variations []*ProductVariation `json:"variations"`
}

type ListBlogPostResponse

type ListBlogPostResponse struct {
	Posts []*PBlogPost `json:"posts"`
}

type ListCategoryResponse

type ListCategoryResponse struct {
	Categories []*PCategory `json:"categories"`
}

type ListCollectionResponse

type ListCollectionResponse struct {
	Collections []*PCollection `json:"collections"`
}

type ListCouponCodesResponse

type ListCouponCodesResponse struct {
	Coupons []*CouponCode `json:"coupons"`
}

type ListCustomerOrdersResponse

type ListCustomerOrdersResponse struct {
	Orders []*Order `json:"orders"`
}

type ListPaymentMethodResponse

type ListPaymentMethodResponse struct {
	Methods []*PaymentMethod `json:"methods"`
}

type ListProductAttributeResponse

type ListProductAttributeResponse struct {
	Attributes []*ProductAttribute `json:"attributes"`
}

type ListProductResponse

type ListProductResponse struct {
	Products []*PProduct `json:"products"`
}

type ListProductVariationResponse

type ListProductVariationResponse struct {
	Variations []*PProductVariation `json:"variations"`
}

type ListShippingMethodResponse

type ListShippingMethodResponse struct {
	Methods []*ShippingMethod `json:"methods"`
}

type ListShopMediaResponse

type ListShopMediaResponse struct {
	Items []*ShopMedia `json:"items"`
}

type Location

type Location struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	ShortCode string `json:"shortCode"`
}

type LoginCustomerParams

type LoginCustomerParams struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type LoginCustomerResponse

type LoginCustomerResponse struct {
	AccessToken  string  `json:"accessToken"`
	RefreshToken *string `json:"refreshToken,omitempty"`
}

type LoginUserParams

type LoginUserParams struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type LoginUserResponse

type LoginUserResponse struct {
	AccessToken  string `json:"accessToken"`
	RefreshToken string `json:"refreshToken"`
}

type MagicLoginCustomerParams

type MagicLoginCustomerParams struct {
	Token string `json:"token"`
}

type MagicLoginCustomerRequestParams

type MagicLoginCustomerRequestParams struct {
	Email         string `json:"email"`
	StorefrontURL string `json:"storefrontUrl"`
}

type NewBlogPostParams

type NewBlogPostParams struct {
	Title       string   `json:"title"`
	Slug        *string  `json:"slug,omitempty"`
	BannerImage *string  `json:"bannerImage,omitempty"`
	Content     string   `json:"content"`
	Tags        []string `json:"tags,omitempty"`
	IsPublished bool     `json:"isPublished"`
	IsFeatured  bool     `json:"isFeatured"`
}

type NewCartParams

type NewCartParams struct {
	CartItems []*CartItemParams `json:"cartItems"`
}

type NewCategoryParams

type NewCategoryParams struct {
	Name        string  `json:"name"`
	Slug        *string `json:"slug,omitempty"`
	IsPublished bool    `json:"isPublished"`
	Description *string `json:"description,omitempty"`
	Image       *string `json:"image,omitempty"`
	Position    *int    `json:"position,omitempty"`
}

type NewCollectionParams

type NewCollectionParams struct {
	Name        string  `json:"name"`
	Slug        *string `json:"slug,omitempty"`
	IsPublished bool    `json:"isPublished"`
	Description *string `json:"description,omitempty"`
	Image       *string `json:"image,omitempty"`
	Position    *int    `json:"position,omitempty"`
}

type NewCouponCodeParams

type NewCouponCodeParams struct {
	Code              string       `json:"code"`
	Amount            int          `json:"amount"`
	MinOrderAmount    *int         `json:"minOrderAmount,omitempty"`
	MaxDiscountAmount *int         `json:"maxDiscountAmount,omitempty"`
	IsActive          bool         `json:"isActive"`
	IsFlatDiscount    bool         `json:"isFlatDiscount"`
	IsForNewUsersOnly bool         `json:"isForNewUsersOnly"`
	IsUserSpecific    bool         `json:"isUserSpecific"`
	MaxUsage          *int         `json:"maxUsage,omitempty"`
	MaxUsagePerUser   *int         `json:"maxUsagePerUser,omitempty"`
	DiscountType      DiscountType `json:"discountType"`
	Description       *string      `json:"description,omitempty"`
	Image             *string      `json:"image,omitempty"`
	StartAt           *string      `json:"startAt,omitempty"`
	EndAt             *string      `json:"endAt,omitempty"`
	Customers         []string     `json:"customers,omitempty"`
}

type NewProduct

type NewProduct struct {
	Name                    string       `json:"name"`
	Slug                    *string      `json:"slug,omitempty"`
	Description             string       `json:"description"`
	IsPublished             bool         `json:"isPublished"`
	Sku                     *string      `json:"sku,omitempty"`
	Stock                   *int         `json:"stock,omitempty"`
	MaxItemPerOrder         *int         `json:"maxItemPerOrder,omitempty"`
	Price                   int          `json:"price"`
	Cost                    int          `json:"cost"`
	Weight                  *float64     `json:"weight,omitempty"`
	WeightUnit              *WeightUnit  `json:"weightUnit,omitempty"`
	ProductUnit             *ProductUnit `json:"productUnit,omitempty"`
	Images                  []string     `json:"images"`
	IsDigitalProduct        bool         `json:"isDigitalProduct"`
	CategoryID              *string      `json:"categoryId,omitempty"`
	ProductSpecificDiscount *int         `json:"productSpecificDiscount,omitempty"`
}

type NewShippingMethodParams

type NewShippingMethodParams struct {
	DisplayName        string     `json:"displayName"`
	DeliveryCharge     int        `json:"deliveryCharge"`
	DeliveryTimeInDays int        `json:"deliveryTimeInDays"`
	WeightUnit         WeightUnit `json:"WeightUnit"`
	IsFlat             bool       `json:"isFlat"`
	IsActive           bool       `json:"isActive"`
}

type NewStoreBanner

type NewStoreBanner struct {
	Image       string  `json:"image"`
	Title       *string `json:"title,omitempty"`
	Description *string `json:"description,omitempty"`
	BtnValue    *string `json:"btnValue,omitempty"`
	BtnURL      *string `json:"btnUrl,omitempty"`
	Tag         *string `json:"tag,omitempty"`
	IsPublished bool    `json:"isPublished"`
	Position    int     `json:"position"`
}

type NewStoreMenu

type NewStoreMenu struct {
	Name         string  `json:"name"`
	URL          string  `json:"url"`
	Tag          *string `json:"tag,omitempty"`
	IsPublished  bool    `json:"isPublished"`
	Position     int     `json:"position"`
	ParentMenuID *string `json:"parentMenuId,omitempty"`
}

type NewStorePageParams

type NewStorePageParams struct {
	Title       string  `json:"title"`
	Slug        *string `json:"slug,omitempty"`
	Content     string  `json:"content"`
	IsPublished bool    `json:"isPublished"`
}

type NewStoreParams

type NewStoreParams struct {
	Name                     string          `json:"name"`
	Title                    *string         `json:"title,omitempty"`
	Description              *string         `json:"description,omitempty"`
	Tags                     []string        `json:"tags,omitempty"`
	MetaName                 *string         `json:"metaName,omitempty"`
	MetaDescription          *string         `json:"metaDescription,omitempty"`
	MetaTags                 []string        `json:"metaTags,omitempty"`
	Favicon                  *graphql.Upload `json:"favicon,omitempty"`
	BannerImage              *graphql.Upload `json:"bannerImage,omitempty"`
	IsOpen                   *bool           `json:"isOpen,omitempty"`
	IsCustomerLoyaltyEnabled *bool           `json:"isCustomerLoyaltyEnabled,omitempty"`
	Currency                 *Currency       `json:"currency,omitempty"`
	Website                  *string         `json:"website,omitempty"`
	SupportEmail             *string         `json:"supportEmail,omitempty"`
	SupportPhone             *string         `json:"supportPhone,omitempty"`
	Street                   *string         `json:"street,omitempty"`
	StreetOptional           *string         `json:"streetOptional,omitempty"`
	City                     *string         `json:"city,omitempty"`
	State                    *string         `json:"state,omitempty"`
	Postcode                 *string         `json:"postcode,omitempty"`
	LocationID               *string         `json:"locationID,omitempty"`
}

type NewStoreSecretParams

type NewStoreSecretParams struct {
	SecretType SecretType `json:"secretType"`
}

type Order

type Order struct {
	ID                   string             `json:"id"`
	Hash                 string             `json:"hash"`
	ShippingCharge       int                `json:"shippingCharge"`
	PaymentProcessingFee int                `json:"paymentProcessingFee"`
	Subtotal             int                `json:"subtotal"`
	GrandTotal           int                `json:"grandTotal"`
	DiscountedAmount     int                `json:"discountedAmount"`
	Status               OrderStatus        `json:"status"`
	PaymentStatus        OrderPaymentStatus `json:"paymentStatus"`
	CreatedAt            string             `json:"createdAt"`
	UpdatedAt            *string            `json:"updatedAt,omitempty"`
	BillingAddress       Address            `json:"billingAddress"`
	ShippingAddress      *Address           `json:"shippingAddress,omitempty"`
	Cart                 Cart               `json:"cart"`
	Customer             Customer           `json:"customer"`
	Shop                 PStore             `json:"shop"`
	PaymentMethod        *PaymentMethod     `json:"paymentMethod,omitempty"`
	ShippingMethod       *ShippingMethod    `json:"shippingMethod,omitempty"`
	CouponCode           *UserCouponCode    `json:"couponCode,omitempty"`
	Payments             []*Payment         `json:"payments"`
	Feedback             *Feedback          `json:"feedback,omitempty"`
	Note                 *string            `json:"note,omitempty"`
	SalesChannel         string             `json:"salesChannel"`
}

type OrderBy

type OrderBy string
const (
	OrderByID        OrderBy = "ID"
	OrderByCreatedAt OrderBy = "CreatedAt"
	OrderByUpdatedAt OrderBy = "UpdatedAt"
	OrderByPrice     OrderBy = "Price"
	OrderByView      OrderBy = "View"
	OrderByStock     OrderBy = "Stock"
)

func (OrderBy) IsValid

func (e OrderBy) IsValid() bool

func (OrderBy) MarshalGQL

func (e OrderBy) MarshalGQL(w io.Writer)

func (OrderBy) String

func (e OrderBy) String() string

func (*OrderBy) UnmarshalGQL

func (e *OrderBy) UnmarshalGQL(v interface{}) error

type OrderDirection

type OrderDirection string
const (
	OrderDirectionAsc  OrderDirection = "Asc"
	OrderDirectionDesc OrderDirection = "Desc"
)

func (OrderDirection) IsValid

func (e OrderDirection) IsValid() bool

func (OrderDirection) MarshalGQL

func (e OrderDirection) MarshalGQL(w io.Writer)

func (OrderDirection) String

func (e OrderDirection) String() string

func (*OrderDirection) UnmarshalGQL

func (e *OrderDirection) UnmarshalGQL(v interface{}) error

type OrderGenerateDigitalContent

type OrderGenerateDigitalContent struct {
	Type       DigitalContentType `json:"type"`
	Content    *string            `json:"content,omitempty"`
	ContentURL *string            `json:"contentUrl,omitempty"`
}

type OrderPaymentParams

type OrderPaymentParams struct {
	PayableAmount int `json:"payableAmount"`
}

type OrderPaymentStatus

type OrderPaymentStatus string
const (
	OrderPaymentStatusPending  OrderPaymentStatus = "Pending"
	OrderPaymentStatusPaid     OrderPaymentStatus = "Paid"
	OrderPaymentStatusFailed   OrderPaymentStatus = "Failed"
	OrderPaymentStatusRefunded OrderPaymentStatus = "Refunded"
	OrderPaymentStatusLending  OrderPaymentStatus = "Lending"
)

func (OrderPaymentStatus) IsValid

func (e OrderPaymentStatus) IsValid() bool

func (OrderPaymentStatus) MarshalGQL

func (e OrderPaymentStatus) MarshalGQL(w io.Writer)

func (OrderPaymentStatus) String

func (e OrderPaymentStatus) String() string

func (*OrderPaymentStatus) UnmarshalGQL

func (e *OrderPaymentStatus) UnmarshalGQL(v interface{}) error

type OrderSearchParams

type OrderSearchParams struct {
	CustomerEmail *string `json:"customerEmail,omitempty"`
	OrderHash     *string `json:"orderHash,omitempty"`
}

type OrderStatus

type OrderStatus string
const (
	OrderStatusPending    OrderStatus = "Pending"
	OrderStatusProcessing OrderStatus = "Processing"
	OrderStatusShipping   OrderStatus = "Shipping"
	OrderStatusDelivered  OrderStatus = "Delivered"
	OrderStatusCompleted  OrderStatus = "Completed"
	OrderStatusCancelled  OrderStatus = "Cancelled"
	OrderStatusReturned   OrderStatus = "Returned"
)

func (OrderStatus) IsValid

func (e OrderStatus) IsValid() bool

func (OrderStatus) MarshalGQL

func (e OrderStatus) MarshalGQL(w io.Writer)

func (OrderStatus) String

func (e OrderStatus) String() string

func (*OrderStatus) UnmarshalGQL

func (e *OrderStatus) UnmarshalGQL(v interface{}) error

type OrderUpdateParams

type OrderUpdateParams struct {
	Status        *OrderStatus          `json:"status,omitempty"`
	PaymentStatus *OrderPaymentStatus   `json:"paymentStatus,omitempty"`
	Payments      []*OrderPaymentParams `json:"payments,omitempty"`
}

type PBlogPost

type PBlogPost struct {
	ID              string             `json:"id"`
	Title           string             `json:"title"`
	Slug            *string            `json:"slug,omitempty"`
	BannerImage     *string            `json:"bannerImage,omitempty"`
	BannerImageFull *string            `json:"bannerImageFull,omitempty"`
	Content         string             `json:"content"`
	Tags            []string           `json:"tags,omitempty"`
	IsPublished     bool               `json:"isPublished"`
	IsFeatured      bool               `json:"isFeatured"`
	Views           int                `json:"views"`
	Favourites      int                `json:"favourites"`
	Comments        []*BlogPostComment `json:"comments"`
	CreatedAt       string             `json:"createdAt"`
	UpdatedAt       *string            `json:"updatedAt,omitempty"`
}

type PCart

type PCart struct {
	ID                 string       `json:"id"`
	IsShippingRequired bool         `json:"isShippingRequired"`
	CartItems          []*PCartItem `json:"cartItems"`
}

type PCartItem

type PCartItem struct {
	ID            int                     `json:"id"`
	Product       PProduct                `json:"product"`
	Quantity      int                     `json:"quantity"`
	PurchasePrice int                     `json:"purchasePrice"`
	Attributes    []*CartProductAttribute `json:"attributes"`
	Variation     *PProductVariation      `json:"variation,omitempty"`
}

type PCategory

type PCategory struct {
	ID           string  `json:"id"`
	Name         string  `json:"name"`
	Slug         string  `json:"slug"`
	Description  *string `json:"description,omitempty"`
	Image        *string `json:"image,omitempty"`
	FullImage    *string `json:"fullImage,omitempty"`
	ProductCount int     `json:"productCount"`
	Position     int     `json:"position"`
}

type PCollection

type PCollection struct {
	ID           string     `json:"id"`
	Name         string     `json:"name"`
	Slug         string     `json:"slug"`
	Description  *string    `json:"description,omitempty"`
	Image        *string    `json:"image,omitempty"`
	FullImage    *string    `json:"fullImage,omitempty"`
	Products     []*Product `json:"products,omitempty"`
	ProductCount int        `json:"productCount"`
	Position     int        `json:"position"`
}

type PDigitalItem

type PDigitalItem struct {
	ID          string            `json:"id"`
	Title       string            `json:"title"`
	Description *string           `json:"description,omitempty"`
	Position    int               `json:"position"`
	Contents    []*DigitalContent `json:"contents"`
}

type POrder

type POrder struct {
	ID                   string             `json:"id"`
	Hash                 string             `json:"hash"`
	ShippingCharge       int                `json:"shippingCharge"`
	PaymentProcessingFee int                `json:"paymentProcessingFee"`
	Subtotal             int                `json:"subtotal"`
	GrandTotal           int                `json:"grandTotal"`
	DiscountedAmount     int                `json:"discountedAmount"`
	Status               OrderStatus        `json:"status"`
	PaymentStatus        OrderPaymentStatus `json:"paymentStatus"`
	CreatedAt            string             `json:"createdAt"`
	UpdatedAt            *string            `json:"updatedAt,omitempty"`
	BillingAddress       Address            `json:"billingAddress"`
	ShippingAddress      *Address           `json:"shippingAddress,omitempty"`
	Cart                 PCart              `json:"cart"`
	Customer             Customer           `json:"customer"`
	Shop                 PStore             `json:"shop"`
	PaymentMethod        *PaymentMethod     `json:"paymentMethod,omitempty"`
	ShippingMethod       *ShippingMethod    `json:"shippingMethod,omitempty"`
	CouponCode           *UserCouponCode    `json:"couponCode,omitempty"`
	Payments             []*Payment         `json:"payments"`
	Feedback             *Feedback          `json:"feedback,omitempty"`
	Note                 *string            `json:"note,omitempty"`
}

type POrderSearchParams

type POrderSearchParams struct {
	ShopName  *string `json:"shopName,omitempty"`
	OrderHash *string `json:"orderHash,omitempty"`
}

type PProduct

type PProduct struct {
	ID                      string               `json:"id"`
	Name                    string               `json:"name"`
	Slug                    string               `json:"slug"`
	Description             string               `json:"description"`
	Sku                     *string              `json:"sku,omitempty"`
	Stock                   *int                 `json:"stock,omitempty"`
	MaxItemPerOrder         *int                 `json:"maxItemPerOrder,omitempty"`
	Price                   int                  `json:"price"`
	Images                  []string             `json:"images"`
	FullImages              []string             `json:"fullImages"`
	IsDigitalProduct        bool                 `json:"isDigitalProduct"`
	Views                   int                  `json:"views"`
	ProductUnit             *ProductUnit         `json:"productUnit,omitempty"`
	CreatedAt               string               `json:"createdAt"`
	UpdatedAt               *string              `json:"updatedAt,omitempty"`
	Category                *PCategory           `json:"category,omitempty"`
	Attributes              []*ProductAttribute  `json:"attributes"`
	Variations              []*PProductVariation `json:"variations"`
	DigitalItems            []*PDigitalItem      `json:"digitalItems"`
	Feedbacks               []*Feedback          `json:"feedbacks,omitempty"`
	ProductSpecificDiscount int                  `json:"productSpecificDiscount"`
}

type PProductVariation

type PProductVariation struct {
	ID    string  `json:"id"`
	Name  string  `json:"name"`
	Price int     `json:"price"`
	Sku   *string `json:"sku,omitempty"`
	Stock *int    `json:"stock,omitempty"`
}

type PStore

type PStore struct {
	Name             string    `json:"name"`
	Title            *string   `json:"title,omitempty"`
	LinklyThemeColor *string   `json:"linklyThemeColor,omitempty"`
	Description      *string   `json:"description,omitempty"`
	Tags             []string  `json:"tags,omitempty"`
	MetaName         *string   `json:"metaName,omitempty"`
	MetaDescription  *string   `json:"metaDescription,omitempty"`
	MetaTags         []string  `json:"metaTags,omitempty"`
	LogoPath         *string   `json:"logoPath,omitempty"`
	Favicon          *string   `json:"favicon,omitempty"`
	FaviconPath      *string   `json:"faviconPath,omitempty"`
	BannerImage      *string   `json:"bannerImage,omitempty"`
	BannerImagePath  *string   `json:"bannerImagePath,omitempty"`
	IsOpen           bool      `json:"isOpen"`
	Currency         Currency  `json:"currency"`
	Website          *string   `json:"website,omitempty"`
	SupportEmail     *string   `json:"supportEmail,omitempty"`
	SupportPhone     *string   `json:"supportPhone,omitempty"`
	CreatedAt        string    `json:"createdAt"`
	UpdatedAt        *string   `json:"updatedAt,omitempty"`
	Street           *string   `json:"street,omitempty"`
	StreetOptional   *string   `json:"streetOptional,omitempty"`
	City             *string   `json:"city,omitempty"`
	State            *string   `json:"state,omitempty"`
	Postcode         *string   `json:"postcode,omitempty"`
	Location         *Location `json:"location,omitempty"`
}

type PStoreBanner

type PStoreBanner struct {
	ImagePath   string  `json:"imagePath"`
	ImageURL    string  `json:"imageUrl"`
	Title       *string `json:"title,omitempty"`
	Description *string `json:"description,omitempty"`
	BtnValue    *string `json:"btnValue,omitempty"`
	BtnURL      *string `json:"btnUrl,omitempty"`
	Tag         *string `json:"tag,omitempty"`
	Position    int     `json:"position"`
}

type PStoreMenu

type PStoreMenu struct {
	ID         string        `json:"id"`
	Name       string        `json:"name"`
	URL        string        `json:"url"`
	Tag        *string       `json:"tag,omitempty"`
	Position   int           `json:"position"`
	ParentMenu *StoreMenu    `json:"parentMenu,omitempty"`
	SubMenus   []*PStoreMenu `json:"subMenus,omitempty"`
}

type PStorePage

type PStorePage struct {
	Title       string  `json:"title"`
	Slug        *string `json:"slug,omitempty"`
	Content     string  `json:"content"`
	IsPublished bool    `json:"isPublished"`
	Views       int     `json:"views"`
	CreatedAt   string  `json:"createdAt"`
	UpdatedAt   *string `json:"updatedAt,omitempty"`
}

type Pagination

type Pagination struct {
	PerPage int `json:"perPage"`
	Page    int `json:"page"`
}

type Payment

type Payment struct {
	IsPaid        bool   `json:"isPaid"`
	PayableAmount int    `json:"payableAmount"`
	GatewayName   string `json:"gatewayName"`
}

type PaymentGateway

type PaymentGateway string
const (
	PaymentGatewayStripe     PaymentGateway = "Stripe"
	PaymentGatewaySSLCommerz PaymentGateway = "SSLCommerz"
)

func (PaymentGateway) IsValid

func (e PaymentGateway) IsValid() bool

func (PaymentGateway) MarshalGQL

func (e PaymentGateway) MarshalGQL(w io.Writer)

func (PaymentGateway) String

func (e PaymentGateway) String() string

func (*PaymentGateway) UnmarshalGQL

func (e *PaymentGateway) UnmarshalGQL(v interface{}) error

type PaymentMethod

type PaymentMethod struct {
	ID               string `json:"id"`
	DisplayName      string `json:"displayName"`
	CurrencyName     string `json:"currencyName"`
	CurrencySymbol   string `json:"currencySymbol"`
	IsDigitalPayment bool   `json:"isDigitalPayment"`
}

type PaymentRequestOverrides

type PaymentRequestOverrides struct {
	SuccessCallback *string `json:"SuccessCallback,omitempty"`
	FailureCallback *string `json:"FailureCallback,omitempty"`
}

type PlaceOrderByAdminParams

type PlaceOrderByAdminParams struct {
	CartID           string         `json:"cartId"`
	BillingAddress   AddressParams  `json:"billingAddress"`
	ShippingAddress  *AddressParams `json:"shippingAddress,omitempty"`
	PaymentMethodID  *string        `json:"paymentMethodId,omitempty"`
	ShippingMethodID *string        `json:"shippingMethodId,omitempty"`
	CouponCode       *string        `json:"couponCode,omitempty"`
	CustomerID       string         `json:"customerId"`
	Note             *string        `json:"note,omitempty"`
}

type PlaceOrderParams

type PlaceOrderParams struct {
	CartID           string         `json:"cartId"`
	BillingAddress   AddressParams  `json:"billingAddress"`
	ShippingAddress  *AddressParams `json:"shippingAddress,omitempty"`
	PaymentMethodID  *string        `json:"paymentMethodId,omitempty"`
	ShippingMethodID *string        `json:"shippingMethodId,omitempty"`
	CouponCode       *string        `json:"couponCode,omitempty"`
	Note             *string        `json:"note,omitempty"`
}

type PlaceOrderResponse

type PlaceOrderResponse struct {
	Order Order `json:"order"`
}

type Product

type Product struct {
	ID                      string              `json:"id"`
	Name                    string              `json:"name"`
	Slug                    string              `json:"slug"`
	Description             string              `json:"description"`
	IsPublished             bool                `json:"isPublished"`
	Sku                     *string             `json:"sku,omitempty"`
	Stock                   *int                `json:"stock,omitempty"`
	MaxItemPerOrder         *int                `json:"maxItemPerOrder,omitempty"`
	Price                   int                 `json:"price"`
	Cost                    int                 `json:"cost"`
	Images                  []string            `json:"images"`
	FullImages              []string            `json:"fullImages"`
	IsDigitalProduct        bool                `json:"isDigitalProduct"`
	Views                   int                 `json:"views"`
	CreatedAt               string              `json:"createdAt"`
	Weight                  *float64            `json:"weight,omitempty"`
	WeightUnit              *WeightUnit         `json:"weightUnit,omitempty"`
	ProductUnit             *ProductUnit        `json:"productUnit,omitempty"`
	UpdatedAt               *string             `json:"updatedAt,omitempty"`
	Category                *Category           `json:"category,omitempty"`
	Attributes              []*ProductAttribute `json:"attributes"`
	Variations              []*ProductVariation `json:"variations"`
	DigitalItems            []*DigitalItem      `json:"digitalItems"`
	Feedbacks               []*Feedback         `json:"feedbacks,omitempty"`
	ProductSpecificDiscount int                 `json:"productSpecificDiscount"`
	Histories               []*ProductHistory   `json:"histories"`
}

type ProductAttribute

type ProductAttribute struct {
	ID         string   `json:"id"`
	Name       string   `json:"name"`
	Values     []string `json:"values"`
	IsRequired bool     `json:"isRequired"`
	CreatedAt  string   `json:"createdAt"`
	UpdateAt   *string  `json:"updateAt,omitempty"`
}

type ProductHistory

type ProductHistory struct {
	Message     string  `json:"message"`
	OldStock    int     `json:"oldStock"`
	NewStock    int     `json:"newStock"`
	VariationID *string `json:"variationID,omitempty"`
	OrderHash   *string `json:"orderHash,omitempty"`
	CreatedAt   string  `json:"createdAt"`
}

type ProductUnit

type ProductUnit string
const (
	ProductUnitPiece ProductUnit = "Piece"
	ProductUnitKg    ProductUnit = "KG"
	ProductUnitLiter ProductUnit = "Liter"
	ProductUnitTk    ProductUnit = "Tk"
)

func (ProductUnit) IsValid

func (e ProductUnit) IsValid() bool

func (ProductUnit) MarshalGQL

func (e ProductUnit) MarshalGQL(w io.Writer)

func (ProductUnit) String

func (e ProductUnit) String() string

func (*ProductUnit) UnmarshalGQL

func (e *ProductUnit) UnmarshalGQL(v interface{}) error

type ProductVariation

type ProductVariation struct {
	ID    string  `json:"id"`
	Name  string  `json:"name"`
	Price int     `json:"price"`
	Cost  int     `json:"cost"`
	Sku   *string `json:"sku,omitempty"`
	Stock *int    `json:"stock,omitempty"`
}

type RegisterCustomerParams

type RegisterCustomerParams struct {
	Email          string  `json:"email"`
	Password       string  `json:"password"`
	Phone          *string `json:"phone,omitempty"`
	FirstName      string  `json:"firstName"`
	LastName       string  `json:"lastName"`
	ProfilePicture *string `json:"profilePicture,omitempty"`
}

type RegisterCustomerResponse

type RegisterCustomerResponse struct {
	Customer    Customer `json:"customer"`
	AccessToken string   `json:"accessToken"`
}

type RegisterUserParams

type RegisterUserParams struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Email     string `json:"email"`
	Password  string `json:"password"`
}

type RegisterUserResponse

type RegisterUserResponse struct {
	User User `json:"user"`
}

type RemoveAttributeFromProductParams

type RemoveAttributeFromProductParams struct {
	ProductID   string `json:"productId"`
	AttributeID string `json:"attributeId"`
}

type RemoveProductsFromCollectionParams

type RemoveProductsFromCollectionParams struct {
	CollectionID string   `json:"collectionId"`
	ProductIds   []string `json:"productIds"`
}

type RemoveVariationFromProductParams

type RemoveVariationFromProductParams struct {
	ProductID   string `json:"productId"`
	VariationID string `json:"variationId"`
}

type Report

type Report struct {
	TotalSale          int `json:"totalSale"`
	TotalSalePending   int `json:"totalSalePending"`
	TotalCost          int `json:"totalCost"`
	TotalOrders        int `json:"totalOrders"`
	TotalOrdersPending int `json:"totalOrdersPending"`
	TotalCustomers     int `json:"totalCustomers"`
	TotalDiscount      int `json:"totalDiscount"`
	TotalDue           int `json:"totalDue"`
}

type ReportParams

type ReportParams struct {
	StartDate *string `json:"startDate,omitempty"`
	EndDate   *string `json:"endDate,omitempty"`
}

type SCustomer

type SCustomer struct {
	ID                 string  `json:"id"`
	Email              string  `json:"email"`
	Phone              *string `json:"phone,omitempty"`
	FirstName          string  `json:"firstName"`
	LastName           string  `json:"lastName"`
	ProfilePicture     *string `json:"profilePicture,omitempty"`
	ProfilePictureFull *string `json:"profilePictureFull,omitempty"`
	Due                int     `json:"due"`
}
type Search struct {
	Query   *string        `json:"query,omitempty"`
	Filters []*FilterQuery `json:"filters"`
}

type SecretType

type SecretType string
const (
	SecretTypeApp         SecretType = "App"
	SecretTypeAdmin       SecretType = "Admin"
	SecretTypeTelegramBot SecretType = "TelegramBot"
)

func (SecretType) IsValid

func (e SecretType) IsValid() bool

func (SecretType) MarshalGQL

func (e SecretType) MarshalGQL(w io.Writer)

func (SecretType) String

func (e SecretType) String() string

func (*SecretType) UnmarshalGQL

func (e *SecretType) UnmarshalGQL(v interface{}) error

type ShippingMethod

type ShippingMethod struct {
	ID                 string     `json:"id"`
	DisplayName        string     `json:"displayName"`
	DeliveryCharge     int        `json:"deliveryCharge"`
	DeliveryTimeInDays int        `json:"deliveryTimeInDays"`
	WeightUnit         WeightUnit `json:"WeightUnit"`
	IsFlat             bool       `json:"isFlat"`
	IsActive           bool       `json:"isActive"`
}

type ShopMedia

type ShopMedia struct {
	Path         string `json:"path"`
	URL          string `json:"url"`
	PermanentURL string `json:"permanentUrl"`
}

type ShopSecretsResponse

type ShopSecretsResponse struct {
	Secrets []*StoreSecret `json:"secrets"`
}

type ShopsResponse

type ShopsResponse struct {
	Shops []*Store `json:"shops"`
}

type Sort

type Sort struct {
	By        *SortBy        `json:"by,omitempty"`
	Direction *SortDirection `json:"direction,omitempty"`
}

type SortBy

type SortBy string
const (
	SortByID         SortBy = "Id"
	SortByCreatedAt  SortBy = "CreatedAt"
	SortByPrice      SortBy = "Price"
	SortByTotal      SortBy = "Total"
	SortByGrandTotal SortBy = "GrandTotal"
	SortByQuantity   SortBy = "Quantity"
	SortByStock      SortBy = "Stock"
	SortByPosition   SortBy = "Position"
)

func (SortBy) IsValid

func (e SortBy) IsValid() bool

func (SortBy) MarshalGQL

func (e SortBy) MarshalGQL(w io.Writer)

func (SortBy) String

func (e SortBy) String() string

func (*SortBy) UnmarshalGQL

func (e *SortBy) UnmarshalGQL(v interface{}) error

type SortDirection

type SortDirection string
const (
	SortDirectionAsc  SortDirection = "Asc"
	SortDirectionDesc SortDirection = "Desc"
)

func (SortDirection) IsValid

func (e SortDirection) IsValid() bool

func (SortDirection) MarshalGQL

func (e SortDirection) MarshalGQL(w io.Writer)

func (SortDirection) String

func (e SortDirection) String() string

func (*SortDirection) UnmarshalGQL

func (e *SortDirection) UnmarshalGQL(v interface{}) error

type Store

type Store struct {
	ID                       string    `json:"id"`
	Name                     string    `json:"name"`
	Title                    *string   `json:"title,omitempty"`
	LinklyThemeColor         *string   `json:"linklyThemeColor,omitempty"`
	Description              *string   `json:"description,omitempty"`
	Tags                     []string  `json:"tags,omitempty"`
	MetaName                 *string   `json:"metaName,omitempty"`
	MetaDescription          *string   `json:"metaDescription,omitempty"`
	MetaTags                 []string  `json:"metaTags,omitempty"`
	LogoPath                 *string   `json:"logoPath,omitempty"`
	Favicon                  *string   `json:"favicon,omitempty"`
	FaviconPath              *string   `json:"faviconPath,omitempty"`
	BannerImage              *string   `json:"bannerImage,omitempty"`
	BannerImagePath          *string   `json:"bannerImagePath,omitempty"`
	IsOpen                   bool      `json:"isOpen"`
	IsCustomerLoyaltyEnabled bool      `json:"isCustomerLoyaltyEnabled"`
	Currency                 Currency  `json:"currency"`
	Website                  *string   `json:"website,omitempty"`
	SupportEmail             *string   `json:"supportEmail,omitempty"`
	SupportPhone             *string   `json:"supportPhone,omitempty"`
	CreatedAt                string    `json:"createdAt"`
	UpdatedAt                *string   `json:"updatedAt,omitempty"`
	Street                   *string   `json:"street,omitempty"`
	StreetOptional           *string   `json:"streetOptional,omitempty"`
	City                     *string   `json:"city,omitempty"`
	State                    *string   `json:"state,omitempty"`
	Postcode                 *string   `json:"postcode,omitempty"`
	Location                 *Location `json:"location,omitempty"`
}

type StoreBanner

type StoreBanner struct {
	ID          string  `json:"id"`
	ImagePath   string  `json:"imagePath"`
	ImageURL    string  `json:"imageUrl"`
	Title       *string `json:"title,omitempty"`
	Description *string `json:"description,omitempty"`
	BtnValue    *string `json:"btnValue,omitempty"`
	BtnURL      *string `json:"btnUrl,omitempty"`
	Tag         *string `json:"tag,omitempty"`
	IsPublished bool    `json:"isPublished"`
	Position    int     `json:"position"`
}

type StoreMenu

type StoreMenu struct {
	ID          string       `json:"id"`
	Name        string       `json:"name"`
	URL         string       `json:"url"`
	Tag         *string      `json:"tag,omitempty"`
	IsPublished bool         `json:"isPublished"`
	Position    int          `json:"position"`
	ParentMenu  *StoreMenu   `json:"parentMenu,omitempty"`
	SubMenus    []*StoreMenu `json:"subMenus,omitempty"`
}

type StorePage

type StorePage struct {
	ID          string  `json:"id"`
	Title       string  `json:"title"`
	Slug        *string `json:"slug,omitempty"`
	Content     string  `json:"content"`
	IsPublished bool    `json:"isPublished"`
	Views       int     `json:"views"`
	CreatedAt   string  `json:"createdAt"`
	UpdatedAt   *string `json:"updatedAt,omitempty"`
}

type StoreSecret

type StoreSecret struct {
	ID         string     `json:"id"`
	Key        string     `json:"key"`
	Secret     string     `json:"secret"`
	SecretType SecretType `json:"secretType"`
}

type UpdateAttributeParams

type UpdateAttributeParams struct {
	Name       string   `json:"name"`
	Values     []string `json:"values"`
	IsRequired bool     `json:"isRequired"`
}

type UpdateAttributeResponse

type UpdateAttributeResponse struct {
	Attribute ProductAttribute `json:"attribute"`
}

type UpdateBlogPostComment

type UpdateBlogPostComment struct {
	Content string `json:"content"`
}

type UpdateBlogPostCommentResponse

type UpdateBlogPostCommentResponse struct {
	Comment BlogPostComment `json:"comment"`
}

type UpdateBlogPostParams

type UpdateBlogPostParams struct {
	Title       string   `json:"title"`
	Slug        *string  `json:"slug,omitempty"`
	BannerImage *string  `json:"bannerImage,omitempty"`
	Content     string   `json:"content"`
	Tags        []string `json:"tags,omitempty"`
	IsPublished bool     `json:"isPublished"`
	IsFeatured  bool     `json:"isFeatured"`
}

type UpdateBlogPostResponse

type UpdateBlogPostResponse struct {
	Post BlogPost `json:"post"`
}

type UpdateCartParams

type UpdateCartParams struct {
	CartItems []*CartItemParams `json:"cartItems"`
}

type UpdateCartResponse

type UpdateCartResponse struct {
	Cart Cart `json:"cart"`
}

type UpdateCategoryParams

type UpdateCategoryParams struct {
	Name        string  `json:"name"`
	Slug        *string `json:"slug,omitempty"`
	IsPublished bool    `json:"isPublished"`
	Description *string `json:"description,omitempty"`
	Image       *string `json:"image,omitempty"`
	Position    *int    `json:"position,omitempty"`
}

type UpdateCategoryResponse

type UpdateCategoryResponse struct {
	Category Category `json:"category"`
}

type UpdateCollectionParams

type UpdateCollectionParams struct {
	Name        string  `json:"name"`
	Slug        *string `json:"slug,omitempty"`
	IsPublished bool    `json:"isPublished"`
	Description *string `json:"description,omitempty"`
	Image       *string `json:"image,omitempty"`
	Position    *int    `json:"position,omitempty"`
}

type UpdateCollectionResponse

type UpdateCollectionResponse struct {
	Collection Collection `json:"collection"`
}

type UpdateCouponCodeParams

type UpdateCouponCodeParams struct {
	Code              string       `json:"code"`
	Amount            int          `json:"amount"`
	MinOrderAmount    *int         `json:"minOrderAmount,omitempty"`
	MaxDiscountAmount *int         `json:"maxDiscountAmount,omitempty"`
	IsActive          bool         `json:"isActive"`
	IsFlatDiscount    bool         `json:"isFlatDiscount"`
	IsForNewUsersOnly bool         `json:"isForNewUsersOnly"`
	IsUserSpecific    bool         `json:"isUserSpecific"`
	MaxUsage          *int         `json:"maxUsage,omitempty"`
	MaxUsagePerUser   *int         `json:"maxUsagePerUser,omitempty"`
	DiscountType      DiscountType `json:"discountType"`
	Description       *string      `json:"description,omitempty"`
	Image             *string      `json:"image,omitempty"`
	StartAt           *string      `json:"startAt,omitempty"`
	EndAt             *string      `json:"endAt,omitempty"`
	Customers         []string     `json:"customers,omitempty"`
}

type UpdateCouponCodeResponse

type UpdateCouponCodeResponse struct {
	Coupon CouponCode `json:"coupon"`
}

type UpdateCustomerParams

type UpdateCustomerParams struct {
	Phone          *string `json:"phone,omitempty"`
	FirstName      string  `json:"firstName"`
	LastName       string  `json:"lastName"`
	ProfilePicture *string `json:"profilePicture,omitempty"`
}

type UpdateDigitalContentParams

type UpdateDigitalContentParams struct {
	Title          string             `json:"title"`
	ContentType    DigitalContentType `json:"contentType"`
	IsTrialAllowed bool               `json:"isTrialAllowed"`
	ContentText    *string            `json:"contentText,omitempty"`
	ContentFile    *graphql.Upload    `json:"contentFile,omitempty"`
	Position       *int               `json:"position,omitempty"`
}

type UpdateDigitalItemParams

type UpdateDigitalItemParams struct {
	Title       string  `json:"title"`
	Description *string `json:"description,omitempty"`
	Position    *int    `json:"position,omitempty"`
}

type UpdateProduct

type UpdateProduct struct {
	Name                    string       `json:"name"`
	Slug                    *string      `json:"slug,omitempty"`
	Description             string       `json:"description"`
	IsPublished             bool         `json:"isPublished"`
	Sku                     *string      `json:"sku,omitempty"`
	Stock                   *int         `json:"stock,omitempty"`
	MaxItemPerOrder         *int         `json:"maxItemPerOrder,omitempty"`
	Price                   int          `json:"price"`
	Cost                    int          `json:"cost"`
	Weight                  *float64     `json:"weight,omitempty"`
	WeightUnit              *WeightUnit  `json:"weightUnit,omitempty"`
	ProductUnit             *ProductUnit `json:"productUnit,omitempty"`
	Images                  []string     `json:"images"`
	IsDigitalProduct        bool         `json:"isDigitalProduct"`
	CategoryID              *string      `json:"categoryId,omitempty"`
	ProductSpecificDiscount *int         `json:"productSpecificDiscount,omitempty"`
}

type UpdateProductResponse

type UpdateProductResponse struct {
	Product Product `json:"product"`
}

type UpdateShippingMethodParams

type UpdateShippingMethodParams struct {
	DisplayName        string     `json:"displayName"`
	DeliveryCharge     int        `json:"deliveryCharge"`
	DeliveryTimeInDays int        `json:"deliveryTimeInDays"`
	WeightUnit         WeightUnit `json:"WeightUnit"`
	IsFlat             bool       `json:"isFlat"`
	IsActive           bool       `json:"isActive"`
}

type UpdateShippingMethodResponse

type UpdateShippingMethodResponse struct {
	Method ShippingMethod `json:"method"`
}

type UpdateStoreBanner

type UpdateStoreBanner struct {
	Image       string  `json:"image"`
	Title       *string `json:"title,omitempty"`
	Description *string `json:"description,omitempty"`
	BtnValue    *string `json:"btnValue,omitempty"`
	BtnURL      *string `json:"btnUrl,omitempty"`
	Tag         *string `json:"tag,omitempty"`
	IsPublished bool    `json:"isPublished"`
	Position    int     `json:"position"`
}

type UpdateStoreMenu

type UpdateStoreMenu struct {
	Name         string  `json:"name"`
	URL          string  `json:"url"`
	Tag          *string `json:"tag,omitempty"`
	IsPublished  bool    `json:"isPublished"`
	Position     int     `json:"position"`
	ParentMenuID *string `json:"parentMenuId,omitempty"`
}

type UpdateStorePageParams

type UpdateStorePageParams struct {
	Title       string  `json:"title"`
	Slug        *string `json:"slug,omitempty"`
	Content     string  `json:"content"`
	IsPublished bool    `json:"isPublished"`
}

type UpdateStoreParams

type UpdateStoreParams struct {
	Name                     string    `json:"name"`
	Title                    *string   `json:"title,omitempty"`
	Description              *string   `json:"description,omitempty"`
	Tags                     []string  `json:"tags,omitempty"`
	MetaName                 *string   `json:"metaName,omitempty"`
	MetaDescription          *string   `json:"metaDescription,omitempty"`
	MetaTags                 []string  `json:"metaTags,omitempty"`
	Favicon                  *string   `json:"favicon,omitempty"`
	BannerImage              *string   `json:"bannerImage,omitempty"`
	IsOpen                   *bool     `json:"isOpen,omitempty"`
	IsCustomerLoyaltyEnabled *bool     `json:"isCustomerLoyaltyEnabled,omitempty"`
	Currency                 *Currency `json:"currency,omitempty"`
	Website                  *string   `json:"website,omitempty"`
	SupportEmail             *string   `json:"supportEmail,omitempty"`
	SupportPhone             *string   `json:"supportPhone,omitempty"`
	Street                   *string   `json:"street,omitempty"`
	StreetOptional           *string   `json:"streetOptional,omitempty"`
	City                     *string   `json:"city,omitempty"`
	State                    *string   `json:"state,omitempty"`
	Postcode                 *string   `json:"postcode,omitempty"`
	LocationID               *string   `json:"locationID,omitempty"`
}

type UpdateVariationParams

type UpdateVariationParams struct {
	Name       string      `json:"name"`
	Price      int         `json:"price"`
	Cost       int         `json:"cost"`
	Sku        *string     `json:"sku,omitempty"`
	Stock      *int        `json:"stock,omitempty"`
	Weight     *float64    `json:"weight,omitempty"`
	WeightUnit *WeightUnit `json:"weightUnit,omitempty"`
}

type UpdateVariationResponse

type UpdateVariationResponse struct {
	Variation ProductVariation `json:"variation"`
}

type User

type User struct {
	FirstName string  `json:"firstName"`
	LastName  string  `json:"lastName"`
	Email     string  `json:"email"`
	CreatedAt string  `json:"createdAt"`
	UpdatedAt *string `json:"updatedAt,omitempty"`
}

type UserCouponCode

type UserCouponCode struct {
	Code              string       `json:"code"`
	Amount            int          `json:"amount"`
	MinOrderAmount    *int         `json:"minOrderAmount,omitempty"`
	MaxDiscountAmount *int         `json:"maxDiscountAmount,omitempty"`
	IsFlatDiscount    bool         `json:"isFlatDiscount"`
	IsForNewUsersOnly bool         `json:"isForNewUsersOnly"`
	MaxUsagePerUser   *int         `json:"maxUsagePerUser,omitempty"`
	DiscountType      DiscountType `json:"discountType"`
	Description       *string      `json:"description,omitempty"`
	Image             *string      `json:"image,omitempty"`
	StartAt           *string      `json:"startAt,omitempty"`
	EndAt             *string      `json:"endAt,omitempty"`
}

type UserStatus

type UserStatus string
const (
	UserStatusRegistered UserStatus = "Registered"
	UserStatusActive     UserStatus = "Active"
	UserStatusBanned     UserStatus = "Banned"
	UserStatusSuspended  UserStatus = "Suspended"
)

func (UserStatus) IsValid

func (e UserStatus) IsValid() bool

func (UserStatus) MarshalGQL

func (e UserStatus) MarshalGQL(w io.Writer)

func (UserStatus) String

func (e UserStatus) String() string

func (*UserStatus) UnmarshalGQL

func (e *UserStatus) UnmarshalGQL(v interface{}) error

type WeightUnit

type WeightUnit string
const (
	WeightUnitGram WeightUnit = "Gram"
)

func (WeightUnit) IsValid

func (e WeightUnit) IsValid() bool

func (WeightUnit) MarshalGQL

func (e WeightUnit) MarshalGQL(w io.Writer)

func (WeightUnit) String

func (e WeightUnit) String() string

func (*WeightUnit) UnmarshalGQL

func (e *WeightUnit) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

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