pier-sdk-ruby 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. data/README.md +141 -0
  2. data/docs/AuthToken.md +12 -0
  3. data/docs/BodyAccessToken.md +10 -0
  4. data/docs/CancelarCartaoResponse.md +11 -0
  5. data/docs/CartaoApi.md +252 -0
  6. data/docs/CartaoResponse.md +29 -0
  7. data/docs/ConsultarCartaoResponse.md +10 -0
  8. data/docs/ConsultarContaCartaoResponse.md +18 -0
  9. data/docs/ConsultarContaResponse.md +11 -0
  10. data/docs/ConsultarExtratoContaResponse.md +23 -0
  11. data/docs/ConsultarSaldoLimitesResponse.md +23 -0
  12. data/docs/ContaApi.md +238 -0
  13. data/docs/ContaCartaoResponse.md +21 -0
  14. data/docs/ContaResponse.md +41 -0
  15. data/docs/DesbloquearCartaoResponse.md +9 -0
  16. data/docs/ExtraInfo.md +8 -0
  17. data/docs/ExtratoResponse.md +35 -0
  18. data/docs/PessoaFisicaResponse.md +26 -0
  19. data/docs/SaldoLimiteResponse.md +39 -0
  20. data/docs/TokenApi.md +114 -0
  21. data/git_push.sh +52 -0
  22. data/lib/pier-sdk-ruby.rb +62 -0
  23. data/lib/pier-sdk-ruby/api/cartao_api.rb +355 -0
  24. data/lib/pier-sdk-ruby/api/conta_api.rb +324 -0
  25. data/lib/pier-sdk-ruby/api/token_api.rb +157 -0
  26. data/lib/pier-sdk-ruby/api_client.rb +368 -0
  27. data/lib/pier-sdk-ruby/api_error.rb +40 -0
  28. data/lib/pier-sdk-ruby/configuration.rb +177 -0
  29. data/lib/pier-sdk-ruby/models/auth_token.rb +325 -0
  30. data/lib/pier-sdk-ruby/models/body_access_token.rb +275 -0
  31. data/lib/pier-sdk-ruby/models/cancelar_cartao_response.rb +286 -0
  32. data/lib/pier-sdk-ruby/models/cartao_response.rb +736 -0
  33. data/lib/pier-sdk-ruby/models/consultar_cartao_response.rb +263 -0
  34. data/lib/pier-sdk-ruby/models/consultar_conta_cartao_response.rb +461 -0
  35. data/lib/pier-sdk-ruby/models/consultar_conta_response.rb +288 -0
  36. data/lib/pier-sdk-ruby/models/consultar_extrato_conta_response.rb +588 -0
  37. data/lib/pier-sdk-ruby/models/consultar_saldo_limites_response.rb +586 -0
  38. data/lib/pier-sdk-ruby/models/conta_cartao_response.rb +536 -0
  39. data/lib/pier-sdk-ruby/models/conta_response.rb +1036 -0
  40. data/lib/pier-sdk-ruby/models/desbloquear_cartao_response.rb +236 -0
  41. data/lib/pier-sdk-ruby/models/extra_info.rb +211 -0
  42. data/lib/pier-sdk-ruby/models/extrato_response.rb +886 -0
  43. data/lib/pier-sdk-ruby/models/pessoa_fisica_response.rb +661 -0
  44. data/lib/pier-sdk-ruby/models/saldo_limite_response.rb +986 -0
  45. data/lib/pier-sdk-ruby/version.rb +19 -0
  46. data/pier-sdk-ruby.gemspec +33 -0
  47. data/spec/api/cartao_api_spec.rb +110 -0
  48. data/spec/api/conta_api_spec.rb +107 -0
  49. data/spec/api/token_api_spec.rb +71 -0
  50. data/spec/models/auth_token_spec.rb +90 -0
  51. data/spec/models/body_access_token_spec.rb +70 -0
  52. data/spec/models/cancelar_cartao_response_spec.rb +80 -0
  53. data/spec/models/cartao_response_spec.rb +260 -0
  54. data/spec/models/consultar_cartao_response_spec.rb +70 -0
  55. data/spec/models/consultar_conta_cartao_response_spec.rb +150 -0
  56. data/spec/models/consultar_conta_response_spec.rb +80 -0
  57. data/spec/models/consultar_extrato_conta_response_spec.rb +200 -0
  58. data/spec/models/consultar_saldo_limites_response_spec.rb +200 -0
  59. data/spec/models/conta_cartao_response_spec.rb +180 -0
  60. data/spec/models/conta_response_spec.rb +380 -0
  61. data/spec/models/desbloquear_cartao_response_spec.rb +60 -0
  62. data/spec/models/extra_info_spec.rb +50 -0
  63. data/spec/models/extrato_response_spec.rb +320 -0
  64. data/spec/models/pessoa_fisica_response_spec.rb +230 -0
  65. data/spec/models/saldo_limite_response_spec.rb +360 -0
  66. metadata +310 -0
@@ -0,0 +1,986 @@
1
+ =begin
2
+ CaaS - Conductor as a Service
3
+
4
+ Gest\u00C3\u00A3o de pagamento eletr\u00C3\u00B4nicos como servi\u00C3\u00A7o
5
+
6
+ OpenAPI spec version: 0.0.1
7
+ Contact: contato@conductor.com.br
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: Apache 2.0
11
+ http://www.apache.org/licenses/LICENSE-2.0.html
12
+
13
+ Terms of Service: http://dev.conductor.com.br/terms/
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module Pier
20
+ class SaldoLimiteResponse
21
+ attr_accessor :disponib_compra_nac
22
+
23
+ attr_accessor :disponib_global_credito
24
+
25
+ attr_accessor :disponib_parcelado_nac
26
+
27
+ attr_accessor :disponib_parcelas_nac
28
+
29
+ attr_accessor :disponib_saque_nac_global
30
+
31
+ attr_accessor :flag_antecipacao
32
+
33
+ attr_accessor :limite_compra_nac
34
+
35
+ attr_accessor :limite_credito_concedido
36
+
37
+ attr_accessor :limite_credito_disponivel
38
+
39
+ attr_accessor :limite_global_credito
40
+
41
+ attr_accessor :limite_parcelado_nac
42
+
43
+ attr_accessor :limite_parcelas_nac
44
+
45
+ attr_accessor :limite_pontuacao
46
+
47
+ attr_accessor :limite_saque_nac_global
48
+
49
+ attr_accessor :numero_ciclo
50
+
51
+ attr_accessor :pontos_concedidos
52
+
53
+ attr_accessor :pontos_remanescentes
54
+
55
+ attr_accessor :proximo_vencimento_padrao
56
+
57
+ attr_accessor :proximo_vencimento_real
58
+
59
+ attr_accessor :saldo_atual_final
60
+
61
+ attr_accessor :saldo_credor
62
+
63
+ attr_accessor :saldo_devedor
64
+
65
+ attr_accessor :saldo_devedor_oneroso
66
+
67
+ attr_accessor :saldo_devedor_total
68
+
69
+ attr_accessor :salta_extrato_anterior
70
+
71
+ attr_accessor :total_disponivel_utilizacao
72
+
73
+ attr_accessor :total_futuro
74
+
75
+ attr_accessor :valor_minimo_extrato
76
+
77
+ attr_accessor :valor_minimo_extrato_original
78
+
79
+ attr_accessor :vencimento_padrao_anterior
80
+
81
+ attr_accessor :vencimento_pos_prox
82
+
83
+ attr_accessor :vencimento_real_anterior
84
+
85
+ # Attribute mapping from ruby-style variable name to JSON key.
86
+ def self.attribute_map
87
+ {
88
+
89
+ :'disponib_compra_nac' => :'disponibCompraNac',
90
+
91
+ :'disponib_global_credito' => :'disponibGlobalCredito',
92
+
93
+ :'disponib_parcelado_nac' => :'disponibParceladoNac',
94
+
95
+ :'disponib_parcelas_nac' => :'disponibParcelasNac',
96
+
97
+ :'disponib_saque_nac_global' => :'disponibSaqueNacGlobal',
98
+
99
+ :'flag_antecipacao' => :'flagAntecipacao',
100
+
101
+ :'limite_compra_nac' => :'limiteCompraNac',
102
+
103
+ :'limite_credito_concedido' => :'limiteCreditoConcedido',
104
+
105
+ :'limite_credito_disponivel' => :'limiteCreditoDisponivel',
106
+
107
+ :'limite_global_credito' => :'limiteGlobalCredito',
108
+
109
+ :'limite_parcelado_nac' => :'limiteParceladoNac',
110
+
111
+ :'limite_parcelas_nac' => :'limiteParcelasNac',
112
+
113
+ :'limite_pontuacao' => :'limitePontuacao',
114
+
115
+ :'limite_saque_nac_global' => :'limiteSaqueNacGlobal',
116
+
117
+ :'numero_ciclo' => :'numeroCiclo',
118
+
119
+ :'pontos_concedidos' => :'pontosConcedidos',
120
+
121
+ :'pontos_remanescentes' => :'pontosRemanescentes',
122
+
123
+ :'proximo_vencimento_padrao' => :'proximoVencimentoPadrao',
124
+
125
+ :'proximo_vencimento_real' => :'proximoVencimentoReal',
126
+
127
+ :'saldo_atual_final' => :'saldoAtualFinal',
128
+
129
+ :'saldo_credor' => :'saldoCredor',
130
+
131
+ :'saldo_devedor' => :'saldoDevedor',
132
+
133
+ :'saldo_devedor_oneroso' => :'saldoDevedorOneroso',
134
+
135
+ :'saldo_devedor_total' => :'saldoDevedorTotal',
136
+
137
+ :'salta_extrato_anterior' => :'saltaExtratoAnterior',
138
+
139
+ :'total_disponivel_utilizacao' => :'totalDisponivelUtilizacao',
140
+
141
+ :'total_futuro' => :'totalFuturo',
142
+
143
+ :'valor_minimo_extrato' => :'valorMinimoExtrato',
144
+
145
+ :'valor_minimo_extrato_original' => :'valorMinimoExtratoOriginal',
146
+
147
+ :'vencimento_padrao_anterior' => :'vencimentoPadraoAnterior',
148
+
149
+ :'vencimento_pos_prox' => :'vencimentoPosProx',
150
+
151
+ :'vencimento_real_anterior' => :'vencimentoRealAnterior'
152
+
153
+ }
154
+ end
155
+
156
+ # Attribute type mapping.
157
+ def self.swagger_types
158
+ {
159
+
160
+ :'disponib_compra_nac' => :'Float',
161
+
162
+ :'disponib_global_credito' => :'Float',
163
+
164
+ :'disponib_parcelado_nac' => :'Float',
165
+
166
+ :'disponib_parcelas_nac' => :'Float',
167
+
168
+ :'disponib_saque_nac_global' => :'Float',
169
+
170
+ :'flag_antecipacao' => :'BOOLEAN',
171
+
172
+ :'limite_compra_nac' => :'Float',
173
+
174
+ :'limite_credito_concedido' => :'Float',
175
+
176
+ :'limite_credito_disponivel' => :'Float',
177
+
178
+ :'limite_global_credito' => :'Float',
179
+
180
+ :'limite_parcelado_nac' => :'Float',
181
+
182
+ :'limite_parcelas_nac' => :'Float',
183
+
184
+ :'limite_pontuacao' => :'Float',
185
+
186
+ :'limite_saque_nac_global' => :'Float',
187
+
188
+ :'numero_ciclo' => :'Integer',
189
+
190
+ :'pontos_concedidos' => :'Float',
191
+
192
+ :'pontos_remanescentes' => :'Float',
193
+
194
+ :'proximo_vencimento_padrao' => :'String',
195
+
196
+ :'proximo_vencimento_real' => :'String',
197
+
198
+ :'saldo_atual_final' => :'Float',
199
+
200
+ :'saldo_credor' => :'Float',
201
+
202
+ :'saldo_devedor' => :'Float',
203
+
204
+ :'saldo_devedor_oneroso' => :'Float',
205
+
206
+ :'saldo_devedor_total' => :'Float',
207
+
208
+ :'salta_extrato_anterior' => :'Float',
209
+
210
+ :'total_disponivel_utilizacao' => :'Float',
211
+
212
+ :'total_futuro' => :'Float',
213
+
214
+ :'valor_minimo_extrato' => :'Float',
215
+
216
+ :'valor_minimo_extrato_original' => :'Float',
217
+
218
+ :'vencimento_padrao_anterior' => :'String',
219
+
220
+ :'vencimento_pos_prox' => :'String',
221
+
222
+ :'vencimento_real_anterior' => :'String'
223
+
224
+ }
225
+ end
226
+
227
+ # Initializes the object
228
+ # @param [Hash] attributes Model attributes in the form of hash
229
+ def initialize(attributes = {})
230
+ return unless attributes.is_a?(Hash)
231
+
232
+ # convert string to symbol for hash key
233
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
234
+
235
+
236
+ if attributes[:'disponibCompraNac']
237
+
238
+
239
+ self.disponib_compra_nac = attributes[:'disponibCompraNac']
240
+
241
+
242
+ end
243
+
244
+
245
+ if attributes[:'disponibGlobalCredito']
246
+
247
+
248
+ self.disponib_global_credito = attributes[:'disponibGlobalCredito']
249
+
250
+
251
+ end
252
+
253
+
254
+ if attributes[:'disponibParceladoNac']
255
+
256
+
257
+ self.disponib_parcelado_nac = attributes[:'disponibParceladoNac']
258
+
259
+
260
+ end
261
+
262
+
263
+ if attributes[:'disponibParcelasNac']
264
+
265
+
266
+ self.disponib_parcelas_nac = attributes[:'disponibParcelasNac']
267
+
268
+
269
+ end
270
+
271
+
272
+ if attributes[:'disponibSaqueNacGlobal']
273
+
274
+
275
+ self.disponib_saque_nac_global = attributes[:'disponibSaqueNacGlobal']
276
+
277
+
278
+ end
279
+
280
+
281
+ if attributes[:'flagAntecipacao']
282
+
283
+
284
+ self.flag_antecipacao = attributes[:'flagAntecipacao']
285
+
286
+
287
+ end
288
+
289
+
290
+ if attributes[:'limiteCompraNac']
291
+
292
+
293
+ self.limite_compra_nac = attributes[:'limiteCompraNac']
294
+
295
+
296
+ end
297
+
298
+
299
+ if attributes[:'limiteCreditoConcedido']
300
+
301
+
302
+ self.limite_credito_concedido = attributes[:'limiteCreditoConcedido']
303
+
304
+
305
+ end
306
+
307
+
308
+ if attributes[:'limiteCreditoDisponivel']
309
+
310
+
311
+ self.limite_credito_disponivel = attributes[:'limiteCreditoDisponivel']
312
+
313
+
314
+ end
315
+
316
+
317
+ if attributes[:'limiteGlobalCredito']
318
+
319
+
320
+ self.limite_global_credito = attributes[:'limiteGlobalCredito']
321
+
322
+
323
+ end
324
+
325
+
326
+ if attributes[:'limiteParceladoNac']
327
+
328
+
329
+ self.limite_parcelado_nac = attributes[:'limiteParceladoNac']
330
+
331
+
332
+ end
333
+
334
+
335
+ if attributes[:'limiteParcelasNac']
336
+
337
+
338
+ self.limite_parcelas_nac = attributes[:'limiteParcelasNac']
339
+
340
+
341
+ end
342
+
343
+
344
+ if attributes[:'limitePontuacao']
345
+
346
+
347
+ self.limite_pontuacao = attributes[:'limitePontuacao']
348
+
349
+
350
+ end
351
+
352
+
353
+ if attributes[:'limiteSaqueNacGlobal']
354
+
355
+
356
+ self.limite_saque_nac_global = attributes[:'limiteSaqueNacGlobal']
357
+
358
+
359
+ end
360
+
361
+
362
+ if attributes[:'numeroCiclo']
363
+
364
+
365
+ self.numero_ciclo = attributes[:'numeroCiclo']
366
+
367
+
368
+ end
369
+
370
+
371
+ if attributes[:'pontosConcedidos']
372
+
373
+
374
+ self.pontos_concedidos = attributes[:'pontosConcedidos']
375
+
376
+
377
+ end
378
+
379
+
380
+ if attributes[:'pontosRemanescentes']
381
+
382
+
383
+ self.pontos_remanescentes = attributes[:'pontosRemanescentes']
384
+
385
+
386
+ end
387
+
388
+
389
+ if attributes[:'proximoVencimentoPadrao']
390
+
391
+
392
+ self.proximo_vencimento_padrao = attributes[:'proximoVencimentoPadrao']
393
+
394
+
395
+ end
396
+
397
+
398
+ if attributes[:'proximoVencimentoReal']
399
+
400
+
401
+ self.proximo_vencimento_real = attributes[:'proximoVencimentoReal']
402
+
403
+
404
+ end
405
+
406
+
407
+ if attributes[:'saldoAtualFinal']
408
+
409
+
410
+ self.saldo_atual_final = attributes[:'saldoAtualFinal']
411
+
412
+
413
+ end
414
+
415
+
416
+ if attributes[:'saldoCredor']
417
+
418
+
419
+ self.saldo_credor = attributes[:'saldoCredor']
420
+
421
+
422
+ end
423
+
424
+
425
+ if attributes[:'saldoDevedor']
426
+
427
+
428
+ self.saldo_devedor = attributes[:'saldoDevedor']
429
+
430
+
431
+ end
432
+
433
+
434
+ if attributes[:'saldoDevedorOneroso']
435
+
436
+
437
+ self.saldo_devedor_oneroso = attributes[:'saldoDevedorOneroso']
438
+
439
+
440
+ end
441
+
442
+
443
+ if attributes[:'saldoDevedorTotal']
444
+
445
+
446
+ self.saldo_devedor_total = attributes[:'saldoDevedorTotal']
447
+
448
+
449
+ end
450
+
451
+
452
+ if attributes[:'saltaExtratoAnterior']
453
+
454
+
455
+ self.salta_extrato_anterior = attributes[:'saltaExtratoAnterior']
456
+
457
+
458
+ end
459
+
460
+
461
+ if attributes[:'totalDisponivelUtilizacao']
462
+
463
+
464
+ self.total_disponivel_utilizacao = attributes[:'totalDisponivelUtilizacao']
465
+
466
+
467
+ end
468
+
469
+
470
+ if attributes[:'totalFuturo']
471
+
472
+
473
+ self.total_futuro = attributes[:'totalFuturo']
474
+
475
+
476
+ end
477
+
478
+
479
+ if attributes[:'valorMinimoExtrato']
480
+
481
+
482
+ self.valor_minimo_extrato = attributes[:'valorMinimoExtrato']
483
+
484
+
485
+ end
486
+
487
+
488
+ if attributes[:'valorMinimoExtratoOriginal']
489
+
490
+
491
+ self.valor_minimo_extrato_original = attributes[:'valorMinimoExtratoOriginal']
492
+
493
+
494
+ end
495
+
496
+
497
+ if attributes[:'vencimentoPadraoAnterior']
498
+
499
+
500
+ self.vencimento_padrao_anterior = attributes[:'vencimentoPadraoAnterior']
501
+
502
+
503
+ end
504
+
505
+
506
+ if attributes[:'vencimentoPosProx']
507
+
508
+
509
+ self.vencimento_pos_prox = attributes[:'vencimentoPosProx']
510
+
511
+
512
+ end
513
+
514
+
515
+ if attributes[:'vencimentoRealAnterior']
516
+
517
+
518
+ self.vencimento_real_anterior = attributes[:'vencimentoRealAnterior']
519
+
520
+
521
+ end
522
+
523
+
524
+ end
525
+
526
+ # Show invalid properties with the reasons. Usually used together with valid?
527
+ # @return Array for valid properies with the reasons
528
+ def list_invalid_properties
529
+ invalid_properties = Array.new
530
+
531
+
532
+ return invalid_properties
533
+ end
534
+
535
+ # Check to see if the all the properties in the model are valid
536
+ # @return true if the model is valid
537
+ def valid?
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
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
+ end
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
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+ # Checks equality by comparing each attribute.
831
+ # @param [Object] Object to be compared
832
+ def ==(o)
833
+ return true if self.equal?(o)
834
+ self.class == o.class &&
835
+ disponib_compra_nac == o.disponib_compra_nac &&
836
+ disponib_global_credito == o.disponib_global_credito &&
837
+ disponib_parcelado_nac == o.disponib_parcelado_nac &&
838
+ disponib_parcelas_nac == o.disponib_parcelas_nac &&
839
+ disponib_saque_nac_global == o.disponib_saque_nac_global &&
840
+ flag_antecipacao == o.flag_antecipacao &&
841
+ limite_compra_nac == o.limite_compra_nac &&
842
+ limite_credito_concedido == o.limite_credito_concedido &&
843
+ limite_credito_disponivel == o.limite_credito_disponivel &&
844
+ limite_global_credito == o.limite_global_credito &&
845
+ limite_parcelado_nac == o.limite_parcelado_nac &&
846
+ limite_parcelas_nac == o.limite_parcelas_nac &&
847
+ limite_pontuacao == o.limite_pontuacao &&
848
+ limite_saque_nac_global == o.limite_saque_nac_global &&
849
+ numero_ciclo == o.numero_ciclo &&
850
+ pontos_concedidos == o.pontos_concedidos &&
851
+ pontos_remanescentes == o.pontos_remanescentes &&
852
+ proximo_vencimento_padrao == o.proximo_vencimento_padrao &&
853
+ proximo_vencimento_real == o.proximo_vencimento_real &&
854
+ saldo_atual_final == o.saldo_atual_final &&
855
+ saldo_credor == o.saldo_credor &&
856
+ saldo_devedor == o.saldo_devedor &&
857
+ saldo_devedor_oneroso == o.saldo_devedor_oneroso &&
858
+ saldo_devedor_total == o.saldo_devedor_total &&
859
+ salta_extrato_anterior == o.salta_extrato_anterior &&
860
+ total_disponivel_utilizacao == o.total_disponivel_utilizacao &&
861
+ total_futuro == o.total_futuro &&
862
+ valor_minimo_extrato == o.valor_minimo_extrato &&
863
+ valor_minimo_extrato_original == o.valor_minimo_extrato_original &&
864
+ vencimento_padrao_anterior == o.vencimento_padrao_anterior &&
865
+ vencimento_pos_prox == o.vencimento_pos_prox &&
866
+ vencimento_real_anterior == o.vencimento_real_anterior
867
+ end
868
+
869
+ # @see the `==` method
870
+ # @param [Object] Object to be compared
871
+ def eql?(o)
872
+ self == o
873
+ end
874
+
875
+ # Calculates hash code according to all attributes.
876
+ # @return [Fixnum] Hash code
877
+ def hash
878
+ [disponib_compra_nac, disponib_global_credito, disponib_parcelado_nac, disponib_parcelas_nac, disponib_saque_nac_global, flag_antecipacao, limite_compra_nac, limite_credito_concedido, limite_credito_disponivel, limite_global_credito, limite_parcelado_nac, limite_parcelas_nac, limite_pontuacao, limite_saque_nac_global, numero_ciclo, pontos_concedidos, pontos_remanescentes, proximo_vencimento_padrao, proximo_vencimento_real, saldo_atual_final, saldo_credor, saldo_devedor, saldo_devedor_oneroso, saldo_devedor_total, salta_extrato_anterior, total_disponivel_utilizacao, total_futuro, valor_minimo_extrato, valor_minimo_extrato_original, vencimento_padrao_anterior, vencimento_pos_prox, vencimento_real_anterior].hash
879
+ end
880
+
881
+ # Builds the object from hash
882
+ # @param [Hash] attributes Model attributes in the form of hash
883
+ # @return [Object] Returns the model itself
884
+ def build_from_hash(attributes)
885
+ return nil unless attributes.is_a?(Hash)
886
+ self.class.swagger_types.each_pair do |key, type|
887
+ if type =~ /^Array<(.*)>/i
888
+ # check to ensure the input is an array given that the the attribute
889
+ # is documented as an array but the input is not
890
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
891
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
892
+ end
893
+ elsif !attributes[self.class.attribute_map[key]].nil?
894
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
895
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
896
+ end
897
+
898
+ self
899
+ end
900
+
901
+ # Deserializes the data based on type
902
+ # @param string type Data type
903
+ # @param string value Value to be deserialized
904
+ # @return [Object] Deserialized data
905
+ def _deserialize(type, value)
906
+ case type.to_sym
907
+ when :DateTime
908
+ DateTime.parse(value)
909
+ when :Date
910
+ Date.parse(value)
911
+ when :String
912
+ value.to_s
913
+ when :Integer
914
+ value.to_i
915
+ when :Float
916
+ value.to_f
917
+ when :BOOLEAN
918
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
919
+ true
920
+ else
921
+ false
922
+ end
923
+ when :Object
924
+ # generic object (usually a Hash), return directly
925
+ value
926
+ when /\AArray<(?<inner_type>.+)>\z/
927
+ inner_type = Regexp.last_match[:inner_type]
928
+ value.map { |v| _deserialize(inner_type, v) }
929
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
930
+ k_type = Regexp.last_match[:k_type]
931
+ v_type = Regexp.last_match[:v_type]
932
+ {}.tap do |hash|
933
+ value.each do |k, v|
934
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
935
+ end
936
+ end
937
+ else # model
938
+ temp_model = Pier.const_get(type).new
939
+ temp_model.build_from_hash(value)
940
+ end
941
+ end
942
+
943
+ # Returns the string representation of the object
944
+ # @return [String] String presentation of the object
945
+ def to_s
946
+ to_hash.to_s
947
+ end
948
+
949
+ # to_body is an alias to to_hash (backward compatibility)
950
+ # @return [Hash] Returns the object in the form of hash
951
+ def to_body
952
+ to_hash
953
+ end
954
+
955
+ # Returns the object in the form of hash
956
+ # @return [Hash] Returns the object in the form of hash
957
+ def to_hash
958
+ hash = {}
959
+ self.class.attribute_map.each_pair do |attr, param|
960
+ value = self.send(attr)
961
+ next if value.nil?
962
+ hash[param] = _to_hash(value)
963
+ end
964
+ hash
965
+ end
966
+
967
+ # Outputs non-array value in the form of hash
968
+ # For object, use to_hash. Otherwise, just return the value
969
+ # @param [Object] value Any valid value
970
+ # @return [Hash] Returns the value in the form of hash
971
+ def _to_hash(value)
972
+ if value.is_a?(Array)
973
+ value.compact.map{ |v| _to_hash(v) }
974
+ elsif value.is_a?(Hash)
975
+ {}.tap do |hash|
976
+ value.each { |k, v| hash[k] = _to_hash(v) }
977
+ end
978
+ elsif value.respond_to? :to_hash
979
+ value.to_hash
980
+ else
981
+ value
982
+ end
983
+ end
984
+
985
+ end
986
+ end