Class: Pier::ContaResponse
- Inherits:
-
Object
- Object
- Pier::ContaResponse
- Defined in:
- lib/pier-sdk-ruby/models/conta_response.rb
Instance Attribute Summary collapse
-
#bin ⇒ Object
Returns the value of attribute bin.
-
#cartao ⇒ Object
Returns the value of attribute cartao.
-
#data_cadastramento ⇒ Object
Returns the value of attribute data_cadastramento.
-
#data_ultimo_pagamento ⇒ Object
Returns the value of attribute data_ultimo_pagamento.
-
#data_venc_cobranca ⇒ Object
Returns the value of attribute data_venc_cobranca.
-
#dddcelular_sms ⇒ Object
Returns the value of attribute dddcelular_sms.
-
#descricao_status ⇒ Object
Returns the value of attribute descricao_status.
-
#dias_em_atraso ⇒ Object
Returns the value of attribute dias_em_atraso.
-
#emissor ⇒ Object
Returns the value of attribute emissor.
-
#flag_cancelamento ⇒ Object
Returns the value of attribute flag_cancelamento.
-
#forma_envio_fatura ⇒ Object
Returns the value of attribute forma_envio_fatura.
-
#id_bandeira ⇒ Object
Returns the value of attribute id_bandeira.
-
#id_conta ⇒ Object
Returns the value of attribute id_conta.
-
#id_emissor ⇒ Object
Returns the value of attribute id_emissor.
-
#id_endereco ⇒ Object
Returns the value of attribute id_endereco.
-
#id_fantasia_basica ⇒ Object
Returns the value of attribute id_fantasia_basica.
-
#id_origem_comercial ⇒ Object
Returns the value of attribute id_origem_comercial.
-
#id_produto ⇒ Object
Returns the value of attribute id_produto.
-
#id_proposta ⇒ Object
Returns the value of attribute id_proposta.
-
#melhor_dia ⇒ Object
Returns the value of attribute melhor_dia.
-
#nome_credor ⇒ Object
Returns the value of attribute nome_credor.
-
#nome_produto ⇒ Object
Returns the value of attribute nome_produto.
-
#num_celular_sms ⇒ Object
Returns the value of attribute num_celular_sms.
-
#pagamentos ⇒ Object
Returns the value of attribute pagamentos.
-
#permite_refinanciamento ⇒ Object
Returns the value of attribute permite_refinanciamento.
-
#pessoa_fisica ⇒ Object
Returns the value of attribute pessoa_fisica.
-
#quantidade_pagamentos ⇒ Object
Returns the value of attribute quantidade_pagamentos.
-
#saldo_limite ⇒ Object
Returns the value of attribute saldo_limite.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_data ⇒ Object
Returns the value of attribute status_data.
-
#taxa_refinanciamento ⇒ Object
Returns the value of attribute taxa_refinanciamento.
-
#vcto ⇒ Object
Returns the value of attribute vcto.
-
#vencimento1 ⇒ Object
Returns the value of attribute vencimento1.
-
#vinculo_origem_usuario ⇒ Object
Returns the value of attribute vinculo_origem_usuario.
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 = {}) ⇒ ContaResponse
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 = {}) ⇒ ContaResponse
Initializes the object
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 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 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 241 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[:'bin'] self.bin = attributes[:'bin'] end if attributes[:'cartao'] self.cartao = attributes[:'cartao'] end if attributes[:'dataCadastramento'] self.data_cadastramento = attributes[:'dataCadastramento'] end if attributes[:'dataUltimoPagamento'] self.data_ultimo_pagamento = attributes[:'dataUltimoPagamento'] end if attributes[:'dataVencCobranca'] self.data_venc_cobranca = attributes[:'dataVencCobranca'] end if attributes[:'dddcelularSMS'] self.dddcelular_sms = attributes[:'dddcelularSMS'] end if attributes[:'descricaoStatus'] self.descricao_status = attributes[:'descricaoStatus'] end if attributes[:'diasEmAtraso'] self.dias_em_atraso = attributes[:'diasEmAtraso'] end if attributes[:'emissor'] self.emissor = attributes[:'emissor'] end if attributes[:'flagCancelamento'] self.flag_cancelamento = attributes[:'flagCancelamento'] end if attributes[:'formaEnvioFatura'] self.forma_envio_fatura = attributes[:'formaEnvioFatura'] end if attributes[:'idBandeira'] self.id_bandeira = attributes[:'idBandeira'] end if attributes[:'idConta'] self.id_conta = attributes[:'idConta'] end if attributes[:'idEmissor'] self.id_emissor = attributes[:'idEmissor'] end if attributes[:'idEndereco'] self.id_endereco = attributes[:'idEndereco'] end if attributes[:'idFantasiaBasica'] self.id_fantasia_basica = attributes[:'idFantasiaBasica'] end if attributes[:'idOrigemComercial'] self.id_origem_comercial = attributes[:'idOrigemComercial'] end if attributes[:'idProduto'] self.id_produto = attributes[:'idProduto'] end if attributes[:'idProposta'] self.id_proposta = attributes[:'idProposta'] end if attributes[:'melhorDia'] self.melhor_dia = attributes[:'melhorDia'] end if attributes[:'nomeCredor'] self.nome_credor = attributes[:'nomeCredor'] end if attributes[:'nomeProduto'] self.nome_produto = attributes[:'nomeProduto'] end if attributes[:'numCelularSMS'] self.num_celular_sms = attributes[:'numCelularSMS'] end if attributes[:'pagamentos'] self.pagamentos = attributes[:'pagamentos'] end if attributes[:'permiteRefinanciamento'] self.permite_refinanciamento = attributes[:'permiteRefinanciamento'] end if attributes[:'pessoaFisica'] self.pessoa_fisica = attributes[:'pessoaFisica'] end if attributes[:'quantidadePagamentos'] self.quantidade_pagamentos = attributes[:'quantidadePagamentos'] end if attributes[:'saldoLimite'] self.saldo_limite = attributes[:'saldoLimite'] end if attributes[:'status'] self.status = attributes[:'status'] end if attributes[:'statusData'] self.status_data = attributes[:'statusData'] end if attributes[:'taxaRefinanciamento'] self.taxa_refinanciamento = attributes[:'taxaRefinanciamento'] end if attributes[:'vcto'] self.vcto = attributes[:'vcto'] end if attributes[:'vencimento1'] self.vencimento1 = attributes[:'vencimento1'] end if attributes[:'vinculoOrigemUsuario'] self.vinculo_origem_usuario = attributes[:'vinculoOrigemUsuario'] end end |
Instance Attribute Details
#bin ⇒ Object
Returns the value of attribute bin.
21 22 23 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 21 def bin @bin end |
#cartao ⇒ Object
Returns the value of attribute cartao.
23 24 25 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 23 def cartao @cartao end |
#data_cadastramento ⇒ Object
Returns the value of attribute data_cadastramento.
25 26 27 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 25 def data_cadastramento @data_cadastramento end |
#data_ultimo_pagamento ⇒ Object
Returns the value of attribute data_ultimo_pagamento.
27 28 29 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 27 def data_ultimo_pagamento @data_ultimo_pagamento end |
#data_venc_cobranca ⇒ Object
Returns the value of attribute data_venc_cobranca.
29 30 31 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 29 def data_venc_cobranca @data_venc_cobranca end |
#dddcelular_sms ⇒ Object
Returns the value of attribute dddcelular_sms.
31 32 33 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 31 def dddcelular_sms @dddcelular_sms end |
#descricao_status ⇒ Object
Returns the value of attribute descricao_status.
33 34 35 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 33 def descricao_status @descricao_status end |
#dias_em_atraso ⇒ Object
Returns the value of attribute dias_em_atraso.
35 36 37 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 35 def dias_em_atraso @dias_em_atraso end |
#emissor ⇒ Object
Returns the value of attribute emissor.
37 38 39 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 37 def emissor @emissor end |
#flag_cancelamento ⇒ Object
Returns the value of attribute flag_cancelamento.
39 40 41 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 39 def flag_cancelamento @flag_cancelamento end |
#forma_envio_fatura ⇒ Object
Returns the value of attribute forma_envio_fatura.
41 42 43 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 41 def forma_envio_fatura @forma_envio_fatura end |
#id_bandeira ⇒ Object
Returns the value of attribute id_bandeira.
43 44 45 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 43 def id_bandeira @id_bandeira end |
#id_conta ⇒ Object
Returns the value of attribute id_conta.
45 46 47 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 45 def id_conta @id_conta end |
#id_emissor ⇒ Object
Returns the value of attribute id_emissor.
47 48 49 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 47 def id_emissor @id_emissor end |
#id_endereco ⇒ Object
Returns the value of attribute id_endereco.
49 50 51 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 49 def id_endereco @id_endereco end |
#id_fantasia_basica ⇒ Object
Returns the value of attribute id_fantasia_basica.
51 52 53 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 51 def id_fantasia_basica @id_fantasia_basica end |
#id_origem_comercial ⇒ Object
Returns the value of attribute id_origem_comercial.
53 54 55 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 53 def id_origem_comercial @id_origem_comercial end |
#id_produto ⇒ Object
Returns the value of attribute id_produto.
55 56 57 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 55 def id_produto @id_produto end |
#id_proposta ⇒ Object
Returns the value of attribute id_proposta.
57 58 59 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 57 def id_proposta @id_proposta end |
#melhor_dia ⇒ Object
Returns the value of attribute melhor_dia.
59 60 61 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 59 def melhor_dia @melhor_dia end |
#nome_credor ⇒ Object
Returns the value of attribute nome_credor.
61 62 63 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 61 def nome_credor @nome_credor end |
#nome_produto ⇒ Object
Returns the value of attribute nome_produto.
63 64 65 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 63 def nome_produto @nome_produto end |
#num_celular_sms ⇒ Object
Returns the value of attribute num_celular_sms.
65 66 67 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 65 def num_celular_sms @num_celular_sms end |
#pagamentos ⇒ Object
Returns the value of attribute pagamentos.
67 68 69 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 67 def pagamentos @pagamentos end |
#permite_refinanciamento ⇒ Object
Returns the value of attribute permite_refinanciamento.
69 70 71 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 69 def permite_refinanciamento @permite_refinanciamento end |
#pessoa_fisica ⇒ Object
Returns the value of attribute pessoa_fisica.
71 72 73 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 71 def pessoa_fisica @pessoa_fisica end |
#quantidade_pagamentos ⇒ Object
Returns the value of attribute quantidade_pagamentos.
73 74 75 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 73 def quantidade_pagamentos @quantidade_pagamentos end |
#saldo_limite ⇒ Object
Returns the value of attribute saldo_limite.
75 76 77 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 75 def saldo_limite @saldo_limite end |
#status ⇒ Object
Returns the value of attribute status.
77 78 79 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 77 def status @status end |
#status_data ⇒ Object
Returns the value of attribute status_data.
79 80 81 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 79 def status_data @status_data end |
#taxa_refinanciamento ⇒ Object
Returns the value of attribute taxa_refinanciamento.
81 82 83 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 81 def taxa_refinanciamento @taxa_refinanciamento end |
#vcto ⇒ Object
Returns the value of attribute vcto.
83 84 85 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 83 def vcto @vcto end |
#vencimento1 ⇒ Object
Returns the value of attribute vencimento1.
85 86 87 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 85 def vencimento1 @vencimento1 end |
#vinculo_origem_usuario ⇒ Object
Returns the value of attribute vinculo_origem_usuario.
87 88 89 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 87 def vinculo_origem_usuario @vinculo_origem_usuario end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 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 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 90 def self.attribute_map { :'bin' => :'bin', :'cartao' => :'cartao', :'data_cadastramento' => :'dataCadastramento', :'data_ultimo_pagamento' => :'dataUltimoPagamento', :'data_venc_cobranca' => :'dataVencCobranca', :'dddcelular_sms' => :'dddcelularSMS', :'descricao_status' => :'descricaoStatus', :'dias_em_atraso' => :'diasEmAtraso', :'emissor' => :'emissor', :'flag_cancelamento' => :'flagCancelamento', :'forma_envio_fatura' => :'formaEnvioFatura', :'id_bandeira' => :'idBandeira', :'id_conta' => :'idConta', :'id_emissor' => :'idEmissor', :'id_endereco' => :'idEndereco', :'id_fantasia_basica' => :'idFantasiaBasica', :'id_origem_comercial' => :'idOrigemComercial', :'id_produto' => :'idProduto', :'id_proposta' => :'idProposta', :'melhor_dia' => :'melhorDia', :'nome_credor' => :'nomeCredor', :'nome_produto' => :'nomeProduto', :'num_celular_sms' => :'numCelularSMS', :'pagamentos' => :'pagamentos', :'permite_refinanciamento' => :'permiteRefinanciamento', :'pessoa_fisica' => :'pessoaFisica', :'quantidade_pagamentos' => :'quantidadePagamentos', :'saldo_limite' => :'saldoLimite', :'status' => :'status', :'status_data' => :'statusData', :'taxa_refinanciamento' => :'taxaRefinanciamento', :'vcto' => :'vcto', :'vencimento1' => :'vencimento1', :'vinculo_origem_usuario' => :'vinculoOrigemUsuario' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 165 def self.swagger_types { :'bin' => :'Integer', :'cartao' => :'ConsultarContaCartaoResponse', :'data_cadastramento' => :'String', :'data_ultimo_pagamento' => :'String', :'data_venc_cobranca' => :'String', :'dddcelular_sms' => :'String', :'descricao_status' => :'String', :'dias_em_atraso' => :'Integer', :'emissor' => :'String', :'flag_cancelamento' => :'BOOLEAN', :'forma_envio_fatura' => :'String', :'id_bandeira' => :'Integer', :'id_conta' => :'Integer', :'id_emissor' => :'Integer', :'id_endereco' => :'Integer', :'id_fantasia_basica' => :'Integer', :'id_origem_comercial' => :'Integer', :'id_produto' => :'Integer', :'id_proposta' => :'Integer', :'melhor_dia' => :'Integer', :'nome_credor' => :'String', :'nome_produto' => :'String', :'num_celular_sms' => :'String', :'pagamentos' => :'Float', :'permite_refinanciamento' => :'BOOLEAN', :'pessoa_fisica' => :'PessoaFisicaResponse', :'quantidade_pagamentos' => :'Integer', :'saldo_limite' => :'SaldoLimiteResponse', :'status' => :'Integer', :'status_data' => :'DateTime', :'taxa_refinanciamento' => :'String', :'vcto' => :'String', :'vencimento1' => :'Integer', :'vinculo_origem_usuario' => :'BOOLEAN' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 880 def ==(o) return true if self.equal?(o) self.class == o.class && bin == o.bin && cartao == o.cartao && data_cadastramento == o.data_cadastramento && data_ultimo_pagamento == o.data_ultimo_pagamento && data_venc_cobranca == o.data_venc_cobranca && dddcelular_sms == o.dddcelular_sms && descricao_status == o.descricao_status && dias_em_atraso == o.dias_em_atraso && emissor == o.emissor && flag_cancelamento == o.flag_cancelamento && forma_envio_fatura == o.forma_envio_fatura && id_bandeira == o.id_bandeira && id_conta == o.id_conta && id_emissor == o.id_emissor && id_endereco == o.id_endereco && id_fantasia_basica == o.id_fantasia_basica && id_origem_comercial == o.id_origem_comercial && id_produto == o.id_produto && id_proposta == o.id_proposta && melhor_dia == o.melhor_dia && nome_credor == o.nome_credor && nome_produto == o.nome_produto && num_celular_sms == o.num_celular_sms && pagamentos == o.pagamentos && permite_refinanciamento == o.permite_refinanciamento && pessoa_fisica == o.pessoa_fisica && quantidade_pagamentos == o.quantidade_pagamentos && saldo_limite == o.saldo_limite && status == o.status && status_data == o.status_data && taxa_refinanciamento == o.taxa_refinanciamento && vcto == o.vcto && vencimento1 == o.vencimento1 && vinculo_origem_usuario == o.vinculo_origem_usuario end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 955 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 =~ /^(true|t|yes|y|1)$/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 = Pier.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
1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 1021 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
934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 934 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/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
921 922 923 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 921 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
927 928 929 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 927 def hash [bin, cartao, data_cadastramento, data_ultimo_pagamento, data_venc_cobranca, dddcelular_sms, descricao_status, dias_em_atraso, emissor, flag_cancelamento, forma_envio_fatura, id_bandeira, id_conta, id_emissor, id_endereco, id_fantasia_basica, id_origem_comercial, id_produto, id_proposta, melhor_dia, nome_credor, nome_produto, num_celular_sms, pagamentos, permite_refinanciamento, pessoa_fisica, quantidade_pagamentos, saldo_limite, status, status_data, taxa_refinanciamento, vcto, vencimento1, vinculo_origem_usuario].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
558 559 560 561 562 563 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 558 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)
1001 1002 1003 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 1001 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1007 1008 1009 1010 1011 1012 1013 1014 1015 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 1007 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
995 996 997 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 995 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
567 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 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 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 704 705 |
# File 'lib/pier-sdk-ruby/models/conta_response.rb', line 567 def valid? end |