shopbuilder_api v0.1.12 ExSbapi View Source
Elixir Wrapper Around Shopbuilder API
Link to this section Summary
Functions
Returns {:ok,_ }
or {:error, %{reason: "unauthorized"}}
This function is expecting list_of_uuid
,date
, access_token
and client
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
generate_auto_login_link(user_uuid, destination_url, access_token, client \\ %{})
View Source
Link to this function
get_address(user_id, website_url, access_token, format \\ "", option \\ "")
View Source
This function is expecting list_of_uuid
,date
, access_token
and client
The format of date should be:
date: %{
start: %{
year: "2018",
month: "4",
day: "12"
},
end: %{
year: "2018",
month: "4",
day: "20"
}
}
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