transaction

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_transaction_cart_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cart

type Cart struct {
	CartUuid string      `protobuf:"bytes,1,opt,name=cart_uuid,proto3" json:"cart_uuid,omitempty"`
	Items    []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*Cart) Descriptor deprecated

func (*Cart) Descriptor() ([]byte, []int)

Deprecated: Use Cart.ProtoReflect.Descriptor instead.

func (*Cart) GetCartUuid

func (x *Cart) GetCartUuid() string

func (*Cart) GetItems

func (x *Cart) GetItems() []*CartItem

func (*Cart) ProtoMessage

func (*Cart) ProtoMessage()

func (*Cart) ProtoReflect

func (x *Cart) ProtoReflect() protoreflect.Message

func (*Cart) Reset

func (x *Cart) Reset()

func (*Cart) String

func (x *Cart) String() string

type CartItem

type CartItem struct {
	ItemUuid  string `protobuf:"bytes,1,opt,name=item_uuid,json=item_id,proto3" json:"item_uuid,omitempty"`
	Quantity  uint32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	ItemPrice uint32 `protobuf:"varint,3,opt,name=item_price,proto3" json:"item_price,omitempty"`
	Taxable   bool   `protobuf:"varint,4,opt,name=taxable,proto3" json:"taxable,omitempty"`
	// contains filtered or unexported fields
}

func (*CartItem) Descriptor deprecated

func (*CartItem) Descriptor() ([]byte, []int)

Deprecated: Use CartItem.ProtoReflect.Descriptor instead.

func (*CartItem) GetItemPrice

func (x *CartItem) GetItemPrice() uint32

func (*CartItem) GetItemUuid

func (x *CartItem) GetItemUuid() string

func (*CartItem) GetQuantity

func (x *CartItem) GetQuantity() uint32

func (*CartItem) GetTaxable

func (x *CartItem) GetTaxable() bool

func (*CartItem) ProtoMessage

func (*CartItem) ProtoMessage()

func (*CartItem) ProtoReflect

func (x *CartItem) ProtoReflect() protoreflect.Message

func (*CartItem) Reset

func (x *CartItem) Reset()

func (*CartItem) String

func (x *CartItem) String() string

Jump to

Keyboard shortcuts

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