popbill 1.17.0 → 1.17.1
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 +4 -4
- data/lib/popbill/statement.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: 5941dd234478b21c065c39ac015d81e79f126f5e
|
|
4
|
+
data.tar.gz: b1f1a0d3db4841240bce29ddc9988be2f7970e31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69f6950f5ade976ee99b51c7f5e19dffa3b7554f9e3954ddef650106d9d31781693f253a9998eb40c6749bfa85fabab3207d8d265cfe658a53f69882089dca5e
|
|
7
|
+
data.tar.gz: 3574f57ebf829b54da40da845c7d247760ea620f546e2b330fabe5049d930c81034b019638d42f365c2138dd4b209ea2f5fc49209bf7871c26479f47c70be74c
|
data/lib/popbill/statement.rb
CHANGED
|
@@ -361,6 +361,17 @@ class StatementService < BaseService
|
|
|
361
361
|
httpget("/Statement/#{itemCode}/#{mgtKey}?TG=PRINT", corpNum, userID)['url']
|
|
362
362
|
end
|
|
363
363
|
|
|
364
|
+
def getViewURL(corpNum, itemCode, mgtKey, userID = '')
|
|
365
|
+
if corpNum.length != 10
|
|
366
|
+
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
|
|
367
|
+
end
|
|
368
|
+
if mgtKey.to_s == ''
|
|
369
|
+
raise PopbillException.new('-99999999', '문서번호가 올바르지 않습니다.')
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
httpget("/Statement/#{itemCode}/#{mgtKey}?TG=VIEW", corpNum, userID)['url']
|
|
373
|
+
end
|
|
374
|
+
|
|
364
375
|
def getPDFURL(corpNum, itemCode, mgtKey, userID = '')
|
|
365
376
|
if corpNum.length != 10
|
|
366
377
|
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
|