graphql

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: OSL-3.0 Imports: 24 Imported by: 3

Documentation

Overview

Package graphql Code generated by go-bindata. (@generated) DO NOT EDIT. sources: schema.graphql

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

type CommerceCartMutationResolver

type CommerceCartMutationResolver struct {
	// contains filtered or unexported fields
}

CommerceCartMutationResolver resolves cart mutations

func (*CommerceCartMutationResolver) CommerceAddToCart

func (r *CommerceCartMutationResolver) CommerceAddToCart(ctx context.Context, marketplaceCode string, qty int, deliveryCode string) (*dto.DecoratedCart, error)

CommerceAddToCart mutation for adding products to the current users cart

func (*CommerceCartMutationResolver) CommerceCartApplyCouponCodeOrGiftCard added in v3.0.1

func (r *CommerceCartMutationResolver) CommerceCartApplyCouponCodeOrGiftCard(ctx context.Context, code string) (*dto.DecoratedCart, error)

CommerceCartApplyCouponCodeOrGiftCard – apply coupon code or gift card

func (*CommerceCartMutationResolver) CommerceCartRemoveCouponCode added in v3.0.1

func (r *CommerceCartMutationResolver) CommerceCartRemoveCouponCode(ctx context.Context, couponCode string) (*dto.DecoratedCart, error)

CommerceCartRemoveCouponCode - remove coupon code

func (*CommerceCartMutationResolver) CommerceCartRemoveGiftCard added in v3.0.1

func (r *CommerceCartMutationResolver) CommerceCartRemoveGiftCard(ctx context.Context, giftCardCode string) (*dto.DecoratedCart, error)

CommerceCartRemoveGiftCard - remove gift card

func (*CommerceCartMutationResolver) CommerceCartUpdateBillingAddress

func (r *CommerceCartMutationResolver) CommerceCartUpdateBillingAddress(ctx context.Context, address *cartForms.BillingAddressForm) (*dto.BillingAddressForm, error)

CommerceCartUpdateBillingAddress resolver method

func (*CommerceCartMutationResolver) CommerceCartUpdateSelectedPayment

func (r *CommerceCartMutationResolver) CommerceCartUpdateSelectedPayment(ctx context.Context, gateway string, method string) (*dto.SelectedPaymentResult, error)

CommerceCartUpdateSelectedPayment resolver method

func (*CommerceCartMutationResolver) CommerceDeleteCartDelivery

func (r *CommerceCartMutationResolver) CommerceDeleteCartDelivery(ctx context.Context, deliveryCode string) (*dto.DecoratedCart, error)

CommerceDeleteCartDelivery mutation for removing deliveries from current users cart

func (*CommerceCartMutationResolver) CommerceDeleteItem

func (r *CommerceCartMutationResolver) CommerceDeleteItem(ctx context.Context, itemID string, deliveryCode string) (*dto.DecoratedCart, error)

CommerceDeleteItem resolver

func (*CommerceCartMutationResolver) CommerceUpdateItemQty

func (r *CommerceCartMutationResolver) CommerceUpdateItemQty(ctx context.Context, itemID string, deliveryCode string, qty int) (*dto.DecoratedCart, error)

CommerceUpdateItemQty mutation for updating item quantity

func (*CommerceCartMutationResolver) Inject

func (r *CommerceCartMutationResolver) Inject(q *CommerceCartQueryResolver,
	applicationCartService *application.CartService,
	billingAddressFormController *cartForms.BillingAddressFormController,
	formDataEncoderFactory formApplication.FormDataEncoderFactory,
	simplePaymentFormController *cartForms.SimplePaymentFormController,
	cartService *application.CartService) *CommerceCartMutationResolver

Inject dependencies

type CommerceCartQueryResolver

type CommerceCartQueryResolver struct {
	// contains filtered or unexported fields
}

CommerceCartQueryResolver resolver for carts

func (*CommerceCartQueryResolver) CommerceCart

CommerceCart getter for queries

func (*CommerceCartQueryResolver) Inject

func (r *CommerceCartQueryResolver) Inject(
	applicationCartReceiverService *application.CartReceiverService,
)

Inject dependencies

type Service

type Service struct{}

Service describes the Commerce/Cart GraphQL Service

func (*Service) Models

func (*Service) Models() map[string]config.TypeMapEntry

Models mapping for Commerce_Cart types

func (*Service) Schema

func (*Service) Schema() []byte

Schema for cart, delivery and addresses

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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