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 {
Email string `json:"email" binding:"required"`
Name string `json:"name,omitempty"`
Phone *common.Phone `json:"phone,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
Customer request
type CustomerResponse ¶
type CustomerResponse struct {
ID string `json:"id"`
Email string `json:"email,omitempty"`
Default string `json:"default,omitempty"`
Name string `json:"name,omitempty"`
Phone *common.Phone `json:"phone,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
Instruments []instruments.Instrument `json:"instruments,omitempty"`
}
CustomerResponse - When the create endpoint is called, only ID fill be filled
type Response ¶
type Response struct {
StatusResponse *checkout.StatusResponse `json:"api_response,omitempty"`
Customer *CustomerResponse `json:"customer,omitempty"`
}
Response for customer
Click to show internal directories.
Click to hide internal directories.