better-mundipagg 0.2.7 → 0.2.8

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: 1f39f4525a93721aca8dc1e8b695d6a8a15e3172
4
- data.tar.gz: 199f6e1675ce70763227fe9293bad6ece64a2137
3
+ metadata.gz: c89120de999e1ad6bbcb2ff23e5be0b055e9a181
4
+ data.tar.gz: 163434becaa36f1f8c40fed6c10dfcde58606bf6
5
5
  SHA512:
6
- metadata.gz: 54eadaf414d1d150826f7ca8f435dff13a4d717415d3b5dd68d8f8f164e06430a5ca2618e6e4782d7f17da950de04cf2d6b1cadb0b2ccd2da5c31a15b160f6f9
7
- data.tar.gz: 100ee12fccaa9bf40a97fee7cd2813172aad351d9951245da92958983d58cb68462647d431fdca83154d721e79ea2b3da767f7c41a27c2f034aae91663fb19a0
6
+ metadata.gz: dc015d0c39204d4fbe7be6de270a8156480387185bf8e2a8e51cf87b0b37e371315acdf52e5b3d6dc41717725d83ef75d12f45329dc2919670c222bf90c77ed0
7
+ data.tar.gz: 9e4e848afc59a079888adf66880799298169f5436bdf78379a5be78c9bcca789597067f954d9e065a4f774510ddcaa1e89a5ef09d62c570282e8e8160b6a341f
@@ -1,6 +1,6 @@
1
1
  module Mundipagg
2
2
  class Boleto < ActiveMerchant::Billing::Model
3
- attr_accessor :bank_number, :days_to_expire, :bank_code
3
+ attr_accessor :bank_number, :days_to_expire, :bank_code, :instructions
4
4
 
5
5
  def payload(amount)
6
6
  content = {
@@ -8,6 +8,7 @@ module Mundipagg
8
8
  bank_number: bank_number,
9
9
  days_to_add_in_boleto_expiration_date: days_to_expire || 5,
10
10
  nosso_numero: bank_code,
11
+ instructions: instructions
11
12
  }
12
13
 
13
14
  {
@@ -1,3 +1,3 @@
1
1
  module Mundipagg
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
@@ -4,7 +4,7 @@ RSpec.describe Mundipagg::Boleto do
4
4
  describe "#payload" do
5
5
  let(:boleto) do
6
6
  described_class.new bank_number: 347,
7
- bank_code: 123456
7
+ bank_code: 123456, instructions: "Pedido #123456"
8
8
  end
9
9
 
10
10
  it do
@@ -16,7 +16,8 @@ RSpec.describe Mundipagg::Boleto do
16
16
  amount_in_cents: 100,
17
17
  bank_number: 347,
18
18
  days_to_add_in_boleto_expiration_date: 5,
19
- nosso_numero: 123456
19
+ nosso_numero: 123456,
20
+ instructions: "Pedido #123456"
20
21
  }
21
22
  }
22
23
  })
@@ -9,7 +9,8 @@ RSpec.describe Mundipagg::Gateway do
9
9
  end
10
10
 
11
11
  describe "#purchase" do
12
- let(:boleto) { Mundipagg::Boleto.new bank_number: 123, bank_code: 987 }
12
+ let(:boleto) { Mundipagg::Boleto.new bank_number: 123, bank_code: 987,
13
+ instructions: "Pedido #123" }
13
14
  let(:body) {
14
15
  {
15
16
  create_order_response: {
@@ -32,7 +33,8 @@ RSpec.describe Mundipagg::Gateway do
32
33
  amount_in_cents: 100,
33
34
  bank_number: 123,
34
35
  days_to_add_in_boleto_expiration_date: 5,
35
- nosso_numero: 987
36
+ nosso_numero: 987,
37
+ instructions: "Pedido #123"
36
38
  }
37
39
  }
38
40
  }).and_return(gateway_response)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better-mundipagg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Azisaka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-07 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec