Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { Message string `json:"message,omitempty"` HTTPStatusCode int `json:"code,omitempty"` Details ErrorResponse `json:"details,omitempty"` URL *url.URL `json:"url,omitempty"` Header http.Header `json:"header,omitempty"` }
APIError includes the response from the Paystack API and some HTTP request info
func NewAPIError ¶
type ErrorResponse ¶
type ErrorResponse struct { Status bool `json:"status,omitempty"` Message string `json:"message,omitempty"` Errors map[string]interface{} `json:"errors,omitempty"` }
ErrorResponse represents an error response from the Paystack API server
type ListMeta ¶
type ListMeta struct { Total int `json:"total"` Skipped int `json:"skipped"` PerPage int `json:"perPage"` Page int `json:"page"` PageCount int `json:"pageCount"` }
ListMeta is pagination metadata for paginated responses from the Paystack API
type RequestValues ¶
RequestValues aliased to url.Values as a workaround
func (RequestValues) MarshalJSON ¶
func (v RequestValues) MarshalJSON() ([]byte, error)
MarshalJSON to handle custom JSON decoding for RequestValues
Click to show internal directories.
Click to hide internal directories.