square.rb 15.0.0.20211020 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25322287d3387bc053e23f58c5a3b74476789df2145f9648f46b330517aa7574
4
- data.tar.gz: a5476f517732ce5df169b402fded9909cefa155e02c90d9af5996e4dc087a887
3
+ metadata.gz: 25ab6d01177792b1eb326af1a782a12ab26eff2678b44666aac14954907740e2
4
+ data.tar.gz: 1ba81bfd71af7fd3124015de59166e33401f0e230301d4ea45e6c70438380741
5
5
  SHA512:
6
- metadata.gz: 2d30c67ff2493a1dded81c4078d3549c0c195f092f9826735cd1f98bb6749153bd45d6614419f95f6d6fb32ed505459abc11ab0508b3fa51f0ad089f8a0cce51
7
- data.tar.gz: 2b4a9e0bdb771a3658ec3a46b9838421c154ff1b280da9d27e589111dbb010c2d3c5672ae38d5b22e52ae26f864ae6d8cd76e53effc65e65fdefafcf0b949aa4
6
+ metadata.gz: c0fa97ef6d70db8247d6a14cb946a942f9327faa37e881ce8628cd8f68e38bb6c91238cf10419dc915597701b69c73ecb0f1813d45be4d6f37eaa837c1646364
7
+ data.tar.gz: a9337cd596b733099e84765048134f4edc183f548ac6638da50257bfb0d3b0529271d17c509a1f9b34342abe9e7184d56ec4fe1f292ea1fa2ad36036228384d1
data/README.md CHANGED
@@ -349,4 +349,4 @@ You can also use the Square API to create applications or services that work wit
349
349
  [Snippets]: doc/api/snippets.md
350
350
  [Cards]: doc/api/cards.md
351
351
  [Gift Cards]: doc/api/gift-cards.md
352
- [Gift Card Activities]: doc/api/gift-card-activities.md
352
+ [Gift Card Activities]: doc/api/gift-card-activities.md
@@ -30,7 +30,7 @@ module Square
30
30
  # Prepare headers.
31
31
  _headers = {
32
32
  'accept' => 'application/json',
33
- 'content-type' => 'application/json; charset=utf-8'
33
+ 'Content-Type' => 'application/json'
34
34
  }
35
35
 
36
36
  # Prepare and execute HttpRequest.
@@ -8,7 +8,7 @@ module Square
8
8
  @http_call_back = http_call_back
9
9
 
10
10
  @global_headers = {
11
- 'user-agent' => 'Square-Ruby-SDK/15.0.0.20211020',
11
+ 'user-agent' => 'Square-Ruby-SDK/16.0.0.20211117',
12
12
  'Square-Version' => config.square_version
13
13
  }
14
14
  end
@@ -5,6 +5,66 @@ module Square
5
5
  super(config, http_call_back: http_call_back)
6
6
  end
7
7
 
8
+ # Retrieve a collection of bookings.
9
+ # @param [Integer] limit Optional parameter: The maximum number of results
10
+ # per page to return in a paged response.
11
+ # @param [String] cursor Optional parameter: The pagination cursor from the
12
+ # preceding response to return the next page of the results. Do not set this
13
+ # when retrieving the first page of the results.
14
+ # @param [String] team_member_id Optional parameter: The team member for
15
+ # whom to retrieve bookings. If this is not set, bookings of all members are
16
+ # retrieved.
17
+ # @param [String] location_id Optional parameter: The location for which to
18
+ # retrieve bookings. If this is not set, all locations' bookings are
19
+ # retrieved.
20
+ # @param [String] start_at_min Optional parameter: The RFC 3339 timestamp
21
+ # specifying the earliest of the start time. If this is not set, the current
22
+ # time is used.
23
+ # @param [String] start_at_max Optional parameter: The RFC 3339 timestamp
24
+ # specifying the latest of the start time. If this is not set, the time of
25
+ # 31 days after `start_at_min` is used.
26
+ # @return [ListBookingsResponse Hash] response from the API call
27
+ def list_bookings(limit: nil,
28
+ cursor: nil,
29
+ team_member_id: nil,
30
+ location_id: nil,
31
+ start_at_min: nil,
32
+ start_at_max: nil)
33
+ # Prepare query url.
34
+ _query_builder = config.get_base_uri
35
+ _query_builder << '/v2/bookings'
36
+ _query_builder = APIHelper.append_url_with_query_parameters(
37
+ _query_builder,
38
+ 'limit' => limit,
39
+ 'cursor' => cursor,
40
+ 'team_member_id' => team_member_id,
41
+ 'location_id' => location_id,
42
+ 'start_at_min' => start_at_min,
43
+ 'start_at_max' => start_at_max
44
+ )
45
+ _query_url = APIHelper.clean_url _query_builder
46
+
47
+ # Prepare headers.
48
+ _headers = {
49
+ 'accept' => 'application/json'
50
+ }
51
+
52
+ # Prepare and execute HttpRequest.
53
+ _request = config.http_client.get(
54
+ _query_url,
55
+ headers: _headers
56
+ )
57
+ OAuth2.apply(config, _request)
58
+ _response = execute_request(_request)
59
+
60
+ # Return appropriate response type.
61
+ decoded = APIHelper.json_deserialize(_response.raw_body)
62
+ _errors = APIHelper.map_response(decoded, ['errors'])
63
+ ApiResponse.new(
64
+ _response, data: decoded, errors: _errors
65
+ )
66
+ end
67
+
8
68
  # Creates a booking.
9
69
  # @param [CreateBookingRequest] body Required parameter: An object
10
70
  # containing the fields to POST for the request. See the corresponding
@@ -19,7 +79,7 @@ module Square
19
79
  # Prepare headers.
20
80
  _headers = {
21
81
  'accept' => 'application/json',
22
- 'content-type' => 'application/json; charset=utf-8'
82
+ 'Content-Type' => 'application/json'
23
83
  }
24
84
 
25
85
  # Prepare and execute HttpRequest.
@@ -53,7 +113,7 @@ module Square
53
113
  # Prepare headers.
54
114
  _headers = {
55
115
  'accept' => 'application/json',
56
- 'content-type' => 'application/json; charset=utf-8'
116
+ 'Content-Type' => 'application/json'
57
117
  }
58
118
 
59
119
  # Prepare and execute HttpRequest.
@@ -242,7 +302,7 @@ module Square
242
302
  # Prepare headers.
243
303
  _headers = {
244
304
  'accept' => 'application/json',
245
- 'content-type' => 'application/json; charset=utf-8'
305
+ 'Content-Type' => 'application/json'
246
306
  }
247
307
 
248
308
  # Prepare and execute HttpRequest.
@@ -283,7 +343,7 @@ module Square
283
343
  # Prepare headers.
284
344
  _headers = {
285
345
  'accept' => 'application/json',
286
- 'content-type' => 'application/json; charset=utf-8'
346
+ 'Content-Type' => 'application/json'
287
347
  }
288
348
 
289
349
  # 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.
@@ -29,7 +29,7 @@ module Square
29
29
  # Prepare headers.
30
30
  _headers = {
31
31
  'accept' => 'application/json',
32
- 'content-type' => 'application/json; charset=utf-8'
32
+ 'Content-Type' => 'application/json'
33
33
  }
34
34
 
35
35
  # Prepare and execute HttpRequest.
@@ -68,7 +68,7 @@ module Square
68
68
  # Prepare headers.
69
69
  _headers = {
70
70
  'accept' => 'application/json',
71
- 'content-type' => 'application/json; charset=utf-8'
71
+ 'Content-Type' => 'application/json'
72
72
  }
73
73
 
74
74
  # Prepare and execute HttpRequest.
@@ -115,7 +115,7 @@ module Square
115
115
  # Prepare headers.
116
116
  _headers = {
117
117
  'accept' => 'application/json',
118
- 'content-type' => 'application/json; charset=utf-8'
118
+ 'Content-Type' => 'application/json'
119
119
  }
120
120
 
121
121
  # Prepare and execute HttpRequest.
@@ -307,7 +307,7 @@ module Square
307
307
  # Prepare headers.
308
308
  _headers = {
309
309
  'accept' => 'application/json',
310
- 'content-type' => 'application/json; charset=utf-8'
310
+ 'Content-Type' => 'application/json'
311
311
  }
312
312
 
313
313
  # Prepare and execute HttpRequest.
@@ -462,7 +462,7 @@ module Square
462
462
  # Prepare headers.
463
463
  _headers = {
464
464
  'accept' => 'application/json',
465
- 'content-type' => 'application/json; charset=utf-8'
465
+ 'Content-Type' => 'application/json'
466
466
  }
467
467
 
468
468
  # Prepare and execute HttpRequest.
@@ -512,7 +512,7 @@ module Square
512
512
  # Prepare headers.
513
513
  _headers = {
514
514
  'accept' => 'application/json',
515
- 'content-type' => 'application/json; charset=utf-8'
515
+ 'Content-Type' => 'application/json'
516
516
  }
517
517
 
518
518
  # Prepare and execute HttpRequest.
@@ -548,7 +548,7 @@ module Square
548
548
  # Prepare headers.
549
549
  _headers = {
550
550
  'accept' => 'application/json',
551
- 'content-type' => 'application/json; charset=utf-8'
551
+ 'Content-Type' => 'application/json'
552
552
  }
553
553
 
554
554
  # Prepare and execute HttpRequest.
@@ -584,7 +584,7 @@ module Square
584
584
  # Prepare headers.
585
585
  _headers = {
586
586
  'accept' => 'application/json',
587
- 'content-type' => 'application/json; charset=utf-8'
587
+ 'Content-Type' => 'application/json'
588
588
  }
589
589
 
590
590
  # Prepare and execute HttpRequest.
@@ -28,7 +28,7 @@ module Square
28
28
  # Prepare headers.
29
29
  _headers = {
30
30
  'accept' => 'application/json',
31
- 'content-type' => 'application/json; charset=utf-8'
31
+ 'Content-Type' => 'application/json'
32
32
  }
33
33
 
34
34
  # Prepare and execute HttpRequest.
@@ -66,7 +66,7 @@ module Square
66
66
  # Prepare headers.
67
67
  _headers = {
68
68
  'accept' => 'application/json',
69
- 'content-type' => 'application/json; charset=utf-8'
69
+ 'Content-Type' => 'application/json'
70
70
  }
71
71
 
72
72
  # Prepare and execute HttpRequest.
@@ -177,7 +177,7 @@ module Square
177
177
  # Prepare headers.
178
178
  _headers = {
179
179
  'accept' => 'application/json',
180
- 'content-type' => 'application/json; charset=utf-8'
180
+ 'Content-Type' => 'application/json'
181
181
  }
182
182
 
183
183
  # Prepare and execute HttpRequest.
@@ -88,7 +88,7 @@ module Square
88
88
  # Prepare headers.
89
89
  _headers = {
90
90
  'accept' => 'application/json',
91
- 'content-type' => 'application/json; charset=utf-8'
91
+ 'Content-Type' => 'application/json'
92
92
  }
93
93
 
94
94
  # Prepare and execute HttpRequest.
@@ -132,7 +132,7 @@ module Square
132
132
  # Prepare headers.
133
133
  _headers = {
134
134
  'accept' => 'application/json',
135
- 'content-type' => 'application/json; charset=utf-8'
135
+ 'Content-Type' => 'application/json'
136
136
  }
137
137
 
138
138
  # Prepare and execute HttpRequest.
@@ -274,7 +274,7 @@ module Square
274
274
  # Prepare headers.
275
275
  _headers = {
276
276
  'accept' => 'application/json',
277
- 'content-type' => 'application/json; charset=utf-8'
277
+ 'Content-Type' => 'application/json'
278
278
  }
279
279
 
280
280
  # Prepare and execute HttpRequest.
@@ -320,7 +320,7 @@ module Square
320
320
  # Prepare headers.
321
321
  _headers = {
322
322
  'accept' => 'application/json',
323
- 'content-type' => 'application/json; charset=utf-8'
323
+ 'Content-Type' => 'application/json'
324
324
  }
325
325
 
326
326
  # Prepare and execute HttpRequest.
@@ -74,7 +74,7 @@ module Square
74
74
  # Prepare headers.
75
75
  _headers = {
76
76
  'accept' => 'application/json',
77
- 'content-type' => 'application/json; charset=utf-8'
77
+ 'Content-Type' => 'application/json'
78
78
  }
79
79
 
80
80
  # Prepare and execute HttpRequest.
@@ -259,7 +259,7 @@ module Square
259
259
  # Prepare headers.
260
260
  _headers = {
261
261
  'accept' => 'application/json',
262
- 'content-type' => 'application/json; charset=utf-8'
262
+ 'Content-Type' => 'application/json'
263
263
  }
264
264
 
265
265
  # Prepare and execute HttpRequest.
@@ -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,
@@ -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.