ledger

package
v0.0.0-...-307a5c9 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LedgerService

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

func NewLedgerService

func NewLedgerService(ctx context.Context, address string) *LedgerService

func (*LedgerService) CreatePayment

func (ls *LedgerService) CreatePayment(p entities.Payment) (entities.Payment, error)

func (*LedgerService) ReadPayment

func (ls *LedgerService) ReadPayment(id uuid.UUID) (entities.Payment, error)

func (*LedgerService) ReadPaymentUsingBankReference

func (ls *LedgerService) ReadPaymentUsingBankReference(bankPaymentID uuid.UUID) (entities.Payment, error)

func (*LedgerService) SetPaymentFail

func (ls *LedgerService) SetPaymentFail(p entities.Payment) (entities.Payment, error)

func (*LedgerService) SetPaymentPending

func (ls *LedgerService) SetPaymentPending(p entities.Payment) (entities.Payment, error)

func (*LedgerService) SetPaymentSuccess

func (ls *LedgerService) SetPaymentSuccess(p entities.Payment) (entities.Payment, error)

Jump to

Keyboard shortcuts

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