lib/app/total.go

33 lines
744 B
Go
Raw Normal View History

2021-01-10 23:44:39 +00:00
package app
2021-01-10 18:40:46 +00:00
2021-01-12 05:46:24 +00:00
import "code.tnxs.net/taxnexus/lib/api/ops/ops_models"
2021-01-14 06:36:35 +00:00
// TotalChannelWrapper wraps the object with workflow params
2021-01-12 05:46:24 +00:00
type TotalChannelWrapper struct {
2021-01-19 01:50:45 +00:00
Obj ops_models.Total
APIKey string
SagaID string
SagaType string
2021-01-12 05:46:24 +00:00
}
2021-01-10 18:40:46 +00:00
// Total is a DB object
type Total struct {
ID string
TotalItems map[string]*TotalItem
Amount float64
BusinessTax float64
BusinessTaxRate float64
CannabisTax float64
CannabisTaxRate float64
MonthlyAmount float64
ObjectType string
PurchaseAmount float64
SalesTax float64
SalesTaxRate float64
ShippingHandling float64
Subtotal float64
TelecomTax float64
TelecomTaxRate float64
TenantID string
}