Documentation
¶
Index ¶
- type Address
- type Addresses
- type Client
- func (c *Client) CreateContact(contact *Contact) (*CreateContactResponse, error)
- func (c *Client) GetContact(contactID string) (*Contact, error)
- func (c *Client) LookupContacts(filters []Filter, pagination Pagination) (*LookupContactsResponse, error)
- func (c *Client) UpdateContact(contact *Contact) (*CreateContactResponse, error)
- type Company
- type Contact
- type ContactPersons
- type CreateContactResponse
- type Customer
- type EmailAddresses
- type Filter
- type LookupContactsResponse
- type Pagination
- type Person
- type PhoneNumbers
- type Roles
- type Sort
- type Vendor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateContact ¶
func (c *Client) CreateContact(contact *Contact) (*CreateContactResponse, error)
CreateContact creates a new contact (person or company)
func (*Client) GetContact ¶
GetContact returns contact object by ContactID
func (*Client) LookupContacts ¶
func (c *Client) LookupContacts(filters []Filter, pagination Pagination) (*LookupContactsResponse, error)
func (*Client) UpdateContact ¶
func (c *Client) UpdateContact(contact *Contact) (*CreateContactResponse, error)
UpdateContact creates a new contact (person or company)
type Company ¶
type Company struct {
Name string `json:"name"`
TaxNumber *string `json:"taxNumber"`
VatRegistrationID *string `json:"vatRegistrationId"`
AllowTaxFreeInvoices bool `json:"allowTaxFreeInvoices"`
ContactPersons []ContactPersons `json:"contactPersons"`
}
type Contact ¶
type Contact struct {
ID *string `json:"id"`
OrganizationID *string `json:"organizationId"`
Version int `json:"version"`
Roles Roles `json:"roles"`
Company *Company `json:"company"`
Person *Person `json:"person"`
Addresses *Addresses `json:"addresses"`
EmailAddresses *EmailAddresses `json:"emailAddresses"`
PhoneNumbers *PhoneNumbers `json:"phoneNumbers"`
Note *string `json:"note"`
Archived bool `json:"archived"`
}
type ContactPersons ¶
type CreateContactResponse ¶
type EmailAddresses ¶
type LookupContactsResponse ¶
type LookupContactsResponse struct {
Content []Contact `json:"content"`
First bool `json:"first"`
Last bool `json:"last"`
Number int `json:"number"`
NumberOfElements int `json:"numberOfElements"`
Size int `json:"size"`
Sort []Sort `json:"sort"`
TotalElements int `json:"totalElements"`
TotalPages int `json:"totalPages"`
}
type Pagination ¶
type Pagination struct {
// contains filtered or unexported fields
}
type PhoneNumbers ¶
Click to show internal directories.
Click to hide internal directories.
