Class: DwollaSwagger::CreateCustomer
- Inherits:
-
BaseObject
- Object
- BaseObject
- DwollaSwagger::CreateCustomer
- Defined in:
- lib/dwolla_swagger/models/create_customer.rb
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#business_classification ⇒ Object
Returns the value of attribute business_classification.
-
#business_name ⇒ Object
Returns the value of attribute business_name.
-
#business_type ⇒ Object
Returns the value of attribute business_type.
-
#city ⇒ Object
Returns the value of attribute city.
-
#date_of_birth ⇒ Object
Returns the value of attribute date_of_birth.
-
#doing_business_as ⇒ Object
Returns the value of attribute doing_business_as.
-
#ein ⇒ Object
Returns the value of attribute ein.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#ssn ⇒ Object
Returns the value of attribute ssn.
-
#state ⇒ Object
Returns the value of attribute state.
-
#type ⇒ Object
Returns the value of attribute type.
-
#website ⇒ Object
Returns the value of attribute website.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CreateCustomer
constructor
A new instance of CreateCustomer.
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
#address1 ⇒ Object
Returns the value of attribute address1.
4 5 6 |
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
4 5 6 |
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4 def address2 @address2 end |
#business_classification ⇒ Object
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_name ⇒ Object
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_type ⇒ Object
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 |
#city ⇒ Object
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_birth ⇒ Object
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_as ⇒ Object
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 |
#ein ⇒ Object
Returns the value of attribute ein.
4 5 6 |
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4 def ein @ein end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4 def email @email end |
#first_name ⇒ Object
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_address ⇒ Object
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_name ⇒ Object
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 |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4 def phone @phone end |
#postal_code ⇒ Object
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 |
#ssn ⇒ Object
Returns the value of attribute ssn.
4 5 6 |
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4 def ssn @ssn end |
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4 def state @state end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/dwolla_swagger/models/create_customer.rb', line 4 def type @type end |
#website ⇒ Object
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_map ⇒ Object
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_types ⇒ Object
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 |