square.rb 5.2.0.20200422 → 5.2.1.20200422
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41cfb9a02d27179f6883fc471766330b490d3bbb0838e3b9cf2f132710509d9c
|
4
|
+
data.tar.gz: 70fd99e965825612c90a9715ba6cac1c78908c7d99438e1c396c4a9189a1bf0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 583b69e6ec4e8e8daae6a6235d0b06bb118b03998b2c3a87b7759cf2e1d413c6a18300284fd9272d589f30191916b6aca657109bd3db8f82d14d337c42a4a871
|
7
|
+
data.tar.gz: 3cb3497ba4677841013ba666bd755375d45577bfee96534e3f7111168ab4c7312faf15423777258c886b99d2edd5f0b2a7f2dd4ce48eecef5a7d9758e04aa673
|
data/lib/square/api/base_api.rb
CHANGED
@@ -42,7 +42,7 @@ module Square
|
|
42
42
|
end
|
43
43
|
|
44
44
|
# Creates a new customer group for a business.
|
45
|
-
# The request must include
|
45
|
+
# The request must include the `name` value of the group.
|
46
46
|
# @param [CreateCustomerGroupRequest] body Required parameter: An object
|
47
47
|
# containing the fields to POST for the request. See the corresponding
|
48
48
|
# object definition for field details.
|
@@ -11,19 +11,14 @@ module Square
|
|
11
11
|
# of query results. See the [Pagination
|
12
12
|
# guide](https://developer.squareup.com/docs/docs/working-with-apis/paginati
|
13
13
|
# on) for more information.
|
14
|
-
# @param [Long] limit Optional parameter: Sets the maximum number of results
|
15
|
-
# to be returned in a single page. Limit values outside the supported range
|
16
|
-
# are ignored. Minimum value: `1` Maximum value: `1,000`
|
17
14
|
# @return [ListCustomerSegmentsResponse Hash] response from the API call
|
18
|
-
def list_customer_segments(cursor: nil
|
19
|
-
limit: nil)
|
15
|
+
def list_customer_segments(cursor: nil)
|
20
16
|
# Prepare query url.
|
21
17
|
_query_builder = config.get_base_uri
|
22
18
|
_query_builder << '/v2/customers/segments'
|
23
19
|
_query_builder = APIHelper.append_url_with_query_parameters(
|
24
20
|
_query_builder,
|
25
|
-
'cursor' => cursor
|
26
|
-
'limit' => limit
|
21
|
+
'cursor' => cursor
|
27
22
|
)
|
28
23
|
_query_url = APIHelper.clean_url _query_builder
|
29
24
|
|
@@ -324,7 +324,7 @@ module Square
|
|
324
324
|
ApiResponse.new(_response, data: decoded, errors: _errors)
|
325
325
|
end
|
326
326
|
|
327
|
-
# Removes a
|
327
|
+
# Removes a group membership from a customer.
|
328
328
|
# The customer is identified by the `customer_id` value
|
329
329
|
# and the customer group is identified by the `group_id` value.
|
330
330
|
# @param [String] customer_id Required parameter: The ID of the customer to
|
@@ -363,7 +363,7 @@ module Square
|
|
363
363
|
ApiResponse.new(_response, data: decoded, errors: _errors)
|
364
364
|
end
|
365
365
|
|
366
|
-
# Adds a
|
366
|
+
# Adds a group membership to a customer.
|
367
367
|
# The customer is identified by the `customer_id` value
|
368
368
|
# and the customer group is identified by the `group_id` value.
|
369
369
|
# @param [String] customer_id Required parameter: The ID of the customer to
|
data/lib/square/client.rb
CHANGED