dto

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpError

func NewHttpError(c *fiber.Ctx, err error) error

Types

type HttpError

type HttpError struct {
	Code    int      `json:"code"`
	Message []string `json:"message"`
}

type Payment

type Payment struct {
	Id string `json:"id"`
}

func NewPayment

func NewPayment(id string) *Payment

type Transaction

type Transaction struct {
	CardToken            string   `json:"card_token"            validate:"required"`
	PurchaseValue        float64  `json:"purchase_value"        validate:"required"`
	PurchaseItens        []string `json:"purchase_items"        validate:"required"`
	PurchaseInstallments int      `json:"purchase_installments" validate:"required"`
	StoreIdentification  string   `json:"store_identification"  validate:"required"`
	StoreAddress         string   `json:"store_address"         validate:"required"`
	StoreCep             string   `json:"store_cep"             validate:"required"`
	AcquirerName         string   `json:"acquirer_name"         validate:"required"`
}

func (*Transaction) Validate

func (t *Transaction) Validate() error

Jump to

Keyboard shortcuts

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