Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardAuthorizationRequest ¶
type CardAuthorizationRequest struct { Card CardSimulation `json:"card,omitempty"` Transaction TransactionSimulation `json:"transaction,omitempty"` }
type CardAuthorizationResponse ¶
type CardAuthorizationResponse struct { HttpMetadata common.HttpMetadata Id string `json:"id,omitempty"` Status TransactionStatus `json:"status,omitempty"` }
type CardSimulation ¶
type CardSimulationRequest ¶
type CardSimulationRequest struct {
Amount int `json:"amount,omitempty"`
}
type CardSimulationResponse ¶
type CardSimulationResponse struct { HttpMetadata common.HttpMetadata Status TransactionStatus `json:"status,omitempty"` }
type TransactionSimulation ¶
type TransactionSimulation struct { Type TransactionType `json:"type,omitempty"` Amount int `json:"amount,omitempty"` Currency common.Currency `json:"currency,omitempty"` }
type TransactionStatus ¶
type TransactionStatus string
const ( Authorized TransactionStatus = "Authorized" Declined TransactionStatus = "Declined" Reversed TransactionStatus = "Reversed" )
Click to show internal directories.
Click to hide internal directories.