Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ContactTypePrivate is a private customer. ContactTypePrivate ContactType = "P" // ContactTypeCompany is a commercial customer/company. ContactTypeCompany ContactType = "C" // ContactRelationClient is a client. ContactRelationClient ContactRelation = "CL" // ContactRelationCreditor is a creditor. ContactRelationCreditor ContactRelation = "CR" // ContactGenderFemale ... ContactGenderFemale ContactGender = "F" // ContactGenderMale ... ContactGenderMale ContactGender = "M" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Country string `json:"country,omitempty"` Street string `json:"street,omitempty"` Street2 string `json:"street2,omitempty"` StreetNo string `json:"street_no,omitempty"` Postcode string `json:"postcode,omitempty"` City string `json:"city,omitempty"` }
Address is the main contact address.
type AuthBundle ¶
type AuthBundle struct { TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` AccessToken string `json:"access_token"` }
AuthBundle stores all auth related data.
type Client ¶
type Client struct { RestyClient *resty.Client Credentials Credentials AuthBundle AuthBundle }
Client stores all connection related information and acts as the gateway.
func (*Client) CreateContact ¶
CreateContact creates a new contact
type Contact ¶
type Contact struct { Gender ContactGender `json:"gender"` Type ContactType `json:"type"` Relation []ContactRelation `json:"relation"` Email string `json:"email"` Name string `json:"name"` MainAddress Address `json:"main_address"` }
Contact is the contact entity.
type ContactType ¶
type ContactType string
ContactType is either a commercial or private customer type.
Click to show internal directories.
Click to hide internal directories.