Documentation ¶
Index ¶
- type Address
- type AddressParams
- type Cart
- type CartItem
- type Category
- type CouponCode
- type Customer
- type CustomerState
- type GuestCheckoutPlaceOrderParams
- type Location
- type NewCartParams
- type OrderDetail
- type OrderedCart
- type OrderedItem
- type Pagination
- type PaymentCallbackOverrides
- type PaymentMethod
- type PaymentNonce
- type PlaceOrderParams
- type Product
- type QueryCartItem
- type Search
- type ShippingMethod
- type Shop
- type Sort
- type UpdateCartParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressParams ¶
type AddressParams struct { Street string `json:"street"` StreetTwo string `json:"streetTwo"` City string `json:"city"` State string `json:"state"` Postcode string `json:"postcode"` LocationId string `json:"locationId"` Phone string `json:"phone"` Email string `json:"email"` }
func (AddressParams) GetGraphQLType ¶
func (AddressParams) GetGraphQLType() string
type Cart ¶
type Cart struct { ID string `json:"id"` IsShippingRequired bool `json:"isShippingRequired"` CartItems []QueryCartItem `json:"cartItems"` }
type CartItem ¶
func (CartItem) GetGraphQLType ¶
type CouponCode ¶
type CouponCode struct {
Code string `json:"code"`
}
type CustomerState ¶
type CustomerState string
const ( CustomerStateStart CustomerState = "start" CustomerStateChooseMenu CustomerState = "choose_menu" CustomerStateCheckout CustomerState = "checkout" CustomerStateAdditionalData CustomerState = "additional_data" CustomerStatePay CustomerState = "pay" CustomerStateOrderConfirmed CustomerState = "order_confirmed" CustomerStateSearchProducts CustomerState = "search_products" )
type GuestCheckoutPlaceOrderParams ¶
type GuestCheckoutPlaceOrderParams struct { CartID string `json:"cartId"` BillingAddress AddressParams `json:"billingAddress"` ShippingAddress AddressParams `json:"shippingAddress"` PaymentMethodId string `json:"paymentMethodId"` ShippingMethodId string `json:"shippingMethodId"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Note string `json:"note"` CouponCode string `json:"couponCode"` }
func (GuestCheckoutPlaceOrderParams) GetGraphQLType ¶
func (GuestCheckoutPlaceOrderParams) GetGraphQLType() string
type NewCartParams ¶
type NewCartParams struct {
CartItems []CartItem `json:"cartItems"`
}
func (NewCartParams) GetGraphQLType ¶
func (NewCartParams) GetGraphQLType() string
type OrderDetail ¶
type OrderDetail struct { ID string `json:"id"` Hash string `json:"hash"` Subtotal int64 `json:"subtotal"` GrandTotal int64 `json:"grandTotal"` DiscountedAmount int64 `json:"discountedAmount"` Status string `json:"status"` PaymentStatus string `json:"paymentStatus"` CreatedAt string `json:"createdAt"` Cart OrderedCart `json:"cart"` CouponCode CouponCode `json:"couponCode"` Note string `json:"note"` ShippingCharge int64 `json:"shippingCharge"` PaymentProcessingFee int64 `json:"paymentProcessingFee"` BillingAddress Address `json:"billingAddress"` ShippingAddress Address `json:"shippingAddress"` PaymentMethod PaymentMethod `json:"paymentMethod"` ShippingMethod ShippingMethod `json:"shippingMethod"` Customer Customer `json:"customer"` }
type OrderedCart ¶
type OrderedCart struct {
CartItems []OrderedItem `json:"cartItems"`
}
type OrderedItem ¶
type Pagination ¶
func (Pagination) GetGraphQLType ¶
func (Pagination) GetGraphQLType() string
type PaymentCallbackOverrides ¶
type PaymentCallbackOverrides struct { SuccessCallback string `json:"SuccessCallback"` FailureCallback string `json:"FailureCallback"` }
func (PaymentCallbackOverrides) GetGraphQLType ¶
func (PaymentCallbackOverrides) GetGraphQLType() string
type PaymentMethod ¶
type PaymentNonce ¶
type PlaceOrderParams ¶
type QueryCartItem ¶
type Search ¶
func (Search) GetGraphQLType ¶
type ShippingMethod ¶
type Shop ¶
type Shop struct { Name string `json:"name"` Title string `json:"title"` Description string `json:"description"` Tags []string `json:"tags"` MetaName string `json:"metaName"` MetaDescription string `json:"metaDescription"` MetaTags []string `json:"metaTags"` Logo string `json:"logo"` LogoPath string `json:"logoPath"` Favicon string `json:"favicon"` FaviconPath string `json:"faviconPath"` IsOpen bool `json:"isOpen"` Currency string `json:"currency"` SupportPhone string `json:"supportPhone"` }
type Sort ¶
func (Sort) GetGraphQLType ¶
type UpdateCartParams ¶
type UpdateCartParams struct {
CartItems []CartItem `json:"cartItems"`
}
func (UpdateCartParams) GetGraphQLType ¶
func (UpdateCartParams) GetGraphQLType() string
Click to show internal directories.
Click to hide internal directories.