Fulfilment entitlement definitions.
Summary
Types
Parameters for entitlements_create. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/entitlements/entitlements.ts declaration EntitlementCreateParams.
Parameters for entitlements_list. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/entitlements/entitlements.ts declaration EntitlementListParams.
Parameters for entitlements_update. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/entitlements/entitlements.ts declaration EntitlementUpdateParams.
Functions
Calls Dodo operation entitlements_create (POST /entitlements). Required parameters: :integration_config, :integration_type, :name.
Calls Dodo operation entitlements_create (POST /entitlements). Required parameters: :integration_config, :integration_type, :name.
Calls Dodo operation entitlements_delete (DELETE /entitlements/{id}). Required parameters: none.
Calls Dodo operation entitlements_list (GET /entitlements). Required parameters: none. Numbered pagination is zero-based.
Calls Dodo operation entitlements_list (GET /entitlements). Required parameters: none. Numbered pagination is zero-based.
Calls Dodo operation entitlements_list (GET /entitlements). Required parameters: none. Numbered pagination is zero-based.
Calls Dodo operation entitlements_retrieve (GET /entitlements/{id}). Required parameters: none.
Calls Dodo operation entitlements_update (PATCH /entitlements/{id}). Required parameters: none.
Calls Dodo operation entitlements_update (PATCH /entitlements/{id}). Required parameters: none.
Calls Dodo operation entitlements_update (PATCH /entitlements/{id}). Required parameters: none.
Types
@type create_params() :: %{ :integration_config => DodoPayments.RequestTypes.entitlement_integration_config(), :integration_type => DodoPayments.Enums.entitlement_integration_type(), :name => String.t(), optional(:description) => String.t(), optional(:metadata) => DodoPayments.RequestTypes.flat_metadata(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for entitlements_create. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/entitlements/entitlements.ts declaration EntitlementCreateParams.
@type list_params() :: %{ optional(:page_number) => number(), optional(:page_size) => number(), optional(:integration_type) => DodoPayments.Enums.entitlement_integration_type(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for entitlements_list. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/entitlements/entitlements.ts declaration EntitlementListParams.
@type update_params() :: %{ optional(:description) => String.t(), optional(:integration_config) => DodoPayments.RequestTypes.entitlement_integration_config(), optional(:metadata) => DodoPayments.RequestTypes.flat_metadata(), optional(:name) => String.t(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for entitlements_update. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/entitlements/entitlements.ts declaration EntitlementUpdateParams.
Functions
@spec create(DodoPayments.Client.t(), create_params()) :: {:ok, DodoPayments.Entitlement.t()} | {:error, Exception.t()}
Calls Dodo operation entitlements_create (POST /entitlements). Required parameters: :integration_config, :integration_type, :name.
API parameters must be supplied as a map.
@spec create(DodoPayments.Client.t(), create_params(), keyword()) :: {:ok, DodoPayments.Entitlement.t() | DodoPayments.Response.t(DodoPayments.Entitlement.t())} | {:error, Exception.t()}
Calls Dodo operation entitlements_create (POST /entitlements). Required parameters: :integration_config, :integration_type, :name.
The final argument contains request-local options.
@spec delete(DodoPayments.Client.t(), String.t() | integer(), keyword()) :: {:ok, nil | DodoPayments.Response.t(nil)} | {:error, Exception.t()}
Calls Dodo operation entitlements_delete (DELETE /entitlements/{id}). Required parameters: none.
Options are request-local.
@spec list(DodoPayments.Client.t()) :: {:ok, DodoPayments.Page.Numbered.t(DodoPayments.Entitlement.t())} | {:error, Exception.t()}
Calls Dodo operation entitlements_list (GET /entitlements). Required parameters: none. Numbered pagination is zero-based.
Calls the operation with an empty parameter map.
@spec list(DodoPayments.Client.t(), list_params() | nil | keyword()) :: {:ok, DodoPayments.Page.Numbered.t(DodoPayments.Entitlement.t()) | DodoPayments.Response.t( DodoPayments.Page.Numbered.t(DodoPayments.Entitlement.t()) )} | {:error, Exception.t()}
Calls Dodo operation entitlements_list (GET /entitlements). Required parameters: none. Numbered pagination is zero-based.
Pass a map for Dodo parameters or a keyword list for request-local options.
@spec list(DodoPayments.Client.t(), list_params() | nil, keyword()) :: {:ok, DodoPayments.Page.Numbered.t(DodoPayments.Entitlement.t()) | DodoPayments.Response.t( DodoPayments.Page.Numbered.t(DodoPayments.Entitlement.t()) )} | {:error, Exception.t()}
Calls Dodo operation entitlements_list (GET /entitlements). Required parameters: none. Numbered pagination is zero-based.
Accepts both a Dodo parameter map and request-local options.
@spec retrieve(DodoPayments.Client.t(), String.t() | integer(), keyword()) :: {:ok, DodoPayments.Entitlement.t() | DodoPayments.Response.t(DodoPayments.Entitlement.t())} | {:error, Exception.t()}
Calls Dodo operation entitlements_retrieve (GET /entitlements/{id}). Required parameters: none.
Options are request-local.
@spec update(DodoPayments.Client.t(), String.t() | integer()) :: {:ok, DodoPayments.Entitlement.t()} | {:error, Exception.t()}
Calls Dodo operation entitlements_update (PATCH /entitlements/{id}). Required parameters: none.
Calls the operation with an empty parameter map.
@spec update( DodoPayments.Client.t(), String.t() | integer(), update_params() | nil | keyword() ) :: {:ok, DodoPayments.Entitlement.t() | DodoPayments.Response.t(DodoPayments.Entitlement.t())} | {:error, Exception.t()}
Calls Dodo operation entitlements_update (PATCH /entitlements/{id}). Required parameters: none.
Pass a map for Dodo parameters or a keyword list for request-local options.
@spec update( DodoPayments.Client.t(), String.t() | integer(), update_params() | nil, keyword() ) :: {:ok, DodoPayments.Entitlement.t() | DodoPayments.Response.t(DodoPayments.Entitlement.t())} | {:error, Exception.t()}
Calls Dodo operation entitlements_update (PATCH /entitlements/{id}). Required parameters: none.
Accepts both a Dodo parameter map and request-local options.