Add-on catalogue operations.
Summary
Types
Parameters for addons_create. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/addons.ts declaration AddonCreateParams.
Parameters for addons_list. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/addons.ts declaration AddonListParams.
Parameters for addons_update. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/addons.ts declaration AddonUpdateParams.
Functions
Calls Dodo operation addons_create (POST /addons). Required parameters: :currency, :name, :price, :tax_category.
Calls Dodo operation addons_create (POST /addons). Required parameters: :currency, :name, :price, :tax_category.
Calls Dodo operation addons_list (GET /addons). Required parameters: none. Numbered pagination is zero-based.
Calls Dodo operation addons_list (GET /addons). Required parameters: none. Numbered pagination is zero-based.
Calls Dodo operation addons_list (GET /addons). Required parameters: none. Numbered pagination is zero-based.
Calls Dodo operation addons_retrieve (GET /addons/{id}). Required parameters: none.
Calls Dodo operation addons_update (PATCH /addons/{id}). Required parameters: none.
Calls Dodo operation addons_update (PATCH /addons/{id}). Required parameters: none.
Calls Dodo operation addons_update (PATCH /addons/{id}). Required parameters: none.
Calls Dodo operation addons_update_images (PUT /addons/{id}/images). Required parameters: none.
Types
@type create_params() :: %{ :currency => DodoPayments.Enums.currency(), :name => String.t(), :price => number(), :tax_category => DodoPayments.Enums.tax_category(), optional(:description) => String.t(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for addons_create. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/addons.ts declaration AddonCreateParams.
@type list_params() :: %{ optional(:page_number) => number(), optional(:page_size) => number(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for addons_list. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/addons.ts declaration AddonListParams.
@type update_params() :: %{ optional(:currency) => DodoPayments.Enums.currency(), optional(:description) => String.t(), optional(:image_id) => String.t(), optional(:name) => String.t(), optional(:price) => number(), optional(:tax_category) => DodoPayments.Enums.tax_category(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for addons_update. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/addons.ts declaration AddonUpdateParams.
Functions
@spec create(DodoPayments.Client.t(), create_params()) :: {:ok, DodoPayments.Addon.t()} | {:error, Exception.t()}
Calls Dodo operation addons_create (POST /addons). Required parameters: :currency, :name, :price, :tax_category.
API parameters must be supplied as a map.
@spec create(DodoPayments.Client.t(), create_params(), keyword()) :: {:ok, DodoPayments.Addon.t() | DodoPayments.Response.t(DodoPayments.Addon.t())} | {:error, Exception.t()}
Calls Dodo operation addons_create (POST /addons). Required parameters: :currency, :name, :price, :tax_category.
The final argument contains request-local options.
@spec list(DodoPayments.Client.t()) :: {:ok, DodoPayments.Page.Numbered.t(DodoPayments.Addon.t())} | {:error, Exception.t()}
Calls Dodo operation addons_list (GET /addons). 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.Addon.t()) | DodoPayments.Response.t( DodoPayments.Page.Numbered.t(DodoPayments.Addon.t()) )} | {:error, Exception.t()}
Calls Dodo operation addons_list (GET /addons). 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.Addon.t()) | DodoPayments.Response.t( DodoPayments.Page.Numbered.t(DodoPayments.Addon.t()) )} | {:error, Exception.t()}
Calls Dodo operation addons_list (GET /addons). 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.Addon.t() | DodoPayments.Response.t(DodoPayments.Addon.t())} | {:error, Exception.t()}
Calls Dodo operation addons_retrieve (GET /addons/{id}). Required parameters: none.
Options are request-local.
@spec update(DodoPayments.Client.t(), String.t() | integer()) :: {:ok, DodoPayments.Addon.t()} | {:error, Exception.t()}
Calls Dodo operation addons_update (PATCH /addons/{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.Addon.t() | DodoPayments.Response.t(DodoPayments.Addon.t())} | {:error, Exception.t()}
Calls Dodo operation addons_update (PATCH /addons/{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.Addon.t() | DodoPayments.Response.t(DodoPayments.Addon.t())} | {:error, Exception.t()}
Calls Dodo operation addons_update (PATCH /addons/{id}). Required parameters: none.
Accepts both a Dodo parameter map and request-local options.
@spec update_images(DodoPayments.Client.t(), String.t() | integer(), keyword()) :: {:ok, DodoPayments.PresignedImageUpload.t() | DodoPayments.Response.t(DodoPayments.PresignedImageUpload.t())} | {:error, Exception.t()}
Calls Dodo operation addons_update_images (PUT /addons/{id}/images). Required parameters: none.
Options are request-local.