einvoice 1.2.9 → 1.2.14
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/.github/workflows/cron.yml +17 -0
- data/.travis.yml +3 -3
- data/Gemfile +2 -1
- data/README.md +1 -1
- data/Rakefile +14 -0
- data/einvoice.gemspec +2 -2
- data/lib/einvoice/donation_unit_list.json +333 -27
- data/lib/einvoice/tradevan/provider.rb +13 -0
- data/lib/einvoice/version.rb +1 -1
- metadata +14 -14
|
@@ -79,6 +79,19 @@ module Einvoice
|
|
|
79
79
|
Einvoice::Tradevan::Result.new(response)
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
def search_invoice_by_transaction_number(payload, options = {})
|
|
83
|
+
response = connection(
|
|
84
|
+
ssl: {
|
|
85
|
+
verify: false
|
|
86
|
+
}
|
|
87
|
+
).get do |request|
|
|
88
|
+
request.url endpoint_url || endpoint + "/DEFAULTAPI/get/searchInvoiceInfoByTransactionnumber"
|
|
89
|
+
request.params[:v] = encrypted_params(payload.slice(:companyUn, :orgId, :transactionNumber))
|
|
90
|
+
end.body
|
|
91
|
+
|
|
92
|
+
Einvoice::Tradevan::Result.new(response)
|
|
93
|
+
end
|
|
94
|
+
|
|
82
95
|
def send_card_info_to_cust(payload, options = {})
|
|
83
96
|
response = connection(
|
|
84
97
|
ssl: {
|
data/lib/einvoice/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: einvoice
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Yun
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -98,30 +98,30 @@ dependencies:
|
|
|
98
98
|
name: bundler
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- - "
|
|
101
|
+
- - ">"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '1.
|
|
103
|
+
version: '1.17'
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
|
-
- - "
|
|
108
|
+
- - ">"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '1.
|
|
110
|
+
version: '1.17'
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: rake
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - "~>"
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '
|
|
117
|
+
version: '12.3'
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - "~>"
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '
|
|
124
|
+
version: '12.3'
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: pry
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -206,13 +206,14 @@ dependencies:
|
|
|
206
206
|
- - ">="
|
|
207
207
|
- !ruby/object:Gem::Version
|
|
208
208
|
version: '0'
|
|
209
|
-
description:
|
|
209
|
+
description:
|
|
210
210
|
email:
|
|
211
211
|
- abookyun@gmail.com
|
|
212
212
|
executables: []
|
|
213
213
|
extensions: []
|
|
214
214
|
extra_rdoc_files: []
|
|
215
215
|
files:
|
|
216
|
+
- ".github/workflows/cron.yml"
|
|
216
217
|
- ".gitignore"
|
|
217
218
|
- ".rspec"
|
|
218
219
|
- ".travis.yml"
|
|
@@ -246,7 +247,7 @@ homepage: https://github.com/abookyun/einvoice
|
|
|
246
247
|
licenses:
|
|
247
248
|
- MIT
|
|
248
249
|
metadata: {}
|
|
249
|
-
post_install_message:
|
|
250
|
+
post_install_message:
|
|
250
251
|
rdoc_options: []
|
|
251
252
|
require_paths:
|
|
252
253
|
- lib
|
|
@@ -261,9 +262,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
261
262
|
- !ruby/object:Gem::Version
|
|
262
263
|
version: '0'
|
|
263
264
|
requirements: []
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
signing_key:
|
|
265
|
+
rubygems_version: 3.1.2
|
|
266
|
+
signing_key:
|
|
267
267
|
specification_version: 4
|
|
268
268
|
summary: A API wrapper for Taiwan e-invoice services.
|
|
269
269
|
test_files: []
|