mundipagg 1.3.0 → 1.3.1

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: 7ec0842838bfd1ecefafea9fb980b7e200d0938c
4
- data.tar.gz: dd723659ae333c357294cc7fb79b4fca8ea8c838
3
+ metadata.gz: eff638b17781813199b2dfe7d25beba303baac0a
4
+ data.tar.gz: 04cc197003b40df4efa9927becff6aa52fe9cf68
5
5
  SHA512:
6
- metadata.gz: d79ae0c1b7e3412953f9dbb2bb8783bc8bb5b448a5c567991f2c86ff111ece5b1816b1d929591975cbac453fe9536cc687e3c33140e31a2c42bd2d32b1aac564
7
- data.tar.gz: 916f49119095083a89084588ffade571dba742c12d075fd0b1b24179dddccd93cee95cb8f702cb29ee47f67a8c4d9f94a269315347ac352f107042d8555b3d97
6
+ metadata.gz: 84622e17da97110b348ffb17353369d421b5ef1a135d6a1e37039e39f1cb8773834cbcde3cf1d7db90430d7abb0c6f5feb77a55990da39b8e7372796eb59e096
7
+ data.tar.gz: 13402994cbb62c3fec40c8cef0639420f68026dc526f83492a5872eda870cdda7570e0f69b6b769f358e5e3860518efb6cef3d08b0cd16abc706c0319fcbb2ef
@@ -134,7 +134,13 @@ module Mundipagg
134
134
  xml_hash = hash['tns:createOrderRequest'];
135
135
 
136
136
  xml_hash['mun:AmountInCents'] = request.amountInCents
137
- xml_hash['mun:AmountInCentsToConsiderPaid'] = request.amountInCentsToConsiderPaid
137
+
138
+ if request.amountInCentsToConsiderPaid == nil
139
+ xml_hash['mun:AmountInCentsToConsiderPaid'] = request.amountInCents
140
+ else
141
+ xml_hash['mun:AmountInCentsToConsiderPaid'] = request.amountInCentsToConsiderPaid
142
+ end
143
+
138
144
  xml_hash['mun:CurrencyIsoEnum'] = request.currencyIsoEnum
139
145
  xml_hash['mun:MerchantKey'] = request.merchantKey
140
146
  xml_hash['mun:OrderReference'] = request.orderReference
@@ -2,7 +2,7 @@ module Mundipagg
2
2
  module Version
3
3
  Major = 1
4
4
  Minor = 3
5
- Revision = 0
5
+ Revision = 1
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Revision}"
8
8
  end
@@ -3,7 +3,7 @@
3
3
  Before do
4
4
 
5
5
  @client = Mundipagg::Gateway.new :test
6
- @client.log_level = :none
6
+ @client.log_level = :debug
7
7
  @order = Mundipagg::CreateOrderRequest.new
8
8
  @order.merchantKey = TestConfiguration::Merchant::MerchantKey
9
9
  @transaction = Mundipagg::CreditCardTransaction.new
@@ -1,5 +1,5 @@
1
1
  module TestConfiguration
2
2
  module Merchant
3
- MerchantKey = ''
3
+ MerchantKey = '8A2DD57F-1ED9-4153-B4CE-69683EFADAD5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mundipagg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MundiPagg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
11
+ date: 2014-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon