folders

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package folders implements the DocuSign SDK category Folders.

Use the Folders category to manage envelopes in your folders.

You can list the folder contents and move envelopes between folders.

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

import (
    "github.com/ICGGroup/esign"
    "github.com/ICGGroup/esign/v2/folders"
    "github.com/ICGGroup/esign/v2/model"
)
...
foldersService := folders.New(esignCredential)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListItemsOp

type ListItemsOp esign.Op

ListItemsOp implements DocuSign API SDK Folders::listItems

func (*ListItemsOp) Do

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

func (*ListItemsOp) FromDate

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

FromDate only return items on or after this date. If no value is provided, the default search is the previous 30 days.

func (*ListItemsOp) OwnerEmail

func (op *ListItemsOp) OwnerEmail(val string) *ListItemsOp

OwnerEmail is the email of the folder owner.

func (*ListItemsOp) OwnerName

func (op *ListItemsOp) OwnerName(val string) *ListItemsOp

OwnerName is the name of the folder owner.

func (*ListItemsOp) SearchText

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

SearchText is the search text used to search the items of the envelope. The search looks at recipient names and emails, envelope custom fields, sender name, and subject.

func (*ListItemsOp) StartPosition

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

StartPosition is the position of the folder items to return. This is used for repeated calls, when the number of envelopes returned is too much for one return (calls return 100 envelopes at a time). The default value is 0.

func (*ListItemsOp) Status

func (op *ListItemsOp) Status(val string) *ListItemsOp

Status is a comma-separated list of current envelope statuses to included in the response. Possible values are:

* completed * created * declined * deleted * delivered * processing * sent * signed * timedout * voided

The `any` value is equivalent to any status.

func (*ListItemsOp) ToDate

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

ToDate only return items up to this date. If no value is provided, the default search is to the current date.

type ListOp

type ListOp esign.Op

ListOp implements DocuSign API SDK Folders::list

func (*ListOp) Do

func (op *ListOp) Do(ctx context.Context) (*model.FoldersResponse, error)

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

func (*ListOp) Include

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

Include reserved for DocuSign.

func (*ListOp) StartPosition

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

StartPosition reserved for DocuSign.

func (*ListOp) Template

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

Template specifies the items that are returned. Valid values are:

* include - The folder list will return normal folders plus template folders. * only - Only the list of template folders are returned.

func (*ListOp) UserFilter

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

UserFilter reserved for DocuSign.

type MoveEnvelopesOp

type MoveEnvelopesOp esign.Op

MoveEnvelopesOp implements DocuSign API SDK Folders::moveEnvelopes

func (*MoveEnvelopesOp) Do

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

type SearchOp

type SearchOp esign.Op

SearchOp implements DocuSign API SDK Folders::search

func (*SearchOp) All

func (op *SearchOp) All() *SearchOp

All specifies that all envelopes that match the criteria are returned.

func (*SearchOp) Count

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

Count specifies the number of records returned in the cache. The number must be greater than 0 and less than or equal to 100.

func (*SearchOp) Do

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

func (*SearchOp) FromDate

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

FromDate specifies the start of the date range to return. If no value is provided, the default search is the previous 30 days.

func (*SearchOp) IncludeRecipients

func (op *SearchOp) IncludeRecipients() *SearchOp

IncludeRecipients when set to **true**, the recipient information is returned in the response.

func (*SearchOp) Order

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

Order specifies the order in which the list is returned. Valid values are: `asc` for ascending order, and `desc` for descending order.

func (*SearchOp) OrderBy

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

OrderBy specifies the property used to sort the list. Valid values are: `action_required`, `created`, `completed`, `sent`, `signer_list`, `status`, or `subject`.

func (*SearchOp) StartPosition

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

StartPosition specifies the the starting location in the result set of the items that are returned.

func (*SearchOp) ToDate

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

ToDate specifies the end of the date range to return.

type Service

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

Service implements DocuSign Folders Category API operations

func New

func New(cred esign.Credential) *Service

New initializes a folders service using cred to authorize ops.

func (*Service) List

func (s *Service) List() *ListOp

List gets a list of the folders for the account.

https://developers.docusign.com/esign-rest-api/v2/reference/folders/folders/list

SDK Method Folders::list

func (*Service) ListItems

func (s *Service) ListItems(folderID string) *ListItemsOp

ListItems gets a list of the envelopes in the specified folder.

https://developers.docusign.com/esign-rest-api/v2/reference/folders/folders/listitems

SDK Method Folders::listItems

func (*Service) MoveEnvelopes

func (s *Service) MoveEnvelopes(folderID string, foldersRequest *model.FoldersRequest) *MoveEnvelopesOp

MoveEnvelopes moves an envelope from its current folder to the specified folder.

https://developers.docusign.com/esign-rest-api/v2/reference/folders/folders/moveenvelopes

SDK Method Folders::moveEnvelopes

func (*Service) Search

func (s *Service) Search(searchFolderID string) *SearchOp

Search gets a list of envelopes in folders matching the specified criteria.

https://developers.docusign.com/esign-rest-api/v2/reference/folders/folders/search

SDK Method Folders::search

Jump to

Keyboard shortcuts

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