| Field | Type | Required | Description | Example |
|---|---|---|---|---|
data |
T.nilable(T.any(T::Hash[Symbol, ::Object], T::Array[T::Hash[Symbol, ::Object]], ::String, ::Float, T::Boolean)) | ➖ | The response data from the provider. Can be an object, array, or primitive value. | { "id": "123", "name": "John Doe", "email": "john.doe@example.com" } |
headers |
T::Hash[Symbol, ::Object] | ➖ | The headers returned by the provider | { "content-type": "application/json", "x-request-id": "123e4567-e89b-12d3-a456-426614174000" } |
provider_errors |
T::Array<Models::Shared::ProviderErrorApiModel> | ➖ | Provider-specific errors if any occurred | [ { "status": 400, "url": "https://api.someprovider.com/v1/endpoint", "raw": { "error": "Bad Request", "message": "The supplied data is invalid" }, "headers": { "date": "Tue, 02 Apr 2024 13:52:01 GMT", "content-type": "application/json; charset=utf-8" } } ] |
status |
::Float | ✔️ | The HTTP status code returned by the provider | 200 |