reviews

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CandidatePaymentIDs

func CandidatePaymentIDs(app core.App, amountPaise int64, now time.Time) ([]string, error)

Types

type OpenInput

type OpenInput struct {
	Kind                  string
	Severity              string
	SMSEventID            string
	ReconciliationEntryID string
	PaymentID             string
	CandidatePaymentIDs   []string
	Reason                string
	OpenedAt              time.Time
}

type ResolveInput

type ResolveInput struct {
	CaseID        string
	Action        string
	PaymentID     string
	BankReference string
	Note          string
	Actor         audit.Actor
}

type ResolveResult

type ResolveResult struct {
	CaseID    string `json:"caseId"`
	Status    string `json:"status"`
	PaymentID string `json:"paymentId,omitempty"`
	Action    string `json:"action"`
}

type Service

type Service struct {
	App      core.App
	Payments *payments.Service
	Audit    *audit.Service
	Now      func() time.Time
}

func NewService

func NewService(app core.App, paymentService *payments.Service, auditService *audit.Service) *Service

func (*Service) OpenCount

func (s *Service) OpenCount() (int64, error)

func (*Service) OpenInApp

func (s *Service) OpenInApp(app core.App, input OpenInput) (string, error)

func (*Service) OpenSMSReviewInApp

func (s *Service) OpenSMSReviewInApp(app core.App, input sms.ReviewInput) (string, error)

func (*Service) Resolve

func (s *Service) Resolve(input ResolveInput) (ResolveResult, error)

Jump to

Keyboard shortcuts

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