templates

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package templates implements the DocuSign SDK category Templates.

Use the Templates category to manage your account's templates.

This section shows you how to perform the following tasks:

* Create, list, get, update, and delete templates. * Manage the notification and group sharing settings for templates. * Fetch and rotate pages from a document used by a template.

You can create templates either programmatically or through the DocuSign web interface and then used by your application.

Service Api documentation may be found at: https://developers.docusign.com/docs/esign-rest-api/reference/Templates Usage example:

import (
    "github.com/jfcote87/esign"
    "github.com/jfcote87/esign/v2.1/model"
)
...
templatesService := templates.New(esignCredential)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkRecipientsDeleteOp

type BulkRecipientsDeleteOp esign.Op

BulkRecipientsDeleteOp implements DocuSign API SDK Templates::deleteBulkRecipients

func (*BulkRecipientsDeleteOp) Do

Do executes the op. A nil context will return error.

type BulkRecipientsListOp

type BulkRecipientsListOp esign.Op

BulkRecipientsListOp implements DocuSign API SDK Templates::listBulkRecipients

func (*BulkRecipientsListOp) Do

Do executes the op. A nil context will return error.

func (*BulkRecipientsListOp) IncludeTabs

func (op *BulkRecipientsListOp) IncludeTabs() *BulkRecipientsListOp

IncludeTabs when **true,** the tab information associated with the recipient is included in the response. If you do not specify this parameter, the effect is the default behavior (**false**).

func (*BulkRecipientsListOp) StartPosition

func (op *BulkRecipientsListOp) StartPosition(val int) *BulkRecipientsListOp

StartPosition is the zero-based index of the result from which to start returning results.

Use with `count` to limit the number of results.

The default value is `0`.

type CreateOp

type CreateOp esign.Op

CreateOp implements DocuSign API SDK Templates::createTemplate

func (*CreateOp) Do

Do executes the op. A nil context will return error.

type CustomFieldsCreateOp

type CustomFieldsCreateOp esign.Op

CustomFieldsCreateOp implements DocuSign API SDK Templates::createCustomFields

func (*CustomFieldsCreateOp) Do

Do executes the op. A nil context will return error.

type CustomFieldsDeleteOp

type CustomFieldsDeleteOp esign.Op

CustomFieldsDeleteOp implements DocuSign API SDK Templates::deleteCustomFields

func (*CustomFieldsDeleteOp) Do

Do executes the op. A nil context will return error.

type CustomFieldsListOp

type CustomFieldsListOp esign.Op

CustomFieldsListOp implements DocuSign API SDK Templates::listCustomFields

func (*CustomFieldsListOp) Do

Do executes the op. A nil context will return error.

type CustomFieldsUpdateOp

type CustomFieldsUpdateOp esign.Op

CustomFieldsUpdateOp implements DocuSign API SDK Templates::updateCustomFields

func (*CustomFieldsUpdateOp) Do

Do executes the op. A nil context will return error.

type DeleteDocumentPageOp

type DeleteDocumentPageOp esign.Op

DeleteDocumentPageOp implements DocuSign API SDK Templates::deleteDocumentPage

func (*DeleteDocumentPageOp) Do

Do executes the op. A nil context will return error.

type DeleteGroupShareOp

type DeleteGroupShareOp esign.Op

DeleteGroupShareOp implements DocuSign API SDK Templates::deleteGroupShare

func (*DeleteGroupShareOp) Do

Do executes the op. A nil context will return error.

type DocumentFieldsCreateOp

type DocumentFieldsCreateOp esign.Op

DocumentFieldsCreateOp implements DocuSign API SDK Templates::createDocumentFields

func (*DocumentFieldsCreateOp) Do

Do executes the op. A nil context will return error.

type DocumentFieldsDeleteOp

type DocumentFieldsDeleteOp esign.Op

DocumentFieldsDeleteOp implements DocuSign API SDK Templates::deleteDocumentFields

func (*DocumentFieldsDeleteOp) Do

Do executes the op. A nil context will return error.

type DocumentFieldsListOp

type DocumentFieldsListOp esign.Op

DocumentFieldsListOp implements DocuSign API SDK Templates::listDocumentFields

func (*DocumentFieldsListOp) Do

Do executes the op. A nil context will return error.

type DocumentFieldsUpdateOp

type DocumentFieldsUpdateOp esign.Op

DocumentFieldsUpdateOp implements DocuSign API SDK Templates::updateDocumentFields

func (*DocumentFieldsUpdateOp) Do

Do executes the op. A nil context will return error.

type DocumentHTMLDefinitionsListOp added in v0.10.0

type DocumentHTMLDefinitionsListOp esign.Op

DocumentHTMLDefinitionsListOp implements DocuSign API SDK Templates::getTemplateDocumentHtmlDefinitions

func (*DocumentHTMLDefinitionsListOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type DocumentResponsiveHTMLPreviewCreateOp added in v0.10.0

type DocumentResponsiveHTMLPreviewCreateOp esign.Op

DocumentResponsiveHTMLPreviewCreateOp implements DocuSign API SDK Templates::createTemplateDocumentResponsiveHtmlPreview

func (*DocumentResponsiveHTMLPreviewCreateOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type DocumentTabsCreateOp added in v0.10.0

type DocumentTabsCreateOp esign.Op

DocumentTabsCreateOp implements DocuSign API SDK Templates::postDocumentTabs

func (*DocumentTabsCreateOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type DocumentTabsDeleteOp added in v0.10.0

type DocumentTabsDeleteOp esign.Op

DocumentTabsDeleteOp implements DocuSign API SDK Templates::deleteDocumentTabs

func (*DocumentTabsDeleteOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type DocumentTabsGetByPageOp

type DocumentTabsGetByPageOp esign.Op

DocumentTabsGetByPageOp implements DocuSign API SDK Templates::getPageTabs

func (*DocumentTabsGetByPageOp) Do

Do executes the op. A nil context will return error.

type DocumentTabsGetOp

type DocumentTabsGetOp esign.Op

DocumentTabsGetOp implements DocuSign API SDK Templates::getDocumentTabs

func (*DocumentTabsGetOp) Do

func (op *DocumentTabsGetOp) Do(ctx context.Context) (*model.Tabs, error)

Do executes the op. A nil context will return error.

func (*DocumentTabsGetOp) PageNumbers

func (op *DocumentTabsGetOp) PageNumbers(val string) *DocumentTabsGetOp

PageNumbers filters for tabs that occur on the pages that you specify. Enter as a comma-separated list of page Guids.

Example: `page_numbers=2,6`

type DocumentTabsUpdateOp added in v0.10.0

type DocumentTabsUpdateOp esign.Op

DocumentTabsUpdateOp implements DocuSign API SDK Templates::putDocumentTabs

func (*DocumentTabsUpdateOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type DocumentVisibilityGetOp added in v0.10.0

type DocumentVisibilityGetOp esign.Op

DocumentVisibilityGetOp implements DocuSign API SDK Templates::getTemplateRecipientDocumentVisibility

func (*DocumentVisibilityGetOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type DocumentVisibilityUpdateListOp added in v0.10.0

type DocumentVisibilityUpdateListOp esign.Op

DocumentVisibilityUpdateListOp implements DocuSign API SDK Templates::updateTemplateRecipientsDocumentVisibility

func (*DocumentVisibilityUpdateListOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type DocumentVisibilityUpdateOp added in v0.10.0

type DocumentVisibilityUpdateOp esign.Op

DocumentVisibilityUpdateOp implements DocuSign API SDK Templates::updateTemplateRecipientDocumentVisibility

func (*DocumentVisibilityUpdateOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type DocumentsDeleteOp

type DocumentsDeleteOp esign.Op

DocumentsDeleteOp implements DocuSign API SDK Templates::deleteDocuments

func (*DocumentsDeleteOp) Do

Do executes the op. A nil context will return error.

type DocumentsGetOp

type DocumentsGetOp esign.Op

DocumentsGetOp implements DocuSign API SDK Templates::getDocument

func (*DocumentsGetOp) Do

Do executes the op. A nil context will return error.

func (*DocumentsGetOp) Encrypt

func (op *DocumentsGetOp) Encrypt() *DocumentsGetOp

Encrypt when **true,** the PDF bytes returned in the response are encrypted for all the key managers configured on your DocuSign account. You can decrypt the documents by using the Key Manager DecryptDocument API method. For more information about Key Manager, see the DocuSign Security Appliance Installation Guide that your organization received from DocuSign.

func (*DocumentsGetOp) ShowChanges

func (op *DocumentsGetOp) ShowChanges() *DocumentsGetOp

ShowChanges when **true,** any document fields that a recipient changed are highlighted in yellow in the returned PDF document, and optional signatures or initials are outlined in red.

type DocumentsListOp

type DocumentsListOp esign.Op

DocumentsListOp implements DocuSign API SDK Templates::listDocuments

func (*DocumentsListOp) Do

Do executes the op. A nil context will return error.

func (*DocumentsListOp) IncludeTabs

func (op *DocumentsListOp) IncludeTabs(val string) *DocumentsListOp

IncludeTabs reserved for DocuSign.

type DocumentsUpdateListOp

type DocumentsUpdateListOp esign.Op

DocumentsUpdateListOp implements DocuSign API SDK Templates::updateDocuments

func (*DocumentsUpdateListOp) Do

Do executes the op. A nil context will return error.

type DocumentsUpdateOp

type DocumentsUpdateOp esign.Op

DocumentsUpdateOp implements DocuSign API SDK Templates::updateDocument

func (*DocumentsUpdateOp) Do

Do executes the op. A nil context will return error.

func (*DocumentsUpdateOp) IsEnvelopeDefinition

func (op *DocumentsUpdateOp) IsEnvelopeDefinition() *DocumentsUpdateOp

IsEnvelopeDefinition set the call query parameter is_envelope_definition

type GetDocumentPageImageOp

type GetDocumentPageImageOp esign.Op

GetDocumentPageImageOp implements DocuSign API SDK Templates::getDocumentPageImage

func (*GetDocumentPageImageOp) Do

Do executes the op. A nil context will return error.

func (*GetDocumentPageImageOp) Dpi

Dpi is the number of dots per inch (DPI) for the resulting images. Valid values are 1-310 DPI. The default value is 94.

func (*GetDocumentPageImageOp) MaxHeight

MaxHeight sets the maximum height of the returned images in pixels.

func (*GetDocumentPageImageOp) MaxWidth

MaxWidth sets the maximum width of the returned images in pixels.

func (*GetDocumentPageImageOp) ShowChanges

ShowChanges set the call query parameter show_changes

type GetNotificationSettingsOp

type GetNotificationSettingsOp esign.Op

GetNotificationSettingsOp implements DocuSign API SDK Templates::getNotificationSettings

func (*GetNotificationSettingsOp) Do

Do executes the op. A nil context will return error.

type GetOp

type GetOp esign.Op

GetOp implements DocuSign API SDK Templates::get

func (*GetOp) Do

func (op *GetOp) Do(ctx context.Context) (*model.EnvelopeTemplate, error)

Do executes the op. A nil context will return error.

func (*GetOp) Include

func (op *GetOp) Include(val ...string) *GetOp

Include is a comma-separated list of additional template attributes to include in the response. Valid values are:

- `powerforms`: Includes information about PowerForms. - `tabs`: Includes information about tabs. - `documents`: Includes information about documents. - `favorite_template_status`: : Includes the template `favoritedByMe` property in the response. **Note:** You can mark a template as a favorite only in eSignature v2.1.

type GetPageImagesOp

type GetPageImagesOp esign.Op

GetPageImagesOp implements DocuSign API SDK Templates::getDocumentPageImages

func (*GetPageImagesOp) Count

func (op *GetPageImagesOp) Count(val int) *GetPageImagesOp

Count is the maximum number of results to return.

func (*GetPageImagesOp) Do

Do executes the op. A nil context will return error.

func (*GetPageImagesOp) Dpi

func (op *GetPageImagesOp) Dpi(val int) *GetPageImagesOp

Dpi is the number of dots per inch (DPI) for the resulting images. Valid values are 1-310 DPI. The default value is 94.

func (*GetPageImagesOp) MaxHeight

func (op *GetPageImagesOp) MaxHeight(val int) *GetPageImagesOp

MaxHeight sets the maximum height of the returned images in pixels.

func (*GetPageImagesOp) MaxWidth

func (op *GetPageImagesOp) MaxWidth(val int) *GetPageImagesOp

MaxWidth sets the maximum width of the returned images in pixels.

func (*GetPageImagesOp) Nocache

func (op *GetPageImagesOp) Nocache() *GetPageImagesOp

Nocache when **true,** using cache is disabled and image information is retrieved from a database. **True** is the default value.

func (*GetPageImagesOp) ShowChanges

func (op *GetPageImagesOp) ShowChanges() *GetPageImagesOp

ShowChanges when **true,** changes display in the user interface.

func (*GetPageImagesOp) StartPosition

func (op *GetPageImagesOp) StartPosition(val int) *GetPageImagesOp

StartPosition is the position within the total result set from which to start returning values. The value **thumbnail** may be used to return the page image.

type HTMLDefinitionsListOp added in v0.10.0

type HTMLDefinitionsListOp esign.Op

HTMLDefinitionsListOp implements DocuSign API SDK Templates::getTemplateHtmlDefinitions

func (*HTMLDefinitionsListOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type ListOp

type ListOp esign.Op

ListOp implements DocuSign API SDK Templates::ListTemplates

func (*ListOp) Count

func (op *ListOp) Count(val int) *ListOp

Count is the maximum number of results to return.

Use `start_position` to specify the number of results to skip.

func (*ListOp) CreatedFromDate

func (op *ListOp) CreatedFromDate(val string) *ListOp

CreatedFromDate lists templates created on or after this date.

func (*ListOp) CreatedToDate

func (op *ListOp) CreatedToDate(val string) *ListOp

CreatedToDate lists templates modified before this date.

func (*ListOp) Do

Do executes the op. A nil context will return error.

func (*ListOp) FolderIds

func (op *ListOp) FolderIds(val ...string) *ListOp

FolderIds is a comma-separated list of folder ID GUIDs.

func (*ListOp) FolderTypes

func (op *ListOp) FolderTypes(val string) *ListOp

FolderTypes is the type of folder to return templates for. Possible values are:

  • `templates`: Templates in the **My Templates** folder. Templates in the **Shared Templates** and **All Template** folders (if the request ID from and Admin) are excluded.
  • `templates_root`: Templates in the root level of the **My Templates** folder, but not in an actual folder. Note that the **My Templates** folder is not a real folder.
  • `recylebin`: Templates that have been deleted.

func (*ListOp) FromDate

func (op *ListOp) FromDate(val time.Time) *ListOp

FromDate start of the search date range. Only returns templates created on or after this date/time. If no value is specified, there is no limit on the earliest date created.

func (*ListOp) Include

func (op *ListOp) Include(val ...string) *ListOp

Include is a comma-separated list of additional template attributes to include in the response. Valid values are:

- `powerforms`: Includes details about the PowerForms associated with the templates. - `documents`: Includes information about template documents. - `folders`: Includes information about the folder that holds the template. - `favorite_template_status`: Includes the template `favoritedByMe` property. **Note:** You can mark a template as a favorite only in eSignature v2.1. - `advanced_templates`: Includes information about advanced templates. - `recipients`: Includes information about template recipients. - `custom_fields`: Includes information about template custom fields. - `notifications`: Includes information about the notification settings for templates.

func (*ListOp) IsDeletedTemplateOnly added in v0.10.0

func (op *ListOp) IsDeletedTemplateOnly(val string) *ListOp

IsDeletedTemplateOnly set the call query parameter is_deleted_template_only

func (*ListOp) IsDownload

func (op *ListOp) IsDownload(val string) *ListOp

IsDownload when **true,** downloads the templates listed in `template_ids` as a collection of JSON definitions in a single zip file.

The `Content-Disposition` header is set in the response. The value of the header provides the filename of the file.

The default is **false.**

**Note:** This parameter only works when you specify a list of templates in the `template_ids` parameter.

func (*ListOp) ModifiedFromDate

func (op *ListOp) ModifiedFromDate(val time.Time) *ListOp

ModifiedFromDate lists templates modified on or after this date.

func (*ListOp) ModifiedToDate

func (op *ListOp) ModifiedToDate(val time.Time) *ListOp

ModifiedToDate lists templates modified before this date.

func (*ListOp) Order

func (op *ListOp) Order(val string) *ListOp

Order specifies the sort order of the search results. Valid values are:

- `asc`: Ascending (A to Z) - `desc`: Descending (Z to A)

func (*ListOp) OrderBy

func (op *ListOp) OrderBy(val string) *ListOp

OrderBy specifies how the search results are listed. Valid values are:

- `name`: template name - `modified`: date/time template was last modified - `used`: date/time the template was last used.

func (*ListOp) SearchFields

func (op *ListOp) SearchFields(val string) *ListOp

SearchFields is a comma-separated list of additional template properties to search.

- `sender`: Include sender name and email in the search. - `recipients`: Include recipient names and emails in the search. - `envelope`: Not used in template searches.

func (*ListOp) SearchText

func (op *ListOp) SearchText(val string) *ListOp

SearchText is the text to use to search the names of templates.

Limit: 48 characters.

func (*ListOp) SharedByMe

func (op *ListOp) SharedByMe(val string) *ListOp

SharedByMe when **true,** the response only includes templates shared by the user. If false, the response only returns template not shared by the user. If not specified, the response is not affected.

func (*ListOp) StartPosition

func (op *ListOp) StartPosition(val int) *ListOp

StartPosition is the zero-based index of the result from which to start returning results.

Use with `count` to limit the number of results.

The default value is `0`.

func (*ListOp) TemplateIds

func (op *ListOp) TemplateIds(val string) *ListOp

TemplateIds is a comma-separated list of template IDs to download. This value is valid only when `is_download` is **true.**

func (*ListOp) ToDate

func (op *ListOp) ToDate(val time.Time) *ListOp

ToDate is the end of a search date range in UTC DateTime format. When you use this parameter, only templates created up to this date and time are returned.

**Note:** If this property is null, the value defaults to the current date.

func (*ListOp) UsedFromDate

func (op *ListOp) UsedFromDate(val time.Time) *ListOp

UsedFromDate start of the search date range. Only returns templates used or edited on or after this date/time. If no value is specified, there is no limit on the earliest date used.

func (*ListOp) UsedToDate

func (op *ListOp) UsedToDate(val time.Time) *ListOp

UsedToDate end of the search date range. Only returns templates used or edited up to this date/time. If no value is provided, this defaults to the current date.

func (*ListOp) UserFilter

func (op *ListOp) UserFilter(val string) *ListOp

UserFilter filters the templates in the response. Valid values are:

- `owned_by_me`: Results include only templates owned by the user. - `shared_with_me`: Results include only templates owned by the user. - `all`: Results include all templates owned or shared with the user.

func (*ListOp) UserID

func (op *ListOp) UserID(val string) *ListOp

UserID is the ID of the user.

type LocksCreateOp

type LocksCreateOp esign.Op

LocksCreateOp implements DocuSign API SDK Templates::createLock

func (*LocksCreateOp) Do

Do executes the op. A nil context will return error.

type LocksDeleteOp

type LocksDeleteOp esign.Op

LocksDeleteOp implements DocuSign API SDK Templates::deleteLock

func (*LocksDeleteOp) Do

Do executes the op. A nil context will return error.

type LocksGetOp

type LocksGetOp esign.Op

LocksGetOp implements DocuSign API SDK Templates::getLock

func (*LocksGetOp) Do

Do executes the op. A nil context will return error.

type LocksUpdateOp

type LocksUpdateOp esign.Op

LocksUpdateOp implements DocuSign API SDK Templates::updateLock

func (*LocksUpdateOp) Do

Do executes the op. A nil context will return error.

type RecipientTabsCreateOp

type RecipientTabsCreateOp esign.Op

RecipientTabsCreateOp implements DocuSign API SDK Templates::createTabs

func (*RecipientTabsCreateOp) Do

Do executes the op. A nil context will return error.

type RecipientTabsDeleteOp

type RecipientTabsDeleteOp esign.Op

RecipientTabsDeleteOp implements DocuSign API SDK Templates::deleteTabs

func (*RecipientTabsDeleteOp) Do

Do executes the op. A nil context will return error.

type RecipientTabsListOp

type RecipientTabsListOp esign.Op

RecipientTabsListOp implements DocuSign API SDK Templates::listTabs

func (*RecipientTabsListOp) Do

Do executes the op. A nil context will return error.

func (*RecipientTabsListOp) IncludeAnchorTabLocations

func (op *RecipientTabsListOp) IncludeAnchorTabLocations() *RecipientTabsListOp

IncludeAnchorTabLocations when **true,** all tabs with anchor tab properties are included in the response. The default value is **false.**

func (*RecipientTabsListOp) IncludeMetadata

func (op *RecipientTabsListOp) IncludeMetadata(val string) *RecipientTabsListOp

IncludeMetadata when **true,** the response includes metadata indicating which properties are editable.

type RecipientTabsUpdateOp

type RecipientTabsUpdateOp esign.Op

RecipientTabsUpdateOp implements DocuSign API SDK Templates::updateTabs

func (*RecipientTabsUpdateOp) Do

Do executes the op. A nil context will return error.

type RecipientsCreateOp

type RecipientsCreateOp esign.Op

RecipientsCreateOp implements DocuSign API SDK Templates::createRecipients

func (*RecipientsCreateOp) Do

Do executes the op. A nil context will return error.

func (*RecipientsCreateOp) ResendEnvelope

func (op *RecipientsCreateOp) ResendEnvelope() *RecipientsCreateOp

ResendEnvelope when **true,** resends the envelope to the recipients that you specify in the request body. Use this parameter to resend the envelope to a recipient who deleted the original email notification.

**Note:** Correcting an envelope is a different process. DocuSign always resends an envelope when you correct it, regardless of the value that you enter here.

type RecipientsCreateTemplateRecipientPreviewOp added in v0.10.0

type RecipientsCreateTemplateRecipientPreviewOp esign.Op

RecipientsCreateTemplateRecipientPreviewOp implements DocuSign API SDK Templates::createTemplateRecipientPreview

func (*RecipientsCreateTemplateRecipientPreviewOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type RecipientsDeleteListOp

type RecipientsDeleteListOp esign.Op

RecipientsDeleteListOp implements DocuSign API SDK Templates::deleteRecipients

func (*RecipientsDeleteListOp) Do

Do executes the op. A nil context will return error.

type RecipientsDeleteOp

type RecipientsDeleteOp esign.Op

RecipientsDeleteOp implements DocuSign API SDK Templates::deleteRecipient

func (*RecipientsDeleteOp) Do

Do executes the op. A nil context will return error.

type RecipientsListOp

type RecipientsListOp esign.Op

RecipientsListOp implements DocuSign API SDK Templates::listRecipients

func (*RecipientsListOp) Do

Do executes the op. A nil context will return error.

func (*RecipientsListOp) IncludeAnchorTabLocations

func (op *RecipientsListOp) IncludeAnchorTabLocations() *RecipientsListOp

IncludeAnchorTabLocations when **true** and `include_tabs` is set to **true,** all tabs with anchor tab properties are included in the response.

func (*RecipientsListOp) IncludeExtended

func (op *RecipientsListOp) IncludeExtended() *RecipientsListOp

IncludeExtended when **true,** the extended properties are included in the response.

func (*RecipientsListOp) IncludeTabs

func (op *RecipientsListOp) IncludeTabs() *RecipientsListOp

IncludeTabs when **true,** the tab information associated with the recipient is included in the response.

type RecipientsUpdateOp

type RecipientsUpdateOp esign.Op

RecipientsUpdateOp implements DocuSign API SDK Templates::updateRecipients

func (*RecipientsUpdateOp) Do

Do executes the op. A nil context will return error.

func (*RecipientsUpdateOp) ResendEnvelope

func (op *RecipientsUpdateOp) ResendEnvelope() *RecipientsUpdateOp

ResendEnvelope when **true,** resends the envelope to the recipients that you specify in the request body. Use this parameter to resend the envelope to a recipient who deleted the original email notification.

**Note:** Correcting an envelope is a different process. DocuSign always resends an envelope when you correct it, regardless of the value that you enter here.

type ResponsiveHTMLPreviewCreateOp added in v0.10.0

type ResponsiveHTMLPreviewCreateOp esign.Op

ResponsiveHTMLPreviewCreateOp implements DocuSign API SDK Templates::createTemplateResponsiveHtmlPreview

func (*ResponsiveHTMLPreviewCreateOp) Do added in v0.10.0

Do executes the op. A nil context will return error.

type RotateDocumentPageOp

type RotateDocumentPageOp esign.Op

RotateDocumentPageOp implements DocuSign API SDK Templates::rotateDocumentPage

func (*RotateDocumentPageOp) Do

Do executes the op. A nil context will return error.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements DocuSign Templates API operations

func New

func New(cred esign.Credential) *Service

New initializes a templates service using cred to authorize ops.

func (*Service) BulkRecipientsDelete

func (s *Service) BulkRecipientsDelete(recipientID string, templateID string) *BulkRecipientsDeleteOp

BulkRecipientsDelete deletes the bulk recipient list on a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatebulkrecipients/delete

SDK Method Templates::deleteBulkRecipients

func (*Service) BulkRecipientsList

func (s *Service) BulkRecipientsList(recipientID string, templateID string) *BulkRecipientsListOp

BulkRecipientsList gets the bulk recipient file from a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatebulkrecipients/list

SDK Method Templates::listBulkRecipients

func (*Service) Create

func (s *Service) Create(envelopeTemplate *model.EnvelopeTemplate, uploads ...*esign.UploadFile) *CreateOp

Create creates one or more templates. If any uploads[x].Reader is an io.ReadCloser(s), Do() will always close Reader.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/create

SDK Method Templates::createTemplate

func (*Service) CustomFieldsCreate

func (s *Service) CustomFieldsCreate(templateID string, templateCustomFields *model.TemplateCustomFields) *CustomFieldsCreateOp

CustomFieldsCreate creates custom document fields in an existing template document.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatecustomfields/create

SDK Method Templates::createCustomFields

func (*Service) CustomFieldsDelete

func (s *Service) CustomFieldsDelete(templateID string, templateCustomFields *model.TemplateCustomFields) *CustomFieldsDeleteOp

CustomFieldsDelete deletes envelope custom fields in a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatecustomfields/delete

SDK Method Templates::deleteCustomFields

func (*Service) CustomFieldsList

func (s *Service) CustomFieldsList(templateID string) *CustomFieldsListOp

CustomFieldsList gets the custom document fields from a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatecustomfields/list

SDK Method Templates::listCustomFields

func (*Service) CustomFieldsUpdate

func (s *Service) CustomFieldsUpdate(templateID string, templateCustomFields *model.TemplateCustomFields) *CustomFieldsUpdateOp

CustomFieldsUpdate updates envelope custom fields in a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatecustomfields/update

SDK Method Templates::updateCustomFields

func (*Service) DeleteDocumentPage

func (s *Service) DeleteDocumentPage(documentID string, pageNumber string, templateID string, pageRequest *model.PageRequest) *DeleteDocumentPageOp

DeleteDocumentPage deletes a page from a document in an template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/deletedocumentpage

SDK Method Templates::deleteDocumentPage

func (*Service) DeleteGroupShare

func (s *Service) DeleteGroupShare(templateID string, templatePart string, groupInformation *model.GroupInformation) *DeleteGroupShareOp

DeleteGroupShare removes a member group's sharing permissions for a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/deletegroupshare

SDK Method Templates::deleteGroupShare

func (*Service) DocumentFieldsCreate

func (s *Service) DocumentFieldsCreate(documentID string, templateID string, documentFieldsInformation *model.DocumentFieldsInformation) *DocumentFieldsCreateOp

DocumentFieldsCreate creates custom document fields in an existing template document.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumentfields/create

SDK Method Templates::createDocumentFields

func (*Service) DocumentFieldsDelete

func (s *Service) DocumentFieldsDelete(documentID string, templateID string, documentFieldsInformation *model.DocumentFieldsInformation) *DocumentFieldsDeleteOp

DocumentFieldsDelete deletes custom document fields from an existing template document.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumentfields/delete

SDK Method Templates::deleteDocumentFields

func (*Service) DocumentFieldsList

func (s *Service) DocumentFieldsList(documentID string, templateID string) *DocumentFieldsListOp

DocumentFieldsList gets the custom document fields for a an existing template document.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumentfields/list

SDK Method Templates::listDocumentFields

func (*Service) DocumentFieldsUpdate

func (s *Service) DocumentFieldsUpdate(documentID string, templateID string, documentFieldsInformation *model.DocumentFieldsInformation) *DocumentFieldsUpdateOp

DocumentFieldsUpdate updates existing custom document fields in an existing template document.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumentfields/update

SDK Method Templates::updateDocumentFields

func (*Service) DocumentHTMLDefinitionsList added in v0.10.0

func (s *Service) DocumentHTMLDefinitionsList(documentID string, templateID string) *DocumentHTMLDefinitionsListOp

DocumentHTMLDefinitionsList gets the Original HTML Definition used to generate the Responsive HTML for a given document in a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumenthtmldefinitions/list

SDK Method Templates::getTemplateDocumentHtmlDefinitions

func (*Service) DocumentResponsiveHTMLPreviewCreate added in v0.10.0

func (s *Service) DocumentResponsiveHTMLPreviewCreate(documentID string, templateID string, documentHTMLDefinition *model.DocumentHTMLDefinition) *DocumentResponsiveHTMLPreviewCreateOp

DocumentResponsiveHTMLPreviewCreate creates a preview of the responsive version of a template document.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumentresponsivehtmlpreview/create

SDK Method Templates::createTemplateDocumentResponsiveHtmlPreview

func (*Service) DocumentTabsCreate added in v0.10.0

func (s *Service) DocumentTabsCreate(documentID string, templateID string, templateTabs *model.TemplateTabs) *DocumentTabsCreateOp

DocumentTabsCreate adds tabs to a document in a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumenttabs/create

SDK Method Templates::postDocumentTabs

func (*Service) DocumentTabsDelete added in v0.10.0

func (s *Service) DocumentTabsDelete(documentID string, templateID string, templateTabs *model.TemplateTabs) *DocumentTabsDeleteOp

DocumentTabsDelete deletes tabs from a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumenttabs/delete

SDK Method Templates::deleteDocumentTabs

func (*Service) DocumentTabsGet

func (s *Service) DocumentTabsGet(documentID string, templateID string) *DocumentTabsGetOp

DocumentTabsGet returns tabs on a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumenttabs/get

SDK Method Templates::getDocumentTabs

func (*Service) DocumentTabsGetByPage

func (s *Service) DocumentTabsGetByPage(documentID string, pageNumber string, templateID string) *DocumentTabsGetByPageOp

DocumentTabsGetByPage returns tabs on the specified page.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumenttabs/getbypage

SDK Method Templates::getPageTabs

func (*Service) DocumentTabsUpdate added in v0.10.0

func (s *Service) DocumentTabsUpdate(documentID string, templateID string, templateTabs *model.TemplateTabs) *DocumentTabsUpdateOp

DocumentTabsUpdate updates the tabs for a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumenttabs/update

SDK Method Templates::putDocumentTabs

func (*Service) DocumentVisibilityGet added in v0.10.0

func (s *Service) DocumentVisibilityGet(recipientID string, templateID string) *DocumentVisibilityGetOp

DocumentVisibilityGet returns document visibility for a template recipient

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumentvisibility/get

SDK Method Templates::getTemplateRecipientDocumentVisibility

func (*Service) DocumentVisibilityUpdate added in v0.10.0

func (s *Service) DocumentVisibilityUpdate(recipientID string, templateID string, templateDocumentVisibilityList *model.TemplateDocumentVisibilityList) *DocumentVisibilityUpdateOp

DocumentVisibilityUpdate updates document visibility for a template recipient

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumentvisibility/update

SDK Method Templates::updateTemplateRecipientDocumentVisibility

func (*Service) DocumentVisibilityUpdateList added in v0.10.0

func (s *Service) DocumentVisibilityUpdateList(templateID string, templateDocumentVisibilityList *model.TemplateDocumentVisibilityList) *DocumentVisibilityUpdateListOp

DocumentVisibilityUpdateList updates document visibility for template recipients

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocumentvisibility/updatelist

SDK Method Templates::updateTemplateRecipientsDocumentVisibility

func (*Service) DocumentsDelete

func (s *Service) DocumentsDelete(templateID string, envelopeDefinition *model.EnvelopeDefinition) *DocumentsDeleteOp

DocumentsDelete deletes documents from a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocuments/delete

SDK Method Templates::deleteDocuments

func (*Service) DocumentsGet

func (s *Service) DocumentsGet(documentID string, templateID string) *DocumentsGetOp

DocumentsGet gets PDF documents from a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocuments/get

SDK Method Templates::getDocument

func (*Service) DocumentsList

func (s *Service) DocumentsList(templateID string) *DocumentsListOp

DocumentsList gets a list of documents associated with a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocuments/list

SDK Method Templates::listDocuments

func (*Service) DocumentsUpdate

func (s *Service) DocumentsUpdate(documentID string, templateID string, envelopeDefinition *model.EnvelopeDefinition) *DocumentsUpdateOp

DocumentsUpdate updates a template document.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocuments/update

SDK Method Templates::updateDocument

func (*Service) DocumentsUpdateList

func (s *Service) DocumentsUpdateList(templateID string, envelopeDefinition *model.EnvelopeDefinition) *DocumentsUpdateListOp

DocumentsUpdateList adds documents to a template document.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatedocuments/updatelist

SDK Method Templates::updateDocuments

func (*Service) Get

func (s *Service) Get(templateID string) *GetOp

Get gets a specific template associated with a specified account.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/get

SDK Method Templates::get

func (*Service) GetDocumentPageImage

func (s *Service) GetDocumentPageImage(documentID string, pageNumber string, templateID string) *GetDocumentPageImageOp

GetDocumentPageImage gets a page image from a template for display.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/getdocumentpageimage

SDK Method Templates::getDocumentPageImage

func (*Service) GetNotificationSettings

func (s *Service) GetNotificationSettings(templateID string) *GetNotificationSettingsOp

GetNotificationSettings gets template notification information.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/getnotificationsettings

SDK Method Templates::getNotificationSettings

func (*Service) GetPageImages

func (s *Service) GetPageImages(documentID string, templateID string) *GetPageImagesOp

GetPageImages returns document page images based on input.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/getpageimages

SDK Method Templates::getDocumentPageImages

func (*Service) HTMLDefinitionsList added in v0.10.0

func (s *Service) HTMLDefinitionsList(templateID string) *HTMLDefinitionsListOp

HTMLDefinitionsList gets the Original HTML Definition used to generate the Responsive HTML for the template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatehtmldefinitions/list

SDK Method Templates::getTemplateHtmlDefinitions

func (*Service) List

func (s *Service) List() *ListOp

List gets the list of templates.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/list

SDK Method Templates::ListTemplates

func (*Service) LocksCreate

func (s *Service) LocksCreate(templateID string, lockRequest *model.LockRequest) *LocksCreateOp

LocksCreate locks a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatelocks/create

SDK Method Templates::createLock

func (*Service) LocksDelete

func (s *Service) LocksDelete(templateID string, lockRequest *model.LockRequest) *LocksDeleteOp

LocksDelete deletes a template lock.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatelocks/delete

SDK Method Templates::deleteLock

func (*Service) LocksGet

func (s *Service) LocksGet(templateID string) *LocksGetOp

LocksGet gets template lock information.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatelocks/get

SDK Method Templates::getLock

func (*Service) LocksUpdate

func (s *Service) LocksUpdate(templateID string, lockRequest *model.LockRequest) *LocksUpdateOp

LocksUpdate updates a template lock.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templatelocks/update

SDK Method Templates::updateLock

func (*Service) RecipientTabsCreate

func (s *Service) RecipientTabsCreate(recipientID string, templateID string, templateTabs *model.TemplateTabs) *RecipientTabsCreateOp

RecipientTabsCreate adds tabs for a recipient.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipienttabs/create

SDK Method Templates::createTabs

func (*Service) RecipientTabsDelete

func (s *Service) RecipientTabsDelete(recipientID string, templateID string, templateTabs *model.TemplateTabs) *RecipientTabsDeleteOp

RecipientTabsDelete deletes the tabs associated with a recipient in a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipienttabs/delete

SDK Method Templates::deleteTabs

func (*Service) RecipientTabsList

func (s *Service) RecipientTabsList(recipientID string, templateID string) *RecipientTabsListOp

RecipientTabsList gets the tabs information for a signer or sign-in-person recipient in a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipienttabs/list

SDK Method Templates::listTabs

func (*Service) RecipientTabsUpdate

func (s *Service) RecipientTabsUpdate(recipientID string, templateID string, templateTabs *model.TemplateTabs) *RecipientTabsUpdateOp

RecipientTabsUpdate updates the tabs for a recipient.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipienttabs/update

SDK Method Templates::updateTabs

func (*Service) RecipientsCreate

func (s *Service) RecipientsCreate(templateID string, templateRecipients *model.TemplateRecipients) *RecipientsCreateOp

RecipientsCreate adds tabs for a recipient.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipients/create

SDK Method Templates::createRecipients

func (*Service) RecipientsCreateTemplateRecipientPreview added in v0.10.0

func (s *Service) RecipientsCreateTemplateRecipientPreview(templateID string, recipientPreviewRequest *model.RecipientPreviewRequest) *RecipientsCreateTemplateRecipientPreviewOp

RecipientsCreateTemplateRecipientPreview creates a template recipient preview.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipients/createtemplaterecipientpreview

SDK Method Templates::createTemplateRecipientPreview

func (*Service) RecipientsDelete

func (s *Service) RecipientsDelete(recipientID string, templateID string, templateRecipients *model.TemplateRecipients) *RecipientsDeleteOp

RecipientsDelete deletes the specified recipient file from a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipients/delete

SDK Method Templates::deleteRecipient

func (*Service) RecipientsDeleteList

func (s *Service) RecipientsDeleteList(templateID string, templateRecipients *model.TemplateRecipients) *RecipientsDeleteListOp

RecipientsDeleteList deletes recipients from a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipients/deletelist

SDK Method Templates::deleteRecipients

func (*Service) RecipientsList

func (s *Service) RecipientsList(templateID string) *RecipientsListOp

RecipientsList gets recipient information from a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipients/list

SDK Method Templates::listRecipients

func (*Service) RecipientsUpdate

func (s *Service) RecipientsUpdate(templateID string, templateRecipients *model.TemplateRecipients) *RecipientsUpdateOp

RecipientsUpdate updates recipients in a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templaterecipients/update

SDK Method Templates::updateRecipients

func (*Service) ResponsiveHTMLPreviewCreate added in v0.10.0

func (s *Service) ResponsiveHTMLPreviewCreate(templateID string, documentHTMLDefinition *model.DocumentHTMLDefinition) *ResponsiveHTMLPreviewCreateOp

ResponsiveHTMLPreviewCreate creates a preview of the responsive versions of all of the documents associated with a template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templateresponsivehtmlpreview/create

SDK Method Templates::createTemplateResponsiveHtmlPreview

func (*Service) RotateDocumentPage

func (s *Service) RotateDocumentPage(documentID string, pageNumber string, templateID string, pageRequest *model.PageRequest) *RotateDocumentPageOp

RotateDocumentPage rotates page image from a template for display.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/rotatedocumentpage

SDK Method Templates::rotateDocumentPage

func (*Service) Update

func (s *Service) Update(templateID string, envelopeTemplate *model.EnvelopeTemplate) *UpdateOp

Update updates an existing template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/update

SDK Method Templates::update

func (*Service) UpdateGroupShare

func (s *Service) UpdateGroupShare(templateID string, templatePart string, groupInformation *model.GroupInformation) *UpdateGroupShareOp

UpdateGroupShare shares a template with a group.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/updategroupshare

SDK Method Templates::updateGroupShare

func (*Service) UpdateNotificationSettings

func (s *Service) UpdateNotificationSettings(templateID string, templateNotificationRequest *model.TemplateNotificationRequest) *UpdateNotificationSettingsOp

UpdateNotificationSettings updates the notification structure for an existing template.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templates/updatenotificationsettings

SDK Method Templates::updateNotificationSettings

func (*Service) ViewsCreateEdit

func (s *Service) ViewsCreateEdit(templateID string, returnURLRequest *model.ReturnURLRequest) *ViewsCreateEditOp

ViewsCreateEdit gets a URL for a template edit view.

https://developers.docusign.com/docs/esign-rest-api/reference/templates/templateviews/createedit

SDK Method Templates::createEditView

type UpdateGroupShareOp

type UpdateGroupShareOp esign.Op

UpdateGroupShareOp implements DocuSign API SDK Templates::updateGroupShare

func (*UpdateGroupShareOp) Do

Do executes the op. A nil context will return error.

type UpdateNotificationSettingsOp

type UpdateNotificationSettingsOp esign.Op

UpdateNotificationSettingsOp implements DocuSign API SDK Templates::updateNotificationSettings

func (*UpdateNotificationSettingsOp) Do

Do executes the op. A nil context will return error.

type UpdateOp

type UpdateOp esign.Op

UpdateOp implements DocuSign API SDK Templates::update

func (*UpdateOp) Do

Do executes the op. A nil context will return error.

type ViewsCreateEditOp

type ViewsCreateEditOp esign.Op

ViewsCreateEditOp implements DocuSign API SDK Templates::createEditView

func (*ViewsCreateEditOp) Do

Do executes the op. A nil context will return error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL