shopbuilder_api v0.1.4 ExSbapi View Source
Elixir Wrapper Around Shopbuilder API
Link to this section Summary
Functions
Returns {:ok,_ }
or {:error, %{reason: "unauthorized"}}
Link to this section Functions
Link to this function
add_coupon(code_value, order_id, website_url, access_token, format \\ "json")
View Source
Link to this function
add_email(value, order_id, website_url, access_token, format \\ "json")
View Source
Link to this function
add_payment(value, order_id, website_url, access_token, format \\ "json")
View Source
Link to this function
add_shipping(value, order_id, website_url, access_token, format \\ "json")
View Source
Returns {:ok,_ }
or {:error, %{reason: "unauthorized"}}
Endpoint:
This function is being called from /lib/RtCheckoutWeb/templates/install/channel.js.eex
by
this.channel.join()
Params:
checkout:checkout_id
, message
, socket
Functionality:
It checks website_id
and order_od
that has been sent from client side
with website_id
and
order_id
that has been verified in user_socket
.
Link to this function
refresh_token(refresh_token, client, params \\ [], headers \\ [], opts \\ [])
View Source
Link to this function
set_restricted_mode(restricted, mode, authorized_roles, access_token, client \\ %{})
View Source