item

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_proto_order_item_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OrderItem

type OrderItem struct {

	// @inject_tag: faker:"uuid_hyphenated"
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" faker:"uuid_hyphenated"`
	// @inject_tag: faker:"oneof: 4.95, 9.99, 31997.97"
	Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty" faker:"oneof: 4.95, 9.99, 31997.97"`
	// @inject_tag: faker:"oneof: 11, 12"
	Quantity int64 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty" faker:"oneof: 11, 12"`
	// @inject_tag: faker:"uuid_hyphenated"
	ProductId string `protobuf:"bytes,4,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty" faker:"uuid_hyphenated"`
	// @inject_tag: faker:"uuid_hyphenated"
	OrderId   string                 `protobuf:"bytes,5,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty" faker:"uuid_hyphenated"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

OrderItem

func (*OrderItem) Descriptor deprecated

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

Deprecated: Use OrderItem.ProtoReflect.Descriptor instead.

func (*OrderItem) GetCreatedAt

func (x *OrderItem) GetCreatedAt() *timestamppb.Timestamp

func (*OrderItem) GetId

func (x *OrderItem) GetId() string

func (*OrderItem) GetOrderId

func (x *OrderItem) GetOrderId() string

func (*OrderItem) GetPrice

func (x *OrderItem) GetPrice() float64

func (*OrderItem) GetProductId

func (x *OrderItem) GetProductId() string

func (*OrderItem) GetQuantity

func (x *OrderItem) GetQuantity() int64

func (*OrderItem) GetUpdatedAt

func (x *OrderItem) GetUpdatedAt() *timestamppb.Timestamp

func (*OrderItem) ProtoMessage

func (*OrderItem) ProtoMessage()

func (*OrderItem) ProtoReflect

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

func (*OrderItem) Reset

func (x *OrderItem) Reset()

func (*OrderItem) String

func (x *OrderItem) String() string

func (*OrderItem) Validate

func (m *OrderItem) Validate() error

Validate checks the field values on OrderItem with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OrderItemValidationError

type OrderItemValidationError struct {
	// contains filtered or unexported fields
}

OrderItemValidationError is the validation error returned by OrderItem.Validate if the designated constraints aren't met.

func (OrderItemValidationError) Cause

func (e OrderItemValidationError) Cause() error

Cause function returns cause value.

func (OrderItemValidationError) Error

func (e OrderItemValidationError) Error() string

Error satisfies the builtin error interface

func (OrderItemValidationError) ErrorName

func (e OrderItemValidationError) ErrorName() string

ErrorName returns error name.

func (OrderItemValidationError) Field

func (e OrderItemValidationError) Field() string

Field function returns field value.

func (OrderItemValidationError) Key

Key function returns key value.

func (OrderItemValidationError) Reason

func (e OrderItemValidationError) Reason() string

Reason function returns reason value.

type OrderItems

type OrderItems struct {
	List       []*OrderItem             `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Pagination *common.PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderItems) Descriptor deprecated

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

Deprecated: Use OrderItems.ProtoReflect.Descriptor instead.

func (*OrderItems) GetList

func (x *OrderItems) GetList() []*OrderItem

func (*OrderItems) GetPagination

func (x *OrderItems) GetPagination() *common.PaginationResult

func (*OrderItems) ProtoMessage

func (*OrderItems) ProtoMessage()

func (*OrderItems) ProtoReflect

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

func (*OrderItems) Reset

func (x *OrderItems) Reset()

func (*OrderItems) String

func (x *OrderItems) String() string

func (*OrderItems) Validate

func (m *OrderItems) Validate() error

Validate checks the field values on OrderItems with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type OrderItemsValidationError

type OrderItemsValidationError struct {
	// contains filtered or unexported fields
}

OrderItemsValidationError is the validation error returned by OrderItems.Validate if the designated constraints aren't met.

func (OrderItemsValidationError) Cause

func (e OrderItemsValidationError) Cause() error

Cause function returns cause value.

func (OrderItemsValidationError) Error

Error satisfies the builtin error interface

func (OrderItemsValidationError) ErrorName

func (e OrderItemsValidationError) ErrorName() string

ErrorName returns error name.

func (OrderItemsValidationError) Field

Field function returns field value.

func (OrderItemsValidationError) Key

Key function returns key value.

func (OrderItemsValidationError) Reason

func (e OrderItemsValidationError) Reason() string

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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