Documentation ¶
Index ¶
Constants ¶
View Source
const ( TaxExchangeBusiness TaxExchange = "business" TaxExchangeConsumer TaxExchange = "consumer" TaxAreaWorldwide TaxArea = "worldwide" TaxAreaNational TaxArea = "national" TaxAreaRegional TaxArea = "regional" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ctrl ¶
type Ctrl struct { // OriginCountryCode is the country code of the tax registration and liability. OriginCountryCode *string // RegionalTaxEnabled specifies whether regional taxation is enabled, such as in the EU region. // If this value is set to true (VAT OSS threshold is not exceeded), the rate of the origin country will be used. RegionalTaxEnabled bool // contains filtered or unexported fields }
Ctrl is the salestax controller.
type SalesTax ¶
type SalesTax struct { // Type is the type of the sales tax. Type string // Rate is the sales tax rate. Rate float32 // Area is the area of the sales tax. Area TaxArea // Exchange is the tax exchange type of the sales tax. Exchange TaxExchange // Charge contains information about the charge types of the sales tax. Charge TaxCharge }
SalesTax is the sales tax object.
type TaxCharge ¶
type TaxCharge struct { // Direct implies that direct-charge rule should be in effect. Direct bool // Reverse implies that reverse-charge rule should be in effect. Reverse bool }
TaxCharge contains information about the charge types of the sales tax.
type TaxExchange ¶
type TaxExchange string
Click to show internal directories.
Click to hide internal directories.