Documentation ¶
Index ¶
- Constants
- func SignatureCheck(hSignature string, body []byte, ...) error
- type ContractService
- type Integration
- type InvoiceService
- type ServiceLineItemService
- type Services
- type SimulateInvoiceLine
- type SimulateInvoiceRequestData
- type SimulateInvoiceRequestServiceLineData
- type SimulateInvoiceResponseData
- type SimulateInvoices
- type SlackChannelService
- type TenantService
Constants ¶
View Source
const CalComHeader = "x-cal-signature-256"
Variables ¶
This section is empty.
Functions ¶
func SignatureCheck ¶
func SignatureCheck(hSignature string, body []byte, personalIntegrationRepository postgresRepository.PersonalIntegrationRepository, tenant, email, integration string) error
Types ¶
type ContractService ¶
type ContractService interface {
GetById(ctx context.Context, id string) (*neo4jentity.ContractEntity, error)
}
func NewContractService ¶
func NewContractService(log logger.Logger, services *Services) ContractService
type InvoiceService ¶
type InvoiceService interface { GenerateNewRandomInvoiceNumber() string GetById(ctx context.Context, invoiceId string) (*neo4jentity.InvoiceEntity, error) GetInvoiceLinesForInvoices(ctx context.Context, invoiceIds []string) (*neo4jentity.InvoiceLineEntities, error) GetInvoicesForContracts(ctx context.Context, contractIds []string) (*neo4jentity.InvoiceEntities, error) SimulateInvoice(ctx context.Context, invoiceData *SimulateInvoiceRequestData) ([]*SimulateInvoiceResponseData, error) NextInvoiceDryRun(ctx context.Context, contractId, appSource string) (string, error) PayInvoice(ctx context.Context, invoiceId, appSource string) error VoidInvoice(ctx context.Context, invoiceId, appSource string) error FillCycleInvoice(ctx context.Context, invoiceEntity *neo4jentity.InvoiceEntity, sliEntities neo4jentity.ServiceLineItemEntities) (*neo4jentity.InvoiceEntity, []*invoicepb.InvoiceLine, error) FillOffCyclePrepaidInvoice(ctx context.Context, invoiceEntity *neo4jentity.InvoiceEntity, sliEntities neo4jentity.ServiceLineItemEntities) (*neo4jentity.InvoiceEntity, []*invoicepb.InvoiceLine, error) }
func NewInvoiceService ¶
func NewInvoiceService(log logger.Logger, services *Services) InvoiceService
type ServiceLineItemService ¶
type ServiceLineItemService interface { GetById(ctx context.Context, id string) (*neo4jentity.ServiceLineItemEntity, error) GetServiceLineItemsByParentId(ctx context.Context, sliParentId string) (*neo4jentity.ServiceLineItemEntities, error) GetServiceLineItemsForContract(ctx context.Context, contractId string) (*neo4jentity.ServiceLineItemEntities, error) GetServiceLineItemsForContracts(ctx context.Context, contractIds []string) (*neo4jentity.ServiceLineItemEntities, error) GetServiceLineItemsForInvoiceLines(ctx context.Context, invoiceLineIds []string) (*neo4jentity.ServiceLineItemEntities, error) }
func NewServiceLineItemService ¶
func NewServiceLineItemService(log logger.Logger, services *Services) ServiceLineItemService
type Services ¶
type Services struct { PostgresRepositories *postgresRepository.Repositories Neo4jRepositories *neo4jRepository.Repositories GrpcClients *grpc_client.Clients TenantService TenantService ContractService ContractService ServiceLineItemService ServiceLineItemService InvoiceService InvoiceService SlackChannelService SlackChannelService }
func InitServices ¶
func InitServices(db *gorm.DB, driver *neo4j.DriverWithContext, neo4jDatabase string, grpcClients *grpc_client.Clients) *Services
type SimulateInvoiceLine ¶
type SimulateInvoiceRequestData ¶
type SimulateInvoiceRequestData struct { ContractId string ServiceLines []SimulateInvoiceRequestServiceLineData }
type SimulateInvoiceResponseData ¶
type SimulateInvoiceResponseData struct { Invoice *neo4jentity.InvoiceEntity Lines []*neo4jentity.InvoiceLineEntity }
type SimulateInvoices ¶
type SlackChannelService ¶
type SlackChannelService interface { GetSlackChannels(ctx context.Context, tenant string) ([]*postgresEntity.SlackChannel, error) GetPaginatedSlackChannels(ctx context.Context, tenant string, page, limit int) ([]*postgresEntity.SlackChannel, int64, error) StoreSlackChannel(ctx context.Context, tenant, source, channelId, channelName string, organizationId *string) error }
func NewSlackChannelService ¶
func NewSlackChannelService(repositories *postgresRepository.Repositories) SlackChannelService
type TenantService ¶
type TenantService interface {
GetTenantSettings(ctx context.Context) (*neo4jentity.TenantSettingsEntity, error)
}
func NewTenantService ¶
func NewTenantService(log logger.Logger, services *Services) TenantService
Source Files ¶
Click to show internal directories.
Click to hide internal directories.