Documentation
¶
Index ¶
- Variables
- func Configure(api *operations.ClaAPI, service Service, eventsService events.Service)
- func NewRepository(awsSession *session.Session, stage string) repository
- func NewService(stage string, templateRepo Repository, docraptorClient docraptor.Client, ...) service
- type CLAGroup
- type DocumentTab
- type DynamoProjectCorporateDocuments
- type DynamoProjectDocument
- type DynamoProjectIndividualDocuments
- type Repository
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTemplateNotFound error ErrTemplateNotFound = errors.New("template not found") )
Functions ¶
func Configure ¶
func Configure(api *operations.ClaAPI, service Service, eventsService events.Service)
Configure API call
func NewRepository ¶
NewRepository creates a new instance of the repository service
func NewService ¶
func NewService(stage string, templateRepo Repository, docraptorClient docraptor.Client, awsSession *session.Session) service
NewService API call
Types ¶
type DocumentTab ¶
type DocumentTab struct {
// Note: these are arranged to optimize structure memory alignment - see the lint: maligned
DocumentTabType string `json:"document_tab_type"`
DocumentTabID string `json:"document_tab_id"`
DocumentTabName string `json:"document_tab_name"`
DocumentTabAnchorString string `json:"document_tab_anchor_string"`
DocumentTabPage int64 `json:"document_tab_page"`
DocumentTabWidth int64 `json:"document_tab_width"`
DocumentTabAnchorXOffset int64 `json:"document_tab_anchor_x_offset"`
DocumentTabAnchorYOffset int64 `json:"document_tab_anchor_y_offset"`
DocumentTabPositionX int64 `json:"document_tab_position_x"`
DocumentTabPositionY int64 `json:"document_tab_position_y"`
DocumentTabHeight int64 `json:"document_tab_height"`
DocumentTabIsLocked bool `json:"document_tab_is_locked"`
DocumentTabIsRequired bool `json:"document_tab_is_required"`
DocumentTabAnchorIgnoreIfNotPresent bool `json:"document_tab_anchor_ignore_if_not_present"`
}
DocumentTab structure
type DynamoProjectCorporateDocuments ¶
type DynamoProjectCorporateDocuments struct {
DynamoProjectDocument []DynamoProjectDocument `json:":project_corporate_documents"`
}
DynamoProjectCorporateDocuments model
type DynamoProjectDocument ¶
type DynamoProjectDocument struct {
DocumentName string `json:"document_name"`
DocumentFileID string `json:"document_file_id"`
DocumentContentType string `json:"document_content_type"`
DocumentMajorVersion int `json:"document_major_version"`
DocumentMinorVersion int `json:"document_minor_version"`
DocumentCreationDate string `json:"document_creation_date"`
DocumentPreamble string `json:"document_preamble"`
DocumentLegalEntityName string `json:"document_legal_entity_name"`
DocumentAuthorName string `json:"document_author_name"`
DocumentS3URL string `json:"document_s3_url"`
DocumentTabs []DocumentTab `json:"document_tabs"`
}
DynamoProjectDocument model
type DynamoProjectIndividualDocuments ¶
type DynamoProjectIndividualDocuments struct {
DynamoProjectDocument []DynamoProjectDocument `json:":project_individual_documents"`
}
DynamoProjectIndividualDocuments model
type Repository ¶
type Repository interface {
GetTemplates() ([]models.Template, error)
GetTemplate(templateID string) (models.Template, error)
GetCLAGroup(claGroupID string) (CLAGroup, error)
UpdateDynamoContractGroupTemplates(ctx context.Context, ContractGroupID string, template models.Template, pdfUrls models.TemplatePdfs) error
}
Repository interface functions
Click to show internal directories.
Click to hide internal directories.