Documentation ¶
Index ¶
- type BillingServiceController
- func (c *BillingServiceController) AddItem(ctx context.Context, msg *pb.InvoiceItemAdd) (*pb.Invoice, error)
- func (c *BillingServiceController) CreateInvoice(ctx context.Context, msg *pb.Invoice) (*pb.Invoice, error)
- func (c *BillingServiceController) DeleteItem(ctx context.Context, msg *pb.InvoiceItemAdd) (*pb.Invoice, error)
- func (c *BillingServiceController) GetInvoices(ctx context.Context, msg *pb.InvoiceFilter) (*pb.Invoices, error)
- func (c *BillingServiceController) UpdateInvoice(ctx context.Context, msg *pb.Invoice) (*pb.Invoice, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingServiceController ¶
type BillingServiceController struct {
// contains filtered or unexported fields
}
Controlador de servicio gRPC
func NewBillingServiceController ¶
func NewBillingServiceController() (BillingServiceController, error)
Método a nivel de package, permite construir una instancia correcta del controlador de servicio gRPC
func (*BillingServiceController) AddItem ¶
func (c *BillingServiceController) AddItem(ctx context.Context, msg *pb.InvoiceItemAdd) (*pb.Invoice, error)
func (*BillingServiceController) CreateInvoice ¶
func (c *BillingServiceController) CreateInvoice(ctx context.Context, msg *pb.Invoice) (*pb.Invoice, error)
Método que genera una factura (registro maestro)
func (*BillingServiceController) DeleteItem ¶
func (c *BillingServiceController) DeleteItem(ctx context.Context, msg *pb.InvoiceItemAdd) (*pb.Invoice, error)
func (*BillingServiceController) GetInvoices ¶
func (c *BillingServiceController) GetInvoices(ctx context.Context, msg *pb.InvoiceFilter) (*pb.Invoices, error)
Método que obtiene facturas mediante criterio de búsqueda
func (*BillingServiceController) UpdateInvoice ¶
Click to show internal directories.
Click to hide internal directories.