Brand and brand-image operations.
Summary
Types
Parameters for brands_archive. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/brands.ts declaration BrandArchiveParams.
Parameters for brands_create. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/brands.ts declaration BrandCreateParams.
Parameters for brands_list. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/brands.ts declaration BrandListParams.
Parameters for brands_update. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/brands.ts declaration BrandUpdateParams.
Functions
Calls Dodo operation brands_archive (POST /brands/{id}/archive). Required parameters: none.
Calls Dodo operation brands_archive (POST /brands/{id}/archive). Required parameters: none.
Calls Dodo operation brands_archive (POST /brands/{id}/archive). Required parameters: none.
Calls Dodo operation brands_create (POST /brands). Required parameters: none.
Calls Dodo operation brands_create (POST /brands). Required parameters: none.
Calls Dodo operation brands_create (POST /brands). Required parameters: none.
Calls Dodo operation brands_list (GET /brands). Required parameters: none.
Calls Dodo operation brands_list (GET /brands). Required parameters: none.
Calls Dodo operation brands_list (GET /brands). Required parameters: none.
Calls Dodo operation brands_retrieve (GET /brands/{id}). Required parameters: none.
Calls Dodo operation brands_update (PATCH /brands/{id}). Required parameters: none.
Calls Dodo operation brands_update (PATCH /brands/{id}). Required parameters: none.
Calls Dodo operation brands_update (PATCH /brands/{id}). Required parameters: none.
Calls Dodo operation brands_update_images (PUT /brands/{id}/images). Required parameters: none.
Types
@type archive_params() :: %{ optional(:move_products_to) => String.t(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for brands_archive. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/brands.ts declaration BrandArchiveParams.
@type create_params() :: %{ optional(:description) => String.t(), optional(:name) => String.t(), optional(:statement_descriptor) => String.t(), optional(:support_email) => String.t(), optional(:url) => String.t(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for brands_create. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/brands.ts declaration BrandCreateParams.
@type list_params() :: %{ optional(:include_archived) => boolean(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for brands_list. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/brands.ts declaration BrandListParams.
@type update_params() :: %{ optional(:description) => String.t(), optional(:image_id) => String.t(), optional(:name) => String.t(), optional(:statement_descriptor) => String.t(), optional(:support_email) => String.t(), optional(:url) => String.t(), optional(String.t()) => DodoPayments.RequestTypes.input_value() } | DodoPayments.RequestTypes.compatibility_params()
Parameters for brands_update. Exact fields use atom keys; string-keyed and mixed-key maps remain supported. Source: locked upstream resources/brands.ts declaration BrandUpdateParams.
Functions
@spec archive(DodoPayments.Client.t(), String.t() | integer()) :: {:ok, DodoPayments.BrandArchiveResponse.t()} | {:error, Exception.t()}
Calls Dodo operation brands_archive (POST /brands/{id}/archive). Required parameters: none.
Calls the operation with an empty parameter map.
@spec archive( DodoPayments.Client.t(), String.t() | integer(), archive_params() | nil | keyword() ) :: {:ok, DodoPayments.BrandArchiveResponse.t() | DodoPayments.Response.t(DodoPayments.BrandArchiveResponse.t())} | {:error, Exception.t()}
Calls Dodo operation brands_archive (POST /brands/{id}/archive). Required parameters: none.
Pass a map for Dodo parameters or a keyword list for request-local options.
@spec archive( DodoPayments.Client.t(), String.t() | integer(), archive_params() | nil, keyword() ) :: {:ok, DodoPayments.BrandArchiveResponse.t() | DodoPayments.Response.t(DodoPayments.BrandArchiveResponse.t())} | {:error, Exception.t()}
Calls Dodo operation brands_archive (POST /brands/{id}/archive). Required parameters: none.
Accepts both a Dodo parameter map and request-local options.
@spec create(DodoPayments.Client.t()) :: {:ok, DodoPayments.Brand.t()} | {:error, Exception.t()}
Calls Dodo operation brands_create (POST /brands). Required parameters: none.
Calls the operation with an empty parameter map.
@spec create(DodoPayments.Client.t(), create_params() | nil | keyword()) :: {:ok, DodoPayments.Brand.t() | DodoPayments.Response.t(DodoPayments.Brand.t())} | {:error, Exception.t()}
Calls Dodo operation brands_create (POST /brands). Required parameters: none.
Pass a map for Dodo parameters or a keyword list for request-local options.
@spec create(DodoPayments.Client.t(), create_params() | nil, keyword()) :: {:ok, DodoPayments.Brand.t() | DodoPayments.Response.t(DodoPayments.Brand.t())} | {:error, Exception.t()}
Calls Dodo operation brands_create (POST /brands). Required parameters: none.
Accepts both a Dodo parameter map and request-local options.
@spec list(DodoPayments.Client.t()) :: {:ok, DodoPayments.BrandListResponse.t()} | {:error, Exception.t()}
Calls Dodo operation brands_list (GET /brands). Required parameters: none.
Calls the operation with an empty parameter map.
@spec list(DodoPayments.Client.t(), list_params() | nil | keyword()) :: {:ok, DodoPayments.BrandListResponse.t() | DodoPayments.Response.t(DodoPayments.BrandListResponse.t())} | {:error, Exception.t()}
Calls Dodo operation brands_list (GET /brands). Required parameters: none.
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.BrandListResponse.t() | DodoPayments.Response.t(DodoPayments.BrandListResponse.t())} | {:error, Exception.t()}
Calls Dodo operation brands_list (GET /brands). Required parameters: none.
Accepts both a Dodo parameter map and request-local options.
@spec retrieve(DodoPayments.Client.t(), String.t() | integer(), keyword()) :: {:ok, DodoPayments.Brand.t() | DodoPayments.Response.t(DodoPayments.Brand.t())} | {:error, Exception.t()}
Calls Dodo operation brands_retrieve (GET /brands/{id}). Required parameters: none.
Options are request-local.
@spec update(DodoPayments.Client.t(), String.t() | integer()) :: {:ok, DodoPayments.Brand.t()} | {:error, Exception.t()}
Calls Dodo operation brands_update (PATCH /brands/{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.Brand.t() | DodoPayments.Response.t(DodoPayments.Brand.t())} | {:error, Exception.t()}
Calls Dodo operation brands_update (PATCH /brands/{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.Brand.t() | DodoPayments.Response.t(DodoPayments.Brand.t())} | {:error, Exception.t()}
Calls Dodo operation brands_update (PATCH /brands/{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 brands_update_images (PUT /brands/{id}/images). Required parameters: none.
Options are request-local.