Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiRequest = Api{ // contains filtered or unexported fields }
Functions ¶
Types ¶
type CustomerApi ¶
type CustomerApi struct {
// contains filtered or unexported fields
}
func NewCustomerApi ¶
func NewCustomerApi() *CustomerApi
func (*CustomerApi) CreateCustomer ¶
func (api *CustomerApi) CreateCustomer(req models.CreateCustomerRequest) (*models.CreateCustomerResponse, error)
type CustomerApiInterface ¶
type CustomerApiInterface interface {
CreateCustomer(models.CreateCustomerRequest) (*models.CreateCustomerResponse, error)
}
type SquareApiErrRes ¶
type SquareApiErrRes struct {
Errors []struct {
Category string `json:"category"`
Code string `json:"code"`
Detail string `json:"detail"`
} `json:"errors"`
}
func (*SquareApiErrRes) Error ¶
func (e *SquareApiErrRes) Error() string
Click to show internal directories.
Click to hide internal directories.