Class: TreezorClient::Mandate
- Inherits:
-
Object
- Object
- TreezorClient::Mandate
- Defined in:
- lib/treezor_client/models/mandate.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#contract_description ⇒ Object
Returns the value of attribute contract_description.
-
#contract_identification_number ⇒ Object
Returns the value of attribute contract_identification_number.
-
#created_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS.
-
#created_ip ⇒ Object
Returns the value of attribute created_ip.
-
#creditor_address ⇒ Object
Returns the value of attribute creditor_address.
-
#creditor_city ⇒ Object
Returns the value of attribute creditor_city.
-
#creditor_country ⇒ Object
Returns the value of attribute creditor_country.
-
#creditor_name ⇒ Object
Returns the value of attribute creditor_name.
-
#creditor_reference_identification_code ⇒ Object
Returns the value of attribute creditor_reference_identification_code.
-
#creditor_reference_party_name ⇒ Object
Returns the value of attribute creditor_reference_party_name.
-
#creditor_zip_code ⇒ Object
Returns the value of attribute creditor_zip_code.
-
#debtor_address ⇒ Object
Returns the value of attribute debtor_address.
-
#debtor_bic ⇒ Object
Returns the value of attribute debtor_bic.
-
#debtor_city ⇒ Object
Returns the value of attribute debtor_city.
-
#debtor_country ⇒ Object
Returns the value of attribute debtor_country.
-
#debtor_iban ⇒ Object
Returns the value of attribute debtor_iban.
-
#debtor_identification_code ⇒ Object
Returns the value of attribute debtor_identification_code.
-
#debtor_name ⇒ Object
Returns the value of attribute debtor_name.
-
#debtor_reference_identification_code ⇒ Object
Returns the value of attribute debtor_reference_identification_code.
-
#debtor_reference_party_name ⇒ Object
Returns the value of attribute debtor_reference_party_name.
-
#debtor_signature_ip ⇒ Object
Returns the value of attribute debtor_signature_ip.
-
#debtor_zip_code ⇒ Object
Returns the value of attribute debtor_zip_code.
-
#is_paper ⇒ Object
Returns the value of attribute is_paper.
-
#legal_informations ⇒ Object
Returns the value of attribute legal_informations.
-
#mandate_id ⇒ Object
Returns the value of attribute mandate_id.
-
#mandate_status ⇒ Object
Returns the value of attribute mandate_status.
-
#modified_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS.
-
#revocation_signature_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS.
-
#sdd_type ⇒ Object
Returns the value of attribute sdd_type.
-
#sepa_creditor_identifier ⇒ Object
Returns the value of attribute sepa_creditor_identifier.
-
#sequence_type ⇒ Object
Returns the value of attribute sequence_type.
-
#signature_date ⇒ Object
Date YYYY-MM-DD.
-
#signed ⇒ Object
Returns the value of attribute signed.
-
#title ⇒ Object
Returns the value of attribute title.
-
#unique_mandate_reference ⇒ Object
Returns the value of attribute unique_mandate_reference.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
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 = {}) ⇒ Mandate
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 = {}) ⇒ Mandate
Initializes the object
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 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 287 288 289 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 |
# File 'lib/treezor_client/models/mandate.rb', line 202 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?(:'mandateId') self.mandate_id = attributes[:'mandateId'] end if attributes.has_key?(:'title') self.title = attributes[:'title'] end if attributes.has_key?(:'legalInformations') self.legal_informations = attributes[:'legalInformations'] end if attributes.has_key?(:'uniqueMandateReference') self.unique_mandate_reference = attributes[:'uniqueMandateReference'] end if attributes.has_key?(:'mandateStatus') self.mandate_status = attributes[:'mandateStatus'] end if attributes.has_key?(:'userId') self.user_id = attributes[:'userId'] end if attributes.has_key?(:'debtorName') self.debtor_name = attributes[:'debtorName'] end if attributes.has_key?(:'debtorAddress') self.debtor_address = attributes[:'debtorAddress'] end if attributes.has_key?(:'debtorCity') self.debtor_city = attributes[:'debtorCity'] end if attributes.has_key?(:'debtorZipCode') self.debtor_zip_code = attributes[:'debtorZipCode'] end if attributes.has_key?(:'debtorCountry') self.debtor_country = attributes[:'debtorCountry'] end if attributes.has_key?(:'debtorIban') self.debtor_iban = attributes[:'debtorIban'] end if attributes.has_key?(:'debtorBic') self.debtor_bic = attributes[:'debtorBic'] end if attributes.has_key?(:'sequenceType') self.sequence_type = attributes[:'sequenceType'] end if attributes.has_key?(:'creditorName') self.creditor_name = attributes[:'creditorName'] end if attributes.has_key?(:'sepaCreditorIdentifier') self.sepa_creditor_identifier = attributes[:'sepaCreditorIdentifier'] end if attributes.has_key?(:'creditorAddress') self.creditor_address = attributes[:'creditorAddress'] end if attributes.has_key?(:'creditorCity') self.creditor_city = attributes[:'creditorCity'] end if attributes.has_key?(:'creditorZipCode') self.creditor_zip_code = attributes[:'creditorZipCode'] end if attributes.has_key?(:'creditorCountry') self.creditor_country = attributes[:'creditorCountry'] end if attributes.has_key?(:'signatureDate') self.signature_date = attributes[:'signatureDate'] end if attributes.has_key?(:'debtorSignatureIp') self.debtor_signature_ip = attributes[:'debtorSignatureIp'] end if attributes.has_key?(:'signed') self.signed = attributes[:'signed'] end if attributes.has_key?(:'debtorIdentificationCode') self.debtor_identification_code = attributes[:'debtorIdentificationCode'] end if attributes.has_key?(:'debtorReferencePartyName') self.debtor_reference_party_name = attributes[:'debtorReferencePartyName'] end if attributes.has_key?(:'debtorReferenceIdentificationCode') self.debtor_reference_identification_code = attributes[:'debtorReferenceIdentificationCode'] end if attributes.has_key?(:'creditorReferencePartyName') self.creditor_reference_party_name = attributes[:'creditorReferencePartyName'] end if attributes.has_key?(:'creditorReferenceIdentificationCode') self.creditor_reference_identification_code = attributes[:'creditorReferenceIdentificationCode'] end if attributes.has_key?(:'contractIdentificationNumber') self.contract_identification_number = attributes[:'contractIdentificationNumber'] end if attributes.has_key?(:'contractDescription') self.contract_description = attributes[:'contractDescription'] end if attributes.has_key?(:'isPaper') self.is_paper = attributes[:'isPaper'] end if attributes.has_key?(:'sddType') self.sdd_type = attributes[:'sddType'] end if attributes.has_key?(:'revocationSignatureDate') self.revocation_signature_date = attributes[:'revocationSignatureDate'] end if attributes.has_key?(:'createdIp') self.created_ip = attributes[:'createdIp'] end if attributes.has_key?(:'createdDate') self.created_date = attributes[:'createdDate'] end if attributes.has_key?(:'modifiedDate') self.modified_date = attributes[:'modifiedDate'] end end |
Instance Attribute Details
#contract_description ⇒ Object
Returns the value of attribute contract_description
77 78 79 |
# File 'lib/treezor_client/models/mandate.rb', line 77 def contract_description @contract_description end |
#contract_identification_number ⇒ Object
Returns the value of attribute contract_identification_number
75 76 77 |
# File 'lib/treezor_client/models/mandate.rb', line 75 def contract_identification_number @contract_identification_number end |
#created_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS
89 90 91 |
# File 'lib/treezor_client/models/mandate.rb', line 89 def created_date @created_date end |
#created_ip ⇒ Object
Returns the value of attribute created_ip
86 87 88 |
# File 'lib/treezor_client/models/mandate.rb', line 86 def created_ip @created_ip end |
#creditor_address ⇒ Object
Returns the value of attribute creditor_address
50 51 52 |
# File 'lib/treezor_client/models/mandate.rb', line 50 def creditor_address @creditor_address end |
#creditor_city ⇒ Object
Returns the value of attribute creditor_city
52 53 54 |
# File 'lib/treezor_client/models/mandate.rb', line 52 def creditor_city @creditor_city end |
#creditor_country ⇒ Object
Returns the value of attribute creditor_country
56 57 58 |
# File 'lib/treezor_client/models/mandate.rb', line 56 def creditor_country @creditor_country end |
#creditor_name ⇒ Object
Returns the value of attribute creditor_name
46 47 48 |
# File 'lib/treezor_client/models/mandate.rb', line 46 def creditor_name @creditor_name end |
#creditor_reference_identification_code ⇒ Object
Returns the value of attribute creditor_reference_identification_code
73 74 75 |
# File 'lib/treezor_client/models/mandate.rb', line 73 def creditor_reference_identification_code @creditor_reference_identification_code end |
#creditor_reference_party_name ⇒ Object
Returns the value of attribute creditor_reference_party_name
71 72 73 |
# File 'lib/treezor_client/models/mandate.rb', line 71 def creditor_reference_party_name @creditor_reference_party_name end |
#creditor_zip_code ⇒ Object
Returns the value of attribute creditor_zip_code
54 55 56 |
# File 'lib/treezor_client/models/mandate.rb', line 54 def creditor_zip_code @creditor_zip_code end |
#debtor_address ⇒ Object
Returns the value of attribute debtor_address
32 33 34 |
# File 'lib/treezor_client/models/mandate.rb', line 32 def debtor_address @debtor_address end |
#debtor_bic ⇒ Object
Returns the value of attribute debtor_bic
42 43 44 |
# File 'lib/treezor_client/models/mandate.rb', line 42 def debtor_bic @debtor_bic end |
#debtor_city ⇒ Object
Returns the value of attribute debtor_city
34 35 36 |
# File 'lib/treezor_client/models/mandate.rb', line 34 def debtor_city @debtor_city end |
#debtor_country ⇒ Object
Returns the value of attribute debtor_country
38 39 40 |
# File 'lib/treezor_client/models/mandate.rb', line 38 def debtor_country @debtor_country end |
#debtor_iban ⇒ Object
Returns the value of attribute debtor_iban
40 41 42 |
# File 'lib/treezor_client/models/mandate.rb', line 40 def debtor_iban @debtor_iban end |
#debtor_identification_code ⇒ Object
Returns the value of attribute debtor_identification_code
65 66 67 |
# File 'lib/treezor_client/models/mandate.rb', line 65 def debtor_identification_code @debtor_identification_code end |
#debtor_name ⇒ Object
Returns the value of attribute debtor_name
30 31 32 |
# File 'lib/treezor_client/models/mandate.rb', line 30 def debtor_name @debtor_name end |
#debtor_reference_identification_code ⇒ Object
Returns the value of attribute debtor_reference_identification_code
69 70 71 |
# File 'lib/treezor_client/models/mandate.rb', line 69 def debtor_reference_identification_code @debtor_reference_identification_code end |
#debtor_reference_party_name ⇒ Object
Returns the value of attribute debtor_reference_party_name
67 68 69 |
# File 'lib/treezor_client/models/mandate.rb', line 67 def debtor_reference_party_name @debtor_reference_party_name end |
#debtor_signature_ip ⇒ Object
Returns the value of attribute debtor_signature_ip
61 62 63 |
# File 'lib/treezor_client/models/mandate.rb', line 61 def debtor_signature_ip @debtor_signature_ip end |
#debtor_zip_code ⇒ Object
Returns the value of attribute debtor_zip_code
36 37 38 |
# File 'lib/treezor_client/models/mandate.rb', line 36 def debtor_zip_code @debtor_zip_code end |
#is_paper ⇒ Object
Returns the value of attribute is_paper
79 80 81 |
# File 'lib/treezor_client/models/mandate.rb', line 79 def is_paper @is_paper end |
#legal_informations ⇒ Object
Returns the value of attribute legal_informations
22 23 24 |
# File 'lib/treezor_client/models/mandate.rb', line 22 def legal_informations @legal_informations end |
#mandate_id ⇒ Object
Returns the value of attribute mandate_id
18 19 20 |
# File 'lib/treezor_client/models/mandate.rb', line 18 def mandate_id @mandate_id end |
#mandate_status ⇒ Object
Returns the value of attribute mandate_status
26 27 28 |
# File 'lib/treezor_client/models/mandate.rb', line 26 def mandate_status @mandate_status end |
#modified_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS
92 93 94 |
# File 'lib/treezor_client/models/mandate.rb', line 92 def modified_date @modified_date end |
#revocation_signature_date ⇒ Object
Date YYYY-MM-DD HH:MM:SS
84 85 86 |
# File 'lib/treezor_client/models/mandate.rb', line 84 def revocation_signature_date @revocation_signature_date end |
#sdd_type ⇒ Object
Returns the value of attribute sdd_type
81 82 83 |
# File 'lib/treezor_client/models/mandate.rb', line 81 def sdd_type @sdd_type end |
#sepa_creditor_identifier ⇒ Object
Returns the value of attribute sepa_creditor_identifier
48 49 50 |
# File 'lib/treezor_client/models/mandate.rb', line 48 def sepa_creditor_identifier @sepa_creditor_identifier end |
#sequence_type ⇒ Object
Returns the value of attribute sequence_type
44 45 46 |
# File 'lib/treezor_client/models/mandate.rb', line 44 def sequence_type @sequence_type end |
#signature_date ⇒ Object
Date YYYY-MM-DD
59 60 61 |
# File 'lib/treezor_client/models/mandate.rb', line 59 def signature_date @signature_date end |
#signed ⇒ Object
Returns the value of attribute signed
63 64 65 |
# File 'lib/treezor_client/models/mandate.rb', line 63 def signed @signed end |
#title ⇒ Object
Returns the value of attribute title
20 21 22 |
# File 'lib/treezor_client/models/mandate.rb', line 20 def title @title end |
#unique_mandate_reference ⇒ Object
Returns the value of attribute unique_mandate_reference
24 25 26 |
# File 'lib/treezor_client/models/mandate.rb', line 24 def unique_mandate_reference @unique_mandate_reference end |
#user_id ⇒ Object
Returns the value of attribute user_id
28 29 30 |
# File 'lib/treezor_client/models/mandate.rb', line 28 def user_id @user_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/treezor_client/models/mandate.rb', line 117 def self.attribute_map { :'mandate_id' => :'mandateId', :'title' => :'title', :'legal_informations' => :'legalInformations', :'unique_mandate_reference' => :'uniqueMandateReference', :'mandate_status' => :'mandateStatus', :'user_id' => :'userId', :'debtor_name' => :'debtorName', :'debtor_address' => :'debtorAddress', :'debtor_city' => :'debtorCity', :'debtor_zip_code' => :'debtorZipCode', :'debtor_country' => :'debtorCountry', :'debtor_iban' => :'debtorIban', :'debtor_bic' => :'debtorBic', :'sequence_type' => :'sequenceType', :'creditor_name' => :'creditorName', :'sepa_creditor_identifier' => :'sepaCreditorIdentifier', :'creditor_address' => :'creditorAddress', :'creditor_city' => :'creditorCity', :'creditor_zip_code' => :'creditorZipCode', :'creditor_country' => :'creditorCountry', :'signature_date' => :'signatureDate', :'debtor_signature_ip' => :'debtorSignatureIp', :'signed' => :'signed', :'debtor_identification_code' => :'debtorIdentificationCode', :'debtor_reference_party_name' => :'debtorReferencePartyName', :'debtor_reference_identification_code' => :'debtorReferenceIdentificationCode', :'creditor_reference_party_name' => :'creditorReferencePartyName', :'creditor_reference_identification_code' => :'creditorReferenceIdentificationCode', :'contract_identification_number' => :'contractIdentificationNumber', :'contract_description' => :'contractDescription', :'is_paper' => :'isPaper', :'sdd_type' => :'sddType', :'revocation_signature_date' => :'revocationSignatureDate', :'created_ip' => :'createdIp', :'created_date' => :'createdDate', :'modified_date' => :'modifiedDate' } end |
.swagger_types ⇒ Object
Attribute type mapping.
159 160 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 |
# File 'lib/treezor_client/models/mandate.rb', line 159 def self.swagger_types { :'mandate_id' => :'Integer', :'title' => :'String', :'legal_informations' => :'String', :'unique_mandate_reference' => :'String', :'mandate_status' => :'String', :'user_id' => :'Integer', :'debtor_name' => :'String', :'debtor_address' => :'String', :'debtor_city' => :'String', :'debtor_zip_code' => :'String', :'debtor_country' => :'String', :'debtor_iban' => :'String', :'debtor_bic' => :'String', :'sequence_type' => :'String', :'creditor_name' => :'String', :'sepa_creditor_identifier' => :'String', :'creditor_address' => :'String', :'creditor_city' => :'String', :'creditor_zip_code' => :'String', :'creditor_country' => :'String', :'signature_date' => :'String', :'debtor_signature_ip' => :'String', :'signed' => :'Integer', :'debtor_identification_code' => :'String', :'debtor_reference_party_name' => :'String', :'debtor_reference_identification_code' => :'String', :'creditor_reference_party_name' => :'String', :'creditor_reference_identification_code' => :'String', :'contract_identification_number' => :'String', :'contract_description' => :'String', :'is_paper' => :'BOOLEAN', :'sdd_type' => :'String', :'revocation_signature_date' => :'String', :'created_ip' => :'String', :'created_date' => :'String', :'modified_date' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/treezor_client/models/mandate.rb', line 405 def ==(o) return true if self.equal?(o) self.class == o.class && mandate_id == o.mandate_id && title == o.title && legal_informations == o.legal_informations && unique_mandate_reference == o.unique_mandate_reference && mandate_status == o.mandate_status && user_id == o.user_id && debtor_name == o.debtor_name && debtor_address == o.debtor_address && debtor_city == o.debtor_city && debtor_zip_code == o.debtor_zip_code && debtor_country == o.debtor_country && debtor_iban == o.debtor_iban && debtor_bic == o.debtor_bic && sequence_type == o.sequence_type && creditor_name == o.creditor_name && sepa_creditor_identifier == o.sepa_creditor_identifier && creditor_address == o.creditor_address && creditor_city == o.creditor_city && creditor_zip_code == o.creditor_zip_code && creditor_country == o.creditor_country && signature_date == o.signature_date && debtor_signature_ip == o.debtor_signature_ip && signed == o.signed && debtor_identification_code == o.debtor_identification_code && debtor_reference_party_name == o.debtor_reference_party_name && debtor_reference_identification_code == o.debtor_reference_identification_code && creditor_reference_party_name == o.creditor_reference_party_name && creditor_reference_identification_code == o.creditor_reference_identification_code && contract_identification_number == o.contract_identification_number && contract_description == o.contract_description && is_paper == o.is_paper && sdd_type == o.sdd_type && revocation_signature_date == o.revocation_signature_date && created_ip == o.created_ip && created_date == o.created_date && modified_date == o.modified_date end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 |
# File 'lib/treezor_client/models/mandate.rb', line 482 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
548 549 550 551 552 553 554 555 556 557 558 559 560 |
# File 'lib/treezor_client/models/mandate.rb', line 548 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
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 |
# File 'lib/treezor_client/models/mandate.rb', line 461 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
448 449 450 |
# File 'lib/treezor_client/models/mandate.rb', line 448 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
454 455 456 |
# File 'lib/treezor_client/models/mandate.rb', line 454 def hash [mandate_id, title, legal_informations, unique_mandate_reference, mandate_status, user_id, debtor_name, debtor_address, debtor_city, debtor_zip_code, debtor_country, debtor_iban, debtor_bic, sequence_type, creditor_name, sepa_creditor_identifier, creditor_address, creditor_city, creditor_zip_code, creditor_country, signature_date, debtor_signature_ip, signed, debtor_identification_code, debtor_reference_party_name, debtor_reference_identification_code, creditor_reference_party_name, creditor_reference_identification_code, contract_identification_number, contract_description, is_paper, sdd_type, revocation_signature_date, created_ip, created_date, modified_date].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
356 357 358 359 |
# File 'lib/treezor_client/models/mandate.rb', line 356 def list_invalid_properties invalid_properties = Array.new return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
528 529 530 |
# File 'lib/treezor_client/models/mandate.rb', line 528 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
534 535 536 537 538 539 540 541 542 |
# File 'lib/treezor_client/models/mandate.rb', line 534 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
522 523 524 |
# File 'lib/treezor_client/models/mandate.rb', line 522 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
363 364 365 366 367 368 369 370 371 |
# File 'lib/treezor_client/models/mandate.rb', line 363 def valid? mandate_status_validator = EnumAttributeValidator.new('String', ["PENDING", "CANCELED", "VALIDATED"]) return false unless mandate_status_validator.valid?(@mandate_status) sequence_type_validator = EnumAttributeValidator.new('String', ["one-off", "recurrent"]) return false unless sequence_type_validator.valid?(@sequence_type) sdd_type_validator = EnumAttributeValidator.new('String', ["core", "b2b"]) return false unless sdd_type_validator.valid?(@sdd_type) return true end |