square_connect 2.20190710.0.321 → 2.20190724.0.325

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +5 -0
  3. data/README.md +8 -2
  4. data/docs/CatalogItem.md +2 -1
  5. data/docs/CatalogItemOption.md +17 -0
  6. data/docs/CatalogItemOptionForItem.md +12 -0
  7. data/docs/CatalogItemOptionValue.md +17 -0
  8. data/docs/CatalogItemOptionValueForItemVariation.md +13 -0
  9. data/docs/CatalogItemProductType.md +1 -1
  10. data/docs/CatalogItemVariation.md +1 -0
  11. data/docs/CatalogObject.md +2 -0
  12. data/docs/CatalogObjectType.md +3 -0
  13. data/docs/CatalogQuery.md +2 -0
  14. data/docs/CatalogQueryItemVariationsForItemOptionValues.md +12 -0
  15. data/docs/CatalogQueryItemsForItemOptions.md +12 -0
  16. data/lib/square_connect.rb +6 -0
  17. data/lib/square_connect/api_client.rb +1 -1
  18. data/lib/square_connect/models/catalog_item.rb +17 -5
  19. data/lib/square_connect/models/catalog_item_option.rb +238 -0
  20. data/lib/square_connect/models/catalog_item_option_for_item.rb +186 -0
  21. data/lib/square_connect/models/catalog_item_option_value.rb +236 -0
  22. data/lib/square_connect/models/catalog_item_option_value_for_item_variation.rb +196 -0
  23. data/lib/square_connect/models/catalog_item_variation.rb +13 -1
  24. data/lib/square_connect/models/catalog_object.rb +24 -4
  25. data/lib/square_connect/models/catalog_object_type.rb +3 -0
  26. data/lib/square_connect/models/catalog_query.rb +24 -4
  27. data/lib/square_connect/models/catalog_query_item_variations_for_item_option_values.rb +188 -0
  28. data/lib/square_connect/models/catalog_query_items_for_item_options.rb +188 -0
  29. data/lib/square_connect/version.rb +1 -1
  30. data/spec/models/catalog_item_option_for_item_spec.rb +39 -0
  31. data/spec/models/catalog_item_option_spec.rb +69 -0
  32. data/spec/models/catalog_item_option_value_for_item_variation_spec.rb +45 -0
  33. data/spec/models/catalog_item_option_value_spec.rb +69 -0
  34. data/spec/models/catalog_query_item_variations_for_item_option_values_spec.rb +39 -0
  35. data/spec/models/catalog_query_items_for_item_options_spec.rb +39 -0
  36. metadata +26 -2
@@ -8,5 +8,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
8
8
  =end
9
9
 
10
10
  module SquareConnect
11
- VERSION = "2.20190710.0"
11
+ VERSION = "2.20190724.0"
12
12
  end
@@ -0,0 +1,39 @@
1
+ =begin
2
+ #Square Connect API
3
+
4
+ OpenAPI spec version: 2.0
5
+ Contact: developers@squareup.com
6
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
7
+
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SquareConnect::CatalogItemOptionForItem
15
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Please update as you see appropriate
17
+ describe 'CatalogItemOptionForItem' do
18
+ before do
19
+ # run before each test
20
+ @instance = SquareConnect::CatalogItemOptionForItem.new
21
+ end
22
+
23
+ after do
24
+ # run after each test
25
+ end
26
+
27
+ describe 'test an instance of CatalogItemOptionForItem' do
28
+ it 'should create an instact of CatalogItemOptionForItem' do
29
+ expect(@instance).to be_instance_of(SquareConnect::CatalogItemOptionForItem)
30
+ end
31
+ end
32
+ describe 'test attribute "item_option_id"' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ end
39
+
@@ -0,0 +1,69 @@
1
+ =begin
2
+ #Square Connect API
3
+
4
+ OpenAPI spec version: 2.0
5
+ Contact: developers@squareup.com
6
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
7
+
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SquareConnect::CatalogItemOption
15
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Please update as you see appropriate
17
+ describe 'CatalogItemOption' do
18
+ before do
19
+ # run before each test
20
+ @instance = SquareConnect::CatalogItemOption.new
21
+ end
22
+
23
+ after do
24
+ # run after each test
25
+ end
26
+
27
+ describe 'test an instance of CatalogItemOption' do
28
+ it 'should create an instact of CatalogItemOption' do
29
+ expect(@instance).to be_instance_of(SquareConnect::CatalogItemOption)
30
+ end
31
+ end
32
+ describe 'test attribute "name"' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "display_name"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "description"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "show_colors"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "values"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "item_count"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ end
69
+
@@ -0,0 +1,45 @@
1
+ =begin
2
+ #Square Connect API
3
+
4
+ OpenAPI spec version: 2.0
5
+ Contact: developers@squareup.com
6
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
7
+
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SquareConnect::CatalogItemOptionValueForItemVariation
15
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Please update as you see appropriate
17
+ describe 'CatalogItemOptionValueForItemVariation' do
18
+ before do
19
+ # run before each test
20
+ @instance = SquareConnect::CatalogItemOptionValueForItemVariation.new
21
+ end
22
+
23
+ after do
24
+ # run after each test
25
+ end
26
+
27
+ describe 'test an instance of CatalogItemOptionValueForItemVariation' do
28
+ it 'should create an instact of CatalogItemOptionValueForItemVariation' do
29
+ expect(@instance).to be_instance_of(SquareConnect::CatalogItemOptionValueForItemVariation)
30
+ end
31
+ end
32
+ describe 'test attribute "item_option_id"' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "item_option_value_id"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ end
45
+
@@ -0,0 +1,69 @@
1
+ =begin
2
+ #Square Connect API
3
+
4
+ OpenAPI spec version: 2.0
5
+ Contact: developers@squareup.com
6
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
7
+
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SquareConnect::CatalogItemOptionValue
15
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Please update as you see appropriate
17
+ describe 'CatalogItemOptionValue' do
18
+ before do
19
+ # run before each test
20
+ @instance = SquareConnect::CatalogItemOptionValue.new
21
+ end
22
+
23
+ after do
24
+ # run after each test
25
+ end
26
+
27
+ describe 'test an instance of CatalogItemOptionValue' do
28
+ it 'should create an instact of CatalogItemOptionValue' do
29
+ expect(@instance).to be_instance_of(SquareConnect::CatalogItemOptionValue)
30
+ end
31
+ end
32
+ describe 'test attribute "item_option_id"' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "name"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "description"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "color"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "ordinal"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "item_variation_count"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ end
69
+
@@ -0,0 +1,39 @@
1
+ =begin
2
+ #Square Connect API
3
+
4
+ OpenAPI spec version: 2.0
5
+ Contact: developers@squareup.com
6
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
7
+
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SquareConnect::CatalogQueryItemVariationsForItemOptionValues
15
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Please update as you see appropriate
17
+ describe 'CatalogQueryItemVariationsForItemOptionValues' do
18
+ before do
19
+ # run before each test
20
+ @instance = SquareConnect::CatalogQueryItemVariationsForItemOptionValues.new
21
+ end
22
+
23
+ after do
24
+ # run after each test
25
+ end
26
+
27
+ describe 'test an instance of CatalogQueryItemVariationsForItemOptionValues' do
28
+ it 'should create an instact of CatalogQueryItemVariationsForItemOptionValues' do
29
+ expect(@instance).to be_instance_of(SquareConnect::CatalogQueryItemVariationsForItemOptionValues)
30
+ end
31
+ end
32
+ describe 'test attribute "item_option_value_ids"' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ end
39
+
@@ -0,0 +1,39 @@
1
+ =begin
2
+ #Square Connect API
3
+
4
+ OpenAPI spec version: 2.0
5
+ Contact: developers@squareup.com
6
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
7
+
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SquareConnect::CatalogQueryItemsForItemOptions
15
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Please update as you see appropriate
17
+ describe 'CatalogQueryItemsForItemOptions' do
18
+ before do
19
+ # run before each test
20
+ @instance = SquareConnect::CatalogQueryItemsForItemOptions.new
21
+ end
22
+
23
+ after do
24
+ # run after each test
25
+ end
26
+
27
+ describe 'test an instance of CatalogQueryItemsForItemOptions' do
28
+ it 'should create an instact of CatalogQueryItemsForItemOptions' do
29
+ expect(@instance).to be_instance_of(SquareConnect::CatalogQueryItemsForItemOptions)
30
+ end
31
+ end
32
+ describe 'test attribute "item_option_ids"' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ end
39
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: square_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.20190710.0.321
4
+ version: 2.20190724.0.325
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-10 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -240,6 +240,10 @@ files:
240
240
  - docs/CatalogInfoResponseLimits.md
241
241
  - docs/CatalogItem.md
242
242
  - docs/CatalogItemModifierListInfo.md
243
+ - docs/CatalogItemOption.md
244
+ - docs/CatalogItemOptionForItem.md
245
+ - docs/CatalogItemOptionValue.md
246
+ - docs/CatalogItemOptionValueForItemVariation.md
243
247
  - docs/CatalogItemProductType.md
244
248
  - docs/CatalogItemVariation.md
245
249
  - docs/CatalogMeasurementUnit.md
@@ -255,6 +259,8 @@ files:
255
259
  - docs/CatalogProductSet.md
256
260
  - docs/CatalogQuery.md
257
261
  - docs/CatalogQueryExact.md
262
+ - docs/CatalogQueryItemVariationsForItemOptionValues.md
263
+ - docs/CatalogQueryItemsForItemOptions.md
258
264
  - docs/CatalogQueryItemsForModifierList.md
259
265
  - docs/CatalogQueryItemsForTax.md
260
266
  - docs/CatalogQueryPrefix.md
@@ -719,6 +725,10 @@ files:
719
725
  - lib/square_connect/models/catalog_info_response_limits.rb
720
726
  - lib/square_connect/models/catalog_item.rb
721
727
  - lib/square_connect/models/catalog_item_modifier_list_info.rb
728
+ - lib/square_connect/models/catalog_item_option.rb
729
+ - lib/square_connect/models/catalog_item_option_for_item.rb
730
+ - lib/square_connect/models/catalog_item_option_value.rb
731
+ - lib/square_connect/models/catalog_item_option_value_for_item_variation.rb
722
732
  - lib/square_connect/models/catalog_item_product_type.rb
723
733
  - lib/square_connect/models/catalog_item_variation.rb
724
734
  - lib/square_connect/models/catalog_measurement_unit.rb
@@ -734,6 +744,8 @@ files:
734
744
  - lib/square_connect/models/catalog_product_set.rb
735
745
  - lib/square_connect/models/catalog_query.rb
736
746
  - lib/square_connect/models/catalog_query_exact.rb
747
+ - lib/square_connect/models/catalog_query_item_variations_for_item_option_values.rb
748
+ - lib/square_connect/models/catalog_query_items_for_item_options.rb
737
749
  - lib/square_connect/models/catalog_query_items_for_modifier_list.rb
738
750
  - lib/square_connect/models/catalog_query_items_for_tax.rb
739
751
  - lib/square_connect/models/catalog_query_prefix.rb
@@ -1181,6 +1193,10 @@ files:
1181
1193
  - spec/models/catalog_info_response_limits_spec.rb
1182
1194
  - spec/models/catalog_info_response_spec.rb
1183
1195
  - spec/models/catalog_item_modifier_list_info_spec.rb
1196
+ - spec/models/catalog_item_option_for_item_spec.rb
1197
+ - spec/models/catalog_item_option_spec.rb
1198
+ - spec/models/catalog_item_option_value_for_item_variation_spec.rb
1199
+ - spec/models/catalog_item_option_value_spec.rb
1184
1200
  - spec/models/catalog_item_product_type_spec.rb
1185
1201
  - spec/models/catalog_item_spec.rb
1186
1202
  - spec/models/catalog_item_variation_spec.rb
@@ -1196,6 +1212,8 @@ files:
1196
1212
  - spec/models/catalog_pricing_type_spec.rb
1197
1213
  - spec/models/catalog_product_set_spec.rb
1198
1214
  - spec/models/catalog_query_exact_spec.rb
1215
+ - spec/models/catalog_query_item_variations_for_item_option_values_spec.rb
1216
+ - spec/models/catalog_query_items_for_item_options_spec.rb
1199
1217
  - spec/models/catalog_query_items_for_modifier_list_spec.rb
1200
1218
  - spec/models/catalog_query_items_for_tax_spec.rb
1201
1219
  - spec/models/catalog_query_prefix_spec.rb
@@ -1878,11 +1896,13 @@ test_files:
1878
1896
  - spec/models/revoke_token_response_spec.rb
1879
1897
  - spec/models/v1_payment_tax_inclusion_type_spec.rb
1880
1898
  - spec/models/order_quantity_unit_spec.rb
1899
+ - spec/models/catalog_item_option_value_spec.rb
1881
1900
  - spec/models/v1_payment_itemization_itemization_type_spec.rb
1882
1901
  - spec/models/v1_cash_drawer_event_event_type_spec.rb
1883
1902
  - spec/models/update_shift_response_spec.rb
1884
1903
  - spec/models/inventory_count_spec.rb
1885
1904
  - spec/models/customer_group_info_spec.rb
1905
+ - spec/models/catalog_item_option_for_item_spec.rb
1886
1906
  - spec/models/search_orders_sort_spec.rb
1887
1907
  - spec/models/v1_discount_spec.rb
1888
1908
  - spec/models/retrieve_employee_response_spec.rb
@@ -1891,6 +1911,7 @@ test_files:
1891
1911
  - spec/models/catalog_time_period_spec.rb
1892
1912
  - spec/models/v1_list_refunds_response_spec.rb
1893
1913
  - spec/models/customer_spec.rb
1914
+ - spec/models/catalog_item_option_spec.rb
1894
1915
  - spec/models/v1_list_inventory_response_spec.rb
1895
1916
  - spec/models/standard_unit_description_group_spec.rb
1896
1917
  - spec/models/catalog_item_modifier_list_info_spec.rb
@@ -1990,6 +2011,7 @@ test_files:
1990
2011
  - spec/models/error_category_spec.rb
1991
2012
  - spec/models/measurement_unit_generic_spec.rb
1992
2013
  - spec/models/catalog_modifier_list_spec.rb
2014
+ - spec/models/catalog_query_items_for_item_options_spec.rb
1993
2015
  - spec/models/search_orders_state_filter_spec.rb
1994
2016
  - spec/models/batch_delete_catalog_objects_request_spec.rb
1995
2017
  - spec/models/v1_employee_spec.rb
@@ -2015,6 +2037,7 @@ test_files:
2015
2037
  - spec/models/order_state_spec.rb
2016
2038
  - spec/models/order_fulfillment_state_spec.rb
2017
2039
  - spec/models/v1_retrieve_business_request_spec.rb
2040
+ - spec/models/catalog_item_option_value_for_item_variation_spec.rb
2018
2041
  - spec/models/transaction_product_spec.rb
2019
2042
  - spec/models/v1_tender_spec.rb
2020
2043
  - spec/models/list_refunds_request_spec.rb
@@ -2077,6 +2100,7 @@ test_files:
2077
2100
  - spec/models/employee_spec.rb
2078
2101
  - spec/models/delete_shift_request_spec.rb
2079
2102
  - spec/models/v1_list_modifier_lists_request_spec.rb
2103
+ - spec/models/catalog_query_item_variations_for_item_option_values_spec.rb
2080
2104
  - spec/models/currency_spec.rb
2081
2105
  - spec/models/v1_delete_category_request_spec.rb
2082
2106
  - spec/spec_helper.rb