popbill 1.17.1 → 1.17.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/popbill/cashbill.rb +11 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5941dd234478b21c065c39ac015d81e79f126f5e
4
- data.tar.gz: b1f1a0d3db4841240bce29ddc9988be2f7970e31
3
+ metadata.gz: d46cf7daf370e6ee58bf94b73f89122717483630
4
+ data.tar.gz: 4228a2294343931578ef19fd7f11e7fd4b88d51c
5
5
  SHA512:
6
- metadata.gz: 69f6950f5ade976ee99b51c7f5e19dffa3b7554f9e3954ddef650106d9d31781693f253a9998eb40c6749bfa85fabab3207d8d265cfe658a53f69882089dca5e
7
- data.tar.gz: 3574f57ebf829b54da40da845c7d247760ea620f546e2b330fabe5049d930c81034b019638d42f365c2138dd4b209ea2f5fc49209bf7871c26479f47c70be74c
6
+ metadata.gz: cb9274d1bc1cf593b1fb7ccb36b2cf074b177e62ecd9104301daa083192ed3ea822b6be05c3f12fdb175821bc60344add4fc9c9db14516d27dd5405fc61e6295
7
+ data.tar.gz: 2b6ce4562a162af8440d1f2728ee6716069bbef6c67e6855f5f98073d4678f844b45e442e239262b5942ef581c6dc1c320daf9fde5b92d8ce8250a6cf8b80806
@@ -352,6 +352,17 @@ class CashbillService < BaseService
352
352
  httpget("/Cashbill/#{mgtKey}?TG=POPUP", corpNum, userID)['url']
353
353
  end
354
354
 
355
+ def getPDFURL(corpNum, mgtKey, userID = '')
356
+ if corpNum.length != 10
357
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
358
+ end
359
+ if mgtKey.to_s == ''
360
+ raise PopbillException.new('-99999999', '문서번호가 올바르지 않습니다.')
361
+ end
362
+
363
+ httpget("/Cashbill/#{mgtKey}?TG=PDF", corpNum, userID)['url']
364
+ end
365
+
355
366
  def getPrintURL(corpNum, mgtKey, userID = '')
356
367
  if corpNum.length != 10
357
368
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popbill
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.1
4
+ version: 1.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linkhub Dev