Class: CustomerResponse

Inherits:
JSONable show all
Defined in:
lib/Entities/customer_response.rb

Instance Method Summary collapse

Methods inherited from JSONable

#from_json!, #to_h, #to_json

Constructor Details

#initialize(h = nil) ⇒ CustomerResponse

Returns a new instance of CustomerResponse.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/Entities/customer_response.rb', line 5

def initialize(h = nil)

  if(h != nil)

    h.each {
        |k,v|

      propNameFormatted = k.to_s + "="

      if(CustomerResponse.instance_methods(false).include?(propNameFormatted.to_sym))
        public_send("#{k}=",v)
      end

    }

  end

end

Instance Method Details

#CustomerId=(customerId) ⇒ Object



40
41
42
# File 'lib/Entities/customer_response.rb', line 40

def CustomerId=(customerId)
  @customerId = customerId
end

#CustomerToken=(customerToken) ⇒ Object



44
45
46
# File 'lib/Entities/customer_response.rb', line 44

def CustomerToken=(customerToken)
  @customerToken = customerToken
end

#getCustomerIdObject



70
71
72
# File 'lib/Entities/customer_response.rb', line 70

def getCustomerId
  return @customerId
end

#getCustomerTokenObject



74
75
76
# File 'lib/Entities/customer_response.rb', line 74

def getCustomerToken
  return @customerToken
end

#getIsSuccessObject



58
59
60
# File 'lib/Entities/customer_response.rb', line 58

def getIsSuccess
  return @isSuccess
end

#getResponseCodeObject



66
67
68
# File 'lib/Entities/customer_response.rb', line 66

def getResponseCode
  return @responseCode
end

#getResponseSummaryObject



62
63
64
# File 'lib/Entities/customer_response.rb', line 62

def getResponseSummary
  return @responseSummary
end

#getUniqueIdentificationObject



78
79
80
# File 'lib/Entities/customer_response.rb', line 78

def getUniqueIdentification
  return @uniqueIdentification
end

#getValidationErrorsObject

Getters



54
55
56
# File 'lib/Entities/customer_response.rb', line 54

def getValidationErrors
  return @validationErrors
end

#IsSuccess=(isSuccess) ⇒ Object



28
29
30
# File 'lib/Entities/customer_response.rb', line 28

def IsSuccess=(isSuccess)
  @isSuccess = isSuccess
end

#ResponseCode=(responseCode) ⇒ Object



36
37
38
# File 'lib/Entities/customer_response.rb', line 36

def ResponseCode=(responseCode)
  @responseCode = responseCode
end

#ResponseSummary=(responseSummary) ⇒ Object



32
33
34
# File 'lib/Entities/customer_response.rb', line 32

def ResponseSummary=(responseSummary)
  @responseSummary = responseSummary
end

#UniqueIdentification=(uniqueIdentification) ⇒ Object



48
49
50
# File 'lib/Entities/customer_response.rb', line 48

def UniqueIdentification=(uniqueIdentification)
  @uniqueIdentification = uniqueIdentification
end

#ValidationErrors=(validationErrors) ⇒ Object

ValidationError type



24
25
26
# File 'lib/Entities/customer_response.rb', line 24

def ValidationErrors=(validationErrors) #ValidationError type
  @validationErrors = validationErrors
end