Documentation
¶
Index ¶
- func OptionDebug(b bool) func(*VismaSign)
- func OptionHTTPClient(client httpClient) func(*VismaSign)
- type AddFileDocumentResponse
- type AuthenticationMethod
- type CategoriesResponse
- type Category
- type CategoryRequest
- type CreateCategoryResponse
- type CreateDocumentRequest
- type CreateDocumentResponse
- type CreateInvitationRequest
- type Creator
- type Document
- type File
- type GetAuthenticationMethodsResponse
- type GetInviteeGroupsResponse
- type Invitation
- type InvitationMessages
- type InvitationRequest
- type InviteeGroup
- type Inviter
- type Option
- type Order
- type Permissions
- type SearchDocumentCriteria
- type SearchDocumentResponse
- type ValidationError
- type VismaError
- type VismaSign
- func (v VismaSign) AddFileDocument(documentID string, fileReader io.Reader, filename string) (*AddFileDocumentResponse, error)
- func (v VismaSign) CancelDocument(documentID string) error
- func (v VismaSign) CreateCategory(request CategoryRequest) (*CreateCategoryResponse, error)
- func (v VismaSign) CreateDocument(req CreateDocumentRequest) (*CreateDocumentResponse, error)
- func (v VismaSign) CreateInvitations(documentID string, invitations []InvitationRequest) ([]Invitation, error)
- func (v *VismaSign) Debug() bool
- func (v *VismaSign) Debugln(t ...interface{})
- func (v VismaSign) DeleteCategory(categoryID string) error
- func (v VismaSign) DeleteDocument(documentID string) error
- func (v VismaSign) GetAuthenticationMethods() (*GetAuthenticationMethodsResponse, error)
- func (v VismaSign) GetCategories() (*CategoriesResponse, error)
- func (v VismaSign) GetDocument(documentID string) (*Document, error)
- func (v VismaSign) GetDocumentFile(documentID string) (io.Reader, error)
- func (v VismaSign) RemindAll(documentId string) error
- func (v VismaSign) RemindOneInvitee(invitationID string) error
- func (v VismaSign) SearchDocument(criteria SearchDocumentCriteria) (*SearchDocumentResponse, error)
- func (v VismaSign) UpdateCategory(categoryID string, request CategoryRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptionDebug ¶
func OptionHTTPClient ¶
func OptionHTTPClient(client httpClient) func(*VismaSign)
Types ¶
type AddFileDocumentResponse ¶
type AddFileDocumentResponse struct {
FileID string `json:"uuid"`
}
type AuthenticationMethod ¶
type CategoriesResponse ¶
type CategoriesResponse struct {
Categories []Category `json:"categories"`
}
type Category ¶
type Category struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Description string `json:"description"`
Permissions Permissions `json:"permissions"`
}
type CategoryRequest ¶
type CreateCategoryResponse ¶
type CreateCategoryResponse struct {
ID string
}
type CreateDocumentRequest ¶
type CreateDocumentResponse ¶
type CreateDocumentResponse struct {
DocumentID string
}
type CreateInvitationRequest ¶
type CreateInvitationRequest struct {
// contains filtered or unexported fields
}
func (*CreateInvitationRequest) Add ¶
func (r *CreateInvitationRequest) Add(i InvitationRequest) *CreateInvitationRequest
type Document ¶
type Document struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Status string `json:"status"`
CreatedOn string `json:"created_on"`
Category string `json:"category_uuid"`
InvitationsValidUntil string `json:"invitations_valid_until"`
Files []File `json:"files"`
Invitations []Invitation `json:"invitations"`
CreatedBy Creator `json:"created_by"`
IsOwner bool `json:"is_owner"`
}
type GetAuthenticationMethodsResponse ¶
type GetAuthenticationMethodsResponse struct {
Methods []AuthenticationMethod `json:"methods"`
}
type GetInviteeGroupsResponse ¶
type GetInviteeGroupsResponse struct {
InviteeGroups []InviteeGroup `json:"invitee_groups"`
}
type Invitation ¶
type InvitationMessages ¶
type InvitationMessages struct {
SendInvitationEmail bool `json:"send_invitation_email,omitempty"`
InvitationEmailMessage string `json:"invitation_email_message,omitempty"`
SendInvitationSms bool `json:"send_invitation_sms,omitempty"`
CustomSms string `json:"custom_sms,omitempty"`
SeparateInviteeParts bool `json:"separate_invite_parts,omitempty"`
SendInviteeAllCollectedEmail bool `json:"send_invitee_all_collected_email,omitempty"`
SendInviterOneCollectedEmails bool `json:"send_inviter_one_collected_emails,omitempty"`
AttachmentAllowed bool `json:"attachment_allowed,omitempty"`
}
type InvitationRequest ¶
type InvitationRequest struct {
Email string `json:"email,omitempty"`
IdentifierType string `json:"identifier_type,omitempty"`
Identifier string `json:"identifier,omitempty"`
Sms string `json:"sms,omitempty"`
Name string `json:"name,omitempty"`
SignAsOrganization bool `json:"sign_as_organization,omitempty"`
Language string `json:"language,omitempty"`
Messages *InvitationMessages `json:"messages,omitempty"`
Inviter *Inviter `json:"inviter,omitempty"`
Order *Order `json:"order,omitempty"`
}
type InviteeGroup ¶
type Permissions ¶
type SearchDocumentCriteria ¶
type SearchDocumentCriteria interface {
Category(string) SearchDocumentCriteria
Name(string) SearchDocumentCriteria
UUID(string) SearchDocumentCriteria
DateFrom(string) SearchDocumentCriteria
DateTo(string) SearchDocumentCriteria
Status(string) SearchDocumentCriteria
Participant(string) SearchDocumentCriteria
SortBy(string) SearchDocumentCriteria
SortOrder(string) SearchDocumentCriteria
Offset(int) SearchDocumentCriteria
// contains filtered or unexported methods
}
func NewSearchDocumentCriteria ¶
func NewSearchDocumentCriteria() SearchDocumentCriteria
type SearchDocumentResponse ¶
type ValidationError ¶
type VismaError ¶
type VismaError struct {
Title string `json:"error"`
ValidationErrors []ValidationError `json:"validation_errors"`
}
func (VismaError) Error ¶
func (e VismaError) Error() string
type VismaSign ¶
type VismaSign struct {
// contains filtered or unexported fields
}
func (VismaSign) AddFileDocument ¶
func (VismaSign) CancelDocument ¶
func (VismaSign) CreateCategory ¶
func (v VismaSign) CreateCategory(request CategoryRequest) (*CreateCategoryResponse, error)
func (VismaSign) CreateDocument ¶
func (v VismaSign) CreateDocument(req CreateDocumentRequest) (*CreateDocumentResponse, error)
func (VismaSign) CreateInvitations ¶
func (v VismaSign) CreateInvitations(documentID string, invitations []InvitationRequest) ([]Invitation, error)
func (VismaSign) DeleteCategory ¶
func (VismaSign) DeleteDocument ¶
func (VismaSign) GetAuthenticationMethods ¶
func (v VismaSign) GetAuthenticationMethods() (*GetAuthenticationMethodsResponse, error)
func (VismaSign) GetCategories ¶
func (v VismaSign) GetCategories() (*CategoriesResponse, error)
func (VismaSign) GetDocumentFile ¶
func (VismaSign) RemindOneInvitee ¶
func (VismaSign) SearchDocument ¶
func (v VismaSign) SearchDocument(criteria SearchDocumentCriteria) (*SearchDocumentResponse, error)
func (VismaSign) UpdateCategory ¶
func (v VismaSign) UpdateCategory(categoryID string, request CategoryRequest) error
Click to show internal directories.
Click to hide internal directories.