usecase

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProcessPayment

type IProcessPayment interface {
	Execute(ctx context.Context, input *ProcessPaymentInput) (*ProcessPaymentOutput, error)
}

type ProcessPayment

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

func NewProcessPayment

func NewProcessPayment(cardRepository repository.ICardRepository, paymentService service.IPaymentService) *ProcessPayment

func (*ProcessPayment) Execute

type ProcessPaymentInput

type ProcessPaymentInput struct {
	CardToken            string
	PurchaseValue        float64
	PurchaseItems        []string
	PurchaseInstallments int
	StoreIdentification  string
	StoreAddress         string
	StoreCep             string
	AcquirerName         string
}

type ProcessPaymentOutput

type ProcessPaymentOutput struct {
	PaymentId string
}

Jump to

Keyboard shortcuts

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