Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
API checkout.HTTPClient
}
Client ...
type Customer ¶
type Customer struct { ID string `json:"id,omitempty"` Email string `json:"email,omitempty"` Name string `json:"name,omitempty"` Phone *common.Phone `json:"phone,omitempty"` Default *bool `json:"default,omitempty"` }
Customer -
type Instrument ¶
type Instrument struct { ID string `json:"id"` Type string `json:"type,omitempty"` Fingerprint string `json:"fingerprint,omitempty"` ExpiryMonth int `json:"expiry_month,omitempty"` ExpiryYear int `json:"expiry_year,omitempty"` Name string `json:"name,omitempty"` Scheme string `json:"scheme,omitempty"` Last4 string `json:"last4,omitempty"` Bin string `json:"bin,omitempty"` CardType string `json:"card_type,omitempty"` CardCategory string `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"` AccountHolder common.AccountHolder `json:"account_holder,omitempty"` }
type InstrumentResponse ¶
type InstrumentResponse struct { *Instrument Customer *Customer `json:"customer,omitempty"` }
InstrumentResponse -
type Request ¶
type Request struct { Type string `json:"type" binding:"required"` Token string `json:"token" binding:"required"` AccountHolder *common.AccountHolder `json:"account_holder,omitempty"` Customer *Customer `json:"customer,omitempty"` }
Request -
type Response ¶
type Response struct { StatusResponse *checkout.StatusResponse `json:"api_response,omitempty"` Instrument *InstrumentResponse `json:"instrument_response,omitempty"` }
Response -
Click to show internal directories.
Click to hide internal directories.