Method: Upay::Customer#show

Defined in:
lib/upay/customer.rb

#showObject

Verb: GET Description: Returns: JSON



78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/upay/customer.rb', line 78

def show
  begin
    unless self.customerId.nil?
      url = "rest/v4.3/customers/#{self.customerId}"
      response = Requestor.new.get(url, {})
      self.reload(response)
    else
      raise "customerId cannot be blank"
    end
  end
  self
end