square.rb 13.0.0.20210721 → 16.0.0.20211117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +38 -21
  4. data/lib/square/api/apple_pay_api.rb +1 -1
  5. data/lib/square/api/base_api.rb +5 -9
  6. data/lib/square/api/bookings_api.rb +64 -4
  7. data/lib/square/api/cards_api.rb +1 -1
  8. data/lib/square/api/catalog_api.rb +10 -10
  9. data/lib/square/api/checkout_api.rb +1 -1
  10. data/lib/square/api/customer_groups_api.rb +12 -4
  11. data/lib/square/api/customer_segments_api.rb +10 -2
  12. data/lib/square/api/customers_api.rb +15 -7
  13. data/lib/square/api/devices_api.rb +1 -1
  14. data/lib/square/api/disputes_api.rb +1 -1
  15. data/lib/square/api/gift_card_activities_api.rb +26 -20
  16. data/lib/square/api/gift_cards_api.rb +32 -26
  17. data/lib/square/api/inventory_api.rb +6 -6
  18. data/lib/square/api/invoices_api.rb +5 -5
  19. data/lib/square/api/labor_api.rb +70 -68
  20. data/lib/square/api/locations_api.rb +2 -2
  21. data/lib/square/api/loyalty_api.rb +9 -9
  22. data/lib/square/api/mobile_authorization_api.rb +1 -1
  23. data/lib/square/api/o_auth_api.rb +22 -15
  24. data/lib/square/api/orders_api.rb +43 -6
  25. data/lib/square/api/payments_api.rb +12 -6
  26. data/lib/square/api/refunds_api.rb +1 -1
  27. data/lib/square/api/sites_api.rb +2 -1
  28. data/lib/square/api/snippets_api.rb +1 -1
  29. data/lib/square/api/subscriptions_api.rb +159 -16
  30. data/lib/square/api/team_api.rb +6 -6
  31. data/lib/square/api/terminal_api.rb +4 -4
  32. data/lib/square/api/transactions_api.rb +0 -188
  33. data/lib/square/api/v1_transactions_api.rb +2 -2
  34. data/lib/square/api_helper.rb +19 -17
  35. data/lib/square/client.rb +6 -11
  36. data/lib/square/configuration.rb +19 -20
  37. data/lib/square/http/api_response.rb +1 -1
  38. data/lib/square/http/faraday_client.rb +21 -2
  39. data/lib/square/utilities/date_time_helper.rb +2 -2
  40. data/lib/square/utilities/file_wrapper.rb +1 -2
  41. data/lib/square.rb +48 -49
  42. metadata +11 -9
  43. data/lib/square/api/v1_employees_api.rb +0 -362
@@ -13,29 +13,35 @@ module Square
13
13
  # for a gift card,
14
14
  # for all gift cards in a specific region, or for activities within a time
15
15
  # window.
16
- # @param [String] gift_card_id Optional parameter: If you provide a gift
17
- # card ID, the endpoint returns activities that belong to the specified
18
- # gift card. Otherwise, the endpoint returns all gift card activities for
19
- # the seller.
20
- # @param [String] type Optional parameter: If you provide a type, the
21
- # endpoint returns gift card activities of this type. Otherwise, the
22
- # endpoint returns all types of gift card activities.
23
- # @param [String] location_id Optional parameter: If you provide a location
24
- # ID, the endpoint returns gift card activities for that location.
25
- # Otherwise, the endpoint returns gift card activities for all locations.
16
+ # @param [String] gift_card_id Optional parameter: If a gift card ID is
17
+ # provided, the endpoint returns activities related to the specified gift
18
+ # card. Otherwise, the endpoint returns all gift card activities for the
19
+ # seller.
20
+ # @param [String] type Optional parameter: If a
21
+ # [type]($m/GiftCardActivityType) is provided, the endpoint returns gift
22
+ # card activities of the specified type. Otherwise, the endpoint returns
23
+ # all types of gift card activities.
24
+ # @param [String] location_id Optional parameter: If a location ID is
25
+ # provided, the endpoint returns gift card activities for the specified
26
+ # location. Otherwise, the endpoint returns gift card activities for all
27
+ # locations.
26
28
  # @param [String] begin_time Optional parameter: The timestamp for the
27
- # beginning of the reporting period, in RFC 3339 format. Inclusive. Default:
28
- # The current time minus one year.
29
+ # beginning of the reporting period, in RFC 3339 format. This start time is
30
+ # inclusive. The default value is the current time minus one year.
29
31
  # @param [String] end_time Optional parameter: The timestamp for the end of
30
- # the reporting period, in RFC 3339 format. Inclusive. Default: The current
31
- # time.
32
- # @param [Integer] limit Optional parameter: If you provide a limit value,
33
- # the endpoint returns the specified number of results (or less) per page.
34
- # A maximum value is 100. The default value is 50.
32
+ # the reporting period, in RFC 3339 format. This end time is inclusive. The
33
+ # default value is the current time.
34
+ # @param [Integer] limit Optional parameter: If a limit is provided, the
35
+ # endpoint returns the specified number of results (or fewer) per page. The
36
+ # maximum value is 100. The default value is 50. For more information, see
37
+ # [Pagination](https://developer.squareup.com/docs/working-with-apis/paginat
38
+ # ion).
35
39
  # @param [String] cursor Optional parameter: A pagination cursor returned by
36
40
  # a previous call to this endpoint. Provide this cursor to retrieve the next
37
- # set of results for the original query. If you do not provide the cursor,
38
- # the call returns the first page of the results.
41
+ # set of results for the original query. If a cursor is not provided, the
42
+ # endpoint returns the first page of the results. For more information, see
43
+ # [Pagination](https://developer.squareup.com/docs/working-with-apis/paginat
44
+ # ion).
39
45
  # @param [String] sort_order Optional parameter: The order in which the
40
46
  # endpoint returns the activities, based on `created_at`. - `ASC` - Oldest
41
47
  # to newest. - `DESC` - Newest to oldest (default).
@@ -104,7 +110,7 @@ module Square
104
110
  # Prepare headers.
105
111
  _headers = {
106
112
  'accept' => 'application/json',
107
- 'content-type' => 'application/json; charset=utf-8'
113
+ 'Content-Type' => 'application/json'
108
114
  }
109
115
 
110
116
  # Prepare and execute HttpRequest.
@@ -7,24 +7,26 @@ module Square
7
7
 
8
8
  # Lists all gift cards. You can specify optional filters to retrieve
9
9
  # a subset of the gift cards.
10
- # @param [String] type Optional parameter: If a type is provided, gift cards
11
- # of this type are returned (see [GiftCardType]($m/GiftCardType)). If no
12
- # type is provided, it returns gift cards of all types.
13
- # @param [String] state Optional parameter: If the state is provided, it
14
- # returns the gift cards in the specified state (see
15
- # [GiftCardStatus]($m/GiftCardStatus)). Otherwise, it returns the gift cards
16
- # of all states.
17
- # @param [Integer] limit Optional parameter: If a value is provided, it
18
- # returns only that number of results per page. The maximum number of
19
- # results allowed per page is 50. The default value is 30.
10
+ # @param [String] type Optional parameter: If a [type]($m/GiftCardType) is
11
+ # provided, the endpoint returns gift cards of the specified type.
12
+ # Otherwise, the endpoint returns gift cards of all types.
13
+ # @param [String] state Optional parameter: If a [state]($m/GiftCardStatus)
14
+ # is provided, the endpoint returns the gift cards in the specified state.
15
+ # Otherwise, the endpoint returns the gift cards of all states.
16
+ # @param [Integer] limit Optional parameter: If a limit is provided, the
17
+ # endpoint returns only the specified number of results per page. The
18
+ # maximum value is 50. The default value is 30. For more information, see
19
+ # [Pagination](https://developer.squareup.com/docs/working-with-apis/paginat
20
+ # ion).
20
21
  # @param [String] cursor Optional parameter: A pagination cursor returned by
21
22
  # a previous call to this endpoint. Provide this cursor to retrieve the next
22
- # set of results for the original query. If a cursor is not provided, it
23
- # returns the first page of the results. For more information, see
23
+ # set of results for the original query. If a cursor is not provided, the
24
+ # endpoint returns the first page of the results. For more information, see
24
25
  # [Pagination](https://developer.squareup.com/docs/working-with-apis/paginat
25
26
  # ion).
26
- # @param [String] customer_id Optional parameter: If a value is provided,
27
- # returns only the gift cards linked to the specified customer
27
+ # @param [String] customer_id Optional parameter: If a customer ID is
28
+ # provided, the endpoint returns only the gift cards linked to the specified
29
+ # customer.
28
30
  # @return [ListGiftCardsResponse Hash] response from the API call
29
31
  def list_gift_cards(type: nil,
30
32
  state: nil,
@@ -65,8 +67,9 @@ module Square
65
67
  )
66
68
  end
67
69
 
68
- # Creates a digital gift card. You must activate the gift card before
69
- # it can be used. For more information, see
70
+ # Creates a digital gift card or registers a physical (plastic) gift card.
71
+ # You must activate the gift card before
72
+ # it can be used for payment. For more information, see
70
73
  # [Selling gift
71
74
  # cards](https://developer.squareup.com/docs/gift-cards/using-gift-cards-api
72
75
  # #selling-square-gift-cards).
@@ -83,7 +86,7 @@ module Square
83
86
  # Prepare headers.
84
87
  _headers = {
85
88
  'accept' => 'application/json',
86
- 'content-type' => 'application/json; charset=utf-8'
89
+ 'Content-Type' => 'application/json'
87
90
  }
88
91
 
89
92
  # Prepare and execute HttpRequest.
@@ -117,7 +120,7 @@ module Square
117
120
  # Prepare headers.
118
121
  _headers = {
119
122
  'accept' => 'application/json',
120
- 'content-type' => 'application/json; charset=utf-8'
123
+ 'Content-Type' => 'application/json'
121
124
  }
122
125
 
123
126
  # Prepare and execute HttpRequest.
@@ -137,7 +140,7 @@ module Square
137
140
  )
138
141
  end
139
142
 
140
- # Retrieves a gift card using a nonce (a secure token) that represents the
143
+ # Retrieves a gift card using a secure payment token that represents the
141
144
  # gift card.
142
145
  # @param [RetrieveGiftCardFromNonceRequest] body Required parameter: An
143
146
  # object containing the fields to POST for the request. See the
@@ -152,7 +155,7 @@ module Square
152
155
  # Prepare headers.
153
156
  _headers = {
154
157
  'accept' => 'application/json',
155
- 'content-type' => 'application/json; charset=utf-8'
158
+ 'Content-Type' => 'application/json'
156
159
  }
157
160
 
158
161
  # Prepare and execute HttpRequest.
@@ -172,9 +175,10 @@ module Square
172
175
  )
173
176
  end
174
177
 
175
- # Links a customer to a gift card
178
+ # Links a customer to a gift card, which is also referred to as adding a
179
+ # card on file.
176
180
  # @param [String] gift_card_id Required parameter: The ID of the gift card
177
- # to link.
181
+ # to be linked.
178
182
  # @param [LinkCustomerToGiftCardRequest] body Required parameter: An object
179
183
  # containing the fields to POST for the request. See the corresponding
180
184
  # object definition for field details.
@@ -193,7 +197,7 @@ module Square
193
197
  # Prepare headers.
194
198
  _headers = {
195
199
  'accept' => 'application/json',
196
- 'content-type' => 'application/json; charset=utf-8'
200
+ 'Content-Type' => 'application/json'
197
201
  }
198
202
 
199
203
  # Prepare and execute HttpRequest.
@@ -213,8 +217,10 @@ module Square
213
217
  )
214
218
  end
215
219
 
216
- # Unlinks a customer from a gift card
217
- # @param [String] gift_card_id Required parameter: Example:
220
+ # Unlinks a customer from a gift card, which is also referred to as removing
221
+ # a card on file.
222
+ # @param [String] gift_card_id Required parameter: The ID of the gift card
223
+ # to be unlinked.
218
224
  # @param [UnlinkCustomerFromGiftCardRequest] body Required parameter: An
219
225
  # object containing the fields to POST for the request. See the
220
226
  # corresponding object definition for field details.
@@ -233,7 +239,7 @@ module Square
233
239
  # Prepare headers.
234
240
  _headers = {
235
241
  'accept' => 'application/json',
236
- 'content-type' => 'application/json; charset=utf-8'
242
+ 'Content-Type' => 'application/json'
237
243
  }
238
244
 
239
245
  # Prepare and execute HttpRequest.
@@ -100,7 +100,7 @@ module Square
100
100
  # Prepare headers.
101
101
  _headers = {
102
102
  'accept' => 'application/json',
103
- 'content-type' => 'application/json; charset=utf-8'
103
+ 'Content-Type' => 'application/json'
104
104
  }
105
105
 
106
106
  # Prepare and execute HttpRequest.
@@ -139,7 +139,7 @@ module Square
139
139
  # Prepare headers.
140
140
  _headers = {
141
141
  'accept' => 'application/json',
142
- 'content-type' => 'application/json; charset=utf-8'
142
+ 'Content-Type' => 'application/json'
143
143
  }
144
144
 
145
145
  # Prepare and execute HttpRequest.
@@ -178,7 +178,7 @@ module Square
178
178
  # Prepare headers.
179
179
  _headers = {
180
180
  'accept' => 'application/json',
181
- 'content-type' => 'application/json; charset=utf-8'
181
+ 'Content-Type' => 'application/json'
182
182
  }
183
183
 
184
184
  # Prepare and execute HttpRequest.
@@ -215,7 +215,7 @@ module Square
215
215
  # Prepare headers.
216
216
  _headers = {
217
217
  'accept' => 'application/json',
218
- 'content-type' => 'application/json; charset=utf-8'
218
+ 'Content-Type' => 'application/json'
219
219
  }
220
220
 
221
221
  # Prepare and execute HttpRequest.
@@ -254,7 +254,7 @@ module Square
254
254
  # Prepare headers.
255
255
  _headers = {
256
256
  'accept' => 'application/json',
257
- 'content-type' => 'application/json; charset=utf-8'
257
+ 'Content-Type' => 'application/json'
258
258
  }
259
259
 
260
260
  # Prepare and execute HttpRequest.
@@ -297,7 +297,7 @@ module Square
297
297
  # Prepare headers.
298
298
  _headers = {
299
299
  'accept' => 'application/json',
300
- 'content-type' => 'application/json; charset=utf-8'
300
+ 'Content-Type' => 'application/json'
301
301
  }
302
302
 
303
303
  # Prepare and execute HttpRequest.
@@ -72,7 +72,7 @@ module Square
72
72
  # Prepare headers.
73
73
  _headers = {
74
74
  'accept' => 'application/json',
75
- 'content-type' => 'application/json; charset=utf-8'
75
+ 'Content-Type' => 'application/json'
76
76
  }
77
77
 
78
78
  # Prepare and execute HttpRequest.
@@ -112,7 +112,7 @@ module Square
112
112
  # Prepare headers.
113
113
  _headers = {
114
114
  'accept' => 'application/json',
115
- 'content-type' => 'application/json; charset=utf-8'
115
+ 'Content-Type' => 'application/json'
116
116
  }
117
117
 
118
118
  # Prepare and execute HttpRequest.
@@ -242,7 +242,7 @@ module Square
242
242
  # Prepare headers.
243
243
  _headers = {
244
244
  'accept' => 'application/json',
245
- 'content-type' => 'application/json; charset=utf-8'
245
+ 'Content-Type' => 'application/json'
246
246
  }
247
247
 
248
248
  # Prepare and execute HttpRequest.
@@ -286,7 +286,7 @@ module Square
286
286
  # Prepare headers.
287
287
  _headers = {
288
288
  'accept' => 'application/json',
289
- 'content-type' => 'application/json; charset=utf-8'
289
+ 'Content-Type' => 'application/json'
290
290
  }
291
291
 
292
292
  # Prepare and execute HttpRequest.
@@ -339,7 +339,7 @@ module Square
339
339
  # Prepare headers.
340
340
  _headers = {
341
341
  'accept' => 'application/json',
342
- 'content-type' => 'application/json; charset=utf-8'
342
+ 'Content-Type' => 'application/json'
343
343
  }
344
344
 
345
345
  # Prepare and execute HttpRequest.
@@ -6,13 +6,14 @@ module Square
6
6
  end
7
7
 
8
8
  # Returns a paginated list of `BreakType` instances for a business.
9
- # @param [String] location_id Optional parameter: Filter Break Types
10
- # returned to only those that are associated with the specified location.
11
- # @param [Integer] limit Optional parameter: Maximum number of Break Types
12
- # to return per page. Can range between 1 and 200. The default is the
13
- # maximum at 200.
14
- # @param [String] cursor Optional parameter: Pointer to the next page of
15
- # Break Type results to fetch.
9
+ # @param [String] location_id Optional parameter: Filter the returned
10
+ # `BreakType` results to only those that are associated with the specified
11
+ # location.
12
+ # @param [Integer] limit Optional parameter: The maximum number of
13
+ # `BreakType` results to return per page. The number can range between 1 and
14
+ # 200. The default is 200.
15
+ # @param [String] cursor Optional parameter: A pointer to the next page of
16
+ # `BreakType` results to fetch.
16
17
  # @return [ListBreakTypesResponse Hash] response from the API call
17
18
  def list_break_types(location_id: nil,
18
19
  limit: nil,
@@ -57,8 +58,8 @@ module Square
57
58
  # - `break_name`
58
59
  # - `expected_duration`
59
60
  # - `is_paid`
60
- # You can only have 3 `BreakType` instances per location. If you attempt to
61
- # add a 4th
61
+ # You can only have three `BreakType` instances per location. If you attempt
62
+ # to add a fourth
62
63
  # `BreakType` for a location, an `INVALID_REQUEST_ERROR` "Exceeded limit of
63
64
  # 3 breaks per location."
64
65
  # is returned.
@@ -75,7 +76,7 @@ module Square
75
76
  # Prepare headers.
76
77
  _headers = {
77
78
  'accept' => 'application/json',
78
- 'content-type' => 'application/json; charset=utf-8'
79
+ 'Content-Type' => 'application/json'
79
80
  }
80
81
 
81
82
  # Prepare and execute HttpRequest.
@@ -97,7 +98,7 @@ module Square
97
98
 
98
99
  # Deletes an existing `BreakType`.
99
100
  # A `BreakType` can be deleted even if it is referenced from a `Shift`.
100
- # @param [String] id Required parameter: UUID for the `BreakType` being
101
+ # @param [String] id Required parameter: The UUID for the `BreakType` being
101
102
  # deleted.
102
103
  # @return [DeleteBreakTypeResponse Hash] response from the API call
103
104
  def delete_break_type(id:)
@@ -131,8 +132,8 @@ module Square
131
132
  )
132
133
  end
133
134
 
134
- # Returns a single `BreakType` specified by id.
135
- # @param [String] id Required parameter: UUID for the `BreakType` being
135
+ # Returns a single `BreakType` specified by `id`.
136
+ # @param [String] id Required parameter: The UUID for the `BreakType` being
136
137
  # retrieved.
137
138
  # @return [GetBreakTypeResponse Hash] response from the API call
138
139
  def get_break_type(id:)
@@ -167,7 +168,7 @@ module Square
167
168
  end
168
169
 
169
170
  # Updates an existing `BreakType`.
170
- # @param [String] id Required parameter: UUID for the `BreakType` being
171
+ # @param [String] id Required parameter: The UUID for the `BreakType` being
171
172
  # updated.
172
173
  # @param [UpdateBreakTypeRequest] body Required parameter: An object
173
174
  # containing the fields to POST for the request. See the corresponding
@@ -187,7 +188,7 @@ module Square
187
188
  # Prepare headers.
188
189
  _headers = {
189
190
  'accept' => 'application/json',
190
- 'content-type' => 'application/json; charset=utf-8'
191
+ 'Content-Type' => 'application/json'
191
192
  }
192
193
 
193
194
  # Prepare and execute HttpRequest.
@@ -208,13 +209,13 @@ module Square
208
209
  end
209
210
 
210
211
  # Returns a paginated list of `EmployeeWage` instances for a business.
211
- # @param [String] employee_id Optional parameter: Filter wages returned to
212
- # only those that are associated with the specified employee.
213
- # @param [Integer] limit Optional parameter: Maximum number of Employee
214
- # Wages to return per page. Can range between 1 and 200. The default is the
215
- # maximum at 200.
216
- # @param [String] cursor Optional parameter: Pointer to the next page of
217
- # Employee Wage results to fetch.
212
+ # @param [String] employee_id Optional parameter: Filter the returned wages
213
+ # to only those that are associated with the specified employee.
214
+ # @param [Integer] limit Optional parameter: The maximum number of
215
+ # `EmployeeWage` results to return per page. The number can range between 1
216
+ # and 200. The default is 200.
217
+ # @param [String] cursor Optional parameter: A pointer to the next page of
218
+ # `EmployeeWage` results to fetch.
218
219
  # @return [ListEmployeeWagesResponse Hash] response from the API call
219
220
  def list_employee_wages(employee_id: nil,
220
221
  limit: nil,
@@ -252,9 +253,9 @@ module Square
252
253
  )
253
254
  end
254
255
 
255
- # Returns a single `EmployeeWage` specified by id.
256
- # @param [String] id Required parameter: UUID for the `EmployeeWage` being
257
- # retrieved.
256
+ # Returns a single `EmployeeWage` specified by `id`.
257
+ # @param [String] id Required parameter: The UUID for the `EmployeeWage`
258
+ # being retrieved.
258
259
  # @return [GetEmployeeWageResponse Hash] response from the API call
259
260
  def get_employee_wage(id:)
260
261
  warn 'Endpoint get_employee_wage in LaborApi is deprecated'
@@ -289,7 +290,7 @@ module Square
289
290
  end
290
291
 
291
292
  # Creates a new `Shift`.
292
- # A `Shift` represents a complete work day for a single employee.
293
+ # A `Shift` represents a complete workday for a single employee.
293
294
  # You must provide the following values in your request to this
294
295
  # endpoint:
295
296
  # - `location_id`
@@ -299,12 +300,12 @@ module Square
299
300
  # when:
300
301
  # - The `status` of the new `Shift` is `OPEN` and the employee has another
301
302
  # shift with an `OPEN` status.
302
- # - The `start_at` date is in the future
303
- # - the `start_at` or `end_at` overlaps another shift for the same employee
304
- # - If `Break`s are set in the request, a break `start_at`
305
- # must not be before the `Shift.start_at`. A break `end_at` must not be
306
- # after
307
- # the `Shift.end_at`
303
+ # - The `start_at` date is in the future.
304
+ # - The `start_at` or `end_at` date overlaps another shift for the same
305
+ # employee.
306
+ # - The `Break` instances are set in the request and a break `start_at`
307
+ # is before the `Shift.start_at`, a break `end_at` is after
308
+ # the `Shift.end_at`, or both.
308
309
  # @param [CreateShiftRequest] body Required parameter: An object containing
309
310
  # the fields to POST for the request. See the corresponding object
310
311
  # definition for field details.
@@ -318,7 +319,7 @@ module Square
318
319
  # Prepare headers.
319
320
  _headers = {
320
321
  'accept' => 'application/json',
321
- 'content-type' => 'application/json; charset=utf-8'
322
+ 'Content-Type' => 'application/json'
322
323
  }
323
324
 
324
325
  # Prepare and execute HttpRequest.
@@ -340,17 +341,17 @@ module Square
340
341
 
341
342
  # Returns a paginated list of `Shift` records for a business.
342
343
  # The list to be returned can be filtered by:
343
- # - Location IDs **and**
344
- # - employee IDs **and**
345
- # - shift status (`OPEN`, `CLOSED`) **and**
346
- # - shift start **and**
347
- # - shift end **and**
348
- # - work day details
344
+ # - Location IDs.
345
+ # - Employee IDs.
346
+ # - Shift status (`OPEN` and `CLOSED`).
347
+ # - Shift start.
348
+ # - Shift end.
349
+ # - Workday details.
349
350
  # The list can be sorted by:
350
- # - `start_at`
351
- # - `end_at`
352
- # - `created_at`
353
- # - `updated_at`
351
+ # - `start_at`.
352
+ # - `end_at`.
353
+ # - `created_at`.
354
+ # - `updated_at`.
354
355
  # @param [SearchShiftsRequest] body Required parameter: An object containing
355
356
  # the fields to POST for the request. See the corresponding object
356
357
  # definition for field details.
@@ -364,7 +365,7 @@ module Square
364
365
  # Prepare headers.
365
366
  _headers = {
366
367
  'accept' => 'application/json',
367
- 'content-type' => 'application/json; charset=utf-8'
368
+ 'Content-Type' => 'application/json'
368
369
  }
369
370
 
370
371
  # Prepare and execute HttpRequest.
@@ -385,7 +386,7 @@ module Square
385
386
  end
386
387
 
387
388
  # Deletes a `Shift`.
388
- # @param [String] id Required parameter: UUID for the `Shift` being
389
+ # @param [String] id Required parameter: The UUID for the `Shift` being
389
390
  # deleted.
390
391
  # @return [DeleteShiftResponse Hash] response from the API call
391
392
  def delete_shift(id:)
@@ -419,8 +420,8 @@ module Square
419
420
  )
420
421
  end
421
422
 
422
- # Returns a single `Shift` specified by id.
423
- # @param [String] id Required parameter: UUID for the `Shift` being
423
+ # Returns a single `Shift` specified by `id`.
424
+ # @param [String] id Required parameter: The UUID for the `Shift` being
424
425
  # retrieved.
425
426
  # @return [GetShiftResponse Hash] response from the API call
426
427
  def get_shift(id:)
@@ -455,13 +456,14 @@ module Square
455
456
  end
456
457
 
457
458
  # Updates an existing `Shift`.
458
- # When adding a `Break` to a `Shift`, any earlier `Breaks` in the `Shift`
459
- # have
459
+ # When adding a `Break` to a `Shift`, any earlier `Break` instances in the
460
+ # `Shift` have
460
461
  # the `end_at` property set to a valid RFC-3339 datetime string.
461
- # When closing a `Shift`, all `Break` instances in the shift must be
462
+ # When closing a `Shift`, all `Break` instances in the `Shift` must be
462
463
  # complete with `end_at`
463
464
  # set on each `Break`.
464
- # @param [String] id Required parameter: ID of the object being updated.
465
+ # @param [String] id Required parameter: The ID of the object being
466
+ # updated.
465
467
  # @param [UpdateShiftRequest] body Required parameter: An object containing
466
468
  # the fields to POST for the request. See the corresponding object
467
469
  # definition for field details.
@@ -480,7 +482,7 @@ module Square
480
482
  # Prepare headers.
481
483
  _headers = {
482
484
  'accept' => 'application/json',
483
- 'content-type' => 'application/json; charset=utf-8'
485
+ 'Content-Type' => 'application/json'
484
486
  }
485
487
 
486
488
  # Prepare and execute HttpRequest.
@@ -501,13 +503,13 @@ module Square
501
503
  end
502
504
 
503
505
  # Returns a paginated list of `TeamMemberWage` instances for a business.
504
- # @param [String] team_member_id Optional parameter: Filter wages returned
505
- # to only those that are associated with the specified team member.
506
- # @param [Integer] limit Optional parameter: Maximum number of Team Member
507
- # Wages to return per page. Can range between 1 and 200. The default is the
508
- # maximum at 200.
509
- # @param [String] cursor Optional parameter: Pointer to the next page of
510
- # Employee Wage results to fetch.
506
+ # @param [String] team_member_id Optional parameter: Filter the returned
507
+ # wages to only those that are associated with the specified team member.
508
+ # @param [Integer] limit Optional parameter: The maximum number of
509
+ # `TeamMemberWage` results to return per page. The number can range between
510
+ # 1 and 200. The default is 200.
511
+ # @param [String] cursor Optional parameter: A pointer to the next page of
512
+ # `EmployeeWage` results to fetch.
511
513
  # @return [ListTeamMemberWagesResponse Hash] response from the API call
512
514
  def list_team_member_wages(team_member_id: nil,
513
515
  limit: nil,
@@ -544,9 +546,9 @@ module Square
544
546
  )
545
547
  end
546
548
 
547
- # Returns a single `TeamMemberWage` specified by id.
548
- # @param [String] id Required parameter: UUID for the `TeamMemberWage` being
549
- # retrieved.
549
+ # Returns a single `TeamMemberWage` specified by `id `.
550
+ # @param [String] id Required parameter: The UUID for the `TeamMemberWage`
551
+ # being retrieved.
550
552
  # @return [GetTeamMemberWageResponse Hash] response from the API call
551
553
  def get_team_member_wage(id:)
552
554
  # Prepare query url.
@@ -580,10 +582,10 @@ module Square
580
582
  end
581
583
 
582
584
  # Returns a list of `WorkweekConfig` instances for a business.
583
- # @param [Integer] limit Optional parameter: Maximum number of Workweek
584
- # Configs to return per page.
585
- # @param [String] cursor Optional parameter: Pointer to the next page of
586
- # Workweek Config results to fetch.
585
+ # @param [Integer] limit Optional parameter: The maximum number of
586
+ # `WorkweekConfigs` results to return per page.
587
+ # @param [String] cursor Optional parameter: A pointer to the next page of
588
+ # `WorkweekConfig` results to fetch.
587
589
  # @return [ListWorkweekConfigsResponse Hash] response from the API call
588
590
  def list_workweek_configs(limit: nil,
589
591
  cursor: nil)
@@ -619,7 +621,7 @@ module Square
619
621
  end
620
622
 
621
623
  # Updates a `WorkweekConfig`.
622
- # @param [String] id Required parameter: UUID for the `WorkweekConfig`
624
+ # @param [String] id Required parameter: The UUID for the `WorkweekConfig`
623
625
  # object being updated.
624
626
  # @param [UpdateWorkweekConfigRequest] body Required parameter: An object
625
627
  # containing the fields to POST for the request. See the corresponding
@@ -639,7 +641,7 @@ module Square
639
641
  # Prepare headers.
640
642
  _headers = {
641
643
  'accept' => 'application/json',
642
- 'content-type' => 'application/json; charset=utf-8'
644
+ 'Content-Type' => 'application/json'
643
645
  }
644
646
 
645
647
  # Prepare and execute HttpRequest.
@@ -51,7 +51,7 @@ module Square
51
51
  # Prepare headers.
52
52
  _headers = {
53
53
  'accept' => 'application/json',
54
- 'content-type' => 'application/json; charset=utf-8'
54
+ 'Content-Type' => 'application/json'
55
55
  }
56
56
 
57
57
  # Prepare and execute HttpRequest.
@@ -130,7 +130,7 @@ module Square
130
130
  # Prepare headers.
131
131
  _headers = {
132
132
  'accept' => 'application/json',
133
- 'content-type' => 'application/json; charset=utf-8'
133
+ 'Content-Type' => 'application/json'
134
134
  }
135
135
 
136
136
  # Prepare and execute HttpRequest.