Versions in this module Expand all Collapse all v0 v0.3.1 Mar 6, 2020 Changes in this version + const BaseURL + const GUIDEnvName + const MissingGUIDError + var States = []State + var Version = "dev" + func ValidateABN(abn string) (bool, error) + func ValidateACN(acn string) (bool, error) + type ABN struct + IdentifierStatus string + IdentifierValue string + IsCurrentIndicator string + ReplacedFrom abnDate + ReplacedIdentifierValue string + func (a *ABN) IsValid() (bool, error) + func (a *ABN) String() string + type ACN struct + IdentifierValue string + IsCurrentIndicator string + ReplacedFrom abnDate + ReplacedIdentifierValue string + func (a *ACN) IsValid() (bool, error) + type Abra interface + Search func(string) (*BusinessEntity, error) + SearchByABN func(string, bool) (*BusinessEntity, error) + SearchByABNv201408 func(string, bool) (*BusinessEntity, error) + SearchByACN func(string, bool) (*BusinessEntity, error) + SearchByASIC func(string, bool) (*BusinessEntity, error) + SearchByASICv201408 func(string, bool) (*BusinessEntity, error) + SearchByName func(string, *NameSearchParams) (*ResponseSearchResultsList, error) + SearchByNameAdvancedSimpleProtocol2017 func(string, *NameSearchParams) (*ResponseSearchResultsList, error) + SearchByNameBestGuess func(string, *NameSearchParams) (*BusinessEntity, error) + type AddressDetails struct + EffectiveFrom abnDate + EffectiveTo abnDate + Postcode string + StateCode string + type BusinessEntity struct + ABNs []*ABN + ASICNumber string + BusinessNames []*BusinessName + EntityStatuses []*EntityStatus + EntityType *EntityType + GSTRegisteredPeriods []*GSTRegisteredPeriod + HumanNames []*HumanName + MainNames []*BusinessName + MainTradingNames []*BusinessName + OtherTradingNames []*BusinessName + PhysicalAddresses []*AddressDetails + RecordLastUpdatedDate abnDate + func (b *BusinessEntity) ABN() string + func (b *BusinessEntity) Name() string + type BusinessName struct + EffectiveFrom abnDate + EffectiveTo abnDate + OrganisationName string + type Client struct + BaseURL *url.URL + GUID string + func NewClient() (*Client, error) + func NewWithGuid(guid string) (*Client, error) + func (c *Client) Search(text string) (*BusinessEntity, error) + func (c *Client) SearchByABN(abn string, hist bool) (*BusinessEntity, error) + func (c *Client) SearchByABNv201408(abn string, hist bool) (*BusinessEntity, error) + func (c *Client) SearchByACN(abn string, hist bool) (*BusinessEntity, error) + func (c *Client) SearchByASIC(abn string, hist bool) (*BusinessEntity, error) + func (c *Client) SearchByASICv201408(acn string, hist bool) (*BusinessEntity, error) + func (c *Client) SearchByName(name string, params *NameSearchParams) (*ResponseSearchResultsList, error) + func (c *Client) SearchByNameAdvancedSimpleProtocol2017(name string, params *NameSearchParams) (*ResponseSearchResultsList, error) + func (c *Client) SearchByNameBestGuess(name string, params *NameSearchParams) (*BusinessEntity, error) + type ClientAPI interface + SearchByABN func(string, bool) (*BusinessEntity, error) + SearchByABNv201408 func(string, bool) (*BusinessEntity, error) + SearchByACN func(string, bool) (*BusinessEntity, error) + SearchByASIC func(string, bool) (*BusinessEntity, error) + SearchByASICv201408 func(string, bool) (*BusinessEntity, error) + SearchByName func(string, params *NameSearchParams) (*ResponseSearchResultsList, error) + SearchByNameAdvancedSimpleProtocol2017 func(string, params *NameSearchParams) (*ResponseSearchResultsList, error) + type EntityStatus struct + EffectiveFrom abnDate + EffectiveTo abnDate + EntityStatusCode string + type EntityType struct + EntityDescription string + EntityTypeCode string + type GSTRegisteredPeriod struct + EffectiveFrom abnDate + EffectiveTo abnDate + type HumanName struct + EffectiveFrom abnDate + EffectiveTo abnDate + FamilyName string + GivenName string + OtherGivenName string + type MainBusinessPhysicalAddress struct + IsCurrentIndicator string + Postcode string + StateCode string + type NameSearchParams struct + ActiveABNsOnly bool + BusinessName bool + LegalName bool + MaxSearchResults int32 + MinimumScore int32 + Postcode string + States []State + TradingName bool + TypicalSearch bool + type Payload struct + Response *Response + type Response struct + AbnList *ResponseABNList + BusinessEntity *BusinessEntity + BusinessEntity200506 *BusinessEntity + BusinessEntity200709 *BusinessEntity + BusinessEntity201205 *BusinessEntity + BusinessEntity201408 *BusinessEntity + DateRegisterLastUpdated abnDate + DateTimeRetrieved time.Time + Exception *ResponseException + SearchResultsList *ResponseSearchResultsList + UsageStatement string + type ResponseABNList struct + Abn []string + NumberOfRecords int32 + type ResponseException struct + ExceptionCode string + ExceptionDescription string + type ResponseSearchResultsList struct + ExceedsMaximum string + NumberOfRecords int32 + SearchResultsRecord []*SearchResultsRecord + type SearchResultName struct + FullName string + IsCurrentIndicator string + OrganisationName string + Score int32 + type SearchResultsRecord struct + ABN ABN + BusinessName *SearchResultName + LegalName *SearchResultName + MainBusinessPhysicalAddress *MainBusinessPhysicalAddress + MainName *SearchResultName + MainTradingName *SearchResultName + OtherTradingName *SearchResultName + func (r *SearchResultsRecord) IsCurrentIndicator() string + func (r *SearchResultsRecord) Name() string + func (r *SearchResultsRecord) Score() int32 + type State struct + ShortTitle string + Title string + func FindState(shortTitle string) (*State, error) + func (s *State) IsValid() (bool, error) v0.3.0-rc5 Jan 20, 2020 v0.3.0-rc1 Jan 20, 2020