Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpError ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.