Documentation
¶
Overview ¶
Package adminpayment implements the payment-method management subdomain of the billing module. Only the module facade may reach it.
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, req *dto.CreatePaymentMethodRequest) (*dto.PaymentConfig, error)
- func (s *Service) Delete(ctx context.Context, req *dto.DeletePaymentMethodRequest) error
- func (s *Service) List(ctx context.Context, req *dto.GetPaymentMethodListRequest) (*dto.GetPaymentMethodListResponse, error)
- func (s *Service) Platforms(_ context.Context) (*dto.PlatformResponse, error)
- func (s *Service) Update(ctx context.Context, req *dto.UpdatePaymentMethodRequest) (*dto.PaymentConfig, error)
- type Transactor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(payments repository.PaymentRepo, orders repository.OrderRepo, tx Transactor, host string, isGatewayMode func() bool) *Service
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, req *dto.CreatePaymentMethodRequest) (*dto.PaymentConfig, error)
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *dto.GetPaymentMethodListRequest) (*dto.GetPaymentMethodListResponse, error)
func (*Service) Update ¶
func (s *Service) Update(ctx context.Context, req *dto.UpdatePaymentMethodRequest) (*dto.PaymentConfig, 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.
Click to show internal directories.
Click to hide internal directories.