br

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CofinsAliq

type CofinsAliq struct {
	CST     string `json:"CST"`
	VBC     string `json:"vBC"`
	PCofins string `json:"pCOFINS"`
	VCofins string `json:"vCOFINS"`
}

type CofinsGroup

type CofinsGroup interface {
	// contains filtered or unexported methods
}

type CofinsNt

type CofinsNt struct {
	CST string `json:"CST"`
}

type CofinsOutr

type CofinsOutr struct {
	CST     string  `json:"CST"`
	VBC     *string `json:"vBC,omitempty"`
	PCofins *string `json:"pCOFINS,omitempty"`
	VCofins string  `json:"vCOFINS"`
}

type Icms00

type Icms00 struct {
	Orig  string  `json:"orig"`
	CST   string  `json:"CST"`
	ModBC string  `json:"modBC"`
	VBC   string  `json:"vBC"`
	PICMS string  `json:"pICMS"`
	VICMS string  `json:"vICMS"`
	PFCP  *string `json:"pFCP,omitempty"`
	VFCP  *string `json:"vFCP,omitempty"`
}

func NewIcms00

func NewIcms00(orig, modBC, vBC, pICMS, vICMS string) Icms00

type Icms40

type Icms40 struct {
	Orig       string  `json:"orig"`
	CST        string  `json:"CST"`
	VICMSDeson *string `json:"vICMSDeson,omitempty"`
	MotDesICMS *string `json:"motDesICMS,omitempty"`
}

type Icms60

type Icms60 struct {
	Orig            string  `json:"orig"`
	CST             string  `json:"CST"`
	VBCSTRet        *string `json:"vBCSTRet,omitempty"`
	PST             *string `json:"pST,omitempty"`
	VICMSSubstituto *string `json:"vICMSSubstituto,omitempty"`
	VICMSSTRet      *string `json:"vICMSSTRet,omitempty"`
	VBCFCPSTRet     *string `json:"vBCFCPSTRet,omitempty"`
	PFCPSTRet       *string `json:"pFCPSTRet,omitempty"`
	VFCPSTRet       *string `json:"vFCPSTRet,omitempty"`
	PRedBCEfet      *string `json:"pRedBCEfet,omitempty"`
	VBCEfet         *string `json:"vBCEfet,omitempty"`
	PICMSEfet       *string `json:"pICMSEfet,omitempty"`
	VICMSEfet       *string `json:"vICMSEfet,omitempty"`
}

func NewIcms60

func NewIcms60(orig string) Icms60

type IcmsGroup

type IcmsGroup interface {
	// contains filtered or unexported methods
}

type IcmsSn101

type IcmsSn101 struct {
	Orig        string `json:"orig"`
	CSOSN       string `json:"CSOSN"`
	PCredSN     string `json:"pCredSN"`
	VCredICMSSN string `json:"vCredICMSSN"`
}

func NewIcmsSn101

func NewIcmsSn101(orig, pCredSN, vCredICMSSN string) IcmsSn101

type IcmsSn102

type IcmsSn102 struct {
	Orig  *string `json:"orig,omitempty"`
	CSOSN string  `json:"CSOSN"`
}

type IcmsSn900 added in v0.1.1

type IcmsSn900 struct {
	Orig  *string `json:"orig,omitempty"`
	CSOSN string  `json:"CSOSN"`
	ModBC *string `json:"modBC,omitempty"`
	VBC   *string `json:"vBC,omitempty"`
	PICMS *string `json:"pICMS,omitempty"`
	VICMS *string `json:"vICMS,omitempty"`
}

type IcmsUfDest

type IcmsUfDest struct {
	VBCUFDest      string  `json:"vBCUFDest"`
	VBCFCPUFDest   *string `json:"vBCFCPUFDest,omitempty"`
	PFCPUFDest     *string `json:"pFCPUFDest,omitempty"`
	PICMSUFDest    string  `json:"pICMSUFDest"`
	PICMSInter     string  `json:"pICMSInter"`
	PICMSInterPart string  `json:"pICMSInterPart"`
	VFCPUFDest     *string `json:"vFCPUFDest,omitempty"`
	VICMSUFDest    string  `json:"vICMSUFDest"`
	VICMSUFRemet   string  `json:"vICMSUFRemet"`
}

type Ipi

type Ipi struct {
	CEnq string     `json:"cEnq"`
	Trib IpiVariant `json:"-"`
}

type IpiNt

type IpiNt struct {
	CST string `json:"CST"`
}

type IpiTrib

type IpiTrib struct {
	CST   string  `json:"CST"`
	VBC   *string `json:"vBC,omitempty"`
	PIPI  *string `json:"pIPI,omitempty"`
	QUnid *string `json:"qUnid,omitempty"`
	VUnid *string `json:"vUnid,omitempty"`
	VIPI  string  `json:"vIPI"`
}

type IpiVariant

type IpiVariant interface {
	// contains filtered or unexported methods
}

type PisAliq

type PisAliq struct {
	CST  string `json:"CST"`
	VBC  string `json:"vBC"`
	PPIS string `json:"pPIS"`
	VPIS string `json:"vPIS"`
}

type PisGroup

type PisGroup interface {
	// contains filtered or unexported methods
}

type PisNt

type PisNt struct {
	CST string `json:"CST"`
}

type PisOutr

type PisOutr struct {
	CST  string  `json:"CST"`
	VBC  *string `json:"vBC,omitempty"`
	PPIS *string `json:"pPIS,omitempty"`
	VPIS string  `json:"vPIS"`
}

type PresumedCredit

type PresumedCredit struct {
	Code       string  `json:"code"`
	Percentage float64 `json:"percentage"`
	Amount     float64 `json:"amount"`
}

type Product

type Product struct {
	Description       string
	Amount            float64
	Unit              string
	Quantity          float64
	Barcode           *string
	Freight           *float64
	Insurance         *float64
	Discount          *float64
	OtherExpenses     *float64
	UsedMovableAsset  bool
	PurchaseOrder     *string
	PurchaseOrderItem *string

	NCM                        *string
	CFOP                       *string
	CEST                       *string
	NVECodes                   []string
	IndEscala                  *string
	ManufacturerCNPJ           *string
	TaxBenefitCode             *string
	PresumedCredits            []PresumedCredit
	ExTipi                     *string
	ImportContentControlNumber *string
	RecopiNumber               *string
	ExtraGroups                map[string]any
	Tax                        *Tax

	ServiceCode     *string  // LC 116/2003 item.subitem, nfse only
	ServiceDiscount *float64 // unconditional discount, nfse only
	TaxRetained     bool     // ISSQN retained by the tomador, nfse only
	Observations    *string  // nfse only
}

func (Product) ToDict

func (p Product) ToDict() map[string]any

type Tax

type Tax struct {
	VTotTrib   *string
	Icms       IcmsGroup
	IcmsUfDest *IcmsUfDest
	Ipi        *Ipi
	Pis        PisGroup
	Cofins     CofinsGroup
}

func (Tax) ToDict

func (t Tax) ToDict() map[string]any

Jump to

Keyboard shortcuts

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