Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct {
Type common.TokenType `json:"type" binding:"required"`
Number string `json:"number" binding:"required"`
ExpiryMonth uint64 `json:"expiry_month" binding:"required"`
ExpiryYear uint64 `json:"expiry_year" binding:"required"`
Name string `json:"name,omitempty"`
CVV string `json:"cvv,omitempty"`
BillingAddress *common.Address `json:"billing_address,omitempty"`
Phone *common.Phone `json:"phone,omitempty"`
}
Card -
type Created ¶
type Created struct {
Type string `json:"type,omitempty"`
Token string `json:"token" binding:"required"`
ExpiresOn time.Time `json:"expires_on,omitempty"`
ExpiryMonth uint64 `json:"expiry_month,omitempty"`
ExpiryYear uint64 `json:"expiry_year,omitempty"`
Scheme string `json:"scheme,omitempty"`
Last4 string `json:"last4,omitempty"`
Bin string `json:"bin,omitempty"`
CardType common.CardType `json:"card_type,omitempty"`
CardCategory common.CardCategory `json:"card_category,omitempty"`
Issuer string `json:"issuer,omitempty"`
IssuerCountry string `json:"issuer_country,omitempty"`
ProductID string `json:"product_id,omitempty"`
ProductType string `json:"product_type,omitempty"`
}
Created -
type Response ¶
type Response struct {
StatusResponse *checkout.StatusResponse `json:"api_response,omitempty"`
Created *Created `json:"created,omitempty"`
}
Response -
Click to show internal directories.
Click to hide internal directories.