Documentation ¶
Index ¶
- Constants
- func CreateNewContact(contact *models.Contact) (*models.Contact, error)
- func CreateNewWebhook(webhook *models.Webhook) (*models.Webhook, error)
- func GetAccount(accountId string) (*models.Account, error)
- func GetAccountType(accountTypeId string) (*models.AccountType, error)
- func GetAccountTypes() (*models.AccountTypesResponse, error)
- func GetAccounts() (*models.AccountsResponse, error)
- func GetCashTransactions() (*models.CashTransactionsResponse, error)
- func GetContact(contactId string) (*models.Contact, error)
- func GetContacts() (*models.ContactsResponse, error)
- func GetLastWebhook(accountId string) (*models.Webhook, error)
- func GetWebhook(webhookId string) (*models.Webhook, error)
- func GetWebhookPayload(r *http.Request, secret string) (*models.WebhookPayload, error)
- func Init(sandbox bool, login string, password string)
- func UpdateWebhook(webhook *models.Webhook) (*models.Webhook, error)
- func UploadDocument(file multipart.File, fileHeader multipart.FileHeader, contactId string, ...) (*models.DocumentResponse, error)
Constants ¶
View Source
const ( Version = "1.0.17" SandboxAPIPrefix = "https://sandbox.primetrust.com/v2" ProductionAPIPrefix = "https://api.primetrust.com/v2" )
Variables ¶
This section is empty.
Functions ¶
func GetAccountType ¶
func GetAccountType(accountTypeId string) (*models.AccountType, error)
func GetAccountTypes ¶
func GetAccountTypes() (*models.AccountTypesResponse, error)
func GetAccounts ¶
func GetAccounts() (*models.AccountsResponse, error)
func GetCashTransactions ¶
func GetCashTransactions() (*models.CashTransactionsResponse, error)
func GetContacts ¶
func GetContacts() (*models.ContactsResponse, error)
func GetWebhookPayload ¶ added in v1.0.5
func UploadDocument ¶
func UploadDocument(file multipart.File, fileHeader multipart.FileHeader, contactId string, label string, description string) (*models.DocumentResponse, error)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.