popbill 1.10.0 → 1.11.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: fd2a182749f5fe592ae419dac68a5a396f614eaf
4
- data.tar.gz: 190ca197e6703837b37c72e956cbb766895fd31d
3
+ metadata.gz: 28e683f1d966164c6009d8c6ee5b5f759ca772f9
4
+ data.tar.gz: c8b728b8b33e9cc14de930477dc01f31a244fb63
5
5
  SHA512:
6
- metadata.gz: 6369a5b346a2847e58fce6584ccea31fa71f169f98598a94799a369abab8cc2f4f205734b923b89dadbd04b88e938a20f971a549392cdc446251ead9b22624dd
7
- data.tar.gz: 6b9fb02220317ddeb23a7864fe4f8b1fed94b0ff21497d759d20712ffd3a0f199c5c9a827f2a45d963ef3da0847fa00416ddd5902a5eb1bb21d0a465ae5d1ff9
6
+ metadata.gz: aae2222577dd6c22fe01fe99ee0cb1014d12d875a7b66115bea0b0c4dec99876edca60ab8f4d09db40338a38bfa629d61a5c8ccbb02557c8ca0143a335b29400
7
+ data.tar.gz: 8e236a48d83a45bf1b6bffc1d2142fa2a7f179b0d91b09ecb2d7dff78fb715cb8080788f04946ba3329247ec95a3e04da148b97b1d281af2fa64e4e28c6c13f6
@@ -54,13 +54,23 @@ class CashbillService < BaseService
54
54
  end
55
55
 
56
56
 
57
- def registIssue(corpNum, cashbill, memo = '', userID = '')
57
+ def registIssue(corpNum, cashbill, memo = '', userID = '', emailSubject = '')
58
58
  if corpNum.length != 10
59
59
  raise PopbillException.new(-99999999, "사업자등록번호가 올바르지 않습니다.")
60
60
  end
61
61
 
62
+ if memo.to_s != ''
63
+ cashbill["memo"] = memo
64
+ end
65
+
66
+ if emailSubject.to_s != ''
67
+ cashbill["emailSubject"] = emailSubject
68
+ end
69
+
62
70
  postData = cashbill.to_json
63
71
 
72
+ puts postData
73
+
64
74
  httppost("/Cashbill", corpNum, postData, "ISSUE", userID)
65
75
  end
66
76
 
@@ -59,7 +59,7 @@ class HTTaxinvoiceService < BaseService
59
59
  end
60
60
 
61
61
  def search(corpNum, jobID, type, taxType, purposeType, taxRegIDType, taxRegIDYN,
62
- taxRegID, page, perPage, order, userID = '')
62
+ taxRegID, page, perPage, order, userID = '', searchString = '')
63
63
  if corpNum.length != 10
64
64
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
65
65
  end
@@ -81,11 +81,15 @@ class HTTaxinvoiceService < BaseService
81
81
  uri += "&TaxRegIDYN=" + taxRegIDYN
82
82
  end
83
83
 
84
+ if searchString.to_s != ''
85
+ uri += "&SearchString=" + searchString
86
+ end
87
+
84
88
  httpget(URI.escape(uri), corpNum, userID)
85
89
  end
86
90
 
87
91
  def summary(corpNum, jobID, type, taxType, purposeType, taxRegIDType, taxRegIDYN,
88
- taxRegID, userID = '')
92
+ taxRegID, userID = '', searchString = '')
89
93
  if corpNum.length != 10
90
94
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
91
95
  end
@@ -104,6 +108,10 @@ class HTTaxinvoiceService < BaseService
104
108
  uri += "&TaxRegIDYN=" + taxRegIDYN
105
109
  end
106
110
 
111
+ if searchString.to_s != ''
112
+ uri += "&SearchString=" + searchString
113
+ end
114
+
107
115
  httpget(URI.escape(uri), corpNum, userID)
108
116
  end
109
117
 
@@ -173,6 +181,18 @@ class HTTaxinvoiceService < BaseService
173
181
  httpget("/HomeTax/Taxinvoice/#{ntsConfirmNum}/PopUp", corpNum, userID)['url']
174
182
  end
175
183
 
184
+ def getPrintURL(corpNum, ntsConfirmNum, userID ="")
185
+ if corpNum.length != 10
186
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
187
+ end
188
+
189
+ if ntsConfirmNum.length != 24
190
+ raise PopbillException.new('-99999999', '전자세금계산서 국세청승인번호가 올바르지 않습니다.')
191
+ end
192
+
193
+ httpget("/HomeTax/Taxinvoice/#{ntsConfirmNum}/Print", corpNum, userID)['url']
194
+ end
195
+
176
196
 
177
197
  def checkCertValidation(corpNum, userID = "")
178
198
  if corpNum.length != 10
@@ -82,7 +82,7 @@ class KakaoService < BaseService
82
82
  httpget("/KakaoTalk/ListATSTemplate", corpNum, userID)
83
83
  end
84
84
 
85
- def sendATS_one(corpNum, templateCode, snd, content, altContent, altSendType, sndDT, receiver, receiverName, requestNum = '', userID = '')
85
+ def sendATS_one(corpNum, templateCode, snd, content, altContent, altSendType, sndDT, receiver, receiverName, requestNum = '', userID = '', btns = '')
86
86
  msg = [
87
87
  {
88
88
  "rcv" => receiver,
@@ -91,14 +91,14 @@ class KakaoService < BaseService
91
91
  "altmsg" => altContent,
92
92
  }
93
93
  ]
94
- sendATS_same(corpNum, templateCode, snd, "", "", altSendType, sndDT, msg, requestNum, userID)
94
+ sendATS_same(corpNum, templateCode, snd, "", "", altSendType, sndDT, msg, requestNum, userID, btns)
95
95
  end
96
96
 
97
- def sendATS_multi(corpNum, templateCode, snd, altSendType, sndDT, msgs, requestNum = '', userID = '')
98
- sendATS_same(corpNum, templateCode, snd, "", "", altSendType, sndDT, msgs, requestNum, userID)
97
+ def sendATS_multi(corpNum, templateCode, snd, altSendType, sndDT, msgs, requestNum = '', userID = '', btns = '')
98
+ sendATS_same(corpNum, templateCode, snd, "", "", altSendType, sndDT, msgs, requestNum, userID, btns)
99
99
  end
100
100
 
101
- def sendATS_same(corpNum, templateCode, snd, content, altContent, altSendType, sndDT, msgs, requestNum = '', userID = '')
101
+ def sendATS_same(corpNum, templateCode, snd, content, altContent, altSendType, sndDT, msgs, requestNum = '', userID = '', btns = '')
102
102
  raise PopbillException.new(-99999999, "사업자등록번호가 올바르지 않습니다.") if corpNum.length != 10
103
103
  raise PopbillException.new(-99999999, "알림톡 템플릿코드가 입력되지 않았습니다.") if templateCode.to_s == ''
104
104
  raise PopbillException.new(-99999999, "발신번호가 입력되지 않았습니다.") if snd.to_s == ''
@@ -112,6 +112,7 @@ class KakaoService < BaseService
112
112
  req["sndDT"] = sndDT if sndDT.to_s != ''
113
113
  req["requestNum"] = requestNum if requestNum.to_s != ''
114
114
  req["msgs"] = msgs if msgs.to_s != ''
115
+ req["btns"] = btns if btns.to_s != ''
115
116
 
116
117
  postData = req.to_json
117
118
  httppost("/ATS", corpNum, postData, "", userID)
@@ -78,13 +78,19 @@ class StatementService < BaseService
78
78
  end
79
79
 
80
80
 
81
- def registIssue(corpNum, statement, memo = '', userID ='')
81
+ def registIssue(corpNum, statement, memo = '', userID ='', emailSubject = '')
82
82
  if corpNum.length != 10
83
83
  raise PopbillException.new(-99999999, "사업자등록번호가 올바르지 않습니다.")
84
84
  end
85
85
 
86
86
  statement["memo"] = memo
87
+
88
+ if emailSubject.to_s != ''
89
+ statement["emailSubject"] = emailSubject
90
+ end
91
+
87
92
  postData = statement.to_json
93
+
88
94
  httppost("/Statement", corpNum, postData, "ISSUE", userID)
89
95
  end
90
96
 
@@ -54,7 +54,7 @@ class TaxinvoiceService < BaseService
54
54
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
55
55
  end
56
56
  if mgtKey.to_s == ''
57
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
57
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
58
58
  end
59
59
 
60
60
  begin
@@ -116,7 +116,7 @@ class TaxinvoiceService < BaseService
116
116
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
117
117
  end
118
118
  if mgtKey.to_s == ''
119
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
119
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
120
120
  end
121
121
  postData = taxinvoice.to_json
122
122
 
@@ -129,7 +129,7 @@ class TaxinvoiceService < BaseService
129
129
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
130
130
  end
131
131
  if mgtKey.to_s == ''
132
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
132
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
133
133
  end
134
134
 
135
135
  httpget("/Taxinvoice/#{mgtKeyType}/#{mgtKey}", corpNum, userID)
@@ -140,7 +140,7 @@ class TaxinvoiceService < BaseService
140
140
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
141
141
  end
142
142
  unless mgtKeyList.any?
143
- raise PopbillException.new('-99999999', '문서관리번호 배열이 올바르지 않습니다.')
143
+ raise PopbillException.new('-99999999', '문서번호 배열이 올바르지 않습니다.')
144
144
  end
145
145
 
146
146
  postData = mgtKeyList.to_json
@@ -154,7 +154,7 @@ class TaxinvoiceService < BaseService
154
154
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
155
155
  end
156
156
  if mgtKey.to_s == ''
157
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
157
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
158
158
  end
159
159
 
160
160
  httpget("/Taxinvoice/#{mgtKeyType}/#{mgtKey}?Detail", corpNum, userID)
@@ -166,7 +166,7 @@ class TaxinvoiceService < BaseService
166
166
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
167
167
  end
168
168
  if mgtKey.to_s == ''
169
- raise PopbillException.new('-99999999', '문서관리번호 입력되지 않았습니다.')
169
+ raise PopbillException.new('-99999999', '문서번호 입력되지 않았습니다.')
170
170
  end
171
171
 
172
172
  httppost("/Taxinvoice/#{mgtKeyType}/#{mgtKey}", corpNum, '', 'DELETE', userID)
@@ -178,7 +178,7 @@ class TaxinvoiceService < BaseService
178
178
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
179
179
  end
180
180
  if mgtKey.to_s == ''
181
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
181
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
182
182
  end
183
183
 
184
184
  postData = {}
@@ -201,7 +201,7 @@ class TaxinvoiceService < BaseService
201
201
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
202
202
  end
203
203
  if mgtKey.to_s == ''
204
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
204
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
205
205
  end
206
206
 
207
207
  postData = {}
@@ -220,7 +220,7 @@ class TaxinvoiceService < BaseService
220
220
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
221
221
  end
222
222
  if mgtKey.to_s == ''
223
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
223
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
224
224
  end
225
225
 
226
226
  postData = {}
@@ -239,7 +239,7 @@ class TaxinvoiceService < BaseService
239
239
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
240
240
  end
241
241
  if mgtKey.to_s == ''
242
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
242
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
243
243
  end
244
244
 
245
245
  postData = {}
@@ -258,7 +258,7 @@ class TaxinvoiceService < BaseService
258
258
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
259
259
  end
260
260
  if mgtKey.to_s == ''
261
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
261
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
262
262
  end
263
263
 
264
264
  postData = {}
@@ -286,7 +286,7 @@ class TaxinvoiceService < BaseService
286
286
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
287
287
  end
288
288
  if mgtKey.to_s == ''
289
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
289
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
290
290
  end
291
291
 
292
292
  postData = {}
@@ -319,7 +319,7 @@ class TaxinvoiceService < BaseService
319
319
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
320
320
  end
321
321
  if mgtKey.to_s == ''
322
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
322
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
323
323
  end
324
324
 
325
325
  postData = {}
@@ -338,7 +338,7 @@ class TaxinvoiceService < BaseService
338
338
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
339
339
  end
340
340
  if mgtKey.to_s == ''
341
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
341
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
342
342
  end
343
343
 
344
344
  postData = {}
@@ -357,7 +357,7 @@ class TaxinvoiceService < BaseService
357
357
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
358
358
  end
359
359
  if mgtKey.to_s == ''
360
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
360
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
361
361
  end
362
362
 
363
363
  postData = {}
@@ -377,7 +377,7 @@ class TaxinvoiceService < BaseService
377
377
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
378
378
  end
379
379
  if mgtKey.to_s == ''
380
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
380
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
381
381
  end
382
382
 
383
383
  httppost("/Taxinvoice/#{mgtKeyType}/#{mgtKey}", corpNum, '', "NTS", userID)
@@ -389,7 +389,7 @@ class TaxinvoiceService < BaseService
389
389
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
390
390
  end
391
391
  if mgtKey.to_s == ''
392
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
392
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
393
393
  end
394
394
 
395
395
  postData = {}
@@ -408,7 +408,7 @@ class TaxinvoiceService < BaseService
408
408
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
409
409
  end
410
410
  if mgtKey.to_s == ''
411
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
411
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
412
412
  end
413
413
 
414
414
  if senderNum.to_s == ''
@@ -439,7 +439,7 @@ class TaxinvoiceService < BaseService
439
439
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
440
440
  end
441
441
  if mgtKey.to_s == ''
442
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
442
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
443
443
  end
444
444
 
445
445
  if senderNum.to_s == ''
@@ -465,7 +465,7 @@ class TaxinvoiceService < BaseService
465
465
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
466
466
  end
467
467
  if mgtKey.to_s == ''
468
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
468
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
469
469
  end
470
470
 
471
471
  httpget("/Taxinvoice/#{mgtKeyType}/#{mgtKey}/Logs", corpNum, userID)
@@ -477,7 +477,7 @@ class TaxinvoiceService < BaseService
477
477
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
478
478
  end
479
479
  if mgtKey.to_s == ''
480
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
480
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
481
481
  end
482
482
 
483
483
  httppostfiles("/Taxinvoice/#{mgtKeyType}/#{mgtKey}/Files", corpNum, '', [filePath], userID)
@@ -489,7 +489,7 @@ class TaxinvoiceService < BaseService
489
489
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
490
490
  end
491
491
  if mgtKey.to_s == ''
492
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
492
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
493
493
  end
494
494
 
495
495
  httpget("/Taxinvoice/#{mgtKeyType}/#{mgtKey}/Files", corpNum)
@@ -501,7 +501,7 @@ class TaxinvoiceService < BaseService
501
501
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
502
502
  end
503
503
  if mgtKey.to_s == ''
504
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
504
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
505
505
  end
506
506
  if fileID.to_s == ''
507
507
  raise PopbillException.new('-99999999', '파일아이디가 입력되지 않았습니다.')
@@ -515,7 +515,7 @@ class TaxinvoiceService < BaseService
515
515
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
516
516
  end
517
517
  if mgtKey.to_s == ''
518
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
518
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
519
519
  end
520
520
 
521
521
  httpget("/Taxinvoice/#{mgtKeyType}/#{mgtKey}?TG=POPUP", corpNum, userID)['url']
@@ -526,18 +526,29 @@ class TaxinvoiceService < BaseService
526
526
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
527
527
  end
528
528
  if mgtKey.to_s == ''
529
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
529
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
530
530
  end
531
531
 
532
532
  httpget("/Taxinvoice/#{mgtKeyType}/#{mgtKey}?TG=PRINT", corpNum, userID)['url']
533
533
  end
534
534
 
535
+ def getViewURL(corpNum, mgtKeyType, mgtKey, userID = '')
536
+ if corpNum.length != 10
537
+ raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
538
+ end
539
+ if mgtKey.to_s == ''
540
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
541
+ end
542
+
543
+ httpget("/Taxinvoice/#{mgtKeyType}/#{mgtKey}?TG=VIEW", corpNum, userID)['url']
544
+ end
545
+
535
546
  def getEPrintURL(corpNum, mgtKeyType, mgtKey, userID = '')
536
547
  if corpNum.length != 10
537
548
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
538
549
  end
539
550
  if mgtKey.to_s == ''
540
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
551
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
541
552
  end
542
553
 
543
554
  httpget("/Taxinvoice/#{mgtKeyType}/#{mgtKey}?TG=EPRINT", corpNum, userID)['url']
@@ -548,7 +559,7 @@ class TaxinvoiceService < BaseService
548
559
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
549
560
  end
550
561
  if mgtKey.to_s == ''
551
- raise PopbillException.new('-99999999', '문서관리번호 올바르지 않습니다.')
562
+ raise PopbillException.new('-99999999', '문서번호 올바르지 않습니다.')
552
563
  end
553
564
 
554
565
  httpget("/Taxinvoice/#{mgtKeyType}/#{mgtKey}?TG=MAIL", corpNum, userID)['url']
@@ -559,7 +570,7 @@ class TaxinvoiceService < BaseService
559
570
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
560
571
  end
561
572
  unless mgtKeyList.any?
562
- raise PopbillException.new('-99999999', '문서관리번호 배열이 올바르지 않습니다.')
573
+ raise PopbillException.new('-99999999', '문서번호 배열이 올바르지 않습니다.')
563
574
  end
564
575
 
565
576
  postData = mgtKeyList.to_json
@@ -621,13 +632,13 @@ class TaxinvoiceService < BaseService
621
632
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
622
633
  end
623
634
  if mgtKey.to_s == ''
624
- raise PopbillException.new('-99999999', '문서관리번호가 입력되지 않았습니다.')
635
+ raise PopbillException.new('-99999999', '문서번호가 입력되지 않았습니다.')
625
636
  end
626
637
  if itemCode.to_s == ''
627
638
  raise PopbillException.new('-99999999', '전자명세서 종류코드가 입력되지 않았습니다.')
628
639
  end
629
640
  if stmtMgtKey.to_s == ''
630
- raise PopbillException.new('-99999999', '전자명세서 문서관리번호가 입력되지 않았습니다.')
641
+ raise PopbillException.new('-99999999', '전자명세서 문서번호가 입력되지 않았습니다.')
631
642
  end
632
643
 
633
644
  postData = {}
@@ -643,13 +654,13 @@ class TaxinvoiceService < BaseService
643
654
  raise PopbillException.new('-99999999', '사업자등록번호가 올바르지 않습니다.')
644
655
  end
645
656
  if mgtKey.to_s == ''
646
- raise PopbillException.new('-99999999', '문서관리번호가 입력되지 않았습니다.')
657
+ raise PopbillException.new('-99999999', '문서번호가 입력되지 않았습니다.')
647
658
  end
648
659
  if itemCode.to_s == ''
649
660
  raise PopbillException.new('-99999999', '전자명세서 종류코드가 입력되지 않았습니다.')
650
661
  end
651
662
  if stmtMgtKey.to_s == ''
652
- raise PopbillException.new('-99999999', '전자명세서 문서관리번호가 입력되지 않았습니다.')
663
+ raise PopbillException.new('-99999999', '전자명세서 문서번호가 입력되지 않았습니다.')
653
664
  end
654
665
 
655
666
  postData = {}
data/lib/popbill.rb CHANGED
@@ -23,6 +23,8 @@ class BaseService
23
23
  @instance.token_table = {}
24
24
  @instance.linkhub = Linkhub.instance(linkID, secretKey)
25
25
  @instance.scopes = ["member"]
26
+ @instance.ipRestrictOnOff = true
27
+
26
28
  return @instance
27
29
  end
28
30
 
@@ -75,7 +77,7 @@ class BaseService
75
77
  # getSessionToken from Linkhub
76
78
  targetToken = @linkhub.getSessionToken(
77
79
  @isTest ? ServiceID_TEST : ServiceID_REAL, corpNum, @scopes, @ipRestrictOnOff ? "" : "*")
78
-
80
+
79
81
  rescue LinkhubException => le
80
82
  raise PopbillException.new(le.code, le.message)
81
83
  end
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.10.0
4
+ version: 1.11.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: 2019-09-25 00:00:00.000000000 Z
11
+ date: 2019-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: linkhub