Request module for making HTTP requests to Razorpay API.
This is the core HTTP client, similar to Ruby SDK's Request class.
Summary
Functions
Lists all entities with optional filters.
Creates a new entity.
Deletes an entity.
Fetches an entity by ID.
Makes a GET request to a specific URL.
Patches an entity (partial update).
Makes a POST request to a specific URL.
Makes a raw HTTP request to Razorpay API.
Makes a request and parses the response.
Updates an entity.
Types
@type http_method() :: :get | :post | :put | :patch | :delete
@type response() :: {:ok, map() | list()} | {:error, RazorpayEx.Error.t()}
Functions
Lists all entities with optional filters.
Similar to Ruby SDK's Request#all method.
Creates a new entity.
Similar to Ruby SDK's Request#create method.
Deletes an entity.
Similar to Ruby SDK's Request#delete method.
Fetches an entity by ID.
Similar to Ruby SDK's Request#fetch method.
Makes a GET request to a specific URL.
Similar to Ruby SDK's Request#get method.
Patches an entity (partial update).
Similar to Ruby SDK's Request#patch method.
Makes a POST request to a specific URL.
Similar to Ruby SDK's Request#post method.
@spec raw_request(http_method(), String.t(), map(), keyword()) :: {:ok, HTTPoison.Response.t()} | {:error, RazorpayEx.Error.t()}
Makes a raw HTTP request to Razorpay API.
Similar to Ruby SDK's Request#raw_request method.
@spec request(http_method(), String.t(), map(), keyword()) :: response()
Makes a request and parses the response.
Similar to Ruby SDK's Request#request method.
Updates an entity.
Similar to Ruby SDK's Request#put method.