boletosimples 0.5.0 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -14
- data/README.md +17 -55
- data/lib/boletosimples.rb +9 -6
- data/lib/boletosimples/configuration.rb +20 -29
- data/lib/boletosimples/last_request.rb +12 -9
- data/lib/boletosimples/middlewares/bearer.rb +12 -0
- data/lib/boletosimples/middlewares/debug.rb +30 -0
- data/lib/boletosimples/middlewares/last_request.rb +3 -1
- data/lib/boletosimples/middlewares/raise_error.rb +9 -2
- data/lib/boletosimples/middlewares/user_agent.rb +3 -1
- data/lib/boletosimples/resources/bank_billet.rb +5 -11
- data/lib/boletosimples/resources/bank_billet_account.rb +3 -1
- data/lib/boletosimples/resources/bank_billet_discharge.rb +6 -0
- data/lib/boletosimples/resources/bank_billet_payment.rb +6 -0
- data/lib/boletosimples/resources/bank_billet_remittance.rb +6 -0
- data/lib/boletosimples/resources/base_model.rb +3 -1
- data/lib/boletosimples/resources/customer.rb +3 -1
- data/lib/boletosimples/resources/customer_import.rb +5 -3
- data/lib/boletosimples/resources/customer_subscription.rb +3 -10
- data/lib/boletosimples/resources/customer_subscription_import.rb +5 -3
- data/lib/boletosimples/resources/discharge.rb +4 -11
- data/lib/boletosimples/resources/email_delivery.rb +6 -0
- data/lib/boletosimples/resources/event.rb +3 -1
- data/lib/boletosimples/resources/installment.rb +3 -1
- data/lib/boletosimples/resources/remittance.rb +3 -1
- data/lib/boletosimples/resources/sms_delivery.rb +6 -0
- data/lib/boletosimples/resources/transaction.rb +3 -1
- data/lib/boletosimples/resources/webhook.rb +3 -1
- data/lib/boletosimples/resources/webhook_delivery.rb +3 -1
- data/lib/boletosimples/response_error.rb +8 -3
- data/lib/boletosimples/version.rb +3 -1
- data/spec/boletosimples/configuration_spec.rb +71 -99
- data/spec/boletosimples/last_request_spec.rb +16 -28
- data/spec/boletosimples/resources/bank_billet_account_spec.rb +57 -33
- data/spec/boletosimples/resources/bank_billet_discharge_spec.rb +12 -0
- data/spec/boletosimples/resources/bank_billet_payment_spec.rb +12 -0
- data/spec/boletosimples/resources/bank_billet_remittance_spec.rb +12 -0
- data/spec/boletosimples/resources/bank_billet_spec.rb +56 -42
- data/spec/boletosimples/resources/customer_import_spec.rb +41 -30
- data/spec/boletosimples/resources/customer_spec.rb +52 -39
- data/spec/boletosimples/resources/customer_subscription_import_spec.rb +41 -30
- data/spec/boletosimples/resources/customer_subscription_spec.rb +61 -33
- data/spec/boletosimples/resources/discharge_spec.rb +64 -11
- data/spec/boletosimples/resources/email_delivery_spec.rb +12 -0
- data/spec/boletosimples/resources/event_spec.rb +7 -12
- data/spec/boletosimples/resources/installment_spec.rb +61 -32
- data/spec/boletosimples/resources/remittance_spec.rb +7 -12
- data/spec/boletosimples/resources/sms_delivery_spec.rb +12 -0
- data/spec/boletosimples/resources/transactions_spec.rb +7 -12
- data/spec/boletosimples/resources/webhook_delivery_spec.rb +7 -12
- data/spec/boletosimples/resources/webhook_spec.rb +7 -12
- data/spec/fixtures/discharge.RET +3 -0
- data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +536 -88
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +537 -91
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +34 -92
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +32 -20
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +28 -17
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +43 -27
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +83 -0
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +51 -27
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +131 -20
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +34 -20
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +30 -19
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +41 -21
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +38 -18
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +97 -0
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +75 -0
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +126 -0
- data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +79 -32
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +30 -17
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +28 -17
- data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +33 -21
- data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +33 -19
- data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +43 -60
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +37 -51
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +38 -52
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +43 -68
- data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +40 -54
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +102 -52
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +40 -50
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +36 -48
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +48 -53
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +44 -50
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +45 -133
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +44 -55
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +37 -52
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +39 -53
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +43 -70
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +40 -55
- data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +64 -33
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +70 -0
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +69 -0
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +84 -0
- data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +71 -0
- data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +73 -0
- data/spec/fixtures/vcr_cassettes/resources/event/all.yml +490 -166
- data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +418 -52
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +41 -52
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +36 -48
- data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +48 -53
- data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +44 -52
- data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +53 -33
- data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +73 -0
- data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +34 -22
- data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +42 -33
- data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +1232 -54
- data/spec/spec_helper.rb +3 -20
- data/spec/support/stub_env.rb +7 -0
- data/spec/support/vcr.rb +3 -4
- metadata +119 -57
- data/.coveralls.yml +0 -2
- data/.gitignore +0 -19
- data/.ruby-version +0 -1
- data/.travis.yml +0 -46
- data/Gemfile +0 -4
- data/Rakefile +0 -14
- data/boletosimples.gemspec +0 -38
- data/gemfiles/rails_42.gemfile +0 -8
- data/gemfiles/rails_50.gemfile +0 -8
- data/gemfiles/rails_51.gemfile +0 -8
- data/gemfiles/rails_52.gemfile +0 -9
- data/lib/boletosimples/extra.rb +0 -8
- data/lib/boletosimples/resources/partner/user.rb +0 -7
- data/lib/oauth2_patch.rb +0 -24
- data/spec/boletosimples/extra_spec.rb +0 -31
- data/spec/boletosimples/resources/partner/user_spec.rb +0 -19
- data/spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml +0 -64
- data/spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml +0 -56
- data/spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml +0 -58
- data/spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml +0 -54
- data/spec/fixtures/vcr_cassettes/last_request/userinfo.yml +0 -58
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml +0 -118
- data/spec/fixtures/vcr_cassettes/resources/partner/user/create.yml +0 -60
- data/spec/spec.opts +0 -8
data/spec/spec_helper.rb
CHANGED
@@ -1,25 +1,10 @@
|
|
1
|
-
|
2
|
-
Coveralls.wear!
|
3
|
-
|
4
|
-
require 'simplecov'
|
5
|
-
SimpleCov.start
|
1
|
+
# frozen_string_literal: true
|
6
2
|
|
7
3
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
8
4
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
9
5
|
require 'rspec'
|
10
|
-
require 'pry'
|
11
6
|
require 'boletosimples'
|
12
7
|
|
13
|
-
if(ENV['BOLETOSIMPLES_ACCESS_TOKEN'].nil?)
|
14
|
-
puts "\e[31mWarning: Environment variable BOLETOSIMPLES_ACCESS_TOKEN is not set. Tests will run and pass, but if you delete vcr cassettes you need to set this variable before running tests.\e[0m"
|
15
|
-
ENV['BOLETOSIMPLES_ACCESS_TOKEN'] = 'any-token'
|
16
|
-
end
|
17
|
-
|
18
|
-
if(ENV['BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN'].nil?)
|
19
|
-
puts "\e[31mWarning: Environment variable BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN is not set. Tests will run and pass, but if you delete vcr cassettes you need to set this variable before running tests.\e[0m"
|
20
|
-
ENV['BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN'] = 'any-token'
|
21
|
-
end
|
22
|
-
|
23
8
|
RSpec.configure do |config|
|
24
9
|
config.disable_monkey_patching!
|
25
10
|
config.order = :random
|
@@ -33,11 +18,9 @@ RSpec.configure do |config|
|
|
33
18
|
mocks.syntax = :expect
|
34
19
|
mocks.verify_partial_doubles = true
|
35
20
|
end
|
36
|
-
if config.files_to_run.one?
|
37
|
-
config.default_formatter = 'doc'
|
38
|
-
end
|
21
|
+
config.default_formatter = 'doc' if config.files_to_run.one?
|
39
22
|
end
|
40
23
|
|
41
24
|
# Requires supporting files with custom matchers and macros, etc,
|
42
25
|
# in ./support/ and its subdirectories.
|
43
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
26
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
|
data/spec/support/vcr.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'vcr'
|
2
4
|
|
3
5
|
VCR.configure do |c|
|
@@ -8,8 +10,5 @@ VCR.configure do |c|
|
|
8
10
|
c.before_record do |i|
|
9
11
|
i.response.body.force_encoding('UTF-8')
|
10
12
|
end
|
11
|
-
c.filter_sensitive_data('
|
12
|
-
c.filter_sensitive_data('BOLETOSIMPLES_APP_SECRET') { ENV['BOLETOSIMPLES_APP_SECRET'] }
|
13
|
-
c.filter_sensitive_data('BOLETOSIMPLES_ACCESS_TOKEN') { ENV['BOLETOSIMPLES_ACCESS_TOKEN'] }
|
14
|
-
c.filter_sensitive_data('BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN') { ENV['BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN'] }
|
13
|
+
c.filter_sensitive_data('BOLETOSIMPLES_API_TOKEN') { ENV['BOLETOSIMPLES_API_TOKEN'] }
|
15
14
|
end
|
metadata
CHANGED
@@ -1,61 +1,75 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boletosimples
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kivanio Barbosa
|
8
8
|
- Rafael Lima
|
9
9
|
- Thiago Belem
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: faraday-http-cache
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 2.2.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: faraday_middleware
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '0
|
35
|
+
version: '1.0'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '0
|
42
|
+
version: '1.0'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
|
-
name:
|
44
|
+
name: her
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: '1.1'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
56
|
+
version: '1.1'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: fuubar
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
57
71
|
- !ruby/object:Gem::Dependency
|
58
|
-
name:
|
72
|
+
name: rake
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
60
74
|
requirements:
|
61
75
|
- - ">="
|
@@ -83,7 +97,7 @@ dependencies:
|
|
83
97
|
- !ruby/object:Gem::Version
|
84
98
|
version: '0'
|
85
99
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
100
|
+
name: rubocop
|
87
101
|
requirement: !ruby/object:Gem::Requirement
|
88
102
|
requirements:
|
89
103
|
- - ">="
|
@@ -97,7 +111,7 @@ dependencies:
|
|
97
111
|
- !ruby/object:Gem::Version
|
98
112
|
version: '0'
|
99
113
|
- !ruby/object:Gem::Dependency
|
100
|
-
name:
|
114
|
+
name: rubocop-packaging
|
101
115
|
requirement: !ruby/object:Gem::Requirement
|
102
116
|
requirements:
|
103
117
|
- - ">="
|
@@ -111,7 +125,7 @@ dependencies:
|
|
111
125
|
- !ruby/object:Gem::Version
|
112
126
|
version: '0'
|
113
127
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
128
|
+
name: rubocop-performance
|
115
129
|
requirement: !ruby/object:Gem::Requirement
|
116
130
|
requirements:
|
117
131
|
- - ">="
|
@@ -125,7 +139,7 @@ dependencies:
|
|
125
139
|
- !ruby/object:Gem::Version
|
126
140
|
version: '0'
|
127
141
|
- !ruby/object:Gem::Dependency
|
128
|
-
name:
|
142
|
+
name: rubocop-rake
|
129
143
|
requirement: !ruby/object:Gem::Requirement
|
130
144
|
requirements:
|
131
145
|
- - ">="
|
@@ -139,7 +153,7 @@ dependencies:
|
|
139
153
|
- !ruby/object:Gem::Version
|
140
154
|
version: '0'
|
141
155
|
- !ruby/object:Gem::Dependency
|
142
|
-
name:
|
156
|
+
name: rubocop-rspec
|
143
157
|
requirement: !ruby/object:Gem::Requirement
|
144
158
|
requirements:
|
145
159
|
- - ">="
|
@@ -153,7 +167,7 @@ dependencies:
|
|
153
167
|
- !ruby/object:Gem::Version
|
154
168
|
version: '0'
|
155
169
|
- !ruby/object:Gem::Dependency
|
156
|
-
name:
|
170
|
+
name: solargraph
|
157
171
|
requirement: !ruby/object:Gem::Requirement
|
158
172
|
requirements:
|
159
173
|
- - ">="
|
@@ -167,7 +181,49 @@ dependencies:
|
|
167
181
|
- !ruby/object:Gem::Version
|
168
182
|
version: '0'
|
169
183
|
- !ruby/object:Gem::Dependency
|
170
|
-
name:
|
184
|
+
name: stub_env
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
type: :development
|
191
|
+
prerelease: false
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
197
|
+
- !ruby/object:Gem::Dependency
|
198
|
+
name: test-prof
|
199
|
+
requirement: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - ">="
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '0'
|
204
|
+
type: :development
|
205
|
+
prerelease: false
|
206
|
+
version_requirements: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0'
|
211
|
+
- !ruby/object:Gem::Dependency
|
212
|
+
name: vcr
|
213
|
+
requirement: !ruby/object:Gem::Requirement
|
214
|
+
requirements:
|
215
|
+
- - ">="
|
216
|
+
- !ruby/object:Gem::Version
|
217
|
+
version: '0'
|
218
|
+
type: :development
|
219
|
+
prerelease: false
|
220
|
+
version_requirements: !ruby/object:Gem::Requirement
|
221
|
+
requirements:
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: '0'
|
225
|
+
- !ruby/object:Gem::Dependency
|
226
|
+
name: webmock
|
171
227
|
requirement: !ruby/object:Gem::Requirement
|
172
228
|
requirements:
|
173
229
|
- - ">="
|
@@ -189,82 +245,77 @@ executables: []
|
|
189
245
|
extensions: []
|
190
246
|
extra_rdoc_files: []
|
191
247
|
files:
|
192
|
-
- ".coveralls.yml"
|
193
|
-
- ".gitignore"
|
194
|
-
- ".ruby-version"
|
195
|
-
- ".travis.yml"
|
196
248
|
- CHANGELOG.md
|
197
|
-
- Gemfile
|
198
249
|
- LICENSE.txt
|
199
250
|
- README.md
|
200
|
-
- Rakefile
|
201
|
-
- boletosimples.gemspec
|
202
|
-
- gemfiles/rails_42.gemfile
|
203
|
-
- gemfiles/rails_50.gemfile
|
204
|
-
- gemfiles/rails_51.gemfile
|
205
|
-
- gemfiles/rails_52.gemfile
|
206
251
|
- lib/boletosimples.rb
|
207
252
|
- lib/boletosimples/configuration.rb
|
208
|
-
- lib/boletosimples/extra.rb
|
209
253
|
- lib/boletosimples/last_request.rb
|
254
|
+
- lib/boletosimples/middlewares/bearer.rb
|
255
|
+
- lib/boletosimples/middlewares/debug.rb
|
210
256
|
- lib/boletosimples/middlewares/last_request.rb
|
211
257
|
- lib/boletosimples/middlewares/raise_error.rb
|
212
258
|
- lib/boletosimples/middlewares/user_agent.rb
|
213
259
|
- lib/boletosimples/resources/bank_billet.rb
|
214
260
|
- lib/boletosimples/resources/bank_billet_account.rb
|
261
|
+
- lib/boletosimples/resources/bank_billet_discharge.rb
|
262
|
+
- lib/boletosimples/resources/bank_billet_payment.rb
|
263
|
+
- lib/boletosimples/resources/bank_billet_remittance.rb
|
215
264
|
- lib/boletosimples/resources/base_model.rb
|
216
265
|
- lib/boletosimples/resources/customer.rb
|
217
266
|
- lib/boletosimples/resources/customer_import.rb
|
218
267
|
- lib/boletosimples/resources/customer_subscription.rb
|
219
268
|
- lib/boletosimples/resources/customer_subscription_import.rb
|
220
269
|
- lib/boletosimples/resources/discharge.rb
|
270
|
+
- lib/boletosimples/resources/email_delivery.rb
|
221
271
|
- lib/boletosimples/resources/event.rb
|
222
272
|
- lib/boletosimples/resources/installment.rb
|
223
|
-
- lib/boletosimples/resources/partner/user.rb
|
224
273
|
- lib/boletosimples/resources/remittance.rb
|
274
|
+
- lib/boletosimples/resources/sms_delivery.rb
|
225
275
|
- lib/boletosimples/resources/transaction.rb
|
226
276
|
- lib/boletosimples/resources/webhook.rb
|
227
277
|
- lib/boletosimples/resources/webhook_delivery.rb
|
228
278
|
- lib/boletosimples/response_error.rb
|
229
279
|
- lib/boletosimples/version.rb
|
230
|
-
- lib/oauth2_patch.rb
|
231
280
|
- spec/boletosimples/configuration_spec.rb
|
232
|
-
- spec/boletosimples/extra_spec.rb
|
233
281
|
- spec/boletosimples/last_request_spec.rb
|
234
282
|
- spec/boletosimples/resources/bank_billet_account_spec.rb
|
283
|
+
- spec/boletosimples/resources/bank_billet_discharge_spec.rb
|
284
|
+
- spec/boletosimples/resources/bank_billet_payment_spec.rb
|
285
|
+
- spec/boletosimples/resources/bank_billet_remittance_spec.rb
|
235
286
|
- spec/boletosimples/resources/bank_billet_spec.rb
|
236
287
|
- spec/boletosimples/resources/customer_import_spec.rb
|
237
288
|
- spec/boletosimples/resources/customer_spec.rb
|
238
289
|
- spec/boletosimples/resources/customer_subscription_import_spec.rb
|
239
290
|
- spec/boletosimples/resources/customer_subscription_spec.rb
|
240
291
|
- spec/boletosimples/resources/discharge_spec.rb
|
292
|
+
- spec/boletosimples/resources/email_delivery_spec.rb
|
241
293
|
- spec/boletosimples/resources/event_spec.rb
|
242
294
|
- spec/boletosimples/resources/installment_spec.rb
|
243
|
-
- spec/boletosimples/resources/partner/user_spec.rb
|
244
295
|
- spec/boletosimples/resources/remittance_spec.rb
|
296
|
+
- spec/boletosimples/resources/sms_delivery_spec.rb
|
245
297
|
- spec/boletosimples/resources/transactions_spec.rb
|
246
298
|
- spec/boletosimples/resources/webhook_delivery_spec.rb
|
247
299
|
- spec/boletosimples/resources/webhook_spec.rb
|
248
300
|
- spec/fixtures/customer_imports.csv
|
249
301
|
- spec/fixtures/customer_subscription_imports.csv
|
250
|
-
- spec/fixtures/
|
251
|
-
- spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml
|
252
|
-
- spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml
|
253
|
-
- spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml
|
302
|
+
- spec/fixtures/discharge.RET
|
254
303
|
- spec/fixtures/vcr_cassettes/last_request/bank_billets.yml
|
255
|
-
- spec/fixtures/vcr_cassettes/last_request/userinfo.yml
|
256
304
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml
|
257
|
-
- spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml
|
258
305
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml
|
259
306
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml
|
260
307
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml
|
261
308
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml
|
309
|
+
- spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml
|
262
310
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml
|
263
311
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml
|
264
312
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml
|
265
313
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml
|
266
314
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml
|
267
315
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml
|
316
|
+
- spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml
|
317
|
+
- spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml
|
318
|
+
- spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml
|
268
319
|
- spec/fixtures/vcr_cassettes/resources/customer/all.yml
|
269
320
|
- spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml
|
270
321
|
- spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml
|
@@ -287,24 +338,29 @@ files:
|
|
287
338
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml
|
288
339
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml
|
289
340
|
- spec/fixtures/vcr_cassettes/resources/discharge/all.yml
|
341
|
+
- spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml
|
342
|
+
- spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml
|
343
|
+
- spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml
|
344
|
+
- spec/fixtures/vcr_cassettes/resources/discharge/find.yml
|
345
|
+
- spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml
|
290
346
|
- spec/fixtures/vcr_cassettes/resources/event/all.yml
|
291
347
|
- spec/fixtures/vcr_cassettes/resources/installment/all.yml
|
292
348
|
- spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml
|
293
349
|
- spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml
|
294
350
|
- spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml
|
295
351
|
- spec/fixtures/vcr_cassettes/resources/installment/find.yml
|
296
|
-
- spec/fixtures/vcr_cassettes/resources/partner/user/create.yml
|
297
352
|
- spec/fixtures/vcr_cassettes/resources/remittance/all.yml
|
353
|
+
- spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml
|
298
354
|
- spec/fixtures/vcr_cassettes/resources/transaction/all.yml
|
299
355
|
- spec/fixtures/vcr_cassettes/resources/web_hook/all.yml
|
300
356
|
- spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml
|
301
|
-
- spec/spec.opts
|
302
357
|
- spec/spec_helper.rb
|
358
|
+
- spec/support/stub_env.rb
|
303
359
|
- spec/support/vcr.rb
|
304
360
|
homepage: https://github.com/BoletoSimples/boletosimples-ruby
|
305
361
|
licenses: []
|
306
362
|
metadata: {}
|
307
|
-
post_install_message:
|
363
|
+
post_install_message:
|
308
364
|
rdoc_options: []
|
309
365
|
require_paths:
|
310
366
|
- lib
|
@@ -319,49 +375,50 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
375
|
- !ruby/object:Gem::Version
|
320
376
|
version: '0'
|
321
377
|
requirements: []
|
322
|
-
|
323
|
-
|
324
|
-
signing_key:
|
378
|
+
rubygems_version: 3.2.15
|
379
|
+
signing_key:
|
325
380
|
specification_version: 4
|
326
381
|
summary: Boleto Simples API wrapper.
|
327
382
|
test_files:
|
328
383
|
- spec/boletosimples/configuration_spec.rb
|
329
|
-
- spec/boletosimples/extra_spec.rb
|
330
384
|
- spec/boletosimples/last_request_spec.rb
|
331
385
|
- spec/boletosimples/resources/bank_billet_account_spec.rb
|
386
|
+
- spec/boletosimples/resources/bank_billet_discharge_spec.rb
|
387
|
+
- spec/boletosimples/resources/bank_billet_payment_spec.rb
|
388
|
+
- spec/boletosimples/resources/bank_billet_remittance_spec.rb
|
332
389
|
- spec/boletosimples/resources/bank_billet_spec.rb
|
333
390
|
- spec/boletosimples/resources/customer_import_spec.rb
|
334
391
|
- spec/boletosimples/resources/customer_spec.rb
|
335
392
|
- spec/boletosimples/resources/customer_subscription_import_spec.rb
|
336
393
|
- spec/boletosimples/resources/customer_subscription_spec.rb
|
337
394
|
- spec/boletosimples/resources/discharge_spec.rb
|
395
|
+
- spec/boletosimples/resources/email_delivery_spec.rb
|
338
396
|
- spec/boletosimples/resources/event_spec.rb
|
339
397
|
- spec/boletosimples/resources/installment_spec.rb
|
340
|
-
- spec/boletosimples/resources/partner/user_spec.rb
|
341
398
|
- spec/boletosimples/resources/remittance_spec.rb
|
399
|
+
- spec/boletosimples/resources/sms_delivery_spec.rb
|
342
400
|
- spec/boletosimples/resources/transactions_spec.rb
|
343
401
|
- spec/boletosimples/resources/webhook_delivery_spec.rb
|
344
402
|
- spec/boletosimples/resources/webhook_spec.rb
|
345
403
|
- spec/fixtures/customer_imports.csv
|
346
404
|
- spec/fixtures/customer_subscription_imports.csv
|
347
|
-
- spec/fixtures/
|
348
|
-
- spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml
|
349
|
-
- spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml
|
350
|
-
- spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml
|
405
|
+
- spec/fixtures/discharge.RET
|
351
406
|
- spec/fixtures/vcr_cassettes/last_request/bank_billets.yml
|
352
|
-
- spec/fixtures/vcr_cassettes/last_request/userinfo.yml
|
353
407
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml
|
354
|
-
- spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml
|
355
408
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml
|
356
409
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml
|
357
410
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml
|
358
411
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml
|
412
|
+
- spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml
|
359
413
|
- spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml
|
360
414
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml
|
361
415
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml
|
362
416
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml
|
363
417
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml
|
364
418
|
- spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml
|
419
|
+
- spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml
|
420
|
+
- spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml
|
421
|
+
- spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml
|
365
422
|
- spec/fixtures/vcr_cassettes/resources/customer/all.yml
|
366
423
|
- spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml
|
367
424
|
- spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml
|
@@ -384,17 +441,22 @@ test_files:
|
|
384
441
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml
|
385
442
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml
|
386
443
|
- spec/fixtures/vcr_cassettes/resources/discharge/all.yml
|
444
|
+
- spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml
|
445
|
+
- spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml
|
446
|
+
- spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml
|
447
|
+
- spec/fixtures/vcr_cassettes/resources/discharge/find.yml
|
448
|
+
- spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml
|
387
449
|
- spec/fixtures/vcr_cassettes/resources/event/all.yml
|
388
450
|
- spec/fixtures/vcr_cassettes/resources/installment/all.yml
|
389
451
|
- spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml
|
390
452
|
- spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml
|
391
453
|
- spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml
|
392
454
|
- spec/fixtures/vcr_cassettes/resources/installment/find.yml
|
393
|
-
- spec/fixtures/vcr_cassettes/resources/partner/user/create.yml
|
394
455
|
- spec/fixtures/vcr_cassettes/resources/remittance/all.yml
|
456
|
+
- spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml
|
395
457
|
- spec/fixtures/vcr_cassettes/resources/transaction/all.yml
|
396
458
|
- spec/fixtures/vcr_cassettes/resources/web_hook/all.yml
|
397
459
|
- spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml
|
398
|
-
- spec/spec.opts
|
399
460
|
- spec/spec_helper.rb
|
461
|
+
- spec/support/stub_env.rb
|
400
462
|
- spec/support/vcr.rb
|