Documentation
¶
Index ¶
- func Bool(value bool) *bool
- func ScriveErrorToError(e *ScriveError) error
- func String(value string) *string
- func UInt(value uint64) *uint64
- func UInt32(value uint32) *uint32
- type AccessRole
- type AccessRoleActions
- type AccessRoleSource
- type AccessRoleTarget
- type Address
- type Attachment
- type AttachmentListFilter
- type AuthenticationMethodToSign
- type AuthenticationMethodToView
- type AuthenticationMethodToViewArchived
- type AuthorAttachment
- type AutoReminderParams
- type CancelDocumentParams
- type ChangeSignatoryEmailAndMobileParams
- type Client
- func (c *Client) CancelDocument(p CancelDocumentParams) (*Document, *ScriveError)
- func (c *Client) ChangeSignatoryEmailAndMobile(p ChangeSignatoryEmailAndMobileParams) (*Document, *ScriveError)
- func (c *Client) CloneDocument(p CloneDocumentParams) (*Document, *ScriveError)
- func (c *Client) Confirm2FA(totp string) (*Confirm2FAResp, *ScriveError)
- func (c *Client) CreateAttachment(p CreateAttachmentParams) *ScriveError
- func (c *Client) DeleteAttachments(attachmentIDs []string) *ScriveError
- func (c *Client) DeleteDocument(p DeleteDocumentParams) (*Document, *ScriveError)
- func (c *Client) DeleteDocuments(documentIDs []string) (*DeleteDocumentsResponse, *ScriveError)
- func (c *Client) DeleteUser(email string) *ScriveError
- func (c *Client) Disable2FA() (*Disable2FAResp, *ScriveError)
- func (c *Client) DownloadAttachment(attachmentID string) ([]byte, string, *ScriveError)
- func (c *Client) ForwardDocument(p ForwardDocumentParams) *ScriveError
- func (c *Client) GetAccessRole(roleID string) (*AccessRole, *ScriveError)
- func (c *Client) GetDataRetentionPolicy() (*DataRetentionPolicy, *ScriveError)
- func (c *Client) GetDocument(documentID string) (*Document, *ScriveError)
- func (c *Client) GetDocumentByShortID(documentID string) (*Document, *ScriveError)
- func (c *Client) GetDocumentHistory(documentID string) (*DocumentHistory, *ScriveError)
- func (c *Client) GetDocumentList(p GetDocumentListParams) (*GetDocumentsListResponse, *ScriveError)
- func (c *Client) GetMainFile(documentID string) (*FileResponse, *ScriveError)
- func (c *Client) GetMainFileBytes(documentID string) ([]byte, *ScriveError)
- func (c *Client) GetRelatedFile(documentID, fileID string) ([]byte, string, *ScriveError)
- func (c *Client) GetSignLinkQR(documentID, signatoryID string) ([]byte, string, *ScriveError)
- func (c *Client) GetTokenForPersonalCredentials(userID string, minutes *uint64) (*PersonalCredentialsToken, *ScriveError)
- func (c *Client) GetUserAccessRoles(userID string) (*[]*AccessRole, *ScriveError)
- func (c *Client) IsUserDeletable() (*IsUserDeletableResp, *ScriveError)
- func (c *Client) ListAttachments(p ListAttachmentsParams) (*[]*Attachment, *ScriveError)
- func (c *Client) LoginAndGetSession(p OAuthAuthorization) (*Session, *ScriveError)
- func (c *Client) NewDocument(p NewDocumentParams) (*Document, *ScriveError)
- func (c *Client) NewDocumentFromTemplate(p NewDocumentFromTemplateParams) (*Document, *ScriveError)
- func (c *Client) ProlongDocument(p ProlongDocumentParams) (*Document, *ScriveError)
- func (c *Client) RemindSignatories(p RemindSignatoriesParams) *ScriveError
- func (c *Client) RemovePages(p RemovePagesParams) (*Document, *ScriveError)
- func (c *Client) RestartDocument(p RestartDocumentParams) (*Document, *ScriveError)
- func (c *Client) SetAttachments(p SetAttachmentsParams) (*Document, *ScriveError)
- func (c *Client) SetAttachmentsSharing(attachmentIDs []string, shared bool) *ScriveError
- func (c *Client) SetDataRetentionPolicy(p DataRetentionPolicy) *ScriveError
- func (c *Client) SetDocumentAutoReminder(p AutoReminderParams) (*Document, *ScriveError)
- func (c *Client) SetSignatoryAuthenticationToSign(p SignatoryAuthenticationToSignParams) (*Document, *ScriveError)
- func (c *Client) SetSignatoryAuthenticationToView(p SignatoryAuthenticationToViewParams) (*Document, *ScriveError)
- func (c *Client) SetTemplatesSharing(p ShareTemplatesParams) *ScriveError
- func (c *Client) Setup2FA() (*Setup2FAResponse, *ScriveError)
- func (c *Client) Start(p StartParams) (*Document, *ScriveError)
- func (c *Client) TrashDocument(p TrashDocumentParams) (*Document, *ScriveError)
- func (c *Client) TrashDocuments(documentIDs []string) (*TrashDocumentsResponse, *ScriveError)
- func (c *Client) TriggerAPICallback(p TriggerAPICallbackParams) *ScriveError
- func (c *Client) UpdateDocument(p UpdateDocumentParams) (*Document, *ScriveError)
- type CloneDocumentParams
- type Config
- type Confirm2FAResp
- type ConfirmationDeliveryMethod
- type ConfirmationEmailDeliveryStatus
- type ConsentModule
- type ConsentModuleDetailedDescription
- type ConsentModuleQuestion
- type ContactDetails
- type CreateAttachmentParams
- type DataRetentionPolicy
- type DeleteDocumentParams
- type DeleteDocumentsResponse
- type DeliveryMethod
- type Disable2FAResp
- type DisplayOptions
- type Document
- type DocumentHistory
- type EmailDeliveryStatus
- type ErrorType
- type File
- type FileResponse
- type ForwardDocumentParams
- type GetDocumentListParams
- type GetDocumentsListResponse
- type HighlightedPage
- type HistoryItem
- type HistoryStatus
- type IsUserDeletableResp
- type Lang
- type ListAttachmentsParams
- type ListSortKey
- type ListSortOrder
- type ListSortParam
- type LoginToken
- type MobileDeliveryStatus
- type NewDocumentFromTemplateParams
- type NewDocumentParams
- type NotificationDeliveryMethod
- type OAuthAuthorization
- type PAC
- type PersonalCredentialsToken
- type ProlongDocumentParams
- type RemindSignatoriesParams
- type RemovePagesParams
- type RequestMethod
- type RestartDocumentParams
- type ScriveError
- type Session
- type SetAttachment
- type SetAttachmentsParams
- type Setup2FAResponse
- type ShareTemplatesParams
- type Signatory
- type SignatoryAuthenticationToSignParams
- type SignatoryAuthenticationToViewParams
- type SignatoryField
- type SignatoryFieldCustomValidation
- type SignatoryFieldPlacement
- type SignatoryFieldPlacementAnchor
- type SignatoryFieldPlacementTip
- type SignatoryFieldType
- type SignatoryRole
- type StartParams
- type Status
- type Tag
- type TrashDocumentParams
- type TrashDocumentsResponse
- type TriggerAPICallbackParams
- type UpdateDocumentParams
- type UserGroup
- type UserGroupChild
- type UserGroupSettings
- type Viewer
- type ViewerRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScriveErrorToError ¶
func ScriveErrorToError(e *ScriveError) error
Types ¶
type AccessRole ¶
type AccessRole struct {
ID *string `json:"id"`
IsGenerated bool `json:"is_generated"`
RoleType string `json:"role_type"`
Source AccessRoleSource `json:"source"`
AllowedActions AccessRoleActions `json:"allowed_actions"`
}
type AccessRoleActions ¶
type AccessRoleActions struct {
Document []string `json:"document"`
FolderPolicy []string `json:"folder_policy"`
User []string `json:"user"`
UserGroup []string `json:"user_group"`
UserGroupPolicy []string `json:"user_group_policy"`
UserPersonalToken []string `json:"user_personal_token"`
UserPolicy []string `json:"user_policy"`
}
type AccessRoleSource ¶
type AccessRoleTarget ¶
type Attachment ¶
type AttachmentListFilter ¶
type AuthenticationMethodToSign ¶
type AuthenticationMethodToSign string
const ( AuthenticationMethodToSignStandard AuthenticationMethodToSign = standard AuthenticationMethodToSignSmsPin AuthenticationMethodToSign = smsPin AuthenticationMethodToSignSEBankID AuthenticationMethodToSign = seBankID AuthenticationMethodToSignNOBankID AuthenticationMethodToSign = noBankID AuthenticationMethodToSignDKNemID AuthenticationMethodToSign = dkNemID AuthenticationMethodToSignDKMitID AuthenticationMethodToSign = dkMitID AuthenticationMethodToSignFITupas AuthenticationMethodToSign = fiTupas AuthenticationMethodToSignVerimi AuthenticationMethodToSign = verimiQes AuthenticationMethodToSignSmartID AuthenticationMethodToSign = smartIDQes )
func (AuthenticationMethodToSign) Ptr ¶
func (s AuthenticationMethodToSign) Ptr() *AuthenticationMethodToSign
type AuthenticationMethodToView ¶
type AuthenticationMethodToView string
const ( AuthenticationMethodToViewStandard AuthenticationMethodToView = standard AuthenticationMethodToViewSmsPin AuthenticationMethodToView = smsPin AuthenticationMethodToViewSEBankID AuthenticationMethodToView = seBankID AuthenticationMethodToViewNOBankID AuthenticationMethodToView = noBankID AuthenticationMethodToViewDKNemID AuthenticationMethodToView = dkNemID AuthenticationMethodToViewDKMitID AuthenticationMethodToView = dkMitID AuthenticationMethodToViewFITupas AuthenticationMethodToView = fiTupas AuthenticationMethodToViewVerimi AuthenticationMethodToView = verimi )
func (AuthenticationMethodToView) Ptr ¶
func (s AuthenticationMethodToView) Ptr() *AuthenticationMethodToView
type AuthenticationMethodToViewArchived ¶
type AuthenticationMethodToViewArchived string
const ( AuthenticationMethodToViewArchivedStandard AuthenticationMethodToViewArchived = standard AuthenticationMethodToViewArchivedSmsPin AuthenticationMethodToViewArchived = smsPin AuthenticationMethodToViewArchivedSEBankID AuthenticationMethodToViewArchived = seBankID AuthenticationMethodToViewArchivedNOBankID AuthenticationMethodToViewArchived = noBankID AuthenticationMethodToViewArchivedDKNemID AuthenticationMethodToViewArchived = dkNemID AuthenticationMethodToViewArchivedDKMitID AuthenticationMethodToViewArchived = dkMitID AuthenticationMethodToViewArchivedFITupas AuthenticationMethodToViewArchived = fiTupas AuthenticationMethodToViewArchivedVerimi AuthenticationMethodToViewArchived = verimi )
func (AuthenticationMethodToViewArchived) Ptr ¶
func (s AuthenticationMethodToViewArchived) Ptr() *AuthenticationMethodToViewArchived
type AuthorAttachment ¶
type AutoReminderParams ¶
type CancelDocumentParams ¶
type Client ¶
type Client struct {
Debug bool
// contains filtered or unexported fields
}
func (*Client) CancelDocument ¶
func (c *Client) CancelDocument(p CancelDocumentParams) (*Document, *ScriveError)
func (*Client) ChangeSignatoryEmailAndMobile ¶
func (c *Client) ChangeSignatoryEmailAndMobile(p ChangeSignatoryEmailAndMobileParams) (*Document, *ScriveError)
func (*Client) CloneDocument ¶
func (c *Client) CloneDocument(p CloneDocumentParams) (*Document, *ScriveError)
func (*Client) Confirm2FA ¶
func (c *Client) Confirm2FA(totp string) (*Confirm2FAResp, *ScriveError)
func (*Client) CreateAttachment ¶
func (c *Client) CreateAttachment(p CreateAttachmentParams) *ScriveError
func (*Client) DeleteAttachments ¶
func (c *Client) DeleteAttachments(attachmentIDs []string) *ScriveError
func (*Client) DeleteDocument ¶
func (c *Client) DeleteDocument(p DeleteDocumentParams) (*Document, *ScriveError)
func (*Client) DeleteDocuments ¶
func (c *Client) DeleteDocuments(documentIDs []string) (*DeleteDocumentsResponse, *ScriveError)
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(email string) *ScriveError
func (*Client) Disable2FA ¶
func (c *Client) Disable2FA() (*Disable2FAResp, *ScriveError)
func (*Client) DownloadAttachment ¶
func (c *Client) DownloadAttachment(attachmentID string) ([]byte, string, *ScriveError)
func (*Client) ForwardDocument ¶
func (c *Client) ForwardDocument(p ForwardDocumentParams) *ScriveError
func (*Client) GetAccessRole ¶
func (c *Client) GetAccessRole(roleID string) (*AccessRole, *ScriveError)
func (*Client) GetDataRetentionPolicy ¶
func (c *Client) GetDataRetentionPolicy() (*DataRetentionPolicy, *ScriveError)
func (*Client) GetDocument ¶
func (c *Client) GetDocument(documentID string) (*Document, *ScriveError)
func (*Client) GetDocumentByShortID ¶
func (c *Client) GetDocumentByShortID(documentID string) (*Document, *ScriveError)
func (*Client) GetDocumentHistory ¶
func (c *Client) GetDocumentHistory(documentID string) (*DocumentHistory, *ScriveError)
func (*Client) GetDocumentList ¶
func (c *Client) GetDocumentList(p GetDocumentListParams) (*GetDocumentsListResponse, *ScriveError)
func (*Client) GetMainFile ¶
func (c *Client) GetMainFile(documentID string) (*FileResponse, *ScriveError)
func (*Client) GetMainFileBytes ¶
func (c *Client) GetMainFileBytes(documentID string) ([]byte, *ScriveError)
func (*Client) GetRelatedFile ¶
func (c *Client) GetRelatedFile(documentID, fileID string) ([]byte, string, *ScriveError)
func (*Client) GetSignLinkQR ¶
func (c *Client) GetSignLinkQR(documentID, signatoryID string) ([]byte, string, *ScriveError)
func (*Client) GetTokenForPersonalCredentials ¶
func (c *Client) GetTokenForPersonalCredentials(userID string, minutes *uint64) (*PersonalCredentialsToken, *ScriveError)
func (*Client) GetUserAccessRoles ¶
func (c *Client) GetUserAccessRoles(userID string) (*[]*AccessRole, *ScriveError)
func (*Client) IsUserDeletable ¶
func (c *Client) IsUserDeletable() (*IsUserDeletableResp, *ScriveError)
func (*Client) ListAttachments ¶
func (c *Client) ListAttachments(p ListAttachmentsParams) (*[]*Attachment, *ScriveError)
func (*Client) LoginAndGetSession ¶
func (c *Client) LoginAndGetSession(p OAuthAuthorization) (*Session, *ScriveError)
func (*Client) NewDocument ¶
func (c *Client) NewDocument(p NewDocumentParams) (*Document, *ScriveError)
func (*Client) NewDocumentFromTemplate ¶
func (c *Client) NewDocumentFromTemplate(p NewDocumentFromTemplateParams) (*Document, *ScriveError)
func (*Client) ProlongDocument ¶
func (c *Client) ProlongDocument(p ProlongDocumentParams) (*Document, *ScriveError)
func (*Client) RemindSignatories ¶
func (c *Client) RemindSignatories(p RemindSignatoriesParams) *ScriveError
func (*Client) RemovePages ¶
func (c *Client) RemovePages(p RemovePagesParams) (*Document, *ScriveError)
func (*Client) RestartDocument ¶
func (c *Client) RestartDocument(p RestartDocumentParams) (*Document, *ScriveError)
func (*Client) SetAttachments ¶
func (c *Client) SetAttachments(p SetAttachmentsParams) (*Document, *ScriveError)
func (*Client) SetAttachmentsSharing ¶
func (c *Client) SetAttachmentsSharing(attachmentIDs []string, shared bool) *ScriveError
func (*Client) SetDataRetentionPolicy ¶
func (c *Client) SetDataRetentionPolicy(p DataRetentionPolicy) *ScriveError
func (*Client) SetDocumentAutoReminder ¶
func (c *Client) SetDocumentAutoReminder(p AutoReminderParams) (*Document, *ScriveError)
func (*Client) SetSignatoryAuthenticationToSign ¶
func (c *Client) SetSignatoryAuthenticationToSign(p SignatoryAuthenticationToSignParams) (*Document, *ScriveError)
func (*Client) SetSignatoryAuthenticationToView ¶
func (c *Client) SetSignatoryAuthenticationToView(p SignatoryAuthenticationToViewParams) (*Document, *ScriveError)
func (*Client) SetTemplatesSharing ¶
func (c *Client) SetTemplatesSharing(p ShareTemplatesParams) *ScriveError
func (*Client) Setup2FA ¶
func (c *Client) Setup2FA() (*Setup2FAResponse, *ScriveError)
func (*Client) Start ¶
func (c *Client) Start(p StartParams) (*Document, *ScriveError)
func (*Client) TrashDocument ¶
func (c *Client) TrashDocument(p TrashDocumentParams) (*Document, *ScriveError)
func (*Client) TrashDocuments ¶
func (c *Client) TrashDocuments(documentIDs []string) (*TrashDocumentsResponse, *ScriveError)
func (*Client) TriggerAPICallback ¶
func (c *Client) TriggerAPICallback(p TriggerAPICallbackParams) *ScriveError
func (*Client) UpdateDocument ¶
func (c *Client) UpdateDocument(p UpdateDocumentParams) (*Document, *ScriveError)
type CloneDocumentParams ¶
type Confirm2FAResp ¶
type ConfirmationDeliveryMethod ¶
type ConfirmationDeliveryMethod string
const ( ConfirmationDeliveryMethodEmail ConfirmationDeliveryMethod = email ConfirmationDeliveryMethodMobile ConfirmationDeliveryMethod = mobile ConfirmationDeliveryMethodEmailMobile ConfirmationDeliveryMethod = emailMobile ConfirmationDeliveryMethodEmailLink ConfirmationDeliveryMethod = emailLink ConfirmationDeliveryMethodEmailLinkMobile ConfirmationDeliveryMethod = emailLinkMobile ConfirmationDeliveryMethodNone ConfirmationDeliveryMethod = none )
func (ConfirmationDeliveryMethod) Ptr ¶
func (s ConfirmationDeliveryMethod) Ptr() *ConfirmationDeliveryMethod
type ConfirmationEmailDeliveryStatus ¶
type ConfirmationEmailDeliveryStatus string
const ( ConfirmationEmailDeliveryStatusUnknown ConfirmationEmailDeliveryStatus = unknown ConfirmationEmailDeliveryStatusNotDelivered ConfirmationEmailDeliveryStatus = notDelivered ConfirmationEmailDeliveryStatusDelivered ConfirmationEmailDeliveryStatus = delivered ConfirmationEmailDeliveryStatusDeferred ConfirmationEmailDeliveryStatus = deferred )
type ConsentModule ¶
type ConsentModule struct {
Title string `json:"title"`
Questions []*ConsentModuleQuestion `json:"questions"`
}
type ConsentModuleQuestion ¶
type ConsentModuleQuestion struct {
Title string `json:"title"`
PositiveOption string `json:"positive_option"`
NegativeOption string `json:"negative_option"`
Response bool `json:"response"`
DetailedDescription ConsentModuleDetailedDescription `json:"detailed_description"`
}
type ContactDetails ¶
type ContactDetails struct {
InheritedFrom *string `json:"inherited_from"`
Address *Address `json:"address"`
InheritablePreview *ContactDetails `json:"inheritable_preview"`
}
type CreateAttachmentParams ¶
type DataRetentionPolicy ¶
type DataRetentionPolicy struct {
IdleDocTimeoutPreparation *uint64 `json:"idle_doc_timeout_preparation,omitempty"`
IdleDocTimeoutClosed *uint64 `json:"idle_doc_timeout_closed,omitempty"`
IdleDocTimeoutCanceled *uint64 `json:"idle_doc_timeout_canceled,omitempty"`
IdleDocTimeoutTimedout *uint64 `json:"idle_doc_timeout_timedout,omitempty"`
IdleDocTimeoutRejected *uint64 `json:"idle_doc_timeout_rejected,omitempty"`
IdleDocTimeoutError *uint64 `json:"idle_doc_timeout_error,omitempty"`
ImmediateTrash *bool `json:"immediate_trash,omitempty"`
}
type DeleteDocumentParams ¶
type DeleteDocumentsResponse ¶
type DeliveryMethod ¶
type DeliveryMethod string
const ( DeliveryMethodEmail DeliveryMethod = email DeliveryMethodMobile DeliveryMethod = mobile DeliveryMethodEmailMobile DeliveryMethod = emailMobile DeliveryMethodPad DeliveryMethod = pad DeliveryMethodAPI DeliveryMethod = api )
func (DeliveryMethod) Ptr ¶
func (s DeliveryMethod) Ptr() *DeliveryMethod
type Disable2FAResp ¶
type Disable2FAResp struct {
TwofactorAlive bool `json:"twofactor_alive"`
}
type DisplayOptions ¶
type DisplayOptions struct {
ShowHeader *bool `json:"show_header,omitempty"`
ShowPDFDownload *bool `json:"show_pdf_download,omitempty"`
ShowRejectOption *bool `json:"show_reject_option,omitempty"`
AllowRejectReason *bool `json:"allow_reject_reason,omitempty"`
DocumentIsReceipt *bool `json:"document_is_receipt,omitempty"`
ShowArrow *bool `json:"show_arrow,omitempty"`
}
type Document ¶
type Document struct {
ID *string `json:"id,omitempty"`
Title *string `json:"title,omitempty"`
Parties *[]*Signatory `json:"parties,omitempty"`
File *File `json:"file,omitempty"`
SealedFile *File `json:"sealed_file,omitempty"`
AuthorAttachments *[]*AuthorAttachment `json:"author_attachments,omitempty"`
CTime *string `json:"ctime,omitempty"`
MTime *string `json:"mtime,omitempty"`
TimeoutTime *string `json:"timeout_time,omitempty"`
AutoRemindTime *string `json:"auto_remind_time,omitempty"`
Status *Status `json:"status,omitempty"`
DaysToSign *uint32 `json:"days_to_sign,omitempty"`
DaysToRemind *uint32 `json:"days_to_remind,omitempty"`
DisplayOptions *DisplayOptions `json:"display_options,omitempty"`
InvitationMessage *string `json:"invitation_message,omitempty"`
ConfirmationMessage *string `json:"confirmation_message,omitempty"`
Lang *Lang `json:"lang,omitempty"`
APICallbackURL *string `json:"api_callback_url,omitempty"`
ObjectVersion *uint64 `json:"object_version,omitempty"`
AccessToken *string `json:"access_token,omitempty"`
Timezone *string `json:"timezone,omitempty"`
Tags *[]*Tag `json:"tags,omitempty"`
IsTemplate *bool `json:"is_template,omitempty"`
IsSaved *bool `json:"is_saved,omitempty"`
FolderID *string `json:"folder_id,omitempty"`
IsTrashed *bool `json:"is_trashed,omitempty"`
IsDeleted *bool `json:"is_deleted,omitempty"`
Viewer *Viewer `json:"viewer,omitempty"`
TemplateID *string `json:"template_id,omitempty"`
}
type DocumentHistory ¶
type DocumentHistory struct {
Events []*HistoryItem `json:"events"`
}
type EmailDeliveryStatus ¶
type EmailDeliveryStatus string
const ( EmailDeliveryStatusUnknown EmailDeliveryStatus = unknown EmailDeliveryStatusNotDelivered EmailDeliveryStatus = notDelivered EmailDeliveryStatusDelivered EmailDeliveryStatus = delivered EmailDeliveryStatusDeferred EmailDeliveryStatus = deferred )
type ErrorType ¶
type ErrorType = string
const ( ErrorTypeServerError ErrorType = "server_error" ErrorTypeEndpointNotFound ErrorType = "endpoint_not_found" ErrorTypeInvalidAuthorisation ErrorType = "invalid_authorisation" ErrorTypeInsufficientPrivileges ErrorType = "insufficient_privileges" ErrorTypeResourceNotFound ErrorType = "resource_not_found" ErrorTypeDocumentActionForbidden ErrorType = "document_action_forbidden" ErrorTypeRequestParametersMissing ErrorType = "request_parameters_missing" ErrorTypeRequestParametersParseError ErrorType = "request_parameters_parse_error" ErrorTypeRequestParametersInvalid ErrorType = "request_parameters_invalid" ErrorTypeDocumentObjectVersionMismatch ErrorType = "document_object_version_mismatch" ErrorTypeSignatoryStateError ErrorType = "signatory_state_error" ErrorTypeLocal ErrorType = "local_error" )
type FileResponse ¶
type FileResponse struct {
Length int64 // Length of file in bytes, iff reported by server `Content-Length` header. Otherwise -1
Body io.ReadCloser
}
type ForwardDocumentParams ¶
type GetDocumentListParams ¶
type HighlightedPage ¶
type HistoryItem ¶
type HistoryItem struct {
Status HistoryStatus `json:"status"`
Time string `json:"time"`
Text string `json:"text"`
Party string `json:"party"`
}
type HistoryStatus ¶
type HistoryStatus string
const ( HistoryStatusInitiated HistoryStatus = "initiated" HistoryStatusDraft HistoryStatus = "draft" HistoryStatusCancelled HistoryStatus = "cancelled" HistoryStatusRejected HistoryStatus = "rejected" HistoryStatusTimeouted HistoryStatus = "timeouted" HistoryStatusProblem HistoryStatus = "problem" HistoryStatusDeliveryProblem HistoryStatus = "deliveryproblem" HistoryStatusSent HistoryStatus = "sent" HistoryStatusDelivered HistoryStatus = "delivered" HistoryStatusRead HistoryStatus = "read" HistoryStatusOpened HistoryStatus = "opened" HistoryStatusSigned HistoryStatus = "signed" HistoryStatusProlonged HistoryStatus = "prolonged" HistoryStatusSealed HistoryStatus = "sealed" HistoryStatusExtended HistoryStatus = "extended" )
type IsUserDeletableResp ¶
type Lang ¶
type Lang string
const ( LangDA Lang = "da" LangDE Lang = "de" LangEL Lang = "el" LangEN Lang = "en" LangES Lang = "es" LangET Lang = "et" LangFI Lang = "fi" LangFR Lang = "fr" LangIS Lang = "is" LangIT Lang = "it" LangLT Lang = "lt" LangLV Lang = "lv" LangNL Lang = "nl" LangNO Lang = "no" LangPT Lang = "pt" LangSV Lang = "sv" )
type ListAttachmentsParams ¶
type ListAttachmentsParams struct {
Domain *string
Filter []*AttachmentListFilter
Sorting []*ListSortParam
}
type ListSortKey ¶
type ListSortKey string
const ( ListSortTitle ListSortKey = "title" ListSortStatus ListSortKey = "status" ListSortMTime ListSortKey = "mtime" ListSortAuthor ListSortKey = "author" )
type ListSortOrder ¶
type ListSortOrder string
const ( ListSortAscending ListSortOrder = "ascending" ListSortDescending ListSortOrder = "descending" )
type ListSortParam ¶
type ListSortParam struct {
Order ListSortOrder `json:"order"`
SortBy ListSortKey `json:"sort_by"`
}
type LoginToken ¶
type MobileDeliveryStatus ¶
type MobileDeliveryStatus string
const ( MobileDeliveryStatusUnknown MobileDeliveryStatus = unknown MobileDeliveryStatusNotDelivered MobileDeliveryStatus = notDelivered MobileDeliveryStatusDelivered MobileDeliveryStatus = delivered MobileDeliveryStatusDeferred MobileDeliveryStatus = deferred )
type NewDocumentParams ¶
type NotificationDeliveryMethod ¶
type NotificationDeliveryMethod string
const ( NotificationDeliveryMethodEmail NotificationDeliveryMethod = email NotificationDeliveryMethodMobile NotificationDeliveryMethod = mobile NotificationDeliveryMethodEmailMobile NotificationDeliveryMethod = emailMobile NotificationDeliveryMethodEmailLink NotificationDeliveryMethod = emailLink NotificationDeliveryMethodEmailLinkMobile NotificationDeliveryMethod = emailLinkMobile NotificationDeliveryMethodNone NotificationDeliveryMethod = none )
func (NotificationDeliveryMethod) Ptr ¶
func (s NotificationDeliveryMethod) Ptr() *NotificationDeliveryMethod
type OAuthAuthorization ¶
type PAC ¶
type PAC struct {
ClientCredentialsIdentifier string
ClientCredentialsSecret string
TokenCredentialsIdentifier string
TokenCredentialsSecret string
}
PAC represents Personal Access Credentials. Found in Scrive dashboard under "Integration Settings"
type ProlongDocumentParams ¶
type RemindSignatoriesParams ¶
type RemovePagesParams ¶
type RequestMethod ¶
type RequestMethod = string
type RestartDocumentParams ¶
type ScriveError ¶
type SetAttachment ¶
type SetAttachmentsParams ¶
type SetAttachmentsParams struct {
DocumentID string
Attachments []*SetAttachment
Incremental *bool
ObjectVersion *uint64
}
type Setup2FAResponse ¶
type ShareTemplatesParams ¶
type ShareTemplatesParams struct {
}
type Signatory ¶
type Signatory struct {
ID *string `json:"id,omitempty"`
UserID *string `json:"user_id,omitempty"`
IsAuthor *bool `json:"is_author,omitempty"`
IsSignatory *bool `json:"is_signatory,omitempty"`
SignatoryRole *SignatoryRole `json:"signatory_role,omitempty"`
Fields *[]*SignatoryField `json:"fields,omitempty"`
ConsentModule *ConsentModule `json:"consent_module,omitempty"`
SignOrder *uint32 `json:"sign_order,omitempty"`
SignTime *string `json:"sign_time,omitempty,omitempty"`
SeenTime *string `json:"seen_time,omitempty,omitempty"`
ReadInvitationTime *string `json:"read_invitation_time,omitempty"`
RejectedTime *string `json:"rejected_time,omitempty,omitempty"`
RejectionReason *string `json:"rejection_reason,omitempty"`
SignSuccessRedirectURL *string `json:"sign_success_redirect_url,omitempty"`
RejectRedirectURL *string `json:"reject_redirect_url,omitempty"`
EmailDeliveryStatus *EmailDeliveryStatus `json:"email_delivery_status,omitempty"`
MobileDeliveryStatus *MobileDeliveryStatus `json:"mobile_delivery_status,omitempty"`
ConfirmationEmailDeliveryStatus *ConfirmationEmailDeliveryStatus `json:"confirmation_email_delivery_status,omitempty"`
HasAuthenticatedToView *bool `json:"has_authenticated_to_view,omitempty"`
CSV *[]string `json:"csv,omitempty"`
DeliveryMethod *DeliveryMethod `json:"delivery_method,omitempty"`
AuthenticationMethodToView *AuthenticationMethodToView `json:"authentication_method_to_view,omitempty"`
AuthenticationMethodToViewArchived *AuthenticationMethodToViewArchived `json:"authentication_method_to_view_archived,omitempty"`
AuthenticationMethodToSign *AuthenticationMethodToSign `json:"authentication_method_to_sign,omitempty"`
ConfirmationDeliveryMethod *ConfirmationDeliveryMethod `json:"confirmation_delivery_method,omitempty"`
NotificationDeliveryMethod *NotificationDeliveryMethod `json:"notification_delivery_method,omitempty"`
AllowsHighlighting *bool `json:"allows_highlighting,omitempty"`
HidePersonalNumber *bool `json:"hide_personal_number,omitempty"`
CanForward *bool `json:"can_forward,omitempty"`
Attachments *[]*Attachment `json:"attachments,omitempty"`
HighlightedPages *[]*HighlightedPage `json:"highlighted_pages,omitempty"`
APIDeliveryURL *string `json:"api_delivery_url,omitempty"`
}
type SignatoryField ¶
type SignatoryField struct {
Type SignatoryFieldType `json:"type"`
Name *string `json:"name,omitempty"`
IsChecked *bool `json:"is_checked,omitempty"`
Signature *string `json:"signature,omitempty"`
Order *uint32 `json:"order,omitempty"`
Value *string `json:"value,omitempty"`
// values must be equal in length to placements
Values *[]string `json:"values,omitempty"`
IsObligatory *bool `json:"is_obligatory"`
ShouldBeFilledBySender *bool `json:"should_be_filled_by_sender,omitempty"`
EditableBySignatory *bool `json:"editable_by_signatory,omitempty"`
Placements *[]*SignatoryFieldPlacement `json:"placements,omitempty"`
CustomValidation *[]*SignatoryFieldCustomValidation `json:"custom_validation,omitempty"`
}
type SignatoryFieldPlacement ¶
type SignatoryFieldPlacement struct {
XRel float32 `json:"xrel"`
YRel float32 `json:"yrel"`
WRel float32 `json:"wrel"`
HRel float32 `json:"hrel"`
FSRel float32 `json:"fsrel"`
Page uint32 `json:"page"`
Tip *SignatoryFieldPlacementTip `json:"tip"`
Anchors []*SignatoryFieldPlacementAnchor `json:"anchors"`
}
type SignatoryFieldPlacementTip ¶
type SignatoryFieldPlacementTip string
const ( SignatoryFieldPlacementTipLeft SignatoryFieldPlacementTip = "left" SignatoryFieldPlacementTipRight SignatoryFieldPlacementTip = "right" )
type SignatoryFieldType ¶
type SignatoryFieldType string
const ( SignatoryFieldTypeName SignatoryFieldType = "name" SignatoryFieldTypeEmail SignatoryFieldType = "email" SignatoryFieldTypeMobile SignatoryFieldType = "mobile" SignatoryFieldTypeSignature SignatoryFieldType = "signature" SignatoryFieldTypeCompanyName SignatoryFieldType = "company" SignatoryFieldTypeCompanyNumber SignatoryFieldType = "company_number" SignatoryFieldTypePersonalNumber SignatoryFieldType = "personal_number" SignatoryFieldTypeCheckbox SignatoryFieldType = "checkbox" SignatoryFieldTypeRadiogroup SignatoryFieldType = "radiogroup" SignatoryFieldTypeCustomText SignatoryFieldType = "text" )
type SignatoryRole ¶
type SignatoryRole string
const ( SignatoryRoleViewer SignatoryRole = viewer SignatoryRoleSigningParty SignatoryRole = signingParty SignatoryRoleApprover SignatoryRole = approver )
func (SignatoryRole) Ptr ¶
func (s SignatoryRole) Ptr() *SignatoryRole
type StartParams ¶
type TrashDocumentParams ¶
type TrashDocumentsResponse ¶
type UpdateDocumentParams ¶
type UserGroup ¶
type UserGroup struct {
ID string `json:"id"`
ParentID string `json:"parent_id"`
Name string `json:"name"`
Children []*UserGroupChild `json:"children"`
Settings *UserGroupSettings `json:"settings"`
ContactDetails *ContactDetails `json:"contact_details"`
}
type UserGroupChild ¶
type UserGroupSettings ¶
type UserGroupSettings struct {
InheritedFrom *string `json:"inherited_from"`
DataRetentionPolicy *DataRetentionPolicy `json:"data_retention_policy"`
InheritablePreview *UserGroupSettings `json:"inheritable_preview"`
}
type Viewer ¶
type Viewer struct {
Role ViewerRole `json:"role"`
SignatoryID string `json:"signatory_id"`
}
type ViewerRole ¶
type ViewerRole string
const ( ViewerRoleCompanyAdmin ViewerRole = "company_admin" ViewerRoleSignatory ViewerRole = "signatory" )
func (ViewerRole) Ptr ¶
func (s ViewerRole) Ptr() *ViewerRole
Click to show internal directories.
Click to hide internal directories.