ruby_ufebs 0.1.22 → 0.1.23

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: cd860cccdd98400af61727b1eb9dc12450792730
4
- data.tar.gz: 4aeb2daf49b740fac42249ffe9fa960c57299e05
3
+ metadata.gz: 43b1bcf3e3e2d4fd844cd8a552773663e3977913
4
+ data.tar.gz: d48781eeee54041865258e88e3fbe828c4c9a059
5
5
  SHA512:
6
- metadata.gz: 9da1b36867f68dad41b9e36cf9d4832641669ce4ebe003aabd5cfce4d0613c9111a67ca3e02ce1acd5f8e1d3d17a6027fa0dec3438c05e04f55f75465917751c
7
- data.tar.gz: 467f285bdc98ec8b69b39c59c4eee8176db65ab2d4f504882ddb7a44061d7f641521e0caf7c70161fbc748dd660b51df2f771ac519f76730a141966c97f7b931
6
+ metadata.gz: 2ae49eeb7b7eb979971ae3e93cd0f6a88725d7045a5d98a15d2ca03f106be43b68d81ab458ac84c92422e86c2c33ef8b1a30b8d541c4391201ad1f5ae5b0dd61
7
+ data.tar.gz: 390df91c0847e35c3e684bb28d5d99fabccd1a37e3cc3a22e1fbd29e58521426f7629a6f6604a270d2b56af40b22784846db2e13b0afff651179221def918dd6
@@ -30,9 +30,9 @@ module Ufebs
30
30
  has_one :acc_doc, ::Ufebs::Entities::AccDoc, tag: 'AccDoc'
31
31
  has_one :payer, ::Ufebs::Entities::Participant, tag: 'Payer'
32
32
  has_one :payee, ::Ufebs::Entities::Participant, tag: 'Payee'
33
- has_one :processing_details, ::Ufebs::Entities::ProcessingDetails, tag: 'ProcessingDetails'
34
33
  element :purpose, String, tag: 'Purpose'
35
34
 
35
+ has_one :processing_details, ::Ufebs::Entities::ProcessingDetails, tag: 'ProcessingDetails', state_when_nil: false
36
36
  has_one :departmental_info, Ufebs::Entities::DepartmentalInfo, tag: 'DepartmentalInfo', state_when_nil: false
37
37
 
38
38
  def validate
@@ -9,7 +9,7 @@ module Ufebs
9
9
  attribute :debit_date, String, tag: 'DebitDate'
10
10
  attribute :credit_date, String, tag: 'CreditDate'
11
11
 
12
- def initialize(debit_date:, credit_date:)
12
+ def initialize(debit_date: Time.now, credit_date: Time.now)
13
13
  @debit_date = Date.parse(debit_date.to_s).strftime('%Y-%m-%d')
14
14
  @credit_date = Date.parse(credit_date.to_s).strftime('%Y-%m-%d')
15
15
  end
data/lib/ufebs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RubyUfebs
2
- VERSION = "0.1.22"
2
+ VERSION = "0.1.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_ufebs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Burdaev