order

package
v0.0.0-...-522cb6f Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderService_GetOrder_FullMethodName        = "/dictybase.order.OrderService/GetOrder"
	OrderService_CreateOrder_FullMethodName     = "/dictybase.order.OrderService/CreateOrder"
	OrderService_UpdateOrder_FullMethodName     = "/dictybase.order.OrderService/UpdateOrder"
	OrderService_ListOrders_FullMethodName      = "/dictybase.order.OrderService/ListOrders"
	OrderService_LoadOrder_FullMethodName       = "/dictybase.order.OrderService/LoadOrder"
	OrderService_PrepareForOrder_FullMethodName = "/dictybase.order.OrderService/PrepareForOrder"
)

Variables

View Source
var (
	OrderStatus_name = map[int32]string{
		0: "IN_PREPARATION",
		1: "GROWING",
		2: "CANCELLED",
		3: "SHIPPED",
	}
	OrderStatus_value = map[string]int32{
		"IN_PREPARATION": 0,
		"GROWING":        1,
		"CANCELLED":      2,
		"SHIPPED":        3,
	}
)

Enum value maps for OrderStatus.

View Source
var File_dictybase_order_order_proto protoreflect.FileDescriptor
View Source
var OrderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dictybase.order.OrderService",
	HandlerType: (*OrderServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOrder",
			Handler:    _OrderService_GetOrder_Handler,
		},
		{
			MethodName: "CreateOrder",
			Handler:    _OrderService_CreateOrder_Handler,
		},
		{
			MethodName: "UpdateOrder",
			Handler:    _OrderService_UpdateOrder_Handler,
		},
		{
			MethodName: "ListOrders",
			Handler:    _OrderService_ListOrders_Handler,
		},
		{
			MethodName: "LoadOrder",
			Handler:    _OrderService_LoadOrder_Handler,
		},
		{
			MethodName: "PrepareForOrder",
			Handler:    _OrderService_PrepareForOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dictybase/order/order.proto",
}

OrderService_ServiceDesc is the grpc.ServiceDesc for OrderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterOrderServiceServer

func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)

Types

type ExistingOrder

type ExistingOrder struct {
	Data *ExistingOrder_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Definition for loading an existing order

func (*ExistingOrder) Descriptor deprecated

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

Deprecated: Use ExistingOrder.ProtoReflect.Descriptor instead.

func (*ExistingOrder) GetData

func (x *ExistingOrder) GetData() *ExistingOrder_Data

func (*ExistingOrder) ProtoMessage

func (*ExistingOrder) ProtoMessage()

func (*ExistingOrder) ProtoReflect

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

func (*ExistingOrder) Reset

func (x *ExistingOrder) Reset()

func (*ExistingOrder) String

func (x *ExistingOrder) String() string

func (*ExistingOrder) Validate

func (this *ExistingOrder) Validate() error

type ExistingOrderAttributes

type ExistingOrderAttributes struct {

	// Time order was created
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Time order was updated
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Person who is ordering (logged in user)
	Purchaser string `protobuf:"bytes,3,opt,name=purchaser,proto3" json:"purchaser,omitempty"`
	// List of items in the order, in this case it will be mostly biological
	// stocks such as plasmids and strains
	Items []string `protobuf:"bytes,4,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

Defines attributes for loading an existing order

func (*ExistingOrderAttributes) Descriptor deprecated

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

Deprecated: Use ExistingOrderAttributes.ProtoReflect.Descriptor instead.

func (*ExistingOrderAttributes) GetCreatedAt

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

func (*ExistingOrderAttributes) GetItems

func (x *ExistingOrderAttributes) GetItems() []string

func (*ExistingOrderAttributes) GetPurchaser

func (x *ExistingOrderAttributes) GetPurchaser() string

func (*ExistingOrderAttributes) GetUpdatedAt

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

func (*ExistingOrderAttributes) ProtoMessage

func (*ExistingOrderAttributes) ProtoMessage()

func (*ExistingOrderAttributes) ProtoReflect

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

func (*ExistingOrderAttributes) Reset

func (x *ExistingOrderAttributes) Reset()

func (*ExistingOrderAttributes) String

func (x *ExistingOrderAttributes) String() string

func (*ExistingOrderAttributes) Validate

func (this *ExistingOrderAttributes) Validate() error

type ExistingOrder_Data

type ExistingOrder_Data struct {

	// Resource name, by default should be order
	Type       string                   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Attributes *ExistingOrderAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*ExistingOrder_Data) Descriptor deprecated

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

Deprecated: Use ExistingOrder_Data.ProtoReflect.Descriptor instead.

func (*ExistingOrder_Data) GetAttributes

func (x *ExistingOrder_Data) GetAttributes() *ExistingOrderAttributes

func (*ExistingOrder_Data) GetType

func (x *ExistingOrder_Data) GetType() string

func (*ExistingOrder_Data) ProtoMessage

func (*ExistingOrder_Data) ProtoMessage()

func (*ExistingOrder_Data) ProtoReflect

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

func (*ExistingOrder_Data) Reset

func (x *ExistingOrder_Data) Reset()

func (*ExistingOrder_Data) String

func (x *ExistingOrder_Data) String() string

func (*ExistingOrder_Data) Validate

func (this *ExistingOrder_Data) Validate() error

type ListParameters

type ListParameters struct {

	// A unique pointer to the next set of result in the list
	Cursor int64 `protobuf:"varint,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// Maximum number of records that can be fetch per request
	Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// The `filter` field restricts the data return by the collection. To use
	// it, supply one or multiple allowed fields to filter followed
	// by a filter expression. It uses the following syntax...
	//
	//	field_name operator expression
	//
	// The following fields of `OrderAttributes` definition are allowed to
	// be used for filtering
	//   - item               - Items that are part of order (string).
	//   - courier            - The courier used for delivery (string)
	//   - payment            - Type of payment being used (string)
	//   - status             - The status of the order (string)
	//   - created_at         - Date the items are ordered (number), can be in the
	//     following formats:
	//     YYYY-MM-DD, YYYY-MM, YYYY
	//
	// field_name - Any one of the allowed field_name of the `OrderAttributes` definition.
	// operator - Defines the type of filter match to use. It could be any of
	// the following four and all of them should be URL-encoded for http request.
	//
	//	Operators for strings
	//	      =~   Contains substring
	//	      !~   Not contains substring
	//	      ===  Equals
	//	      !==  Not equals
	//
	//	Operators for number
	//	      ==  Equals
	//	      >   Greater than
	//	      <   Less than
	//	      <=  Less than equal to
	//	      >=  Greater than equal to
	//
	//	Operators for dates
	//	      $==  Equals
	//	      $>   Greater than
	//	      $<   Less than
	//	      $<=  Less than equal to
	//	      $>=  Greater than equal to
	//
	// expression - The value that will be included or excluded from the
	// result. URL-reserved characters must be URL-encoded for http request.
	//
	//	filter: "status===Shipped"
	//	filter: "courier===FedEx"
	//
	// Filter can be combined using OR or AND boolean logic.
	//
	//   - The OR is represented using a comma(,).
	//
	//   - The AND is represented using a semi-colon(;).
	//
	//   - AND and OR operators can be combined and AND takes precedence over OR.
	//
	//     filter: "courier===FedEx;payment===Credit"
	//     filter: "created_at$>=20181201"
	Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

ListParameters defines fields for manipulating output of Order collection

func (*ListParameters) Descriptor deprecated

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

Deprecated: Use ListParameters.ProtoReflect.Descriptor instead.

func (*ListParameters) GetCursor

func (x *ListParameters) GetCursor() int64

func (*ListParameters) GetFilter

func (x *ListParameters) GetFilter() string

func (*ListParameters) GetLimit

func (x *ListParameters) GetLimit() int64

func (*ListParameters) ProtoMessage

func (*ListParameters) ProtoMessage()

func (*ListParameters) ProtoReflect

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

func (*ListParameters) Reset

func (x *ListParameters) Reset()

func (*ListParameters) String

func (x *ListParameters) String() string

func (*ListParameters) Validate

func (this *ListParameters) Validate() error

type Meta

type Meta struct {

	// A unique pointer to the next set of result in the collection. Set the
	// cursor value parameter to the value of next_cursor to retrieve the next
	// set of collection using the same method
	NextCursor int64 `protobuf:"varint,1,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	// Maximum number of records that can be fetch per request
	Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// Total number of records in the collection.
	Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

Metadata definition for traversing the collection

func (*Meta) Descriptor deprecated

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

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetLimit

func (x *Meta) GetLimit() int64

func (*Meta) GetNextCursor

func (x *Meta) GetNextCursor() int64

func (*Meta) GetTotal

func (x *Meta) GetTotal() int64

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

func (*Meta) Validate

func (this *Meta) Validate() error

type NewOrder

type NewOrder struct {
	Data *NewOrder_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Definition for creating a new order

func (*NewOrder) Descriptor deprecated

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

Deprecated: Use NewOrder.ProtoReflect.Descriptor instead.

func (*NewOrder) GetData

func (x *NewOrder) GetData() *NewOrder_Data

func (*NewOrder) ProtoMessage

func (*NewOrder) ProtoMessage()

func (*NewOrder) ProtoReflect

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

func (*NewOrder) Reset

func (x *NewOrder) Reset()

func (*NewOrder) String

func (x *NewOrder) String() string

func (*NewOrder) Validate

func (this *NewOrder) Validate() error

type NewOrderAttributes

type NewOrderAttributes struct {

	// Name of courier for delivery
	Courier string `protobuf:"bytes,1,opt,name=courier,proto3" json:"courier,omitempty"`
	// Account identification used for courier service
	CourierAccount string `protobuf:"bytes,2,opt,name=courier_account,json=courierAccount,proto3" json:"courier_account,omitempty"`
	// Any comments about the order
	Comments string `protobuf:"bytes,3,opt,name=comments,proto3" json:"comments,omitempty"`
	// Type of payment being used
	Payment string `protobuf:"bytes,4,opt,name=payment,proto3" json:"payment,omitempty"`
	// Order number for purchase
	PurchaseOrderNum string `protobuf:"bytes,5,opt,name=purchase_order_num,json=purchaseOrderNum,proto3" json:"purchase_order_num,omitempty"`
	// Status of order
	Status OrderStatus `protobuf:"varint,6,opt,name=status,proto3,enum=dictybase.order.OrderStatus" json:"status,omitempty"`
	// Person (user) who is receiving the stocks in mail
	Consumer string `protobuf:"bytes,7,opt,name=consumer,proto3" json:"consumer,omitempty"`
	// Person (user) who is paying for the stocks
	Payer string `protobuf:"bytes,8,opt,name=payer,proto3" json:"payer,omitempty"`
	// Person who is ordering (logged in user)
	Purchaser string `protobuf:"bytes,9,opt,name=purchaser,proto3" json:"purchaser,omitempty"`
	// List of items in the order, in this case it will be mostly biological
	// stocks such as plasmids and strains
	Items []string `protobuf:"bytes,10,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

Defines attributes for creating a new order

func (*NewOrderAttributes) Descriptor deprecated

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

Deprecated: Use NewOrderAttributes.ProtoReflect.Descriptor instead.

func (*NewOrderAttributes) GetComments

func (x *NewOrderAttributes) GetComments() string

func (*NewOrderAttributes) GetConsumer

func (x *NewOrderAttributes) GetConsumer() string

func (*NewOrderAttributes) GetCourier

func (x *NewOrderAttributes) GetCourier() string

func (*NewOrderAttributes) GetCourierAccount

func (x *NewOrderAttributes) GetCourierAccount() string

func (*NewOrderAttributes) GetItems

func (x *NewOrderAttributes) GetItems() []string

func (*NewOrderAttributes) GetPayer

func (x *NewOrderAttributes) GetPayer() string

func (*NewOrderAttributes) GetPayment

func (x *NewOrderAttributes) GetPayment() string

func (*NewOrderAttributes) GetPurchaseOrderNum

func (x *NewOrderAttributes) GetPurchaseOrderNum() string

func (*NewOrderAttributes) GetPurchaser

func (x *NewOrderAttributes) GetPurchaser() string

func (*NewOrderAttributes) GetStatus

func (x *NewOrderAttributes) GetStatus() OrderStatus

func (*NewOrderAttributes) ProtoMessage

func (*NewOrderAttributes) ProtoMessage()

func (*NewOrderAttributes) ProtoReflect

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

func (*NewOrderAttributes) Reset

func (x *NewOrderAttributes) Reset()

func (*NewOrderAttributes) String

func (x *NewOrderAttributes) String() string

func (*NewOrderAttributes) Validate

func (this *NewOrderAttributes) Validate() error

type NewOrder_Data

type NewOrder_Data struct {

	// Resource name, by default should be order
	Type       string              `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Attributes *NewOrderAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*NewOrder_Data) Descriptor deprecated

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

Deprecated: Use NewOrder_Data.ProtoReflect.Descriptor instead.

func (*NewOrder_Data) GetAttributes

func (x *NewOrder_Data) GetAttributes() *NewOrderAttributes

func (*NewOrder_Data) GetType

func (x *NewOrder_Data) GetType() string

func (*NewOrder_Data) ProtoMessage

func (*NewOrder_Data) ProtoMessage()

func (*NewOrder_Data) ProtoReflect

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

func (*NewOrder_Data) Reset

func (x *NewOrder_Data) Reset()

func (*NewOrder_Data) String

func (x *NewOrder_Data) String() string

func (*NewOrder_Data) Validate

func (this *NewOrder_Data) Validate() error

type Order

type Order struct {
	Data *Order_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Definition of an individual order

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetData

func (x *Order) GetData() *Order_Data

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

func (*Order) Validate

func (this *Order) Validate() error

type OrderAttributes

type OrderAttributes struct {

	// Timestamp for creation
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Timestamp for update
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Name of courier for delivery
	Courier string `protobuf:"bytes,3,opt,name=courier,proto3" json:"courier,omitempty"`
	// Account identification used for courier service
	CourierAccount string `protobuf:"bytes,4,opt,name=courier_account,json=courierAccount,proto3" json:"courier_account,omitempty"`
	// Any comments about the order
	Comments string `protobuf:"bytes,5,opt,name=comments,proto3" json:"comments,omitempty"`
	// Type of payment being used
	Payment string `protobuf:"bytes,6,opt,name=payment,proto3" json:"payment,omitempty"`
	// Order number for purchase
	PurchaseOrderNum string `protobuf:"bytes,7,opt,name=purchase_order_num,json=purchaseOrderNum,proto3" json:"purchase_order_num,omitempty"`
	// Status of order
	Status OrderStatus `protobuf:"varint,8,opt,name=status,proto3,enum=dictybase.order.OrderStatus" json:"status,omitempty"`
	// Person (user) who is receiving the stocks in mail
	Consumer string `protobuf:"bytes,9,opt,name=consumer,proto3" json:"consumer,omitempty"`
	// Person (user) who is paying for the stocks
	Payer string `protobuf:"bytes,10,opt,name=payer,proto3" json:"payer,omitempty"`
	// Person who is ordering (logged in user)
	Purchaser string `protobuf:"bytes,11,opt,name=purchaser,proto3" json:"purchaser,omitempty"`
	// List of items in the order, in this case it will be mostly biological
	// stocks such as plasmids and strains
	Items []string `protobuf:"bytes,12,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

Definition of various order attributes

func (*OrderAttributes) Descriptor deprecated

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

Deprecated: Use OrderAttributes.ProtoReflect.Descriptor instead.

func (*OrderAttributes) GetComments

func (x *OrderAttributes) GetComments() string

func (*OrderAttributes) GetConsumer

func (x *OrderAttributes) GetConsumer() string

func (*OrderAttributes) GetCourier

func (x *OrderAttributes) GetCourier() string

func (*OrderAttributes) GetCourierAccount

func (x *OrderAttributes) GetCourierAccount() string

func (*OrderAttributes) GetCreatedAt

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

func (*OrderAttributes) GetItems

func (x *OrderAttributes) GetItems() []string

func (*OrderAttributes) GetPayer

func (x *OrderAttributes) GetPayer() string

func (*OrderAttributes) GetPayment

func (x *OrderAttributes) GetPayment() string

func (*OrderAttributes) GetPurchaseOrderNum

func (x *OrderAttributes) GetPurchaseOrderNum() string

func (*OrderAttributes) GetPurchaser

func (x *OrderAttributes) GetPurchaser() string

func (*OrderAttributes) GetStatus

func (x *OrderAttributes) GetStatus() OrderStatus

func (*OrderAttributes) GetUpdatedAt

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

func (*OrderAttributes) ProtoMessage

func (*OrderAttributes) ProtoMessage()

func (*OrderAttributes) ProtoReflect

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

func (*OrderAttributes) Reset

func (x *OrderAttributes) Reset()

func (*OrderAttributes) String

func (x *OrderAttributes) String() string

func (*OrderAttributes) Validate

func (this *OrderAttributes) Validate() error

type OrderCollection

type OrderCollection struct {
	Data []*OrderCollection_Data `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Meta *Meta                   `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

List of orders

func (*OrderCollection) Descriptor deprecated

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

Deprecated: Use OrderCollection.ProtoReflect.Descriptor instead.

func (*OrderCollection) GetData

func (x *OrderCollection) GetData() []*OrderCollection_Data

func (*OrderCollection) GetMeta

func (x *OrderCollection) GetMeta() *Meta

func (*OrderCollection) ProtoMessage

func (*OrderCollection) ProtoMessage()

func (*OrderCollection) ProtoReflect

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

func (*OrderCollection) Reset

func (x *OrderCollection) Reset()

func (*OrderCollection) String

func (x *OrderCollection) String() string

func (*OrderCollection) Validate

func (this *OrderCollection) Validate() error

type OrderCollection_Data

type OrderCollection_Data struct {

	// Resource name, by default should be order
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Unique identifier for the order
	Id         string           `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Attributes *OrderAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderCollection_Data) Descriptor deprecated

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

Deprecated: Use OrderCollection_Data.ProtoReflect.Descriptor instead.

func (*OrderCollection_Data) GetAttributes

func (x *OrderCollection_Data) GetAttributes() *OrderAttributes

func (*OrderCollection_Data) GetId

func (x *OrderCollection_Data) GetId() string

func (*OrderCollection_Data) GetType

func (x *OrderCollection_Data) GetType() string

func (*OrderCollection_Data) ProtoMessage

func (*OrderCollection_Data) ProtoMessage()

func (*OrderCollection_Data) ProtoReflect

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

func (*OrderCollection_Data) Reset

func (x *OrderCollection_Data) Reset()

func (*OrderCollection_Data) String

func (x *OrderCollection_Data) String() string

func (*OrderCollection_Data) Validate

func (this *OrderCollection_Data) Validate() error

type OrderId

type OrderId struct {

	// Unique identifier for the order
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderId) Descriptor deprecated

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

Deprecated: Use OrderId.ProtoReflect.Descriptor instead.

func (*OrderId) GetId

func (x *OrderId) GetId() string

func (*OrderId) ProtoMessage

func (*OrderId) ProtoMessage()

func (*OrderId) ProtoReflect

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

func (*OrderId) Reset

func (x *OrderId) Reset()

func (*OrderId) String

func (x *OrderId) String() string

func (*OrderId) Validate

func (this *OrderId) Validate() error

type OrderServiceClient

type OrderServiceClient interface {
	// Retrieves order by ID
	GetOrder(ctx context.Context, in *OrderId, opts ...grpc.CallOption) (*Order, error)
	// Create a new order
	CreateOrder(ctx context.Context, in *NewOrder, opts ...grpc.CallOption) (*Order, error)
	// Update an existing order
	UpdateOrder(ctx context.Context, in *OrderUpdate, opts ...grpc.CallOption) (*Order, error)
	// List orders using pagination, ten entries are retrieved by default
	ListOrders(ctx context.Context, in *ListParameters, opts ...grpc.CallOption) (*OrderCollection, error)
	// Load existing order
	LoadOrder(ctx context.Context, in *ExistingOrder, opts ...grpc.CallOption) (*Order, error)
	// Clear database before loading existing orders
	PrepareForOrder(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

OrderServiceClient is the client API for OrderService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type OrderServiceServer

type OrderServiceServer interface {
	// Retrieves order by ID
	GetOrder(context.Context, *OrderId) (*Order, error)
	// Create a new order
	CreateOrder(context.Context, *NewOrder) (*Order, error)
	// Update an existing order
	UpdateOrder(context.Context, *OrderUpdate) (*Order, error)
	// List orders using pagination, ten entries are retrieved by default
	ListOrders(context.Context, *ListParameters) (*OrderCollection, error)
	// Load existing order
	LoadOrder(context.Context, *ExistingOrder) (*Order, error)
	// Clear database before loading existing orders
	PrepareForOrder(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

OrderServiceServer is the server API for OrderService service. All implementations must embed UnimplementedOrderServiceServer for forward compatibility

type OrderStatus

type OrderStatus int32

The pre-defined labels for order status

const (
	OrderStatus_IN_PREPARATION OrderStatus = 0
	OrderStatus_GROWING        OrderStatus = 1
	OrderStatus_CANCELLED      OrderStatus = 2
	OrderStatus_SHIPPED        OrderStatus = 3
)

func (OrderStatus) Descriptor

func (OrderStatus) Enum

func (x OrderStatus) Enum() *OrderStatus

func (OrderStatus) EnumDescriptor deprecated

func (OrderStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderStatus.Descriptor instead.

func (OrderStatus) Number

func (x OrderStatus) Number() protoreflect.EnumNumber

func (OrderStatus) String

func (x OrderStatus) String() string

func (OrderStatus) Type

type OrderUpdate

type OrderUpdate struct {
	Data *OrderUpdate_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Definition for updating an existing order

func (*OrderUpdate) Descriptor deprecated

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

Deprecated: Use OrderUpdate.ProtoReflect.Descriptor instead.

func (*OrderUpdate) GetData

func (x *OrderUpdate) GetData() *OrderUpdate_Data

func (*OrderUpdate) ProtoMessage

func (*OrderUpdate) ProtoMessage()

func (*OrderUpdate) ProtoReflect

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

func (*OrderUpdate) Reset

func (x *OrderUpdate) Reset()

func (*OrderUpdate) String

func (x *OrderUpdate) String() string

func (*OrderUpdate) Validate

func (this *OrderUpdate) Validate() error

type OrderUpdateAttributes

type OrderUpdateAttributes struct {

	// Name of courier for delivery
	Courier string `protobuf:"bytes,1,opt,name=courier,proto3" json:"courier,omitempty"`
	// Account identification used for courier service
	CourierAccount string `protobuf:"bytes,2,opt,name=courier_account,json=courierAccount,proto3" json:"courier_account,omitempty"`
	// Any comments about the order
	Comments string `protobuf:"bytes,3,opt,name=comments,proto3" json:"comments,omitempty"`
	// Type of payment being used
	Payment string `protobuf:"bytes,4,opt,name=payment,proto3" json:"payment,omitempty"`
	// Order number for purchase
	PurchaseOrderNum string `protobuf:"bytes,5,opt,name=purchase_order_num,json=purchaseOrderNum,proto3" json:"purchase_order_num,omitempty"`
	// Status of order
	Status OrderStatus `protobuf:"varint,6,opt,name=status,proto3,enum=dictybase.order.OrderStatus" json:"status,omitempty"`
	// List of items in the order, in this case it will be mostly biological
	// stocks such as plasmids and strains
	Items []string `protobuf:"bytes,7,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

Defines attributes for updating an existing order

func (*OrderUpdateAttributes) Descriptor deprecated

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

Deprecated: Use OrderUpdateAttributes.ProtoReflect.Descriptor instead.

func (*OrderUpdateAttributes) GetComments

func (x *OrderUpdateAttributes) GetComments() string

func (*OrderUpdateAttributes) GetCourier

func (x *OrderUpdateAttributes) GetCourier() string

func (*OrderUpdateAttributes) GetCourierAccount

func (x *OrderUpdateAttributes) GetCourierAccount() string

func (*OrderUpdateAttributes) GetItems

func (x *OrderUpdateAttributes) GetItems() []string

func (*OrderUpdateAttributes) GetPayment

func (x *OrderUpdateAttributes) GetPayment() string

func (*OrderUpdateAttributes) GetPurchaseOrderNum

func (x *OrderUpdateAttributes) GetPurchaseOrderNum() string

func (*OrderUpdateAttributes) GetStatus

func (x *OrderUpdateAttributes) GetStatus() OrderStatus

func (*OrderUpdateAttributes) ProtoMessage

func (*OrderUpdateAttributes) ProtoMessage()

func (*OrderUpdateAttributes) ProtoReflect

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

func (*OrderUpdateAttributes) Reset

func (x *OrderUpdateAttributes) Reset()

func (*OrderUpdateAttributes) String

func (x *OrderUpdateAttributes) String() string

func (*OrderUpdateAttributes) Validate

func (this *OrderUpdateAttributes) Validate() error

type OrderUpdate_Data

type OrderUpdate_Data struct {

	// Resource name, by default should be order
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Unique identifier for the order
	Id         string                 `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Attributes *OrderUpdateAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderUpdate_Data) Descriptor deprecated

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

Deprecated: Use OrderUpdate_Data.ProtoReflect.Descriptor instead.

func (*OrderUpdate_Data) GetAttributes

func (x *OrderUpdate_Data) GetAttributes() *OrderUpdateAttributes

func (*OrderUpdate_Data) GetId

func (x *OrderUpdate_Data) GetId() string

func (*OrderUpdate_Data) GetType

func (x *OrderUpdate_Data) GetType() string

func (*OrderUpdate_Data) ProtoMessage

func (*OrderUpdate_Data) ProtoMessage()

func (*OrderUpdate_Data) ProtoReflect

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

func (*OrderUpdate_Data) Reset

func (x *OrderUpdate_Data) Reset()

func (*OrderUpdate_Data) String

func (x *OrderUpdate_Data) String() string

func (*OrderUpdate_Data) Validate

func (this *OrderUpdate_Data) Validate() error

type Order_Data

type Order_Data struct {

	// Resource name, by default should be order
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Unique identifier for the order
	Id         string           `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Attributes *OrderAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

func (*Order_Data) Descriptor deprecated

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

Deprecated: Use Order_Data.ProtoReflect.Descriptor instead.

func (*Order_Data) GetAttributes

func (x *Order_Data) GetAttributes() *OrderAttributes

func (*Order_Data) GetId

func (x *Order_Data) GetId() string

func (*Order_Data) GetType

func (x *Order_Data) GetType() string

func (*Order_Data) ProtoMessage

func (*Order_Data) ProtoMessage()

func (*Order_Data) ProtoReflect

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

func (*Order_Data) Reset

func (x *Order_Data) Reset()

func (*Order_Data) String

func (x *Order_Data) String() string

func (*Order_Data) Validate

func (this *Order_Data) Validate() error

type UnimplementedOrderServiceServer

type UnimplementedOrderServiceServer struct {
}

UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrderServiceServer) CreateOrder

func (UnimplementedOrderServiceServer) GetOrder

func (UnimplementedOrderServiceServer) ListOrders

func (UnimplementedOrderServiceServer) LoadOrder

func (UnimplementedOrderServiceServer) PrepareForOrder

func (UnimplementedOrderServiceServer) UpdateOrder

type UnsafeOrderServiceServer

type UnsafeOrderServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeOrderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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