purchases

package
v0.0.0-...-def015a Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pagination_Sort_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	Pagination_Sort_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for Pagination_Sort.

View Source
var File_pkg_api_v1_purchases_generic_message_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_purchases_purchase_message_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_purchases_purchase_return_message_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_purchases_purchase_return_service_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_purchases_purchase_service_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_purchases_supplier_message_proto protoreflect.FileDescriptor
View Source
var File_pkg_api_v1_purchases_supplier_service_proto protoreflect.FileDescriptor
View Source
var PurchaseReturnService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.purchases.PurchaseReturnService",
	HandlerType: (*PurchaseReturnServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PurchaseReturnCreate",
			Handler:    _PurchaseReturnService_PurchaseReturnCreate_Handler,
		},
		{
			MethodName: "PurchaseReturnUpdate",
			Handler:    _PurchaseReturnService_PurchaseReturnUpdate_Handler,
		},
		{
			MethodName: "PurchaseReturnView",
			Handler:    _PurchaseReturnService_PurchaseReturnView_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "PurchaseReturnList",
			Handler:       _PurchaseReturnService_PurchaseReturnList_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "pkg/api/v1/purchases/purchase_return_service.proto",
}

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

View Source
var PurchaseService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.purchases.PurchaseService",
	HandlerType: (*PurchaseServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PurchaseCreate",
			Handler:    _PurchaseService_PurchaseCreate_Handler,
		},
		{
			MethodName: "PurchaseUpdate",
			Handler:    _PurchaseService_PurchaseUpdate_Handler,
		},
		{
			MethodName: "PurchaseView",
			Handler:    _PurchaseService_PurchaseView_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "PurchaseList",
			Handler:       _PurchaseService_PurchaseList_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "pkg/api/v1/purchases/purchase_service.proto",
}

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

View Source
var SupplierService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.purchases.SupplierService",
	HandlerType: (*SupplierServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SupplierCreate",
			Handler:    _SupplierService_SupplierCreate_Handler,
		},
		{
			MethodName: "SupplierUpdate",
			Handler:    _SupplierService_SupplierUpdate_Handler,
		},
		{
			MethodName: "SupplierView",
			Handler:    _SupplierService_SupplierView_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SupplierList",
			Handler:       _SupplierService_SupplierList_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "pkg/api/v1/purchases/supplier_service.proto",
}

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

Functions

func RegisterPurchaseReturnServiceServer

func RegisterPurchaseReturnServiceServer(s grpc.ServiceRegistrar, srv PurchaseReturnServiceServer)

func RegisterPurchaseServiceServer

func RegisterPurchaseServiceServer(s grpc.ServiceRegistrar, srv PurchaseServiceServer)

func RegisterSupplierServiceServer

func RegisterSupplierServiceServer(s grpc.ServiceRegistrar, srv SupplierServiceServer)

Types

type Id

type Id struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Id) Descriptor deprecated

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

Deprecated: Use Id.ProtoReflect.Descriptor instead.

func (*Id) GetId

func (x *Id) GetId() string

func (*Id) ProtoMessage

func (*Id) ProtoMessage()

func (*Id) ProtoReflect

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

func (*Id) Reset

func (x *Id) Reset()

func (*Id) String

func (x *Id) String() string

type ListPurchaseRequest

type ListPurchaseRequest struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	BranchId   string      `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
	SupplierId string      `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPurchaseRequest) Descriptor deprecated

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

Deprecated: Use ListPurchaseRequest.ProtoReflect.Descriptor instead.

func (*ListPurchaseRequest) GetBranchId

func (x *ListPurchaseRequest) GetBranchId() string

func (*ListPurchaseRequest) GetPagination

func (x *ListPurchaseRequest) GetPagination() *Pagination

func (*ListPurchaseRequest) GetSupplierId

func (x *ListPurchaseRequest) GetSupplierId() string

func (*ListPurchaseRequest) ProtoMessage

func (*ListPurchaseRequest) ProtoMessage()

func (*ListPurchaseRequest) ProtoReflect

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

func (*ListPurchaseRequest) Reset

func (x *ListPurchaseRequest) Reset()

func (*ListPurchaseRequest) String

func (x *ListPurchaseRequest) String() string

type ListPurchaseResponse

type ListPurchaseResponse struct {
	Pagination *PurchasePaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Purchase   *Purchase                   `protobuf:"bytes,2,opt,name=purchase,proto3" json:"purchase,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPurchaseResponse) Descriptor deprecated

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

Deprecated: Use ListPurchaseResponse.ProtoReflect.Descriptor instead.

func (*ListPurchaseResponse) GetPagination

func (*ListPurchaseResponse) GetPurchase

func (x *ListPurchaseResponse) GetPurchase() *Purchase

func (*ListPurchaseResponse) ProtoMessage

func (*ListPurchaseResponse) ProtoMessage()

func (*ListPurchaseResponse) ProtoReflect

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

func (*ListPurchaseResponse) Reset

func (x *ListPurchaseResponse) Reset()

func (*ListPurchaseResponse) String

func (x *ListPurchaseResponse) String() string

type ListPurchaseReturnRequest

type ListPurchaseReturnRequest struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	BranchId   string      `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
	PurchaseId string      `protobuf:"bytes,3,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPurchaseReturnRequest) Descriptor deprecated

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

Deprecated: Use ListPurchaseReturnRequest.ProtoReflect.Descriptor instead.

func (*ListPurchaseReturnRequest) GetBranchId

func (x *ListPurchaseReturnRequest) GetBranchId() string

func (*ListPurchaseReturnRequest) GetPagination

func (x *ListPurchaseReturnRequest) GetPagination() *Pagination

func (*ListPurchaseReturnRequest) GetPurchaseId

func (x *ListPurchaseReturnRequest) GetPurchaseId() string

func (*ListPurchaseReturnRequest) ProtoMessage

func (*ListPurchaseReturnRequest) ProtoMessage()

func (*ListPurchaseReturnRequest) ProtoReflect

func (*ListPurchaseReturnRequest) Reset

func (x *ListPurchaseReturnRequest) Reset()

func (*ListPurchaseReturnRequest) String

func (x *ListPurchaseReturnRequest) String() string

type ListPurchaseReturnResponse

type ListPurchaseReturnResponse struct {
	Pagination     *PurchaseReturnPaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	PurchaseReturn *PurchaseReturn                   `protobuf:"bytes,2,opt,name=PurchaseReturn,proto3" json:"PurchaseReturn,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPurchaseReturnResponse) Descriptor deprecated

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

Deprecated: Use ListPurchaseReturnResponse.ProtoReflect.Descriptor instead.

func (*ListPurchaseReturnResponse) GetPagination

func (*ListPurchaseReturnResponse) GetPurchaseReturn

func (x *ListPurchaseReturnResponse) GetPurchaseReturn() *PurchaseReturn

func (*ListPurchaseReturnResponse) ProtoMessage

func (*ListPurchaseReturnResponse) ProtoMessage()

func (*ListPurchaseReturnResponse) ProtoReflect

func (*ListPurchaseReturnResponse) Reset

func (x *ListPurchaseReturnResponse) Reset()

func (*ListPurchaseReturnResponse) String

func (x *ListPurchaseReturnResponse) String() string

type ListSupplierRequest

type ListSupplierRequest struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSupplierRequest) Descriptor deprecated

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

Deprecated: Use ListSupplierRequest.ProtoReflect.Descriptor instead.

func (*ListSupplierRequest) GetPagination

func (x *ListSupplierRequest) GetPagination() *Pagination

func (*ListSupplierRequest) ProtoMessage

func (*ListSupplierRequest) ProtoMessage()

func (*ListSupplierRequest) ProtoReflect

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

func (*ListSupplierRequest) Reset

func (x *ListSupplierRequest) Reset()

func (*ListSupplierRequest) String

func (x *ListSupplierRequest) String() string

type ListSupplierResponse

type ListSupplierResponse struct {
	Pagination *SupplierPaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Supplier   *Supplier                   `protobuf:"bytes,2,opt,name=supplier,proto3" json:"supplier,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSupplierResponse) Descriptor deprecated

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

Deprecated: Use ListSupplierResponse.ProtoReflect.Descriptor instead.

func (*ListSupplierResponse) GetPagination

func (*ListSupplierResponse) GetSupplier

func (x *ListSupplierResponse) GetSupplier() *Supplier

func (*ListSupplierResponse) ProtoMessage

func (*ListSupplierResponse) ProtoMessage()

func (*ListSupplierResponse) ProtoReflect

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

func (*ListSupplierResponse) Reset

func (x *ListSupplierResponse) Reset()

func (*ListSupplierResponse) String

func (x *ListSupplierResponse) String() string

type Message

type Message struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMessage

func (x *Message) GetMessage() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type MyBoolean

type MyBoolean struct {
	Boolean bool `protobuf:"varint,1,opt,name=boolean,proto3" json:"boolean,omitempty"`
	// contains filtered or unexported fields
}

func (*MyBoolean) Descriptor deprecated

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

Deprecated: Use MyBoolean.ProtoReflect.Descriptor instead.

func (*MyBoolean) GetBoolean

func (x *MyBoolean) GetBoolean() bool

func (*MyBoolean) ProtoMessage

func (*MyBoolean) ProtoMessage()

func (*MyBoolean) ProtoReflect

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

func (*MyBoolean) Reset

func (x *MyBoolean) Reset()

func (*MyBoolean) String

func (x *MyBoolean) String() string

type MyEmpty

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

func (*MyEmpty) Descriptor deprecated

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

Deprecated: Use MyEmpty.ProtoReflect.Descriptor instead.

func (*MyEmpty) ProtoMessage

func (*MyEmpty) ProtoMessage()

func (*MyEmpty) ProtoReflect

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

func (*MyEmpty) Reset

func (x *MyEmpty) Reset()

func (*MyEmpty) String

func (x *MyEmpty) String() string

type MyString

type MyString struct {
	String_ string `protobuf:"bytes,1,opt,name=string,proto3" json:"string,omitempty"`
	// contains filtered or unexported fields
}

func (*MyString) Descriptor deprecated

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

Deprecated: Use MyString.ProtoReflect.Descriptor instead.

func (*MyString) GetString_

func (x *MyString) GetString_() string

func (*MyString) ProtoMessage

func (*MyString) ProtoMessage()

func (*MyString) ProtoReflect

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

func (*MyString) Reset

func (x *MyString) Reset()

func (*MyString) String

func (x *MyString) String() string

type Pagination

type Pagination struct {
	Page    uint32          `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Limit   uint32          `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset  uint32          `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	Search  string          `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"`
	OrderBy string          `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	Sort    Pagination_Sort `protobuf:"varint,6,opt,name=sort,proto3,enum=v1.purchases.Pagination_Sort" json:"sort,omitempty"`
	// contains filtered or unexported fields
}

func (*Pagination) Descriptor deprecated

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

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetLimit

func (x *Pagination) GetLimit() uint32

func (*Pagination) GetOffset

func (x *Pagination) GetOffset() uint32

func (*Pagination) GetOrderBy

func (x *Pagination) GetOrderBy() string

func (*Pagination) GetPage

func (x *Pagination) GetPage() uint32

func (*Pagination) GetSearch

func (x *Pagination) GetSearch() string

func (*Pagination) GetSort

func (x *Pagination) GetSort() Pagination_Sort

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

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

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) String

func (x *Pagination) String() string

type PaginationResponse

type PaginationResponse struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Count      uint32      `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*PaginationResponse) Descriptor deprecated

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

Deprecated: Use PaginationResponse.ProtoReflect.Descriptor instead.

func (*PaginationResponse) GetCount

func (x *PaginationResponse) GetCount() uint32

func (*PaginationResponse) GetPagination

func (x *PaginationResponse) GetPagination() *Pagination

func (*PaginationResponse) ProtoMessage

func (*PaginationResponse) ProtoMessage()

func (*PaginationResponse) ProtoReflect

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

func (*PaginationResponse) Reset

func (x *PaginationResponse) Reset()

func (*PaginationResponse) String

func (x *PaginationResponse) String() string

type Pagination_Sort

type Pagination_Sort int32
const (
	Pagination_ASC  Pagination_Sort = 0
	Pagination_DESC Pagination_Sort = 1
)

func (Pagination_Sort) Descriptor

func (Pagination_Sort) Enum

func (x Pagination_Sort) Enum() *Pagination_Sort

func (Pagination_Sort) EnumDescriptor deprecated

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

Deprecated: Use Pagination_Sort.Descriptor instead.

func (Pagination_Sort) Number

func (Pagination_Sort) String

func (x Pagination_Sort) String() string

func (Pagination_Sort) Type

type Purchase

type Purchase struct {
	Id                       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	BranchId                 string            `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
	BranchName               string            `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"`
	Supplier                 *Supplier         `protobuf:"bytes,4,opt,name=supplier,proto3" json:"supplier,omitempty"`
	Code                     string            `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	PurchaseDate             string            `protobuf:"bytes,6,opt,name=purchase_date,json=purchaseDate,proto3" json:"purchase_date,omitempty"`
	Price                    float64           `protobuf:"fixed64,7,opt,name=price,proto3" json:"price,omitempty"`
	AdditionalDiscAmount     float64           `protobuf:"fixed64,8,opt,name=additional_disc_amount,json=additionalDiscAmount,proto3" json:"additional_disc_amount,omitempty"`
	AdditionalDiscPercentage float32           `` /* 137-byte string literal not displayed */
	TotalPrice               float64           `protobuf:"fixed64,10,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
	Remark                   string            `protobuf:"bytes,11,opt,name=remark,proto3" json:"remark,omitempty"`
	CreatedAt                string            `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	CreatedBy                string            `protobuf:"bytes,13,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	UpdatedAt                string            `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	UpdatedBy                string            `protobuf:"bytes,15,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
	Details                  []*PurchaseDetail `protobuf:"bytes,16,rep,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*Purchase) Descriptor deprecated

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

Deprecated: Use Purchase.ProtoReflect.Descriptor instead.

func (*Purchase) GetAdditionalDiscAmount

func (x *Purchase) GetAdditionalDiscAmount() float64

func (*Purchase) GetAdditionalDiscPercentage

func (x *Purchase) GetAdditionalDiscPercentage() float32

func (*Purchase) GetBranchId

func (x *Purchase) GetBranchId() string

func (*Purchase) GetBranchName

func (x *Purchase) GetBranchName() string

func (*Purchase) GetCode

func (x *Purchase) GetCode() string

func (*Purchase) GetCreatedAt

func (x *Purchase) GetCreatedAt() string

func (*Purchase) GetCreatedBy

func (x *Purchase) GetCreatedBy() string

func (*Purchase) GetDetails

func (x *Purchase) GetDetails() []*PurchaseDetail

func (*Purchase) GetId

func (x *Purchase) GetId() string

func (*Purchase) GetPrice

func (x *Purchase) GetPrice() float64

func (*Purchase) GetPurchaseDate

func (x *Purchase) GetPurchaseDate() string

func (*Purchase) GetRemark

func (x *Purchase) GetRemark() string

func (*Purchase) GetSupplier

func (x *Purchase) GetSupplier() *Supplier

func (*Purchase) GetTotalPrice

func (x *Purchase) GetTotalPrice() float64

func (*Purchase) GetUpdatedAt

func (x *Purchase) GetUpdatedAt() string

func (*Purchase) GetUpdatedBy

func (x *Purchase) GetUpdatedBy() string

func (*Purchase) ProtoMessage

func (*Purchase) ProtoMessage()

func (*Purchase) ProtoReflect

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

func (*Purchase) Reset

func (x *Purchase) Reset()

func (*Purchase) String

func (x *Purchase) String() string

type PurchaseDetail

type PurchaseDetail struct {
	Id             string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PurchaseId     string  `protobuf:"bytes,2,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty"`
	ProductId      string  `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	ProductCode    string  `protobuf:"bytes,4,opt,name=product_code,json=productCode,proto3" json:"product_code,omitempty"`
	ProductName    string  `protobuf:"bytes,5,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"`
	Quantity       int32   `protobuf:"varint,6,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Price          float64 `protobuf:"fixed64,7,opt,name=price,proto3" json:"price,omitempty"`
	DiscAmount     float64 `protobuf:"fixed64,8,opt,name=disc_amount,json=discAmount,proto3" json:"disc_amount,omitempty"`
	DiscPercentage float32 `protobuf:"fixed32,9,opt,name=disc_percentage,json=discPercentage,proto3" json:"disc_percentage,omitempty"`
	TotalPrice     float64 `protobuf:"fixed64,10,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseDetail) Descriptor deprecated

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

Deprecated: Use PurchaseDetail.ProtoReflect.Descriptor instead.

func (*PurchaseDetail) GetDiscAmount

func (x *PurchaseDetail) GetDiscAmount() float64

func (*PurchaseDetail) GetDiscPercentage

func (x *PurchaseDetail) GetDiscPercentage() float32

func (*PurchaseDetail) GetId

func (x *PurchaseDetail) GetId() string

func (*PurchaseDetail) GetPrice

func (x *PurchaseDetail) GetPrice() float64

func (*PurchaseDetail) GetProductCode

func (x *PurchaseDetail) GetProductCode() string

func (*PurchaseDetail) GetProductId

func (x *PurchaseDetail) GetProductId() string

func (*PurchaseDetail) GetProductName

func (x *PurchaseDetail) GetProductName() string

func (*PurchaseDetail) GetPurchaseId

func (x *PurchaseDetail) GetPurchaseId() string

func (*PurchaseDetail) GetQuantity

func (x *PurchaseDetail) GetQuantity() int32

func (*PurchaseDetail) GetTotalPrice

func (x *PurchaseDetail) GetTotalPrice() float64

func (*PurchaseDetail) ProtoMessage

func (*PurchaseDetail) ProtoMessage()

func (*PurchaseDetail) ProtoReflect

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

func (*PurchaseDetail) Reset

func (x *PurchaseDetail) Reset()

func (*PurchaseDetail) String

func (x *PurchaseDetail) String() string

type PurchasePaginationResponse

type PurchasePaginationResponse struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	BranchId   string      `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
	SupplierId string      `protobuf:"bytes,3,opt,name=supplier_id,json=supplierId,proto3" json:"supplier_id,omitempty"`
	Count      uint32      `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchasePaginationResponse) Descriptor deprecated

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

Deprecated: Use PurchasePaginationResponse.ProtoReflect.Descriptor instead.

func (*PurchasePaginationResponse) GetBranchId

func (x *PurchasePaginationResponse) GetBranchId() string

func (*PurchasePaginationResponse) GetCount

func (x *PurchasePaginationResponse) GetCount() uint32

func (*PurchasePaginationResponse) GetPagination

func (x *PurchasePaginationResponse) GetPagination() *Pagination

func (*PurchasePaginationResponse) GetSupplierId

func (x *PurchasePaginationResponse) GetSupplierId() string

func (*PurchasePaginationResponse) ProtoMessage

func (*PurchasePaginationResponse) ProtoMessage()

func (*PurchasePaginationResponse) ProtoReflect

func (*PurchasePaginationResponse) Reset

func (x *PurchasePaginationResponse) Reset()

func (*PurchasePaginationResponse) String

func (x *PurchasePaginationResponse) String() string

type PurchaseReturn

type PurchaseReturn struct {
	Id                       string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	BranchId                 string                  `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
	BranchName               string                  `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"`
	Purchase                 *Purchase               `protobuf:"bytes,4,opt,name=Purchase,proto3" json:"Purchase,omitempty"`
	Code                     string                  `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	ReturnDate               string                  `protobuf:"bytes,6,opt,name=return_date,json=returnDate,proto3" json:"return_date,omitempty"`
	Remark                   string                  `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"`
	Price                    float64                 `protobuf:"fixed64,8,opt,name=price,proto3" json:"price,omitempty"`
	AdditionalDiscAmount     float64                 `protobuf:"fixed64,9,opt,name=additional_disc_amount,json=additionalDiscAmount,proto3" json:"additional_disc_amount,omitempty"`
	AdditionalDiscPercentage float32                 `` /* 138-byte string literal not displayed */
	TotalPrice               float64                 `protobuf:"fixed64,11,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
	CreatedAt                string                  `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	CreatedBy                string                  `protobuf:"bytes,13,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	UpdatedAt                string                  `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	UpdatedBy                string                  `protobuf:"bytes,15,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
	Details                  []*PurchaseReturnDetail `protobuf:"bytes,16,rep,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseReturn) Descriptor deprecated

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

Deprecated: Use PurchaseReturn.ProtoReflect.Descriptor instead.

func (*PurchaseReturn) GetAdditionalDiscAmount

func (x *PurchaseReturn) GetAdditionalDiscAmount() float64

func (*PurchaseReturn) GetAdditionalDiscPercentage

func (x *PurchaseReturn) GetAdditionalDiscPercentage() float32

func (*PurchaseReturn) GetBranchId

func (x *PurchaseReturn) GetBranchId() string

func (*PurchaseReturn) GetBranchName

func (x *PurchaseReturn) GetBranchName() string

func (*PurchaseReturn) GetCode

func (x *PurchaseReturn) GetCode() string

func (*PurchaseReturn) GetCreatedAt

func (x *PurchaseReturn) GetCreatedAt() string

func (*PurchaseReturn) GetCreatedBy

func (x *PurchaseReturn) GetCreatedBy() string

func (*PurchaseReturn) GetDetails

func (x *PurchaseReturn) GetDetails() []*PurchaseReturnDetail

func (*PurchaseReturn) GetId

func (x *PurchaseReturn) GetId() string

func (*PurchaseReturn) GetPrice

func (x *PurchaseReturn) GetPrice() float64

func (*PurchaseReturn) GetPurchase

func (x *PurchaseReturn) GetPurchase() *Purchase

func (*PurchaseReturn) GetRemark

func (x *PurchaseReturn) GetRemark() string

func (*PurchaseReturn) GetReturnDate

func (x *PurchaseReturn) GetReturnDate() string

func (*PurchaseReturn) GetTotalPrice

func (x *PurchaseReturn) GetTotalPrice() float64

func (*PurchaseReturn) GetUpdatedAt

func (x *PurchaseReturn) GetUpdatedAt() string

func (*PurchaseReturn) GetUpdatedBy

func (x *PurchaseReturn) GetUpdatedBy() string

func (*PurchaseReturn) ProtoMessage

func (*PurchaseReturn) ProtoMessage()

func (*PurchaseReturn) ProtoReflect

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

func (*PurchaseReturn) Reset

func (x *PurchaseReturn) Reset()

func (*PurchaseReturn) String

func (x *PurchaseReturn) String() string

type PurchaseReturnDetail

type PurchaseReturnDetail struct {
	Id               string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PurchaseReturnId string  `protobuf:"bytes,2,opt,name=purchase_return_id,json=purchaseReturnId,proto3" json:"purchase_return_id,omitempty"`
	ProductId        string  `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	ProductCode      string  `protobuf:"bytes,4,opt,name=product_code,json=productCode,proto3" json:"product_code,omitempty"`
	ProductName      string  `protobuf:"bytes,5,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"`
	Quantity         int32   `protobuf:"varint,6,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Price            float64 `protobuf:"fixed64,7,opt,name=price,proto3" json:"price,omitempty"`
	DiscAmount       float64 `protobuf:"fixed64,8,opt,name=disc_amount,json=discAmount,proto3" json:"disc_amount,omitempty"`
	DiscPercentage   float32 `protobuf:"fixed32,9,opt,name=disc_percentage,json=discPercentage,proto3" json:"disc_percentage,omitempty"`
	TotalPrice       float64 `protobuf:"fixed64,10,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseReturnDetail) Descriptor deprecated

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

Deprecated: Use PurchaseReturnDetail.ProtoReflect.Descriptor instead.

func (*PurchaseReturnDetail) GetDiscAmount

func (x *PurchaseReturnDetail) GetDiscAmount() float64

func (*PurchaseReturnDetail) GetDiscPercentage

func (x *PurchaseReturnDetail) GetDiscPercentage() float32

func (*PurchaseReturnDetail) GetId

func (x *PurchaseReturnDetail) GetId() string

func (*PurchaseReturnDetail) GetPrice

func (x *PurchaseReturnDetail) GetPrice() float64

func (*PurchaseReturnDetail) GetProductCode

func (x *PurchaseReturnDetail) GetProductCode() string

func (*PurchaseReturnDetail) GetProductId

func (x *PurchaseReturnDetail) GetProductId() string

func (*PurchaseReturnDetail) GetProductName

func (x *PurchaseReturnDetail) GetProductName() string

func (*PurchaseReturnDetail) GetPurchaseReturnId

func (x *PurchaseReturnDetail) GetPurchaseReturnId() string

func (*PurchaseReturnDetail) GetQuantity

func (x *PurchaseReturnDetail) GetQuantity() int32

func (*PurchaseReturnDetail) GetTotalPrice

func (x *PurchaseReturnDetail) GetTotalPrice() float64

func (*PurchaseReturnDetail) ProtoMessage

func (*PurchaseReturnDetail) ProtoMessage()

func (*PurchaseReturnDetail) ProtoReflect

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

func (*PurchaseReturnDetail) Reset

func (x *PurchaseReturnDetail) Reset()

func (*PurchaseReturnDetail) String

func (x *PurchaseReturnDetail) String() string

type PurchaseReturnPaginationResponse

type PurchaseReturnPaginationResponse struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	BranchId   string      `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
	PurchaseId string      `protobuf:"bytes,3,opt,name=purchase_id,json=purchaseId,proto3" json:"purchase_id,omitempty"`
	Count      uint32      `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseReturnPaginationResponse) Descriptor deprecated

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

Deprecated: Use PurchaseReturnPaginationResponse.ProtoReflect.Descriptor instead.

func (*PurchaseReturnPaginationResponse) GetBranchId

func (x *PurchaseReturnPaginationResponse) GetBranchId() string

func (*PurchaseReturnPaginationResponse) GetCount

func (*PurchaseReturnPaginationResponse) GetPagination

func (x *PurchaseReturnPaginationResponse) GetPagination() *Pagination

func (*PurchaseReturnPaginationResponse) GetPurchaseId

func (x *PurchaseReturnPaginationResponse) GetPurchaseId() string

func (*PurchaseReturnPaginationResponse) ProtoMessage

func (*PurchaseReturnPaginationResponse) ProtoMessage()

func (*PurchaseReturnPaginationResponse) ProtoReflect

func (*PurchaseReturnPaginationResponse) Reset

func (*PurchaseReturnPaginationResponse) String

type PurchaseReturnServiceClient

type PurchaseReturnServiceClient interface {
	PurchaseReturnCreate(ctx context.Context, in *PurchaseReturn, opts ...grpc.CallOption) (*PurchaseReturn, error)
	PurchaseReturnUpdate(ctx context.Context, in *PurchaseReturn, opts ...grpc.CallOption) (*PurchaseReturn, error)
	PurchaseReturnView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*PurchaseReturn, error)
	PurchaseReturnList(ctx context.Context, in *ListPurchaseReturnRequest, opts ...grpc.CallOption) (PurchaseReturnService_PurchaseReturnListClient, error)
}

PurchaseReturnServiceClient is the client API for PurchaseReturnService 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 PurchaseReturnServiceServer

type PurchaseReturnServiceServer interface {
	PurchaseReturnCreate(context.Context, *PurchaseReturn) (*PurchaseReturn, error)
	PurchaseReturnUpdate(context.Context, *PurchaseReturn) (*PurchaseReturn, error)
	PurchaseReturnView(context.Context, *Id) (*PurchaseReturn, error)
	PurchaseReturnList(*ListPurchaseReturnRequest, PurchaseReturnService_PurchaseReturnListServer) error
	// contains filtered or unexported methods
}

PurchaseReturnServiceServer is the server API for PurchaseReturnService service. All implementations must embed UnimplementedPurchaseReturnServiceServer for forward compatibility

type PurchaseReturnService_PurchaseReturnListClient

type PurchaseReturnService_PurchaseReturnListClient interface {
	Recv() (*ListPurchaseReturnResponse, error)
	grpc.ClientStream
}

type PurchaseReturnService_PurchaseReturnListServer

type PurchaseReturnService_PurchaseReturnListServer interface {
	Send(*ListPurchaseReturnResponse) error
	grpc.ServerStream
}

type PurchaseServiceClient

type PurchaseServiceClient interface {
	PurchaseCreate(ctx context.Context, in *Purchase, opts ...grpc.CallOption) (*Purchase, error)
	PurchaseUpdate(ctx context.Context, in *Purchase, opts ...grpc.CallOption) (*Purchase, error)
	PurchaseView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Purchase, error)
	PurchaseList(ctx context.Context, in *ListPurchaseRequest, opts ...grpc.CallOption) (PurchaseService_PurchaseListClient, error)
}

PurchaseServiceClient is the client API for PurchaseService 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 PurchaseServiceServer

type PurchaseServiceServer interface {
	PurchaseCreate(context.Context, *Purchase) (*Purchase, error)
	PurchaseUpdate(context.Context, *Purchase) (*Purchase, error)
	PurchaseView(context.Context, *Id) (*Purchase, error)
	PurchaseList(*ListPurchaseRequest, PurchaseService_PurchaseListServer) error
	// contains filtered or unexported methods
}

PurchaseServiceServer is the server API for PurchaseService service. All implementations must embed UnimplementedPurchaseServiceServer for forward compatibility

type PurchaseService_PurchaseListClient

type PurchaseService_PurchaseListClient interface {
	Recv() (*ListPurchaseResponse, error)
	grpc.ClientStream
}

type PurchaseService_PurchaseListServer

type PurchaseService_PurchaseListServer interface {
	Send(*ListPurchaseResponse) error
	grpc.ServerStream
}

type Supplier

type Supplier struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Code      string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Address   string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	Phone     string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
	CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	UpdatedAt string `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	UpdatedBy string `protobuf:"bytes,9,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
	// contains filtered or unexported fields
}

func (*Supplier) Descriptor deprecated

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

Deprecated: Use Supplier.ProtoReflect.Descriptor instead.

func (*Supplier) GetAddress

func (x *Supplier) GetAddress() string

func (*Supplier) GetCode

func (x *Supplier) GetCode() string

func (*Supplier) GetCreatedAt

func (x *Supplier) GetCreatedAt() string

func (*Supplier) GetCreatedBy

func (x *Supplier) GetCreatedBy() string

func (*Supplier) GetId

func (x *Supplier) GetId() string

func (*Supplier) GetName

func (x *Supplier) GetName() string

func (*Supplier) GetPhone

func (x *Supplier) GetPhone() string

func (*Supplier) GetUpdatedAt

func (x *Supplier) GetUpdatedAt() string

func (*Supplier) GetUpdatedBy

func (x *Supplier) GetUpdatedBy() string

func (*Supplier) ProtoMessage

func (*Supplier) ProtoMessage()

func (*Supplier) ProtoReflect

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

func (*Supplier) Reset

func (x *Supplier) Reset()

func (*Supplier) String

func (x *Supplier) String() string

type SupplierPaginationResponse

type SupplierPaginationResponse struct {
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Count      uint32      `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*SupplierPaginationResponse) Descriptor deprecated

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

Deprecated: Use SupplierPaginationResponse.ProtoReflect.Descriptor instead.

func (*SupplierPaginationResponse) GetCount

func (x *SupplierPaginationResponse) GetCount() uint32

func (*SupplierPaginationResponse) GetPagination

func (x *SupplierPaginationResponse) GetPagination() *Pagination

func (*SupplierPaginationResponse) ProtoMessage

func (*SupplierPaginationResponse) ProtoMessage()

func (*SupplierPaginationResponse) ProtoReflect

func (*SupplierPaginationResponse) Reset

func (x *SupplierPaginationResponse) Reset()

func (*SupplierPaginationResponse) String

func (x *SupplierPaginationResponse) String() string

type SupplierServiceClient

type SupplierServiceClient interface {
	SupplierCreate(ctx context.Context, in *Supplier, opts ...grpc.CallOption) (*Supplier, error)
	SupplierUpdate(ctx context.Context, in *Supplier, opts ...grpc.CallOption) (*Supplier, error)
	SupplierView(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Supplier, error)
	SupplierList(ctx context.Context, in *ListSupplierRequest, opts ...grpc.CallOption) (SupplierService_SupplierListClient, error)
}

SupplierServiceClient is the client API for SupplierService 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 SupplierServiceServer

type SupplierServiceServer interface {
	SupplierCreate(context.Context, *Supplier) (*Supplier, error)
	SupplierUpdate(context.Context, *Supplier) (*Supplier, error)
	SupplierView(context.Context, *Id) (*Supplier, error)
	SupplierList(*ListSupplierRequest, SupplierService_SupplierListServer) error
	// contains filtered or unexported methods
}

SupplierServiceServer is the server API for SupplierService service. All implementations must embed UnimplementedSupplierServiceServer for forward compatibility

type SupplierService_SupplierListClient

type SupplierService_SupplierListClient interface {
	Recv() (*ListSupplierResponse, error)
	grpc.ClientStream
}

type SupplierService_SupplierListServer

type SupplierService_SupplierListServer interface {
	Send(*ListSupplierResponse) error
	grpc.ServerStream
}

type UnimplementedPurchaseReturnServiceServer

type UnimplementedPurchaseReturnServiceServer struct {
}

UnimplementedPurchaseReturnServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnCreate

func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnUpdate

func (UnimplementedPurchaseReturnServiceServer) PurchaseReturnView

type UnimplementedPurchaseServiceServer

type UnimplementedPurchaseServiceServer struct {
}

UnimplementedPurchaseServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPurchaseServiceServer) PurchaseCreate

func (UnimplementedPurchaseServiceServer) PurchaseList

func (UnimplementedPurchaseServiceServer) PurchaseUpdate

func (UnimplementedPurchaseServiceServer) PurchaseView

type UnimplementedSupplierServiceServer

type UnimplementedSupplierServiceServer struct {
}

UnimplementedSupplierServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSupplierServiceServer) SupplierCreate

func (UnimplementedSupplierServiceServer) SupplierList

func (UnimplementedSupplierServiceServer) SupplierUpdate

func (UnimplementedSupplierServiceServer) SupplierView

type UnsafePurchaseReturnServiceServer

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

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

type UnsafePurchaseServiceServer

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

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

type UnsafeSupplierServiceServer

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

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

Jump to

Keyboard shortcuts

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