shopbuilder_api v0.1.8 ExSbapi View Source

Elixir Wrapper Around Shopbuilder API

Link to this section Summary

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
Link to this function authorize_url!(provider, scope, client) 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 delete_request(arg1, arg2) View Source
Link to this function get_address(user_id, website_url, access_token, format \\ "", option \\ "") View Source
Link to this function get_order(order_id, website_url, access_token, format \\ "json") View Source
Link to this function get_payload(your_hash_key, payload, sb_hash, format \\ "") View Source
Link to this function get_payment_options(order_id, website_url, access_token) View Source
Link to this function get_restricted_mode(access_token, client \\ %{}) View Source
Link to this function get_roles(access_token, client \\ %{}) View Source
Link to this function get_sb_countries(website_url, access_token, format \\ "json") View Source
Link to this function get_shipping_options(order_id, website_url, access_token) View Source
Link to this function get_token!(provider, code, client) View Source
Link to this function list_of_events(access_token, client \\ %{}) View Source
Link to this function post_request(arg1, arg2) View Source
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
Link to this function subscribe_to_event(event, endpoint, access_token, client \\ %{}) View Source
Link to this function unsubscribe_from_all_events(access_token, client \\ %{}) View Source
Link to this function unsubscribe_from_event(endpoint, access_token, client \\ %{}) View Source