Class: Customer

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

Overview

BaseEntity

Instance Method Summary collapse

Methods inherited from JSONable

#from_json!, #to_h, #to_json

Constructor Details

#initialize(h = nil) ⇒ Customer

Returns a new instance of Customer.



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/Entities/customer.rb', line 12

def initialize(h = nil)

  if(h != nil)
    #thisCust = Customer.new
    #Customer.public_methods
    h.each {
        |k,v|

      propNameFormatted = k.to_s + "="


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

end

Instance Method Details

#ACHs=(aCHs) ⇒ Object

List<ACH> type



111
112
113
# File 'lib/Entities/customer.rb', line 111

def ACHs=(aCHs) #List<ACH> type
  @aCHs = aCHs
end

#BillingAddress=(billingAddress) ⇒ Object

List<Address> type



103
104
105
# File 'lib/Entities/customer.rb', line 103

def BillingAddress=(billingAddress) #List<Address> type
  @billingAddress = billingAddress
end

#Company=(company) ⇒ Object



71
72
73
# File 'lib/Entities/customer.rb', line 71

def Company=(company)
  @company=company
end

#Created=(created) ⇒ Object



75
76
77
# File 'lib/Entities/customer.rb', line 75

def Created=(created)
  @created = created
end

#CreditCards=(creditCards) ⇒ Object

List<CreditCard>



87
88
89
# File 'lib/Entities/customer.rb', line 87

def CreditCards=(creditCards) #List<CreditCard>
  @creditCards = creditCards
end

#CustomerEntities=(customerEntities) ⇒ Object

List<CustomerEntity> type



115
116
117
# File 'lib/Entities/customer.rb', line 115

def CustomerEntities=(customerEntities) #List<CustomerEntity> type
  @customerEntities = customerEntities
end

#CustomerId=(customerId) ⇒ Object



31
32
33
# File 'lib/Entities/customer.rb', line 31

def CustomerId=(customerId)
  @customerId = customerId
end

#CustomFields=(customFields) ⇒ Object

Hash type



91
92
93
# File 'lib/Entities/customer.rb', line 91

def CustomFields=(customFields) #Hash type
  @customFields = customFields
end

#Email=(email) ⇒ Object



47
48
49
# File 'lib/Entities/customer.rb', line 47

def Email=(email)
  @email = email
end

#Fax=(fax) ⇒ Object



51
52
53
# File 'lib/Entities/customer.rb', line 51

def Fax=(fax)
  @fax = fax
end

#FirstName=(firstName) ⇒ Object



55
56
57
# File 'lib/Entities/customer.rb', line 55

def FirstName=(firstName)
  @firstName = firstName
end

#FriendlyName=(friendlyName) ⇒ Object



35
36
37
# File 'lib/Entities/customer.rb', line 35

def FriendlyName=(friendlyName)
  @friendlyName = friendlyName
end

#getACHsObject



184
185
186
# File 'lib/Entities/customer.rb', line 184

def getACHs
  return @aCHs
end

#getBillingAddressObject



172
173
174
# File 'lib/Entities/customer.rb', line 172

def getBillingAddress
  return @billingAddress
end

#getCompanyObject



148
149
150
# File 'lib/Entities/customer.rb', line 148

def getCompany
  return @company
end

#getCreditCardsObject



168
169
170
# File 'lib/Entities/customer.rb', line 168

def getCreditCards
  return @creditCards
end

#getCustomerEntitiesObject



164
165
166
# File 'lib/Entities/customer.rb', line 164

def getCustomerEntities
  return @customerEntities
end

#getCustomerIdObject



132
133
134
# File 'lib/Entities/customer.rb', line 132

def getCustomerId
  return @customerId
end

#getCustomFieldsObject



160
161
162
# File 'lib/Entities/customer.rb', line 160

def getCustomFields
  return @customFields
end

#getFirstNameObject



136
137
138
# File 'lib/Entities/customer.rb', line 136

def getFirstName
  return @firstName
end

#getLastNameObject



140
141
142
# File 'lib/Entities/customer.rb', line 140

def getLastName
  return @lastName
end

#getPaymentInstructionsObject



180
181
182
# File 'lib/Entities/customer.rb', line 180

def getPaymentInstructions
  return @paymentInstructions
end

#getPhoneObject



156
157
158
# File 'lib/Entities/customer.rb', line 156

def getPhone
  return @phone
end

#getResponseDetailsObject



192
193
194
# File 'lib/Entities/customer.rb', line 192

def getResponseDetails
  return @responseDetails
end

#getShippingAddressObject



176
177
178
# File 'lib/Entities/customer.rb', line 176

def getShippingAddress
  return @shippingAddress
end

#getUniqueIdentifierObject

getters



128
129
130
# File 'lib/Entities/customer.rb', line 128

def getUniqueIdentifier
  return @uniqueIdentifier
end

#getUsernameObject



144
145
146
# File 'lib/Entities/customer.rb', line 144

def getUsername
  return @username
end

#getWalletObject



188
189
190
# File 'lib/Entities/customer.rb', line 188

def getWallet
  return @wallet
end

#getWebsiteObject



152
153
154
# File 'lib/Entities/customer.rb', line 152

def getWebsite
  return @website
end

#LastName=(lastName) ⇒ Object



59
60
61
# File 'lib/Entities/customer.rb', line 59

def LastName=(lastName)
  @lastName = lastName
end

#Options=(options) ⇒ Object

CustomerResponse type



99
100
101
# File 'lib/Entities/customer.rb', line 99

def Options=(options) #CustomerResponse type
  @options = options
end

#PaymentInstructions=(paymentInstructions) ⇒ Object

List<Instruction> type



123
124
125
# File 'lib/Entities/customer.rb', line 123

def PaymentInstructions=(paymentInstructions) #List<Instruction> type
  @paymentInstructions = paymentInstructions
end

#Phone=(phone) ⇒ Object



63
64
65
# File 'lib/Entities/customer.rb', line 63

def Phone=(phone)
  @phone = phone
end

#ResponseDetails=(responseDetails) ⇒ Object

CustomerResponse type



95
96
97
# File 'lib/Entities/customer.rb', line 95

def ResponseDetails=(responseDetails) #CustomerResponse type
  @responseDetails = responseDetails
end

#ShippingAddress=(shippingAddress) ⇒ Object

List<Address> type



107
108
109
# File 'lib/Entities/customer.rb', line 107

def ShippingAddress=(shippingAddress) #List<Address> type
  @shippingAddress = shippingAddress
end

#Status=(status) ⇒ Object



39
40
41
# File 'lib/Entities/customer.rb', line 39

def Status=(status)
  @status = status
end

#UniqueIdentifier=(uniqueIdentifier) ⇒ Object



43
44
45
# File 'lib/Entities/customer.rb', line 43

def UniqueIdentifier=(uniqueIdentifier)
  @uniqueIdentifier = uniqueIdentifier
end

#Updated=(updated) ⇒ Object



79
80
81
# File 'lib/Entities/customer.rb', line 79

def Updated=(updated)
  @updated = updated
end

#Username=(username) ⇒ Object



83
84
85
# File 'lib/Entities/customer.rb', line 83

def Username=(username)
  @username = username
end

#Wallet=(wallet) ⇒ Object



119
120
121
# File 'lib/Entities/customer.rb', line 119

def Wallet=(wallet)
  @wallet = wallet
end

#Website=(website) ⇒ Object



67
68
69
# File 'lib/Entities/customer.rb', line 67

def Website=(website)
  @website = website
end