shippingservice

package
v0.0.0-...-ec86544 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	weaver.AutoMarshal
	StreetAddress string
	City          string
	State         string
	Country       string
	ZipCode       int32
}

func (*Address) WeaverMarshal

func (x *Address) WeaverMarshal(enc *codegen.Encoder)

func (*Address) WeaverUnmarshal

func (x *Address) WeaverUnmarshal(dec *codegen.Decoder)

type ShippingService

type ShippingService interface {
	GetQuote(ctx context.Context, addr Address, items []cartservice.CartItem) (money.T, error)
	ShipOrder(ctx context.Context, addr Address, items []cartservice.CartItem) (string, error)
}

Jump to

Keyboard shortcuts

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