adminorder

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package adminorder implements the admin-side order management subdomain of the billing module. Only the module facade may reach it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivationEnqueuer

type ActivationEnqueuer interface {
	EnqueueActivation(ctx context.Context, orderNo string) error
}

ActivationEnqueuer mirrors the facade's activation queue port.

type Service

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

func NewService

func NewService(orders repository.OrderRepo, payments repository.PaymentRepo, tx Transactor, queue ActivationEnqueuer) *Service

func (*Service) Create

func (s *Service) Create(ctx context.Context, req *dto.CreateOrderRequest) error

func (*Service) List

func (*Service) UpdateStatus

func (s *Service) UpdateStatus(ctx context.Context, req *dto.UpdateOrderStatusRequest) error

type Transactor

type Transactor interface {
	InBillingTx(ctx context.Context, fn func(repository.BillingStore) error) error
}

Transactor mirrors the facade's billing-scoped transaction port.

Jump to

Keyboard shortcuts

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