Constants for RazorpayEx - mirrors constants from Ruby SDK.
Summary
Functions
Returns the API host URL.
Returns the API version.
Returns basic authentication type.
Returns the auth host URL.
Returns OAuth authentication type.
Returns the auth API URL (v2).
Returns the base API URL (v1).
Returns default timeout in milliseconds.
Returns the pluralized entity name for API endpoints.
Returns entity name for a given resource type.
Returns all supported entity names.
Returns the test URL for connectivity checks.
Returns the user agent string.
Returns the webhook signature header name.
Functions
@spec api_host() :: String.t()
Returns the API host URL.
@spec api_version() :: String.t()
Returns the API version.
@spec auth_basic() :: atom()
Returns basic authentication type.
@spec auth_host() :: String.t()
Returns the auth host URL.
@spec auth_oauth() :: atom()
Returns OAuth authentication type.
@spec auth_url() :: String.t()
Returns the auth API URL (v2).
@spec base_url() :: String.t()
Returns the base API URL (v1).
@spec default_timeout() :: integer()
Returns default timeout in milliseconds.
Returns the pluralized entity name for API endpoints.
Examples
RazorpayEx.Constants.endpoint_path(:payment) # "payments"
RazorpayEx.Constants.endpoint_path(:customer) # "customers"
Returns entity name for a given resource type.
Examples
RazorpayEx.Constants.entity_name(:payment) # "payment"
RazorpayEx.Constants.entity_name(:order) # "order"
@spec entity_names() :: map()
Returns all supported entity names.
@spec test_url() :: String.t()
Returns the test URL for connectivity checks.
@spec user_agent() :: String.t()
Returns the user agent string.
@spec webhook_signature_header() :: String.t()
Returns the webhook signature header name.