class RakutenRms::Client::Order

Constants

API_URL

Public Class Methods

new(configuration) click to toggle source
# File lib/rakuten_rms/client/order.rb, line 6
def initialize(configuration)
  @configuration = configuration
end

Public Instance Methods

get_order(options = {}) click to toggle source
# File lib/rakuten_rms/client/order.rb, line 10
def get_order(options = {})
  response = client.call(:get_order, { message: { arg0: authentication_hash }.merge(options) })

  Response.new(response.http)
end

Private Instance Methods

authentication_hash() click to toggle source
# File lib/rakuten_rms/client/order.rb, line 22
def authentication_hash
  {
    authKey:  @configuration.auth_key,
    shopUrl:  @configuration.shop_url,
    userName: @configuration.user_name
  }
end
client() click to toggle source
# File lib/rakuten_rms/client/order.rb, line 18
def client
  @client ||= Savon.client(wsdl: API_URL)
end