siwapp-client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +112 -0
  4. data/Rakefile +8 -0
  5. data/docs/DefaultApi.md +119 -0
  6. data/docs/Invoice.md +8 -0
  7. data/docs/InvoiceData.md +11 -0
  8. data/docs/InvoiceDataAttributes.md +13 -0
  9. data/docs/InvoiceDataMeta.md +8 -0
  10. data/docs/InvoiceDataRelationships.md +9 -0
  11. data/docs/InvoiceDataRelationshipsItems.md +8 -0
  12. data/docs/InvoiceDataRelationshipsPayments.md +8 -0
  13. data/docs/InvoiceItem.md +8 -0
  14. data/docs/InvoiceItemAttributes.md +12 -0
  15. data/docs/InvoicePayment.md +8 -0
  16. data/docs/InvoicePaymentAttributes.md +10 -0
  17. data/git_push.sh +55 -0
  18. data/lib/siwapp-client.rb +51 -0
  19. data/lib/siwapp-client/api/default_api.rb +139 -0
  20. data/lib/siwapp-client/api_client.rb +389 -0
  21. data/lib/siwapp-client/api_error.rb +38 -0
  22. data/lib/siwapp-client/configuration.rb +209 -0
  23. data/lib/siwapp-client/models/invoice.rb +188 -0
  24. data/lib/siwapp-client/models/invoice_data.rb +216 -0
  25. data/lib/siwapp-client/models/invoice_data_attributes.rb +249 -0
  26. data/lib/siwapp-client/models/invoice_data_meta.rb +189 -0
  27. data/lib/siwapp-client/models/invoice_data_relationships.rb +197 -0
  28. data/lib/siwapp-client/models/invoice_data_relationships_items.rb +190 -0
  29. data/lib/siwapp-client/models/invoice_data_relationships_payments.rb +190 -0
  30. data/lib/siwapp-client/models/invoice_item.rb +188 -0
  31. data/lib/siwapp-client/models/invoice_item_attributes.rb +236 -0
  32. data/lib/siwapp-client/models/invoice_payment.rb +188 -0
  33. data/lib/siwapp-client/models/invoice_payment_attributes.rb +209 -0
  34. data/lib/siwapp-client/version.rb +15 -0
  35. data/siwapp-client.gemspec +46 -0
  36. data/spec/api/default_api_spec.rb +60 -0
  37. data/spec/api_client_spec.rb +226 -0
  38. data/spec/configuration_spec.rb +42 -0
  39. data/spec/models/invoice_data_attributes_spec.rb +72 -0
  40. data/spec/models/invoice_data_meta_spec.rb +42 -0
  41. data/spec/models/invoice_data_relationships_items_spec.rb +42 -0
  42. data/spec/models/invoice_data_relationships_payments_spec.rb +42 -0
  43. data/spec/models/invoice_data_relationships_spec.rb +48 -0
  44. data/spec/models/invoice_data_spec.rb +60 -0
  45. data/spec/models/invoice_item_attributes_spec.rb +66 -0
  46. data/spec/models/invoice_item_spec.rb +42 -0
  47. data/spec/models/invoice_payment_attributes_spec.rb +54 -0
  48. data/spec/models/invoice_payment_spec.rb +42 -0
  49. data/spec/models/invoice_spec.rb +42 -0
  50. data/spec/spec_helper.rb +111 -0
  51. metadata +281 -0
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Siwapp API Client
3
+
4
+ #Access Siwapp data via API.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SiwappClient::Invoice
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Invoice' do
21
+ before do
22
+ # run before each test
23
+ @instance = SiwappClient::Invoice.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Invoice' do
31
+ it 'should create an instance of Invoice' do
32
+ expect(@instance).to be_instance_of(SiwappClient::Invoice)
33
+ end
34
+ end
35
+ describe 'test attribute "data"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
42
+
@@ -0,0 +1,111 @@
1
+ =begin
2
+ #Siwapp API Client
3
+
4
+ #Access Siwapp data via API.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ # load the gem
14
+ require 'siwapp-client'
15
+
16
+ # The following was generated by the `rspec --init` command. Conventionally, all
17
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
18
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
19
+ # this file to always be loaded, without a need to explicitly require it in any
20
+ # files.
21
+ #
22
+ # Given that it is always loaded, you are encouraged to keep this file as
23
+ # light-weight as possible. Requiring heavyweight dependencies from this file
24
+ # will add to the boot time of your test suite on EVERY test run, even for an
25
+ # individual file that may not need all of that loaded. Instead, consider making
26
+ # a separate helper file that requires the additional dependencies and performs
27
+ # the additional setup, and require it from the spec files that actually need
28
+ # it.
29
+ #
30
+ # The `.rspec` file also contains a few flags that are not defaults but that
31
+ # users commonly want.
32
+ #
33
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
34
+ RSpec.configure do |config|
35
+ # rspec-expectations config goes here. You can use an alternate
36
+ # assertion/expectation library such as wrong or the stdlib/minitest
37
+ # assertions if you prefer.
38
+ config.expect_with :rspec do |expectations|
39
+ # This option will default to `true` in RSpec 4. It makes the `description`
40
+ # and `failure_message` of custom matchers include text for helper methods
41
+ # defined using `chain`, e.g.:
42
+ # be_bigger_than(2).and_smaller_than(4).description
43
+ # # => "be bigger than 2 and smaller than 4"
44
+ # ...rather than:
45
+ # # => "be bigger than 2"
46
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
47
+ end
48
+
49
+ # rspec-mocks config goes here. You can use an alternate test double
50
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
51
+ config.mock_with :rspec do |mocks|
52
+ # Prevents you from mocking or stubbing a method that does not exist on
53
+ # a real object. This is generally recommended, and will default to
54
+ # `true` in RSpec 4.
55
+ mocks.verify_partial_doubles = true
56
+ end
57
+
58
+ # The settings below are suggested to provide a good initial experience
59
+ # with RSpec, but feel free to customize to your heart's content.
60
+ =begin
61
+ # These two settings work together to allow you to limit a spec run
62
+ # to individual examples or groups you care about by tagging them with
63
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
64
+ # get run.
65
+ config.filter_run :focus
66
+ config.run_all_when_everything_filtered = true
67
+
68
+ # Allows RSpec to persist some state between runs in order to support
69
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
70
+ # you configure your source control system to ignore this file.
71
+ config.example_status_persistence_file_path = "spec/examples.txt"
72
+
73
+ # Limits the available syntax to the non-monkey patched syntax that is
74
+ # recommended. For more details, see:
75
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
76
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
77
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
78
+ config.disable_monkey_patching!
79
+
80
+ # This setting enables warnings. It's recommended, but in some cases may
81
+ # be too noisy due to issues in dependencies.
82
+ config.warnings = true
83
+
84
+ # Many RSpec users commonly either run the entire suite or an individual
85
+ # file, and it's useful to allow more verbose output when running an
86
+ # individual spec file.
87
+ if config.files_to_run.one?
88
+ # Use the documentation formatter for detailed output,
89
+ # unless a formatter has already been configured
90
+ # (e.g. via a command-line flag).
91
+ config.default_formatter = 'doc'
92
+ end
93
+
94
+ # Print the 10 slowest examples and example groups at the
95
+ # end of the spec run, to help surface which specs are running
96
+ # particularly slow.
97
+ config.profile_examples = 10
98
+
99
+ # Run specs in random order to surface order dependencies. If you find an
100
+ # order dependency and want to debug it, you can fix the order by providing
101
+ # the seed, which is printed after each run.
102
+ # --seed 1234
103
+ config.order = :random
104
+
105
+ # Seed global randomization in this process using the `--seed` CLI option.
106
+ # Setting this allows you to use `--seed` to deterministically reproduce
107
+ # test failures related to randomization by passing the same `--seed` value
108
+ # as the one that triggered the failure.
109
+ Kernel.srand config.seed
110
+ =end
111
+ end
metadata ADDED
@@ -0,0 +1,281 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: siwapp-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Sology
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: typhoeus
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: json
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.7'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.7'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '3.6'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 3.6.0
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '3.6'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 3.6.0
67
+ - !ruby/object:Gem::Dependency
68
+ name: vcr
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '3.0'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 3.0.1
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '3.0'
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 3.0.1
87
+ - !ruby/object:Gem::Dependency
88
+ name: webmock
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - "~>"
92
+ - !ruby/object:Gem::Version
93
+ version: '1.24'
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 1.24.3
97
+ type: :development
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.24'
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 1.24.3
107
+ - !ruby/object:Gem::Dependency
108
+ name: autotest
109
+ requirement: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - "~>"
112
+ - !ruby/object:Gem::Version
113
+ version: '4.4'
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 4.4.6
117
+ type: :development
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '4.4'
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 4.4.6
127
+ - !ruby/object:Gem::Dependency
128
+ name: autotest-rails-pure
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '4.1'
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 4.1.2
137
+ type: :development
138
+ prerelease: false
139
+ version_requirements: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: '4.1'
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 4.1.2
147
+ - !ruby/object:Gem::Dependency
148
+ name: autotest-growl
149
+ requirement: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '0.2'
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: 0.2.16
157
+ type: :development
158
+ prerelease: false
159
+ version_requirements: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - "~>"
162
+ - !ruby/object:Gem::Version
163
+ version: '0.2'
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: 0.2.16
167
+ - !ruby/object:Gem::Dependency
168
+ name: autotest-fsevent
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.2'
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: 0.2.12
177
+ type: :development
178
+ prerelease: false
179
+ version_requirements: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - "~>"
182
+ - !ruby/object:Gem::Version
183
+ version: '0.2'
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: 0.2.12
187
+ description: Access Siwapp data via API.
188
+ email:
189
+ - wojtek@sology.eu
190
+ executables: []
191
+ extensions: []
192
+ extra_rdoc_files: []
193
+ files:
194
+ - Gemfile
195
+ - README.md
196
+ - Rakefile
197
+ - docs/DefaultApi.md
198
+ - docs/Invoice.md
199
+ - docs/InvoiceData.md
200
+ - docs/InvoiceDataAttributes.md
201
+ - docs/InvoiceDataMeta.md
202
+ - docs/InvoiceDataRelationships.md
203
+ - docs/InvoiceDataRelationshipsItems.md
204
+ - docs/InvoiceDataRelationshipsPayments.md
205
+ - docs/InvoiceItem.md
206
+ - docs/InvoiceItemAttributes.md
207
+ - docs/InvoicePayment.md
208
+ - docs/InvoicePaymentAttributes.md
209
+ - git_push.sh
210
+ - lib/siwapp-client.rb
211
+ - lib/siwapp-client/api/default_api.rb
212
+ - lib/siwapp-client/api_client.rb
213
+ - lib/siwapp-client/api_error.rb
214
+ - lib/siwapp-client/configuration.rb
215
+ - lib/siwapp-client/models/invoice.rb
216
+ - lib/siwapp-client/models/invoice_data.rb
217
+ - lib/siwapp-client/models/invoice_data_attributes.rb
218
+ - lib/siwapp-client/models/invoice_data_meta.rb
219
+ - lib/siwapp-client/models/invoice_data_relationships.rb
220
+ - lib/siwapp-client/models/invoice_data_relationships_items.rb
221
+ - lib/siwapp-client/models/invoice_data_relationships_payments.rb
222
+ - lib/siwapp-client/models/invoice_item.rb
223
+ - lib/siwapp-client/models/invoice_item_attributes.rb
224
+ - lib/siwapp-client/models/invoice_payment.rb
225
+ - lib/siwapp-client/models/invoice_payment_attributes.rb
226
+ - lib/siwapp-client/version.rb
227
+ - siwapp-client.gemspec
228
+ - spec/api/default_api_spec.rb
229
+ - spec/api_client_spec.rb
230
+ - spec/configuration_spec.rb
231
+ - spec/models/invoice_data_attributes_spec.rb
232
+ - spec/models/invoice_data_meta_spec.rb
233
+ - spec/models/invoice_data_relationships_items_spec.rb
234
+ - spec/models/invoice_data_relationships_payments_spec.rb
235
+ - spec/models/invoice_data_relationships_spec.rb
236
+ - spec/models/invoice_data_spec.rb
237
+ - spec/models/invoice_item_attributes_spec.rb
238
+ - spec/models/invoice_item_spec.rb
239
+ - spec/models/invoice_payment_attributes_spec.rb
240
+ - spec/models/invoice_payment_spec.rb
241
+ - spec/models/invoice_spec.rb
242
+ - spec/spec_helper.rb
243
+ homepage: http://www.sology.eu/
244
+ licenses: []
245
+ metadata: {}
246
+ post_install_message:
247
+ rdoc_options: []
248
+ require_paths:
249
+ - lib
250
+ required_ruby_version: !ruby/object:Gem::Requirement
251
+ requirements:
252
+ - - ">="
253
+ - !ruby/object:Gem::Version
254
+ version: '1.9'
255
+ required_rubygems_version: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - ">="
258
+ - !ruby/object:Gem::Version
259
+ version: '0'
260
+ requirements: []
261
+ rubyforge_project:
262
+ rubygems_version: 2.4.8
263
+ signing_key:
264
+ specification_version: 4
265
+ summary: Siwapp API Client Ruby Gem
266
+ test_files:
267
+ - spec/api/default_api_spec.rb
268
+ - spec/api_client_spec.rb
269
+ - spec/configuration_spec.rb
270
+ - spec/models/invoice_payment_spec.rb
271
+ - spec/models/invoice_item_spec.rb
272
+ - spec/models/invoice_data_relationships_spec.rb
273
+ - spec/models/invoice_data_relationships_items_spec.rb
274
+ - spec/models/invoice_data_spec.rb
275
+ - spec/models/invoice_data_meta_spec.rb
276
+ - spec/models/invoice_payment_attributes_spec.rb
277
+ - spec/models/invoice_spec.rb
278
+ - spec/models/invoice_data_relationships_payments_spec.rb
279
+ - spec/models/invoice_item_attributes_spec.rb
280
+ - spec/models/invoice_data_attributes_spec.rb
281
+ - spec/spec_helper.rb