package
Version:
v0.0.0-...-f1a69a6
Opens a new window with list of versions in this module.
Published: Feb 3, 2020
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CardInformation struct {
CardNumber string `json:"card_number"`
Cvv string `json:"cvv"`
ExpiryDate string `json:"expiry_date"`
}
type Client struct {
BaseURL *url.URL
}
type PaymentInformation struct {
CardToken string `json:"card_token"`
ReservationID int `json:"reservation_id"`
Datetime time.Time `json:"datetime"`
Amount int64 `json:"amount"`
IsCanceled bool `json:"is_canceled"`
}
type PaymentResult struct {
RawData []*RawData `json:"raw_data"`
IsOK bool `json:"is_ok"`
}
type RegistCardResponse struct {
CardToken string `json:"card_token"`
IsOK bool `json:"is_ok"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.