popbill 1.6.0 → 1.7.0
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/cashbill.rb +17 -0
- data/lib/popbill/statement.rb +16 -0
- data/lib/popbill/taxinvoice.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16ea7bba276bc773234dbd01920d325ffd2635cd
|
4
|
+
data.tar.gz: cff4ad2b976f43fbdbb4852b6e1aba694451d13d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf89e94eb349a880e859edd7e16a3c43806bb8ee5ce689ab3320e4b579074e7b635807d90ea5ea7f3c9665adcd8d5d0730cfb0a962cdf6ebd23f099080da9c56
|
7
|
+
data.tar.gz: 5ba5db8238a6a03dafbb467a48edfce56c2721779c64927cdb92c66ece841880a9d7303d52e312c1c5db5c1090156798487acfb247adbb423956d633d0b10c71
|
data/lib/popbill/cashbill.rb
CHANGED
@@ -386,4 +386,21 @@ class CashbillService < BaseService
|
|
386
386
|
httppost("/Cashbill/Prints", corpNum, postData, "", userID)['url']
|
387
387
|
end
|
388
388
|
|
389
|
+
|
390
|
+
def listEmailConfig(corpNum, userID ='')
|
391
|
+
if corpNum.length != 10
|
392
|
+
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
|
393
|
+
end
|
394
|
+
|
395
|
+
httpget("/Cashbill/EmailSendConfig", corpNum, userID)
|
396
|
+
end
|
397
|
+
|
398
|
+
def updateEmailConfig(corpNum, emailType, sendYN, userID = '')
|
399
|
+
if corpNum.length != 10
|
400
|
+
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
|
401
|
+
end
|
402
|
+
|
403
|
+
httppost("/Cashbill/EmailSendConfig?EmailType=#{emailType}&SendYN=#{sendYN}", corpNum, userID)
|
404
|
+
end
|
405
|
+
|
389
406
|
end # end of CashbillService
|
data/lib/popbill/statement.rb
CHANGED
@@ -441,4 +441,20 @@ class StatementService < BaseService
|
|
441
441
|
httppost("/Statement/#{itemCode}/#{mgtKey}/DetachStmt", corpNum, postData, "", userID)
|
442
442
|
end
|
443
443
|
|
444
|
+
def listEmailConfig(corpNum, userID ='')
|
445
|
+
if corpNum.length != 10
|
446
|
+
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
|
447
|
+
end
|
448
|
+
|
449
|
+
httpget("/Statement/EmailSendConfig", corpNum, userID)
|
450
|
+
end
|
451
|
+
|
452
|
+
def updateEmailConfig(corpNum, emailType, sendYN, userID = '')
|
453
|
+
if corpNum.length != 10
|
454
|
+
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
|
455
|
+
end
|
456
|
+
|
457
|
+
httppost("/Statement/EmailSendConfig?EmailType=#{emailType}&SendYN=#{sendYN}", corpNum, userID)
|
458
|
+
end
|
459
|
+
|
444
460
|
end # end of CashbillService
|
data/lib/popbill/taxinvoice.rb
CHANGED
@@ -658,6 +658,22 @@ class TaxinvoiceService < BaseService
|
|
658
658
|
httppost("/Taxinvoice/#{itemKey}/#{mgtKeyType}", corpNum, postDate, "", userID, "application/x-www-form-urlencoded; charset=utf-8")
|
659
659
|
end
|
660
660
|
|
661
|
+
def listEmailConfig(corpNum, userID ='')
|
662
|
+
if corpNum.length != 10
|
663
|
+
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
|
664
|
+
end
|
665
|
+
|
666
|
+
httpget("/Taxinvoice/EmailSendConfig", corpNum, userID)
|
667
|
+
end
|
668
|
+
|
669
|
+
def updateEmailConfig(corpNum, emailType, sendYN, userID = '')
|
670
|
+
if corpNum.length != 10
|
671
|
+
raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
|
672
|
+
end
|
673
|
+
|
674
|
+
httppost("/Taxinvoice/EmailSendConfig?EmailType=#{emailType}&SendYN=#{sendYN}", corpNum, userID)
|
675
|
+
end
|
676
|
+
|
661
677
|
end # end of TaxinvoiceService
|
662
678
|
|
663
679
|
module MgtKeyType
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: popbill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Linkhub Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: linkhub
|