Documentation
¶
Index ¶
- Variables
- type API
- func (a *API) CreateBusinessProfile(r BusinessProfileRequest) (*Business, error)
- func (a *API) CreatePersonalProfile(r PersonalProfileRequest) (*Person, error)
- func (a *API) CreateProfile(r interface{}) (*profile, error)
- func (a *API) GetBusiness(id int) (*Business, error)
- func (a *API) GetPerson(id int) (*Person, error)
- func (a *API) GetProfile(id int) (*profile, error)
- func (a *API) PayInMethods(id int) (*PayInMethods, error)
- func (a *API) Profiles() ([]profile, error)
- func (a *API) Quote(r quoteRequest) (*QuoteResponse, error)
- func (a *API) QuoteByID(id int) (*QuoteResponse, error)
- func (a *API) TemoraryQuote(source, target string, targetAmount, sourceAmount float64) (*QuoteResponse, error)
- func (a *API) UpdateBusinessProfile(r BusinessProfileRequest) (*Business, error)
- func (a *API) UpdatePersonalProfile(r PersonalProfileRequest) (*Person, error)
- func (a *API) UpdateProfile(r interface{}) (*profile, error)
- func (a *API) VerificationDocument(p *Person, t DocumentType, id string, issued time.Time, country string, ...) error
- type APIError
- type APIOption
- type Business
- type BusinessProfileRequest
- type CompanyRole
- type CompanyType
- type DocumentType
- type Language
- type PayInMethods
- type Person
- type PersonalProfileRequest
- type QuoteRequestType
- type QuoteResponse
- type ReqOption
- type TwDate
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AmericanEnglish Language = "en_US" BritishEnglish = "en" Dutch = "nl" French = "fr" German = "de" Hungarian = "hu" Italian = "it" Japanese = "ja" Korean = "ko" Polish = "po" Portugese = "pt" Romanian = "ro" Russian = "ru" Spanish = "es" )
View Source
var ( DriversLicence DocumentType = "DRIVERS_LICENSE" IdentityCard = "IDENTITY_CARD" GreenCard = "GREEN_CARD" MyNumber = "MY_NUMBER" Passport = "PASSPORT" Other = "OTHER" )
View Source
var NoExpiry time.Time
View Source
var None float64 = 0.0
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) CreateBusinessProfile ¶
func (a *API) CreateBusinessProfile(r BusinessProfileRequest) (*Business, error)
func (*API) CreatePersonalProfile ¶
func (a *API) CreatePersonalProfile(r PersonalProfileRequest) (*Person, error)
func (*API) CreateProfile ¶
func (*API) GetProfile ¶
func (*API) PayInMethods ¶
func (a *API) PayInMethods(id int) (*PayInMethods, error)
func (*API) Quote ¶
func (a *API) Quote(r quoteRequest) (*QuoteResponse, error)
func (*API) TemoraryQuote ¶
func (a *API) TemoraryQuote(source, target string, targetAmount, sourceAmount float64) (*QuoteResponse, error)
func (*API) UpdateBusinessProfile ¶
func (a *API) UpdateBusinessProfile(r BusinessProfileRequest) (*Business, error)
func (*API) UpdatePersonalProfile ¶
func (a *API) UpdatePersonalProfile(r PersonalProfileRequest) (*Person, error)
func (*API) UpdateProfile ¶
type APIError ¶
type Business ¶
type Business struct {
ID int `json:"id"`
Details struct {
Name string `json:"name"`
RegistrationNumber string `json:"registrationNumber"`
ACN string `json:"acn,omitempty"`
ABN string `json:"abn,omitempty"`
ARBN string `json:"arbn,omitempty"`
CompanyType CompanyType `json:"companyType"`
CompanyRole CompanyRole `json:"companyRole"`
Description string `json:"description"`
Webpage string `json:"webpage"`
PrimaryAddress int `json:"primaryAddress"`
} `json:"details"`
}
type BusinessProfileRequest ¶
type BusinessProfileRequest struct {
Name string `json:"name"`
RegistrationNumber string `json:"registrationNumber"`
ACN string `json:"acn,omitempty"`
ABN string `json:"abn,omitempty"`
ARBN string `json:"arbn,omitempty"`
CompanyType CompanyType `json:"companyType"`
CompanyRole CompanyRole `json:"companyRole"`
Description string `json:"descriptionOfBusiness"`
Webpage string `json:"webpage"`
}
type CompanyRole ¶
type CompanyRole string
var ( Owner CompanyRole = "OWNER" Director CompanyRole = "DIRECTOR" OtherRole CompanyRole = "OTHER" )
type CompanyType ¶
type CompanyType string
var ( Limited CompanyType = "LIMITED" Partnership CompanyType = "PARTNETSHIP" SoleTrader CompanyType = "SOLE_TRADER" LimitedByGuarantee CompanyType = "LIMITED_BY_GUARANTEE" LimitedLiabilityCompany CompanyType = "LIMITED_LIABILITY_COMPANY" ForProfitCorporation CompanyType = "FOR_PROFIT_CORPORATION" NonProfitCorporation CompanyType = "NON_PROFIT_COROPORATION" LimitedPartnership CompanyType = "LIMITED_PARTNERSHIP" LimitedLiabilityPartnership CompanyType = "LIMITED_LIABILITY_PARTNERSHIP" GeneralPartnership CompanyType = "GENERAL_PARTNERSHIP" SoleProprietorship CompanyType = "SOLE_PROPRIETORSHIP" PrivateLimitedCompany CompanyType = "PRIVATE_LIMITED_COMPANY" PublicLimitedCompany CompanyType = "PUBLIC_LIMITED_COMPANY" Trust CompanyType = "TRUST" OtherType CompanyType = "OTHER" )
type DocumentType ¶
type DocumentType string
type PayInMethods ¶
type Person ¶
type Person struct {
ID int `json:"id"`
Details struct {
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
DateOfBirth time.Time `json:"dateOfBirth"`
PhoneNumber string `json:"phoneNumber"`
Avatar string `json:"avatar"`
Occupation string `json:"occupation"`
PrimaryAddress int `json:"primaryAddress"`
} `json:"details"`
}
type PersonalProfileRequest ¶
type QuoteRequestType ¶
type QuoteRequestType string
var ( BalancePayout QuoteRequestType = "BALANCE_PAYOUT" BalanceConversion QuoteRequestType = "BALANCE_CONVERSION" )
type QuoteResponse ¶
type QuoteResponse struct {
Profile int `json:"profile"`
ID int `json:"id"`
Source string `json:"source"`
Target string `json:"target"`
RateType string `json:"rateType"`
TargetAmount float64 `json:"targetAmount,omitempty"`
SourceAmount float64 `json:"sourceAmount,omitempty"`
Type QuoteRequestType `json:"type"`
Rate float64 `json:"rate"`
Created time.Time `json:"createdTime"`
UserID int `json:"createdByUserId"`
DeliveryEstimate time.Time `json:"deliveryEstimate"`
Fee float64 `json:"fee"`
AllowedProfileTypes []string `json:"allowedProfileTypes"`
GuaranteedTargetAmount bool `json:"guaranteedTargetAmount,omitempty"`
OfSourceAmount bool `json:"ofSourceAmount,omitempty"`
}
type ReqOption ¶
func WithReqLanguage ¶
Click to show internal directories.
Click to hide internal directories.