boletosimples 0.5.0 → 0.6.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
  SHA256:
3
- metadata.gz: 2bda4dfdfe9405d5a756c87bbc0352ae7a59e0fe3f0ca89bb04448dc91294225
4
- data.tar.gz: 9c039d58c2aa2aa375a7c0a334ffd20dffa53f07aa8d5ebe01d1feb736e361e2
3
+ metadata.gz: 267fcb0a89580d774bde7f6f875cedffb19d56cf81b5fea7adc7a25d51948320
4
+ data.tar.gz: 121d8f4fa802857f9b401ff37f33ac72fcecb0c43f1ceb817687d342e097b8fb
5
5
  SHA512:
6
- metadata.gz: 1acbbbf44db9635e0933501ad71d620ad884ecda0a8e338aaba6fa04874fcd729cf4fbdcc367e8b17b2fccd8433ce95e590e433cdad6fd7517bc31b5917a5f21
7
- data.tar.gz: 2eac329307a6becbede25032d3c9481d56f1c688652e6832e9afb7775d439ed15efdfebd58e4d8b1dc9fa8578f97fd0235ab919fbf60fd9f86cf4053ba3da449
6
+ metadata.gz: a3e8c7819279bc063e647329d89bda39047cc70182df5c6832fbc9635382b92896dbbf670dceba67698f88bd6fca35defb2a4bad49911b9aaa19b0fad2a39e27
7
+ data.tar.gz: 1eb282604546f93c830134f9137c3f78a73190d3461d4c1e7a6f8e065a188321f8d030a4bbcc92892903123d6978d1c755f21ff8e4a2ce999cee8e477803eaac
@@ -11,7 +11,11 @@ module BoletoSimples
11
11
 
12
12
  autoload :BankBillet, 'boletosimples/resources/bank_billet'
13
13
  autoload :BankBilletAccount, 'boletosimples/resources/bank_billet_account'
14
+ autoload :BankBilletDischarge, 'boletosimples/resources/bank_billet_discharge'
15
+ autoload :BankBilletPayment, 'boletosimples/resources/bank_billet_payment'
16
+ autoload :BankBilletRemittance, 'boletosimples/resources/bank_billet_remittance'
14
17
  autoload :Event, 'boletosimples/resources/event'
18
+ autoload :EmailDelivery, 'boletosimples/resources/email_delivery'
15
19
  autoload :Customer, 'boletosimples/resources/customer'
16
20
  autoload :CustomerImport, 'boletosimples/resources/customer_import'
17
21
  autoload :CustomerSubscription, 'boletosimples/resources/customer_subscription'
@@ -2,8 +2,7 @@
2
2
  module BoletoSimples
3
3
 
4
4
  class Configuration
5
- attr_accessor :environment, :application_id, :application_secret, :access_token, :cache
6
-
5
+ attr_accessor :environment, :application_id, :application_secret, :access_token, :cache, :user_agent
7
6
 
8
7
  BASE_URI = {
9
8
  sandbox: 'https://sandbox.boletosimples.com.br/api/v1',
@@ -17,16 +16,13 @@ module BoletoSimples
17
16
  @application_secret = ENV['BOLETOSIMPLES_APP_SECRET']
18
17
  @access_token = ENV['BOLETOSIMPLES_ACCESS_TOKEN']
19
18
  @cache = nil
19
+ @user_agent = ENV['BOLETOSIMPLES_USER_AGENT'] || "BoletoSimples Ruby Client v#{BoletoSimples::VERSION} (contato@boletosimples.com.br)"
20
20
  end
21
21
 
22
22
  def base_uri
23
23
  BASE_URI[@environment]
24
24
  end
25
25
 
26
- def user_agent
27
- "BoletoSimples Ruby Client v#{BoletoSimples::VERSION} (contato@boletosimples.com.br)"
28
- end
29
-
30
26
  def access_token?
31
27
  !@access_token.nil?
32
28
  end
@@ -61,7 +57,7 @@ module BoletoSimples
61
57
 
62
58
  # Because Her set the api on the moment module is included we need to call use_api again, after changing the configuration.
63
59
  [BankBillet, BankBilletAccount, Customer, CustomerImport, CustomerSubscription, CustomerSubscriptionImport, Installment, Transaction, Partner::User,
64
- Webhook, Discharge, Remittance, WebhookDelivery, Event].each do |klass|
60
+ Webhook, Discharge, Remittance, WebhookDelivery, Event, EmailDelivery, BankBilletDischarge, BankBilletPayment, BankBilletRemittance].each do |klass|
65
61
  klass.send(:use_api, Her::API.default_api)
66
62
  end
67
63
  end
@@ -0,0 +1,4 @@
1
+ module BoletoSimples
2
+ class BankBilletDischarge < BaseModel
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module BoletoSimples
2
+ class BankBilletPayment < BaseModel
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module BoletoSimples
2
+ class BankBilletRemittance < BaseModel
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module BoletoSimples
2
+ class EmailDelivery < BaseModel
3
+ end
4
+ end
@@ -1,3 +1,3 @@
1
1
  module BoletoSimples
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -48,6 +48,7 @@ RSpec.describe BoletoSimples::Configuration do
48
48
  it { expect(subject.application_secret).to eq('app-secret') }
49
49
  it { expect(subject.access_token).to eq('access-token') }
50
50
  it { expect(subject).to be_access_token }
51
+ it { expect(subject.user_agent).to eq("BoletoSimples Ruby Client v#{BoletoSimples::VERSION} (contato@boletosimples.com.br)") }
51
52
  describe 'cache' do
52
53
  it { expect(subject.cache).to be_nil }
53
54
  it { expect(Her::API.default_api.connection.builder.handlers).not_to include(Faraday::HttpCache) }
@@ -62,11 +63,12 @@ RSpec.describe BoletoSimples::Configuration do
62
63
  c.application_secret = 'app-secret'
63
64
  c.access_token = 'access-token'
64
65
  c.cache = cache_object
66
+ c.user_agent = 'Meu agent'
65
67
  end
66
68
  }
67
69
  subject { BoletoSimples.configuration }
68
70
  it { expect(subject.environment).to eq(:production) }
69
- it { expect(subject.user_agent).to eq("BoletoSimples Ruby Client v#{BoletoSimples::VERSION} (contato@boletosimples.com.br)") }
71
+ it { expect(subject.user_agent).to eq("Meu agent") }
70
72
  it { expect(subject.base_uri).to eq('https://boletosimples.com.br/api/v1') }
71
73
  it { expect(subject.application_id).to eq('app-id') }
72
74
  it { expect(subject.application_secret).to eq('app-secret') }
@@ -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::BankBilletDischarge 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/bank_billet_discharge/all'} do
14
+ subject { BoletoSimples::BankBilletDischarge.all }
15
+ it { expect(subject.first).to be_a_kind_of(BoletoSimples::BankBilletDischarge) }
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::BankBilletPayment 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/bank_billet_payment/all'} do
14
+ subject { BoletoSimples::BankBilletPayment.all }
15
+ it { expect(subject.first).to be_a_kind_of(BoletoSimples::BankBilletPayment) }
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::BankBilletRemittance 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/bank_billet_remittance/all'} do
14
+ subject { BoletoSimples::BankBilletRemittance.all }
15
+ it { expect(subject.first).to be_a_kind_of(BoletoSimples::BankBilletRemittance) }
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::EmailDelivery 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/email_delivery/all'} do
14
+ subject { BoletoSimples::EmailDelivery.all }
15
+ it { expect(subject.first).to be_nil }
16
+ end
17
+ end
@@ -0,0 +1,78 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.5.0 (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
+ Date:
34
+ - Fri, 14 Dec 2018 19:23:01 GMT
35
+ Vary:
36
+ - Origin,Accept-Encoding
37
+ Strict-Transport-Security:
38
+ - max-age=2629746
39
+ Referrer-Policy:
40
+ - strict-origin-when-cross-origin
41
+ X-Permitted-Cross-Domain-Policies:
42
+ - none
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Request-Id:
46
+ - cea5a898-5942-4b05-9766-a7b225d3661c
47
+ Link:
48
+ - <https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=2>;
49
+ rel="last", <https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=2>;
50
+ rel="next"
51
+ X-Download-Options:
52
+ - noopen
53
+ Total:
54
+ - '31'
55
+ Etag:
56
+ - W/"05b627a2e9ed0eaad53fb3abaab47053"
57
+ X-Frame-Options:
58
+ - DENY
59
+ X-Runtime:
60
+ - '0.133802'
61
+ X-Content-Type-Options:
62
+ - nosniff
63
+ X-Rack-Cache:
64
+ - miss
65
+ X-Powered-By:
66
+ - Phusion Passenger 6.0.0
67
+ Server:
68
+ - nginx/1.15.7 + Phusion Passenger 6.0.0
69
+ Via:
70
+ - 1.1 vegur
71
+ body:
72
+ encoding: UTF-8
73
+ string: '[{"id":15792,"occurrence":"05","date_of_occurrence":"2015-04-08","discharge_id":13,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","parcel":"01","paid_at":"2015-04-08","cnpj_cpf":"05813794000126","contract":"02","discount":"0","line_raw":"1020581379400012643270000036668000000 000000100670010000000OU00000000000000000000
74
+ 0205080415 150415000000005610010441880990804150000180000000000000000000000000000000000000000000000000000000000000000000000000056100000000000000000000000000000000000000000000000000000010000000000000 0000000000000000000000000000000000000000000000000000000029","bank_rate":"180","credit_at":"2015-04-08","error_code":"00","event_type":"05","our_number":"00100670","billet_fine":"0","paid_amount":"56100","agency_digit":"0","other_credit":"0","value_rebate":"0","account_digit":"8","agency_number":"4327","credit_amount":"0","account_number":"00003666","banco_recebedor":"104","agencia_recebedora":"4188","processed_our_number_raw":"00100670"},"processed_at":"2018-12-14","occurrence_detail":"Liquidação
75
+ Sem Registro","occurrence_error_detail":null,"our_occurrence":"2027","bank_billet":null}]'
76
+ http_version:
77
+ recorded_at: Fri, 14 Dec 2018 19:23:02 GMT
78
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_payments?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.5.0 (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
+ Date:
34
+ - Fri, 14 Dec 2018 19:22:59 GMT
35
+ Vary:
36
+ - Origin,Accept-Encoding
37
+ Strict-Transport-Security:
38
+ - max-age=2629746
39
+ Referrer-Policy:
40
+ - strict-origin-when-cross-origin
41
+ X-Permitted-Cross-Domain-Policies:
42
+ - none
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Request-Id:
46
+ - 64c0e4e3-8d36-470e-9227-5424572242dc
47
+ X-Download-Options:
48
+ - noopen
49
+ Total:
50
+ - '1'
51
+ Etag:
52
+ - W/"37c99ac154561f1a274f018895045b86"
53
+ X-Frame-Options:
54
+ - DENY
55
+ X-Runtime:
56
+ - '0.045640'
57
+ X-Content-Type-Options:
58
+ - nosniff
59
+ X-Rack-Cache:
60
+ - miss
61
+ X-Powered-By:
62
+ - Phusion Passenger 6.0.0
63
+ Server:
64
+ - nginx/1.15.7 + Phusion Passenger 6.0.0
65
+ Via:
66
+ - 1.1 vegur
67
+ body:
68
+ encoding: UTF-8
69
+ string: '[{"id":553,"bank_billet_id":133853,"bank_billet_account_id":12,"paid_at":"2018-12-14","paid_amount":131.31,"bank_rate":null,"paid_bank":null,"paid_agency":null,"created_at":"2018-12-14","our_number":"0000314","customer_person_name":"Kivanio
70
+ Barbosa","expire_at":"2018-12-14","amount":131.31}]'
71
+ http_version:
72
+ recorded_at: Fri, 14 Dec 2018 19:23:00 GMT
73
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,79 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_remittances?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.5.0 (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
+ Date:
34
+ - Fri, 14 Dec 2018 19:23:00 GMT
35
+ Vary:
36
+ - Origin,Accept-Encoding
37
+ Strict-Transport-Security:
38
+ - max-age=2629746
39
+ Referrer-Policy:
40
+ - strict-origin-when-cross-origin
41
+ X-Permitted-Cross-Domain-Policies:
42
+ - none
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Request-Id:
46
+ - f062a888-d4b7-4ed0-a45b-4e03e3cac687
47
+ X-Download-Options:
48
+ - noopen
49
+ Total:
50
+ - '1'
51
+ Etag:
52
+ - W/"79a2594c96025094523022e47afe286a"
53
+ X-Frame-Options:
54
+ - DENY
55
+ X-Runtime:
56
+ - '0.042576'
57
+ X-Content-Type-Options:
58
+ - nosniff
59
+ X-Rack-Cache:
60
+ - miss
61
+ X-Powered-By:
62
+ - Phusion Passenger 6.0.0
63
+ Server:
64
+ - nginx/1.15.7 + Phusion Passenger 6.0.0
65
+ Via:
66
+ - 1.1 vegur
67
+ body:
68
+ encoding: UTF-8
69
+ string: '[{"id":106043,"our_code":"1001","occurrence":"01","remittance_id":1341,"bank_billet_id":133853,"bank_billet_account_id":12,"processed_at":"2018-12-14","occurrence_detail":"Entrada
70
+ de Título","created_at":"2018-12-14","bank_billet":{"id":133853,"expire_at":"2018-12-14","paid_at":"2018-12-14","description":"teste","status":"paid","shorten_url":"https://bole.to/3/vjkxew","customer_person_type":"individual","customer_person_name":"Kivanio
71
+ Barbosa","customer_cnpj_cpf":"000.233.771-19","customer_address":"Rua Quatro","customer_state":"MT","customer_neighborhood":"CPA
72
+ III","customer_zipcode":"78058330","customer_address_number":"9","customer_address_complement":"","customer_phone_number":"6581214248","customer_email":"kivanio@gmail.com","customer_email_cc":null,"customer_ignore_email":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":"","customer_notes":null,"created_via_api":false,"customer_city_name":"Cuiabá","paid_amount":131.31,"amount":131.31,"url":"https://bole.to/3/vjkxew","formats":{"png":"https://bole.to/3/vjkxew.png?r=1544815148","pdf":"https://bole.to/3/vjkxew.pdf?r=1544815148"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":12,"beneficiary_name":"Kivanio
73
+ Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
74
+ Quatro, 9, 78058-330","beneficiary_assignor_code":"4327 / 1234567","guarantor_name":"","guarantor_cnpj_cpf":null,"payment_place":"Pagável
75
+ em qualquer banco até a data de vencimento.","instructions":"teste","document_date":null,"document_type":"02","document_number":"","acceptance":"N","processed_our_number":"0000314-2","processed_our_number_raw":"00003142","bank_contract_slug":"sicoob-02","agency_number":"4327","agency_digit":"3","account_number":"00003666","account_digit":"8","extra1":"1234567","extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"75691.43279
76
+ 02123.456705 00031.420011 6 77380000013131","our_number":"0000314","customer_subscription_id":null,"installment_number":null,"installment_id":null,"carne_url":null,"bank_billet_layout_id":5,"remittance_id":null,"created_at":"2018-12-14","updated_at":"2018-12-14","tags":[],"tag_list":"","document_type_label":"DM","addons":null,"ignore_email":false,"sue_code":null,"revoke_code":null,"first_instruction":null,"second_instruction":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null,"barcode":"","registered_at":null}}]'
77
+ http_version:
78
+ recorded_at: Fri, 14 Dec 2018 19:23:01 GMT
79
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/email_deliveries?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.5.0 (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
+ Date:
34
+ - Fri, 14 Dec 2018 19:44:02 GMT
35
+ Vary:
36
+ - Origin,Accept-Encoding
37
+ Strict-Transport-Security:
38
+ - max-age=2629746
39
+ Referrer-Policy:
40
+ - strict-origin-when-cross-origin
41
+ X-Permitted-Cross-Domain-Policies:
42
+ - none
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Request-Id:
46
+ - 50f4a7d6-a313-44aa-9d74-f3ba0262ae92
47
+ Link:
48
+ - <https://sandbox.boletosimples.com.br/api/v1/email_deliveries?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=0>;
49
+ rel="last", <https://sandbox.boletosimples.com.br/api/v1/email_deliveries?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=2>;
50
+ rel="next"
51
+ X-Download-Options:
52
+ - noopen
53
+ Total:
54
+ - '0'
55
+ Etag:
56
+ - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
57
+ X-Frame-Options:
58
+ - DENY
59
+ X-Runtime:
60
+ - '0.024390'
61
+ X-Content-Type-Options:
62
+ - nosniff
63
+ X-Rack-Cache:
64
+ - miss
65
+ X-Powered-By:
66
+ - Phusion Passenger 6.0.0
67
+ Server:
68
+ - nginx/1.15.7 + Phusion Passenger 6.0.0
69
+ Via:
70
+ - 1.1 vegur
71
+ body:
72
+ encoding: UTF-8
73
+ string: "[]"
74
+ http_version:
75
+ recorded_at: Fri, 14 Dec 2018 19:44:03 GMT
76
+ recorded_with: VCR 4.0.0
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.5.0
4
+ version: 0.6.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: 2018-04-27 00:00:00.000000000 Z
13
+ date: 2018-12-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: her
@@ -212,12 +212,16 @@ files:
212
212
  - lib/boletosimples/middlewares/user_agent.rb
213
213
  - lib/boletosimples/resources/bank_billet.rb
214
214
  - lib/boletosimples/resources/bank_billet_account.rb
215
+ - lib/boletosimples/resources/bank_billet_discharge.rb
216
+ - lib/boletosimples/resources/bank_billet_payment.rb
217
+ - lib/boletosimples/resources/bank_billet_remittance.rb
215
218
  - lib/boletosimples/resources/base_model.rb
216
219
  - lib/boletosimples/resources/customer.rb
217
220
  - lib/boletosimples/resources/customer_import.rb
218
221
  - lib/boletosimples/resources/customer_subscription.rb
219
222
  - lib/boletosimples/resources/customer_subscription_import.rb
220
223
  - lib/boletosimples/resources/discharge.rb
224
+ - lib/boletosimples/resources/email_delivery.rb
221
225
  - lib/boletosimples/resources/event.rb
222
226
  - lib/boletosimples/resources/installment.rb
223
227
  - lib/boletosimples/resources/partner/user.rb
@@ -232,12 +236,16 @@ files:
232
236
  - spec/boletosimples/extra_spec.rb
233
237
  - spec/boletosimples/last_request_spec.rb
234
238
  - spec/boletosimples/resources/bank_billet_account_spec.rb
239
+ - spec/boletosimples/resources/bank_billet_discharge_spec.rb
240
+ - spec/boletosimples/resources/bank_billet_payment_spec.rb
241
+ - spec/boletosimples/resources/bank_billet_remittance_spec.rb
235
242
  - spec/boletosimples/resources/bank_billet_spec.rb
236
243
  - spec/boletosimples/resources/customer_import_spec.rb
237
244
  - spec/boletosimples/resources/customer_spec.rb
238
245
  - spec/boletosimples/resources/customer_subscription_import_spec.rb
239
246
  - spec/boletosimples/resources/customer_subscription_spec.rb
240
247
  - spec/boletosimples/resources/discharge_spec.rb
248
+ - spec/boletosimples/resources/email_delivery_spec.rb
241
249
  - spec/boletosimples/resources/event_spec.rb
242
250
  - spec/boletosimples/resources/installment_spec.rb
243
251
  - spec/boletosimples/resources/partner/user_spec.rb
@@ -265,6 +273,9 @@ files:
265
273
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml
266
274
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml
267
275
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml
276
+ - spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml
277
+ - spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml
278
+ - spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml
268
279
  - spec/fixtures/vcr_cassettes/resources/customer/all.yml
269
280
  - spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml
270
281
  - spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml
@@ -287,6 +298,7 @@ files:
287
298
  - spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml
288
299
  - spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml
289
300
  - spec/fixtures/vcr_cassettes/resources/discharge/all.yml
301
+ - spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml
290
302
  - spec/fixtures/vcr_cassettes/resources/event/all.yml
291
303
  - spec/fixtures/vcr_cassettes/resources/installment/all.yml
292
304
  - spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml
@@ -329,12 +341,16 @@ test_files:
329
341
  - spec/boletosimples/extra_spec.rb
330
342
  - spec/boletosimples/last_request_spec.rb
331
343
  - spec/boletosimples/resources/bank_billet_account_spec.rb
344
+ - spec/boletosimples/resources/bank_billet_discharge_spec.rb
345
+ - spec/boletosimples/resources/bank_billet_payment_spec.rb
346
+ - spec/boletosimples/resources/bank_billet_remittance_spec.rb
332
347
  - spec/boletosimples/resources/bank_billet_spec.rb
333
348
  - spec/boletosimples/resources/customer_import_spec.rb
334
349
  - spec/boletosimples/resources/customer_spec.rb
335
350
  - spec/boletosimples/resources/customer_subscription_import_spec.rb
336
351
  - spec/boletosimples/resources/customer_subscription_spec.rb
337
352
  - spec/boletosimples/resources/discharge_spec.rb
353
+ - spec/boletosimples/resources/email_delivery_spec.rb
338
354
  - spec/boletosimples/resources/event_spec.rb
339
355
  - spec/boletosimples/resources/installment_spec.rb
340
356
  - spec/boletosimples/resources/partner/user_spec.rb
@@ -362,6 +378,9 @@ test_files:
362
378
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml
363
379
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml
364
380
  - spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml
381
+ - spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml
382
+ - spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml
383
+ - spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml
365
384
  - spec/fixtures/vcr_cassettes/resources/customer/all.yml
366
385
  - spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml
367
386
  - spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml
@@ -384,6 +403,7 @@ test_files:
384
403
  - spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml
385
404
  - spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml
386
405
  - spec/fixtures/vcr_cassettes/resources/discharge/all.yml
406
+ - spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml
387
407
  - spec/fixtures/vcr_cassettes/resources/event/all.yml
388
408
  - spec/fixtures/vcr_cassettes/resources/installment/all.yml
389
409
  - spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml