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.



71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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
# File 'lib/dwolla_swagger/models/create_customer.rb', line 71

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
  
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

#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

#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

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
# 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'
    
  }
end

.swagger_typesObject

attribute type



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/dwolla_swagger/models/create_customer.rb', line 52

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'
    
  }
end