Documentation ¶
Index ¶
- func GetId(json *simplejson.Json) (string, error)
- type Account
- type Card
- type Charge
- func (c Charge) All(args map[string]int, customer, recursion string) (*simplejson.Json, error)
- func (c Charge) Create(amount float64, currency string, card Card) (*simplejson.Json, error)
- func (c Charge) CreateByCustomer(amount float64, currency string, customer string) (*simplejson.Json, error)
- func (c Charge) Retrieve(chid string) (*simplejson.Json, error)
- type Customer
- func (c Customer) All(args map[string]int) (*simplejson.Json, error)
- func (c Customer) Create(card Card, email, description string) (*simplejson.Json, error)
- func (c Customer) CreateByToken(token, email, description string) (*simplejson.Json, error)
- func (c Customer) Delete(customerId string) (*simplejson.Json, error)
- type Event
- type Recursion
- func (c Recursion) All(args map[string]int) (*simplejson.Json, error)
- func (c Recursion) Create(amount float64, currency, customer, period, description string) (*simplejson.Json, error)
- func (c Recursion) Delete(recursionId string) (*simplejson.Json, error)
- func (c Recursion) Retrieve(recid string) (*simplejson.Json, error)
- type Token
- type WebPayClient
- func (cli WebPayClient) Delete(path string, params url.Values) (*simplejson.Json, error)
- func (cli WebPayClient) Get(path string, params url.Values) (*simplejson.Json, error)
- func (cli WebPayClient) Post(path string, params url.Values) (*simplejson.Json, error)
- func (cli WebPayClient) Request(method, path string, params url.Values) (*simplejson.Json, error)
- func (cli WebPayClient) SetAcceptLanguage(lang string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func NewAccount(cli *WebPayClient) Account
type Charge ¶
type Charge struct {
// contains filtered or unexported fields
}
func NewCharge ¶
func NewCharge(cli *WebPayClient) Charge
func (Charge) CreateByCustomer ¶
func (c Charge) CreateByCustomer(amount float64, currency string, customer string) (*simplejson.Json, error)
CreateByCustomer creates Charge from specified Customer.
type Customer ¶
type Customer struct {
// contains filtered or unexported fields
}
func NewCustomer ¶
func NewCustomer(cli *WebPayClient) Customer
func (Customer) CreateByToken ¶
func (c Customer) CreateByToken(token, email, description string) (*simplejson.Json, error)
CreateByToken creates Customer from the token.
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func NewEvent ¶
func NewEvent(cli *WebPayClient) Event
type Recursion ¶
type Recursion struct {
// contains filtered or unexported fields
}
func NewRecursion ¶
func NewRecursion(cli *WebPayClient) Recursion
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
func NewToken ¶
func NewToken(cli *WebPayClient) Token
type WebPayClient ¶
type WebPayClient struct { Charge Charge Customer Customer Recursion Recursion Token Token Event Event Account Account // contains filtered or unexported fields }
func NewWebPayClient ¶
func NewWebPayClient(auth_token string) WebPayClient
func (WebPayClient) Delete ¶
func (cli WebPayClient) Delete(path string, params url.Values) (*simplejson.Json, error)
func (WebPayClient) Get ¶
func (cli WebPayClient) Get(path string, params url.Values) (*simplejson.Json, error)
func (WebPayClient) Post ¶
func (cli WebPayClient) Post(path string, params url.Values) (*simplejson.Json, error)
func (WebPayClient) Request ¶
func (cli WebPayClient) Request(method, path string, params url.Values) (*simplejson.Json, error)
func (WebPayClient) SetAcceptLanguage ¶
func (cli WebPayClient) SetAcceptLanguage(lang string)
Click to show internal directories.
Click to hide internal directories.