service

package
v3.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WooTaxClass7 = "mitnehmen"
	WooFeeTip    = "Tip"
)

Variables

View Source
var (
	ErrorNotFound = fmt.Errorf("not found")
)

Functions

func TimeToDynamoString

func TimeToDynamoString(t time.Time) (*string, error)

Types

type Revenue

type Revenue struct {
	ID             string                      `dynamodbav:"Id"`
	PaymentID      string                      `dynamodbav:"PaymentId"`
	CreatedAt      string                      `dynamodbav:"CreatedAt"`
	Type           RevenueType                 `dynamodbav:"RevenueType"`
	ShippingMethod dbadmin.OrderShippingMethod `dynamodbav:"ShippingMethod"`
	Store          string                      `dynamodbav:"Store"`
	Source         RevenueSource               `dynamodbav:"Source"`
	Company        string                      `dynamodbav:"Company"`
	Net7           string                      `dynamodbav:"Net7"`
	Tax7           string                      `dynamodbav:"Tax7"`
	Tip            string                      `dynamodbav:"Tip"`
}

func GetByID added in v3.5.0

func GetByID(log *logrus.Entry, ctx context.Context, stage, orderID string) (*Revenue, error)

func QueryByPaymentID

func QueryByPaymentID(log *logrus.Entry, ctx context.Context, stage, paymentID string) ([]Revenue, error)

type RevenueSource

type RevenueSource string
const (
	RevenueSourceOnline    RevenueSource = "Online"
	RevenueSourceOffline   RevenueSource = "POS"
	RevenueSourceCorporate RevenueSource = "Corporate"
)

type RevenueType

type RevenueType string
const (
	RevenueTypeOrder  RevenueType = "Order"
	RevenueTypeRefund RevenueType = "Refund"
)

Jump to

Keyboard shortcuts

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