Documentation ¶
Index ¶
- func NewCaptureOrderUseCase(service service.OrderProviderService, r repository.OrderRepository) use_case.UseCase[CaptureOrderInput, CaptureOrderOutput]
- func NewCreateOrderUseCase(service service.OrderProviderService, r repository.OrderRepository) use_case.UseCase[CreateOrderInput, CreateOrderOutput]
- func NewCreateRefundUseCase(service service.OrderProviderService, r repository.OrderRepository) use_case.UseCase[CreateRefundInput, CreateRefundOutput]
- func NewGetOrderUseCase(r repository.OrderRepository) use_case.UseCase[GetOrderInput, GetOrderOutput]
- func NewGetRefundUseCase() use_case.UseCase[GetRefundInput, GetRefundOutput]
- type CaptureOrderInput
- type CaptureOrderOutput
- type CaptureOrderUseCase
- type CreateOrderInput
- type CreateOrderOutput
- type CreateOrderUseCase
- type CreateRefundInput
- type CreateRefundOutput
- type CreateRefundUseCase
- type GetOrderInput
- type GetOrderOutput
- type GetOrderUseCase
- type GetRefundInput
- type GetRefundOutput
- type GetRefundUseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCaptureOrderUseCase ¶
func NewCaptureOrderUseCase(service service.OrderProviderService, r repository.OrderRepository) use_case.UseCase[CaptureOrderInput, CaptureOrderOutput]
func NewCreateOrderUseCase ¶
func NewCreateOrderUseCase(service service.OrderProviderService, r repository.OrderRepository) use_case.UseCase[CreateOrderInput, CreateOrderOutput]
func NewCreateRefundUseCase ¶
func NewCreateRefundUseCase(service service.OrderProviderService, r repository.OrderRepository) use_case.UseCase[CreateRefundInput, CreateRefundOutput]
func NewGetOrderUseCase ¶
func NewGetOrderUseCase(r repository.OrderRepository) use_case.UseCase[GetOrderInput, GetOrderOutput]
func NewGetRefundUseCase ¶
func NewGetRefundUseCase() use_case.UseCase[GetRefundInput, GetRefundOutput]
Types ¶
type CaptureOrderInput ¶
type CaptureOrderInput struct { OrderId uuid.UUID ProviderType shared_domain.ProviderType }
type CaptureOrderOutput ¶
type CaptureOrderUseCase ¶
type CaptureOrderUseCase interface {
Handle(ctx context.Context, input CaptureOrderInput) (CaptureOrderOutput, error)
}
type CreateOrderInput ¶
type CreateOrderInput struct { Amount string Currency string ProviderType shared_domain.ProviderType }
type CreateOrderOutput ¶
type CreateOrderUseCase ¶
type CreateOrderUseCase interface {
Handle(ctx context.Context, input CreateOrderInput) (CreateOrderOutput, error)
}
type CreateRefundInput ¶
type CreateRefundInput struct { CaptureOrderId uuid.UUID ProviderType shared_domain.ProviderType }
type CreateRefundOutput ¶
type CreateRefundUseCase ¶
type CreateRefundUseCase interface {
Handle(ctx context.Context, input CreateRefundInput) (CreateRefundOutput, error)
}
type GetOrderInput ¶
type GetOrderOutput ¶
type GetOrderOutput struct { Id uuid.UUID Amount string Currency string CreatedAt int64 ProviderType shared_domain.ProviderType }
type GetOrderUseCase ¶
type GetOrderUseCase interface {
Handle(ctx context.Context, input GetOrderInput) (GetOrderOutput, error)
}
type GetRefundInput ¶
type GetRefundInput struct{}
type GetRefundOutput ¶
type GetRefundOutput struct{}
type GetRefundUseCase ¶
type GetRefundUseCase interface {
Handle(ctx context.Context, input GetRefundInput) (GetRefundOutput, error)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.