baiwang-sdk 0.0.1
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 +7 -0
- data/.gitignore +8 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +61 -0
- data/README.md +55 -0
- data/Rakefile +15 -0
- data/baiwang.gemspec +37 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/baiwang/api.rb +65 -0
- data/lib/baiwang/apis/ec.rb +37 -0
- data/lib/baiwang/apis/input.rb +273 -0
- data/lib/baiwang/apis/layoutservice.rb +21 -0
- data/lib/baiwang/apis/ocr.rb +61 -0
- data/lib/baiwang/apis/output.rb +273 -0
- data/lib/baiwang/apis/scc.rb +109 -0
- data/lib/baiwang/apis/user_center.rb +41 -0
- data/lib/baiwang/config.rb +39 -0
- data/lib/baiwang/helper.rb +17 -0
- data/lib/baiwang/request.rb +85 -0
- data/lib/baiwang/sdk.rb +1 -0
- data/lib/baiwang/token_store/app_token.rb +44 -0
- data/lib/baiwang/token_store/base.rb +53 -0
- data/lib/baiwang/version.rb +5 -0
- data/lib/baiwang.rb +25 -0
- metadata +156 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 03ef731b4aed4fdf2ac3114aad9921ffc11996a6d1b0a8485b8cf9e5dad86f4c
|
4
|
+
data.tar.gz: d51e1f1b5a93e6e1c82e6cb58d58cf70d3455fa08557d5fada796b20e5df7e65
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 525fee4172838632064430276fb1bff1c3eaf29f729d48a1ee7ddede1052ce471f4997ed16fe73ee3c207aadb1fca06da17f9bc7b1a7e4de115e2bcb9a1a5217
|
7
|
+
data.tar.gz: 558acb5054d411e96c5c71f389d069ab7cf2b3f92500651e8938feab4d5e61375f43164f04060b3d74a218651e5c19b99f9d0aaa5efe48c885048f4c9cb6f550
|
data/.gitignore
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
baiwang-sdk (0.0.1)
|
5
|
+
activesupport (>= 3.2.0)
|
6
|
+
http (>= 2.2)
|
7
|
+
redis
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
activesupport (6.1.4.1)
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
+
i18n (>= 1.6, < 2)
|
15
|
+
minitest (>= 5.1)
|
16
|
+
tzinfo (~> 2.0)
|
17
|
+
zeitwerk (~> 2.3)
|
18
|
+
addressable (2.8.0)
|
19
|
+
public_suffix (>= 2.0.2, < 5.0)
|
20
|
+
concurrent-ruby (1.1.9)
|
21
|
+
domain_name (0.5.20190701)
|
22
|
+
unf (>= 0.0.5, < 1.0.0)
|
23
|
+
ffi (1.15.4)
|
24
|
+
ffi-compiler (1.0.1)
|
25
|
+
ffi (>= 1.0.0)
|
26
|
+
rake
|
27
|
+
http (5.0.1)
|
28
|
+
addressable (~> 2.3)
|
29
|
+
http-cookie (~> 1.0)
|
30
|
+
http-form_data (~> 2.2)
|
31
|
+
llhttp-ffi (~> 0.3.0)
|
32
|
+
http-cookie (1.0.4)
|
33
|
+
domain_name (~> 0.5)
|
34
|
+
http-form_data (2.3.0)
|
35
|
+
i18n (1.8.10)
|
36
|
+
concurrent-ruby (~> 1.0)
|
37
|
+
llhttp-ffi (0.3.1)
|
38
|
+
ffi-compiler (~> 1.0)
|
39
|
+
rake (~> 13.0)
|
40
|
+
minitest (5.14.4)
|
41
|
+
public_suffix (4.0.6)
|
42
|
+
rake (13.0.6)
|
43
|
+
redis (4.5.1)
|
44
|
+
tzinfo (2.0.4)
|
45
|
+
concurrent-ruby (~> 1.0)
|
46
|
+
unf (0.1.4)
|
47
|
+
unf_ext
|
48
|
+
unf_ext (0.0.8)
|
49
|
+
zeitwerk (2.4.2)
|
50
|
+
|
51
|
+
PLATFORMS
|
52
|
+
x86_64-darwin-20
|
53
|
+
|
54
|
+
DEPENDENCIES
|
55
|
+
baiwang-sdk!
|
56
|
+
bundler (>= 1.13)
|
57
|
+
minitest (~> 5.0)
|
58
|
+
rake (~> 13.0)
|
59
|
+
|
60
|
+
BUNDLED WITH
|
61
|
+
2.2.22
|
data/README.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Baiwang::Ruby::Sdk
|
2
|
+
|
3
|
+
百望 Ruby SDKs
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'baiwang-sdk'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle install
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install baiwang-sdk
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
### initialize
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
# config/initializers/baiwang.rb
|
27
|
+
|
28
|
+
Baiwang.configure do |config|
|
29
|
+
config.redis = Redis.new(url: 'redis:host')
|
30
|
+
config.default_app_key = 'xxx'
|
31
|
+
config.default_app_secret = 'xxx'
|
32
|
+
config.api_base_url = 'xxx'
|
33
|
+
config.default_admin_username = 'xx'
|
34
|
+
config.default_admin_password = 'xx'
|
35
|
+
config.default_admin_salt = 'xx'
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
api = Baiwang::Api.new()
|
41
|
+
```
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
resp = api.user_center.common_company_verify_query({"tax_no" => "xxx"})
|
45
|
+
```
|
46
|
+
|
47
|
+
## Development
|
48
|
+
|
49
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
50
|
+
|
51
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
52
|
+
|
53
|
+
## Contributing
|
54
|
+
|
55
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/wenlingang/baiwang-ruby-sdk.
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "bundler/gem_tasks"
|
3
|
+
require "rake/testtask"
|
4
|
+
|
5
|
+
Rake::TestTask.new(:test) do |t|
|
6
|
+
t.libs << "test"
|
7
|
+
t.libs << "lib"
|
8
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
9
|
+
end
|
10
|
+
|
11
|
+
task :default => :test
|
12
|
+
|
13
|
+
task :console do
|
14
|
+
sh 'irb -I lib -r baiwang.rb'
|
15
|
+
end
|
data/baiwang.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/baiwang/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'baiwang-sdk'
|
7
|
+
spec.version = Baiwang::VERSION
|
8
|
+
spec.authors = ['wenlingang']
|
9
|
+
spec.email = ['wen.sprint@gmail.com']
|
10
|
+
|
11
|
+
spec.summary = 'Baiwang(百望) API SDKs for ruby'
|
12
|
+
spec.description = 'Baiwang(百望) API SDKs for ruby'
|
13
|
+
spec.homepage = 'https://github.com/wenlingang/baiwang-ruby-sdk'
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.1.0')
|
16
|
+
|
17
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org/'
|
18
|
+
|
19
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
20
|
+
spec.metadata['source_code_uri'] = 'https://github.com/wenlingang/baiwang-ruby-sdk'
|
21
|
+
spec.metadata['changelog_uri'] = 'https://github.com/wenlingang/baiwang-ruby-sdk'
|
22
|
+
|
23
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
24
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
25
|
+
end
|
26
|
+
spec.bindir = 'exe'
|
27
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ['lib']
|
29
|
+
|
30
|
+
spec.add_dependency 'activesupport', '>= 3.2.0'
|
31
|
+
spec.add_dependency 'http', '>= 2.2'
|
32
|
+
spec.add_dependency 'redis'
|
33
|
+
|
34
|
+
spec.add_development_dependency 'bundler', '>= 1.13'
|
35
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
36
|
+
spec.add_development_dependency 'minitest', '~> 5.10'
|
37
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "baiwang/ruby/sdk"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require "irb"
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/baiwang/api.rb
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'baiwang/request'
|
2
|
+
|
3
|
+
module Baiwang
|
4
|
+
class Api
|
5
|
+
include Helper
|
6
|
+
|
7
|
+
api_mount :input
|
8
|
+
api_mount :output
|
9
|
+
api_mount :ocr
|
10
|
+
api_mount :user_center
|
11
|
+
api_mount :ec
|
12
|
+
api_mount :layoutservice
|
13
|
+
api_mount :scc
|
14
|
+
|
15
|
+
attr_reader :app_key, :app_secret, :admin_username, :admin_password, :admin_salt, :options
|
16
|
+
|
17
|
+
def initialize(options = {})
|
18
|
+
@app_key = options.delete(:app_key) || Baiwang.config.default_app_key
|
19
|
+
@app_secret = options.delete(:app_secret) || Baiwang.config.default_app_secret
|
20
|
+
@admin_username = options.delete(:admin_username) || Baiwang.config.default_admin_username
|
21
|
+
@admin_password = options.delete(:admin_password) || Baiwang.config.default_admin_password
|
22
|
+
@admin_salt = options.delete(:admin_salt) || Baiwang.config.default_admin_salt
|
23
|
+
|
24
|
+
raise AppNotConfigException if @app_key.empty? || @app_secret.empty? || @admin_username.empty? || @admin_password.empty? || @admin_salt.empty?
|
25
|
+
|
26
|
+
@options = options
|
27
|
+
end
|
28
|
+
|
29
|
+
def valid?
|
30
|
+
app_token_store.valid?
|
31
|
+
end
|
32
|
+
|
33
|
+
def request
|
34
|
+
@request ||= Baiwang::Request.new
|
35
|
+
end
|
36
|
+
|
37
|
+
def post(method, payload, headers = {})
|
38
|
+
request.post method, app_access_token, payload, headers
|
39
|
+
end
|
40
|
+
|
41
|
+
def app_access_token
|
42
|
+
app_token_store.token
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def app_token_store
|
48
|
+
return @app_token_store if defined?(@app_token_store)
|
49
|
+
|
50
|
+
@app_token_store = TokenStore::AppToken.new(self)
|
51
|
+
end
|
52
|
+
|
53
|
+
class << self
|
54
|
+
def default
|
55
|
+
@default ||= new(
|
56
|
+
app_key: Baiwang.config.default_app_key,
|
57
|
+
app_secret: Baiwang.config.default_app_secret,
|
58
|
+
admin_username: Baiwang.config.default_admin_username,
|
59
|
+
admin_password: Baiwang.config.default_admin_password,
|
60
|
+
admin_salt: Baiwang.config.default_admin_salt,
|
61
|
+
)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module Baiwang
|
2
|
+
module Apis
|
3
|
+
module Ec
|
4
|
+
def ec_mall_taxnostatus(payload = {})
|
5
|
+
post 'baiwang.ec.mall.taxnostatus', payload
|
6
|
+
end
|
7
|
+
|
8
|
+
def ec_order_updatetaxno(payload = {})
|
9
|
+
post 'baiwang.ec.order.updatetaxno', payload
|
10
|
+
end
|
11
|
+
|
12
|
+
def ec_mall_addmore(payload = {})
|
13
|
+
post 'baiwang.ec.mall.addmore', payload
|
14
|
+
end
|
15
|
+
|
16
|
+
def ec_mall_query(payload = {})
|
17
|
+
post 'baiwang.ec.mall.query', payload
|
18
|
+
end
|
19
|
+
|
20
|
+
def ec_mall_configadd(payload = {})
|
21
|
+
post 'baiwang.ec.mall.configadd', payload
|
22
|
+
end
|
23
|
+
|
24
|
+
def ec_invoice_issue(payload = {})
|
25
|
+
post 'baiwang.ec.invoice.issue', payload
|
26
|
+
end
|
27
|
+
|
28
|
+
def ec_invoice_query(payload = {})
|
29
|
+
post 'baiwang.ec.invoice.query', payload
|
30
|
+
end
|
31
|
+
|
32
|
+
def ec_issue_query(payload = {})
|
33
|
+
post 'baiwang.ec.issue.query', payload
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,273 @@
|
|
1
|
+
module Baiwang
|
2
|
+
module Apis
|
3
|
+
module Input
|
4
|
+
def input_invoicedata_poivsync(payload = {})
|
5
|
+
post 'baiwang.input.invoicedata.poivsync', payload
|
6
|
+
end
|
7
|
+
|
8
|
+
def input_invoicedata_poivsyncresult(payload = {})
|
9
|
+
post 'baiwang.input.invoicedata.poivsyncresult', payload
|
10
|
+
end
|
11
|
+
|
12
|
+
def input_invoicedata_syncinit(payload = {})
|
13
|
+
post 'baiwang.input.invoicedata.syncinit', payload
|
14
|
+
end
|
15
|
+
|
16
|
+
def input_invoicedata_sync(payload = {})
|
17
|
+
post 'baiwang.input.invoicedata.sync', payload
|
18
|
+
end
|
19
|
+
|
20
|
+
def input_invoicedata_syncresult(payload = {})
|
21
|
+
post 'baiwang.input.invoicedata.syncresult', payload
|
22
|
+
end
|
23
|
+
|
24
|
+
def input_invoicedata_tasknoinit(payload = {})
|
25
|
+
post 'baiwang.input.invoicedata.tasknoinit', payload
|
26
|
+
end
|
27
|
+
|
28
|
+
def input_deduction_poivapply(payload = {})
|
29
|
+
post 'baiwang.input.deduction.poivapply', payload
|
30
|
+
end
|
31
|
+
|
32
|
+
def input_deduction_poivapplycancel(payload = {})
|
33
|
+
post 'baiwang.input.deduction.poivapplycancel', payload
|
34
|
+
end
|
35
|
+
|
36
|
+
def input_deduction_poivresult(payload = {})
|
37
|
+
post 'baiwang.input.deduction.poivresult', payload
|
38
|
+
end
|
39
|
+
|
40
|
+
def input_deduction_poivcancelresult(payload = {})
|
41
|
+
post 'baiwang.input.deduction.poivcancelresult', payload
|
42
|
+
end
|
43
|
+
|
44
|
+
def input_deduction_getstatistatus(payload = {})
|
45
|
+
post 'baiwang.input.deduction.getstatistatus', payload
|
46
|
+
end
|
47
|
+
|
48
|
+
def input_deduction_apply(payload = {})
|
49
|
+
post 'baiwang.input.deduction.apply', payload
|
50
|
+
end
|
51
|
+
|
52
|
+
def input_deduction_applyresult(payload = {})
|
53
|
+
post 'baiwang.input.deduction.applyresult', payload
|
54
|
+
end
|
55
|
+
|
56
|
+
def input_deduction_cancel(payload = {})
|
57
|
+
post 'baiwang.input.deduction.cancel', payload
|
58
|
+
end
|
59
|
+
|
60
|
+
def input_deduction_cancelresult(payload = {})
|
61
|
+
post 'baiwang.input.deduction.cancelresult', payload
|
62
|
+
end
|
63
|
+
|
64
|
+
def input_deduction_applyorcancelnon(payload = {})
|
65
|
+
post 'baiwang.input.deduction.applyorcancelnon', payload
|
66
|
+
end
|
67
|
+
|
68
|
+
def input_deduction_applyorcancelnonresult(payload = {})
|
69
|
+
post 'baiwang.input.deduction.applyorcancelnonresult', payload
|
70
|
+
end
|
71
|
+
|
72
|
+
def input_deduction_statapply(payload = {})
|
73
|
+
post 'baiwang.input.deduction.statapply', payload
|
74
|
+
end
|
75
|
+
|
76
|
+
def input_deduction_statapplyresult(payload = {})
|
77
|
+
post 'baiwang.input.deduction.statapplyresult', payload
|
78
|
+
end
|
79
|
+
|
80
|
+
def input_deduction_statconfirmorcancel(payload = {})
|
81
|
+
post 'baiwang.input.deduction.statconfirmorcancel', payload
|
82
|
+
end
|
83
|
+
|
84
|
+
def input_deduction_statconfirmorcancelresult(payload = {})
|
85
|
+
post 'baiwang.input.deduction.statconfirmorcancelresult', payload
|
86
|
+
end
|
87
|
+
|
88
|
+
def input_deduction_setstatpassword(payload = {})
|
89
|
+
post 'baiwang.input.deduction.setstatpassword', payload
|
90
|
+
end
|
91
|
+
|
92
|
+
def input_deduction_querytransfer(payload = {})
|
93
|
+
post 'baiwang.input.deduction.querytransfer', payload
|
94
|
+
end
|
95
|
+
|
96
|
+
def input_deduction_transfercancel(payload = {})
|
97
|
+
post 'baiwang.input.deduction.transfercancel', payload
|
98
|
+
end
|
99
|
+
|
100
|
+
def input_deduction_setdelay(payload = {})
|
101
|
+
post 'baiwang.input.deduction.setdelay', payload
|
102
|
+
end
|
103
|
+
|
104
|
+
def input_deduction_setsign(payload = {})
|
105
|
+
post 'baiwang.input.deduction.setsign', payload
|
106
|
+
end
|
107
|
+
|
108
|
+
def input_deduction_setstatdelay(payload = {})
|
109
|
+
post 'baiwang.input.deduction.setstatdelay', payload
|
110
|
+
end
|
111
|
+
|
112
|
+
def input_deduction_getstatresult(payload = {})
|
113
|
+
post 'baiwang.input.deduction.getstatresult', payload
|
114
|
+
end
|
115
|
+
|
116
|
+
def input_deduction_canceldelay(payload = {})
|
117
|
+
post 'baiwang.input.deduction.canceldelay', payload
|
118
|
+
end
|
119
|
+
|
120
|
+
def input_deduction_getsignresult(payload = {})
|
121
|
+
post 'baiwang.input.deduction.getsignresult', payload
|
122
|
+
end
|
123
|
+
|
124
|
+
def input_deduction_immediate(payload = {})
|
125
|
+
post 'baiwang.input.deduction.immediate', payload
|
126
|
+
end
|
127
|
+
|
128
|
+
def input_deduction_rstatconfirmorcancel(payload = {})
|
129
|
+
post 'baiwang.input.deduction.rstatconfirmorcancel', payload
|
130
|
+
end
|
131
|
+
|
132
|
+
def input_deduction_querytollresult(payload = {})
|
133
|
+
post 'baiwang.input.deduction.querytollresult', payload
|
134
|
+
end
|
135
|
+
|
136
|
+
def input_deduction_rstatcreateorcancel(payload = {})
|
137
|
+
post 'baiwang.input.deduction.rstatcreateorcancel', payload
|
138
|
+
end
|
139
|
+
|
140
|
+
def input_compliance_poivcheck(payload = {})
|
141
|
+
post 'baiwang.input.compliance.poivcheck', payload
|
142
|
+
end
|
143
|
+
|
144
|
+
def input_compliance_poivcheckresult(payload = {})
|
145
|
+
post 'baiwang.input.compliance.poivcheckresult', payload
|
146
|
+
end
|
147
|
+
|
148
|
+
def input_compliance_validate(payload = {})
|
149
|
+
post 'baiwang.input.compliance.validate', payload
|
150
|
+
end
|
151
|
+
|
152
|
+
def input_compliance_check(payload = {})
|
153
|
+
post 'baiwang.input.compliance.check', payload
|
154
|
+
end
|
155
|
+
|
156
|
+
def input_taxperiod_query(payload = {})
|
157
|
+
post 'baiwang.input.taxperiod.query', payload
|
158
|
+
end
|
159
|
+
|
160
|
+
def input_taxperiod_switchbyquarter(payload = {})
|
161
|
+
post 'baiwang.input.taxperiod.switchbyquarter', payload
|
162
|
+
end
|
163
|
+
|
164
|
+
def input_taxperiod_switch_tax_period_by_quarter(payload = {})
|
165
|
+
post 'baiwang.input.taxperiod.switchTaxPeriodByQuarter', payload
|
166
|
+
end
|
167
|
+
|
168
|
+
def input_taxperiod_getperioddelay(payload = {})
|
169
|
+
post 'baiwang.input.taxperiod.getperioddelay', payload
|
170
|
+
end
|
171
|
+
|
172
|
+
def input_collectapi_collectbatch(payload = {})
|
173
|
+
post 'baiwang.input.collectapi.collectbatch', payload
|
174
|
+
end
|
175
|
+
|
176
|
+
def input_collectapi_queryzzsinv(payload = {})
|
177
|
+
post 'baiwang.input.collectapi.queryzzsinv', payload
|
178
|
+
end
|
179
|
+
|
180
|
+
def input_collectapi_queryinv(payload = {})
|
181
|
+
post 'baiwang.input.collectapi.queryinv', payload
|
182
|
+
end
|
183
|
+
|
184
|
+
def input_collect_maininfoquery(payload = {})
|
185
|
+
post 'baiwang.input.collect.maininfoquery', payload
|
186
|
+
end
|
187
|
+
|
188
|
+
def input_invoice_queryallinfo(payload = {})
|
189
|
+
post 'baiwang.input.invoice.queryallinfo', payload
|
190
|
+
end
|
191
|
+
|
192
|
+
def input_invoice_queryinvoicepool(payload = {})
|
193
|
+
post 'baiwang.input.invoice.queryinvoicepool', payload
|
194
|
+
end
|
195
|
+
|
196
|
+
def input_invoice_querymaininfo(payload = {})
|
197
|
+
post 'baiwang.input.invoice.querymaininfo', payload
|
198
|
+
end
|
199
|
+
|
200
|
+
def input_invoice_poivdeductionlist(payload = {})
|
201
|
+
post 'baiwang.input.invoice.poivdeductionlist', payload
|
202
|
+
end
|
203
|
+
|
204
|
+
def input_invoice_vatdeductionlist(payload = {})
|
205
|
+
post 'baiwang.input.invoice.vatdeductionlist', payload
|
206
|
+
end
|
207
|
+
|
208
|
+
def input_bill_accountingdocumentquery(payload = {})
|
209
|
+
post 'baiwang.input.bill.accountingdocumentquery', payload
|
210
|
+
end
|
211
|
+
|
212
|
+
def input_bill_link2accstatus(payload = {})
|
213
|
+
post 'baiwang.input.bill.link2accstatus', payload
|
214
|
+
end
|
215
|
+
|
216
|
+
def input_bill_accountingdocumentdelete(payload = {})
|
217
|
+
post 'baiwang.input.bill.accountingdocumentdelete', payload
|
218
|
+
end
|
219
|
+
|
220
|
+
def input_bill_link2businessreceipt(payload = {})
|
221
|
+
post 'baiwang.input.bill.link2businessreceipt', payload
|
222
|
+
end
|
223
|
+
|
224
|
+
def input_bill_businessreceiptquery(payload = {})
|
225
|
+
post 'baiwang.input.bill.businessreceiptquery', payload
|
226
|
+
end
|
227
|
+
|
228
|
+
def input_bill_businessreceiptdelete(payload = {})
|
229
|
+
post 'baiwang.input.bill.businessreceiptdelete', payload
|
230
|
+
end
|
231
|
+
|
232
|
+
def input_bill_link2accountingdocument(payload = {})
|
233
|
+
post 'baiwang.input.bill.link2accountingdocument', payload
|
234
|
+
end
|
235
|
+
|
236
|
+
def input_bill_accountingdocumentdelete(payload = {})
|
237
|
+
post 'baiwang.input.bill.accountingdocumentdelete', payload
|
238
|
+
end
|
239
|
+
|
240
|
+
def input_supplier_query(payload = {})
|
241
|
+
post 'baiwang.input.supplier.query', payload
|
242
|
+
end
|
243
|
+
|
244
|
+
def input_supplier_add(payload = {})
|
245
|
+
post 'baiwang.input.supplier.add', payload
|
246
|
+
end
|
247
|
+
|
248
|
+
def input_supplier_delete(payload = {})
|
249
|
+
post 'baiwang.input.supplier.delete', payload
|
250
|
+
end
|
251
|
+
|
252
|
+
def input_supplier_illegalcompany(payload = {})
|
253
|
+
post 'baiwang.input.supplier.illegalcompany', payload
|
254
|
+
end
|
255
|
+
|
256
|
+
def input_goods_query(payload = {})
|
257
|
+
post 'baiwang.input.goods.query', payload
|
258
|
+
end
|
259
|
+
|
260
|
+
def input_goods_add(payload = {})
|
261
|
+
post 'baiwang.input.goods.add', payload
|
262
|
+
end
|
263
|
+
|
264
|
+
def input_goods_delete(payload = {})
|
265
|
+
post 'baiwang.input.goods.delete', payload
|
266
|
+
end
|
267
|
+
|
268
|
+
def input_riskcontrol_unusualinvoicelist(payload = {})
|
269
|
+
post 'baiwang.input.riskcontrol.unusualinvoicelist', payload
|
270
|
+
end
|
271
|
+
end
|
272
|
+
end
|
273
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Baiwang
|
2
|
+
module Apis
|
3
|
+
module Layoutservice
|
4
|
+
def layoutservice_einvoice_merge_by_json(payload = {})
|
5
|
+
post 'baiwang.layoutservice.einvoice.mergeByJson', payload
|
6
|
+
end
|
7
|
+
|
8
|
+
def layoutservice_einvoice_verify_by_json(payload = {})
|
9
|
+
post 'baiwang.layoutservice.einvoice.verifyByJson', payload
|
10
|
+
end
|
11
|
+
|
12
|
+
def layoutservice_einvoice_rasterize_by_json(payload = {})
|
13
|
+
post 'baiwang.layoutservice.einvoice.rasterizeByJson', payload
|
14
|
+
end
|
15
|
+
|
16
|
+
def layoutservice_einvoice_parse_by_json(payload = {})
|
17
|
+
post 'baiwang.layoutservice.einvoice.parseByJson', payload
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module Baiwang
|
2
|
+
module Apis
|
3
|
+
module Ocr
|
4
|
+
def ocr_stand_tickets(payload = {})
|
5
|
+
post 'baiwang.ocr.stand.tickets', payload
|
6
|
+
end
|
7
|
+
|
8
|
+
def ocr_stand_queryresult(payload = {})
|
9
|
+
post 'baiwang.ocr.stand.queryresult', payload
|
10
|
+
end
|
11
|
+
|
12
|
+
def image_invoices_query(payload = {})
|
13
|
+
post 'baiwang.image.invoices.query', payload
|
14
|
+
end
|
15
|
+
|
16
|
+
def image_billtask_audit(payload = {})
|
17
|
+
post 'baiwang.image.billtask.audit', payload
|
18
|
+
end
|
19
|
+
|
20
|
+
def image_billtask_relationdel(payload = {})
|
21
|
+
post 'baiwang.image.billtask.relationdel', payload
|
22
|
+
end
|
23
|
+
|
24
|
+
def image_billtask_relation(payload = {})
|
25
|
+
post 'baiwang.image.billtask.relation', payload
|
26
|
+
end
|
27
|
+
|
28
|
+
def image_billtask_add(payload = {})
|
29
|
+
post 'baiwang.image.billtask.add', payload
|
30
|
+
end
|
31
|
+
|
32
|
+
def image_file_queryurl(payload = {})
|
33
|
+
post 'baiwang.image.file.queryurl', payload
|
34
|
+
end
|
35
|
+
|
36
|
+
def image_billtask_delete(payload = {})
|
37
|
+
post 'baiwang.image.billtask.delete', payload
|
38
|
+
end
|
39
|
+
|
40
|
+
def image_billtask_update(payload = {})
|
41
|
+
post 'baiwang.image.billtask.update', payload
|
42
|
+
end
|
43
|
+
|
44
|
+
def image_billtask_get(payload = {})
|
45
|
+
post 'baiwang.image.billtask.get', payload
|
46
|
+
end
|
47
|
+
|
48
|
+
def image_billtask_billimages(payload = {})
|
49
|
+
post 'baiwang.image.billtask.billimages', payload
|
50
|
+
end
|
51
|
+
|
52
|
+
def image_billtask_billinvoices(payload = {})
|
53
|
+
post 'baiwang.image.billtask.billinvoices', payload
|
54
|
+
end
|
55
|
+
|
56
|
+
def image_billtask_query(payload = {})
|
57
|
+
post 'baiwang.image.billtask.query', payload
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|