square.rb 8.0.0.20201216 → 8.1.0.20210121

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: 50abb148c3dd6d03e86147fc8f95f3f58eeafeabb22d81c65a5c58b87b0b1060
4
- data.tar.gz: 26371d6cdfa25de275bfef471b8145e43eaeccc7dc661d0abac57f9b643645aa
3
+ metadata.gz: 65883291fee1f3779feb258fe5df4efdc171b581e34b9245be01e143ed8cd819
4
+ data.tar.gz: 8665e1c3187d85b979970ace13887e6bf18688e47828af12671cd6e939994174
5
5
  SHA512:
6
- metadata.gz: a404bd6129da3f1ed2cdeaa8080d05c4ec75fe2ae93913c9c6e01de706f8dfc8487fb8696d431072a87511d9036fa6fa7cc797e6765f326c382d45ba0658d719
7
- data.tar.gz: 8000f93f083e58f8c6c820520f535cdf5015f1184ac0bd2febfb3a4448e0850a9ea168e997f7a42f54435255a3beba8a2c74615fd2a155e05fe8cb8bcd7c1652
6
+ metadata.gz: 7d7b11eded83cbbbfa7e1985e9b7456568f26353681380ab370446045d15c2d8882a048ef940ef9c34b36cd6ca541a421e3cea740b38db85a7048e08b0bbb08e
7
+ data.tar.gz: 88a9b4f2a1bd0ec750b83ecc8ce582bd8e7f3a8cfe30c203feadb8e13851946780a2c2ef92be350448204fa76aadcb98552d7281a3b9dea1e33f01c13aa21ba3
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2020 Square, Inc.
1
+ Copyright 2121 Square, Inc.
2
2
  Licensed under the Apache License, Version 2.0 (the "License");
3
3
  you may not use this file except in compliance with the License.
4
4
  You may obtain a copy of the License at
@@ -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/8.0.0.20201216',
11
+ 'user-agent' => 'Square-Ruby-SDK/8.1.0.20210121',
12
12
  'Square-Version' => config.square_version
13
13
  }
14
14
  end
@@ -433,10 +433,10 @@ module Square
433
433
  )
434
434
  end
435
435
 
436
- # Searches for [CatalogObject](#type-CatalogObject) of any types against
436
+ # Searches for [CatalogObject](#type-CatalogObject) of any type by matching
437
437
  # supported search attribute values,
438
438
  # excluding custom attribute values on items or item variations, against one
439
- # or more of the specified query expressions,
439
+ # or more of the specified query expressions.
440
440
  # This (`SearchCatalogObjects`) endpoint differs from the
441
441
  # [SearchCatalogItems](#endpoint-Catalog-SearchCatalogItems)
442
442
  # endpoint in the following aspects:
@@ -486,7 +486,7 @@ module Square
486
486
  # Searches for catalog items or item variations by matching supported search
487
487
  # attribute values, including
488
488
  # custom attribute values, against one or more of the specified query
489
- # expressions,
489
+ # expressions.
490
490
  # This (`SearchCatalogItems`) endpoint differs from the
491
491
  # [SearchCatalogObjects](#endpoint-Catalog-SearchCatalogObjects)
492
492
  # endpoint in the following aspects:
@@ -264,8 +264,8 @@ module Square
264
264
 
265
265
  # Cancels an invoice. The seller cannot collect payments for
266
266
  # the canceled invoice.
267
- # You cannot cancel an invoice in a terminal state: `PAID`, `REFUNDED`,
268
- # `CANCELED`, or `FAILED`.
267
+ # You cannot cancel an invoice in the `DRAFT` state or in a terminal state:
268
+ # `PAID`, `REFUNDED`, `CANCELED`, or `FAILED`.
269
269
  # @param [String] invoice_id Required parameter: The ID of the
270
270
  # [invoice](#type-invoice) to cancel.
271
271
  # @param [CancelInvoiceRequest] body Required parameter: An object
@@ -530,11 +530,9 @@ module Square
530
530
  end
531
531
 
532
532
  # Provides the details for a single timecard.
533
- # <aside>
534
533
  # Only approved accounts can manage their employees with Square.
535
534
  # Unapproved accounts cannot use employee management features with the
536
535
  # API.
537
- # </aside>
538
536
  # @param [String] timecard_id Required parameter: The timecard's ID.
539
537
  # @return [V1Timecard Hash] response from the API call
540
538
  def retrieve_timecard(timecard_id:)
@@ -4,7 +4,7 @@ module Square
4
4
  attr_reader :config
5
5
 
6
6
  def sdk_version
7
- '8.0.0.20201216'
7
+ '8.1.0.20210121'
8
8
  end
9
9
 
10
10
  def square_version
@@ -193,7 +193,7 @@ module Square
193
193
 
194
194
  def initialize(timeout: 60, max_retries: 0, retry_interval: 1,
195
195
  backoff_factor: 1, environment: 'production',
196
- square_version: '2020-12-16', access_token: 'TODO: Replace',
196
+ square_version: '2021-01-21', access_token: 'TODO: Replace',
197
197
  additional_headers: {}, config: nil)
198
198
  @config = if config.nil?
199
199
  Configuration.new(timeout: timeout, max_retries: max_retries,
@@ -22,7 +22,7 @@ module Square
22
22
 
23
23
  def initialize(timeout: 60, max_retries: 0, retry_interval: 1,
24
24
  backoff_factor: 1, environment: 'production',
25
- square_version: '2020-12-16', access_token: 'TODO: Replace',
25
+ square_version: '2021-01-21', access_token: 'TODO: Replace',
26
26
  additional_headers: {})
27
27
  # The value to use for connection timeout
28
28
  @timeout = timeout
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: square.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0.20201216
4
+ version: 8.1.0.20210121
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square Developer Platform
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-16 00:00:00.000000000 Z
11
+ date: 2021-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging