square_connect 2.6.0.192 → 2.6.1.197
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/README.md +1 -1
- data/docs/OrdersApi.md +1 -1
- data/lib/square_connect/api/orders_api.rb +2 -2
- data/lib/square_connect/api/transactions_api.rb +8 -8
- data/lib/square_connect/api_client.rb +1 -1
- data/lib/square_connect/models/error_code.rb +1 -1
- data/lib/square_connect/models/v1_refund.rb +2 -2
- data/lib/square_connect/models/v1_settlement_entry.rb +2 -2
- data/lib/square_connect/version.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: fd9975892046a889120aeef131c8b291c9c16d92234d30294d10a01fdad019e0
|
4
|
+
data.tar.gz: dd7c5160554c3200ddfafba6a3d20c752e513f21cea5f5216168fb86a0232d45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d9180856149f9f5f2d49941f87890d36cd717436672065b32baa9a68775c41ebb711955e268e3035b2a9ee13f467c9c0098eafa8e80f1fa80da771fcc91568b
|
7
|
+
data.tar.gz: 3368a01ac9c28ddf2fe6cf17e1e4d69e85f0380b3a1585cda6720e3180634f28d62d2a535f30d14dec4f6c6756474047f2fbc6170ae2237bbfa88b9cd1580f4e
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -10,7 +10,7 @@ for the specification and template files we used to generate this.
|
|
10
10
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
11
11
|
|
12
12
|
- API version: 2.0
|
13
|
-
- Package version: 2.6.
|
13
|
+
- Package version: 2.6.1
|
14
14
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
15
15
|
|
16
16
|
For more information, please visit [https://squareup.com/developers](https://squareup.com/developers)
|
data/docs/OrdersApi.md
CHANGED
@@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|
13
13
|
|
14
14
|
BatchRetrieveOrders
|
15
15
|
|
16
|
-
Retrieves a set of [Order](#type-order)s by their IDs. If a
|
16
|
+
Retrieves a set of [Order](#type-order)s by their IDs. If a given Order ID does not exist, the ID is ignored instead of generating an error.
|
17
17
|
|
18
18
|
### Example
|
19
19
|
```ruby
|
@@ -18,7 +18,7 @@ module SquareConnect
|
|
18
18
|
end
|
19
19
|
|
20
20
|
# BatchRetrieveOrders
|
21
|
-
# Retrieves a set of [Order](#type-order)s by their IDs. If a
|
21
|
+
# Retrieves a set of [Order](#type-order)s by their IDs. If a given Order ID does not exist, the ID is ignored instead of generating an error.
|
22
22
|
# @param location_id The ID of the orders' associated location.
|
23
23
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
24
24
|
# @param [Hash] opts the optional parameters
|
@@ -29,7 +29,7 @@ module SquareConnect
|
|
29
29
|
end
|
30
30
|
|
31
31
|
# BatchRetrieveOrders
|
32
|
-
# Retrieves a set of [Order](#type-order)s by their IDs. If a
|
32
|
+
# Retrieves a set of [Order](#type-order)s by their IDs. If a given Order ID does not exist, the ID is ignored instead of generating an error.
|
33
33
|
# @param location_id The ID of the orders' associated location.
|
34
34
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
35
35
|
# @param [Hash] opts the optional parameters
|
@@ -19,8 +19,8 @@ module SquareConnect
|
|
19
19
|
|
20
20
|
# CaptureTransaction
|
21
21
|
# Captures a transaction that was created with the [Charge](#endpoint-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/articles/delayed-capture-transactions/) for more information.
|
22
|
-
# @param location_id
|
23
|
-
# @param transaction_id
|
22
|
+
# @param location_id
|
23
|
+
# @param transaction_id
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [CaptureTransactionResponse]
|
26
26
|
def capture_transaction(location_id, transaction_id, opts = {})
|
@@ -30,8 +30,8 @@ module SquareConnect
|
|
30
30
|
|
31
31
|
# CaptureTransaction
|
32
32
|
# Captures a transaction that was created with the [Charge](#endpoint-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/articles/delayed-capture-transactions/) for more information.
|
33
|
-
# @param location_id
|
34
|
-
# @param transaction_id
|
33
|
+
# @param location_id
|
34
|
+
# @param transaction_id
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(CaptureTransactionResponse, Fixnum, Hash)>] CaptureTransactionResponse data, response status code and response headers
|
37
37
|
def capture_transaction_with_http_info(location_id, transaction_id, opts = {})
|
@@ -387,8 +387,8 @@ module SquareConnect
|
|
387
387
|
|
388
388
|
# VoidTransaction
|
389
389
|
# Cancels a transaction that was created with the [Charge](#endpoint-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/articles/delayed-capture-transactions/) for more information.
|
390
|
-
# @param location_id
|
391
|
-
# @param transaction_id
|
390
|
+
# @param location_id
|
391
|
+
# @param transaction_id
|
392
392
|
# @param [Hash] opts the optional parameters
|
393
393
|
# @return [VoidTransactionResponse]
|
394
394
|
def void_transaction(location_id, transaction_id, opts = {})
|
@@ -398,8 +398,8 @@ module SquareConnect
|
|
398
398
|
|
399
399
|
# VoidTransaction
|
400
400
|
# Cancels a transaction that was created with the [Charge](#endpoint-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/articles/delayed-capture-transactions/) for more information.
|
401
|
-
# @param location_id
|
402
|
-
# @param transaction_id
|
401
|
+
# @param location_id
|
402
|
+
# @param transaction_id
|
403
403
|
# @param [Hash] opts the optional parameters
|
404
404
|
# @return [Array<(VoidTransactionResponse, Fixnum, Hash)>] VoidTransactionResponse data, response status code and response headers
|
405
405
|
def void_transaction_with_http_info(location_id, transaction_id, opts = {})
|
@@ -30,7 +30,7 @@ module SquareConnect
|
|
30
30
|
@config = config
|
31
31
|
|
32
32
|
# Construct user agent string. Returns slightly different string for JRuby
|
33
|
-
@user_agent = "Square-Connect-Ruby/2.
|
33
|
+
@user_agent = "Square-Connect-Ruby/2.6.1"
|
34
34
|
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => "application/json",
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
module SquareConnect
|
13
13
|
|
14
14
|
class V1Refund
|
15
|
-
# The type of refund
|
15
|
+
# The type of refund
|
16
16
|
attr_accessor :type
|
17
17
|
|
18
18
|
# The merchant-specified reason for the refund.
|
@@ -30,7 +30,7 @@ module SquareConnect
|
|
30
30
|
# The Square-issued ID of the payment the refund is applied to.
|
31
31
|
attr_accessor :payment_id
|
32
32
|
|
33
|
-
#
|
33
|
+
#
|
34
34
|
attr_accessor :merchant_id
|
35
35
|
|
36
36
|
class EnumAttributeValidator
|
@@ -102,7 +102,7 @@ module SquareConnect
|
|
102
102
|
# Check to see if the all the properties in the model are valid
|
103
103
|
# @return true if the model is valid
|
104
104
|
def valid?
|
105
|
-
type_validator = EnumAttributeValidator.new('String', ["ADJUSTMENT", "BALANCE_CHARGE", "CHARGE", "FREE_PROCESSING", "HOLD_ADJUSTMENT", "PAID_SERVICE_FEE", "PAID_SERVICE_FEE_REFUND", "REDEMPTION_CODE", "REFUND", "RETURNED_PAYOUT", "SQUARE_CAPITAL_ADVANCE", "SQUARE_CAPITAL_PAYMENT", "SQUARE_CAPITAL_REVERSED_PAYMENT", "SUBSCRIPTION_FEE", "SUBSCRIPTION_FEE_REFUND", "
|
105
|
+
type_validator = EnumAttributeValidator.new('String', ["ADJUSTMENT", "BALANCE_CHARGE", "CHARGE", "FREE_PROCESSING", "HOLD_ADJUSTMENT", "PAID_SERVICE_FEE", "PAID_SERVICE_FEE_REFUND", "REDEMPTION_CODE", "REFUND", "RETURNED_PAYOUT", "SQUARE_CAPITAL_ADVANCE", "SQUARE_CAPITAL_PAYMENT", "SQUARE_CAPITAL_REVERSED_PAYMENT", "SUBSCRIPTION_FEE", "SUBSCRIPTION_FEE_REFUND", "OTHER", "INCENTED_PAYMENT", "RETURNED_ACH_ENTRY", "RETURNED_SQUARE_275", "SQUARE_275"])
|
106
106
|
return false unless type_validator.valid?(@type)
|
107
107
|
return true
|
108
108
|
end
|
@@ -110,7 +110,7 @@ module SquareConnect
|
|
110
110
|
# Custom attribute writer method checking allowed values (enum).
|
111
111
|
# @param [Object] type Object to be assigned
|
112
112
|
def type=(type)
|
113
|
-
validator = EnumAttributeValidator.new('String', ["ADJUSTMENT", "BALANCE_CHARGE", "CHARGE", "FREE_PROCESSING", "HOLD_ADJUSTMENT", "PAID_SERVICE_FEE", "PAID_SERVICE_FEE_REFUND", "REDEMPTION_CODE", "REFUND", "RETURNED_PAYOUT", "SQUARE_CAPITAL_ADVANCE", "SQUARE_CAPITAL_PAYMENT", "SQUARE_CAPITAL_REVERSED_PAYMENT", "SUBSCRIPTION_FEE", "SUBSCRIPTION_FEE_REFUND", "
|
113
|
+
validator = EnumAttributeValidator.new('String', ["ADJUSTMENT", "BALANCE_CHARGE", "CHARGE", "FREE_PROCESSING", "HOLD_ADJUSTMENT", "PAID_SERVICE_FEE", "PAID_SERVICE_FEE_REFUND", "REDEMPTION_CODE", "REFUND", "RETURNED_PAYOUT", "SQUARE_CAPITAL_ADVANCE", "SQUARE_CAPITAL_PAYMENT", "SQUARE_CAPITAL_REVERSED_PAYMENT", "SUBSCRIPTION_FEE", "SUBSCRIPTION_FEE_REFUND", "OTHER", "INCENTED_PAYMENT", "RETURNED_ACH_ENTRY", "RETURNED_SQUARE_275", "SQUARE_275"])
|
114
114
|
unless validator.valid?(type)
|
115
115
|
fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
|
116
116
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: square_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1.197
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Square, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|