Documentation ¶
Index ¶
- Constants
- func AuthorizeAnalyticsRequest(ctx context.Context, request *events.APIGatewayProxyRequest) error
- type CreateGroupRequest
- type CreateOrderAddressOptions
- type CreateOrderOrderOptions
- type CreateOrderRequest
- type GetRevenueRequest
- type GroupDetails
- type OrderDetails
- type OrderPublic
- type PaymentDropInRequest
- type PaymentDropInResponse
- type Revenue
- type RevenueItem
- type SearchCustomerRequest
- type SearchOrderRequest
Constants ¶
View Source
const (
HeaderAPIKey = "x-al-api-key"
)
Variables ¶
This section is empty.
Functions ¶
func AuthorizeAnalyticsRequest ¶
func AuthorizeAnalyticsRequest(ctx context.Context, request *events.APIGatewayProxyRequest) error
Types ¶
type CreateGroupRequest ¶
type CreateGroupRequest struct {
Store string `json:"store"`
}
type CreateOrderOrderOptions ¶
type CreateOrderOrderOptions struct { OrderID string OrderNumber string InvoiceNumber string Items []db.OrderItem DeliveryDate string DeliveryTime string Net string Total string Tax string Tip string CouponCode string AppliedCouponNet string AppliedCouponTax string AppliedCouponTotal string AppliedCoupon7Net string AppliedCoupon7Tax string AppliedCoupon7Total string AppliedCoupon19Net string AppliedCoupon19Tax string AppliedCoupon19Total string ShippingMethod db.OrderShippingMethod CustomerNote string Status db.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 db.OrderShippingMethod `json:"shippingMethod"` Items []db.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"` AppliedCoupon7Net string `json:"appliedCoupon7Net"` AppliedCoupon7Tax string `json:"appliedCoupon7Tax"` AppliedCoupon7Total string `json:"appliedCoupon7Total"` AppliedCoupon19Net string `json:"appliedCoupon19Net"` AppliedCoupon19Tax string `json:"appliedCoupon19Tax"` AppliedCoupon19Total string `json:"appliedCoupon19Total"` Store primitive.ObjectID `json:"store"` CompanyKey string `json:"companyKey"` }
type GetRevenueRequest ¶
type GroupDetails ¶
type GroupDetails struct { Group db.Group `json:"group"` Orders []OrderDetails `json:"orders"` }
type OrderDetails ¶
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 db.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"` InvoicePDFBase64 string `json:"invoicePDFBase64"` }
type PaymentDropInRequest ¶
type PaymentDropInRequest struct {
ReturnURL string `json:"returnUrl"`
}
type PaymentDropInResponse ¶
type Revenue ¶
type Revenue struct { Request GetRevenueRequest `json:"request"` Items []RevenueItem `json:"items"` }
type RevenueItem ¶
type RevenueItem struct { Text string `json:"type"` Total primitive.Decimal128 `json:"total"` }
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 ¶
Click to show internal directories.
Click to hide internal directories.