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 +4 -4
- data/LICENSE +1 -1
- data/lib/square/api/base_api.rb +1 -1
- data/lib/square/api/catalog_api.rb +3 -3
- data/lib/square/api/invoices_api.rb +2 -2
- data/lib/square/api/v1_employees_api.rb +0 -2
- data/lib/square/client.rb +2 -2
- data/lib/square/configuration.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65883291fee1f3779feb258fe5df4efdc171b581e34b9245be01e143ed8cd819
|
4
|
+
data.tar.gz: 8665e1c3187d85b979970ace13887e6bf18688e47828af12671cd6e939994174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d7b11eded83cbbbfa7e1985e9b7456568f26353681380ab370446045d15c2d8882a048ef940ef9c34b36cd6ca541a421e3cea740b38db85a7048e08b0bbb08e
|
7
|
+
data.tar.gz: 88a9b4f2a1bd0ec750b83ecc8ce582bd8e7f3a8cfe30c203feadb8e13851946780a2c2ef92be350448204fa76aadcb98552d7281a3b9dea1e33f01c13aa21ba3
|
data/LICENSE
CHANGED
data/lib/square/api/base_api.rb
CHANGED
@@ -433,10 +433,10 @@ module Square
|
|
433
433
|
)
|
434
434
|
end
|
435
435
|
|
436
|
-
# Searches for [CatalogObject](#type-CatalogObject) of any
|
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:
|
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:)
|
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
|
-
'8.
|
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: '
|
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,
|
data/lib/square/configuration.rb
CHANGED
@@ -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: '
|
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.
|
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:
|
11
|
+
date: 2021-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|