Documentation
¶
Index ¶
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default avatax HTTP client.
var DefaultSchemes = []string{"https"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type Avatax ¶
type Avatax struct { Accounts accounts.ClientService Addresses addresses.ClientService AdvancedRules advanced_rules.ClientService AvaFileForms ava_file_forms.ClientService Batches batches.ClientService CertExpressInvites cert_express_invites.ClientService Certificates certificates.ClientService Companies companies.ClientService Compliance compliance.ClientService Contacts contacts.ClientService Customers customers.ClientService DataSources data_sources.ClientService Definitions definitions.ClientService DistanceThresholds distance_thresholds.ClientService ECommerceToken e_commerce_token.ClientService FilingCalendars filing_calendars.ClientService Filings filings.ClientService FirmClientLinkages firm_client_linkages.ClientService Free free.ClientService FundingRequests funding_requests.ClientService Items items.ClientService JurisdictionOverrides jurisdiction_overrides.ClientService Locations locations.ClientService MultiDocument multi_document.ClientService Nexus nexus.ClientService Notices notices.ClientService Notifications notifications.ClientService Provisioning provisioning.ClientService Registrar registrar.ClientService Reports reports.ClientService Settings settings.ClientService Subscriptions subscriptions.ClientService TaxCodes tax_codes.ClientService TaxContent tax_content.ClientService TaxRules tax_rules.ClientService Transactions transactions.ClientService Upcs upcs.ClientService UserDefinedFields user_defined_fields.ClientService Users users.ClientService Utilities utilities.ClientService Transport runtime.ClientTransport }
Avatax is a client for avatax
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Avatax
New creates a new avatax client
func NewHTTPClient ¶
NewHTTPClient creates a new avatax HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Avatax
NewHTTPClientWithConfig creates a new avatax HTTP client, using a customizable transport config.
func (*Avatax) SetTransport ¶
func (c *Avatax) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.