usecase

package
v0.0.0-...-92726a5 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type CaptureOrderInput

type CaptureOrderInput struct {
	OrderId      uuid.UUID
	ProviderType shared_domain.ProviderType
}

type CaptureOrderOutput

type CaptureOrderOutput struct {
	Id        uuid.UUID
	Amount    string
	Currency  string
	CreatedAt int64
}

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 CreateOrderOutput struct {
	Id        uuid.UUID
	Amount    string
	Currency  string
	CreatedAt int64
}

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 CreateRefundOutput struct {
	Id        uuid.UUID
	Amount    string
	Currency  string
	CreatedAt int64
}

type CreateRefundUseCase

type CreateRefundUseCase interface {
	Handle(ctx context.Context, input CreateRefundInput) (CreateRefundOutput, error)
}

type GetOrderInput

type GetOrderInput struct {
	Id uuid.UUID
}

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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