Documentation ¶
Index ¶
- Variables
- type AddAttributeParams
- type AddAttributeResponse
- type AddAttributeToProductParams
- type AddBlogPostComment
- type AddBlogPostCommentResponse
- type AddCouponCodeResponse
- type AddDigitalContentParams
- type AddDigitalItemParams
- type AddFeedbackParams
- type AddProductsToCollectionParams
- type AddVariationParams
- type AddVariationResponse
- type AddVariationToProductParams
- type Address
- type AddressParams
- type BlogPost
- type BlogPostComment
- type Cart
- type CartItem
- type CartItemAttributeParams
- type CartItemParams
- type CartProductAttribute
- type Category
- type Collection
- type CouponCode
- type CreateBlogPostResponse
- type CreateCartResponse
- type CreateCategoryResponse
- type CreateCollectionResponse
- type CreateProductResponse
- type CreateShippingMethodResponse
- type CreateShopResponse
- type Currency
- type Customer
- type CustomerChangePasswordParams
- type CustomerResetPasswordParams
- type CustomerResetPasswordRequestParams
- type DigitalContent
- type DigitalContentType
- type DigitalItem
- type DiscountType
- type Feedback
- type FilterKey
- type FilterQuery
- type GeneratePaymentNoneResponse
- type GenerateShopSecretResponse
- type GetAdminBlogPostResponse
- type GetAdminCategoryByIDResponse
- type GetAdminCollectionByIDResponse
- type GetAdminProductByIDResponse
- type GetBlogPostResponse
- type GetCartByIDResponse
- type GetCategoryByIDResponse
- type GetCollectionByIDResponse
- type GetCouponCodeByCodeResponse
- type GetCouponCodeByIDResponse
- type GetCustomerOrderByHashResponse
- type GetCustomerOrderByIDResponse
- type GetProductByIDResponse
- type GetShippingMethodByIDResponse
- type GuestCheckoutPlaceOrderParams
- type IsDigitalProductPurchasedByCustomerResp
- type ListAdminBlogPostResponse
- type ListAdminCategoryResponse
- type ListAdminCollectionResponse
- type ListAdminProductAttributeResponse
- type ListAdminProductResponse
- type ListAdminProductVariationResponse
- type ListBlogPostResponse
- type ListCategoryResponse
- type ListCollectionResponse
- type ListCouponCodesResponse
- type ListCustomerOrdersResponse
- type ListPaymentMethodResponse
- type ListProductAttributeResponse
- type ListProductResponse
- type ListProductVariationResponse
- type ListShippingMethodResponse
- type ListShopMediaResponse
- type Location
- type LoginCustomerParams
- type LoginCustomerResponse
- type LoginUserParams
- type LoginUserResponse
- type MagicLoginCustomerParams
- type MagicLoginCustomerRequestParams
- type NewBlogPostParams
- type NewCartParams
- type NewCategoryParams
- type NewCollectionParams
- type NewCouponCodeParams
- type NewProduct
- type NewShippingMethodParams
- type NewStoreBanner
- type NewStoreMenu
- type NewStorePageParams
- type NewStoreParams
- type NewStoreSecretParams
- type Order
- type OrderBy
- type OrderDirection
- type OrderGenerateDigitalContent
- type OrderPaymentParams
- type OrderPaymentStatus
- type OrderSearchParams
- type OrderStatus
- type OrderUpdateParams
- type PBlogPost
- type PCart
- type PCartItem
- type PCategory
- type PCollection
- type PDigitalItem
- type POrder
- type POrderSearchParams
- type PProduct
- type PProductVariation
- type PStore
- type PStoreBanner
- type PStoreMenu
- type PStorePage
- type Pagination
- type Payment
- type PaymentGateway
- type PaymentMethod
- type PaymentRequestOverrides
- type PlaceOrderByAdminParams
- type PlaceOrderParams
- type PlaceOrderResponse
- type Product
- type ProductAttribute
- type ProductHistory
- type ProductUnit
- type ProductVariation
- type RegisterCustomerParams
- type RegisterCustomerResponse
- type RegisterUserParams
- type RegisterUserResponse
- type RemoveAttributeFromProductParams
- type RemoveProductsFromCollectionParams
- type RemoveVariationFromProductParams
- type Report
- type ReportParams
- type SCustomer
- type Search
- type SecretType
- type ShippingMethod
- type ShopMedia
- type ShopSecretsResponse
- type ShopsResponse
- type Sort
- type SortBy
- type SortDirection
- type Store
- type StoreBanner
- type StoreMenu
- type StorePage
- type StoreSecret
- type UpdateAttributeParams
- type UpdateAttributeResponse
- type UpdateBlogPostComment
- type UpdateBlogPostCommentResponse
- type UpdateBlogPostParams
- type UpdateBlogPostResponse
- type UpdateCartParams
- type UpdateCartResponse
- type UpdateCategoryParams
- type UpdateCategoryResponse
- type UpdateCollectionParams
- type UpdateCollectionResponse
- type UpdateCouponCodeParams
- type UpdateCouponCodeResponse
- type UpdateCustomerParams
- type UpdateDigitalContentParams
- type UpdateDigitalItemParams
- type UpdateProduct
- type UpdateProductResponse
- type UpdateShippingMethodParams
- type UpdateShippingMethodResponse
- type UpdateStoreBanner
- type UpdateStoreMenu
- type UpdateStorePageParams
- type UpdateStoreParams
- type UpdateVariationParams
- type UpdateVariationResponse
- type User
- type UserCouponCode
- type UserStatus
- type WeightUnit
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCurrency = []Currency{ CurrencyUsd, CurrencyBdt, CurrencyEur, }
View Source
var AllDigitalContentType = []DigitalContentType{ DigitalContentTypeFile, DigitalContentTypeText, DigitalContentTypeVideo, DigitalContentTypeAudio, DigitalContentTypeURL, }
View Source
var AllDiscountType = []DiscountType{ DiscountTypeProduct, DiscountTypeShipping, DiscountTypeOverall, }
View Source
var AllFilterKey = []FilterKey{ FilterKeyCollection, FilterKeyCategory, FilterKeyEmail, }
View Source
var AllOrderBy = []OrderBy{ OrderByID, OrderByCreatedAt, OrderByUpdatedAt, OrderByPrice, OrderByView, OrderByStock, }
View Source
var AllOrderDirection = []OrderDirection{ OrderDirectionAsc, OrderDirectionDesc, }
View Source
var AllOrderPaymentStatus = []OrderPaymentStatus{ OrderPaymentStatusPending, OrderPaymentStatusPaid, OrderPaymentStatusFailed, OrderPaymentStatusRefunded, OrderPaymentStatusLending, }
View Source
var AllOrderStatus = []OrderStatus{ OrderStatusPending, OrderStatusProcessing, OrderStatusShipping, OrderStatusDelivered, OrderStatusCompleted, OrderStatusCancelled, OrderStatusReturned, }
View Source
var AllPaymentGateway = []PaymentGateway{ PaymentGatewayStripe, PaymentGatewaySSLCommerz, }
View Source
var AllProductUnit = []ProductUnit{ ProductUnitPiece, ProductUnitKg, ProductUnitLiter, ProductUnitTk, }
View Source
var AllSecretType = []SecretType{ SecretTypeApp, SecretTypeAdmin, SecretTypeTelegramBot, }
View Source
var AllSortBy = []SortBy{ SortByID, SortByCreatedAt, SortByPrice, SortByTotal, SortByGrandTotal, SortByQuantity, SortByStock, SortByPosition, }
View Source
var AllSortDirection = []SortDirection{ SortDirectionAsc, SortDirectionDesc, }
View Source
var AllUserStatus = []UserStatus{ UserStatusRegistered, UserStatusActive, UserStatusBanned, UserStatusSuspended, }
View Source
var AllWeightUnit = []WeightUnit{ WeightUnitGram, }
Functions ¶
This section is empty.
Types ¶
type AddAttributeParams ¶
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 AddFeedbackParams ¶
type AddVariationParams ¶
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 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 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 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 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 FilterKey ¶
type FilterKey string
func (FilterKey) MarshalGQL ¶
func (*FilterKey) UnmarshalGQL ¶
type FilterQuery ¶
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 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 LoginCustomerParams ¶
type LoginCustomerResponse ¶
type LoginUserParams ¶
type LoginUserResponse ¶
type MagicLoginCustomerParams ¶
type MagicLoginCustomerParams struct {
Token string `json:"token"`
}
type NewBlogPostParams ¶
type NewCartParams ¶
type NewCartParams struct {
CartItems []*CartItemParams `json:"cartItems"`
}
type NewCategoryParams ¶
type NewCollectionParams ¶
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 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 NewStorePageParams ¶
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"` Logo *graphql.Upload `json:"logo,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 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 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 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 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 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"` Logo *string `json:"logo,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 PStorePage ¶
type Pagination ¶
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 PaymentRequestOverrides ¶
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 ProductHistory ¶
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 RegisterCustomerParams ¶
type RegisterUserParams ¶
type RegisterUserResponse ¶
type RegisterUserResponse struct {
User User `json:"user"`
}
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 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 ¶
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 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 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"` Logo *string `json:"logo,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 StoreSecret ¶
type StoreSecret struct { ID string `json:"id"` Key string `json:"key"` Secret string `json:"secret"` SecretType SecretType `json:"secretType"` }
type UpdateAttributeParams ¶
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 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 UpdateCategoryResponse ¶
type UpdateCategoryResponse struct {
Category Category `json:"category"`
}
type UpdateCollectionParams ¶
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 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 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 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 UpdateStorePageParams ¶
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"` Logo *string `json:"logo,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 UpdateVariationResponse ¶
type UpdateVariationResponse struct {
Variation ProductVariation `json:"variation"`
}
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
Click to show internal directories.
Click to hide internal directories.