pagseguro-transparente 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e047eff0614910990e6b5a617a6642013fc4d532
4
- data.tar.gz: 58d06eae167cbdc8dc6b98b4361dd0a2025ab905
3
+ metadata.gz: 5bded741d632c18a8084ba26f6c68d1558a45c63
4
+ data.tar.gz: 8728cf5493e7558ca19f0fb73e87233f9f04029a
5
5
  SHA512:
6
- metadata.gz: d0c88537b0ca25fe5f29ed26180c9affbc0c9125255a2b965102e66b01d1e9c2ef3bba0792a956f0036ebe09fbb0a9782742aab33eaea9927db5d4a3a172080a
7
- data.tar.gz: b286ba420bea57acb1e77ef9047f42165116e35af80f58418bfa06235f81c3b1fd7aaf6b341401e5566f0070310b0b6abc99c7926ec3558ec6c9616b8e43202d
6
+ metadata.gz: e38f168f5797e5d2a94465154fddcaedd634581cb5c4e113d4c5a16213adcdfca35281365334d9b84e247ddb842abf665e843f065936279be9d0270786d4a48b
7
+ data.tar.gz: 32b20d9c212f78bd666f627d01fe8858f4ed7129d47c30f8f13ac4a0bc4a3c1373e6e95fe699466203fd69824cd9443ee2328e6403148854040c795475b8adb1
@@ -114,7 +114,7 @@ module PagSeguro
114
114
 
115
115
  params[:creditCardHolderName] = holder.name
116
116
  params[:creditCardHolderCPF] = holder.document.value
117
- params[:creditCardHolderBirthDate] = holder.birthdate.strftime("%d/%m/%Y")
117
+ params[:creditCardHolderBirthDate] = holder.birthdate.strftime("%d/%m/%Y") if holder.birthdate
118
118
  params[:creditCardHolderAreaCode] = holder.phone.area_code
119
119
  params[:creditCardHolderPhone] = holder.phone.number
120
120
  end
@@ -1,3 +1,3 @@
1
1
  module PagSeguro
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -135,4 +135,15 @@ describe PagSeguro::Payment::Serializer do
135
135
  it { subject[:paymentMethodGroup1].should eq('CREDIT_CARD') }
136
136
  it { subject[:paymentMethodConfigKey1_1].should eq('MAX_INSTALLMENTS_NO_INTEREST') }
137
137
  it { subject[:paymentMethodConfigValue1_1].should eq(6) }
138
+
139
+ context 'with bithdate null' do
140
+ let(:holder) do
141
+ holder = PagSeguro::Holder.new('Jose Comprador', nil )
142
+ holder.document = document
143
+ holder.phone = phone
144
+ holder
145
+ end
146
+
147
+ it { subject[:creditCardHolderBirthDate].should eq(nil) }
148
+ end
138
149
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagseguro-transparente
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cirdes Henrique
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-15 00:00:00.000000000 Z
12
+ date: 2014-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel