square_connect 2.5.1.183 → 2.5.2.188

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: fca33264f4e4b96e8d3546d8bf7dd7612993e7612b8ad835189bd1305de166cb
4
- data.tar.gz: 653d2dd7c502cdde0eb577240652f6214f62b92186edee92efd40612661da6d0
3
+ metadata.gz: b822c4b0439d5388d6cba2bb2e0af3ad62135e29933fdbf943f5b2c10f3927ef
4
+ data.tar.gz: c163e603c4419d938bb6e668cc6422ceb5b86bc09f712812f038345cd024a63b
5
5
  SHA512:
6
- metadata.gz: 711467aec78e0d39e6417797c8bedadf1efb414f9b5d27fe9f1eacaea0b78eafcecb987d15f360abac64170394100d9abf947e40bfae90b8ad576d07430e3c33
7
- data.tar.gz: 840612dd20d96e41fb0fbebf7afcc680b45f1c425a053c532e88a28a4d58ef2b1e9accb8fd969f55f549a9ed8f1076c4d63283211f0ed1e0403a6de206e2d596
6
+ metadata.gz: 98c9401964d6d5ba555c194a90f5fd356e9170f841db5c83ec73bb264cb3736cee889da2f6eb5412f89778c69ab79f467cd2e995d66b643d2e304bbb7972aabd
7
+ data.tar.gz: bad35d45242ded843b9a698c21d7b4390040b749adcbdace0f7e73ad94376d7700af947db2a9d715766b5de7eebf3e2a151e7188097c97d8d862e1c7c78c81c0
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## Version 2.5.2 (2018-01-06)
4
+
5
+ * `OTHER` enum value is added to `Type` on `V1SettlementEntry`
6
+
3
7
  ## Version 2.5.1 (2017-11-10)
4
8
 
5
9
  * `ordinal` is added to `CatalogItemVariation`
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.5.1
13
+ - Package version: 2.5.2
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)
@@ -64,7 +64,6 @@ begin
64
64
  locations = locations_api.list_locations.locations
65
65
  rescue SquareConnect::ApiError => e
66
66
  puts "Error encountered while loading the locations: #{e.message}"
67
- return
68
67
  end
69
68
  ```
70
69
 
@@ -7,6 +7,6 @@ A category to which an [CatalogItem](#type-catalogitem) belongs in the Catalog o
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The category's name. Searchable. |
10
+ **name** | **String** | The category's name. Searchable. | [optional]
11
11
 
12
12
 
@@ -7,7 +7,7 @@ A discount in the Catalog object model.
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The discount's name. Searchable. |
10
+ **name** | **String** | The discount's name. Searchable. | [optional]
11
11
  **discount_type** | **String** | Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale. See [CatalogDiscountType](#type-catalogdiscounttype) for all possible values. | [optional]
12
12
  **percentage** | **String** | The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal separator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type` is `VARIABLE_PERCENTAGE`. Do not include this field for amount-based or variable discounts. | [optional]
13
13
  **amount_money** | [**Money**](Money.md) | The amount of the discount. Specify an amount of `0` if `discount_type` is `VARIABLE_AMOUNT`. Do not include this field for percentage-based or variable discounts. | [optional]
@@ -7,7 +7,7 @@ An item (i.e., product family) in the Catalog object model.
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The item's name. Searchable. |
10
+ **name** | **String** | The item's name. Searchable. | [optional]
11
11
  **description** | **String** | The item's description. Searchable. | [optional]
12
12
  **abbreviation** | **String** | The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used. Searchable. | [optional]
13
13
  **label_color** | **String** | The color of the item's display label in the Square Point of Sale app. | [optional]
@@ -7,7 +7,7 @@ A modifier in the Catalog object model.
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The modifier's name. Searchable. |
10
+ **name** | **String** | The modifier's name. Searchable. | [optional]
11
11
  **price_money** | [**Money**](Money.md) | The modifier's price. | [optional]
12
12
 
13
13
 
@@ -7,7 +7,7 @@ A modifier list in the Catalog object model. A [CatalogModifierList](#type-catal
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The [CatalogModifierList](#type-catalogmodifierlist)'s name. Searchable. |
10
+ **name** | **String** | The [CatalogModifierList](#type-catalogmodifierlist)'s name. Searchable. | [optional]
11
11
  **selection_type** | **String** | Indicates whether multiple options from the [CatalogModifierList](#type-catalogmodifierlist) can be applied to a single [CatalogItem](#type-catalogitem). See [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for all possible values. | [optional]
12
12
  **modifiers** | [**Array<CatalogObject>**](CatalogObject.md) | The options included in the [CatalogModifierList](#type-catalogmodifierlist). You must include at least one [CatalogModifier](#type-catalogmodifier). Each [CatalogObject](#type-catalogobject) must have type `MODIFIER` and contain [CatalogModifier](#type-catalogmodifier) data. | [optional]
13
13
 
@@ -7,7 +7,7 @@ A tax in the Catalog object model.
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **name** | **String** | The tax's name. Searchable. |
10
+ **name** | **String** | The tax's name. Searchable. | [optional]
11
11
  **calculation_phase** | **String** | Whether the tax is calculated based on a payment's subtotal or total. See [TaxCalculationPhase](#type-taxcalculationphase) for all possible values. | [optional]
12
12
  **inclusion_type** | **String** | Whether the tax is `ADDITIVE` or `INCLUSIVE`. See [TaxInclusionType](#type-taxinclusiontype) for all possible values. | [optional]
13
13
  **percentage** | **String** | The percentage of the tax in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign. A value of `7.5` corresponds to 7.5%. | [optional]
@@ -7,7 +7,7 @@ Represents a discount that can apply to either a single line item or an entire o
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **catalog_object_id** | **String** | Only used for catalog taxes. The catalog object ID from exsiting [CatalogDiscount](#type-catalogdiscount). Do not provide a value for this field if you provide values in other fields for an ad hoc discount. | [optional]
10
+ **catalog_object_id** | **String** | Only used for catalog discounts. The catalog object ID for an existing [CatalogDiscount](#type-catalogdiscount). Do not provide a value for this field if you provide values in other fields for an ad hoc discount. | [optional]
11
11
  **name** | **String** | Only used for ad hoc discounts. The discount's name. | [optional]
12
12
  **percentage** | **String** | Only used for ad hoc discounts. The percentage of the discount, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. This value range between 0.0 up to 100.0 | [optional]
13
13
  **amount_money** | [**Money**](Money.md) | Only used for ad hoc discounts. The monetary amount of the discount. | [optional]
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  **base_price_money** | [**Money**](Money.md) | Only used for ad hoc line items. The base price for a single unit of the line item's associated variation. Do not provide a value for this field if you provide a value for the `catalog_object_id`. | [optional]
13
13
  **variation_name** | **String** | Only used for ad hoc line items. The variation name of the line item. This value cannot exceed 255 characters. If this value is not set for an ad hoc line item, the default value of `Regular` is used. Do not provide a value for this field if you provide a value for the `catalog_object_id`. | [optional]
14
14
  **note** | **String** | The note of the line item. This value cannot exceed 50 characters. | [optional]
15
- **catalog_object_id** | **String** | Only used for Catalog line items. The catalog object ID from existing [CatalogItemVariation](#type-catalogitemvariation). Do not provide a value for this field if you provide a value for `name` and `base_price_money`. | [optional]
15
+ **catalog_object_id** | **String** | Only used for Catalog line items. The catalog object ID for an existing [CatalogItemVariation](#type-catalogitemvariation). Do not provide a value for this field if you provide a value for `name` and `base_price_money`. | [optional]
16
16
  **modifiers** | [**Array<CreateOrderRequestModifier>**](CreateOrderRequestModifier.md) | Only used for Catalog line items. The modifiers to include on the line item. | [optional]
17
17
  **taxes** | [**Array<CreateOrderRequestTax>**](CreateOrderRequestTax.md) | The taxes to include on the line item. | [optional]
18
18
  **discounts** | [**Array<CreateOrderRequestDiscount>**](CreateOrderRequestDiscount.md) | The discounts to include on the line item. | [optional]
@@ -69,6 +69,7 @@ Name | Type
69
69
  **REFUND_ALREADY_PENDING** | string
70
70
  **PAYMENT_NOT_REFUNDABLE** | string
71
71
  **INVALID_CARD_DATA** | string
72
+ **LOCATION_MISMATCH** | string
72
73
  **IDEMPOTENCY_KEY_REUSED** | string
73
74
  **UNEXPECTED_VALUE** | string
74
75
  **SANDBOX_NOT_SUPPORTED** | string
@@ -87,5 +88,6 @@ Name | Type
87
88
  **RATE_LIMITED** | string
88
89
  **NOT_IMPLEMENTED** | string
89
90
  **SERVICE_UNAVAILABLE** | string
91
+ **GATEWAY_TIMEOUT** | string
90
92
 
91
93
 
@@ -73,7 +73,7 @@ Name | Type | Description | Notes
73
73
 
74
74
  Charge
75
75
 
76
- Charges a card represented by a card nonce or a customer's card on file. Your request to this endpoint must include _either_: - A value for the `card_nonce` parameter (to charge a card nonce generated with the `SqPaymentForm`) - Values for the `customer_card_id` and `customer_id` parameters (to charge a customer's card on file) In order for an e-commerce payment to potentially qualify for [Square chargeback protection](https://squareup.com/help/article/5394), you _must_ provide values for the following parameters in your request: - `buyer_email_address` - At least one of `billing_address` or `shipping_address` When this response is returned, the amount of Square's processing fee might not yet be calculated. To obtain the processing fee, wait about ten seconds and call [RetrieveTransaction](#endpoint-retrievetransaction). See the `processing_fee_money` field of each [Tender included](#type-tender) in the transaction.
76
+ Charges a card represented by a card nonce or a customer's card on file. Your request to this endpoint must include _either_: - A value for the `card_nonce` parameter (to charge a card nonce generated with the `SqPaymentForm`) - Values for the `customer_card_id` and `customer_id` parameters (to charge a customer's card on file) In order for an eCommerce payment to potentially qualify for [Square chargeback protection](https://squareup.com/help/article/5394), you _must_ provide values for the following parameters in your request: - `buyer_email_address` - At least one of `billing_address` or `shipping_address` When this response is returned, the amount of Square's processing fee might not yet be calculated. To obtain the processing fee, wait about ten seconds and call [RetrieveTransaction](#endpoint-retrievetransaction). See the `processing_fee_money` field of each [Tender included](#type-tender) in the transaction.
77
77
 
78
78
  ### Example
79
79
  ```ruby
@@ -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 = {})
@@ -75,7 +75,7 @@ module SquareConnect
75
75
  end
76
76
 
77
77
  # Charge
78
- # Charges a card represented by a card nonce or a customer's card on file. Your request to this endpoint must include _either_: - A value for the `card_nonce` parameter (to charge a card nonce generated with the `SqPaymentForm`) - Values for the `customer_card_id` and `customer_id` parameters (to charge a customer's card on file) In order for an e-commerce payment to potentially qualify for [Square chargeback protection](https://squareup.com/help/article/5394), you _must_ provide values for the following parameters in your request: - `buyer_email_address` - At least one of `billing_address` or `shipping_address` When this response is returned, the amount of Square's processing fee might not yet be calculated. To obtain the processing fee, wait about ten seconds and call [RetrieveTransaction](#endpoint-retrievetransaction). See the `processing_fee_money` field of each [Tender included](#type-tender) in the transaction.
78
+ # Charges a card represented by a card nonce or a customer's card on file. Your request to this endpoint must include _either_: - A value for the `card_nonce` parameter (to charge a card nonce generated with the `SqPaymentForm`) - Values for the `customer_card_id` and `customer_id` parameters (to charge a customer's card on file) In order for an eCommerce payment to potentially qualify for [Square chargeback protection](https://squareup.com/help/article/5394), you _must_ provide values for the following parameters in your request: - `buyer_email_address` - At least one of `billing_address` or `shipping_address` When this response is returned, the amount of Square's processing fee might not yet be calculated. To obtain the processing fee, wait about ten seconds and call [RetrieveTransaction](#endpoint-retrievetransaction). See the `processing_fee_money` field of each [Tender included](#type-tender) in the transaction.
79
79
  # @param location_id The ID of the location to associate the created transaction with.
80
80
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
81
81
  # @param [Hash] opts the optional parameters
@@ -86,7 +86,7 @@ module SquareConnect
86
86
  end
87
87
 
88
88
  # Charge
89
- # Charges a card represented by a card nonce or a customer&#39;s card on file. Your request to this endpoint must include _either_: - A value for the &#x60;card_nonce&#x60; parameter (to charge a card nonce generated with the &#x60;SqPaymentForm&#x60;) - Values for the &#x60;customer_card_id&#x60; and &#x60;customer_id&#x60; parameters (to charge a customer&#39;s card on file) In order for an e-commerce payment to potentially qualify for [Square chargeback protection](https://squareup.com/help/article/5394), you _must_ provide values for the following parameters in your request: - &#x60;buyer_email_address&#x60; - At least one of &#x60;billing_address&#x60; or &#x60;shipping_address&#x60; When this response is returned, the amount of Square&#39;s processing fee might not yet be calculated. To obtain the processing fee, wait about ten seconds and call [RetrieveTransaction](#endpoint-retrievetransaction). See the &#x60;processing_fee_money&#x60; field of each [Tender included](#type-tender) in the transaction.
89
+ # Charges a card represented by a card nonce or a customer&#39;s card on file. Your request to this endpoint must include _either_: - A value for the &#x60;card_nonce&#x60; parameter (to charge a card nonce generated with the &#x60;SqPaymentForm&#x60;) - Values for the &#x60;customer_card_id&#x60; and &#x60;customer_id&#x60; parameters (to charge a customer&#39;s card on file) In order for an eCommerce payment to potentially qualify for [Square chargeback protection](https://squareup.com/help/article/5394), you _must_ provide values for the following parameters in your request: - &#x60;buyer_email_address&#x60; - At least one of &#x60;billing_address&#x60; or &#x60;shipping_address&#x60; When this response is returned, the amount of Square&#39;s processing fee might not yet be calculated. To obtain the processing fee, wait about ten seconds and call [RetrieveTransaction](#endpoint-retrievetransaction). See the &#x60;processing_fee_money&#x60; field of each [Tender included](#type-tender) in the transaction.
90
90
  # @param location_id The ID of the location to associate the created transaction with.
91
91
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
92
92
  # @param [Hash] opts the optional parameters
@@ -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.1"
33
+ @user_agent = "Square-Connect-Ruby/2.5.2"
34
34
 
35
35
  @default_headers = {
36
36
  'Content-Type' => "application/json",
@@ -48,39 +48,15 @@ module SquareConnect
48
48
  # @return Array for valid properies with the reasons
49
49
  def list_invalid_properties
50
50
  invalid_properties = Array.new
51
- if @name.nil?
52
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
53
- end
54
-
55
- if @name.to_s.length < 1
56
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
57
- end
58
-
59
51
  return invalid_properties
60
52
  end
61
53
 
62
54
  # Check to see if the all the properties in the model are valid
63
55
  # @return true if the model is valid
64
56
  def valid?
65
- return false if @name.nil?
66
- return false if @name.to_s.length < 1
67
57
  return true
68
58
  end
69
59
 
70
- # Custom attribute writer method with validation
71
- # @param [Object] name Value to be assigned
72
- def name=(name)
73
- if name.nil?
74
- fail ArgumentError, "name cannot be nil"
75
- end
76
-
77
- if name.to_s.length < 1
78
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
79
- end
80
-
81
- @name = name
82
- end
83
-
84
60
  # Checks equality by comparing each attribute.
85
61
  # @param [Object] Object to be compared
86
62
  def ==(o)
@@ -114,41 +114,17 @@ module SquareConnect
114
114
  # @return Array for valid properies with the reasons
115
115
  def list_invalid_properties
116
116
  invalid_properties = Array.new
117
- if @name.nil?
118
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
119
- end
120
-
121
- if @name.to_s.length < 1
122
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
123
- end
124
-
125
117
  return invalid_properties
126
118
  end
127
119
 
128
120
  # Check to see if the all the properties in the model are valid
129
121
  # @return true if the model is valid
130
122
  def valid?
131
- return false if @name.nil?
132
- return false if @name.to_s.length < 1
133
123
  discount_type_validator = EnumAttributeValidator.new('String', ["FIXED_PERCENTAGE", "FIXED_AMOUNT", "VARIABLE_PERCENTAGE", "VARIABLE_AMOUNT"])
134
124
  return false unless discount_type_validator.valid?(@discount_type)
135
125
  return true
136
126
  end
137
127
 
138
- # Custom attribute writer method with validation
139
- # @param [Object] name Value to be assigned
140
- def name=(name)
141
- if name.nil?
142
- fail ArgumentError, "name cannot be nil"
143
- end
144
-
145
- if name.to_s.length < 1
146
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
147
- end
148
-
149
- @name = name
150
- end
151
-
152
128
  # Custom attribute writer method checking allowed values (enum).
153
129
  # @param [Object] discount_type Object to be assigned
154
130
  def discount_type=(discount_type)
@@ -192,41 +192,17 @@ module SquareConnect
192
192
  # @return Array for valid properies with the reasons
193
193
  def list_invalid_properties
194
194
  invalid_properties = Array.new
195
- if @name.nil?
196
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
197
- end
198
-
199
- if @name.to_s.length < 1
200
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
201
- end
202
-
203
195
  return invalid_properties
204
196
  end
205
197
 
206
198
  # Check to see if the all the properties in the model are valid
207
199
  # @return true if the model is valid
208
200
  def valid?
209
- return false if @name.nil?
210
- return false if @name.to_s.length < 1
211
201
  product_type_validator = EnumAttributeValidator.new('String', ["REGULAR", "GIFT_CARD", "APPOINTMENTS_SERVICE", "RETAIL_ITEM", "RESTAURANT_ITEM"])
212
202
  return false unless product_type_validator.valid?(@product_type)
213
203
  return true
214
204
  end
215
205
 
216
- # Custom attribute writer method with validation
217
- # @param [Object] name Value to be assigned
218
- def name=(name)
219
- if name.nil?
220
- fail ArgumentError, "name cannot be nil"
221
- end
222
-
223
- if name.to_s.length < 1
224
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
225
- end
226
-
227
- @name = name
228
- end
229
-
230
206
  # Custom attribute writer method checking allowed values (enum).
231
207
  # @param [Object] product_type Object to be assigned
232
208
  def product_type=(product_type)
@@ -57,39 +57,15 @@ module SquareConnect
57
57
  # @return Array for valid properies with the reasons
58
58
  def list_invalid_properties
59
59
  invalid_properties = Array.new
60
- if @name.nil?
61
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
62
- end
63
-
64
- if @name.to_s.length < 1
65
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
66
- end
67
-
68
60
  return invalid_properties
69
61
  end
70
62
 
71
63
  # Check to see if the all the properties in the model are valid
72
64
  # @return true if the model is valid
73
65
  def valid?
74
- return false if @name.nil?
75
- return false if @name.to_s.length < 1
76
66
  return true
77
67
  end
78
68
 
79
- # Custom attribute writer method with validation
80
- # @param [Object] name Value to be assigned
81
- def name=(name)
82
- if name.nil?
83
- fail ArgumentError, "name cannot be nil"
84
- end
85
-
86
- if name.to_s.length < 1
87
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
88
- end
89
-
90
- @name = name
91
- end
92
-
93
69
  # Checks equality by comparing each attribute.
94
70
  # @param [Object] Object to be compared
95
71
  def ==(o)
@@ -89,41 +89,17 @@ module SquareConnect
89
89
  # @return Array for valid properies with the reasons
90
90
  def list_invalid_properties
91
91
  invalid_properties = Array.new
92
- if @name.nil?
93
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
94
- end
95
-
96
- if @name.to_s.length < 1
97
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
98
- end
99
-
100
92
  return invalid_properties
101
93
  end
102
94
 
103
95
  # Check to see if the all the properties in the model are valid
104
96
  # @return true if the model is valid
105
97
  def valid?
106
- return false if @name.nil?
107
- return false if @name.to_s.length < 1
108
98
  selection_type_validator = EnumAttributeValidator.new('String', ["SINGLE", "MULTIPLE"])
109
99
  return false unless selection_type_validator.valid?(@selection_type)
110
100
  return true
111
101
  end
112
102
 
113
- # Custom attribute writer method with validation
114
- # @param [Object] name Value to be assigned
115
- def name=(name)
116
- if name.nil?
117
- fail ArgumentError, "name cannot be nil"
118
- end
119
-
120
- if name.to_s.length < 1
121
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
122
- end
123
-
124
- @name = name
125
- end
126
-
127
103
  # Custom attribute writer method checking allowed values (enum).
128
104
  # @param [Object] selection_type Object to be assigned
129
105
  def selection_type=(selection_type)
@@ -114,22 +114,12 @@ module SquareConnect
114
114
  # @return Array for valid properies with the reasons
115
115
  def list_invalid_properties
116
116
  invalid_properties = Array.new
117
- if @name.nil?
118
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
119
- end
120
-
121
- if @name.to_s.length < 1
122
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
123
- end
124
-
125
117
  return invalid_properties
126
118
  end
127
119
 
128
120
  # Check to see if the all the properties in the model are valid
129
121
  # @return true if the model is valid
130
122
  def valid?
131
- return false if @name.nil?
132
- return false if @name.to_s.length < 1
133
123
  calculation_phase_validator = EnumAttributeValidator.new('String', ["TAX_SUBTOTAL_PHASE", "TAX_TOTAL_PHASE"])
134
124
  return false unless calculation_phase_validator.valid?(@calculation_phase)
135
125
  inclusion_type_validator = EnumAttributeValidator.new('String', ["ADDITIVE", "INCLUSIVE"])
@@ -137,20 +127,6 @@ module SquareConnect
137
127
  return true
138
128
  end
139
129
 
140
- # Custom attribute writer method with validation
141
- # @param [Object] name Value to be assigned
142
- def name=(name)
143
- if name.nil?
144
- fail ArgumentError, "name cannot be nil"
145
- end
146
-
147
- if name.to_s.length < 1
148
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
149
- end
150
-
151
- @name = name
152
- end
153
-
154
130
  # Custom attribute writer method checking allowed values (enum).
155
131
  # @param [Object] calculation_phase Object to be assigned
156
132
  def calculation_phase=(calculation_phase)
@@ -12,7 +12,7 @@ require 'date'
12
12
  module SquareConnect
13
13
  # Represents a discount that can apply to either a single line item or an entire order.
14
14
  class CreateOrderRequestDiscount
15
- # Only used for catalog taxes. The catalog object ID from exsiting [CatalogDiscount](#type-catalogdiscount). Do not provide a value for this field if you provide values in other fields for an ad hoc discount.
15
+ # Only used for catalog discounts. The catalog object ID for an existing [CatalogDiscount](#type-catalogdiscount). Do not provide a value for this field if you provide values in other fields for an ad hoc discount.
16
16
  attr_accessor :catalog_object_id
17
17
 
18
18
  # Only used for ad hoc discounts. The discount's name.
@@ -27,7 +27,7 @@ module SquareConnect
27
27
  # The note of the line item. This value cannot exceed 50 characters.
28
28
  attr_accessor :note
29
29
 
30
- # Only used for Catalog line items. The catalog object ID from existing [CatalogItemVariation](#type-catalogitemvariation). Do not provide a value for this field if you provide a value for `name` and `base_price_money`.
30
+ # Only used for Catalog line items. The catalog object ID for an existing [CatalogItemVariation](#type-catalogitemvariation). Do not provide a value for this field if you provide a value for `name` and `base_price_money`.
31
31
  attr_accessor :catalog_object_id
32
32
 
33
33
  # Only used for Catalog line items. The modifiers to include on the line item.
@@ -114,7 +114,7 @@ module SquareConnect
114
114
  category_validator = EnumAttributeValidator.new('String', ["API_ERROR", "AUTHENTICATION_ERROR", "INVALID_REQUEST_ERROR", "RATE_LIMIT_ERROR", "PAYMENT_METHOD_ERROR", "REFUND_ERROR"])
115
115
  return false unless category_validator.valid?(@category)
116
116
  return false if @code.nil?
117
- code_validator = EnumAttributeValidator.new('String', ["INTERNAL_SERVER_ERROR", "UNAUTHORIZED", "ACCESS_TOKEN_EXPIRED", "ACCESS_TOKEN_REVOKED", "FORBIDDEN", "INSUFFICIENT_SCOPES", "APPLICATION_DISABLED", "V1_APPLICATION", "V1_ACCESS_TOKEN", "CARD_PROCESSING_NOT_ENABLED", "BAD_REQUEST", "MISSING_REQUIRED_PARAMETER", "INCORRECT_TYPE", "INVALID_TIME", "INVALID_TIME_RANGE", "INVALID_VALUE", "INVALID_CURSOR", "UNKNOWN_QUERY_PARAMETER", "CONFLICTING_PARAMETERS", "EXPECTED_JSON_BODY", "INVALID_SORT_ORDER", "VALUE_REGEX_MISMATCH", "VALUE_TOO_SHORT", "VALUE_TOO_LONG", "VALUE_TOO_LOW", "VALUE_TOO_HIGH", "VALUE_EMPTY", "ARRAY_LENGTH_TOO_LONG", "ARRAY_LENGTH_TOO_SHORT", "ARRAY_EMPTY", "EXPECTED_BOOLEAN", "EXPECTED_INTEGER", "EXPECTED_FLOAT", "EXPECTED_STRING", "EXPECTED_OBJECT", "EXPECTED_ARRAY", "EXPECTED_BASE64_ENCODED_BYTE_ARRAY", "INVALID_ARRAY_VALUE", "INVALID_ENUM_VALUE", "INVALID_CONTENT_TYPE", "INVALID_FORM_VALUE", "ONE_INSTRUMENT_EXPECTED", "NO_FIELDS_SET", "CARD_EXPIRED", "INVALID_EXPIRATION", "INVALID_EXPIRATION_YEAR", "INVALID_EXPIRATION_DATE", "UNSUPPORTED_CARD_BRAND", "UNSUPPORTED_ENTRY_METHOD", "INVALID_CARD", "DELAYED_TRANSACTION_EXPIRED", "DELAYED_TRANSACTION_CANCELED", "DELAYED_TRANSACTION_CAPTURED", "DELAYED_TRANSACTION_FAILED", "CARD_TOKEN_EXPIRED", "CARD_TOKEN_USED", "AMOUNT_TOO_HIGH", "UNSUPPORTED_INSTRUMENT_TYPE", "REFUND_AMOUNT_INVALID", "REFUND_ALREADY_PENDING", "PAYMENT_NOT_REFUNDABLE", "INVALID_CARD_DATA", "IDEMPOTENCY_KEY_REUSED", "UNEXPECTED_VALUE", "SANDBOX_NOT_SUPPORTED", "INVALID_EMAIL_ADDRESS", "INVALID_PHONE_NUMBER", "CHECKOUT_EXPIRED", "CARD_DECLINED", "VERIFY_CVV_FAILURE", "VERIFY_AVS_FAILURE", "CARD_DECLINED_CALL_ISSUER", "NOT_FOUND", "REQUEST_TIMEOUT", "CONFLICT", "REQUEST_ENTITY_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "RATE_LIMITED", "NOT_IMPLEMENTED", "SERVICE_UNAVAILABLE"])
117
+ code_validator = EnumAttributeValidator.new('String', ["INTERNAL_SERVER_ERROR", "UNAUTHORIZED", "ACCESS_TOKEN_EXPIRED", "ACCESS_TOKEN_REVOKED", "FORBIDDEN", "INSUFFICIENT_SCOPES", "APPLICATION_DISABLED", "V1_APPLICATION", "V1_ACCESS_TOKEN", "CARD_PROCESSING_NOT_ENABLED", "BAD_REQUEST", "MISSING_REQUIRED_PARAMETER", "INCORRECT_TYPE", "INVALID_TIME", "INVALID_TIME_RANGE", "INVALID_VALUE", "INVALID_CURSOR", "UNKNOWN_QUERY_PARAMETER", "CONFLICTING_PARAMETERS", "EXPECTED_JSON_BODY", "INVALID_SORT_ORDER", "VALUE_REGEX_MISMATCH", "VALUE_TOO_SHORT", "VALUE_TOO_LONG", "VALUE_TOO_LOW", "VALUE_TOO_HIGH", "VALUE_EMPTY", "ARRAY_LENGTH_TOO_LONG", "ARRAY_LENGTH_TOO_SHORT", "ARRAY_EMPTY", "EXPECTED_BOOLEAN", "EXPECTED_INTEGER", "EXPECTED_FLOAT", "EXPECTED_STRING", "EXPECTED_OBJECT", "EXPECTED_ARRAY", "EXPECTED_BASE64_ENCODED_BYTE_ARRAY", "INVALID_ARRAY_VALUE", "INVALID_ENUM_VALUE", "INVALID_CONTENT_TYPE", "INVALID_FORM_VALUE", "ONE_INSTRUMENT_EXPECTED", "NO_FIELDS_SET", "CARD_EXPIRED", "INVALID_EXPIRATION", "INVALID_EXPIRATION_YEAR", "INVALID_EXPIRATION_DATE", "UNSUPPORTED_CARD_BRAND", "UNSUPPORTED_ENTRY_METHOD", "INVALID_CARD", "DELAYED_TRANSACTION_EXPIRED", "DELAYED_TRANSACTION_CANCELED", "DELAYED_TRANSACTION_CAPTURED", "DELAYED_TRANSACTION_FAILED", "CARD_TOKEN_EXPIRED", "CARD_TOKEN_USED", "AMOUNT_TOO_HIGH", "UNSUPPORTED_INSTRUMENT_TYPE", "REFUND_AMOUNT_INVALID", "REFUND_ALREADY_PENDING", "PAYMENT_NOT_REFUNDABLE", "INVALID_CARD_DATA", "LOCATION_MISMATCH", "IDEMPOTENCY_KEY_REUSED", "UNEXPECTED_VALUE", "SANDBOX_NOT_SUPPORTED", "INVALID_EMAIL_ADDRESS", "INVALID_PHONE_NUMBER", "CHECKOUT_EXPIRED", "CARD_DECLINED", "VERIFY_CVV_FAILURE", "VERIFY_AVS_FAILURE", "CARD_DECLINED_CALL_ISSUER", "NOT_FOUND", "REQUEST_TIMEOUT", "CONFLICT", "REQUEST_ENTITY_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "RATE_LIMITED", "NOT_IMPLEMENTED", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT"])
118
118
  return false unless code_validator.valid?(@code)
119
119
  return true
120
120
  end
@@ -132,7 +132,7 @@ module SquareConnect
132
132
  # Custom attribute writer method checking allowed values (enum).
133
133
  # @param [Object] code Object to be assigned
134
134
  def code=(code)
135
- validator = EnumAttributeValidator.new('String', ["INTERNAL_SERVER_ERROR", "UNAUTHORIZED", "ACCESS_TOKEN_EXPIRED", "ACCESS_TOKEN_REVOKED", "FORBIDDEN", "INSUFFICIENT_SCOPES", "APPLICATION_DISABLED", "V1_APPLICATION", "V1_ACCESS_TOKEN", "CARD_PROCESSING_NOT_ENABLED", "BAD_REQUEST", "MISSING_REQUIRED_PARAMETER", "INCORRECT_TYPE", "INVALID_TIME", "INVALID_TIME_RANGE", "INVALID_VALUE", "INVALID_CURSOR", "UNKNOWN_QUERY_PARAMETER", "CONFLICTING_PARAMETERS", "EXPECTED_JSON_BODY", "INVALID_SORT_ORDER", "VALUE_REGEX_MISMATCH", "VALUE_TOO_SHORT", "VALUE_TOO_LONG", "VALUE_TOO_LOW", "VALUE_TOO_HIGH", "VALUE_EMPTY", "ARRAY_LENGTH_TOO_LONG", "ARRAY_LENGTH_TOO_SHORT", "ARRAY_EMPTY", "EXPECTED_BOOLEAN", "EXPECTED_INTEGER", "EXPECTED_FLOAT", "EXPECTED_STRING", "EXPECTED_OBJECT", "EXPECTED_ARRAY", "EXPECTED_BASE64_ENCODED_BYTE_ARRAY", "INVALID_ARRAY_VALUE", "INVALID_ENUM_VALUE", "INVALID_CONTENT_TYPE", "INVALID_FORM_VALUE", "ONE_INSTRUMENT_EXPECTED", "NO_FIELDS_SET", "CARD_EXPIRED", "INVALID_EXPIRATION", "INVALID_EXPIRATION_YEAR", "INVALID_EXPIRATION_DATE", "UNSUPPORTED_CARD_BRAND", "UNSUPPORTED_ENTRY_METHOD", "INVALID_CARD", "DELAYED_TRANSACTION_EXPIRED", "DELAYED_TRANSACTION_CANCELED", "DELAYED_TRANSACTION_CAPTURED", "DELAYED_TRANSACTION_FAILED", "CARD_TOKEN_EXPIRED", "CARD_TOKEN_USED", "AMOUNT_TOO_HIGH", "UNSUPPORTED_INSTRUMENT_TYPE", "REFUND_AMOUNT_INVALID", "REFUND_ALREADY_PENDING", "PAYMENT_NOT_REFUNDABLE", "INVALID_CARD_DATA", "IDEMPOTENCY_KEY_REUSED", "UNEXPECTED_VALUE", "SANDBOX_NOT_SUPPORTED", "INVALID_EMAIL_ADDRESS", "INVALID_PHONE_NUMBER", "CHECKOUT_EXPIRED", "CARD_DECLINED", "VERIFY_CVV_FAILURE", "VERIFY_AVS_FAILURE", "CARD_DECLINED_CALL_ISSUER", "NOT_FOUND", "REQUEST_TIMEOUT", "CONFLICT", "REQUEST_ENTITY_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "RATE_LIMITED", "NOT_IMPLEMENTED", "SERVICE_UNAVAILABLE"])
135
+ validator = EnumAttributeValidator.new('String', ["INTERNAL_SERVER_ERROR", "UNAUTHORIZED", "ACCESS_TOKEN_EXPIRED", "ACCESS_TOKEN_REVOKED", "FORBIDDEN", "INSUFFICIENT_SCOPES", "APPLICATION_DISABLED", "V1_APPLICATION", "V1_ACCESS_TOKEN", "CARD_PROCESSING_NOT_ENABLED", "BAD_REQUEST", "MISSING_REQUIRED_PARAMETER", "INCORRECT_TYPE", "INVALID_TIME", "INVALID_TIME_RANGE", "INVALID_VALUE", "INVALID_CURSOR", "UNKNOWN_QUERY_PARAMETER", "CONFLICTING_PARAMETERS", "EXPECTED_JSON_BODY", "INVALID_SORT_ORDER", "VALUE_REGEX_MISMATCH", "VALUE_TOO_SHORT", "VALUE_TOO_LONG", "VALUE_TOO_LOW", "VALUE_TOO_HIGH", "VALUE_EMPTY", "ARRAY_LENGTH_TOO_LONG", "ARRAY_LENGTH_TOO_SHORT", "ARRAY_EMPTY", "EXPECTED_BOOLEAN", "EXPECTED_INTEGER", "EXPECTED_FLOAT", "EXPECTED_STRING", "EXPECTED_OBJECT", "EXPECTED_ARRAY", "EXPECTED_BASE64_ENCODED_BYTE_ARRAY", "INVALID_ARRAY_VALUE", "INVALID_ENUM_VALUE", "INVALID_CONTENT_TYPE", "INVALID_FORM_VALUE", "ONE_INSTRUMENT_EXPECTED", "NO_FIELDS_SET", "CARD_EXPIRED", "INVALID_EXPIRATION", "INVALID_EXPIRATION_YEAR", "INVALID_EXPIRATION_DATE", "UNSUPPORTED_CARD_BRAND", "UNSUPPORTED_ENTRY_METHOD", "INVALID_CARD", "DELAYED_TRANSACTION_EXPIRED", "DELAYED_TRANSACTION_CANCELED", "DELAYED_TRANSACTION_CAPTURED", "DELAYED_TRANSACTION_FAILED", "CARD_TOKEN_EXPIRED", "CARD_TOKEN_USED", "AMOUNT_TOO_HIGH", "UNSUPPORTED_INSTRUMENT_TYPE", "REFUND_AMOUNT_INVALID", "REFUND_ALREADY_PENDING", "PAYMENT_NOT_REFUNDABLE", "INVALID_CARD_DATA", "LOCATION_MISMATCH", "IDEMPOTENCY_KEY_REUSED", "UNEXPECTED_VALUE", "SANDBOX_NOT_SUPPORTED", "INVALID_EMAIL_ADDRESS", "INVALID_PHONE_NUMBER", "CHECKOUT_EXPIRED", "CARD_DECLINED", "VERIFY_CVV_FAILURE", "VERIFY_AVS_FAILURE", "CARD_DECLINED_CALL_ISSUER", "NOT_FOUND", "REQUEST_TIMEOUT", "CONFLICT", "REQUEST_ENTITY_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "RATE_LIMITED", "NOT_IMPLEMENTED", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT"])
136
136
  unless validator.valid?(code)
137
137
  fail ArgumentError, "invalid value for 'code', must be one of #{validator.allowable_values}."
138
138
  end
@@ -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
@@ -74,6 +74,7 @@ module SquareConnect
74
74
  REFUND_ALREADY_PENDING = "REFUND_ALREADY_PENDING".freeze
75
75
  PAYMENT_NOT_REFUNDABLE = "PAYMENT_NOT_REFUNDABLE".freeze
76
76
  INVALID_CARD_DATA = "INVALID_CARD_DATA".freeze
77
+ LOCATION_MISMATCH = "LOCATION_MISMATCH".freeze
77
78
  IDEMPOTENCY_KEY_REUSED = "IDEMPOTENCY_KEY_REUSED".freeze
78
79
  UNEXPECTED_VALUE = "UNEXPECTED_VALUE".freeze
79
80
  SANDBOX_NOT_SUPPORTED = "SANDBOX_NOT_SUPPORTED".freeze
@@ -92,6 +93,7 @@ module SquareConnect
92
93
  RATE_LIMITED = "RATE_LIMITED".freeze
93
94
  NOT_IMPLEMENTED = "NOT_IMPLEMENTED".freeze
94
95
  SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE".freeze
96
+ GATEWAY_TIMEOUT = "GATEWAY_TIMEOUT".freeze
95
97
  end
96
98
 
97
99
  end
@@ -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", "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", "INCENTED_PAYMENT", "OTHER", "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", "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", "INCENTED_PAYMENT", "OTHER", "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.5.1"
11
+ VERSION = "2.5.2"
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.5.1.183
4
+ version: 2.5.2.188
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -806,7 +806,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
806
806
  version: '0'
807
807
  requirements: []
808
808
  rubyforge_project:
809
- rubygems_version: 2.7.2
809
+ rubygems_version: 2.7.5
810
810
  signing_key:
811
811
  specification_version: 4
812
812
  summary: Square Connect API Ruby Gem
@@ -913,9 +913,9 @@ test_files:
913
913
  - spec/models/list_catalog_response_spec.rb
914
914
  - spec/models/list_customers_request_spec.rb
915
915
  - spec/models/list_customers_response_spec.rb
916
- - spec/models/list_refunds_request_spec.rb
917
916
  - spec/models/list_locations_request_spec.rb
918
917
  - spec/models/list_locations_response_spec.rb
918
+ - spec/models/list_refunds_request_spec.rb
919
919
  - spec/models/list_refunds_response_spec.rb
920
920
  - spec/models/list_transactions_request_spec.rb
921
921
  - spec/models/list_transactions_response_spec.rb