shopify v0.1.5 Shopify.ApplicationCharge
Summary
Functions
Requests to activate the application charge
Requests all resources
Requests to create a new resource
Requests a resource by id
Functions
Requests to activate the application charge.
Returns {:ok, resource}
or {:error, %Shopify.Error{}}
Parameters
- session: A
%Shopify.Session{}
struct. - id: The id of the resource.
Examples
iex> Shopify.session |> Shopify.ApplicationCharge.activate(id)
{:ok, %Shopify.Response{}}
Requests all resources.
Returns {:ok, %Shopify.Response{}}
or {:error, %Shopify.Response{}}
Parameters
- session: A
%Shopify.Session{}
struct. - params: Any additional query params.
Examples
iex> Shopify.session |> Shopify.Product.all
{:ok, %Shopify.Response{}}
create(session, new_resource)
create(%Shopify.Session{access_token: term, api_key: term, client_id: term, client_secret: term, password: term, shop_name: term, type: term}, map) :: {:ok, list} | {:error, map}
Requests to create a new resource.
Returns {:ok, %Shopify.Response{}}
or {:error, %Shopify.Response{}}
Parameters
- session: A
%Shopify.Session{}
struct. - new_resource: A struct of the resource being created.
Examples
iex> Shopify.session |> Shopify.Product.create(%Shopify.Product{})
{:ok, %Shopify.Response{}}