popbill 1.17.1 → 1.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/popbill/cashbill.rb +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d46cf7daf370e6ee58bf94b73f89122717483630
|
4
|
+
data.tar.gz: 4228a2294343931578ef19fd7f11e7fd4b88d51c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb9274d1bc1cf593b1fb7ccb36b2cf074b177e62ecd9104301daa083192ed3ea822b6be05c3f12fdb175821bc60344add4fc9c9db14516d27dd5405fc61e6295
|
7
|
+
data.tar.gz: 2b6ce4562a162af8440d1f2728ee6716069bbef6c67e6855f5f98073d4678f844b45e442e239262b5942ef581c6dc1c320daf9fde5b92d8ce8250a6cf8b80806
|
data/lib/popbill/cashbill.rb
CHANGED
@@ -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', '사업자등록번호가 올바르지 않습니다.')
|