api

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateGroupRequest

type CreateGroupRequest struct {
	Store string `json:"store"`
}

type CreateOrderAddressOptions

type CreateOrderAddressOptions struct {
	FirstName    string
	LastName     string
	Telephone    string
	Email        string
	AddressLine1 string
	AddressLine2 string
	Postcode     string
	City         string
}

type CreateOrderOrderOptions

type CreateOrderOrderOptions struct {
	OrderID            string
	OrderNumber        string
	InvoiceNumber      string
	Items              []dbadmin.OrderItem
	DeliveryDate       string
	DeliveryTime       string
	Net                string
	Total              string
	Tax                string
	Tip                string
	CouponCode         string
	AppliedCouponNet   string
	AppliedCouponTax   string
	AppliedCouponTotal string
	ShippingMethod     dbadmin.OrderShippingMethod
	CustomerNote       string
	Status             dbadmin.OrderStatus
	Store              primitive.ObjectID
	CompanyKey         string
}

type CreateOrderRequest

type CreateOrderRequest struct {
	FirstName          string                      `json:"firstName"`
	LastName           string                      `json:"lastName"`
	Telephone          string                      `json:"telephone"`
	Email              string                      `json:"email"`
	AddressLine1       string                      `json:"addressLine1"`
	AddressLine2       string                      `json:"addressLine2"`
	Postcode           string                      `json:"postcode"`
	City               string                      `json:"city"`
	ShippingMethod     dbadmin.OrderShippingMethod `json:"shippingMethod"`
	Items              []dbadmin.OrderItem         `json:"items"`
	Net                string                      `json:"net"`
	Tax                string                      `json:"tax"`
	Total              string                      `json:"total"`
	CouponCode         string                      `json:"couponCode"`
	AppliedCouponNet   string                      `json:"appliedCouponNet"`
	AppliedCouponTax   string                      `json:"appliedCouponTax"`
	AppliedCouponTotal string                      `json:"appliedCouponTotal"`
	Store              primitive.ObjectID          `json:"store"`
	CompanyKey         string                      `json:"companyKey"`
}

type GroupDetails

type GroupDetails struct {
	Group  dbadmin.Group  `json:"group"`
	Orders []OrderDetails `json:"orders"`
}

type OrderDetails

type OrderDetails struct {
	Order    dbadmin.Order    `json:"order"`
	Customer dbadmin.Customer `json:"customer"`
}

type OrderPublic

type OrderPublic struct {
	ID            primitive.ObjectID  `json:"id"`
	OrderID       string              `json:"orderId"`
	OrderNumber   string              `json:"orderNumber"`
	InvoiceNumber string              `json:"invoiceNumber"`
	Address       string              `json:"address"`
	AddressLine2  string              `json:"addressLine2"`
	DeliveryDate  string              `json:"deliveryDate"`
	DeliveryTime  string              `json:"deliveryTime"`
	Status        dbadmin.OrderStatus `json:"status"`
	Printed       bool                `json:"printed"`
	CreatedAt     time.Time           `json:"createdAt"`
	GroupKey      string              `json:"groupKey"`
	GroupPosition int                 `json:"groupPosition"`
	DriverName    string              `json:"driverName"`
	Invoice       string              `json:"invoice"`
}

type SearchCustomerRequest

type SearchCustomerRequest struct {
	Text         *string `json:"text"`
	FirstName    *string `json:"firstName"`
	LastName     *string `json:"lastName"`
	AddressLine1 *string `json:"addressLine1"`
	Postcode     *string `json:"postcode"`
	Telephone    *string `json:"telephone"`
	Email        *string `json:"email"`
	Limit        *int64  `json:"limit"`
}

type SearchOrderRequest

type SearchOrderRequest struct {
	Text  *string `json:"text"`
	Limit *int64  `json:"limit"`
}

Jump to

Keyboard shortcuts

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