package airwallex import "fmt" // PaginatedResponse represents a paginated API response. type PaginatedResponse struct { Items []map[string]interface{} `json:"items"` HasMore bool `json:"has_more"` } // APIError represents an Airwallex API error. type APIError struct { Code string `json:"code"` Message string `json:"message"` Source string `json:"source"` StatusCode int `json:"-"` } // Error implements the error interface. func (e *APIError) Error() string { return fmt.Sprintf("airwallex: %s - %s (status %d)", e.Code, e.Message, e.StatusCode) }