Class: TreezorClient::User
- Inherits:
-
Object
- Object
- TreezorClient::User
- Defined in:
- lib/treezor_client/models/user.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#birth_country ⇒ Object
Returns the value of attribute birth_country.
-
#birthday ⇒ Object
Returns the value of attribute birthday.
-
#city ⇒ Object
Returns the value of attribute city.
-
#controlling_person_type ⇒ Object
Returns the value of attribute controlling_person_type.
-
#country ⇒ Object
Returns the value of attribute country.
-
#country_name ⇒ Object
Returns the value of attribute country_name.
-
#created_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS.
-
#effective_beneficiary ⇒ Object
Returns the value of attribute effective_beneficiary.
-
#email ⇒ Object
Returns the value of attribute email.
-
#employee_type ⇒ Object
Returns the value of attribute employee_type.
-
#firstname ⇒ Object
Returns the value of attribute firstname.
-
#income_range ⇒ Object
Returns the value of attribute income_range.
-
#is_freezed ⇒ Object
Returns the value of attribute is_freezed.
-
#kyc_level ⇒ Object
| Value | Description | |—-|—-| | 0 | NONE | | 1 | LIGHT | | 2 | REGULAR | | 4 | REFUSED |.
-
#kyc_review ⇒ Object
| Value | Description | |—-|—-| | 0 | NONE | | 1 | PENDING | | 2 | VALIDATED | | 3 | REFUSED |.
-
#kyc_review_comment ⇒ Object
Returns the value of attribute kyc_review_comment.
-
#language ⇒ Object
Returns the value of attribute language.
-
#lastname ⇒ Object
Returns the value of attribute lastname.
-
#legal_annual_turn_over ⇒ Object
Returns the value of attribute legal_annual_turn_over.
-
#legal_form ⇒ Object
Returns the value of attribute legal_form.
-
#legal_name ⇒ Object
Returns the value of attribute legal_name.
-
#legal_name_embossed ⇒ Object
Returns the value of attribute legal_name_embossed.
-
#legal_net_income_range ⇒ Object
Returns the value of attribute legal_net_income_range.
-
#legal_number_of_employee_range ⇒ Object
Returns the value of attribute legal_number_of_employee_range.
-
#legal_registration_date ⇒ Object
Date YYYY-MM-DD.
-
#legal_registration_number ⇒ Object
Returns the value of attribute legal_registration_number.
-
#legal_sector ⇒ Object
Returns the value of attribute legal_sector.
-
#legal_share_capital ⇒ Object
Returns the value of attribute legal_share_capital.
-
#legal_tva_number ⇒ Object
Returns the value of attribute legal_tva_number.
-
#middle_names ⇒ Object
Returns the value of attribute middle_names.
-
#mobile ⇒ Object
Returns the value of attribute mobile.
-
#modified_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS.
-
#nationality ⇒ Object
Returns the value of attribute nationality.
-
#nationality_other ⇒ Object
Returns the value of attribute nationality_other.
-
#occupation ⇒ Object
Returns the value of attribute occupation.
-
#opt_in_mailing ⇒ Object
Returns the value of attribute opt_in_mailing.
-
#parent_type ⇒ Object
Returns the value of attribute parent_type.
-
#parent_user_id ⇒ Object
Returns the value of attribute parent_user_id.
-
#payin_count ⇒ Object
Returns the value of attribute payin_count.
-
#personal_assets ⇒ Object
Returns the value of attribute personal_assets.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#place_of_birth ⇒ Object
Returns the value of attribute place_of_birth.
-
#position ⇒ Object
Returns the value of attribute position.
-
#postcode ⇒ Object
Returns the value of attribute postcode.
-
#sepa_creditor_identifier ⇒ Object
Returns the value of attribute sepa_creditor_identifier.
-
#specified_us_person ⇒ Object
Returns the value of attribute specified_us_person.
-
#state ⇒ Object
Returns the value of attribute state.
-
#tax_number ⇒ Object
Returns the value of attribute tax_number.
-
#tax_residence ⇒ Object
Returns the value of attribute tax_residence.
-
#title ⇒ Object
Returns the value of attribute title.
-
#total_rows ⇒ Object
Returns the value of attribute total_rows.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#user_status ⇒ Object
Returns the value of attribute user_status.
-
#user_tag ⇒ Object
Returns the value of attribute user_tag.
-
#user_type_id ⇒ Object
Returns the value of attribute user_type_id.
-
#wallet_count ⇒ Object
Returns the value of attribute wallet_count.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ User
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ User
Initializes the object
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 |
# File 'lib/treezor_client/models/user.rb', line 290 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'userId') self.user_id = attributes[:'userId'] end if attributes.has_key?(:'userTypeId') self.user_type_id = attributes[:'userTypeId'] end if attributes.has_key?(:'userStatus') self.user_status = attributes[:'userStatus'] end if attributes.has_key?(:'userTag') self.user_tag = attributes[:'userTag'] end if attributes.has_key?(:'parentUserId') self.parent_user_id = attributes[:'parentUserId'] end if attributes.has_key?(:'parentType') self.parent_type = attributes[:'parentType'] end if attributes.has_key?(:'controllingPersonType') self.controlling_person_type = attributes[:'controllingPersonType'] end if attributes.has_key?(:'employeeType') self.employee_type = attributes[:'employeeType'] end if attributes.has_key?(:'specifiedUSPerson') self.specified_us_person = attributes[:'specifiedUSPerson'] end if attributes.has_key?(:'title') self.title = attributes[:'title'] end if attributes.has_key?(:'firstname') self.firstname = attributes[:'firstname'] end if attributes.has_key?(:'lastname') self.lastname = attributes[:'lastname'] end if attributes.has_key?(:'middleNames') self.middle_names = attributes[:'middleNames'] end if attributes.has_key?(:'birthday') self.birthday = attributes[:'birthday'] end if attributes.has_key?(:'email') self.email = attributes[:'email'] end if attributes.has_key?(:'address1') self.address1 = attributes[:'address1'] end if attributes.has_key?(:'address2') self.address2 = attributes[:'address2'] end if attributes.has_key?(:'postcode') self.postcode = attributes[:'postcode'] end if attributes.has_key?(:'city') self.city = attributes[:'city'] end if attributes.has_key?(:'state') self.state = attributes[:'state'] end if attributes.has_key?(:'country') self.country = attributes[:'country'] end if attributes.has_key?(:'countryName') self.country_name = attributes[:'countryName'] end if attributes.has_key?(:'phone') self.phone = attributes[:'phone'] end if attributes.has_key?(:'mobile') self.mobile = attributes[:'mobile'] end if attributes.has_key?(:'nationality') self.nationality = attributes[:'nationality'] end if attributes.has_key?(:'nationalityOther') self.nationality_other = attributes[:'nationalityOther'] end if attributes.has_key?(:'placeOfBirth') self.place_of_birth = attributes[:'placeOfBirth'] end if attributes.has_key?(:'birthCountry') self.birth_country = attributes[:'birthCountry'] end if attributes.has_key?(:'occupation') self.occupation = attributes[:'occupation'] end if attributes.has_key?(:'incomeRange') self.income_range = attributes[:'incomeRange'] end if attributes.has_key?(:'legalName') self.legal_name = attributes[:'legalName'] end if attributes.has_key?(:'legalNameEmbossed') self.legal_name_embossed = attributes[:'legalNameEmbossed'] end if attributes.has_key?(:'legalRegistrationNumber') self.legal_registration_number = attributes[:'legalRegistrationNumber'] end if attributes.has_key?(:'legalTvaNumber') self.legal_tva_number = attributes[:'legalTvaNumber'] end if attributes.has_key?(:'legalRegistrationDate') self.legal_registration_date = attributes[:'legalRegistrationDate'] end if attributes.has_key?(:'legalForm') self.legal_form = attributes[:'legalForm'] end if attributes.has_key?(:'legalShareCapital') self.legal_share_capital = attributes[:'legalShareCapital'] end if attributes.has_key?(:'legalSector') self.legal_sector = attributes[:'legalSector'] end if attributes.has_key?(:'legalAnnualTurnOver') self.legal_annual_turn_over = attributes[:'legalAnnualTurnOver'] end if attributes.has_key?(:'legalNetIncomeRange') self.legal_net_income_range = attributes[:'legalNetIncomeRange'] end if attributes.has_key?(:'legalNumberOfEmployeeRange') self.legal_number_of_employee_range = attributes[:'legalNumberOfEmployeeRange'] end if attributes.has_key?(:'effectiveBeneficiary') self.effective_beneficiary = attributes[:'effectiveBeneficiary'] end if attributes.has_key?(:'kycLevel') self.kyc_level = attributes[:'kycLevel'] end if attributes.has_key?(:'kycReview') self.kyc_review = attributes[:'kycReview'] end if attributes.has_key?(:'kycReviewComment') self.kyc_review_comment = attributes[:'kycReviewComment'] end if attributes.has_key?(:'isFreezed') self.is_freezed = attributes[:'isFreezed'] end if attributes.has_key?(:'language') self.language = attributes[:'language'] end if attributes.has_key?(:'optInMailing') self.opt_in_mailing = attributes[:'optInMailing'] end if attributes.has_key?(:'sepaCreditorIdentifier') self.sepa_creditor_identifier = attributes[:'sepaCreditorIdentifier'] end if attributes.has_key?(:'taxNumber') self.tax_number = attributes[:'taxNumber'] end if attributes.has_key?(:'taxResidence') self.tax_residence = attributes[:'taxResidence'] end if attributes.has_key?(:'position') self.position = attributes[:'position'] end if attributes.has_key?(:'personalAssets') self.personal_assets = attributes[:'personalAssets'] end if attributes.has_key?(:'createdDate') self.created_date = attributes[:'createdDate'] end if attributes.has_key?(:'modifiedDate') self.modified_date = attributes[:'modifiedDate'] end if attributes.has_key?(:'walletCount') self.wallet_count = attributes[:'walletCount'] end if attributes.has_key?(:'payinCount') self. = attributes[:'payinCount'] end if attributes.has_key?(:'totalRows') self.total_rows = attributes[:'totalRows'] end end |
Instance Attribute Details
#address1 ⇒ Object
Returns the value of attribute address1.
47 48 49 |
# File 'lib/treezor_client/models/user.rb', line 47 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
49 50 51 |
# File 'lib/treezor_client/models/user.rb', line 49 def address2 @address2 end |
#birth_country ⇒ Object
Returns the value of attribute birth_country.
71 72 73 |
# File 'lib/treezor_client/models/user.rb', line 71 def birth_country @birth_country end |
#birthday ⇒ Object
Returns the value of attribute birthday.
43 44 45 |
# File 'lib/treezor_client/models/user.rb', line 43 def birthday @birthday end |
#city ⇒ Object
Returns the value of attribute city.
53 54 55 |
# File 'lib/treezor_client/models/user.rb', line 53 def city @city end |
#controlling_person_type ⇒ Object
Returns the value of attribute controlling_person_type.
29 30 31 |
# File 'lib/treezor_client/models/user.rb', line 29 def controlling_person_type @controlling_person_type end |
#country ⇒ Object
Returns the value of attribute country.
57 58 59 |
# File 'lib/treezor_client/models/user.rb', line 57 def country @country end |
#country_name ⇒ Object
Returns the value of attribute country_name.
59 60 61 |
# File 'lib/treezor_client/models/user.rb', line 59 def country_name @country_name end |
#created_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS
127 128 129 |
# File 'lib/treezor_client/models/user.rb', line 127 def created_date @created_date end |
#effective_beneficiary ⇒ Object
Returns the value of attribute effective_beneficiary.
100 101 102 |
# File 'lib/treezor_client/models/user.rb', line 100 def effective_beneficiary @effective_beneficiary end |
#email ⇒ Object
Returns the value of attribute email.
45 46 47 |
# File 'lib/treezor_client/models/user.rb', line 45 def email @email end |
#employee_type ⇒ Object
Returns the value of attribute employee_type.
31 32 33 |
# File 'lib/treezor_client/models/user.rb', line 31 def employee_type @employee_type end |
#firstname ⇒ Object
Returns the value of attribute firstname.
37 38 39 |
# File 'lib/treezor_client/models/user.rb', line 37 def firstname @firstname end |
#income_range ⇒ Object
Returns the value of attribute income_range.
75 76 77 |
# File 'lib/treezor_client/models/user.rb', line 75 def income_range @income_range end |
#is_freezed ⇒ Object
Returns the value of attribute is_freezed.
110 111 112 |
# File 'lib/treezor_client/models/user.rb', line 110 def is_freezed @is_freezed end |
#kyc_level ⇒ Object
| Value | Description | |—-|—-| | 0 | NONE | | 1 | LIGHT | | 2 | REGULAR | | 4 | REFUSED |
103 104 105 |
# File 'lib/treezor_client/models/user.rb', line 103 def kyc_level @kyc_level end |
#kyc_review ⇒ Object
| Value | Description | |—-|—-| | 0 | NONE | | 1 | PENDING | | 2 | VALIDATED | | 3 | REFUSED |
106 107 108 |
# File 'lib/treezor_client/models/user.rb', line 106 def kyc_review @kyc_review end |
#kyc_review_comment ⇒ Object
Returns the value of attribute kyc_review_comment.
108 109 110 |
# File 'lib/treezor_client/models/user.rb', line 108 def kyc_review_comment @kyc_review_comment end |
#language ⇒ Object
Returns the value of attribute language.
112 113 114 |
# File 'lib/treezor_client/models/user.rb', line 112 def language @language end |
#lastname ⇒ Object
Returns the value of attribute lastname.
39 40 41 |
# File 'lib/treezor_client/models/user.rb', line 39 def lastname @lastname end |
#legal_annual_turn_over ⇒ Object
Returns the value of attribute legal_annual_turn_over.
94 95 96 |
# File 'lib/treezor_client/models/user.rb', line 94 def legal_annual_turn_over @legal_annual_turn_over end |
#legal_form ⇒ Object
Returns the value of attribute legal_form.
88 89 90 |
# File 'lib/treezor_client/models/user.rb', line 88 def legal_form @legal_form end |
#legal_name ⇒ Object
Returns the value of attribute legal_name.
77 78 79 |
# File 'lib/treezor_client/models/user.rb', line 77 def legal_name @legal_name end |
#legal_name_embossed ⇒ Object
Returns the value of attribute legal_name_embossed.
79 80 81 |
# File 'lib/treezor_client/models/user.rb', line 79 def legal_name_embossed @legal_name_embossed end |
#legal_net_income_range ⇒ Object
Returns the value of attribute legal_net_income_range.
96 97 98 |
# File 'lib/treezor_client/models/user.rb', line 96 def legal_net_income_range @legal_net_income_range end |
#legal_number_of_employee_range ⇒ Object
Returns the value of attribute legal_number_of_employee_range.
98 99 100 |
# File 'lib/treezor_client/models/user.rb', line 98 def legal_number_of_employee_range @legal_number_of_employee_range end |
#legal_registration_date ⇒ Object
Date YYYY-MM-DD
86 87 88 |
# File 'lib/treezor_client/models/user.rb', line 86 def legal_registration_date @legal_registration_date end |
#legal_registration_number ⇒ Object
Returns the value of attribute legal_registration_number.
81 82 83 |
# File 'lib/treezor_client/models/user.rb', line 81 def legal_registration_number @legal_registration_number end |
#legal_sector ⇒ Object
Returns the value of attribute legal_sector.
92 93 94 |
# File 'lib/treezor_client/models/user.rb', line 92 def legal_sector @legal_sector end |
#legal_share_capital ⇒ Object
Returns the value of attribute legal_share_capital.
90 91 92 |
# File 'lib/treezor_client/models/user.rb', line 90 def legal_share_capital @legal_share_capital end |
#legal_tva_number ⇒ Object
Returns the value of attribute legal_tva_number.
83 84 85 |
# File 'lib/treezor_client/models/user.rb', line 83 def legal_tva_number @legal_tva_number end |
#middle_names ⇒ Object
Returns the value of attribute middle_names.
41 42 43 |
# File 'lib/treezor_client/models/user.rb', line 41 def middle_names @middle_names end |
#mobile ⇒ Object
Returns the value of attribute mobile.
63 64 65 |
# File 'lib/treezor_client/models/user.rb', line 63 def mobile @mobile end |
#modified_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS
130 131 132 |
# File 'lib/treezor_client/models/user.rb', line 130 def modified_date @modified_date end |
#nationality ⇒ Object
Returns the value of attribute nationality.
65 66 67 |
# File 'lib/treezor_client/models/user.rb', line 65 def nationality @nationality end |
#nationality_other ⇒ Object
Returns the value of attribute nationality_other.
67 68 69 |
# File 'lib/treezor_client/models/user.rb', line 67 def nationality_other @nationality_other end |
#occupation ⇒ Object
Returns the value of attribute occupation.
73 74 75 |
# File 'lib/treezor_client/models/user.rb', line 73 def occupation @occupation end |
#opt_in_mailing ⇒ Object
Returns the value of attribute opt_in_mailing.
114 115 116 |
# File 'lib/treezor_client/models/user.rb', line 114 def opt_in_mailing @opt_in_mailing end |
#parent_type ⇒ Object
Returns the value of attribute parent_type.
27 28 29 |
# File 'lib/treezor_client/models/user.rb', line 27 def parent_type @parent_type end |
#parent_user_id ⇒ Object
Returns the value of attribute parent_user_id.
25 26 27 |
# File 'lib/treezor_client/models/user.rb', line 25 def parent_user_id @parent_user_id end |
#payin_count ⇒ Object
Returns the value of attribute payin_count.
134 135 136 |
# File 'lib/treezor_client/models/user.rb', line 134 def @payin_count end |
#personal_assets ⇒ Object
Returns the value of attribute personal_assets.
124 125 126 |
# File 'lib/treezor_client/models/user.rb', line 124 def personal_assets @personal_assets end |
#phone ⇒ Object
Returns the value of attribute phone.
61 62 63 |
# File 'lib/treezor_client/models/user.rb', line 61 def phone @phone end |
#place_of_birth ⇒ Object
Returns the value of attribute place_of_birth.
69 70 71 |
# File 'lib/treezor_client/models/user.rb', line 69 def place_of_birth @place_of_birth end |
#position ⇒ Object
Returns the value of attribute position.
122 123 124 |
# File 'lib/treezor_client/models/user.rb', line 122 def position @position end |
#postcode ⇒ Object
Returns the value of attribute postcode.
51 52 53 |
# File 'lib/treezor_client/models/user.rb', line 51 def postcode @postcode end |
#sepa_creditor_identifier ⇒ Object
Returns the value of attribute sepa_creditor_identifier.
116 117 118 |
# File 'lib/treezor_client/models/user.rb', line 116 def sepa_creditor_identifier @sepa_creditor_identifier end |
#specified_us_person ⇒ Object
Returns the value of attribute specified_us_person.
33 34 35 |
# File 'lib/treezor_client/models/user.rb', line 33 def specified_us_person @specified_us_person end |
#state ⇒ Object
Returns the value of attribute state.
55 56 57 |
# File 'lib/treezor_client/models/user.rb', line 55 def state @state end |
#tax_number ⇒ Object
Returns the value of attribute tax_number.
118 119 120 |
# File 'lib/treezor_client/models/user.rb', line 118 def tax_number @tax_number end |
#tax_residence ⇒ Object
Returns the value of attribute tax_residence.
120 121 122 |
# File 'lib/treezor_client/models/user.rb', line 120 def tax_residence @tax_residence end |
#title ⇒ Object
Returns the value of attribute title.
35 36 37 |
# File 'lib/treezor_client/models/user.rb', line 35 def title @title end |
#total_rows ⇒ Object
Returns the value of attribute total_rows.
136 137 138 |
# File 'lib/treezor_client/models/user.rb', line 136 def total_rows @total_rows end |
#user_id ⇒ Object
Returns the value of attribute user_id.
17 18 19 |
# File 'lib/treezor_client/models/user.rb', line 17 def user_id @user_id end |
#user_status ⇒ Object
Returns the value of attribute user_status.
21 22 23 |
# File 'lib/treezor_client/models/user.rb', line 21 def user_status @user_status end |
#user_tag ⇒ Object
Returns the value of attribute user_tag.
23 24 25 |
# File 'lib/treezor_client/models/user.rb', line 23 def user_tag @user_tag end |
#user_type_id ⇒ Object
Returns the value of attribute user_type_id.
19 20 21 |
# File 'lib/treezor_client/models/user.rb', line 19 def user_type_id @user_type_id end |
#wallet_count ⇒ Object
Returns the value of attribute wallet_count.
132 133 134 |
# File 'lib/treezor_client/models/user.rb', line 132 def wallet_count @wallet_count end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/treezor_client/models/user.rb', line 161 def self.attribute_map { :'user_id' => :'userId', :'user_type_id' => :'userTypeId', :'user_status' => :'userStatus', :'user_tag' => :'userTag', :'parent_user_id' => :'parentUserId', :'parent_type' => :'parentType', :'controlling_person_type' => :'controllingPersonType', :'employee_type' => :'employeeType', :'specified_us_person' => :'specifiedUSPerson', :'title' => :'title', :'firstname' => :'firstname', :'lastname' => :'lastname', :'middle_names' => :'middleNames', :'birthday' => :'birthday', :'email' => :'email', :'address1' => :'address1', :'address2' => :'address2', :'postcode' => :'postcode', :'city' => :'city', :'state' => :'state', :'country' => :'country', :'country_name' => :'countryName', :'phone' => :'phone', :'mobile' => :'mobile', :'nationality' => :'nationality', :'nationality_other' => :'nationalityOther', :'place_of_birth' => :'placeOfBirth', :'birth_country' => :'birthCountry', :'occupation' => :'occupation', :'income_range' => :'incomeRange', :'legal_name' => :'legalName', :'legal_name_embossed' => :'legalNameEmbossed', :'legal_registration_number' => :'legalRegistrationNumber', :'legal_tva_number' => :'legalTvaNumber', :'legal_registration_date' => :'legalRegistrationDate', :'legal_form' => :'legalForm', :'legal_share_capital' => :'legalShareCapital', :'legal_sector' => :'legalSector', :'legal_annual_turn_over' => :'legalAnnualTurnOver', :'legal_net_income_range' => :'legalNetIncomeRange', :'legal_number_of_employee_range' => :'legalNumberOfEmployeeRange', :'effective_beneficiary' => :'effectiveBeneficiary', :'kyc_level' => :'kycLevel', :'kyc_review' => :'kycReview', :'kyc_review_comment' => :'kycReviewComment', :'is_freezed' => :'isFreezed', :'language' => :'language', :'opt_in_mailing' => :'optInMailing', :'sepa_creditor_identifier' => :'sepaCreditorIdentifier', :'tax_number' => :'taxNumber', :'tax_residence' => :'taxResidence', :'position' => :'position', :'personal_assets' => :'personalAssets', :'created_date' => :'createdDate', :'modified_date' => :'modifiedDate', :'wallet_count' => :'walletCount', :'payin_count' => :'payinCount', :'total_rows' => :'totalRows' } end |
.swagger_types ⇒ Object
Attribute type mapping.
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 |
# File 'lib/treezor_client/models/user.rb', line 225 def self.swagger_types { :'user_id' => :'Integer', :'user_type_id' => :'Integer', :'user_status' => :'String', :'user_tag' => :'String', :'parent_user_id' => :'Integer', :'parent_type' => :'String', :'controlling_person_type' => :'Integer', :'employee_type' => :'Integer', :'specified_us_person' => :'Integer', :'title' => :'String', :'firstname' => :'String', :'lastname' => :'String', :'middle_names' => :'String', :'birthday' => :'String', :'email' => :'String', :'address1' => :'String', :'address2' => :'String', :'postcode' => :'String', :'city' => :'String', :'state' => :'String', :'country' => :'String', :'country_name' => :'String', :'phone' => :'String', :'mobile' => :'String', :'nationality' => :'String', :'nationality_other' => :'String', :'place_of_birth' => :'String', :'birth_country' => :'String', :'occupation' => :'String', :'income_range' => :'String', :'legal_name' => :'String', :'legal_name_embossed' => :'String', :'legal_registration_number' => :'String', :'legal_tva_number' => :'String', :'legal_registration_date' => :'String', :'legal_form' => :'String', :'legal_share_capital' => :'Integer', :'legal_sector' => :'String', :'legal_annual_turn_over' => :'String', :'legal_net_income_range' => :'String', :'legal_number_of_employee_range' => :'String', :'effective_beneficiary' => :'Integer', :'kyc_level' => :'Integer', :'kyc_review' => :'Integer', :'kyc_review_comment' => :'String', :'is_freezed' => :'Integer', :'language' => :'String', :'opt_in_mailing' => :'Integer', :'sepa_creditor_identifier' => :'String', :'tax_number' => :'String', :'tax_residence' => :'String', :'position' => :'String', :'personal_assets' => :'String', :'created_date' => :'String', :'modified_date' => :'String', :'wallet_count' => :'Integer', :'payin_count' => :'Integer', :'total_rows' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 |
# File 'lib/treezor_client/models/user.rb', line 568 def ==(o) return true if self.equal?(o) self.class == o.class && user_id == o.user_id && user_type_id == o.user_type_id && user_status == o.user_status && user_tag == o.user_tag && parent_user_id == o.parent_user_id && parent_type == o.parent_type && controlling_person_type == o.controlling_person_type && employee_type == o.employee_type && specified_us_person == o.specified_us_person && title == o.title && firstname == o.firstname && lastname == o.lastname && middle_names == o.middle_names && birthday == o.birthday && email == o.email && address1 == o.address1 && address2 == o.address2 && postcode == o.postcode && city == o.city && state == o.state && country == o.country && country_name == o.country_name && phone == o.phone && mobile == o.mobile && nationality == o.nationality && nationality_other == o.nationality_other && place_of_birth == o.place_of_birth && birth_country == o.birth_country && occupation == o.occupation && income_range == o.income_range && legal_name == o.legal_name && legal_name_embossed == o.legal_name_embossed && legal_registration_number == o.legal_registration_number && legal_tva_number == o.legal_tva_number && legal_registration_date == o.legal_registration_date && legal_form == o.legal_form && legal_share_capital == o.legal_share_capital && legal_sector == o.legal_sector && legal_annual_turn_over == o.legal_annual_turn_over && legal_net_income_range == o.legal_net_income_range && legal_number_of_employee_range == o.legal_number_of_employee_range && effective_beneficiary == o.effective_beneficiary && kyc_level == o.kyc_level && kyc_review == o.kyc_review && kyc_review_comment == o.kyc_review_comment && is_freezed == o.is_freezed && language == o.language && opt_in_mailing == o.opt_in_mailing && sepa_creditor_identifier == o.sepa_creditor_identifier && tax_number == o.tax_number && tax_residence == o.tax_residence && position == o.position && personal_assets == o.personal_assets && created_date == o.created_date && modified_date == o.modified_date && wallet_count == o.wallet_count && == o. && total_rows == o.total_rows end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 |
# File 'lib/treezor_client/models/user.rb', line 667 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = TreezorClient.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
733 734 735 736 737 738 739 740 741 742 743 744 745 |
# File 'lib/treezor_client/models/user.rb', line 733 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 |
# File 'lib/treezor_client/models/user.rb', line 646 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
633 634 635 |
# File 'lib/treezor_client/models/user.rb', line 633 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
639 640 641 |
# File 'lib/treezor_client/models/user.rb', line 639 def hash [user_id, user_type_id, user_status, user_tag, parent_user_id, parent_type, controlling_person_type, employee_type, specified_us_person, title, firstname, lastname, middle_names, birthday, email, address1, address2, postcode, city, state, country, country_name, phone, mobile, nationality, nationality_other, place_of_birth, birth_country, occupation, income_range, legal_name, legal_name_embossed, legal_registration_number, legal_tva_number, legal_registration_date, legal_form, legal_share_capital, legal_sector, legal_annual_turn_over, legal_net_income_range, legal_number_of_employee_range, effective_beneficiary, kyc_level, kyc_review, kyc_review_comment, is_freezed, language, opt_in_mailing, sepa_creditor_identifier, tax_number, tax_residence, position, personal_assets, created_date, modified_date, wallet_count, , total_rows].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
531 532 533 534 |
# File 'lib/treezor_client/models/user.rb', line 531 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
713 714 715 |
# File 'lib/treezor_client/models/user.rb', line 713 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
719 720 721 722 723 724 725 726 727 |
# File 'lib/treezor_client/models/user.rb', line 719 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
707 708 709 |
# File 'lib/treezor_client/models/user.rb', line 707 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
538 539 540 541 542 543 544 |
# File 'lib/treezor_client/models/user.rb', line 538 def valid? user_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED']) return false unless user_status_validator.valid?(@user_status) title_validator = EnumAttributeValidator.new('String', ['M', 'MME', 'MLLE']) return false unless title_validator.valid?(@title) true end |