Class: DwollaSwagger::CreateCustomer

Inherits:
BaseObject show all
Defined in:
lib/dwolla_swagger/models/create_customer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash

Constructor Details

#initialize(attributes = {}) ⇒ CreateCustomer

Returns a new instance of CreateCustomer.



95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/dwolla_swagger/models/create_customer.rb', line 95

def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'firstName']
    @first_name = attributes[:'firstName']
  end
  
  if attributes[:'lastName']
    @last_name = attributes[:'lastName']
  end
  
  if attributes[:'email']
    @email = attributes[:'email']
  end
  
  if attributes[:'ipAddress']
    @ip_address = attributes[:'ipAddress']
  end
  
  if attributes[:'type']
    @type = attributes[:'type']
  end
  
  if attributes[:'address1']
    @address1 = attributes[:'address1']
  end
  
  if attributes[:'address2']
    @address2 = attributes[:'address2']
  end
  
  if attributes[:'city']
    @city = attributes[:'city']
  end
  
  if attributes[:'state']
    @state = attributes[:'state']
  end
  
  if attributes[:'postalCode']
    @postal_code = attributes[:'postalCode']
  end
  
  if attributes[:'dateOfBirth']
    @date_of_birth = attributes[:'dateOfBirth']
  end
  
  if attributes[:'ssn']
    @ssn = attributes[:'ssn']
  end
  
  if attributes[:'phone']
    @phone = attributes[:'phone']
  end
  
  if attributes[:'businessName']
    @business_name = attributes[:'businessName']
  end
  
  if attributes[:'businessType']
    @business_type = attributes[:'businessType']
  end
  
  if attributes[:'businessClassification']
    @business_classification = attributes[:'businessClassification']
  end
  
  if attributes[:'ein']
    @ein = attributes[:'ein']
  end
  
  if attributes[:'doingBusinessAs']
    @doing_business_as = attributes[:'doingBusinessAs']
  end
  
  if attributes[:'website']
    @website = attributes[:'website']
  end
  
end

Instance Attribute Details

#address1Object

Returns the value of attribute address1.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def address1
  @address1
end

#address2Object

Returns the value of attribute address2.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def address2
  @address2
end

#business_classificationObject

Returns the value of attribute business_classification.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def business_classification
  @business_classification
end

#business_nameObject

Returns the value of attribute business_name.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def business_name
  @business_name
end

#business_typeObject

Returns the value of attribute business_type.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def business_type
  @business_type
end

#cityObject

Returns the value of attribute city.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def city
  @city
end

#date_of_birthObject

Returns the value of attribute date_of_birth.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def date_of_birth
  @date_of_birth
end

#doing_business_asObject

Returns the value of attribute doing_business_as.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def doing_business_as
  @doing_business_as
end

#einObject

Returns the value of attribute ein.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def ein
  @ein
end

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def first_name
  @first_name
end

#ip_addressObject

Returns the value of attribute ip_address.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def ip_address
  @ip_address
end

#last_nameObject

Returns the value of attribute last_name.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def last_name
  @last_name
end

#phoneObject

Returns the value of attribute phone.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def phone
  @phone
end

#postal_codeObject

Returns the value of attribute postal_code.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def postal_code
  @postal_code
end

#ssnObject

Returns the value of attribute ssn.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def ssn
  @ssn
end

#stateObject

Returns the value of attribute state.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def state
  @state
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def type
  @type
end

#websiteObject

Returns the value of attribute website.



4
5
6
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4

def website
  @website
end

Class Method Details

.attribute_mapObject

attribute mapping from ruby-style variable name to JSON key



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/dwolla_swagger/models/create_customer.rb', line 6

def self.attribute_map
  {
    
    # 
    :'first_name' => :'firstName',
    
    # 
    :'last_name' => :'lastName',
    
    # 
    :'email' => :'email',
    
    # 
    :'ip_address' => :'ipAddress',
    
    # 
    :'type' => :'type',
    
    # 
    :'address1' => :'address1',
    
    # 
    :'address2' => :'address2',
    
    # 
    :'city' => :'city',
    
    # 
    :'state' => :'state',
    
    # 
    :'postal_code' => :'postalCode',
    
    # 
    :'date_of_birth' => :'dateOfBirth',
    
    # 
    :'ssn' => :'ssn',
    
    # 
    :'phone' => :'phone',
    
    # 
    :'business_name' => :'businessName',
    
    # 
    :'business_type' => :'businessType',
    
    # 
    :'business_classification' => :'businessClassification',
    
    # 
    :'ein' => :'ein',
    
    # 
    :'doing_business_as' => :'doingBusinessAs',
    
    # 
    :'website' => :'website'
    
  }
end

.swagger_typesObject

attribute type



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/dwolla_swagger/models/create_customer.rb', line 70

def self.swagger_types
  {
    :'first_name' => :'string',
    :'last_name' => :'string',
    :'email' => :'string',
    :'ip_address' => :'string',
    :'type' => :'string',
    :'address1' => :'string',
    :'address2' => :'string',
    :'city' => :'string',
    :'state' => :'string',
    :'postal_code' => :'string',
    :'date_of_birth' => :'string',
    :'ssn' => :'string',
    :'phone' => :'string',
    :'business_name' => :'string',
    :'business_type' => :'string',
    :'business_classification' => :'string',
    :'ein' => :'string',
    :'doing_business_as' => :'string',
    :'website' => :'string'
    
  }
end