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,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::CancelarCartaoResponse
22
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
23
+ # Please update as you see appropriate
24
+ describe 'CancelarCartaoResponse' do
25
+ before do
26
+ # run before each test
27
+ @instance = Pier::CancelarCartaoResponse.new
28
+ end
29
+
30
+ after do
31
+ # run after each test
32
+ end
33
+
34
+ describe 'test an instance of CancelarCartaoResponse' do
35
+ it 'should create an instact of CancelarCartaoResponse' do
36
+ @instance.should be_a(Pier::CancelarCartaoResponse)
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 "descricao_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 "id_cartao"' 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 "id_conta"' 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,260 @@
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::CartaoResponse
22
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
23
+ # Please update as you see appropriate
24
+ describe 'CartaoResponse' do
25
+ before do
26
+ # run before each test
27
+ @instance = Pier::CartaoResponse.new
28
+ end
29
+
30
+ after do
31
+ # run after each test
32
+ end
33
+
34
+ describe 'test an instance of CartaoResponse' do
35
+ it 'should create an instact of CartaoResponse' do
36
+ @instance.should be_a(Pier::CartaoResponse)
37
+ end
38
+ end
39
+ describe 'test attribute "bin"' 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 "cod_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 "codigo_desbloqueio"' 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 "criptografia_hsm"' 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_emissao"' 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 "data_validade"' 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 "data_vencimento_padrao"' 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 "descricao_retorno"' 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 "estagio_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 "estagio_data"' 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 "flag_reversao"' 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 "flag_senha"' 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 "id_cartao"' 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 "id_conta"' 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 "id_emissor"' 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 "id_log"' 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
+ describe 'test attribute "id_pessoa_fisica"' do
200
+ it 'should work' do
201
+ # assertion here
202
+ # should be_a()
203
+ # should be_nil
204
+ # should ==
205
+ # should_not ==
206
+ end
207
+ end
208
+
209
+ describe 'test attribute "id_produto"' do
210
+ it 'should work' do
211
+ # assertion here
212
+ # should be_a()
213
+ # should be_nil
214
+ # should ==
215
+ # should_not ==
216
+ end
217
+ end
218
+
219
+ describe 'test attribute "numero_cartao"' do
220
+ it 'should work' do
221
+ # assertion here
222
+ # should be_a()
223
+ # should be_nil
224
+ # should ==
225
+ # should_not ==
226
+ end
227
+ end
228
+
229
+ describe 'test attribute "numero_cartao_real"' do
230
+ it 'should work' do
231
+ # assertion here
232
+ # should be_a()
233
+ # should be_nil
234
+ # should ==
235
+ # should_not ==
236
+ end
237
+ end
238
+
239
+ describe 'test attribute "status_cartao"' do
240
+ it 'should work' do
241
+ # assertion here
242
+ # should be_a()
243
+ # should be_nil
244
+ # should ==
245
+ # should_not ==
246
+ end
247
+ end
248
+
249
+ describe 'test attribute "status_data"' do
250
+ it 'should work' do
251
+ # assertion here
252
+ # should be_a()
253
+ # should be_nil
254
+ # should ==
255
+ # should_not ==
256
+ end
257
+ end
258
+
259
+ end
260
+
@@ -0,0 +1,70 @@
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::ConsultarCartaoResponse
22
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
23
+ # Please update as you see appropriate
24
+ describe 'ConsultarCartaoResponse' do
25
+ before do
26
+ # run before each test
27
+ @instance = Pier::ConsultarCartaoResponse.new
28
+ end
29
+
30
+ after do
31
+ # run after each test
32
+ end
33
+
34
+ describe 'test an instance of ConsultarCartaoResponse' do
35
+ it 'should create an instact of ConsultarCartaoResponse' do
36
+ @instance.should be_a(Pier::ConsultarCartaoResponse)
37
+ end
38
+ end
39
+ describe 'test attribute "cartoes"' 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
+ end
70
+
@@ -0,0 +1,150 @@
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::ConsultarContaCartaoResponse
22
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
23
+ # Please update as you see appropriate
24
+ describe 'ConsultarContaCartaoResponse' do
25
+ before do
26
+ # run before each test
27
+ @instance = Pier::ConsultarContaCartaoResponse.new
28
+ end
29
+
30
+ after do
31
+ # run after each test
32
+ end
33
+
34
+ describe 'test an instance of ConsultarContaCartaoResponse' do
35
+ it 'should create an instact of ConsultarContaCartaoResponse' do
36
+ @instance.should be_a(Pier::ConsultarContaCartaoResponse)
37
+ end
38
+ end
39
+ describe 'test attribute "data_validade"' 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 "descricao_estagio"' 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_status"' 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 "estagio"' 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 "flag_cancelamento"' 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 "id_cartao"' 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 "numero_cartao"' 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 "portador"' 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 "portador_id"' 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 "status"' 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 "status_data"' 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
+ end
150
+