boletosimples 0.2.3 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc7346c3818b799478a193178acb397bbfd591ff
4
- data.tar.gz: 861d14ded9f361bf0483db3cee6dd6c614dfb41d
3
+ metadata.gz: d3e09c435a49c52e1b9e4691d0b9320d86dcd16d
4
+ data.tar.gz: 5a2725956f5c83437dfe28a16536cd5332620bc7
5
5
  SHA512:
6
- metadata.gz: 1ff2b4ae77e4872db96bc6eac0b59149b8d7da389ef1b900d0535af0989c3e76fc1db7fdd4bb36cc45585ff90c07faccb55c586087a7dbfcf1e846e1a140e77a
7
- data.tar.gz: 744e00303962989eebe356a2c2ed4333d62b2b6af9ec7725adf69052d9fef37e958572a4334b68726491139b9c71dc82a4b7404e64e50e3b45ff28e87bcb98d4
6
+ metadata.gz: 28df07194a9a66a8f4bc96f1163ca52cb8962a9d3acf02b09d9ae310cb222a2fcabebea637665e57d572a4f665a884497043f3d2cbcf71747486aa05b8204cc4
7
+ data.tar.gz: 44c8490a7c5fe326214f71476c8289d0d0d56521301536cc6933aaa56cf438b5629ee08921eb044b2965df913947eb88ed14bd5a02b3eafdf89e8c0d54625d0c
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.1
1
+ 2.2.3
@@ -21,16 +21,16 @@ Gem::Specification.new do |gem|
21
21
  gem.required_ruby_version = '>= 1.9'
22
22
 
23
23
  # Gems that must be intalled for boletosimples to work
24
- gem.add_dependency 'her', '~> 0.7.3'
25
- gem.add_dependency 'faraday_middleware', '~> 0.9.1'
26
- gem.add_dependency 'faraday-http-cache', '~> 1.0.1'
24
+ gem.add_dependency 'her', '~> 0.7.5'
25
+ gem.add_dependency 'faraday_middleware', '~> 0.10.0'
26
+ gem.add_dependency 'faraday-http-cache', '~> 1.2.0'
27
27
 
28
28
  # Gems that must be installed for boletosimples to compile and build
29
29
  gem.add_development_dependency 'pry', '~> 0.10.1'
30
- gem.add_development_dependency 'rspec', '~> 3.2.0'
30
+ gem.add_development_dependency 'rspec', '~> 3.3.0'
31
31
  gem.add_development_dependency 'vcr', '~> 2.9'
32
- gem.add_development_dependency 'webmock', '~> 1.20.4'
32
+ gem.add_development_dependency 'webmock', '~> 1.21.0'
33
33
  gem.add_development_dependency 'rake', '~> 10.4.2'
34
- gem.add_development_dependency 'coveralls', '~> 0.7.11'
34
+ gem.add_development_dependency 'coveralls', '~> 0.8.2'
35
35
  gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.4.7'
36
36
  end
data/lib/boletosimples.rb CHANGED
@@ -11,9 +11,14 @@ module BoletoSimples
11
11
 
12
12
  autoload :BankBillet, 'boletosimples/resources/bank_billet'
13
13
  autoload :BankBilletAccount, 'boletosimples/resources/bank_billet_account'
14
+ autoload :Event, 'boletosimples/resources/event'
14
15
  autoload :Customer, 'boletosimples/resources/customer'
15
16
  autoload :Transaction, 'boletosimples/resources/transaction'
17
+ autoload :Remittance, 'boletosimples/resources/remittance'
18
+ autoload :Discharge, 'boletosimples/resources/discharge'
16
19
  autoload :BaseModel, 'boletosimples/resources/base_model'
20
+ autoload :Webhook, 'boletosimples/resources/webhook'
21
+ autoload :WebhookDelivery, 'boletosimples/resources/webhook_delivery'
17
22
 
18
23
  module Partner
19
24
  autoload :User, 'boletosimples/resources/partner/user'
@@ -7,7 +7,8 @@ module BoletoSimples
7
7
 
8
8
  BASE_URI = {
9
9
  sandbox: 'https://sandbox.boletosimples.com.br/api/v1',
10
- production: 'https://boletosimples.com.br/api/v1'
10
+ production: 'https://boletosimples.com.br/api/v1',
11
+ development: 'http://localhost:5000/api/v1'
11
12
  }
12
13
 
13
14
  def initialize
@@ -0,0 +1,4 @@
1
+ module BoletoSimples
2
+ class Discharge < BaseModel
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module BoletoSimples
2
+ class Event < BaseModel
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module BoletoSimples
2
+ class Remittance < BaseModel
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module BoletoSimples
2
+ class Webhook < BaseModel
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module BoletoSimples
2
+ class WebhookDelivery < BaseModel
3
+ end
4
+ end
@@ -1,3 +1,3 @@
1
1
  module BoletoSimples
2
- VERSION = '0.2.3'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -0,0 +1,17 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'spec_helper'
4
+
5
+ # Before running this spec again, you need to set environment variable BOLETOSIMPLES_ACCESS_TOKEN
6
+ RSpec.describe BoletoSimples::Discharge do
7
+ before {
8
+ BoletoSimples.configure do |c|
9
+ c.application_id = nil
10
+ c.application_secret = nil
11
+ end
12
+ }
13
+ describe 'all', vcr: { cassette_name: 'resources/discharge/all'} do
14
+ subject { BoletoSimples::Discharge.all }
15
+ it { expect(subject.first).to be_a_kind_of(BoletoSimples::Discharge) }
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'spec_helper'
4
+
5
+ # Before running this spec again, you need to set environment variable BOLETOSIMPLES_ACCESS_TOKEN
6
+ RSpec.describe BoletoSimples::Event do
7
+ before {
8
+ BoletoSimples.configure do |c|
9
+ c.application_id = nil
10
+ c.application_secret = nil
11
+ end
12
+ }
13
+ describe 'all', vcr: { cassette_name: 'resources/event/all'} do
14
+ subject { BoletoSimples::Event.all }
15
+ it { expect(subject.first).to be_a_kind_of(BoletoSimples::Event) }
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'spec_helper'
4
+
5
+ # Before running this spec again, you need to set environment variable BOLETOSIMPLES_ACCESS_TOKEN
6
+ RSpec.describe BoletoSimples::Remittance do
7
+ before {
8
+ BoletoSimples.configure do |c|
9
+ c.application_id = nil
10
+ c.application_secret = nil
11
+ end
12
+ }
13
+ describe 'all', vcr: { cassette_name: 'resources/remittance/all'} do
14
+ subject { BoletoSimples::Remittance.all }
15
+ it { expect(subject.first).to be_a_kind_of(BoletoSimples::Remittance) }
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'spec_helper'
4
+
5
+ # Before running this spec again, you need to set environment variable BOLETOSIMPLES_ACCESS_TOKEN
6
+ RSpec.describe BoletoSimples::WebhookDelivery do
7
+ before {
8
+ BoletoSimples.configure do |c|
9
+ c.application_id = nil
10
+ c.application_secret = nil
11
+ end
12
+ }
13
+ describe 'all', vcr: { cassette_name: 'resources/webhook_delivery/all'} do
14
+ subject { BoletoSimples::WebhookDelivery.all }
15
+ it { expect(subject.first).to be_a_kind_of(BoletoSimples::WebhookDelivery) }
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'spec_helper'
4
+
5
+ # Before running this spec again, you need to set environment variable BOLETOSIMPLES_ACCESS_TOKEN
6
+ RSpec.describe BoletoSimples::Webhook do
7
+ before {
8
+ BoletoSimples.configure do |c|
9
+ c.application_id = nil
10
+ c.application_secret = nil
11
+ end
12
+ }
13
+ describe 'all', vcr: { cassette_name: 'resources/web_hook/all'} do
14
+ subject { BoletoSimples::Webhook.all }
15
+ it { expect(subject.first).to be_a_kind_of(BoletoSimples::Webhook) }
16
+ end
17
+ end
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/discharges?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.2.3 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Connection:
24
+ - keep-alive
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Status:
30
+ - 200 OK
31
+ Cache-Control:
32
+ - must-revalidate, private, max-age=0
33
+ X-Ratelimit-Limit:
34
+ - '500'
35
+ Date:
36
+ - Mon, 24 Aug 2015 18:03:13 GMT
37
+ Strict-Transport-Security:
38
+ - max-age=2592000
39
+ X-Ratelimit-Remaining:
40
+ - '498'
41
+ Vary:
42
+ - Accept-Encoding
43
+ X-Request-Id:
44
+ - 796a233a-e38d-4ca8-9cce-2af208d6b0f6
45
+ Total:
46
+ - '1'
47
+ Etag:
48
+ - W/"368fef8232d9c141edd54608bcff2c22"
49
+ X-Runtime:
50
+ - '0.152599'
51
+ X-Rack-Cache:
52
+ - miss
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.0.15
55
+ Server:
56
+ - nginx/1.8.0 + Phusion Passenger 5.0.15
57
+ Via:
58
+ - 1.1 vegur
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":1,"filename":"cnab0904-1.ret","processed_at":"2015-04-17","created_via_api":true,"status":"unprocessed","discharge_transactions":[]}]'
62
+ http_version:
63
+ recorded_at: Mon, 24 Aug 2015 18:03:13 GMT
64
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,197 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/events?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.2.3 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Connection:
24
+ - keep-alive
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Status:
30
+ - 200 OK
31
+ Cache-Control:
32
+ - must-revalidate, private, max-age=0
33
+ X-Ratelimit-Limit:
34
+ - '500'
35
+ Date:
36
+ - Mon, 24 Aug 2015 18:10:09 GMT
37
+ Strict-Transport-Security:
38
+ - max-age=2592000
39
+ X-Ratelimit-Remaining:
40
+ - '496'
41
+ Vary:
42
+ - Accept-Encoding
43
+ X-Request-Id:
44
+ - 125f2efb-ea36-479d-bca9-bca1de938e20
45
+ Link:
46
+ - <https://sandbox.boletosimples.com.br/api/v1/events?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=4>;
47
+ rel="last", <https://sandbox.boletosimples.com.br/api/v1/events?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=2>;
48
+ rel="next"
49
+ Total:
50
+ - '89'
51
+ Etag:
52
+ - W/"a028eaa2eeae1ff5004373945583ae8e"
53
+ X-Runtime:
54
+ - '0.116483'
55
+ X-Rack-Cache:
56
+ - miss
57
+ X-Powered-By:
58
+ - Phusion Passenger 5.0.15
59
+ Server:
60
+ - nginx/1.8.0 + Phusion Passenger 5.0.15
61
+ Via:
62
+ - 1.1 vegur
63
+ body:
64
+ encoding: UTF-8
65
+ string: '[{"id":2560,"code":"bank_billet.generated","data":{"object":{"id":1489,"expire_at":"2015-07-24","paid_at":null,"description":"Despesas
66
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/wqol","customer_person_type":"individual","customer_person_name":"Joao
67
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
68
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
69
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
70
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/wqol","formats":{"png":"https://bole.to/3/wqol.png","pdf":"https://bole.to/3/wqol.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null}},"occurred_at":"2015-08-24T14:43:37.000-03:00"},{"id":2559,"code":"bank_billet.created","data":{"object":{"id":1489,"expire_at":"2015-07-24","paid_at":null,"description":"Despesas
71
+ do contrato 0012","status":"generating","shorten_url":"https://bole.to/3/wqol","customer_person_type":"individual","customer_person_name":"Joao
72
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
73
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
74
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
75
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/wqol","formats":{"png":"https://bole.to/3/wqol.png","pdf":"https://bole.to/3/wqol.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null}},"occurred_at":"2015-08-24T14:43:32.000-03:00"},{"id":2558,"code":"bank_billet.generated","data":{"object":{"id":1487,"expire_at":"2015-07-24","paid_at":null,"description":"Despesas
76
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/vred","customer_person_type":"individual","customer_person_name":"Joao
77
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
78
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
79
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
80
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/vred","formats":{"png":"https://bole.to/3/vred.png","pdf":"https://bole.to/3/vred.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null}},"occurred_at":"2015-08-24T14:37:04.000-03:00"},{"id":2557,"code":"bank_billet.generated","data":{"object":{"id":1488,"expire_at":"2015-07-24","paid_at":null,"description":"Despesas
81
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/xrbx","customer_person_type":"individual","customer_person_name":"Joao
82
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
83
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
84
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
85
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/xrbx","formats":{"png":"https://bole.to/3/xrbx.png","pdf":"https://bole.to/3/xrbx.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null}},"occurred_at":"2015-08-24T14:37:04.000-03:00"},{"id":2556,"code":"bank_billet.created","data":{"object":{"id":1488,"expire_at":"2015-07-24","paid_at":null,"description":"Despesas
86
+ do contrato 0012","status":"generating","shorten_url":"https://bole.to/3/xrbx","customer_person_type":"individual","customer_person_name":"Joao
87
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
88
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
89
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
90
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/xrbx","formats":{"png":"https://bole.to/3/xrbx.png","pdf":"https://bole.to/3/xrbx.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null}},"occurred_at":"2015-08-24T14:36:57.000-03:00"},{"id":2555,"code":"bank_billet.generated","data":{"object":{"id":1486,"expire_at":"2015-07-24","paid_at":null,"description":"Despesas
91
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/owqn","customer_person_type":"individual","customer_person_name":"Joao
92
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
93
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
94
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
95
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/owqn","formats":{"png":"https://bole.to/3/owqn.png","pdf":"https://bole.to/3/owqn.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null}},"occurred_at":"2015-08-24T14:36:55.000-03:00"},{"id":2554,"code":"bank_billet.created","data":{"object":{"id":1487,"expire_at":"2015-07-24","paid_at":null,"description":"Despesas
96
+ do contrato 0012","status":"generating","shorten_url":"https://bole.to/3/vred","customer_person_type":"individual","customer_person_name":"Joao
97
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
98
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
99
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
100
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/vred","formats":{"png":"https://bole.to/3/vred.png","pdf":"https://bole.to/3/vred.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null}},"occurred_at":"2015-08-24T14:36:55.000-03:00"},{"id":2553,"code":"bank_billet.created","data":{"object":{"id":1486,"expire_at":"2015-07-24","paid_at":null,"description":"Despesas
101
+ do contrato 0012","status":"generating","shorten_url":"https://bole.to/3/owqn","customer_person_type":"individual","customer_person_name":"Joao
102
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
103
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
104
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
105
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/owqn","formats":{"png":"https://bole.to/3/owqn.png","pdf":"https://bole.to/3/owqn.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null}},"occurred_at":"2015-08-24T14:36:52.000-03:00"},{"id":2552,"code":"user.updated","data":{"object":{"id":64,"email":"kivanio+cb@boletosimples.com.br","account_type":"juridical","sex":null,"cpf":"000.233.771-19","address_street_name":"Rua
106
+ 10","address_state":null,"address_neighborhood":null,"address_postal_code":null,"address_number":"9","address_complement":null,"phone_number":null,"withdrawal_period":"monthly","notification_url":"","first_name":"Kivanio","middle_name":"Pereira","last_name":"Barbosa","date_of_birth":null,"business_category":null,"business_subcategory":null,"business_website":null,"business_name":"Boleto
107
+ Simples Cobranças LTDA","business_legal_name":"Boleto Simples Cobranças LTDA","business_type":null,"business_cnpj":"05.813.794/0001-26","address_city_name":null,"full_name":"Kivanio
108
+ Pereira Barbosa","login_url":"https://sandbox.boletosimples.com.br/welcome?email=kivanio%2Bcb%40boletosimples.com.br\u0026token=pvcc7RVMDxh9rwwpdQRJ","mother_name":null,"father_name":null,"account_level":2},"changes":{"last_sign_in_at":["2015-06-09
109
+ 10:00:34 -0300","2015-06-09 10:58:56 -0300"],"current_sign_in_at":["2015-06-09
110
+ 10:58:56 -0300","2015-08-24 14:31:28 -0300"],"current_sign_in_ip":["179.216.199.84","187.123.27.68"],"sign_in_count":[12,13],"updated_at":["2015-06-09
111
+ 11:04:28 -0300","2015-08-24 14:31:28 -0300"]}},"occurred_at":"2015-08-24T14:31:28.000-03:00"},{"id":1552,"code":"bank_billet.updated","data":{"object":{"id":1262,"expire_at":"2015-05-01","paid_at":null,"description":"Despesas
112
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/ymom","customer_person_type":"individual","customer_person_name":"Joao
113
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
114
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
115
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
116
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/ymom","formats":{"png":"https://bole.to/3/ymom.png","pdf":"https://bole.to/3/ymom.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"updated_at":["2015-06-09
117
+ 11:05:01 -0300","2015-06-09 17:04:16 -0300"]}},"occurred_at":"2015-06-09T17:04:16.000-03:00"},{"id":1551,"code":"bank_billet.updated","data":{"object":{"id":1263,"expire_at":"2015-05-01","paid_at":null,"description":"Despesas
118
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/lkro","customer_person_type":"individual","customer_person_name":"Joao
119
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
120
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
121
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
122
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/lkro","formats":{"png":"https://bole.to/3/lkro.png","pdf":"https://bole.to/3/lkro.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"updated_at":["2015-06-09
123
+ 11:05:01 -0300","2015-06-09 17:04:16 -0300"]}},"occurred_at":"2015-06-09T17:04:16.000-03:00"},{"id":1498,"code":"user.updated","data":{"object":{"id":64,"email":"kivanio+cb@boletosimples.com.br","account_type":"juridical","sex":null,"cpf":"000.233.771-19","address_street_name":"Rua
124
+ 10","address_state":null,"address_neighborhood":null,"address_postal_code":null,"address_number":"9","address_complement":null,"phone_number":null,"withdrawal_period":"monthly","notification_url":"","first_name":"Kivanio","middle_name":"Pereira","last_name":"Barbosa","date_of_birth":null,"business_category":null,"business_subcategory":null,"business_website":null,"business_name":"Boleto
125
+ Simples Cobranças LTDA","business_legal_name":"Boleto Simples Cobranças LTDA","business_type":null,"business_cnpj":"05.813.794/0001-26","address_city_name":null,"full_name":"Kivanio
126
+ Pereira Barbosa","login_url":"https://sandbox.boletosimples.com.br/welcome?email=kivanio%2Bcb%40boletosimples.com.br\u0026token=pvcc7RVMDxh9rwwpdQRJ","mother_name":null,"father_name":null,"account_level":2},"changes":{}},"occurred_at":"2015-06-09T11:04:28.000-03:00"},{"id":1497,"code":"bank_billet.updated","data":{"object":{"id":1249,"expire_at":"2015-05-01","paid_at":null,"description":"Despesas
127
+ do contrato 0012","status":"generating","shorten_url":"https://bole.to/3/qzdk","customer_person_type":"individual","customer_person_name":"Joao
128
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
129
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
130
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
131
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/qzdk","formats":{"png":"https://bole.to/3/qzdk.png","pdf":"https://bole.to/3/qzdk.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"beneficiary_name":["Joao
132
+ Silva","Boleto Simples Cobranças LTDA"],"beneficiary_cnpj_cpf":["871.539.859-56","05.813.794/0001-26"],"updated_at":["2015-06-09
133
+ 10:32:02 -0300","2015-06-09 11:05:01 -0300"]}},"occurred_at":"2015-06-09T11:05:01.000-03:00"},{"id":1496,"code":"bank_billet.updated","data":{"object":{"id":1262,"expire_at":"2015-05-01","paid_at":null,"description":"Despesas
134
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/ymom","customer_person_type":"individual","customer_person_name":"Joao
135
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
136
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
137
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
138
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/ymom","formats":{"png":"https://bole.to/3/ymom.png","pdf":"https://bole.to/3/ymom.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"beneficiary_name":["Joao
139
+ Silva","Boleto Simples Cobranças LTDA"],"beneficiary_cnpj_cpf":["871.539.859-56","05.813.794/0001-26"],"updated_at":["2015-06-09
140
+ 10:32:02 -0300","2015-06-09 11:05:01 -0300"]}},"occurred_at":"2015-06-09T11:05:01.000-03:00"},{"id":1495,"code":"bank_billet.updated","data":{"object":{"id":1263,"expire_at":"2015-05-01","paid_at":null,"description":"Despesas
141
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/lkro","customer_person_type":"individual","customer_person_name":"Joao
142
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
143
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
144
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
145
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/lkro","formats":{"png":"https://bole.to/3/lkro.png","pdf":"https://bole.to/3/lkro.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"beneficiary_name":["Joao
146
+ Silva","Boleto Simples Cobranças LTDA"],"beneficiary_cnpj_cpf":["871.539.859-56","05.813.794/0001-26"],"updated_at":["2015-06-09
147
+ 10:32:02 -0300","2015-06-09 11:05:01 -0300"]}},"occurred_at":"2015-06-09T11:05:01.000-03:00"},{"id":1494,"code":"bank_billet.updated","data":{"object":{"id":1251,"expire_at":"2015-04-30","paid_at":null,"description":"teste","status":"generating","shorten_url":"https://bole.to/3/erwg","customer_person_type":"individual","customer_person_name":"Nome
148
+ do Cliente Atualizado","customer_cnpj_cpf":"125.812.717-28","customer_address":"","customer_state":"","customer_neighborhood":"","customer_zipcode":"20071-004","customer_address_number":"","customer_address_complement":"","customer_phone_number":"","customer_email":"","created_via_api":false,"customer_city_name":null,"paid_amount":0.0,"amount":9.9,"url":"https://bole.to/3/erwg","formats":{"png":"https://bole.to/3/erwg.png","pdf":"https://bole.to/3/erwg.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"beneficiary_name":["Joao
149
+ Silva","Boleto Simples Cobranças LTDA"],"beneficiary_cnpj_cpf":["871.539.859-56","05.813.794/0001-26"],"updated_at":["2015-06-09
150
+ 10:32:02 -0300","2015-06-09 11:05:00 -0300"]}},"occurred_at":"2015-06-09T11:05:00.000-03:00"},{"id":1493,"code":"bank_billet.updated","data":{"object":{"id":1250,"expire_at":"2015-05-01","paid_at":null,"description":"Despesas
151
+ do contrato 0012","status":"generating","shorten_url":"https://bole.to/3/kyez","customer_person_type":"individual","customer_person_name":"Joao
152
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
153
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
154
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
155
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/kyez","formats":{"png":"https://bole.to/3/kyez.png","pdf":"https://bole.to/3/kyez.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"beneficiary_name":["Joao
156
+ Silva","Boleto Simples Cobranças LTDA"],"beneficiary_cnpj_cpf":["871.539.859-56","05.813.794/0001-26"],"updated_at":["2015-06-09
157
+ 10:32:02 -0300","2015-06-09 11:05:00 -0300"]}},"occurred_at":"2015-06-09T11:05:00.000-03:00"},{"id":1492,"code":"user.updated","data":{"object":{"id":64,"email":"kivanio+cb@boletosimples.com.br","account_type":"juridical","sex":null,"cpf":"000.233.771-19","address_street_name":"Rua
158
+ 10","address_state":null,"address_neighborhood":null,"address_postal_code":null,"address_number":"9","address_complement":null,"phone_number":null,"withdrawal_period":"monthly","notification_url":"","first_name":"Kivanio","middle_name":"Pereira","last_name":"Barbosa","date_of_birth":null,"business_category":null,"business_subcategory":null,"business_website":null,"business_name":"Boleto
159
+ Simples Cobranças LTDA","business_legal_name":"Boleto Simples Cobranças LTDA","business_type":null,"business_cnpj":"05.813.794/0001-26","address_city_name":null,"full_name":"Kivanio
160
+ Pereira Barbosa","login_url":"https://sandbox.boletosimples.com.br/welcome?email=kivanio%2Bcb%40boletosimples.com.br\u0026token=pvcc7RVMDxh9rwwpdQRJ","mother_name":null,"father_name":null,"account_level":2},"changes":{"business_name":[null,"Boleto
161
+ Simples Cobranças LTDA"],"business_legal_name":[null,"Boleto Simples Cobranças
162
+ LTDA"],"updated_at":["2015-06-09 11:03:39 -0300","2015-06-09 11:04:28 -0300"]}},"occurred_at":"2015-06-09T11:04:28.000-03:00"},{"id":1491,"code":"user.updated","data":{"object":{"id":64,"email":"kivanio+cb@boletosimples.com.br","account_type":"juridical","sex":null,"cpf":"000.233.771-19","address_street_name":"Rua
163
+ 10","address_state":null,"address_neighborhood":null,"address_postal_code":null,"address_number":"9","address_complement":null,"phone_number":null,"withdrawal_period":"monthly","notification_url":"","first_name":"Kivanio","middle_name":"Pereira","last_name":"Barbosa","date_of_birth":null,"business_category":null,"business_subcategory":null,"business_website":null,"business_name":null,"business_legal_name":null,"business_type":null,"business_cnpj":"05.813.794/0001-26","address_city_name":null,"full_name":"Kivanio
164
+ Pereira Barbosa","login_url":"https://sandbox.boletosimples.com.br/welcome?email=kivanio%2Bcb%40boletosimples.com.br\u0026token=pvcc7RVMDxh9rwwpdQRJ","mother_name":null,"father_name":null,"account_level":2},"changes":{"first_name":["Joao","Kivanio"],"last_name":["Silva","Barbosa"],"middle_name":[null,"Pereira"],"cpf":["871.539.859-56","000.233.771-19"],"business_cnpj":[null,"05.813.794/0001-26"],"account_type":["individual","juridical"],"updated_at":["2015-06-09
165
+ 10:58:56 -0300","2015-06-09 11:03:39 -0300"]}},"occurred_at":"2015-06-09T11:03:39.000-03:00"},{"id":1489,"code":"user.updated","data":{"object":{"id":64,"email":"kivanio+cb@boletosimples.com.br","account_type":"individual","sex":null,"cpf":"871.539.859-56","address_street_name":"Rua
166
+ 10","address_state":null,"address_neighborhood":null,"address_postal_code":null,"address_number":"9","address_complement":null,"phone_number":null,"withdrawal_period":"monthly","notification_url":"","first_name":"Joao","middle_name":null,"last_name":"Silva","date_of_birth":null,"business_category":null,"business_subcategory":null,"business_website":null,"business_name":null,"business_legal_name":null,"business_type":null,"business_cnpj":null,"address_city_name":null,"full_name":"Joao
167
+ Silva","login_url":"https://sandbox.boletosimples.com.br/welcome?email=kivanio%2Bcb%40boletosimples.com.br\u0026token=pvcc7RVMDxh9rwwpdQRJ","mother_name":null,"father_name":null,"account_level":2},"changes":{"last_sign_in_at":["2015-06-08
168
+ 16:49:26 -0300","2015-06-09 10:00:34 -0300"],"current_sign_in_at":["2015-06-09
169
+ 10:00:34 -0300","2015-06-09 10:58:56 -0300"],"sign_in_count":[11,12],"updated_at":["2015-06-09
170
+ 10:19:28 -0300","2015-06-09 10:58:56 -0300"]}},"occurred_at":"2015-06-09T10:58:56.000-03:00"},{"id":1488,"code":"user.updated","data":{"object":{"id":64,"email":"kivanio+cb@boletosimples.com.br","account_type":"individual","sex":null,"cpf":"871.539.859-56","address_street_name":"Rua
171
+ 10","address_state":null,"address_neighborhood":null,"address_postal_code":null,"address_number":"9","address_complement":null,"phone_number":null,"withdrawal_period":"monthly","notification_url":"","first_name":"Joao","middle_name":null,"last_name":"Silva","date_of_birth":null,"business_category":null,"business_subcategory":null,"business_website":null,"business_name":null,"business_legal_name":null,"business_type":null,"business_cnpj":null,"address_city_name":null,"full_name":"Joao
172
+ Silva","login_url":"https://sandbox.boletosimples.com.br/welcome?email=kivanio%2Bcb%40boletosimples.com.br\u0026token=pvcc7RVMDxh9rwwpdQRJ","mother_name":null,"father_name":null,"account_level":2},"changes":{}},"occurred_at":"2015-06-09T10:19:28.000-03:00"},{"id":1481,"code":"bank_billet.updated","data":{"object":{"id":1263,"expire_at":"2015-05-01","paid_at":null,"description":"Despesas
173
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/lkro","customer_person_type":"individual","customer_person_name":"Joao
174
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
175
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
176
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
177
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/lkro","formats":{"png":"https://bole.to/3/lkro.png","pdf":"https://bole.to/3/lkro.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"updated_at":["2015-06-09
178
+ 10:21:28 -0300","2015-06-09 10:32:02 -0300"]}},"occurred_at":"2015-06-09T10:32:02.000-03:00"},{"id":1480,"code":"bank_billet.updated","data":{"object":{"id":1262,"expire_at":"2015-05-01","paid_at":null,"description":"Despesas
179
+ do contrato 0012","status":"opened","shorten_url":"https://bole.to/3/ymom","customer_person_type":"individual","customer_person_name":"Joao
180
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
181
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
182
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
183
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/ymom","formats":{"png":"https://bole.to/3/ymom.png","pdf":"https://bole.to/3/ymom.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"updated_at":["2015-06-09
184
+ 10:20:37 -0300","2015-06-09 10:32:02 -0300"]}},"occurred_at":"2015-06-09T10:32:02.000-03:00"},{"id":1479,"code":"bank_billet.updated","data":{"object":{"id":1251,"expire_at":"2015-04-30","paid_at":null,"description":"teste","status":"generating","shorten_url":"https://bole.to/3/erwg","customer_person_type":"individual","customer_person_name":"Nome
185
+ do Cliente Atualizado","customer_cnpj_cpf":"125.812.717-28","customer_address":"","customer_state":"","customer_neighborhood":"","customer_zipcode":"20071-004","customer_address_number":"","customer_address_complement":"","customer_phone_number":"","customer_email":"","created_via_api":false,"customer_city_name":null,"paid_amount":0.0,"amount":9.9,"url":"https://bole.to/3/erwg","formats":{"png":"https://bole.to/3/erwg.png","pdf":"https://bole.to/3/erwg.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"beneficiary_name":[null,"Joao
186
+ Silva"],"beneficiary_cnpj_cpf":[null,"871.539.859-56"],"beneficiary_address":["","Rua
187
+ 10, 9"],"updated_at":["2015-06-08 17:02:58 -0300","2015-06-09 10:32:02 -0300"]}},"occurred_at":"2015-06-09T10:32:02.000-03:00"},{"id":1478,"code":"bank_billet.updated","data":{"object":{"id":1250,"expire_at":"2015-05-01","paid_at":null,"description":"Despesas
188
+ do contrato 0012","status":"generating","shorten_url":"https://bole.to/3/kyez","customer_person_type":"individual","customer_person_name":"Joao
189
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
190
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
191
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","created_via_api":true,"customer_city_name":"Rio
192
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://bole.to/3/kyez","formats":{"png":"https://bole.to/3/kyez.png","pdf":"https://bole.to/3/kyez.pdf"},"notification_url":"","meta":null,"fine_for_delay":null,"late_payment_interest":null},"changes":{"remessa_id":[null,1],"beneficiary_name":[null,"Joao
193
+ Silva"],"beneficiary_cnpj_cpf":[null,"871.539.859-56"],"beneficiary_address":["","Rua
194
+ 10, 9"],"updated_at":["2015-06-08 16:54:07 -0300","2015-06-09 10:32:02 -0300"]}},"occurred_at":"2015-06-09T10:32:02.000-03:00"}]'
195
+ http_version:
196
+ recorded_at: Mon, 24 Aug 2015 18:10:09 GMT
197
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/remittances?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.2.3 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Connection:
24
+ - keep-alive
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Status:
30
+ - 200 OK
31
+ Cache-Control:
32
+ - must-revalidate, private, max-age=0
33
+ X-Ratelimit-Limit:
34
+ - '500'
35
+ Date:
36
+ - Mon, 24 Aug 2015 18:00:12 GMT
37
+ Strict-Transport-Security:
38
+ - max-age=2592000
39
+ X-Ratelimit-Remaining:
40
+ - '499'
41
+ Vary:
42
+ - Accept-Encoding
43
+ X-Request-Id:
44
+ - 23d745ee-0225-43f4-aa53-061727ff9bc9
45
+ Total:
46
+ - '1'
47
+ Etag:
48
+ - W/"895aedce469530ceac59ec2bf17eb5b3"
49
+ X-Runtime:
50
+ - '0.194253'
51
+ X-Rack-Cache:
52
+ - miss
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.0.15
55
+ Server:
56
+ - nginx/1.8.0 + Phusion Passenger 5.0.15
57
+ Via:
58
+ - 1.1 vegur
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":1,"filename":"0806201501.REM","created_via_api":false,"status":"processed","bank_billet_account_id":10,"created_at":"2015-06-08","processed_at":"2015-06-09","url":"https://sandbox.boletosimples.com.br/api/v1/remittances/1/raw"}]'
62
+ http_version:
63
+ recorded_at: Mon, 24 Aug 2015 18:00:12 GMT
64
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/webhooks?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.2.3 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Connection:
24
+ - keep-alive
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Status:
30
+ - 200 OK
31
+ Cache-Control:
32
+ - must-revalidate, private, max-age=0
33
+ X-Ratelimit-Limit:
34
+ - '500'
35
+ Date:
36
+ - Mon, 24 Aug 2015 18:19:42 GMT
37
+ Strict-Transport-Security:
38
+ - max-age=2592000
39
+ X-Ratelimit-Remaining:
40
+ - '492'
41
+ Vary:
42
+ - Accept-Encoding
43
+ X-Request-Id:
44
+ - 87f24b72-4d2c-4d34-a42c-96da07bdeb9c
45
+ Total:
46
+ - '1'
47
+ Etag:
48
+ - W/"e37218891cd4584530ca6b91573d338e"
49
+ X-Runtime:
50
+ - '0.029120'
51
+ X-Rack-Cache:
52
+ - miss
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.0.15
55
+ Server:
56
+ - nginx/1.8.0 + Phusion Passenger 5.0.15
57
+ Via:
58
+ - 1.1 vegur
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":48,"url":"https://example.com","content_type":"application/json","events":["*"],"ssl_verification_enabled":true,"active":true}]'
62
+ http_version:
63
+ recorded_at: Mon, 24 Aug 2015 18:19:42 GMT
64
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,85 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/webhook_deliveries?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.2.3 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Connection:
24
+ - keep-alive
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Status:
30
+ - 200 OK
31
+ Cache-Control:
32
+ - must-revalidate, private, max-age=0
33
+ X-Ratelimit-Limit:
34
+ - '500'
35
+ Date:
36
+ - Mon, 24 Aug 2015 18:22:27 GMT
37
+ Strict-Transport-Security:
38
+ - max-age=2592000
39
+ X-Ratelimit-Remaining:
40
+ - '491'
41
+ Vary:
42
+ - Accept-Encoding
43
+ X-Request-Id:
44
+ - 27610549-e053-4cce-b496-6e097d680193
45
+ Total:
46
+ - '1'
47
+ Etag:
48
+ - W/"821177355d204f38ed3af15a2aecde23"
49
+ X-Runtime:
50
+ - '0.065348'
51
+ X-Rack-Cache:
52
+ - miss
53
+ X-Powered-By:
54
+ - Phusion Passenger 5.0.15
55
+ Server:
56
+ - nginx/1.8.0 + Phusion Passenger 5.0.15
57
+ Via:
58
+ - 1.1 vegur
59
+ body:
60
+ encoding: UTF-8
61
+ string: '[{"id":1434,"uid":"476750a1-bbdf-4e2c-b821-ce80d916af1d","url":"https://example.com","duration":194,"request_headers":{"X-BoletoSimples-Event":"ping","X-Hub-Signature":"sha1=fb0ba87d0416cfaadc762b7296f4a2edeeb3501b","X-BoletoSimples-Delivery-Id":"476750a1-bbdf-4e2c-b821-ce80d916af1d","X-BoletoSimples-Environment":"sandbox","User-Agent":"BoletoSimples-Robot
62
+ (sandbox)","Content-Type":"application/json"},"request_payload":{"event_code":"ping","webhook":{"id":48,"url":"https://example.com"}},"request_error":null,"response_body":"\u003c!doctype
63
+ html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n \u003ctitle\u003eExample
64
+ Domain\u003c/title\u003e\n\n \u003cmeta charset=\"utf-8\" /\u003e\n \u003cmeta
65
+ http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" /\u003e\n \u003cmeta
66
+ name=\"viewport\" content=\"width=device-width, initial-scale=1\" /\u003e\n \u003cstyle
67
+ type=\"text/css\"\u003e\n body {\n background-color: #f0f0f2;\n margin:
68
+ 0;\n padding: 0;\n font-family: \"Open Sans\", \"Helvetica Neue\",
69
+ Helvetica, Arial, sans-serif;\n \n }\n div {\n width:
70
+ 600px;\n margin: 5em auto;\n padding: 50px;\n background-color:
71
+ #fff;\n border-radius: 1em;\n }\n a:link, a:visited {\n color:
72
+ #38488f;\n text-decoration: none;\n }\n @media (max-width: 700px)
73
+ {\n body {\n background-color: #fff;\n }\n div
74
+ {\n width: auto;\n margin: 0 auto;\n border-radius:
75
+ 0;\n padding: 1em;\n }\n }\n \u003c/style\u003e \n\u003c/head\u003e\n\n\u003cbody\u003e\n\u003cdiv\u003e\n \u003ch1\u003eExample
76
+ Domain\u003c/h1\u003e\n \u003cp\u003eThis domain is established to be used
77
+ for illustrative examples in documents. You may use this\n domain in examples
78
+ without prior coordination or asking for permission.\u003c/p\u003e\n \u003cp\u003e\u003ca
79
+ href=\"http://www.iana.org/domains/example\"\u003eMore information...\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n","response_code":200,"response_headers":{"accept-ranges":["bytes"],"cache-control":["max-age=604800"],"content-type":["text/html"],"date":["Mon,
80
+ 24 Aug 2015 18:19:26 GMT"],"etag":["\"359670651\""],"expires":["Mon, 31 Aug
81
+ 2015 18:19:26 GMT"],"last-modified":["Fri, 09 Aug 2013 23:54:35 GMT"],"server":["EOS
82
+ (lax004/2816)"],"content-length":["1270"],"connection":["close"]},"response_message":"OK","delivered_at":"2015-08-24T15:19:26.452-03:00","event":null}]'
83
+ http_version:
84
+ recorded_at: Mon, 24 Aug 2015 18:22:27 GMT
85
+ recorded_with: VCR 2.9.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boletosimples
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kivanio Barbosa
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-08 00:00:00.000000000 Z
13
+ date: 2015-08-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: her
@@ -18,42 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.7.3
21
+ version: 0.7.5
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: 0.7.3
28
+ version: 0.7.5
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.9.1
35
+ version: 0.10.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.9.1
42
+ version: 0.10.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: faraday-http-cache
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 1.0.1
49
+ version: 1.2.0
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: 1.0.1
56
+ version: 1.2.0
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: pry
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 3.2.0
77
+ version: 3.3.0
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: 3.2.0
84
+ version: 3.3.0
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: vcr
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -102,14 +102,14 @@ dependencies:
102
102
  requirements:
103
103
  - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: 1.20.4
105
+ version: 1.21.0
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - "~>"
111
111
  - !ruby/object:Gem::Version
112
- version: 1.20.4
112
+ version: 1.21.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rake
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -130,14 +130,14 @@ dependencies:
130
130
  requirements:
131
131
  - - "~>"
132
132
  - !ruby/object:Gem::Version
133
- version: 0.7.11
133
+ version: 0.8.2
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - "~>"
139
139
  - !ruby/object:Gem::Version
140
- version: 0.7.11
140
+ version: 0.8.2
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: codeclimate-test-reporter
143
143
  requirement: !ruby/object:Gem::Requirement
@@ -183,8 +183,13 @@ files:
183
183
  - lib/boletosimples/resources/bank_billet_account.rb
184
184
  - lib/boletosimples/resources/base_model.rb
185
185
  - lib/boletosimples/resources/customer.rb
186
+ - lib/boletosimples/resources/discharge.rb
187
+ - lib/boletosimples/resources/event.rb
186
188
  - lib/boletosimples/resources/partner/user.rb
189
+ - lib/boletosimples/resources/remittance.rb
187
190
  - lib/boletosimples/resources/transaction.rb
191
+ - lib/boletosimples/resources/webhook.rb
192
+ - lib/boletosimples/resources/webhook_delivery.rb
188
193
  - lib/boletosimples/response_error.rb
189
194
  - lib/boletosimples/version.rb
190
195
  - lib/oauth2_patch.rb
@@ -194,8 +199,13 @@ files:
194
199
  - spec/boletosimples/resources/bank_billet_account_spec.rb
195
200
  - spec/boletosimples/resources/bank_billet_spec.rb
196
201
  - spec/boletosimples/resources/customer_spec.rb
202
+ - spec/boletosimples/resources/discharge_spec.rb
203
+ - spec/boletosimples/resources/event_spec.rb
197
204
  - spec/boletosimples/resources/partner/user_spec.rb
205
+ - spec/boletosimples/resources/remittance_spec.rb
198
206
  - spec/boletosimples/resources/transactions_spec.rb
207
+ - spec/boletosimples/resources/webhook_delivery_spec.rb
208
+ - spec/boletosimples/resources/webhook_spec.rb
199
209
  - spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml
200
210
  - spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml
201
211
  - spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml
@@ -219,8 +229,13 @@ files:
219
229
  - spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml
220
230
  - spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml
221
231
  - spec/fixtures/vcr_cassettes/resources/customer/find.yml
232
+ - spec/fixtures/vcr_cassettes/resources/discharge/all.yml
233
+ - spec/fixtures/vcr_cassettes/resources/event/all.yml
222
234
  - spec/fixtures/vcr_cassettes/resources/partner/user/create.yml
235
+ - spec/fixtures/vcr_cassettes/resources/remittance/all.yml
223
236
  - spec/fixtures/vcr_cassettes/resources/transaction/all.yml
237
+ - spec/fixtures/vcr_cassettes/resources/web_hook/all.yml
238
+ - spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml
224
239
  - spec/spec.opts
225
240
  - spec/spec_helper.rb
226
241
  - spec/support/vcr.rb
@@ -243,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
258
  version: '0'
244
259
  requirements: []
245
260
  rubyforge_project:
246
- rubygems_version: 2.4.5
261
+ rubygems_version: 2.4.5.1
247
262
  signing_key:
248
263
  specification_version: 4
249
264
  summary: Boleto Simples API wrapper.
@@ -254,8 +269,13 @@ test_files:
254
269
  - spec/boletosimples/resources/bank_billet_account_spec.rb
255
270
  - spec/boletosimples/resources/bank_billet_spec.rb
256
271
  - spec/boletosimples/resources/customer_spec.rb
272
+ - spec/boletosimples/resources/discharge_spec.rb
273
+ - spec/boletosimples/resources/event_spec.rb
257
274
  - spec/boletosimples/resources/partner/user_spec.rb
275
+ - spec/boletosimples/resources/remittance_spec.rb
258
276
  - spec/boletosimples/resources/transactions_spec.rb
277
+ - spec/boletosimples/resources/webhook_delivery_spec.rb
278
+ - spec/boletosimples/resources/webhook_spec.rb
259
279
  - spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml
260
280
  - spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml
261
281
  - spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml
@@ -279,8 +299,13 @@ test_files:
279
299
  - spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml
280
300
  - spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml
281
301
  - spec/fixtures/vcr_cassettes/resources/customer/find.yml
302
+ - spec/fixtures/vcr_cassettes/resources/discharge/all.yml
303
+ - spec/fixtures/vcr_cassettes/resources/event/all.yml
282
304
  - spec/fixtures/vcr_cassettes/resources/partner/user/create.yml
305
+ - spec/fixtures/vcr_cassettes/resources/remittance/all.yml
283
306
  - spec/fixtures/vcr_cassettes/resources/transaction/all.yml
307
+ - spec/fixtures/vcr_cassettes/resources/web_hook/all.yml
308
+ - spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml
284
309
  - spec/spec.opts
285
310
  - spec/spec_helper.rb
286
311
  - spec/support/vcr.rb