popbill 1.51.0 → 1.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/popbill/bizinfocheck.rb +42 -0
- data/lib/popbill.rb +1 -1
- metadata +4 -3
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
|
data/lib/popbill.rb
CHANGED
@@ -282,7 +282,7 @@ class BaseService
|
|
282
282
|
post_body << "\r\n--#{BaseService::BOUNDARY}\r\n"
|
283
283
|
post_body << "Content-Disposition: form-data; name=\"file\"; filename=\"#{fileName}\"\r\n"
|
284
284
|
post_body << "Content-Type: Application/octet-stream\r\n\r\n"
|
285
|
-
post_body << fileData["fileData"]
|
285
|
+
post_body << fileData["fileData"].force_encoding("UTF-8")
|
286
286
|
end
|
287
287
|
else
|
288
288
|
files.each do |filePath|
|
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
|
@@ -25,13 +25,14 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.5.0
|
27
27
|
description: Popbill API SDK
|
28
|
-
email: code@
|
28
|
+
email: code@linkhubcorp.com
|
29
29
|
executables: []
|
30
30
|
extensions: []
|
31
31
|
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
|