popbill 1.7.3 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55bdfad4938da3901d7b21029f1becb0189d1820
4
- data.tar.gz: d16384acd708388f22d133659a9d8ea4848cde8d
3
+ metadata.gz: 0cb986d405c7e6f21d092c0fc6bb02e8aa7c14cc
4
+ data.tar.gz: 6e69b53485a157d796639e215ede6dc7d5ccfb86
5
5
  SHA512:
6
- metadata.gz: c1267d3d72e52d30a04c2ead80030eb159a8f8ef6ae5a2745ae885282e95bd1d8785d13ed2640d3b5b5c02244913e9662de049fb65dbe31882ad0baf882ecbee
7
- data.tar.gz: 5d1c2b5963c145cc2a99454fad633b4023cca11097d203d9d2550b1410f1c55fd92808f06cf958ee5d1bc199b321ab5be07c24e138b0402115e01892070a50b4
6
+ metadata.gz: 64830adb5f590bf54a40b250e626adc1ee955788cc9f8d16a240b4b78a94a5f881e0bff214e3821bdd71d3fddc550c8db838e539ca81f492298a63f78d644d8a
7
+ data.tar.gz: 83a5bbe485b2e54001a5b1322fcca36b0bbf61fee2ca7cfd346d437296284dfbf208bab2bfe98fd601bc1a7047921a9c82fae5c4ac9ac72f299b9be29a0d017c
@@ -169,7 +169,7 @@ class CashbillService < BaseService
169
169
  end
170
170
 
171
171
  def search(corpNum, dType, sDate, eDate, state, tradeType, tradeUsage,
172
- taxationType, page, perPage, order, queryString = '', userID = '')
172
+ taxationType, page, perPage, order, queryString = '', userID = '', tradeOpt = '')
173
173
  if corpNum.length != 10
174
174
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
175
175
  end
@@ -186,10 +186,10 @@ class CashbillService < BaseService
186
186
  end
187
187
 
188
188
  uri = "/Cashbill/Search?DType=#{dType}&SDate=#{sDate}&EDate=#{eDate}"
189
- uri += "&State" + state.join(',')
190
- uri += "&TradeUsage" + tradeUsage.join(',')
191
- uri += "&TradeType" + tradeType.join(',')
192
- uri += "&TaxationType" + taxationType.join(',')
189
+ uri += "&State=" + state.join(',')
190
+ uri += "&TradeUsage=" + tradeUsage.join(',')
191
+ uri += "&TradeType=" + tradeType.join(',')
192
+ uri += "&TaxationType=" + taxationType.join(',')
193
193
  uri += "&Page=" + page.to_s
194
194
  uri += "&PerPage=" + perPage.to_s
195
195
  uri += "&Order=" + order
@@ -198,6 +198,10 @@ class CashbillService < BaseService
198
198
  uri += "&QString=" + queryString
199
199
  end
200
200
 
201
+ if tradeOpt.to_s != ''
202
+ uri += "&TradeOpt=" + tradeOpt.join(',')
203
+ end
204
+
201
205
  httpget(URI.escape(uri), corpNum, userID)
202
206
  end
203
207
 
@@ -120,4 +120,60 @@ class HTCashbillService < BaseService
120
120
  httpget("/HomeTax/Cashbill/CertInfo", corpNum, userID)['certificateExpiration']
121
121
  end
122
122
 
123
+ def checkCertValidation(corpNum, userID = "")
124
+ if corpNum.length != 10
125
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
126
+ end
127
+
128
+ httpget("/HomeTax/Cashbill/CertCheck", corpNum, userID)
129
+
130
+ end
131
+
132
+ def registDeptUser(corpNum, deptUserID, deptUserPWD, userID = "")
133
+ if corpNum.length != 10
134
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
135
+ end
136
+
137
+ if deptUserID.length == 0
138
+ raise PopbillException.new('-99999999', '홈택스 부서사용자 계정 아이디가 입력되지 않았습니다.')
139
+ end
140
+
141
+ if deptUserPWD.length == 0
142
+ raise PopbillException.new('-99999999', '홈택스 부서사용자 계정 비밀번호가 입력되지 않았습니다.')
143
+ end
144
+
145
+ postData = {}
146
+ postData["id"] = deptUserID
147
+ postData["pwd"] = deptUserPWD
148
+
149
+ postData = postData.to_json
150
+
151
+ httppost("/HomeTax/Cashbill/DeptUser", corpNum, postData, "", userID)
152
+ end
153
+
154
+ def checkDeptUser(corpNum, userID = "")
155
+ if corpNum.length != 10
156
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
157
+ end
158
+
159
+ httpget("/HomeTax/Cashbill/DeptUser", corpNum, userID)
160
+ end
161
+
162
+ def checkLoginDeptUser(corpNum, userID = "")
163
+ if corpNum.length != 10
164
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
165
+ end
166
+
167
+ httpget("/HomeTax/Cashbill/DeptUser/Check", corpNum, userID)
168
+ end
169
+
170
+ def deleteDeptUser(corpNum, userID = "")
171
+ if corpNum.length != 10
172
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
173
+ end
174
+
175
+ httppost("/HomeTax/Cashbill/DeptUser", corpNum, "", "DELETE", userID)
176
+ end
177
+
178
+
123
179
  end # end of HTCashbillService
@@ -161,6 +161,74 @@ class HTTaxinvoiceService < BaseService
161
161
  httpget("/HomeTax/Taxinvoice/CertInfo", corpNum, userID)['certificateExpiration']
162
162
  end
163
163
 
164
+ def getPopUpURL(corpNum, ntsConfirmNum, userID ="")
165
+ if corpNum.length != 10
166
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
167
+ end
168
+
169
+ if ntsConfirmNum.length != 24
170
+ raise PopbillException.new('-99999999', '전자세금계산서 국세청승인번호가 올바르지 않습니다.')
171
+ end
172
+
173
+ httpget("/HomeTax/Taxinvoice/#{ntsConfirmNum}/PopUp", corpNum, userID)['url']
174
+ end
175
+
176
+
177
+ def checkCertValidation(corpNum, userID = "")
178
+ if corpNum.length != 10
179
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
180
+ end
181
+
182
+ httpget("/HomeTax/Taxinvoice/CertCheck", corpNum, userID)
183
+
184
+ end
185
+
186
+ def registDeptUser(corpNum, deptUserID, deptUserPWD, userID = "")
187
+ if corpNum.length != 10
188
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
189
+ end
190
+
191
+ if deptUserID.length == 0
192
+ raise PopbillException.new('-99999999', '홈택스 부서사용자 계정 아이디가 입력되지 않았습니다.')
193
+ end
194
+
195
+ if deptUserPWD.length == 0
196
+ raise PopbillException.new('-99999999', '홈택스 부서사용자 계정 비밀번호가 입력되지 않았습니다.')
197
+ end
198
+
199
+ postData = {}
200
+ postData["id"] = deptUserID
201
+ postData["pwd"] = deptUserPWD
202
+
203
+ postData = postData.to_json
204
+
205
+ httppost("/HomeTax/Taxinvoice/DeptUser", corpNum, postData, "", userID)
206
+ end
207
+
208
+ def checkDeptUser(corpNum, userID = "")
209
+ if corpNum.length != 10
210
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
211
+ end
212
+
213
+ httpget("/HomeTax/Taxinvoice/DeptUser", corpNum, userID)
214
+ end
215
+
216
+ def checkLoginDeptUser(corpNum, userID = "")
217
+ if corpNum.length != 10
218
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
219
+ end
220
+
221
+ httpget("/HomeTax/Taxinvoice/DeptUser/Check", corpNum, userID)
222
+ end
223
+
224
+ def deleteDeptUser(corpNum, userID = "")
225
+ if corpNum.length != 10
226
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
227
+ end
228
+
229
+ httppost("/HomeTax/Taxinvoice/DeptUser", corpNum, "", "DELETE", userID)
230
+ end
231
+
164
232
  end # end of HTTaxinvoiceService
165
233
 
166
234
  module KeyType
@@ -682,6 +682,14 @@ class TaxinvoiceService < BaseService
682
682
  httppost("/Taxinvoice/EmailSendConfig?EmailType=#{emailType}&SendYN=#{sendYN}", corpNum, userID)
683
683
  end
684
684
 
685
+ def checkCertValidation(corpNum, userID = '')
686
+ if corpNum.length != 10
687
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
688
+ end
689
+
690
+ httpget("/Taxinvoice/CertCheck", corpNum, userID)
691
+ end
692
+
685
693
  end # end of TaxinvoiceService
686
694
 
687
695
  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.7.3
4
+ version: 1.8.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-26 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: linkhub