einvoice 1.2.6 → 1.2.7

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
  SHA256:
3
- metadata.gz: 5e67b4a1d7f59b394250f8295a9f8d6ce6cdc317889fc0da6187593e5bfbd2ce
4
- data.tar.gz: c629f5f2ff8090e2eaf8adb9b17510846c7cd14bf11c4d5281e49cdb15ec69f0
3
+ metadata.gz: '044800c0629c0c4587841123d89fcbf139f688c6db24d44870ffad0a36275fe7'
4
+ data.tar.gz: f444bfabf46b8aebd7bc18e5999635a554943335b148517339f04278605d6266
5
5
  SHA512:
6
- metadata.gz: eba328d0b736a2bf1f563d7c5f67f2cb91eee0638fdbfb086b5a0f566037d0882b4e52914fef5570e148dc288a023eeb3bf9bf1331e40a64cc103427e7e8ad35
7
- data.tar.gz: 3f8936270bb7164651fae848cdc4cafafaac67a4d63a39aed89432bb2201010d3b3f24f028b0fb533552d0592515f91f1fa15802125a2a7479f9f7550353cca4
6
+ metadata.gz: e8e58eb633d9c7a28c14a9971789e439f9a7d91c90cc0b79fe558463796973d6c40056443d7529ec6d6be2b035723ee58ffebcfa2c573e6c8eac7c297fc330e3
7
+ data.tar.gz: dede4bad82df0a096b56fe5d2a7ecb48223f2da13571519efffb1b9c5ba4081bff96b098700cd9ab360505855a3d38a56e72a12375ac2caadc434c2bbb5bd186
@@ -9,6 +9,7 @@ module Einvoice
9
9
  :invoicePaperReturned,
10
10
  :allowanceNumber,
11
11
  :allowancePaperReturned,
12
+ :companyUn
12
13
  ].freeze
13
14
 
14
15
  attr_accessor *VALID_OPTIONS_KEYS
@@ -21,7 +22,8 @@ module Einvoice
21
22
  validates :invoicePaperReturned, presence: true, length: { maximum: 1 }, inclusion: { in: %w(Y N) }, if: proc { %w(C I).include?(self.type) }
22
23
 
23
24
  # Type A
24
- validates :allowanceNumber, presence: true, length: { is: 16 }, allowanceNumber: true, if: proc { self.type == 'A' }
25
+ validates :companyUn, presence: true, length: { is: 8 }, if: proc { self.type == 'A' }
26
+ validates :allowanceNumber, presence: true, length: { is: 16 }, if: proc { self.type == 'A' }
25
27
  validates :allowancePaperReturned, presence: true, length: { is: 1 }, inclusion: { in: %w(Y N) }, if: proc { self.type == 'A' }
26
28
 
27
29
  def payload
@@ -1,3 +1,3 @@
1
1
  module Einvoice
2
- VERSION = "1.2.6"
2
+ VERSION = "1.2.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: einvoice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Yun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-13 00:00:00.000000000 Z
11
+ date: 2018-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday