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 +4 -4
- data/lib/pagseguro/payment/serializer.rb +1 -1
- data/lib/pagseguro/version.rb +1 -1
- data/spec/pagseguro/payment/serializer_spec.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bded741d632c18a8084ba26f6c68d1558a45c63
|
4
|
+
data.tar.gz: 8728cf5493e7558ca19f0fb73e87233f9f04029a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/pagseguro/version.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|