sepa 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sepa/base.rb +1 -1
- data/lib/sepa/direct_debit_order.rb +2 -2
- data/lib/sepa/version.rb +1 -1
- data/spec/sepa/expected-simple.xml +1 -1
- data/spec/sepa/expected_customer_direct_debit_initiation_v02.xml +1 -1
- data/spec/sepa/expected_customer_direct_debit_initiation_v04.xml +1 -1
- data/spec/sepa/expected_customer_direct_debit_initiation_v04_with_org_id.xml +1 -1
- data/spec/sepa/payments_initiation/pain00800104/customer_direct_debit_initiation_spec.rb +1 -1
- metadata +2 -2
data/lib/sepa/base.rb
CHANGED
@@ -45,7 +45,7 @@ module Sepa
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
elsif meta[:type] == Time
|
48
|
-
v = item.is_a?(String) ? item : item.strftime("%Y-%m-%dT%H:%M:%
|
48
|
+
v = item.is_a?(String) ? item : item.strftime("%Y-%m-%dT%H:%M:%SZ")
|
49
49
|
builder.__send__(meta[:tag], v, attributes)
|
50
50
|
elsif meta[:type] == Date
|
51
51
|
v = item.is_a?(String) ? item : item.strftime("%Y-%m-%d")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'iso3166'
|
4
4
|
require 'sepa/payments_initiation/pain00800104/customer_direct_debit_initiation'
|
5
5
|
|
6
6
|
class Sepa::DirectDebitOrder
|
@@ -32,7 +32,7 @@ class Sepa::DirectDebitOrder
|
|
32
32
|
return "" if blank?(name)
|
33
33
|
name = name.upcase
|
34
34
|
return name if name.match(/^[A-Z]{2}$/)
|
35
|
-
country = ::Country.find_country_by_name(name)
|
35
|
+
country = ISO3166::Country.find_country_by_name(name)
|
36
36
|
country ? country.alpha2 : ""
|
37
37
|
end
|
38
38
|
end
|
data/lib/sepa/version.rb
CHANGED
@@ -6,7 +6,7 @@ describe Sepa::PaymentsInitiation::Pain00800104::CustomerDirectDebitInitiation d
|
|
6
6
|
|
7
7
|
let(:props) {
|
8
8
|
{ "group_header.message_identification" => "MSG0001",
|
9
|
-
"group_header.creation_date_time" => "1992-02-28T18:30:
|
9
|
+
"group_header.creation_date_time" => "1992-02-28T18:30:00Z",
|
10
10
|
"group_header.number_of_transactions" => "2",
|
11
11
|
"group_header.control_sum" => "2963.63",
|
12
12
|
"group_header.initiating_party.name" => "SOFTIFY SARL",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sepa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|