invpb

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package invpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterInvoiceServiceHandler

func RegisterInvoiceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterInvoiceServiceHandler registers the http handlers for service InvoiceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterInvoiceServiceHandlerClient

func RegisterInvoiceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InvoiceServiceClient) error

RegisterInvoiceServiceHandlerClient registers the http handlers for service InvoiceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InvoiceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InvoiceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InvoiceServiceClient" to call the correct interceptors.

func RegisterInvoiceServiceHandlerFromEndpoint

func RegisterInvoiceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterInvoiceServiceHandlerFromEndpoint is same as RegisterInvoiceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterInvoiceServiceServer

func RegisterInvoiceServiceServer(s *grpc.Server, srv InvoiceServiceServer)

Types

type GetRequest

type GetRequest struct {
	Identifier           string   `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRequest) Descriptor

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

func (*GetRequest) GetIdentifier

func (m *GetRequest) GetIdentifier() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRequest) XXX_Merge

func (m *GetRequest) XXX_Merge(src proto.Message)

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

func (m *GetRequest) XXX_Unmarshal(b []byte) error

type GetVersionRequest

type GetVersionRequest struct {
	Identifier           string   `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Version              string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetVersionRequest) Descriptor

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

func (*GetVersionRequest) GetIdentifier

func (m *GetVersionRequest) GetIdentifier() string

func (*GetVersionRequest) GetVersion

func (m *GetVersionRequest) GetVersion() string

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) Reset

func (m *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (m *GetVersionRequest) String() string

func (*GetVersionRequest) XXX_DiscardUnknown

func (m *GetVersionRequest) XXX_DiscardUnknown()

func (*GetVersionRequest) XXX_Marshal

func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetVersionRequest) XXX_Merge

func (m *GetVersionRequest) XXX_Merge(src proto.Message)

func (*GetVersionRequest) XXX_Size

func (m *GetVersionRequest) XXX_Size() int

func (*GetVersionRequest) XXX_Unmarshal

func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error

type InvoiceCreatePayload

type InvoiceCreatePayload struct {
	ReadAccess           *document.ReadAccess  `protobuf:"bytes,1,opt,name=read_access,json=readAccess,proto3" json:"read_access,omitempty"`
	WriteAccess          *document.WriteAccess `protobuf:"bytes,2,opt,name=write_access,json=writeAccess,proto3" json:"write_access,omitempty"`
	Data                 *InvoiceData          `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*InvoiceCreatePayload) Descriptor

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

func (*InvoiceCreatePayload) GetData

func (m *InvoiceCreatePayload) GetData() *InvoiceData

func (*InvoiceCreatePayload) GetReadAccess

func (m *InvoiceCreatePayload) GetReadAccess() *document.ReadAccess

func (*InvoiceCreatePayload) GetWriteAccess

func (m *InvoiceCreatePayload) GetWriteAccess() *document.WriteAccess

func (*InvoiceCreatePayload) ProtoMessage

func (*InvoiceCreatePayload) ProtoMessage()

func (*InvoiceCreatePayload) Reset

func (m *InvoiceCreatePayload) Reset()

func (*InvoiceCreatePayload) String

func (m *InvoiceCreatePayload) String() string

func (*InvoiceCreatePayload) XXX_DiscardUnknown

func (m *InvoiceCreatePayload) XXX_DiscardUnknown()

func (*InvoiceCreatePayload) XXX_Marshal

func (m *InvoiceCreatePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvoiceCreatePayload) XXX_Merge

func (m *InvoiceCreatePayload) XXX_Merge(src proto.Message)

func (*InvoiceCreatePayload) XXX_Size

func (m *InvoiceCreatePayload) XXX_Size() int

func (*InvoiceCreatePayload) XXX_Unmarshal

func (m *InvoiceCreatePayload) XXX_Unmarshal(b []byte) error

type InvoiceData

type InvoiceData struct {
	// invoice number or reference number
	Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	// invoice status
	Status                  string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	SenderInvoiceId         string `protobuf:"bytes,3,opt,name=sender_invoice_id,json=senderInvoiceId,proto3" json:"sender_invoice_id,omitempty"`
	RecipientInvoiceId      string `protobuf:"bytes,4,opt,name=recipient_invoice_id,json=recipientInvoiceId,proto3" json:"recipient_invoice_id,omitempty"`
	SenderCompanyName       string `protobuf:"bytes,5,opt,name=sender_company_name,json=senderCompanyName,proto3" json:"sender_company_name,omitempty"`
	SenderContactPersonName string `` /* 134-byte string literal not displayed */
	// street and address details of the sender company
	SenderStreet1 string `protobuf:"bytes,7,opt,name=sender_street1,json=senderStreet1,proto3" json:"sender_street1,omitempty"`
	SenderStreet2 string `protobuf:"bytes,8,opt,name=sender_street2,json=senderStreet2,proto3" json:"sender_street2,omitempty"`
	SenderCity    string `protobuf:"bytes,9,opt,name=sender_city,json=senderCity,proto3" json:"sender_city,omitempty"`
	SenderZipcode string `protobuf:"bytes,10,opt,name=sender_zipcode,json=senderZipcode,proto3" json:"sender_zipcode,omitempty"`
	SenderState   string `protobuf:"bytes,11,opt,name=sender_state,json=senderState,proto3" json:"sender_state,omitempty"`
	// country ISO code of the sender of this invoice
	SenderCountry            string `protobuf:"bytes,12,opt,name=sender_country,json=senderCountry,proto3" json:"sender_country,omitempty"`
	BillToCompanyName        string `protobuf:"bytes,43,opt,name=bill_to_company_name,json=billToCompanyName,proto3" json:"bill_to_company_name,omitempty"`
	BillToContactPersonName  string `` /* 137-byte string literal not displayed */
	BillToStreet1            string `protobuf:"bytes,15,opt,name=bill_to_street1,json=billToStreet1,proto3" json:"bill_to_street1,omitempty"`
	BillToStreet2            string `protobuf:"bytes,16,opt,name=bill_to_street2,json=billToStreet2,proto3" json:"bill_to_street2,omitempty"`
	BillToCity               string `protobuf:"bytes,17,opt,name=bill_to_city,json=billToCity,proto3" json:"bill_to_city,omitempty"`
	BillToZipcode            string `protobuf:"bytes,18,opt,name=bill_to_zipcode,json=billToZipcode,proto3" json:"bill_to_zipcode,omitempty"`
	BillToState              string `protobuf:"bytes,50,opt,name=bill_to_state,json=billToState,proto3" json:"bill_to_state,omitempty"`
	BillToCountry            string `protobuf:"bytes,20,opt,name=bill_to_country,json=billToCountry,proto3" json:"bill_to_country,omitempty"`
	BillToVatNumber          string `protobuf:"bytes,21,opt,name=bill_to_vat_number,json=billToVatNumber,proto3" json:"bill_to_vat_number,omitempty"`
	BillToLocalTaxId         string `protobuf:"bytes,60,opt,name=bill_to_local_tax_id,json=billToLocalTaxId,proto3" json:"bill_to_local_tax_id,omitempty"`
	RemitToCompanyName       string `protobuf:"bytes,23,opt,name=remit_to_company_name,json=remitToCompanyName,proto3" json:"remit_to_company_name,omitempty"`
	RemitToContactPersonName string `` /* 140-byte string literal not displayed */
	RemitToStreet1           string `protobuf:"bytes,25,opt,name=remit_to_street1,json=remitToStreet1,proto3" json:"remit_to_street1,omitempty"`
	RemitToStreet2           string `protobuf:"bytes,26,opt,name=remit_to_street2,json=remitToStreet2,proto3" json:"remit_to_street2,omitempty"`
	RemitToCity              string `protobuf:"bytes,27,opt,name=remit_to_city,json=remitToCity,proto3" json:"remit_to_city,omitempty"`
	RemitToZipcode           string `protobuf:"bytes,28,opt,name=remit_to_zipcode,json=remitToZipcode,proto3" json:"remit_to_zipcode,omitempty"`
	RemitToState             string `protobuf:"bytes,30,opt,name=remit_to_state,json=remitToState,proto3" json:"remit_to_state,omitempty"`
	RemitToCountry           string `protobuf:"bytes,31,opt,name=remit_to_country,json=remitToCountry,proto3" json:"remit_to_country,omitempty"`
	RemitToVatNumber         string `protobuf:"bytes,32,opt,name=remit_to_vat_number,json=remitToVatNumber,proto3" json:"remit_to_vat_number,omitempty"`
	RemitToLocalTaxId        string `protobuf:"bytes,33,opt,name=remit_to_local_tax_id,json=remitToLocalTaxId,proto3" json:"remit_to_local_tax_id,omitempty"`
	RemitToTaxCountry        string `protobuf:"bytes,34,opt,name=remit_to_tax_country,json=remitToTaxCountry,proto3" json:"remit_to_tax_country,omitempty"`
	ShipToCompanyName        string `protobuf:"bytes,35,opt,name=ship_to_company_name,json=shipToCompanyName,proto3" json:"ship_to_company_name,omitempty"`
	ShipToContactPersonName  string `` /* 137-byte string literal not displayed */
	ShipToStreet1            string `protobuf:"bytes,37,opt,name=ship_to_street1,json=shipToStreet1,proto3" json:"ship_to_street1,omitempty"`
	ShipToStreet2            string `protobuf:"bytes,38,opt,name=ship_to_street2,json=shipToStreet2,proto3" json:"ship_to_street2,omitempty"`
	ShipToCity               string `protobuf:"bytes,39,opt,name=ship_to_city,json=shipToCity,proto3" json:"ship_to_city,omitempty"`
	ShipToZipcode            string `protobuf:"bytes,40,opt,name=ship_to_zipcode,json=shipToZipcode,proto3" json:"ship_to_zipcode,omitempty"`
	ShipToState              string `protobuf:"bytes,41,opt,name=ship_to_state,json=shipToState,proto3" json:"ship_to_state,omitempty"`
	ShipToCountry            string `protobuf:"bytes,42,opt,name=ship_to_country,json=shipToCountry,proto3" json:"ship_to_country,omitempty"`
	// ISO currency code
	Currency string `protobuf:"bytes,13,opt,name=currency,proto3" json:"currency,omitempty"`
	// invoice amount including tax
	GrossAmount string `protobuf:"bytes,14,opt,name=gross_amount,json=grossAmount,proto3" json:"gross_amount,omitempty"`
	// invoice amount excluding tax
	NetAmount      string `protobuf:"bytes,45,opt,name=net_amount,json=netAmount,proto3" json:"net_amount,omitempty"`
	TaxAmount      string `protobuf:"bytes,46,opt,name=tax_amount,json=taxAmount,proto3" json:"tax_amount,omitempty"`
	TaxRate        string `protobuf:"bytes,47,opt,name=tax_rate,json=taxRate,proto3" json:"tax_rate,omitempty"`
	TaxOnLineLevel bool   `protobuf:"varint,48,opt,name=tax_on_line_level,json=taxOnLineLevel,proto3" json:"tax_on_line_level,omitempty"`
	// centrifuge ID of the recipient
	Recipient string `protobuf:"bytes,49,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// centrifuge ID of the sender
	Sender string `protobuf:"bytes,19,opt,name=sender,proto3" json:"sender,omitempty"`
	// centrifuge ID of the payee
	Payee          string `protobuf:"bytes,51,opt,name=payee,proto3" json:"payee,omitempty"`
	Comment        string `protobuf:"bytes,52,opt,name=comment,proto3" json:"comment,omitempty"`
	ShippingTerms  string `protobuf:"bytes,53,opt,name=shipping_terms,json=shippingTerms,proto3" json:"shipping_terms,omitempty"`
	RequesterEmail string `protobuf:"bytes,54,opt,name=requester_email,json=requesterEmail,proto3" json:"requester_email,omitempty"`
	RequesterName  string `protobuf:"bytes,55,opt,name=requester_name,json=requesterName,proto3" json:"requester_name,omitempty"`
	//number of the delivery note
	DeliveryNumber          string                       `protobuf:"bytes,56,opt,name=delivery_number,json=deliveryNumber,proto3" json:"delivery_number,omitempty"`
	IsCreditNote            bool                         `protobuf:"varint,57,opt,name=is_credit_note,json=isCreditNote,proto3" json:"is_credit_note,omitempty"`
	CreditNoteInvoiceNumber string                       `` /* 135-byte string literal not displayed */
	CreditForInvoiceDate    *timestamp.Timestamp         `` /* 126-byte string literal not displayed */
	DateDue                 *timestamp.Timestamp         `protobuf:"bytes,22,opt,name=date_due,json=dateDue,proto3" json:"date_due,omitempty"`
	DatePaid                *timestamp.Timestamp         `protobuf:"bytes,61,opt,name=date_paid,json=datePaid,proto3" json:"date_paid,omitempty"`
	DateUpdated             *timestamp.Timestamp         `protobuf:"bytes,62,opt,name=date_updated,json=dateUpdated,proto3" json:"date_updated,omitempty"`
	DateCreated             *timestamp.Timestamp         `protobuf:"bytes,63,opt,name=date_created,json=dateCreated,proto3" json:"date_created,omitempty"`
	Attachments             []*document.BinaryAttachment `protobuf:"bytes,64,rep,name=attachments,proto3" json:"attachments,omitempty"`
	LineItems               []*LineItem                  `protobuf:"bytes,65,rep,name=line_items,json=lineItems,proto3" json:"line_items,omitempty"`
	PaymentDetails          []*document.PaymentDetails   `protobuf:"bytes,66,rep,name=payment_details,json=paymentDetails,proto3" json:"payment_details,omitempty"`
	TaxItems                []*TaxItem                   `protobuf:"bytes,67,rep,name=tax_items,json=taxItems,proto3" json:"tax_items,omitempty"`
	XXX_NoUnkeyedLiteral    struct{}                     `json:"-"`
	XXX_unrecognized        []byte                       `json:"-"`
	XXX_sizecache           int32                        `json:"-"`
}

InvoiceData is the default invoice schema

func (*InvoiceData) Descriptor

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

func (*InvoiceData) GetAttachments

func (m *InvoiceData) GetAttachments() []*document.BinaryAttachment

func (*InvoiceData) GetBillToCity

func (m *InvoiceData) GetBillToCity() string

func (*InvoiceData) GetBillToCompanyName

func (m *InvoiceData) GetBillToCompanyName() string

func (*InvoiceData) GetBillToContactPersonName

func (m *InvoiceData) GetBillToContactPersonName() string

func (*InvoiceData) GetBillToCountry

func (m *InvoiceData) GetBillToCountry() string

func (*InvoiceData) GetBillToLocalTaxId

func (m *InvoiceData) GetBillToLocalTaxId() string

func (*InvoiceData) GetBillToState

func (m *InvoiceData) GetBillToState() string

func (*InvoiceData) GetBillToStreet1

func (m *InvoiceData) GetBillToStreet1() string

func (*InvoiceData) GetBillToStreet2

func (m *InvoiceData) GetBillToStreet2() string

func (*InvoiceData) GetBillToVatNumber

func (m *InvoiceData) GetBillToVatNumber() string

func (*InvoiceData) GetBillToZipcode

func (m *InvoiceData) GetBillToZipcode() string

func (*InvoiceData) GetComment

func (m *InvoiceData) GetComment() string

func (*InvoiceData) GetCreditForInvoiceDate

func (m *InvoiceData) GetCreditForInvoiceDate() *timestamp.Timestamp

func (*InvoiceData) GetCreditNoteInvoiceNumber

func (m *InvoiceData) GetCreditNoteInvoiceNumber() string

func (*InvoiceData) GetCurrency

func (m *InvoiceData) GetCurrency() string

func (*InvoiceData) GetDateCreated

func (m *InvoiceData) GetDateCreated() *timestamp.Timestamp

func (*InvoiceData) GetDateDue

func (m *InvoiceData) GetDateDue() *timestamp.Timestamp

func (*InvoiceData) GetDatePaid

func (m *InvoiceData) GetDatePaid() *timestamp.Timestamp

func (*InvoiceData) GetDateUpdated

func (m *InvoiceData) GetDateUpdated() *timestamp.Timestamp

func (*InvoiceData) GetDeliveryNumber

func (m *InvoiceData) GetDeliveryNumber() string

func (*InvoiceData) GetGrossAmount

func (m *InvoiceData) GetGrossAmount() string

func (*InvoiceData) GetIsCreditNote

func (m *InvoiceData) GetIsCreditNote() bool

func (*InvoiceData) GetLineItems

func (m *InvoiceData) GetLineItems() []*LineItem

func (*InvoiceData) GetNetAmount

func (m *InvoiceData) GetNetAmount() string

func (*InvoiceData) GetNumber

func (m *InvoiceData) GetNumber() string

func (*InvoiceData) GetPayee

func (m *InvoiceData) GetPayee() string

func (*InvoiceData) GetPaymentDetails

func (m *InvoiceData) GetPaymentDetails() []*document.PaymentDetails

func (*InvoiceData) GetRecipient

func (m *InvoiceData) GetRecipient() string

func (*InvoiceData) GetRecipientInvoiceId

func (m *InvoiceData) GetRecipientInvoiceId() string

func (*InvoiceData) GetRemitToCity

func (m *InvoiceData) GetRemitToCity() string

func (*InvoiceData) GetRemitToCompanyName

func (m *InvoiceData) GetRemitToCompanyName() string

func (*InvoiceData) GetRemitToContactPersonName

func (m *InvoiceData) GetRemitToContactPersonName() string

func (*InvoiceData) GetRemitToCountry

func (m *InvoiceData) GetRemitToCountry() string

func (*InvoiceData) GetRemitToLocalTaxId

func (m *InvoiceData) GetRemitToLocalTaxId() string

func (*InvoiceData) GetRemitToState

func (m *InvoiceData) GetRemitToState() string

func (*InvoiceData) GetRemitToStreet1

func (m *InvoiceData) GetRemitToStreet1() string

func (*InvoiceData) GetRemitToStreet2

func (m *InvoiceData) GetRemitToStreet2() string

func (*InvoiceData) GetRemitToTaxCountry

func (m *InvoiceData) GetRemitToTaxCountry() string

func (*InvoiceData) GetRemitToVatNumber

func (m *InvoiceData) GetRemitToVatNumber() string

func (*InvoiceData) GetRemitToZipcode

func (m *InvoiceData) GetRemitToZipcode() string

func (*InvoiceData) GetRequesterEmail

func (m *InvoiceData) GetRequesterEmail() string

func (*InvoiceData) GetRequesterName

func (m *InvoiceData) GetRequesterName() string

func (*InvoiceData) GetSender

func (m *InvoiceData) GetSender() string

func (*InvoiceData) GetSenderCity

func (m *InvoiceData) GetSenderCity() string

func (*InvoiceData) GetSenderCompanyName

func (m *InvoiceData) GetSenderCompanyName() string

func (*InvoiceData) GetSenderContactPersonName

func (m *InvoiceData) GetSenderContactPersonName() string

func (*InvoiceData) GetSenderCountry

func (m *InvoiceData) GetSenderCountry() string

func (*InvoiceData) GetSenderInvoiceId

func (m *InvoiceData) GetSenderInvoiceId() string

func (*InvoiceData) GetSenderState

func (m *InvoiceData) GetSenderState() string

func (*InvoiceData) GetSenderStreet1

func (m *InvoiceData) GetSenderStreet1() string

func (*InvoiceData) GetSenderStreet2

func (m *InvoiceData) GetSenderStreet2() string

func (*InvoiceData) GetSenderZipcode

func (m *InvoiceData) GetSenderZipcode() string

func (*InvoiceData) GetShipToCity

func (m *InvoiceData) GetShipToCity() string

func (*InvoiceData) GetShipToCompanyName

func (m *InvoiceData) GetShipToCompanyName() string

func (*InvoiceData) GetShipToContactPersonName

func (m *InvoiceData) GetShipToContactPersonName() string

func (*InvoiceData) GetShipToCountry

func (m *InvoiceData) GetShipToCountry() string

func (*InvoiceData) GetShipToState

func (m *InvoiceData) GetShipToState() string

func (*InvoiceData) GetShipToStreet1

func (m *InvoiceData) GetShipToStreet1() string

func (*InvoiceData) GetShipToStreet2

func (m *InvoiceData) GetShipToStreet2() string

func (*InvoiceData) GetShipToZipcode

func (m *InvoiceData) GetShipToZipcode() string

func (*InvoiceData) GetShippingTerms

func (m *InvoiceData) GetShippingTerms() string

func (*InvoiceData) GetStatus

func (m *InvoiceData) GetStatus() string

func (*InvoiceData) GetTaxAmount

func (m *InvoiceData) GetTaxAmount() string

func (*InvoiceData) GetTaxItems

func (m *InvoiceData) GetTaxItems() []*TaxItem

func (*InvoiceData) GetTaxOnLineLevel

func (m *InvoiceData) GetTaxOnLineLevel() bool

func (*InvoiceData) GetTaxRate

func (m *InvoiceData) GetTaxRate() string

func (*InvoiceData) ProtoMessage

func (*InvoiceData) ProtoMessage()

func (*InvoiceData) Reset

func (m *InvoiceData) Reset()

func (*InvoiceData) String

func (m *InvoiceData) String() string

func (*InvoiceData) XXX_DiscardUnknown

func (m *InvoiceData) XXX_DiscardUnknown()

func (*InvoiceData) XXX_Marshal

func (m *InvoiceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvoiceData) XXX_Merge

func (m *InvoiceData) XXX_Merge(src proto.Message)

func (*InvoiceData) XXX_Size

func (m *InvoiceData) XXX_Size() int

func (*InvoiceData) XXX_Unmarshal

func (m *InvoiceData) XXX_Unmarshal(b []byte) error

type InvoiceResponse

type InvoiceResponse struct {
	Header               *document.ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Data                 *InvoiceData             `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*InvoiceResponse) Descriptor

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

func (*InvoiceResponse) GetData

func (m *InvoiceResponse) GetData() *InvoiceData

func (*InvoiceResponse) GetHeader

func (m *InvoiceResponse) GetHeader() *document.ResponseHeader

func (*InvoiceResponse) ProtoMessage

func (*InvoiceResponse) ProtoMessage()

func (*InvoiceResponse) Reset

func (m *InvoiceResponse) Reset()

func (*InvoiceResponse) String

func (m *InvoiceResponse) String() string

func (*InvoiceResponse) XXX_DiscardUnknown

func (m *InvoiceResponse) XXX_DiscardUnknown()

func (*InvoiceResponse) XXX_Marshal

func (m *InvoiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvoiceResponse) XXX_Merge

func (m *InvoiceResponse) XXX_Merge(src proto.Message)

func (*InvoiceResponse) XXX_Size

func (m *InvoiceResponse) XXX_Size() int

func (*InvoiceResponse) XXX_Unmarshal

func (m *InvoiceResponse) XXX_Unmarshal(b []byte) error

type InvoiceServiceClient

type InvoiceServiceClient interface {
	Create(ctx context.Context, in *InvoiceCreatePayload, opts ...grpc.CallOption) (*InvoiceResponse, error)
	Update(ctx context.Context, in *InvoiceUpdatePayload, opts ...grpc.CallOption) (*InvoiceResponse, error)
	GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*InvoiceResponse, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*InvoiceResponse, error)
}

InvoiceServiceClient is the client API for InvoiceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInvoiceServiceClient

func NewInvoiceServiceClient(cc *grpc.ClientConn) InvoiceServiceClient

type InvoiceServiceServer

InvoiceServiceServer is the server API for InvoiceService service.

type InvoiceUpdatePayload

type InvoiceUpdatePayload struct {
	Identifier           string                `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	ReadAccess           *document.ReadAccess  `protobuf:"bytes,2,opt,name=read_access,json=readAccess,proto3" json:"read_access,omitempty"`
	WriteAccess          *document.WriteAccess `protobuf:"bytes,3,opt,name=write_access,json=writeAccess,proto3" json:"write_access,omitempty"`
	Data                 *InvoiceData          `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*InvoiceUpdatePayload) Descriptor

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

func (*InvoiceUpdatePayload) GetData

func (m *InvoiceUpdatePayload) GetData() *InvoiceData

func (*InvoiceUpdatePayload) GetIdentifier

func (m *InvoiceUpdatePayload) GetIdentifier() string

func (*InvoiceUpdatePayload) GetReadAccess

func (m *InvoiceUpdatePayload) GetReadAccess() *document.ReadAccess

func (*InvoiceUpdatePayload) GetWriteAccess

func (m *InvoiceUpdatePayload) GetWriteAccess() *document.WriteAccess

func (*InvoiceUpdatePayload) ProtoMessage

func (*InvoiceUpdatePayload) ProtoMessage()

func (*InvoiceUpdatePayload) Reset

func (m *InvoiceUpdatePayload) Reset()

func (*InvoiceUpdatePayload) String

func (m *InvoiceUpdatePayload) String() string

func (*InvoiceUpdatePayload) XXX_DiscardUnknown

func (m *InvoiceUpdatePayload) XXX_DiscardUnknown()

func (*InvoiceUpdatePayload) XXX_Marshal

func (m *InvoiceUpdatePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvoiceUpdatePayload) XXX_Merge

func (m *InvoiceUpdatePayload) XXX_Merge(src proto.Message)

func (*InvoiceUpdatePayload) XXX_Size

func (m *InvoiceUpdatePayload) XXX_Size() int

func (*InvoiceUpdatePayload) XXX_Unmarshal

func (m *InvoiceUpdatePayload) XXX_Unmarshal(b []byte) error

type LineItem

type LineItem struct {
	ItemNumber    string `protobuf:"bytes,1,opt,name=item_number,json=itemNumber,proto3" json:"item_number,omitempty"`
	Description   string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	SenderPartNo  string `protobuf:"bytes,3,opt,name=sender_part_no,json=senderPartNo,proto3" json:"sender_part_no,omitempty"`
	PricePerUnit  string `protobuf:"bytes,4,opt,name=price_per_unit,json=pricePerUnit,proto3" json:"price_per_unit,omitempty"`
	Quantity      string `protobuf:"bytes,5,opt,name=quantity,proto3" json:"quantity,omitempty"`
	UnitOfMeasure string `protobuf:"bytes,6,opt,name=unit_of_measure,json=unitOfMeasure,proto3" json:"unit_of_measure,omitempty"`
	NetWeight     string `protobuf:"bytes,7,opt,name=net_weight,json=netWeight,proto3" json:"net_weight,omitempty"`
	TaxAmount     string `protobuf:"bytes,8,opt,name=tax_amount,json=taxAmount,proto3" json:"tax_amount,omitempty"`
	TaxRate       string `protobuf:"bytes,9,opt,name=tax_rate,json=taxRate,proto3" json:"tax_rate,omitempty"`
	TaxCode       string `protobuf:"bytes,10,opt,name=tax_code,json=taxCode,proto3" json:"tax_code,omitempty"`
	//the total amount of the line item
	TotalAmount             string   `protobuf:"bytes,11,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	PurchaseOrderNumber     string   `protobuf:"bytes,12,opt,name=purchase_order_number,json=purchaseOrderNumber,proto3" json:"purchase_order_number,omitempty"`
	PurchaseOrderItemNumber string   `` /* 135-byte string literal not displayed */
	DeliveryNoteNumber      string   `protobuf:"bytes,14,opt,name=delivery_note_number,json=deliveryNoteNumber,proto3" json:"delivery_note_number,omitempty"`
	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
	XXX_unrecognized        []byte   `json:"-"`
	XXX_sizecache           int32    `json:"-"`
}

func (*LineItem) Descriptor

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

func (*LineItem) GetDeliveryNoteNumber

func (m *LineItem) GetDeliveryNoteNumber() string

func (*LineItem) GetDescription

func (m *LineItem) GetDescription() string

func (*LineItem) GetItemNumber

func (m *LineItem) GetItemNumber() string

func (*LineItem) GetNetWeight

func (m *LineItem) GetNetWeight() string

func (*LineItem) GetPricePerUnit

func (m *LineItem) GetPricePerUnit() string

func (*LineItem) GetPurchaseOrderItemNumber

func (m *LineItem) GetPurchaseOrderItemNumber() string

func (*LineItem) GetPurchaseOrderNumber

func (m *LineItem) GetPurchaseOrderNumber() string

func (*LineItem) GetQuantity

func (m *LineItem) GetQuantity() string

func (*LineItem) GetSenderPartNo

func (m *LineItem) GetSenderPartNo() string

func (*LineItem) GetTaxAmount

func (m *LineItem) GetTaxAmount() string

func (*LineItem) GetTaxCode

func (m *LineItem) GetTaxCode() string

func (*LineItem) GetTaxRate

func (m *LineItem) GetTaxRate() string

func (*LineItem) GetTotalAmount

func (m *LineItem) GetTotalAmount() string

func (*LineItem) GetUnitOfMeasure

func (m *LineItem) GetUnitOfMeasure() string

func (*LineItem) ProtoMessage

func (*LineItem) ProtoMessage()

func (*LineItem) Reset

func (m *LineItem) Reset()

func (*LineItem) String

func (m *LineItem) String() string

func (*LineItem) XXX_DiscardUnknown

func (m *LineItem) XXX_DiscardUnknown()

func (*LineItem) XXX_Marshal

func (m *LineItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LineItem) XXX_Merge

func (m *LineItem) XXX_Merge(src proto.Message)

func (*LineItem) XXX_Size

func (m *LineItem) XXX_Size() int

func (*LineItem) XXX_Unmarshal

func (m *LineItem) XXX_Unmarshal(b []byte) error

type TaxItem

type TaxItem struct {
	ItemNumber           string   `protobuf:"bytes,1,opt,name=item_number,json=itemNumber,proto3" json:"item_number,omitempty"`
	InvoiceItemNumber    string   `protobuf:"bytes,2,opt,name=invoice_item_number,json=invoiceItemNumber,proto3" json:"invoice_item_number,omitempty"`
	TaxAmount            string   `protobuf:"bytes,3,opt,name=tax_amount,json=taxAmount,proto3" json:"tax_amount,omitempty"`
	TaxRate              string   `protobuf:"bytes,4,opt,name=tax_rate,json=taxRate,proto3" json:"tax_rate,omitempty"`
	TaxCode              string   `protobuf:"bytes,5,opt,name=tax_code,json=taxCode,proto3" json:"tax_code,omitempty"`
	TaxBaseAmount        string   `protobuf:"bytes,6,opt,name=tax_base_amount,json=taxBaseAmount,proto3" json:"tax_base_amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TaxItem) Descriptor

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

func (*TaxItem) GetInvoiceItemNumber

func (m *TaxItem) GetInvoiceItemNumber() string

func (*TaxItem) GetItemNumber

func (m *TaxItem) GetItemNumber() string

func (*TaxItem) GetTaxAmount

func (m *TaxItem) GetTaxAmount() string

func (*TaxItem) GetTaxBaseAmount

func (m *TaxItem) GetTaxBaseAmount() string

func (*TaxItem) GetTaxCode

func (m *TaxItem) GetTaxCode() string

func (*TaxItem) GetTaxRate

func (m *TaxItem) GetTaxRate() string

func (*TaxItem) ProtoMessage

func (*TaxItem) ProtoMessage()

func (*TaxItem) Reset

func (m *TaxItem) Reset()

func (*TaxItem) String

func (m *TaxItem) String() string

func (*TaxItem) XXX_DiscardUnknown

func (m *TaxItem) XXX_DiscardUnknown()

func (*TaxItem) XXX_Marshal

func (m *TaxItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaxItem) XXX_Merge

func (m *TaxItem) XXX_Merge(src proto.Message)

func (*TaxItem) XXX_Size

func (m *TaxItem) XXX_Size() int

func (*TaxItem) XXX_Unmarshal

func (m *TaxItem) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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