637 lines
22 KiB
Go
637 lines
22 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: inboice.proto
|
|
|
|
/*
|
|
Package proto is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
inboice.proto
|
|
|
|
It has these top-level messages:
|
|
Item
|
|
ContactPoint
|
|
Invoice
|
|
CreateInvoiceRequest
|
|
CreateInvoiceResponse
|
|
GetInvoiceRequest
|
|
GetInvoiceResponse
|
|
RenderInvoiceRequest
|
|
RenderInvoiceResponse
|
|
SealInvoiceRequest
|
|
SealInvoiceResponse
|
|
*/
|
|
package proto
|
|
|
|
import proto1 "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto1.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type GetInvoiceResponse_State int32
|
|
|
|
const (
|
|
GetInvoiceResponse_STATE_INVALID GetInvoiceResponse_State = 0
|
|
GetInvoiceResponse_STATE_PROFORMA GetInvoiceResponse_State = 1
|
|
GetInvoiceResponse_STATE_SEALED GetInvoiceResponse_State = 2
|
|
)
|
|
|
|
var GetInvoiceResponse_State_name = map[int32]string{
|
|
0: "STATE_INVALID",
|
|
1: "STATE_PROFORMA",
|
|
2: "STATE_SEALED",
|
|
}
|
|
var GetInvoiceResponse_State_value = map[string]int32{
|
|
"STATE_INVALID": 0,
|
|
"STATE_PROFORMA": 1,
|
|
"STATE_SEALED": 2,
|
|
}
|
|
|
|
func (x GetInvoiceResponse_State) String() string {
|
|
return proto1.EnumName(GetInvoiceResponse_State_name, int32(x))
|
|
}
|
|
func (GetInvoiceResponse_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{6, 0} }
|
|
|
|
type Item struct {
|
|
Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
|
|
Count uint64 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"`
|
|
UnitPrice uint64 `protobuf:"varint,3,opt,name=unit_price,json=unitPrice" json:"unit_price,omitempty"`
|
|
// in thousands of percent points
|
|
// (ie 23% == 23000)
|
|
Vat uint64 `protobuf:"varint,4,opt,name=vat" json:"vat,omitempty"`
|
|
}
|
|
|
|
func (m *Item) Reset() { *m = Item{} }
|
|
func (m *Item) String() string { return proto1.CompactTextString(m) }
|
|
func (*Item) ProtoMessage() {}
|
|
func (*Item) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *Item) GetTitle() string {
|
|
if m != nil {
|
|
return m.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Item) GetCount() uint64 {
|
|
if m != nil {
|
|
return m.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Item) GetUnitPrice() uint64 {
|
|
if m != nil {
|
|
return m.UnitPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Item) GetVat() uint64 {
|
|
if m != nil {
|
|
return m.Vat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ContactPoint struct {
|
|
Medium string `protobuf:"bytes,1,opt,name=medium" json:"medium,omitempty"`
|
|
Contact string `protobuf:"bytes,2,opt,name=contact" json:"contact,omitempty"`
|
|
}
|
|
|
|
func (m *ContactPoint) Reset() { *m = ContactPoint{} }
|
|
func (m *ContactPoint) String() string { return proto1.CompactTextString(m) }
|
|
func (*ContactPoint) ProtoMessage() {}
|
|
func (*ContactPoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *ContactPoint) GetMedium() string {
|
|
if m != nil {
|
|
return m.Medium
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ContactPoint) GetContact() string {
|
|
if m != nil {
|
|
return m.Contact
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Invoice struct {
|
|
Item []*Item `protobuf:"bytes,1,rep,name=item" json:"item,omitempty"`
|
|
InvoicerBilling []string `protobuf:"bytes,2,rep,name=invoicer_billing,json=invoicerBilling" json:"invoicer_billing,omitempty"`
|
|
InvoicerContact []*ContactPoint `protobuf:"bytes,3,rep,name=invoicer_contact,json=invoicerContact" json:"invoicer_contact,omitempty"`
|
|
CustomerBilling []string `protobuf:"bytes,4,rep,name=customer_billing,json=customerBilling" json:"customer_billing,omitempty"`
|
|
InvoicerVatId string `protobuf:"bytes,5,opt,name=invoicer_vat_id,json=invoicerVatId" json:"invoicer_vat_id,omitempty"`
|
|
InvoicerCompanyNumber string `protobuf:"bytes,12,opt,name=invoicer_company_number,json=invoicerCompanyNumber" json:"invoicer_company_number,omitempty"`
|
|
CustomerVatId string `protobuf:"bytes,6,opt,name=customer_vat_id,json=customerVatId" json:"customer_vat_id,omitempty"`
|
|
ReverseVat bool `protobuf:"varint,7,opt,name=reverse_vat,json=reverseVat" json:"reverse_vat,omitempty"`
|
|
UsCustomer bool `protobuf:"varint,11,opt,name=us_customer,json=usCustomer" json:"us_customer,omitempty"`
|
|
DaysDue int64 `protobuf:"varint,8,opt,name=days_due,json=daysDue" json:"days_due,omitempty"`
|
|
Iban string `protobuf:"bytes,9,opt,name=iban" json:"iban,omitempty"`
|
|
Swift string `protobuf:"bytes,10,opt,name=swift" json:"swift,omitempty"`
|
|
}
|
|
|
|
func (m *Invoice) Reset() { *m = Invoice{} }
|
|
func (m *Invoice) String() string { return proto1.CompactTextString(m) }
|
|
func (*Invoice) ProtoMessage() {}
|
|
func (*Invoice) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
func (m *Invoice) GetItem() []*Item {
|
|
if m != nil {
|
|
return m.Item
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Invoice) GetInvoicerBilling() []string {
|
|
if m != nil {
|
|
return m.InvoicerBilling
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Invoice) GetInvoicerContact() []*ContactPoint {
|
|
if m != nil {
|
|
return m.InvoicerContact
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Invoice) GetCustomerBilling() []string {
|
|
if m != nil {
|
|
return m.CustomerBilling
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Invoice) GetInvoicerVatId() string {
|
|
if m != nil {
|
|
return m.InvoicerVatId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Invoice) GetInvoicerCompanyNumber() string {
|
|
if m != nil {
|
|
return m.InvoicerCompanyNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Invoice) GetCustomerVatId() string {
|
|
if m != nil {
|
|
return m.CustomerVatId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Invoice) GetReverseVat() bool {
|
|
if m != nil {
|
|
return m.ReverseVat
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *Invoice) GetUsCustomer() bool {
|
|
if m != nil {
|
|
return m.UsCustomer
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *Invoice) GetDaysDue() int64 {
|
|
if m != nil {
|
|
return m.DaysDue
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Invoice) GetIban() string {
|
|
if m != nil {
|
|
return m.Iban
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Invoice) GetSwift() string {
|
|
if m != nil {
|
|
return m.Swift
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateInvoiceRequest struct {
|
|
Invoice *Invoice `protobuf:"bytes,1,opt,name=invoice" json:"invoice,omitempty"`
|
|
}
|
|
|
|
func (m *CreateInvoiceRequest) Reset() { *m = CreateInvoiceRequest{} }
|
|
func (m *CreateInvoiceRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*CreateInvoiceRequest) ProtoMessage() {}
|
|
func (*CreateInvoiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
|
func (m *CreateInvoiceRequest) GetInvoice() *Invoice {
|
|
if m != nil {
|
|
return m.Invoice
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateInvoiceResponse struct {
|
|
// Unique invoice ID
|
|
Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"`
|
|
}
|
|
|
|
func (m *CreateInvoiceResponse) Reset() { *m = CreateInvoiceResponse{} }
|
|
func (m *CreateInvoiceResponse) String() string { return proto1.CompactTextString(m) }
|
|
func (*CreateInvoiceResponse) ProtoMessage() {}
|
|
func (*CreateInvoiceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
|
|
|
func (m *CreateInvoiceResponse) GetUid() string {
|
|
if m != nil {
|
|
return m.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetInvoiceRequest struct {
|
|
Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"`
|
|
}
|
|
|
|
func (m *GetInvoiceRequest) Reset() { *m = GetInvoiceRequest{} }
|
|
func (m *GetInvoiceRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*GetInvoiceRequest) ProtoMessage() {}
|
|
func (*GetInvoiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
|
|
|
func (m *GetInvoiceRequest) GetUid() string {
|
|
if m != nil {
|
|
return m.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetInvoiceResponse struct {
|
|
Invoice *Invoice `protobuf:"bytes,1,opt,name=invoice" json:"invoice,omitempty"`
|
|
State GetInvoiceResponse_State `protobuf:"varint,2,opt,name=state,enum=proto.GetInvoiceResponse_State" json:"state,omitempty"`
|
|
FinalUid string `protobuf:"bytes,3,opt,name=final_uid,json=finalUid" json:"final_uid,omitempty"`
|
|
}
|
|
|
|
func (m *GetInvoiceResponse) Reset() { *m = GetInvoiceResponse{} }
|
|
func (m *GetInvoiceResponse) String() string { return proto1.CompactTextString(m) }
|
|
func (*GetInvoiceResponse) ProtoMessage() {}
|
|
func (*GetInvoiceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
|
|
|
func (m *GetInvoiceResponse) GetInvoice() *Invoice {
|
|
if m != nil {
|
|
return m.Invoice
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetInvoiceResponse) GetState() GetInvoiceResponse_State {
|
|
if m != nil {
|
|
return m.State
|
|
}
|
|
return GetInvoiceResponse_STATE_INVALID
|
|
}
|
|
|
|
func (m *GetInvoiceResponse) GetFinalUid() string {
|
|
if m != nil {
|
|
return m.FinalUid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RenderInvoiceRequest struct {
|
|
Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"`
|
|
}
|
|
|
|
func (m *RenderInvoiceRequest) Reset() { *m = RenderInvoiceRequest{} }
|
|
func (m *RenderInvoiceRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*RenderInvoiceRequest) ProtoMessage() {}
|
|
func (*RenderInvoiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
|
|
|
func (m *RenderInvoiceRequest) GetUid() string {
|
|
if m != nil {
|
|
return m.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RenderInvoiceResponse struct {
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
}
|
|
|
|
func (m *RenderInvoiceResponse) Reset() { *m = RenderInvoiceResponse{} }
|
|
func (m *RenderInvoiceResponse) String() string { return proto1.CompactTextString(m) }
|
|
func (*RenderInvoiceResponse) ProtoMessage() {}
|
|
func (*RenderInvoiceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
|
|
|
func (m *RenderInvoiceResponse) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SealInvoiceRequest struct {
|
|
Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"`
|
|
}
|
|
|
|
func (m *SealInvoiceRequest) Reset() { *m = SealInvoiceRequest{} }
|
|
func (m *SealInvoiceRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*SealInvoiceRequest) ProtoMessage() {}
|
|
func (*SealInvoiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
|
|
|
func (m *SealInvoiceRequest) GetUid() string {
|
|
if m != nil {
|
|
return m.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SealInvoiceResponse struct {
|
|
}
|
|
|
|
func (m *SealInvoiceResponse) Reset() { *m = SealInvoiceResponse{} }
|
|
func (m *SealInvoiceResponse) String() string { return proto1.CompactTextString(m) }
|
|
func (*SealInvoiceResponse) ProtoMessage() {}
|
|
func (*SealInvoiceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
|
|
|
func init() {
|
|
proto1.RegisterType((*Item)(nil), "proto.Item")
|
|
proto1.RegisterType((*ContactPoint)(nil), "proto.ContactPoint")
|
|
proto1.RegisterType((*Invoice)(nil), "proto.Invoice")
|
|
proto1.RegisterType((*CreateInvoiceRequest)(nil), "proto.CreateInvoiceRequest")
|
|
proto1.RegisterType((*CreateInvoiceResponse)(nil), "proto.CreateInvoiceResponse")
|
|
proto1.RegisterType((*GetInvoiceRequest)(nil), "proto.GetInvoiceRequest")
|
|
proto1.RegisterType((*GetInvoiceResponse)(nil), "proto.GetInvoiceResponse")
|
|
proto1.RegisterType((*RenderInvoiceRequest)(nil), "proto.RenderInvoiceRequest")
|
|
proto1.RegisterType((*RenderInvoiceResponse)(nil), "proto.RenderInvoiceResponse")
|
|
proto1.RegisterType((*SealInvoiceRequest)(nil), "proto.SealInvoiceRequest")
|
|
proto1.RegisterType((*SealInvoiceResponse)(nil), "proto.SealInvoiceResponse")
|
|
proto1.RegisterEnum("proto.GetInvoiceResponse_State", GetInvoiceResponse_State_name, GetInvoiceResponse_State_value)
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// Client API for Inboice service
|
|
|
|
type InboiceClient interface {
|
|
CreateInvoice(ctx context.Context, in *CreateInvoiceRequest, opts ...grpc.CallOption) (*CreateInvoiceResponse, error)
|
|
GetInvoice(ctx context.Context, in *GetInvoiceRequest, opts ...grpc.CallOption) (*GetInvoiceResponse, error)
|
|
RenderInvoice(ctx context.Context, in *RenderInvoiceRequest, opts ...grpc.CallOption) (Inboice_RenderInvoiceClient, error)
|
|
SealInvoice(ctx context.Context, in *SealInvoiceRequest, opts ...grpc.CallOption) (*SealInvoiceResponse, error)
|
|
}
|
|
|
|
type inboiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewInboiceClient(cc *grpc.ClientConn) InboiceClient {
|
|
return &inboiceClient{cc}
|
|
}
|
|
|
|
func (c *inboiceClient) CreateInvoice(ctx context.Context, in *CreateInvoiceRequest, opts ...grpc.CallOption) (*CreateInvoiceResponse, error) {
|
|
out := new(CreateInvoiceResponse)
|
|
err := grpc.Invoke(ctx, "/proto.Inboice/CreateInvoice", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inboiceClient) GetInvoice(ctx context.Context, in *GetInvoiceRequest, opts ...grpc.CallOption) (*GetInvoiceResponse, error) {
|
|
out := new(GetInvoiceResponse)
|
|
err := grpc.Invoke(ctx, "/proto.Inboice/GetInvoice", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *inboiceClient) RenderInvoice(ctx context.Context, in *RenderInvoiceRequest, opts ...grpc.CallOption) (Inboice_RenderInvoiceClient, error) {
|
|
stream, err := grpc.NewClientStream(ctx, &_Inboice_serviceDesc.Streams[0], c.cc, "/proto.Inboice/RenderInvoice", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &inboiceRenderInvoiceClient{stream}
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
return x, nil
|
|
}
|
|
|
|
type Inboice_RenderInvoiceClient interface {
|
|
Recv() (*RenderInvoiceResponse, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type inboiceRenderInvoiceClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *inboiceRenderInvoiceClient) Recv() (*RenderInvoiceResponse, error) {
|
|
m := new(RenderInvoiceResponse)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *inboiceClient) SealInvoice(ctx context.Context, in *SealInvoiceRequest, opts ...grpc.CallOption) (*SealInvoiceResponse, error) {
|
|
out := new(SealInvoiceResponse)
|
|
err := grpc.Invoke(ctx, "/proto.Inboice/SealInvoice", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for Inboice service
|
|
|
|
type InboiceServer interface {
|
|
CreateInvoice(context.Context, *CreateInvoiceRequest) (*CreateInvoiceResponse, error)
|
|
GetInvoice(context.Context, *GetInvoiceRequest) (*GetInvoiceResponse, error)
|
|
RenderInvoice(*RenderInvoiceRequest, Inboice_RenderInvoiceServer) error
|
|
SealInvoice(context.Context, *SealInvoiceRequest) (*SealInvoiceResponse, error)
|
|
}
|
|
|
|
func RegisterInboiceServer(s *grpc.Server, srv InboiceServer) {
|
|
s.RegisterService(&_Inboice_serviceDesc, srv)
|
|
}
|
|
|
|
func _Inboice_CreateInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateInvoiceRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InboiceServer).CreateInvoice(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.Inboice/CreateInvoice",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InboiceServer).CreateInvoice(ctx, req.(*CreateInvoiceRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Inboice_GetInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetInvoiceRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InboiceServer).GetInvoice(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.Inboice/GetInvoice",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InboiceServer).GetInvoice(ctx, req.(*GetInvoiceRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Inboice_RenderInvoice_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(RenderInvoiceRequest)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(InboiceServer).RenderInvoice(m, &inboiceRenderInvoiceServer{stream})
|
|
}
|
|
|
|
type Inboice_RenderInvoiceServer interface {
|
|
Send(*RenderInvoiceResponse) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type inboiceRenderInvoiceServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *inboiceRenderInvoiceServer) Send(m *RenderInvoiceResponse) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func _Inboice_SealInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SealInvoiceRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(InboiceServer).SealInvoice(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.Inboice/SealInvoice",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(InboiceServer).SealInvoice(ctx, req.(*SealInvoiceRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Inboice_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "proto.Inboice",
|
|
HandlerType: (*InboiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CreateInvoice",
|
|
Handler: _Inboice_CreateInvoice_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetInvoice",
|
|
Handler: _Inboice_GetInvoice_Handler,
|
|
},
|
|
{
|
|
MethodName: "SealInvoice",
|
|
Handler: _Inboice_SealInvoice_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "RenderInvoice",
|
|
Handler: _Inboice_RenderInvoice_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "inboice.proto",
|
|
}
|
|
|
|
func init() { proto1.RegisterFile("inboice.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 663 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdf, 0x4f, 0x13, 0x41,
|
|
0x10, 0xf6, 0x7a, 0x2d, 0x6d, 0xa7, 0x2d, 0x96, 0x81, 0xea, 0x02, 0x1a, 0x9a, 0x4b, 0x24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