square.rb 15.0.0.20211020 → 17.1.0.20220120

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.
@@ -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,
@@ -84,7 +86,7 @@ module Square
84
86
  # Prepare headers.
85
87
  _headers = {
86
88
  'accept' => 'application/json',
87
- 'content-type' => 'application/json; charset=utf-8'
89
+ 'Content-Type' => 'application/json'
88
90
  }
89
91
 
90
92
  # Prepare and execute HttpRequest.
@@ -118,7 +120,7 @@ module Square
118
120
  # Prepare headers.
119
121
  _headers = {
120
122
  'accept' => 'application/json',
121
- 'content-type' => 'application/json; charset=utf-8'
123
+ 'Content-Type' => 'application/json'
122
124
  }
123
125
 
124
126
  # Prepare and execute HttpRequest.
@@ -138,7 +140,7 @@ module Square
138
140
  )
139
141
  end
140
142
 
141
- # 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
142
144
  # gift card.
143
145
  # @param [RetrieveGiftCardFromNonceRequest] body Required parameter: An
144
146
  # object containing the fields to POST for the request. See the
@@ -153,7 +155,7 @@ module Square
153
155
  # Prepare headers.
154
156
  _headers = {
155
157
  'accept' => 'application/json',
156
- 'content-type' => 'application/json; charset=utf-8'
158
+ 'Content-Type' => 'application/json'
157
159
  }
158
160
 
159
161
  # Prepare and execute HttpRequest.
@@ -173,9 +175,10 @@ module Square
173
175
  )
174
176
  end
175
177
 
176
- # 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.
177
180
  # @param [String] gift_card_id Required parameter: The ID of the gift card
178
- # to link.
181
+ # to be linked.
179
182
  # @param [LinkCustomerToGiftCardRequest] body Required parameter: An object
180
183
  # containing the fields to POST for the request. See the corresponding
181
184
  # object definition for field details.
@@ -194,7 +197,7 @@ module Square
194
197
  # Prepare headers.
195
198
  _headers = {
196
199
  'accept' => 'application/json',
197
- 'content-type' => 'application/json; charset=utf-8'
200
+ 'Content-Type' => 'application/json'
198
201
  }
199
202
 
200
203
  # Prepare and execute HttpRequest.
@@ -214,8 +217,10 @@ module Square
214
217
  )
215
218
  end
216
219
 
217
- # Unlinks a customer from a gift card
218
- # @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.
219
224
  # @param [UnlinkCustomerFromGiftCardRequest] body Required parameter: An
220
225
  # object containing the fields to POST for the request. See the
221
226
  # corresponding object definition for field details.
@@ -234,7 +239,7 @@ module Square
234
239
  # Prepare headers.
235
240
  _headers = {
236
241
  'accept' => 'application/json',
237
- 'content-type' => 'application/json; charset=utf-8'
242
+ 'Content-Type' => 'application/json'
238
243
  }
239
244
 
240
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.
@@ -76,7 +76,7 @@ module Square
76
76
  # Prepare headers.
77
77
  _headers = {
78
78
  'accept' => 'application/json',
79
- 'content-type' => 'application/json; charset=utf-8'
79
+ 'Content-Type' => 'application/json'
80
80
  }
81
81
 
82
82
  # Prepare and execute HttpRequest.
@@ -188,7 +188,7 @@ module Square
188
188
  # Prepare headers.
189
189
  _headers = {
190
190
  'accept' => 'application/json',
191
- 'content-type' => 'application/json; charset=utf-8'
191
+ 'Content-Type' => 'application/json'
192
192
  }
193
193
 
194
194
  # Prepare and execute HttpRequest.
@@ -319,7 +319,7 @@ module Square
319
319
  # Prepare headers.
320
320
  _headers = {
321
321
  'accept' => 'application/json',
322
- 'content-type' => 'application/json; charset=utf-8'
322
+ 'Content-Type' => 'application/json'
323
323
  }
324
324
 
325
325
  # Prepare and execute HttpRequest.
@@ -365,7 +365,7 @@ module Square
365
365
  # Prepare headers.
366
366
  _headers = {
367
367
  'accept' => 'application/json',
368
- 'content-type' => 'application/json; charset=utf-8'
368
+ 'Content-Type' => 'application/json'
369
369
  }
370
370
 
371
371
  # Prepare and execute HttpRequest.
@@ -482,7 +482,7 @@ module Square
482
482
  # Prepare headers.
483
483
  _headers = {
484
484
  'accept' => 'application/json',
485
- 'content-type' => 'application/json; charset=utf-8'
485
+ 'Content-Type' => 'application/json'
486
486
  }
487
487
 
488
488
  # Prepare and execute HttpRequest.
@@ -641,7 +641,7 @@ module Square
641
641
  # Prepare headers.
642
642
  _headers = {
643
643
  'accept' => 'application/json',
644
- 'content-type' => 'application/json; charset=utf-8'
644
+ 'Content-Type' => 'application/json'
645
645
  }
646
646
 
647
647
  # Prepare and execute HttpRequest.
@@ -5,10 +5,9 @@ module Square
5
5
  super(config, http_call_back: http_call_back)
6
6
  end
7
7
 
8
- # Provides information of all locations of a business.
9
- # Many Square API endpoints require a `location_id` parameter.
10
- # The `id` field of the [`Location`]($m/Location) objects returned by this
11
- # endpoint correspond to that `location_id` parameter.
8
+ # Provides details about all of the seller's
9
+ # [locations](https://developer.squareup.com/docs/locations-api),
10
+ # including those with an inactive status.
12
11
  # @return [ListLocationsResponse Hash] response from the API call
13
12
  def list_locations
14
13
  # Prepare query url.
@@ -37,7 +36,17 @@ module Square
37
36
  )
38
37
  end
39
38
 
40
- # Creates a location.
39
+ # Creates a [location](https://developer.squareup.com/docs/locations-api).
40
+ # Creating new locations allows for separate configuration of receipt
41
+ # layouts, item prices,
42
+ # and sales reports. Developers can use locations to separate sales activity
43
+ # via applications
44
+ # that integrate with Square from sales activity elsewhere in a seller's
45
+ # account.
46
+ # Locations created programmatically with the Locations API will last
47
+ # forever and
48
+ # are visible to the seller for their own management, so ensure that
49
+ # each location has a sensible and unique name.
41
50
  # @param [CreateLocationRequest] body Required parameter: An object
42
51
  # containing the fields to POST for the request. See the corresponding
43
52
  # object definition for field details.
@@ -51,7 +60,7 @@ module Square
51
60
  # Prepare headers.
52
61
  _headers = {
53
62
  'accept' => 'application/json',
54
- 'content-type' => 'application/json; charset=utf-8'
63
+ 'Content-Type' => 'application/json'
55
64
  }
56
65
 
57
66
  # Prepare and execute HttpRequest.
@@ -71,12 +80,12 @@ module Square
71
80
  )
72
81
  end
73
82
 
74
- # Retrieves details of a location. You can specify "main"
75
- # as the location ID to retrieve details of the
76
- # main location.
83
+ # Retrieves details of a single location. Specify "main"
84
+ # as the location ID to retrieve details of the [main
85
+ # location](https://developer.squareup.com/docs/locations-api#about-the-main
86
+ # -location).
77
87
  # @param [String] location_id Required parameter: The ID of the location to
78
- # retrieve. If you specify the string "main", then the endpoint returns the
79
- # main location.
88
+ # retrieve. Specify the string "main" to return the main location.
80
89
  # @return [RetrieveLocationResponse Hash] response from the API call
81
90
  def retrieve_location(location_id:)
82
91
  # Prepare query url.
@@ -109,7 +118,7 @@ module Square
109
118
  )
110
119
  end
111
120
 
112
- # Updates a location.
121
+ # Updates a [location](https://developer.squareup.com/docs/locations-api).
113
122
  # @param [String] location_id Required parameter: The ID of the location to
114
123
  # update.
115
124
  # @param [UpdateLocationRequest] body Required parameter: An object
@@ -130,7 +139,7 @@ module Square
130
139
  # Prepare headers.
131
140
  _headers = {
132
141
  'accept' => 'application/json',
133
- 'content-type' => 'application/json; charset=utf-8'
142
+ 'Content-Type' => 'application/json'
134
143
  }
135
144
 
136
145
  # Prepare and execute HttpRequest.
@@ -20,7 +20,7 @@ module Square
20
20
  # Prepare headers.
21
21
  _headers = {
22
22
  'accept' => 'application/json',
23
- 'content-type' => 'application/json; charset=utf-8'
23
+ 'Content-Type' => 'application/json'
24
24
  }
25
25
 
26
26
  # Prepare and execute HttpRequest.
@@ -58,7 +58,7 @@ module Square
58
58
  # Prepare headers.
59
59
  _headers = {
60
60
  'accept' => 'application/json',
61
- 'content-type' => 'application/json; charset=utf-8'
61
+ 'Content-Type' => 'application/json'
62
62
  }
63
63
 
64
64
  # Prepare and execute HttpRequest.
@@ -124,12 +124,6 @@ module Square
124
124
  # [CalculateLoyaltyPoints]($e/Loyalty/CalculateLoyaltyPoints) to compute the
125
125
  # points
126
126
  # that you provide to this endpoint.
127
- # __Note:__ The country of the seller's Square account determines whether
128
- # tax is included in the purchase amount when accruing points for
129
- # spend-based and visit-based programs.
130
- # For more information, see [Availability of Square
131
- # Loyalty](https://developer.squareup.com/docs/loyalty-api/overview#loyalty-
132
- # market-availability).
133
127
  # @param [String] account_id Required parameter: The [loyalty
134
128
  # account]($m/LoyaltyAccount) ID to which to add the points.
135
129
  # @param [AccumulateLoyaltyPointsRequest] body Required parameter: An object
@@ -150,7 +144,7 @@ module Square
150
144
  # Prepare headers.
151
145
  _headers = {
152
146
  'accept' => 'application/json',
153
- 'content-type' => 'application/json; charset=utf-8'
147
+ 'Content-Type' => 'application/json'
154
148
  }
155
149
 
156
150
  # Prepare and execute HttpRequest.
@@ -195,7 +189,7 @@ module Square
195
189
  # Prepare headers.
196
190
  _headers = {
197
191
  'accept' => 'application/json',
198
- 'content-type' => 'application/json; charset=utf-8'
192
+ 'Content-Type' => 'application/json'
199
193
  }
200
194
 
201
195
  # Prepare and execute HttpRequest.
@@ -236,7 +230,7 @@ module Square
236
230
  # Prepare headers.
237
231
  _headers = {
238
232
  'accept' => 'application/json',
239
- 'content-type' => 'application/json; charset=utf-8'
233
+ 'Content-Type' => 'application/json'
240
234
  }
241
235
 
242
236
  # Prepare and execute HttpRequest.
@@ -336,8 +330,8 @@ module Square
336
330
  end
337
331
 
338
332
  # Calculates the points a purchase earns.
339
- # - If you are using the Orders API to manage orders, you provide `order_id`
340
- # in the request. The
333
+ # - If you are using the Orders API to manage orders, you provide the
334
+ # `order_id` in the request. The
341
335
  # endpoint calculates the points by reading the order.
342
336
  # - If you are not using the Orders API to manage orders, you provide the
343
337
  # purchase amount in
@@ -345,12 +339,9 @@ module Square
345
339
  # An application might call this endpoint to show the points that a buyer
346
340
  # can earn with the
347
341
  # specific purchase.
348
- # __Note:__ The country of the seller's Square account determines whether
349
- # tax is included in the purchase amount when accruing points for
350
- # spend-based and visit-based programs.
351
- # For more information, see [Availability of Square
352
- # Loyalty](https://developer.squareup.com/docs/loyalty-api/overview#loyalty-
353
- # market-availability).
342
+ # For spend-based and visit-based programs, the `tax_mode` setting of the
343
+ # accrual rule indicates how taxes should be treated for loyalty points
344
+ # accrual.
354
345
  # @param [String] program_id Required parameter: The [loyalty
355
346
  # program]($m/LoyaltyProgram) ID, which defines the rules for accruing
356
347
  # points.
@@ -372,7 +363,7 @@ module Square
372
363
  # Prepare headers.
373
364
  _headers = {
374
365
  'accept' => 'application/json',
375
- 'content-type' => 'application/json; charset=utf-8'
366
+ 'Content-Type' => 'application/json'
376
367
  }
377
368
 
378
369
  # Prepare and execute HttpRequest.
@@ -413,7 +404,7 @@ module Square
413
404
  # Prepare headers.
414
405
  _headers = {
415
406
  'accept' => 'application/json',
416
- 'content-type' => 'application/json; charset=utf-8'
407
+ 'Content-Type' => 'application/json'
417
408
  }
418
409
 
419
410
  # Prepare and execute HttpRequest.
@@ -452,7 +443,7 @@ module Square
452
443
  # Prepare headers.
453
444
  _headers = {
454
445
  'accept' => 'application/json',
455
- 'content-type' => 'application/json; charset=utf-8'
446
+ 'Content-Type' => 'application/json'
456
447
  }
457
448
 
458
449
  # Prepare and execute HttpRequest.
@@ -576,7 +567,7 @@ module Square
576
567
  # Prepare headers.
577
568
  _headers = {
578
569
  'accept' => 'application/json',
579
- 'content-type' => 'application/json; charset=utf-8'
570
+ 'Content-Type' => 'application/json'
580
571
  }
581
572
 
582
573
  # Prepare and execute HttpRequest.
@@ -6,9 +6,9 @@ module Square
6
6
  end
7
7
 
8
8
  # Generates code to authorize a mobile application to connect to a Square
9
- # card reader
10
- # Authorization codes are one-time-use and expire __60 minutes__ after being
11
- # issued.
9
+ # card reader.
10
+ # Authorization codes are one-time-use codes and expire 60 minutes after
11
+ # being issued.
12
12
  # __Important:__ The `Authorization` header you provide to this endpoint
13
13
  # must have the following format:
14
14
  # ```
@@ -31,7 +31,7 @@ module Square
31
31
  # Prepare headers.
32
32
  _headers = {
33
33
  'accept' => 'application/json',
34
- 'content-type' => 'application/json; charset=utf-8'
34
+ 'Content-Type' => 'application/json'
35
35
  }
36
36
 
37
37
  # Prepare and execute HttpRequest.
@@ -12,11 +12,11 @@ module Square
12
12
  # okens).
13
13
  # Renews an OAuth access token before it expires.
14
14
  # OAuth access tokens besides your application's personal access token
15
- # expire after __30 days__.
16
- # You can also renew expired tokens within __15 days__ of their expiration.
15
+ # expire after 30 days.
16
+ # You can also renew expired tokens within 15 days of their expiration.
17
17
  # You cannot renew an access token that has been expired for more than 15
18
18
  # days.
19
- # Instead, the associated user must re-complete the OAuth flow from the
19
+ # Instead, the associated user must recomplete the OAuth flow from the
20
20
  # beginning.
21
21
  # __Important:__ The `Authorization` header for this endpoint must have the
22
22
  # following format:
@@ -25,10 +25,10 @@ module Square
25
25
  # ```
26
26
  # Replace `APPLICATION_SECRET` with the application secret on the
27
27
  # Credentials
28
- # page in the [developer dashboard](https://developer.squareup.com/apps).
29
- # @param [String] client_id Required parameter: Your application ID,
30
- # available from the OAuth page for your application on the Developer
31
- # Dashboard.
28
+ # page in the [Developer Dashboard](https://developer.squareup.com/apps).
29
+ # @param [String] client_id Required parameter: Your application ID, which
30
+ # is available in the OAuth page in the [Developer
31
+ # Dashboard](https://developer.squareup.com/apps).
32
32
  # @param [RenewTokenRequest] body Required parameter: An object containing
33
33
  # the fields to POST for the request. See the corresponding object
34
34
  # definition for field details.
@@ -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
  'Authorization' => authorization
56
56
  }
57
57
 
@@ -101,7 +101,7 @@ module Square
101
101
  # Prepare headers.
102
102
  _headers = {
103
103
  'accept' => 'application/json',
104
- 'content-type' => 'application/json; charset=utf-8',
104
+ 'Content-Type' => 'application/json',
105
105
  'Authorization' => authorization
106
106
  }
107
107
 
@@ -150,7 +150,7 @@ module Square
150
150
  # Prepare headers.
151
151
  _headers = {
152
152
  'accept' => 'application/json',
153
- 'content-type' => 'application/json; charset=utf-8'
153
+ 'Content-Type' => 'application/json'
154
154
  }
155
155
 
156
156
  # Prepare and execute HttpRequest.
@@ -26,7 +26,7 @@ module Square
26
26
  # Prepare headers.
27
27
  _headers = {
28
28
  'accept' => 'application/json',
29
- 'content-type' => 'application/json; charset=utf-8'
29
+ 'Content-Type' => 'application/json'
30
30
  }
31
31
 
32
32
  # Prepare and execute HttpRequest.
@@ -62,7 +62,7 @@ module Square
62
62
  # Prepare headers.
63
63
  _headers = {
64
64
  'accept' => 'application/json',
65
- 'content-type' => 'application/json; charset=utf-8'
65
+ 'Content-Type' => 'application/json'
66
66
  }
67
67
 
68
68
  # Prepare and execute HttpRequest.
@@ -96,7 +96,7 @@ module Square
96
96
  # Prepare headers.
97
97
  _headers = {
98
98
  'accept' => 'application/json',
99
- 'content-type' => 'application/json; charset=utf-8'
99
+ 'Content-Type' => 'application/json'
100
100
  }
101
101
 
102
102
  # Prepare and execute HttpRequest.
@@ -133,7 +133,7 @@ module Square
133
133
  # Prepare headers.
134
134
  _headers = {
135
135
  'accept' => 'application/json',
136
- 'content-type' => 'application/json; charset=utf-8'
136
+ 'Content-Type' => 'application/json'
137
137
  }
138
138
 
139
139
  # Prepare and execute HttpRequest.
@@ -183,7 +183,7 @@ module Square
183
183
  # Prepare headers.
184
184
  _headers = {
185
185
  'accept' => 'application/json',
186
- 'content-type' => 'application/json; charset=utf-8'
186
+ 'Content-Type' => 'application/json'
187
187
  }
188
188
 
189
189
  # Prepare and execute HttpRequest.
@@ -276,7 +276,7 @@ module Square
276
276
  # Prepare headers.
277
277
  _headers = {
278
278
  'accept' => 'application/json',
279
- 'content-type' => 'application/json; charset=utf-8'
279
+ 'Content-Type' => 'application/json'
280
280
  }
281
281
 
282
282
  # Prepare and execute HttpRequest.
@@ -335,7 +335,7 @@ module Square
335
335
  # Prepare headers.
336
336
  _headers = {
337
337
  'accept' => 'application/json',
338
- 'content-type' => 'application/json; charset=utf-8'
338
+ 'Content-Type' => 'application/json'
339
339
  }
340
340
 
341
341
  # Prepare and execute HttpRequest.
@@ -107,7 +107,7 @@ module Square
107
107
  # Prepare headers.
108
108
  _headers = {
109
109
  'accept' => 'application/json',
110
- 'content-type' => 'application/json; charset=utf-8'
110
+ 'Content-Type' => 'application/json'
111
111
  }
112
112
 
113
113
  # Prepare and execute HttpRequest.
@@ -155,7 +155,7 @@ module Square
155
155
  # Prepare headers.
156
156
  _headers = {
157
157
  'accept' => 'application/json',
158
- 'content-type' => 'application/json; charset=utf-8'
158
+ 'Content-Type' => 'application/json'
159
159
  }
160
160
 
161
161
  # Prepare and execute HttpRequest.
@@ -232,7 +232,7 @@ module Square
232
232
  # Prepare headers.
233
233
  _headers = {
234
234
  'accept' => 'application/json',
235
- 'content-type' => 'application/json; charset=utf-8'
235
+ 'Content-Type' => 'application/json'
236
236
  }
237
237
 
238
238
  # Prepare and execute HttpRequest.
@@ -314,7 +314,7 @@ module Square
314
314
  # Prepare headers.
315
315
  _headers = {
316
316
  'accept' => 'application/json',
317
- 'content-type' => 'application/json; charset=utf-8'
317
+ 'Content-Type' => 'application/json'
318
318
  }
319
319
 
320
320
  # Prepare and execute HttpRequest.