invoice

package
v0.0.0-...-e31961d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detail

type Detail struct {
	ID           string
	InvoiceID    string
	Amount       int64
	Discount     int64
	ItemName     string
	ItemQuantity int64
	Description  string
	CreatedAt    time.Time
	CreatedBy    string
	UpdatedAt    time.Time
	IsTest       bool
	IsDeleted    bool
}

Detail for invoice detail

type Invoice

type Invoice struct {
	ID            string
	Number        string
	OrderID       string
	InvoiceFrom   string
	InvoiceTo     string
	Type          int
	Total         int64
	DiscountTotal int64
	GrandTotal    int64
	Details       []Detail
	Status        Status
	Description   string
	CreatedBy     int64
	DueDate       time.Time
	PaidAt        time.Time
	CreatedAt     time.Time
	UpdatedAt     time.Time
	IsTest        bool
	IsDeleted     bool
}

Invoice struct

type PaidInvoice

type PaidInvoice struct {
	InvoiceID     string
	InvoiceNumber string
	PaymentID     string
	OrderID       string
	InvoiceFrom   int64
	InvoiceTo     int64
	CreatedAt     time.Time
	CreatedBy     int64
	PaidAt        time.Time
	IsTest        bool
	IsDeleted     bool
}

PaidInvoice struct store all data of paid invoice

type Status

type Status int

Status of invoice

const (
	StatusCreated                       Status = 10
	StatusWaitingForPayment             Status = 100
	StatusWaitingForPaymentConfirmation Status = 105
	StatusPaid                          Status = 200
	StatusCancelled                     Status = 500
	StatusCancelledBySystem             Status = 505
)

list of invoice status

Jump to

Keyboard shortcuts

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