sunat_invoice 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rubocop.yml +11 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Makefile +8 -0
- data/README.mkd +26 -0
- data/lib/sunat_invoice/catalogs.rb +177 -0
- data/lib/sunat_invoice/client.rb +36 -0
- data/lib/sunat_invoice/clients/consult_client.rb +11 -0
- data/lib/sunat_invoice/clients/invoice_client.rb +40 -0
- data/lib/sunat_invoice/clients/validate_client.rb +18 -0
- data/lib/sunat_invoice/configuration.rb +7 -0
- data/lib/sunat_invoice/customer.rb +18 -0
- data/lib/sunat_invoice/invoice.rb +171 -0
- data/lib/sunat_invoice/item.rb +79 -0
- data/lib/sunat_invoice/model.rb +11 -0
- data/lib/sunat_invoice/provider.rb +52 -0
- data/lib/sunat_invoice/signature.rb +87 -0
- data/lib/sunat_invoice/tax.rb +62 -0
- data/lib/sunat_invoice/tributer.rb +10 -0
- data/lib/sunat_invoice/utils.rb +31 -0
- data/lib/sunat_invoice.rb +21 -0
- data/sunat_invoice.gemspec +25 -0
- data/test/factories.rb +48 -0
- data/test/helper.rb +11 -0
- data/test/invoice_client_test.rb +41 -0
- data/test/invoice_test.rb +145 -0
- data/test/item_test.rb +110 -0
- data/test/support/signature_helper.rb +30 -0
- metadata +199 -0
metadata
ADDED
@@ -0,0 +1,199 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sunat_invoice
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- César Carruitero
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: savon
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.11.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.11.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.8'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubyzip
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.2.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.2.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: xmldsig
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.6.5
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.6.5
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: cutest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.2'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: factory_bot
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.8'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '4.8'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: ffaker
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.7'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.7'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.11'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.11'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.51'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.51'
|
139
|
+
description: SOAP client to use SUNAT Electronic Invoice API
|
140
|
+
email:
|
141
|
+
- cesar@mozilla.pe
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- ".gitignore"
|
147
|
+
- ".rubocop.yml"
|
148
|
+
- ".rvmrc"
|
149
|
+
- Gemfile
|
150
|
+
- Makefile
|
151
|
+
- README.mkd
|
152
|
+
- lib/sunat_invoice.rb
|
153
|
+
- lib/sunat_invoice/catalogs.rb
|
154
|
+
- lib/sunat_invoice/client.rb
|
155
|
+
- lib/sunat_invoice/clients/consult_client.rb
|
156
|
+
- lib/sunat_invoice/clients/invoice_client.rb
|
157
|
+
- lib/sunat_invoice/clients/validate_client.rb
|
158
|
+
- lib/sunat_invoice/configuration.rb
|
159
|
+
- lib/sunat_invoice/customer.rb
|
160
|
+
- lib/sunat_invoice/invoice.rb
|
161
|
+
- lib/sunat_invoice/item.rb
|
162
|
+
- lib/sunat_invoice/model.rb
|
163
|
+
- lib/sunat_invoice/provider.rb
|
164
|
+
- lib/sunat_invoice/signature.rb
|
165
|
+
- lib/sunat_invoice/tax.rb
|
166
|
+
- lib/sunat_invoice/tributer.rb
|
167
|
+
- lib/sunat_invoice/utils.rb
|
168
|
+
- sunat_invoice.gemspec
|
169
|
+
- test/factories.rb
|
170
|
+
- test/helper.rb
|
171
|
+
- test/invoice_client_test.rb
|
172
|
+
- test/invoice_test.rb
|
173
|
+
- test/item_test.rb
|
174
|
+
- test/support/signature_helper.rb
|
175
|
+
homepage: https://github.com/ccarruitero/sunat_invoice
|
176
|
+
licenses:
|
177
|
+
- MPL-2.0
|
178
|
+
metadata: {}
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 2.6.13
|
196
|
+
signing_key:
|
197
|
+
specification_version: 4
|
198
|
+
summary: SOAP client to use SUNAT Electronic Invoice API
|
199
|
+
test_files: []
|