revenue

package
v3.3.17 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Unlicense Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CheckOrder added in v3.3.16

func CheckOrder(log *logrus.Entry, ctx context.Context, stage, merchantRef string) error

func SyncCorporateOrder added in v3.3.9

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

func SyncCorporateOrderByUUID added in v3.3.15

func SyncCorporateOrderByUUID(log *logrus.Entry, ctx context.Context, stage, id string) error

func SyncPOSOrder added in v3.3.7

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

func SyncPOSOrderByUUID added in v3.3.15

func SyncPOSOrderByUUID(log *logrus.Entry, ctx context.Context, stage, id string) error

func SyncWooOrder

func SyncWooOrder(log *logrus.Entry, ctx context.Context, stage string, id int) error

func SyncWooRefunds added in v3.3.11

func SyncWooRefunds(log *logrus.Entry, ctx context.Context, stage string, id int) 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"`
}

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