View Source Craftgate.Adapter.PayByLinkAdapter (Craftgate v1.0.42)

Provides capabilities to manage and list products available for the pay-by-link feature

Link to this section Summary

Link to this section Functions

Link to this function

create_product(body, options \\ [])

View Source
@spec create_product(
  Craftgate.Request.CreateProductRequest.t(),
  keyword()
) :: {:ok, Craftgate.Response.ProductResponse.t()} | {:error, any()}
Link to this function

create_product!(body, options \\ [])

View Source

Bangified version of create_product/2

Link to this function

delete_product(id, options \\ [])

View Source
@spec delete_product(
  integer(),
  keyword()
) :: {:ok, :void} | {:error, any()}
Link to this function

delete_product!(id, options \\ [])

View Source
@spec delete_product!(
  integer(),
  keyword()
) :: :void | no_return()

Bangified version of delete_product/2

Link to this function

retrieve_product(id, options \\ [])

View Source
@spec retrieve_product(
  integer(),
  keyword()
) :: {:ok, Craftgate.Response.ProductResponse.t()} | {:error, any()}
Link to this function

retrieve_product!(id, options \\ [])

View Source
@spec retrieve_product!(
  integer(),
  keyword()
) :: Craftgate.Response.ProductResponse.t() | no_return()

Bangified version of retrieve_product/2

Link to this function

search_products(params, options \\ [])

View Source
@spec search_products(
  Craftgate.Request.SearchProductsRequest.t(),
  keyword()
) :: {:ok, Craftgate.Response.ProductListResponse.t()} | {:error, any()}
Link to this function

search_products!(params, options \\ [])

View Source

Bangified version of search_products/2

Link to this function

update_product(id, body, options \\ [])

View Source
@spec update_product(integer(), Craftgate.Request.UpdateProductRequest.t(), keyword()) ::
  {:ok, Craftgate.Response.ProductResponse.t()} | {:error, any()}
Link to this function

update_product!(id, body, options \\ [])

View Source

Bangified version of update_product/3