storecove 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/lib/storecove/api/invoice_submissions_api.rb +8 -28
  3. data/lib/storecove/api/shop_account_requests_api.rb +10 -42
  4. data/lib/storecove/api/shop_accounts_api.rb +45 -81
  5. data/lib/storecove/api/shops_api.rb +4 -20
  6. data/lib/storecove/api_client.rb +16 -19
  7. data/lib/storecove/api_error.rb +7 -17
  8. data/lib/storecove/configuration.rb +0 -12
  9. data/lib/storecove/models/accounting_cost_code.rb +3 -19
  10. data/lib/storecove/models/accounting_customer_party.rb +7 -15
  11. data/lib/storecove/models/{party_address.rb → address.rb} +8 -19
  12. data/lib/storecove/models/{party_contact.rb → contact.rb} +8 -16
  13. data/lib/storecove/models/country.rb +0 -12
  14. data/lib/storecove/models/currency_code.rb +0 -12
  15. data/lib/storecove/models/error_model.rb +3 -15
  16. data/lib/storecove/models/{invoice_submission_invoice.rb → invoice.rb} +55 -41
  17. data/lib/storecove/models/invoice_line.rb +12 -22
  18. data/lib/storecove/models/invoice_recipient.rb +18 -21
  19. data/lib/storecove/models/invoice_recipient_preflight.rb +11 -15
  20. data/lib/storecove/models/invoice_submission.rb +15 -16
  21. data/lib/storecove/models/invoice_submission_result.rb +11 -23
  22. data/lib/storecove/models/legal_entity.rb +3 -15
  23. data/lib/storecove/models/legal_entity_identifier.rb +3 -15
  24. data/lib/storecove/models/logos.rb +3 -15
  25. data/lib/storecove/models/party.rb +5 -17
  26. data/lib/storecove/models/preflight_invoice_recipient_result.rb +3 -15
  27. data/lib/storecove/models/{public_identifiers_inner.rb → public_identifier.rb} +4 -16
  28. data/lib/storecove/models/public_identifiers.rb +3 -15
  29. data/lib/storecove/models/shop.rb +3 -15
  30. data/lib/storecove/models/shop_account_input.rb +19 -15
  31. data/lib/storecove/models/shop_account_request.rb +7 -15
  32. data/lib/storecove/models/shop_account_request_input.rb +3 -15
  33. data/lib/storecove/models/shop_account_request_update.rb +3 -15
  34. data/lib/storecove/models/{shop_account.rb → shop_account_result.rb} +4 -16
  35. data/lib/storecove/models/shop_account_update.rb +3 -15
  36. data/lib/storecove/models/{invoice_line_tax.rb → tax.rb} +16 -16
  37. data/lib/storecove/version.rb +1 -13
  38. data/lib/storecove.rb +6 -18
  39. data/spec/api/invoice_submissions_api_spec.rb +70 -0
  40. data/spec/api/shop_account_requests_api_spec.rb +107 -0
  41. data/spec/api/shop_accounts_api_spec.rb +118 -0
  42. data/spec/api/shops_api_spec.rb +57 -0
  43. data/spec/api_client_spec.rb +237 -0
  44. data/spec/configuration_spec.rb +53 -0
  45. data/spec/models/accounting_cost_code_spec.rb +71 -0
  46. data/spec/models/accounting_customer_party_spec.rb +59 -0
  47. data/spec/models/country_spec.rb +47 -0
  48. data/spec/models/currency_code_spec.rb +47 -0
  49. data/spec/models/error_model_spec.rb +59 -0
  50. data/spec/models/invoice_line_spec.rb +95 -0
  51. data/spec/models/invoice_line_tax_spec.rb +65 -0
  52. data/spec/models/invoice_recipient_preflight_spec.rb +59 -0
  53. data/spec/models/invoice_recipient_spec.rb +59 -0
  54. data/spec/models/invoice_submission_invoice_spec.rb +159 -0
  55. data/spec/models/invoice_submission_result_spec.rb +53 -0
  56. data/spec/models/invoice_submission_spec.rb +99 -0
  57. data/spec/models/legal_entity_identifier_spec.rb +65 -0
  58. data/spec/models/legal_entity_spec.rb +95 -0
  59. data/spec/models/logos_spec.rb +65 -0
  60. data/spec/models/party_address_spec.rb +101 -0
  61. data/spec/models/party_contact_spec.rb +65 -0
  62. data/spec/models/party_spec.rb +65 -0
  63. data/spec/models/preflight_invoice_recipient_result_spec.rb +57 -0
  64. data/spec/models/public_identifier_spec.rb +59 -0
  65. data/spec/models/public_identifiers_spec.rb +47 -0
  66. data/spec/models/shop_account_input_spec.rb +77 -0
  67. data/spec/models/shop_account_request_input_spec.rb +77 -0
  68. data/spec/models/shop_account_request_spec.rb +77 -0
  69. data/spec/models/shop_account_request_update_spec.rb +71 -0
  70. data/spec/models/shop_account_result_spec.rb +95 -0
  71. data/spec/models/shop_account_update_spec.rb +65 -0
  72. data/spec/models/shop_spec.rb +77 -0
  73. data/spec/spec_helper.rb +122 -0
  74. metadata +79 -10
  75. data/lib/storecove/models/swagger-codegen +0 -2799
@@ -0,0 +1,65 @@
1
+ =begin
2
+ #Storecove API
3
+
4
+ #Storecove API
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: apisupport@storecove.nl
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+ require 'date'
27
+
28
+ # Unit tests for StorecoveApi::ShopAccountUpdate
29
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
30
+ # Please update as you see appropriate
31
+ describe 'ShopAccountUpdate' do
32
+ before do
33
+ # run before each test
34
+ @instance = StorecoveApi::ShopAccountUpdate.new
35
+ end
36
+
37
+ after do
38
+ # run after each test
39
+ end
40
+
41
+ describe 'test an instance of ShopAccountUpdate' do
42
+ it 'should create an instact of ShopAccountUpdate' do
43
+ expect(@instance).to be_instance_of(StorecoveApi::ShopAccountUpdate)
44
+ end
45
+ end
46
+ describe 'test attribute "username"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "password"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "email"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ end
65
+
@@ -0,0 +1,77 @@
1
+ =begin
2
+ #Storecove API
3
+
4
+ #Storecove API
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: apisupport@storecove.nl
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+ require 'date'
27
+
28
+ # Unit tests for StorecoveApi::Shop
29
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
30
+ # Please update as you see appropriate
31
+ describe 'Shop' do
32
+ before do
33
+ # run before each test
34
+ @instance = StorecoveApi::Shop.new
35
+ end
36
+
37
+ after do
38
+ # run after each test
39
+ end
40
+
41
+ describe 'test an instance of Shop' do
42
+ it 'should create an instact of Shop' do
43
+ expect(@instance).to be_instance_of(StorecoveApi::Shop)
44
+ end
45
+ end
46
+ describe 'test attribute "id"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "name"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "logo"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "description"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'test attribute "legal_entities"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ end
77
+
@@ -0,0 +1,122 @@
1
+ =begin
2
+ #Storecove API
3
+
4
+ #Storecove API
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: apisupport@storecove.nl
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ # load the gem
25
+ require 'storecove'
26
+
27
+ # The following was generated by the `rspec --init` command. Conventionally, all
28
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
29
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
30
+ # this file to always be loaded, without a need to explicitly require it in any
31
+ # files.
32
+ #
33
+ # Given that it is always loaded, you are encouraged to keep this file as
34
+ # light-weight as possible. Requiring heavyweight dependencies from this file
35
+ # will add to the boot time of your test suite on EVERY test run, even for an
36
+ # individual file that may not need all of that loaded. Instead, consider making
37
+ # a separate helper file that requires the additional dependencies and performs
38
+ # the additional setup, and require it from the spec files that actually need
39
+ # it.
40
+ #
41
+ # The `.rspec` file also contains a few flags that are not defaults but that
42
+ # users commonly want.
43
+ #
44
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
45
+ RSpec.configure do |config|
46
+ # rspec-expectations config goes here. You can use an alternate
47
+ # assertion/expectation library such as wrong or the stdlib/minitest
48
+ # assertions if you prefer.
49
+ config.expect_with :rspec do |expectations|
50
+ # This option will default to `true` in RSpec 4. It makes the `description`
51
+ # and `failure_message` of custom matchers include text for helper methods
52
+ # defined using `chain`, e.g.:
53
+ # be_bigger_than(2).and_smaller_than(4).description
54
+ # # => "be bigger than 2 and smaller than 4"
55
+ # ...rather than:
56
+ # # => "be bigger than 2"
57
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
58
+ end
59
+
60
+ # rspec-mocks config goes here. You can use an alternate test double
61
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
62
+ config.mock_with :rspec do |mocks|
63
+ # Prevents you from mocking or stubbing a method that does not exist on
64
+ # a real object. This is generally recommended, and will default to
65
+ # `true` in RSpec 4.
66
+ mocks.verify_partial_doubles = true
67
+ end
68
+
69
+ # The settings below are suggested to provide a good initial experience
70
+ # with RSpec, but feel free to customize to your heart's content.
71
+ =begin
72
+ # These two settings work together to allow you to limit a spec run
73
+ # to individual examples or groups you care about by tagging them with
74
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
75
+ # get run.
76
+ config.filter_run :focus
77
+ config.run_all_when_everything_filtered = true
78
+
79
+ # Allows RSpec to persist some state between runs in order to support
80
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
81
+ # you configure your source control system to ignore this file.
82
+ config.example_status_persistence_file_path = "spec/examples.txt"
83
+
84
+ # Limits the available syntax to the non-monkey patched syntax that is
85
+ # recommended. For more details, see:
86
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
87
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
88
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
89
+ config.disable_monkey_patching!
90
+
91
+ # This setting enables warnings. It's recommended, but in some cases may
92
+ # be too noisy due to issues in dependencies.
93
+ config.warnings = true
94
+
95
+ # Many RSpec users commonly either run the entire suite or an individual
96
+ # file, and it's useful to allow more verbose output when running an
97
+ # individual spec file.
98
+ if config.files_to_run.one?
99
+ # Use the documentation formatter for detailed output,
100
+ # unless a formatter has already been configured
101
+ # (e.g. via a command-line flag).
102
+ config.default_formatter = 'doc'
103
+ end
104
+
105
+ # Print the 10 slowest examples and example groups at the
106
+ # end of the spec run, to help surface which specs are running
107
+ # particularly slow.
108
+ config.profile_examples = 10
109
+
110
+ # Run specs in random order to surface order dependencies. If you find an
111
+ # order dependency and want to debug it, you can fix the order by providing
112
+ # the seed, which is printed after each run.
113
+ # --seed 1234
114
+ config.order = :random
115
+
116
+ # Seed global randomization in this process using the `--seed` CLI option.
117
+ # Setting this allows you to use `--seed` to deterministically reproduce
118
+ # test failures related to randomization by passing the same `--seed` value
119
+ # as the one that triggered the failure.
120
+ Kernel.srand config.seed
121
+ =end
122
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storecove
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Storecove
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-07 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -207,34 +207,68 @@ files:
207
207
  - lib/storecove/configuration.rb
208
208
  - lib/storecove/models/accounting_cost_code.rb
209
209
  - lib/storecove/models/accounting_customer_party.rb
210
+ - lib/storecove/models/address.rb
211
+ - lib/storecove/models/contact.rb
210
212
  - lib/storecove/models/country.rb
211
213
  - lib/storecove/models/currency_code.rb
212
214
  - lib/storecove/models/error_model.rb
215
+ - lib/storecove/models/invoice.rb
213
216
  - lib/storecove/models/invoice_line.rb
214
- - lib/storecove/models/invoice_line_tax.rb
215
217
  - lib/storecove/models/invoice_recipient.rb
216
218
  - lib/storecove/models/invoice_recipient_preflight.rb
217
219
  - lib/storecove/models/invoice_submission.rb
218
- - lib/storecove/models/invoice_submission_invoice.rb
219
220
  - lib/storecove/models/invoice_submission_result.rb
220
221
  - lib/storecove/models/legal_entity.rb
221
222
  - lib/storecove/models/legal_entity_identifier.rb
222
223
  - lib/storecove/models/logos.rb
223
224
  - lib/storecove/models/party.rb
224
- - lib/storecove/models/party_address.rb
225
- - lib/storecove/models/party_contact.rb
226
225
  - lib/storecove/models/preflight_invoice_recipient_result.rb
226
+ - lib/storecove/models/public_identifier.rb
227
227
  - lib/storecove/models/public_identifiers.rb
228
- - lib/storecove/models/public_identifiers_inner.rb
229
228
  - lib/storecove/models/shop.rb
230
- - lib/storecove/models/shop_account.rb
231
229
  - lib/storecove/models/shop_account_input.rb
232
230
  - lib/storecove/models/shop_account_request.rb
233
231
  - lib/storecove/models/shop_account_request_input.rb
234
232
  - lib/storecove/models/shop_account_request_update.rb
233
+ - lib/storecove/models/shop_account_result.rb
235
234
  - lib/storecove/models/shop_account_update.rb
236
- - lib/storecove/models/swagger-codegen
235
+ - lib/storecove/models/tax.rb
237
236
  - lib/storecove/version.rb
237
+ - spec/api/invoice_submissions_api_spec.rb
238
+ - spec/api/shop_account_requests_api_spec.rb
239
+ - spec/api/shop_accounts_api_spec.rb
240
+ - spec/api/shops_api_spec.rb
241
+ - spec/api_client_spec.rb
242
+ - spec/configuration_spec.rb
243
+ - spec/models/accounting_cost_code_spec.rb
244
+ - spec/models/accounting_customer_party_spec.rb
245
+ - spec/models/country_spec.rb
246
+ - spec/models/currency_code_spec.rb
247
+ - spec/models/error_model_spec.rb
248
+ - spec/models/invoice_line_spec.rb
249
+ - spec/models/invoice_line_tax_spec.rb
250
+ - spec/models/invoice_recipient_preflight_spec.rb
251
+ - spec/models/invoice_recipient_spec.rb
252
+ - spec/models/invoice_submission_invoice_spec.rb
253
+ - spec/models/invoice_submission_result_spec.rb
254
+ - spec/models/invoice_submission_spec.rb
255
+ - spec/models/legal_entity_identifier_spec.rb
256
+ - spec/models/legal_entity_spec.rb
257
+ - spec/models/logos_spec.rb
258
+ - spec/models/party_address_spec.rb
259
+ - spec/models/party_contact_spec.rb
260
+ - spec/models/party_spec.rb
261
+ - spec/models/preflight_invoice_recipient_result_spec.rb
262
+ - spec/models/public_identifier_spec.rb
263
+ - spec/models/public_identifiers_spec.rb
264
+ - spec/models/shop_account_input_spec.rb
265
+ - spec/models/shop_account_request_input_spec.rb
266
+ - spec/models/shop_account_request_spec.rb
267
+ - spec/models/shop_account_request_update_spec.rb
268
+ - spec/models/shop_account_result_spec.rb
269
+ - spec/models/shop_account_update_spec.rb
270
+ - spec/models/shop_spec.rb
271
+ - spec/spec_helper.rb
238
272
  - storecove.gemspec
239
273
  homepage: https://www.storecove.com/docs/api
240
274
  licenses:
@@ -260,4 +294,39 @@ rubygems_version: 2.5.1
260
294
  signing_key:
261
295
  specification_version: 4
262
296
  summary: Storecove API Ruby Gem
263
- test_files: []
297
+ test_files:
298
+ - spec/api/invoice_submissions_api_spec.rb
299
+ - spec/api/shop_account_requests_api_spec.rb
300
+ - spec/api/shop_accounts_api_spec.rb
301
+ - spec/api/shops_api_spec.rb
302
+ - spec/api_client_spec.rb
303
+ - spec/configuration_spec.rb
304
+ - spec/models/shop_account_request_update_spec.rb
305
+ - spec/models/preflight_invoice_recipient_result_spec.rb
306
+ - spec/models/error_model_spec.rb
307
+ - spec/models/party_contact_spec.rb
308
+ - spec/models/accounting_cost_code_spec.rb
309
+ - spec/models/invoice_submission_result_spec.rb
310
+ - spec/models/invoice_line_spec.rb
311
+ - spec/models/shop_account_result_spec.rb
312
+ - spec/models/shop_account_request_spec.rb
313
+ - spec/models/country_spec.rb
314
+ - spec/models/shop_account_update_spec.rb
315
+ - spec/models/legal_entity_spec.rb
316
+ - spec/models/shop_account_request_input_spec.rb
317
+ - spec/models/shop_account_input_spec.rb
318
+ - spec/models/invoice_recipient_spec.rb
319
+ - spec/models/accounting_customer_party_spec.rb
320
+ - spec/models/invoice_submission_invoice_spec.rb
321
+ - spec/models/invoice_line_tax_spec.rb
322
+ - spec/models/party_spec.rb
323
+ - spec/models/party_address_spec.rb
324
+ - spec/models/invoice_submission_spec.rb
325
+ - spec/models/currency_code_spec.rb
326
+ - spec/models/legal_entity_identifier_spec.rb
327
+ - spec/models/shop_spec.rb
328
+ - spec/models/logos_spec.rb
329
+ - spec/models/invoice_recipient_preflight_spec.rb
330
+ - spec/models/public_identifiers_spec.rb
331
+ - spec/models/public_identifier_spec.rb
332
+ - spec/spec_helper.rb