pier-sdk-ruby 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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,80 @@
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 'spec_helper'
18
+ require 'json'
19
+ require 'date'
20
+
21
+ # Unit tests for Pier::ConsultarContaResponse
22
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
23
+ # Please update as you see appropriate
24
+ describe 'ConsultarContaResponse' do
25
+ before do
26
+ # run before each test
27
+ @instance = Pier::ConsultarContaResponse.new
28
+ end
29
+
30
+ after do
31
+ # run after each test
32
+ end
33
+
34
+ describe 'test an instance of ConsultarContaResponse' do
35
+ it 'should create an instact of ConsultarContaResponse' do
36
+ @instance.should be_a(Pier::ConsultarContaResponse)
37
+ end
38
+ end
39
+ describe 'test attribute "cod_retorno"' do
40
+ it 'should work' do
41
+ # assertion here
42
+ # should be_a()
43
+ # should be_nil
44
+ # should ==
45
+ # should_not ==
46
+ end
47
+ end
48
+
49
+ describe 'test attribute "codigo_retorno"' do
50
+ it 'should work' do
51
+ # assertion here
52
+ # should be_a()
53
+ # should be_nil
54
+ # should ==
55
+ # should_not ==
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "contas"' do
60
+ it 'should work' do
61
+ # assertion here
62
+ # should be_a()
63
+ # should be_nil
64
+ # should ==
65
+ # should_not ==
66
+ end
67
+ end
68
+
69
+ describe 'test attribute "descricao_retorno"' do
70
+ it 'should work' do
71
+ # assertion here
72
+ # should be_a()
73
+ # should be_nil
74
+ # should ==
75
+ # should_not ==
76
+ end
77
+ end
78
+
79
+ end
80
+
@@ -0,0 +1,200 @@
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 'spec_helper'
18
+ require 'json'
19
+ require 'date'
20
+
21
+ # Unit tests for Pier::ConsultarExtratoContaResponse
22
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
23
+ # Please update as you see appropriate
24
+ describe 'ConsultarExtratoContaResponse' do
25
+ before do
26
+ # run before each test
27
+ @instance = Pier::ConsultarExtratoContaResponse.new
28
+ end
29
+
30
+ after do
31
+ # run after each test
32
+ end
33
+
34
+ describe 'test an instance of ConsultarExtratoContaResponse' do
35
+ it 'should create an instact of ConsultarExtratoContaResponse' do
36
+ @instance.should be_a(Pier::ConsultarExtratoContaResponse)
37
+ end
38
+ end
39
+ describe 'test attribute "codigo_retorno"' do
40
+ it 'should work' do
41
+ # assertion here
42
+ # should be_a()
43
+ # should be_nil
44
+ # should ==
45
+ # should_not ==
46
+ end
47
+ end
48
+
49
+ describe 'test attribute "compras_nacionais"' do
50
+ it 'should work' do
51
+ # assertion here
52
+ # should be_a()
53
+ # should be_nil
54
+ # should ==
55
+ # should_not ==
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "cpf"' do
60
+ it 'should work' do
61
+ # assertion here
62
+ # should be_a()
63
+ # should be_nil
64
+ # should ==
65
+ # should_not ==
66
+ end
67
+ end
68
+
69
+ describe 'test attribute "creditos_nacionais"' do
70
+ it 'should work' do
71
+ # assertion here
72
+ # should be_a()
73
+ # should be_nil
74
+ # should ==
75
+ # should_not ==
76
+ end
77
+ end
78
+
79
+ describe 'test attribute "data_vencimento"' do
80
+ it 'should work' do
81
+ # assertion here
82
+ # should be_a()
83
+ # should be_nil
84
+ # should ==
85
+ # should_not ==
86
+ end
87
+ end
88
+
89
+ describe 'test attribute "debitos_nacionais"' do
90
+ it 'should work' do
91
+ # assertion here
92
+ # should be_a()
93
+ # should be_nil
94
+ # should ==
95
+ # should_not ==
96
+ end
97
+ end
98
+
99
+ describe 'test attribute "descricao_retorno"' do
100
+ it 'should work' do
101
+ # assertion here
102
+ # should be_a()
103
+ # should be_nil
104
+ # should ==
105
+ # should_not ==
106
+ end
107
+ end
108
+
109
+ describe 'test attribute "extrato"' do
110
+ it 'should work' do
111
+ # assertion here
112
+ # should be_a()
113
+ # should be_nil
114
+ # should ==
115
+ # should_not ==
116
+ end
117
+ end
118
+
119
+ describe 'test attribute "id_cartao"' do
120
+ it 'should work' do
121
+ # assertion here
122
+ # should be_a()
123
+ # should be_nil
124
+ # should ==
125
+ # should_not ==
126
+ end
127
+ end
128
+
129
+ describe 'test attribute "id_conta"' do
130
+ it 'should work' do
131
+ # assertion here
132
+ # should be_a()
133
+ # should be_nil
134
+ # should ==
135
+ # should_not ==
136
+ end
137
+ end
138
+
139
+ describe 'test attribute "multa"' do
140
+ it 'should work' do
141
+ # assertion here
142
+ # should be_a()
143
+ # should be_nil
144
+ # should ==
145
+ # should_not ==
146
+ end
147
+ end
148
+
149
+ describe 'test attribute "pagamentos"' do
150
+ it 'should work' do
151
+ # assertion here
152
+ # should be_a()
153
+ # should be_nil
154
+ # should ==
155
+ # should_not ==
156
+ end
157
+ end
158
+
159
+ describe 'test attribute "saldo_atual_final"' do
160
+ it 'should work' do
161
+ # assertion here
162
+ # should be_a()
163
+ # should be_nil
164
+ # should ==
165
+ # should_not ==
166
+ end
167
+ end
168
+
169
+ describe 'test attribute "saldo_extrato_anterior"' do
170
+ it 'should work' do
171
+ # assertion here
172
+ # should be_a()
173
+ # should be_nil
174
+ # should ==
175
+ # should_not ==
176
+ end
177
+ end
178
+
179
+ describe 'test attribute "tarifas_nacionais"' do
180
+ it 'should work' do
181
+ # assertion here
182
+ # should be_a()
183
+ # should be_nil
184
+ # should ==
185
+ # should_not ==
186
+ end
187
+ end
188
+
189
+ describe 'test attribute "valor_minimo_extrato"' do
190
+ it 'should work' do
191
+ # assertion here
192
+ # should be_a()
193
+ # should be_nil
194
+ # should ==
195
+ # should_not ==
196
+ end
197
+ end
198
+
199
+ end
200
+
@@ -0,0 +1,200 @@
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 'spec_helper'
18
+ require 'json'
19
+ require 'date'
20
+
21
+ # Unit tests for Pier::ConsultarSaldoLimitesResponse
22
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
23
+ # Please update as you see appropriate
24
+ describe 'ConsultarSaldoLimitesResponse' do
25
+ before do
26
+ # run before each test
27
+ @instance = Pier::ConsultarSaldoLimitesResponse.new
28
+ end
29
+
30
+ after do
31
+ # run after each test
32
+ end
33
+
34
+ describe 'test an instance of ConsultarSaldoLimitesResponse' do
35
+ it 'should create an instact of ConsultarSaldoLimitesResponse' do
36
+ @instance.should be_a(Pier::ConsultarSaldoLimitesResponse)
37
+ end
38
+ end
39
+ describe 'test attribute "cod_retorno"' do
40
+ it 'should work' do
41
+ # assertion here
42
+ # should be_a()
43
+ # should be_nil
44
+ # should ==
45
+ # should_not ==
46
+ end
47
+ end
48
+
49
+ describe 'test attribute "codigo_retorno"' do
50
+ it 'should work' do
51
+ # assertion here
52
+ # should be_a()
53
+ # should be_nil
54
+ # should ==
55
+ # should_not ==
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "descricao_retorno"' do
60
+ it 'should work' do
61
+ # assertion here
62
+ # should be_a()
63
+ # should be_nil
64
+ # should ==
65
+ # should_not ==
66
+ end
67
+ end
68
+
69
+ describe 'test attribute "disponib_compra_nac"' do
70
+ it 'should work' do
71
+ # assertion here
72
+ # should be_a()
73
+ # should be_nil
74
+ # should ==
75
+ # should_not ==
76
+ end
77
+ end
78
+
79
+ describe 'test attribute "disponib_global_credito"' do
80
+ it 'should work' do
81
+ # assertion here
82
+ # should be_a()
83
+ # should be_nil
84
+ # should ==
85
+ # should_not ==
86
+ end
87
+ end
88
+
89
+ describe 'test attribute "disponib_parcelado_nac"' do
90
+ it 'should work' do
91
+ # assertion here
92
+ # should be_a()
93
+ # should be_nil
94
+ # should ==
95
+ # should_not ==
96
+ end
97
+ end
98
+
99
+ describe 'test attribute "disponib_parcelas_nac"' do
100
+ it 'should work' do
101
+ # assertion here
102
+ # should be_a()
103
+ # should be_nil
104
+ # should ==
105
+ # should_not ==
106
+ end
107
+ end
108
+
109
+ describe 'test attribute "disponib_saque_nac_global"' do
110
+ it 'should work' do
111
+ # assertion here
112
+ # should be_a()
113
+ # should be_nil
114
+ # should ==
115
+ # should_not ==
116
+ end
117
+ end
118
+
119
+ describe 'test attribute "limite_compra_nac"' do
120
+ it 'should work' do
121
+ # assertion here
122
+ # should be_a()
123
+ # should be_nil
124
+ # should ==
125
+ # should_not ==
126
+ end
127
+ end
128
+
129
+ describe 'test attribute "limite_global_credito"' do
130
+ it 'should work' do
131
+ # assertion here
132
+ # should be_a()
133
+ # should be_nil
134
+ # should ==
135
+ # should_not ==
136
+ end
137
+ end
138
+
139
+ describe 'test attribute "limite_parcelado_nac"' do
140
+ it 'should work' do
141
+ # assertion here
142
+ # should be_a()
143
+ # should be_nil
144
+ # should ==
145
+ # should_not ==
146
+ end
147
+ end
148
+
149
+ describe 'test attribute "limite_parcelas_nac"' do
150
+ it 'should work' do
151
+ # assertion here
152
+ # should be_a()
153
+ # should be_nil
154
+ # should ==
155
+ # should_not ==
156
+ end
157
+ end
158
+
159
+ describe 'test attribute "limite_saque_nac_global"' do
160
+ it 'should work' do
161
+ # assertion here
162
+ # should be_a()
163
+ # should be_nil
164
+ # should ==
165
+ # should_not ==
166
+ end
167
+ end
168
+
169
+ describe 'test attribute "limite_saque_nac_periodo"' do
170
+ it 'should work' do
171
+ # assertion here
172
+ # should be_a()
173
+ # should be_nil
174
+ # should ==
175
+ # should_not ==
176
+ end
177
+ end
178
+
179
+ describe 'test attribute "renda_comprovada"' do
180
+ it 'should work' do
181
+ # assertion here
182
+ # should be_a()
183
+ # should be_nil
184
+ # should ==
185
+ # should_not ==
186
+ end
187
+ end
188
+
189
+ describe 'test attribute "solicitacao_pendente"' do
190
+ it 'should work' do
191
+ # assertion here
192
+ # should be_a()
193
+ # should be_nil
194
+ # should ==
195
+ # should_not ==
196
+ end
197
+ end
198
+
199
+ end
200
+