popbill 1.51.1 → 1.52.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/bizinfocheck.rb +42 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 937682b8cca403e21c8bb789c30245e5352d3ce1
|
4
|
+
data.tar.gz: 82f0df28bef54960895b6db05183aaa63a40307e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69d1b58c11b52be08740178c601ce605f7af2ee6287147d188f6fcb48b40bbc667d6a0e117ef53af5c3fd0c2ed1a15ee9d76b6e694925e51a7c39df40102cb79
|
7
|
+
data.tar.gz: d0c3baa65cb7ac739c50e6a1baa0ea519ccb55ea75903570dd86b529c3a4b02eb5637a11459e85ca6ce0bbfda342f5c41a324605f0bf010225ca96cf4e7756c0
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require_relative '../popbill.rb'
|
3
|
+
|
4
|
+
# 팝빌 기업정보조회 API Service Implementation
|
5
|
+
class BizInfoCheckService < BaseService
|
6
|
+
class << self
|
7
|
+
def instance(linkID, secretKey)
|
8
|
+
super(linkID, secretKey)
|
9
|
+
@instance ||= new
|
10
|
+
@instance.addScope("171")
|
11
|
+
return @instance
|
12
|
+
end
|
13
|
+
private :new
|
14
|
+
end
|
15
|
+
|
16
|
+
def getChargeInfo(corpNum, userID = '')
|
17
|
+
if corpNum.length != 10
|
18
|
+
raise PopbillException.new(-99999999, "사업자등록번호가 올바르지 않습니다.")
|
19
|
+
end
|
20
|
+
httpget("/BizInfo/ChargeInfo", corpNum, userID)
|
21
|
+
end
|
22
|
+
|
23
|
+
def getUnitCost(corpNum, userID = '')
|
24
|
+
if corpNum.length != 10
|
25
|
+
raise PopbillException.new(-99999999, "사업자등록번호가 올바르지 않습니다.")
|
26
|
+
end
|
27
|
+
httpget("/BizInfo/UnitCost", corpNum, userID)['unitCost']
|
28
|
+
end
|
29
|
+
|
30
|
+
def checkBizInfo(corpNum, checkCorpNum, userID = '')
|
31
|
+
if corpNum.length != 10
|
32
|
+
raise PopbillException.new(-99999999, "사업자등록번호가 올바르지 않습니다.")
|
33
|
+
end
|
34
|
+
|
35
|
+
if checkCorpNum.to_s == ''
|
36
|
+
raise PopbillException.new(-99999999, "조회할 사업자등록번호가 입력되지 않았습니다.")
|
37
|
+
end
|
38
|
+
|
39
|
+
httpget("/BizInfo/Check?CN=#{checkCorpNum}", corpNum, userID)
|
40
|
+
end
|
41
|
+
|
42
|
+
end # end of BizInfoCheckService
|
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.52.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:
|
11
|
+
date: 2023-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: linkhub
|
@@ -32,6 +32,7 @@ extra_rdoc_files: []
|
|
32
32
|
files:
|
33
33
|
- lib/popbill.rb
|
34
34
|
- lib/popbill/accountCheck.rb
|
35
|
+
- lib/popbill/bizinfocheck.rb
|
35
36
|
- lib/popbill/cashbill.rb
|
36
37
|
- lib/popbill/closedown.rb
|
37
38
|
- lib/popbill/easyFinBank.rb
|