Documentation
¶
Index ¶
- type Config
- type Engine
- func (e *Engine) BuildStandardInvoiceLines(ctx context.Context, input billing.BuildStandardInvoiceLinesInput) (billing.StandardLines, error)
- func (e *Engine) CalculateLines(input billing.CalculateLinesInput) (billing.StandardLines, error)
- func (e *Engine) GetLineEngineType() billing.LineEngineType
- func (e *Engine) IsLineBillableAsOf(_ context.Context, input billing.IsLineBillableAsOfInput) (bool, error)
- func (e *Engine) OnCollectionCompleted(ctx context.Context, input billing.OnCollectionCompletedInput) (billing.StandardLines, error)
- func (e *Engine) OnInvoiceIssued(_ context.Context, _ billing.OnInvoiceIssuedInput) error
- func (e *Engine) OnMutableStandardLinesDeleted(_ context.Context, _ billing.OnMutableStandardLinesDeletedInput) error
- func (e *Engine) OnPaymentAuthorized(_ context.Context, _ billing.OnPaymentAuthorizedInput) error
- func (e *Engine) OnPaymentSettled(_ context.Context, _ billing.OnPaymentSettledInput) error
- func (e *Engine) OnStandardInvoiceCreated(_ context.Context, input billing.OnStandardInvoiceCreatedInput) (billing.StandardLines, error)
- func (e *Engine) OnUnsupportedCreditNote(_ context.Context, _ billing.OnUnsupportedCreditNoteInput) error
- func (e *Engine) ResolveSplitLineGroupHeaders(ctx context.Context, ns string, lines billing.StandardLines) error
- func (e *Engine) SplitGatheringLine(ctx context.Context, in billing.SplitGatheringLineInput) (billing.SplitGatheringLineResult, error)
- type QuantitySnapshotter
- type SplitLineGroupAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
SplitLineGroupAdapter SplitLineGroupAdapter
QuantitySnapshotter QuantitySnapshotter
RatingService rating.Service
}
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) BuildStandardInvoiceLines ¶
func (e *Engine) BuildStandardInvoiceLines(ctx context.Context, input billing.BuildStandardInvoiceLinesInput) (billing.StandardLines, error)
func (*Engine) CalculateLines ¶
func (e *Engine) CalculateLines(input billing.CalculateLinesInput) (billing.StandardLines, error)
func (*Engine) GetLineEngineType ¶
func (e *Engine) GetLineEngineType() billing.LineEngineType
func (*Engine) IsLineBillableAsOf ¶
func (*Engine) OnCollectionCompleted ¶
func (e *Engine) OnCollectionCompleted(ctx context.Context, input billing.OnCollectionCompletedInput) (billing.StandardLines, error)
func (*Engine) OnInvoiceIssued ¶
func (*Engine) OnMutableStandardLinesDeleted ¶
func (*Engine) OnPaymentAuthorized ¶
func (*Engine) OnPaymentSettled ¶
func (*Engine) OnStandardInvoiceCreated ¶
func (e *Engine) OnStandardInvoiceCreated(_ context.Context, input billing.OnStandardInvoiceCreatedInput) (billing.StandardLines, error)
func (*Engine) OnUnsupportedCreditNote ¶
func (*Engine) ResolveSplitLineGroupHeaders ¶
func (*Engine) SplitGatheringLine ¶
func (e *Engine) SplitGatheringLine(ctx context.Context, in billing.SplitGatheringLineInput) (billing.SplitGatheringLineResult, error)
type QuantitySnapshotter ¶
type QuantitySnapshotter interface {
SnapshotLineQuantities(ctx context.Context, invoice billing.StandardInvoice, lines billing.StandardLines) error
}
type SplitLineGroupAdapter ¶
type SplitLineGroupAdapter interface {
CreateSplitLineGroup(ctx context.Context, input billing.CreateSplitLineGroupAdapterInput) (billing.SplitLineGroup, error)
GetSplitLineGroupHeaders(ctx context.Context, input billing.GetSplitLineGroupHeadersInput) (billing.SplitLineGroupHeaders, error)
}
Click to show internal directories.
Click to hide internal directories.