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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44c5c14d775fbda599f00c128ba2cf43e8aede3c53b2ca7c78f5fd4e5e8e996c
4
- data.tar.gz: 599714d8420ee476a26117cd6cddc9e700dcb859b80c3cc289a97b98dc4e990f
3
+ metadata.gz: fd9975892046a889120aeef131c8b291c9c16d92234d30294d10a01fdad019e0
4
+ data.tar.gz: dd7c5160554c3200ddfafba6a3d20c752e513f21cea5f5216168fb86a0232d45
5
5
  SHA512:
6
- metadata.gz: e569156270e4859310ceb35f0e54eecb9a3ea5581ce6a8e54f9a058ed7dd3ba95c867c6b2c24fc6f936c0199dd88ad28782e683bbf95955978f17c1f82d9e299
7
- data.tar.gz: 7b63c3db8f224fdf5886d024f31e8f0a54ef27bc7f256f16300aef0e58980ca0f7306df5c1c17a9a4e469c5d0ca874c13e3fe35c777c02a207dc62ce71d24daf
6
+ metadata.gz: 7d9180856149f9f5f2d49941f87890d36cd717436672065b32baa9a68775c41ebb711955e268e3035b2a9ee13f467c9c0098eafa8e80f1fa80da771fcc91568b
7
+ data.tar.gz: 3368a01ac9c28ddf2fe6cf17e1e4d69e85f0380b3a1585cda6720e3180634f28d62d2a535f30d14dec4f6c6756474047f2fbc6170ae2237bbfa88b9cd1580f4e
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## Version 2.6.1 (2018-03-28)
4
+
5
+ * Updates user-agent header
6
+
3
7
  ## Version 2.6.0 (2018-03-27)
4
8
 
5
9
  ### Improvements: Orders API
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.0
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 provided Order ID does not exist, it is ignored instead of resulting in an error.
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 provided Order ID does not exist, it is ignored instead of resulting in an error.
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 provided Order ID does not exist, it is ignored instead of resulting in an error.
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 &#x60;delay_capture&#x60; value of &#x60;true&#x60;. 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.5.2"
33
+ @user_agent = "Square-Connect-Ruby/2.6.1"
34
34
 
35
35
  @default_headers = {
36
36
  'Content-Type' => "application/json",
@@ -11,7 +11,7 @@ require 'date'
11
11
 
12
12
  module SquareConnect
13
13
  class ErrorCode
14
-
14
+
15
15
  INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR".freeze
16
16
  UNAUTHORIZED = "UNAUTHORIZED".freeze
17
17
  ACCESS_TOKEN_EXPIRED = "ACCESS_TOKEN_EXPIRED".freeze
@@ -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", "INCENTED_PAYMENT", "OTHER", "RETURNED_ACH_ENTRY", "RETURNED_SQUARE_275", "SQUARE_275"])
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", "INCENTED_PAYMENT", "OTHER", "RETURNED_ACH_ENTRY", "RETURNED_SQUARE_275", "SQUARE_275"])
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
@@ -8,5 +8,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
8
8
  =end
9
9
 
10
10
  module SquareConnect
11
- VERSION = "2.6.0"
11
+ VERSION = "2.6.1"
12
12
  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.0.192
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-03-28 00:00:00.000000000 Z
11
+ date: 2018-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus