popbill 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/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: a5d0ba66ca372ac2f346bbecfe4243c8cb2745ba
|
4
|
+
data.tar.gz: 1bef5aeaadaef2d86a9462e9927941d8e67fe329
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bd377d3925a3dd40c1dabb941efb51d79188f05c347c15dba1eb5c94dbb8161a040760ce63a4c0b85cff4fd6e9dca10bf4d97d16e140a6d2e28ec5694ff9ec8
|
7
|
+
data.tar.gz: f10ead55717aaa66f7578cc70f185f00c625dd9a7fc102c3e628574512900302f244f1dc0592edc107ea20a13e6de4e70b4f3bb4b7352d2b528f9986cae7cbae
|
data/lib/cashbill.rb
CHANGED
@@ -307,6 +307,17 @@ class CashbillService < BaseService
|
|
307
307
|
httpget("/Cashbill/#{mgtKey}?TG=PRINT", corpNum, userID)['url']
|
308
308
|
end
|
309
309
|
|
310
|
+
def getMailURL(corpNum, mgtKey, userID = '')
|
311
|
+
if corpNum.length != 10
|
312
|
+
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
|
313
|
+
end
|
314
|
+
if mgtKey.to_s == ''
|
315
|
+
raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
|
316
|
+
end
|
317
|
+
|
318
|
+
httpget("/Cashbill/#{mgtKey}?TG=MAIL", corpNum, userID)['url']
|
319
|
+
end
|
320
|
+
|
310
321
|
|
311
322
|
def getEPrintURL(corpNum, mgtKey, userID = '')
|
312
323
|
if corpNum.length != 10
|