square_connect 2.20180712.2.237 → 2.20180918.0.244
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +20 -1
- data/README.md +33 -1
- data/docs/BatchChangeInventoryRequest.md +14 -0
- data/docs/BatchChangeInventoryResponse.md +13 -0
- data/docs/BatchRetrieveInventoryChangesRequest.md +18 -0
- data/docs/BatchRetrieveInventoryChangesResponse.md +14 -0
- data/docs/BatchRetrieveInventoryCountsRequest.md +15 -0
- data/docs/BatchRetrieveInventoryCountsResponse.md +14 -0
- data/docs/Card.md +1 -1
- data/docs/CreateCustomerRequest.md +1 -0
- data/docs/Customer.md +1 -0
- data/docs/CustomersApi.md +2 -2
- data/docs/ErrorCode.md +2 -0
- data/docs/InventoryAdjustment.md +28 -0
- data/docs/InventoryApi.md +391 -0
- data/docs/InventoryChange.md +15 -0
- data/docs/InventoryChangeType.md +14 -0
- data/docs/InventoryCount.md +17 -0
- data/docs/InventoryPhysicalCount.md +22 -0
- data/docs/InventoryState.md +23 -0
- data/docs/InventoryTransfer.md +23 -0
- data/docs/Product.md +19 -0
- data/docs/RetrieveInventoryAdjustmentRequest.md +11 -0
- data/docs/RetrieveInventoryAdjustmentResponse.md +13 -0
- data/docs/RetrieveInventoryChangesRequest.md +13 -0
- data/docs/RetrieveInventoryChangesResponse.md +14 -0
- data/docs/RetrieveInventoryCountRequest.md +13 -0
- data/docs/RetrieveInventoryCountResponse.md +14 -0
- data/docs/RetrieveInventoryPhysicalCountRequest.md +11 -0
- data/docs/RetrieveInventoryPhysicalCountResponse.md +13 -0
- data/docs/SourceApplication.md +14 -0
- data/docs/TransactionsApi.md +1 -1
- data/docs/UpdateCustomerRequest.md +1 -0
- data/docs/V1Timecard.md +4 -1
- data/lib/square_connect.rb +24 -0
- data/lib/square_connect/api/apple_pay_api.rb +1 -1
- data/lib/square_connect/api/catalog_api.rb +11 -11
- data/lib/square_connect/api/checkout_api.rb +1 -1
- data/lib/square_connect/api/customers_api.rb +12 -12
- data/lib/square_connect/api/inventory_api.rb +417 -0
- data/lib/square_connect/api/locations_api.rb +1 -1
- data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
- data/lib/square_connect/api/o_auth_api.rb +3 -3
- data/lib/square_connect/api/orders_api.rb +2 -2
- data/lib/square_connect/api/reporting_api.rb +2 -2
- data/lib/square_connect/api/transactions_api.rb +9 -9
- data/lib/square_connect/api_client.rb +1 -1
- data/lib/square_connect/models/batch_change_inventory_request.rb +208 -0
- data/lib/square_connect/models/batch_change_inventory_response.rb +200 -0
- data/lib/square_connect/models/batch_retrieve_inventory_changes_request.rb +275 -0
- data/lib/square_connect/models/batch_retrieve_inventory_changes_response.rb +210 -0
- data/lib/square_connect/models/batch_retrieve_inventory_counts_request.rb +220 -0
- data/lib/square_connect/models/batch_retrieve_inventory_counts_response.rb +210 -0
- data/lib/square_connect/models/card.rb +1 -1
- data/lib/square_connect/models/create_customer_request.rb +14 -4
- data/lib/square_connect/models/customer.rb +11 -1
- data/lib/square_connect/models/error.rb +2 -2
- data/lib/square_connect/models/error_code.rb +2 -0
- data/lib/square_connect/models/inventory_adjustment.rb +391 -0
- data/lib/square_connect/models/inventory_change.rb +249 -0
- data/lib/square_connect/models/inventory_change_type.rb +20 -0
- data/lib/square_connect/models/inventory_count.rb +269 -0
- data/lib/square_connect/models/inventory_physical_count.rb +319 -0
- data/lib/square_connect/models/inventory_state.rb +29 -0
- data/lib/square_connect/models/inventory_transfer.rb +329 -0
- data/lib/square_connect/models/money.rb +0 -9
- data/lib/square_connect/models/product.rb +25 -0
- data/lib/square_connect/models/retrieve_inventory_adjustment_request.rb +176 -0
- data/lib/square_connect/models/retrieve_inventory_adjustment_response.rb +198 -0
- data/lib/square_connect/models/retrieve_inventory_changes_request.rb +196 -0
- data/lib/square_connect/models/retrieve_inventory_changes_response.rb +210 -0
- data/lib/square_connect/models/retrieve_inventory_count_request.rb +196 -0
- data/lib/square_connect/models/retrieve_inventory_count_response.rb +210 -0
- data/lib/square_connect/models/retrieve_inventory_physical_count_request.rb +176 -0
- data/lib/square_connect/models/retrieve_inventory_physical_count_response.rb +198 -0
- data/lib/square_connect/models/source_application.rb +239 -0
- data/lib/square_connect/models/update_customer_request.rb +14 -4
- data/lib/square_connect/models/v1_timecard.rb +35 -5
- data/lib/square_connect/version.rb +1 -1
- data/spec/api/inventory_api_spec.rb +120 -0
- data/spec/models/batch_change_inventory_request_spec.rb +51 -0
- data/spec/models/batch_change_inventory_response_spec.rb +45 -0
- data/spec/models/batch_retrieve_inventory_changes_request_spec.rb +83 -0
- data/spec/models/batch_retrieve_inventory_changes_response_spec.rb +51 -0
- data/spec/models/batch_retrieve_inventory_counts_request_spec.rb +57 -0
- data/spec/models/batch_retrieve_inventory_counts_response_spec.rb +51 -0
- data/spec/models/inventory_adjustment_spec.rb +143 -0
- data/spec/models/inventory_change_spec.rb +61 -0
- data/spec/models/inventory_change_type_spec.rb +33 -0
- data/spec/models/inventory_count_spec.rb +73 -0
- data/spec/models/inventory_physical_count_spec.rb +103 -0
- data/spec/models/inventory_state_spec.rb +33 -0
- data/spec/models/inventory_transfer_spec.rb +109 -0
- data/spec/models/product_spec.rb +33 -0
- data/spec/models/retrieve_inventory_adjustment_request_spec.rb +33 -0
- data/spec/models/retrieve_inventory_adjustment_response_spec.rb +45 -0
- data/spec/models/retrieve_inventory_changes_request_spec.rb +45 -0
- data/spec/models/retrieve_inventory_changes_response_spec.rb +51 -0
- data/spec/models/retrieve_inventory_count_request_spec.rb +45 -0
- data/spec/models/retrieve_inventory_count_response_spec.rb +51 -0
- data/spec/models/retrieve_inventory_physical_count_request_spec.rb +33 -0
- data/spec/models/retrieve_inventory_physical_count_response_spec.rb +45 -0
- data/spec/models/source_application_spec.rb +55 -0
- metadata +99 -3
@@ -39,6 +39,9 @@ module SquareConnect
|
|
39
39
|
# An optional note to associate with the customer.
|
40
40
|
attr_accessor :note
|
41
41
|
|
42
|
+
# The customer birthday in RFC-3339 format. Year is optional, timezone and times are not allowed. Example: `0000-09-01T00:00:00-00:00` for a birthday on September 1st. `1998-09-01T00:00:00-00:00` for a birthday on September 1st 1998.
|
43
|
+
attr_accessor :birthday
|
44
|
+
|
42
45
|
|
43
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
47
|
def self.attribute_map
|
@@ -51,7 +54,8 @@ module SquareConnect
|
|
51
54
|
:'address' => :'address',
|
52
55
|
:'phone_number' => :'phone_number',
|
53
56
|
:'reference_id' => :'reference_id',
|
54
|
-
:'note' => :'note'
|
57
|
+
:'note' => :'note',
|
58
|
+
:'birthday' => :'birthday'
|
55
59
|
}
|
56
60
|
end
|
57
61
|
|
@@ -66,7 +70,8 @@ module SquareConnect
|
|
66
70
|
:'address' => :'Address',
|
67
71
|
:'phone_number' => :'String',
|
68
72
|
:'reference_id' => :'String',
|
69
|
-
:'note' => :'String'
|
73
|
+
:'note' => :'String',
|
74
|
+
:'birthday' => :'String'
|
70
75
|
}
|
71
76
|
end
|
72
77
|
|
@@ -114,6 +119,10 @@ module SquareConnect
|
|
114
119
|
self.note = attributes[:'note']
|
115
120
|
end
|
116
121
|
|
122
|
+
if attributes.has_key?(:'birthday')
|
123
|
+
self.birthday = attributes[:'birthday']
|
124
|
+
end
|
125
|
+
|
117
126
|
end
|
118
127
|
|
119
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -142,7 +151,8 @@ module SquareConnect
|
|
142
151
|
address == o.address &&
|
143
152
|
phone_number == o.phone_number &&
|
144
153
|
reference_id == o.reference_id &&
|
145
|
-
note == o.note
|
154
|
+
note == o.note &&
|
155
|
+
birthday == o.birthday
|
146
156
|
end
|
147
157
|
|
148
158
|
# @see the `==` method
|
@@ -154,7 +164,7 @@ module SquareConnect
|
|
154
164
|
# Calculates hash code according to all attributes.
|
155
165
|
# @return [Fixnum] Hash code
|
156
166
|
def hash
|
157
|
-
[given_name, family_name, company_name, nickname, email_address, address, phone_number, reference_id, note].hash
|
167
|
+
[given_name, family_name, company_name, nickname, email_address, address, phone_number, reference_id, note, birthday].hash
|
158
168
|
end
|
159
169
|
|
160
170
|
# Builds the object from hash
|
@@ -27,7 +27,7 @@ module SquareConnect
|
|
27
27
|
# The clock-out time for the timecard, in ISO 8601 format. Provide this value only if importing timecard information from another system.
|
28
28
|
attr_accessor :clockout_time
|
29
29
|
|
30
|
-
# The ID of the location the employee clocked in from
|
30
|
+
# The ID of the location the employee clocked in from. We strongly reccomend providing a clockin_location_id. Square uses the clockin_location_id to determine a timecard’s timezone and overtime rules.
|
31
31
|
attr_accessor :clockin_location_id
|
32
32
|
|
33
33
|
# The ID of the location the employee clocked out from. Provide this value only if importing timecard information from another system.
|
@@ -39,6 +39,15 @@ module SquareConnect
|
|
39
39
|
# The time when the timecard was most recently updated, in ISO 8601 format.
|
40
40
|
attr_accessor :updated_at
|
41
41
|
|
42
|
+
# The total number of regular (non-overtime) seconds worked in the timecard.
|
43
|
+
attr_accessor :regular_seconds_worked
|
44
|
+
|
45
|
+
# The total number of overtime seconds worked in the timecard.
|
46
|
+
attr_accessor :overtime_seconds_worked
|
47
|
+
|
48
|
+
# The total number of doubletime seconds worked in the timecard.
|
49
|
+
attr_accessor :doubletime_seconds_worked
|
50
|
+
|
42
51
|
|
43
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
53
|
def self.attribute_map
|
@@ -51,7 +60,10 @@ module SquareConnect
|
|
51
60
|
:'clockin_location_id' => :'clockin_location_id',
|
52
61
|
:'clockout_location_id' => :'clockout_location_id',
|
53
62
|
:'created_at' => :'created_at',
|
54
|
-
:'updated_at' => :'updated_at'
|
63
|
+
:'updated_at' => :'updated_at',
|
64
|
+
:'regular_seconds_worked' => :'regular_seconds_worked',
|
65
|
+
:'overtime_seconds_worked' => :'overtime_seconds_worked',
|
66
|
+
:'doubletime_seconds_worked' => :'doubletime_seconds_worked'
|
55
67
|
}
|
56
68
|
end
|
57
69
|
|
@@ -66,7 +78,10 @@ module SquareConnect
|
|
66
78
|
:'clockin_location_id' => :'String',
|
67
79
|
:'clockout_location_id' => :'String',
|
68
80
|
:'created_at' => :'String',
|
69
|
-
:'updated_at' => :'String'
|
81
|
+
:'updated_at' => :'String',
|
82
|
+
:'regular_seconds_worked' => :'Float',
|
83
|
+
:'overtime_seconds_worked' => :'Float',
|
84
|
+
:'doubletime_seconds_worked' => :'Float'
|
70
85
|
}
|
71
86
|
end
|
72
87
|
|
@@ -114,6 +129,18 @@ module SquareConnect
|
|
114
129
|
self.updated_at = attributes[:'updated_at']
|
115
130
|
end
|
116
131
|
|
132
|
+
if attributes.has_key?(:'regular_seconds_worked')
|
133
|
+
self.regular_seconds_worked = attributes[:'regular_seconds_worked']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'overtime_seconds_worked')
|
137
|
+
self.overtime_seconds_worked = attributes[:'overtime_seconds_worked']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'doubletime_seconds_worked')
|
141
|
+
self.doubletime_seconds_worked = attributes[:'doubletime_seconds_worked']
|
142
|
+
end
|
143
|
+
|
117
144
|
end
|
118
145
|
|
119
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -147,7 +174,10 @@ module SquareConnect
|
|
147
174
|
clockin_location_id == o.clockin_location_id &&
|
148
175
|
clockout_location_id == o.clockout_location_id &&
|
149
176
|
created_at == o.created_at &&
|
150
|
-
updated_at == o.updated_at
|
177
|
+
updated_at == o.updated_at &&
|
178
|
+
regular_seconds_worked == o.regular_seconds_worked &&
|
179
|
+
overtime_seconds_worked == o.overtime_seconds_worked &&
|
180
|
+
doubletime_seconds_worked == o.doubletime_seconds_worked
|
151
181
|
end
|
152
182
|
|
153
183
|
# @see the `==` method
|
@@ -159,7 +189,7 @@ module SquareConnect
|
|
159
189
|
# Calculates hash code according to all attributes.
|
160
190
|
# @return [Fixnum] Hash code
|
161
191
|
def hash
|
162
|
-
[id, employee_id, deleted, clockin_time, clockout_time, clockin_location_id, clockout_location_id, created_at, updated_at].hash
|
192
|
+
[id, employee_id, deleted, clockin_time, clockout_time, clockin_location_id, clockout_location_id, created_at, updated_at, regular_seconds_worked, overtime_seconds_worked, doubletime_seconds_worked].hash
|
163
193
|
end
|
164
194
|
|
165
195
|
# Builds the object from hash
|
@@ -0,0 +1,120 @@
|
|
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
|
+
|
13
|
+
# Unit tests for SquareConnect::InventoryApi
|
14
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
15
|
+
# Please update as you see appropriate
|
16
|
+
describe 'InventoryApi' do
|
17
|
+
before do
|
18
|
+
# run before each test
|
19
|
+
@instance = SquareConnect::InventoryApi.new
|
20
|
+
end
|
21
|
+
|
22
|
+
after do
|
23
|
+
# run after each test
|
24
|
+
end
|
25
|
+
|
26
|
+
describe 'test an instance of InventoryApi' do
|
27
|
+
it 'should create an instact of InventoryApi' do
|
28
|
+
expect(@instance).to be_instance_of(SquareConnect::InventoryApi)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# unit tests for batch_change_inventory
|
33
|
+
# BatchChangeInventory
|
34
|
+
# Applies new adjustments and counts to inventory. The response will contain the current calculated counts for all objects referenced in the request.
|
35
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [BatchChangeInventoryResponse]
|
38
|
+
describe 'batch_change_inventory test' 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
|
+
# unit tests for batch_retrieve_inventory_changes
|
45
|
+
# BatchRetrieveInventoryChanges
|
46
|
+
# Retrieves historical physical counts and adjustments. The set of physical counts and adjustments to return may be limited along several dimensions. The results appear in ascending order of server timestamp (oldest first), and are paginated. This endpoint is intended as a catch-all for queries that cannot be handled by the previous simpler endpoints.
|
47
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @return [BatchRetrieveInventoryChangesResponse]
|
50
|
+
describe 'batch_retrieve_inventory_changes test' 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
|
+
# unit tests for batch_retrieve_inventory_counts
|
57
|
+
# BatchRetrieveInventoryCounts
|
58
|
+
# Retrieves current counts for a set of [CatalogObject](#type-catalogobject)s at a set of [Location](#type-location)s. If `updated_at` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a \"sync\" operation, for example in response to receiving a Webhook. The results are sorted by [CatalogObject](#type-catalogobject) id and are paginated.
|
59
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @return [BatchRetrieveInventoryCountsResponse]
|
62
|
+
describe 'batch_retrieve_inventory_counts test' 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
|
+
# unit tests for retrieve_inventory_adjustment
|
69
|
+
# RetrieveInventoryAdjustment
|
70
|
+
# Retrieves the [InventoryAdjustment](#type-inventoryadjustment) with the given `adjustment_id`.
|
71
|
+
# @param adjustment_id The unique id of the [InventoryAdjustment](#type-inventoryadjustment) to retrieve.
|
72
|
+
# @param [Hash] opts the optional parameters
|
73
|
+
# @return [RetrieveInventoryAdjustmentResponse]
|
74
|
+
describe 'retrieve_inventory_adjustment test' do
|
75
|
+
it "should work" do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# unit tests for retrieve_inventory_changes
|
81
|
+
# RetrieveInventoryChanges
|
82
|
+
# Retrieves the set of inventory physical counts and adjustments for a given [CatalogObject](#type-catalogobject) at a given set of [Location](#type-location)s. The results appear in descending order of `occurred_at`/`counted_at` timestamp (newest first), and are paginated. There is no limits on how far back the caller can page. This endpoint is useful when displaying recent changes for a specific item. For more sophisticated queries, use a batch endpoint.
|
83
|
+
# @param catalog_object_id The [CatalogObject](#type-catalogobject) id to look up.
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @option opts [String] :location_ids The [Location](#type-location) ids to look up, as a comma-separated list. An empty list queries all locations.
|
86
|
+
# @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
|
87
|
+
# @return [RetrieveInventoryChangesResponse]
|
88
|
+
describe 'retrieve_inventory_changes test' do
|
89
|
+
it "should work" do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# unit tests for retrieve_inventory_count
|
95
|
+
# RetrieveInventoryCount
|
96
|
+
# Retrieves the current (calculated) stock count for a given [CatalogObject](#type-catalogobject) at a given set of [Location](#type-location)s. The response may be paginated when the number of locations is large. The sort order of current counts in the response is unspecified. For more sophisticated queries, use a batch endpoint.
|
97
|
+
# @param catalog_object_id The [CatalogObject](#type-catalogobject) id to look up.
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :location_ids The [Location](#type-location) ids to look up, as a comma-separated list. An empty list queries all locations.
|
100
|
+
# @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
|
101
|
+
# @return [RetrieveInventoryCountResponse]
|
102
|
+
describe 'retrieve_inventory_count test' do
|
103
|
+
it "should work" do
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# unit tests for retrieve_inventory_physical_count
|
109
|
+
# RetrieveInventoryPhysicalCount
|
110
|
+
# Retrieves the [InventoryPhysicalCount](#type-inventoryphysicalcount) with the given `physical_count_id`.
|
111
|
+
# @param physical_count_id The unique id of the [InventoryPhysicalCount](#type-inventoryphysicalcount) to retrieve.
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @return [RetrieveInventoryPhysicalCountResponse]
|
114
|
+
describe 'retrieve_inventory_physical_count test' do
|
115
|
+
it "should work" do
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
end
|
@@ -0,0 +1,51 @@
|
|
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::BatchChangeInventoryRequest
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'BatchChangeInventoryRequest' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::BatchChangeInventoryRequest.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of BatchChangeInventoryRequest' do
|
28
|
+
it 'should create an instact of BatchChangeInventoryRequest' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::BatchChangeInventoryRequest)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "idempotency_key"' 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 "changes"' 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 "ignore_unchanged_counts"' 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
|
+
end
|
51
|
+
|
@@ -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::BatchChangeInventoryResponse
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'BatchChangeInventoryResponse' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::BatchChangeInventoryResponse.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of BatchChangeInventoryResponse' do
|
28
|
+
it 'should create an instact of BatchChangeInventoryResponse' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::BatchChangeInventoryResponse)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "errors"' 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 "counts"' 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,83 @@
|
|
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::BatchRetrieveInventoryChangesRequest
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'BatchRetrieveInventoryChangesRequest' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::BatchRetrieveInventoryChangesRequest.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of BatchRetrieveInventoryChangesRequest' do
|
28
|
+
it 'should create an instact of BatchRetrieveInventoryChangesRequest' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::BatchRetrieveInventoryChangesRequest)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "catalog_object_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
|
+
describe 'test attribute "location_ids"' 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 "types"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["PHYSICAL_COUNT", "ADJUSTMENT", "TRANSFER"])
|
48
|
+
#validator.allowable_values.each do |value|
|
49
|
+
# expect { @instance.types = value }.not_to raise_error
|
50
|
+
#end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "states"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["CUSTOM", "IN_STOCK", "SOLD", "RETURNED_BY_CUSTOMER", "RESERVED_FOR_SALE", "SOLD_ONLINE", "ORDERED_FROM_VENDOR", "RECEIVED_FROM_VENDOR", "IN_TRANSIT_TO", "NONE", "WASTE", "UNLINKED_RETURN"])
|
58
|
+
#validator.allowable_values.each do |value|
|
59
|
+
# expect { @instance.states = value }.not_to raise_error
|
60
|
+
#end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "updated_after"' 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 "updated_before"' 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
|
+
describe 'test attribute "cursor"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
|