square.rb 5.2.0.20200422 → 5.2.1.20200422

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f25be21c125d2034bf9d8ba530dce3255ebe7d6abb9d3d2ae8f623c3d103e6f
4
- data.tar.gz: 70146041c8c1779a1a9c20de825004830db2dc8f08b4dad40baf207d7962bec5
3
+ metadata.gz: 41cfb9a02d27179f6883fc471766330b490d3bbb0838e3b9cf2f132710509d9c
4
+ data.tar.gz: 70fd99e965825612c90a9715ba6cac1c78908c7d99438e1c396c4a9189a1bf0b
5
5
  SHA512:
6
- metadata.gz: fd597786c9a36e84faa3abd2aebc872fb139590f0b497a73619a96056936d582a317a48013dfa4b6ec0f61f373b30ec3341896a6e8a525ff8c6822435ae4042b
7
- data.tar.gz: d4aebec4b15d78102afa75ac589daa53a8cffaef3b25848d8abe6691cfff93f75b549b1fe6d5a4603ba97d8bb7d3fab948b98af22e186d55e8506ef5dce4e027
6
+ metadata.gz: 583b69e6ec4e8e8daae6a6235d0b06bb118b03998b2c3a87b7759cf2e1d413c6a18300284fd9272d589f30191916b6aca657109bd3db8f82d14d337c42a4a871
7
+ data.tar.gz: 3cb3497ba4677841013ba666bd755375d45577bfee96534e3f7111168ab4c7312faf15423777258c886b99d2edd5f0b2a7f2dd4ce48eecef5a7d9758e04aa673
@@ -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/5.2.0.20200422',
11
+ 'user-agent' => 'Square-Ruby-SDK/5.2.1.20200422',
12
12
  'Square-Version' => '2020-04-22'
13
13
  }
14
14
  end
@@ -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 at least the `name` value of the group.
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 customer membership from a customer group.
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 customer membership to a customer group.
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
@@ -4,7 +4,7 @@ module Square
4
4
  attr_reader :config
5
5
 
6
6
  def sdk_version
7
- '5.2.0.20200422'
7
+ '5.2.1.20200422'
8
8
  end
9
9
 
10
10
  def square_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: square.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0.20200422
4
+ version: 5.2.1.20200422
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square Developer Platform