Back to godoc.org

Package internal

v1.0.0
Latest Go to latest

The highest tagged major version is .

Published: Feb 4, 2020 | License: GPL3 | Module: github.com/paysuper/document-signer

Index

func NewHttpClient

func NewHttpClient() *http.Client

type Application

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

func NewApplication

func NewApplication(
	log *zap.Logger,
	fatalFn func(msg string, fields ...zap.Field),
) *Application

func (*Application) Run

func (app *Application) Run()

func (*Application) SecurityMiddleware

func (app *Application) SecurityMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func (*Application) Stop

func (app *Application) Stop()

type HelloSignCallbackRequest

type HelloSignCallbackRequest struct {
	AccountGuid      string                                    `json:"account_guid"`
	Event            *HelloSignCallbackRequestEvent            `json:"event"`
	SignatureRequest *document_signerpb.CreateSignatureRequest `json:"signature_request"`
}

func (*HelloSignCallbackRequest) GetMerchantId

func (m *HelloSignCallbackRequest) GetMerchantId() (string, error)

func (*HelloSignCallbackRequest) IsBadEvent

func (m *HelloSignCallbackRequest) IsBadEvent() bool

type HelloSignCallbackRequestEvent

type HelloSignCallbackRequestEvent struct {
	EventTime     string                                 `json:"event_time"`
	EventType     string                                 `json:"event_type" validate:"required"`
	EventHash     string                                 `json:"event_hash"`
	EventMetadata *HelloSignCallbackRequestEventMetadata `json:"event_metadata"`
}

type HelloSignCallbackRequestEventMetadata

type HelloSignCallbackRequestEventMetadata struct {
	RelatedSignatureId   string `json:"related_signature_id"`
	ReportedForAccountId string `json:"reported_for_account_id"`
	ReportedForAppId     string `json:"reported_for_app_id"`
}

type HelloSignResponse

type HelloSignResponse struct {
	SignatureRequest *SignatureRequest `json:"signature_request"`
}

func (*HelloSignResponse) IsSuccess

func (m *HelloSignResponse) IsSuccess() bool

type Service

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

func NewService

func NewService(cfg *config.Config, billingService bsPkg.BillingService) (*Service, error)

type SignatureRequest

type SignatureRequest struct {
	CcEmailAddresses      []string                        `json:"cc_email_addresses"`
	DetailsUrl            string                          `json:"details_url"`
	HasError              bool                            `json:"has_error"`
	IsComplete            bool                            `json:"is_complete"`
	IsDeclined            bool                            `json:"is_declined"`
	Message               string                          `json:"message"`
	RequesterEmailAddress string                          `json:"requester_email_address"`
	ResponseData          []*SignatureRequestResponseData `json:"response_data"`
	SignatureRequestId    string                          `json:"signature_request_id"`
	Signatures            []*SignatureRequestSignatures   `json:"signatures"`
	SigningUrl            string                          `json:"signing_url"`
	SigningRedirectUrl    string                          `json:"signing_redirect_url"`
	Subject               string                          `json:"subject"`
	Title                 string                          `json:"title"`
	CustomFields          []*SignatureRequestCustomFields `json:"title"`
	FilesUrl              string                          `json:"files_url"`
	FinalCopyUri          string                          `json:"final_copy_uri"`
}

func (*SignatureRequest) GetSignatureIds

func (m *SignatureRequest) GetSignatureIds(
	signers []*document_signerpb.CreateSignatureRequestSigner,
) (merchantSignId, paysuperSignId string)

type SignatureRequestCustomFields

type SignatureRequestCustomFields struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type SignatureRequestResponseData

type SignatureRequestResponseData struct {
	ApiId       string `json:"api_id"`
	Name        string `json:"name"`
	SignatureId string `json:"signature_id"`
	Value       bool   `json:"value"`
	Type        string `json:"type"`
}

type SignatureRequestSignatures

type SignatureRequestSignatures struct {
	SignatureId        string `json:"signature_id"`
	LastRemindedAt     int64  `json:"last_reminded_at"`
	LastViewedAt       int64  `json:"last_viewed_at"`
	SignedAt           int64  `json:"signed_at"`
	SignerEmailAddress string `json:"signer_email_address"`
	SignerName         string `json:"signer_name"`
	StatusCode         string `json:"status_code"`
	HasPin             bool   `json:"has_pin"`
	SignerRole         string `json:"signer_role"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier