square_connect 2.20180918.1.251 → 2.20181205.0.263

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -0
  3. data/README.md +1 -1
  4. data/docs/Card.md +7 -7
  5. data/docs/CardBrand.md +1 -1
  6. data/docs/CreateCustomerRequest.md +1 -0
  7. data/docs/Customer.md +1 -1
  8. data/docs/CustomersApi.md +1 -1
  9. data/docs/ErrorCode.md +2 -0
  10. data/docs/InventoryApi.md +1 -1
  11. data/docs/Product.md +2 -0
  12. data/docs/V1Payment.md +1 -1
  13. data/docs/V1Refund.md +10 -0
  14. data/lib/square_connect/api/apple_pay_api.rb +1 -1
  15. data/lib/square_connect/api/catalog_api.rb +11 -11
  16. data/lib/square_connect/api/checkout_api.rb +1 -1
  17. data/lib/square_connect/api/customers_api.rb +10 -10
  18. data/lib/square_connect/api/inventory_api.rb +9 -9
  19. data/lib/square_connect/api/locations_api.rb +1 -1
  20. data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
  21. data/lib/square_connect/api/o_auth_api.rb +3 -3
  22. data/lib/square_connect/api/orders_api.rb +2 -2
  23. data/lib/square_connect/api/reporting_api.rb +2 -2
  24. data/lib/square_connect/api/transactions_api.rb +7 -7
  25. data/lib/square_connect/api_client.rb +1 -1
  26. data/lib/square_connect/models/card.rb +7 -7
  27. data/lib/square_connect/models/create_customer_request.rb +11 -1
  28. data/lib/square_connect/models/customer.rb +1 -1
  29. data/lib/square_connect/models/error.rb +2 -2
  30. data/lib/square_connect/models/error_code.rb +2 -0
  31. data/lib/square_connect/models/product.rb +2 -0
  32. data/lib/square_connect/models/source_application.rb +2 -2
  33. data/lib/square_connect/models/v1_payment.rb +1 -1
  34. data/lib/square_connect/models/v1_refund.rb +107 -1
  35. data/lib/square_connect/version.rb +1 -1
  36. data/spec/api/v1_employees_api_spec.rb +3 -3
  37. data/spec/api/v1_transactions_api_spec.rb +1 -1
  38. data/spec/api_client_spec.rb +1 -1
  39. data/spec/spec_helper.rb +2 -2
  40. metadata +15 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a615258dee447238e1604606dd411cef5c1a512024aea19879cbbde6d9e2a2f
4
- data.tar.gz: 31739883dd34c910e5c162073e1df04a2aea0f27e0b34d3d25e4ea8d3a86b488
3
+ metadata.gz: eef1bf92f68c1ebe2619f129c5dc763bbdd607626179622482bc5337aeba29ca
4
+ data.tar.gz: d6e2839d297c59c87621a46002a15ff2197b3e4c98dedea1fc8c6c9761ba884a
5
5
  SHA512:
6
- metadata.gz: 0976aeab0b765fc9549a5019dbc247225ac424cc745d3db20c3816c1125cd3064300e13e7b3d1e90eb8e9c087d6f35e81ef75c30e02f02a57dc941710e68a4f3
7
- data.tar.gz: f208a7d791ae2583dde54e83aafd18ac9e3d51aac302433811a51cc08711ef620eb047d652e84c64eb656ea59aacd2159f890429be420a4a6c0e66679fefe454
6
+ metadata.gz: 6fce448fa9a634076b105c582709cb64ed7c187e5e764036926ee76fd7d8528a99b6c2eaf180b0a827817e34c0f419468db321cd71f617e43d0d566b87a16a2b
7
+ data.tar.gz: f52398df6f1d6ac48f413dc086add9bda896a9d0b00d31cd41c7c8c58667b0049884e53a80262d46831d09200c63fe2f33e01572937fb6e4148f356971a2f5a0
data/CHANGES.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## Version 2.20181205.0 (2018-12-05)
4
+
5
+ ## New feature: Idempotent customer profile creation in Connect v2
6
+
7
+ Requests to the CreateCustomer endpoint now include a `idempotency_key` field to
8
+ ensure idempotent creation of new profiles.
9
+
10
+ ## New feature: Refund Adjustment fields for Refunds in Connect v1
11
+
12
+ The Connect SDK now supports refund adjustments for the Connect v1
13
+ Refunds API with the addition of multiple new fields in the `Refund` data type
14
+
3
15
  ## Version 2.20180918.1 (2018-10-24)
4
16
 
5
17
  ### New feature: Support for Partial Payments in Connect v1
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.20180918.1
13
+ - Package version: 2.20181205.0
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/Card.md CHANGED
@@ -2,18 +2,18 @@
2
2
 
3
3
  ### Description
4
4
 
5
- Represents the non-confidential details of a credit card.
5
+ Represents the payment details of a card to be used for payments. These details are determined by the `card_nonce` generated by `SqPaymentForm`.
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **id** | **String** | The card's unique ID, if any. | [optional]
10
+ **id** | **String** | Unique ID for this card. Generated by Square. | [optional]
11
11
  **card_brand** | **String** | The card's brand (such as `VISA`). See [CardBrand](#type-cardbrand) for all possible values. | [optional]
12
- **last_4** | **String** | The last 4 digits of the card's number. | [optional]
13
- **exp_month** | **Integer** | The month of the card's expiration date. This value is always between `1` and `12`, inclusive. | [optional]
12
+ **last_4** | **String** | The last 4 digits of the card number. | [optional]
13
+ **exp_month** | **Integer** | The expiration month of the associated card as an integer between 1 and 12. | [optional]
14
14
  **exp_year** | **Integer** | The four-digit year of the card's expiration date. | [optional]
15
- **cardholder_name** | **String** | The cardholder name. This value is present only if this object represents a customer's card on file. | [optional]
16
- **billing_address** | [**Address**](Address.md) | The card's billing address. This value is present only if this object represents a customer's card on file. | [optional]
17
- **fingerprint** | **String** | The unique string fingerprint for the card. The fingerprint is based on the credit card number and is unique to the merchant. If a card is used at multiple locations for the same merchant, it will have the same fingerprint in each case. Note: Fingerprint may not exist on old transactions. | [optional]
15
+ **cardholder_name** | **String** | The name of the cardholder. | [optional]
16
+ **billing_address** | [**Address**](Address.md) | The billing address for this card. | [optional]
17
+ **fingerprint** | **String** | __Not currently set.__ Intended as a Square-assigned identifier, based on the card number, to identify the card across multiple locations within a single application. | [optional]
18
18
 
19
19
 
data/docs/CardBrand.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- Indicates a credit card's brand, such as `VISA`.
5
+ Indicates a credit card's brand, such as `VISA` or `MASTERCARD`.
6
6
 
7
7
  ## Properties
8
8
  Name | Type
@@ -7,6 +7,7 @@ Defines the body parameters that can be provided in a request to the [CreateCust
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
+ **idempotency_key** | **String** | The idempotency key for the request. See the [Idempotency](/basics/api101/idempotency) guide for more information. | [optional]
10
11
  **given_name** | **String** | The customer's given (i.e., first) name. | [optional]
11
12
  **family_name** | **String** | The customer's family (i.e., last) name. | [optional]
12
13
  **company_name** | **String** | The name of the customer's company. | [optional]
data/docs/Customer.md CHANGED
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **id** | **String** | The customer's unique ID. |
11
11
  **created_at** | **String** | The time when the customer was created, in RFC 3339 format. |
12
12
  **updated_at** | **String** | The time when the customer was last updated, in RFC 3339 format. |
13
- **cards** | [**Array<Card>**](Card.md) | The non-confidential details of the customer's cards on file. | [optional]
13
+ **cards** | [**Array<Card>**](Card.md) | The payment details of the customer's cards on file. | [optional]
14
14
  **given_name** | **String** | The customer's given (i.e., first) name. | [optional]
15
15
  **family_name** | **String** | The customer's family (i.e., last) name. | [optional]
16
16
  **nickname** | **String** | The customer's nickname. | [optional]
data/docs/CustomersApi.md CHANGED
@@ -71,7 +71,7 @@ Name | Type | Description | Notes
71
71
 
72
72
  CreateCustomerCard
73
73
 
74
- Adds a card on file to an existing customer. In the United States Square takes care of automatically updating any cards on file that might have expired since you first attached them to a customer. As with charges, calls to `CreateCustomerCard` are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.
74
+ Adds a card on file to an existing customer. As with charges, calls to `CreateCustomerCard` are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.
75
75
 
76
76
  ### Example
77
77
  ```ruby
data/docs/ErrorCode.md CHANGED
@@ -43,6 +43,7 @@ Name | Type
43
43
  **EXPECTED_STRING** | string
44
44
  **EXPECTED_OBJECT** | string
45
45
  **EXPECTED_ARRAY** | string
46
+ **EXPECTED_MAP** | string
46
47
  **EXPECTED_BASE64_ENCODED_BYTE_ARRAY** | string
47
48
  **INVALID_ARRAY_VALUE** | string
48
49
  **INVALID_ENUM_VALUE** | string
@@ -57,6 +58,7 @@ Name | Type
57
58
  **INVALID_EXPIRATION_DATE** | string
58
59
  **UNSUPPORTED_CARD_BRAND** | string
59
60
  **UNSUPPORTED_ENTRY_METHOD** | string
61
+ **INVALID_ENCRYPTED_CARD** | string
60
62
  **INVALID_CARD** | string
61
63
  **DELAYED_TRANSACTION_EXPIRED** | string
62
64
  **DELAYED_TRANSACTION_CANCELED** | string
data/docs/InventoryApi.md CHANGED
@@ -122,7 +122,7 @@ Name | Type | Description | Notes
122
122
 
123
123
  BatchRetrieveInventoryCounts
124
124
 
125
- Returns current counts for the provided [CatalogObject](#type-catalogobject)s at the requested [Location](#type-location)s. Results are paginated and sorted in descending order according to their `calculated_at` timestamp (newest first). When `updated_at` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a \"sync\" operation, for example in response to receiving a Webhook notification.
125
+ Returns current counts for the provided [CatalogObject](#type-catalogobject)s at the requested [Location](#type-location)s. Results are paginated and sorted in descending order according to their `calculated_at` timestamp (newest first). When `updated_after` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a \"sync\" operation, for example in response to receiving a Webhook notification.
126
126
 
127
127
  ### Example
128
128
  ```ruby
data/docs/Product.md CHANGED
@@ -14,6 +14,8 @@ Name | Type
14
14
  **INVOICES** | string
15
15
  **ONLINE_STORE** | string
16
16
  **PAYROLL** | string
17
+ **DASHBOARD** | string
18
+ **ITEM_LIBRARY_IMPORT** | string
17
19
  **OTHER** | string
18
20
 
19
21
 
data/docs/V1Payment.md CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **String** | The payment's unique identifier. | [optional]
9
9
  **merchant_id** | **String** | The unique identifier of the merchant that took the payment. | [optional]
10
- **created_at** | **String** | The time when the payment was created, in ISO 8601 format. | [optional]
10
+ **created_at** | **String** | The time when the payment was created, in ISO 8601 format. Reflects the time of the first payment if the object represents an incomplete partial payment, and the time of the last or complete payment otherwise. | [optional]
11
11
  **creator_id** | **String** | The unique identifier of the Square account that took the payment. | [optional]
12
12
  **device** | [**Device**](Device.md) | The device that took the payment. | [optional]
13
13
  **payment_url** | **String** | The URL of the payment's detail page in the merchant dashboard. The merchant must be signed in to the merchant dashboard to view this page. | [optional]
data/docs/V1Refund.md CHANGED
@@ -8,6 +8,16 @@ Name | Type | Description | Notes
8
8
  **type** | **String** | The type of refund | [optional]
9
9
  **reason** | **String** | The merchant-specified reason for the refund. | [optional]
10
10
  **refunded_money** | [**V1Money**](V1Money.md) | The amount of money refunded. This amount is always negative. | [optional]
11
+ **refunded_processing_fee_money** | [**V1Money**](V1Money.md) | The amount of processing fee money refunded. This amount is always positive. | [optional]
12
+ **refunded_tax_money** | [**V1Money**](V1Money.md) | The total amount of tax money refunded. This amount is always negative. | [optional]
13
+ **refunded_additive_tax_money** | [**V1Money**](V1Money.md) | The amount of additive tax money refunded. This amount is always negative. | [optional]
14
+ **refunded_additive_tax** | [**Array<V1PaymentTax>**](V1PaymentTax.md) | All of the additive taxes associated with the refund. | [optional]
15
+ **refunded_inclusive_tax_money** | [**V1Money**](V1Money.md) | The amount of inclusive tax money refunded. This amount is always negative. | [optional]
16
+ **refunded_inclusive_tax** | [**Array<V1PaymentTax>**](V1PaymentTax.md) | All of the inclusive taxes associated with the refund. | [optional]
17
+ **refunded_tip_money** | [**V1Money**](V1Money.md) | The amount of tip money refunded. This amount is always negative. | [optional]
18
+ **refunded_discount_money** | [**V1Money**](V1Money.md) | The amount of discount money refunded. This amount is always positive. | [optional]
19
+ **refunded_surcharge_money** | [**V1Money**](V1Money.md) | The amount of surcharge money refunded. This amount is always negative. | [optional]
20
+ **refunded_surcharges** | [**Array<V1PaymentSurcharge>**](V1PaymentSurcharge.md) | A list of all surcharges associated with the refund. | [optional]
11
21
  **created_at** | **String** | The time when the merchant initiated the refund for Square to process, in ISO 8601 format. | [optional]
12
22
  **processed_at** | **String** | The time when Square processed the refund on behalf of the merchant, in ISO 8601 format. | [optional]
13
23
  **payment_id** | **String** | A Square-issued ID associated with the refund. For single-tender refunds, payment_id is the ID of the original payment ID. For split-tender refunds, payment_id is the ID of the original tender. For exchange-based refunds (is_exchange == true), payment_id is the ID of the original payment ID even if the payment includes other tenders. | [optional]
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2018-09-18"
54
+ header_params['Square-Version'] = "2018-12-05"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2018-09-18"
54
+ header_params['Square-Version'] = "2018-12-05"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -106,7 +106,7 @@ module SquareConnect
106
106
  # HTTP header 'Content-Type'
107
107
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
108
108
 
109
- header_params['Square-Version'] = "2018-09-18"
109
+ header_params['Square-Version'] = "2018-12-05"
110
110
 
111
111
  # form parameters
112
112
  form_params = {}
@@ -161,7 +161,7 @@ module SquareConnect
161
161
  # HTTP header 'Content-Type'
162
162
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
163
163
 
164
- header_params['Square-Version'] = "2018-09-18"
164
+ header_params['Square-Version'] = "2018-12-05"
165
165
 
166
166
  # form parameters
167
167
  form_params = {}
@@ -212,7 +212,7 @@ module SquareConnect
212
212
  # HTTP header 'Content-Type'
213
213
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
214
214
 
215
- header_params['Square-Version'] = "2018-09-18"
215
+ header_params['Square-Version'] = "2018-12-05"
216
216
 
217
217
  # form parameters
218
218
  form_params = {}
@@ -267,7 +267,7 @@ module SquareConnect
267
267
  # HTTP header 'Content-Type'
268
268
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
269
269
 
270
- header_params['Square-Version'] = "2018-09-18"
270
+ header_params['Square-Version'] = "2018-12-05"
271
271
 
272
272
  # form parameters
273
273
  form_params = {}
@@ -324,7 +324,7 @@ module SquareConnect
324
324
  # HTTP header 'Content-Type'
325
325
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
326
326
 
327
- header_params['Square-Version'] = "2018-09-18"
327
+ header_params['Square-Version'] = "2018-12-05"
328
328
 
329
329
  # form parameters
330
330
  form_params = {}
@@ -382,7 +382,7 @@ module SquareConnect
382
382
  # HTTP header 'Content-Type'
383
383
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
384
384
 
385
- header_params['Square-Version'] = "2018-09-18"
385
+ header_params['Square-Version'] = "2018-12-05"
386
386
 
387
387
  # form parameters
388
388
  form_params = {}
@@ -437,7 +437,7 @@ module SquareConnect
437
437
  # HTTP header 'Content-Type'
438
438
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
439
439
 
440
- header_params['Square-Version'] = "2018-09-18"
440
+ header_params['Square-Version'] = "2018-12-05"
441
441
 
442
442
  # form parameters
443
443
  form_params = {}
@@ -492,7 +492,7 @@ module SquareConnect
492
492
  # HTTP header 'Content-Type'
493
493
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
494
494
 
495
- header_params['Square-Version'] = "2018-09-18"
495
+ header_params['Square-Version'] = "2018-12-05"
496
496
 
497
497
  # form parameters
498
498
  form_params = {}
@@ -547,7 +547,7 @@ module SquareConnect
547
547
  # HTTP header 'Content-Type'
548
548
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
549
549
 
550
- header_params['Square-Version'] = "2018-09-18"
550
+ header_params['Square-Version'] = "2018-12-05"
551
551
 
552
552
  # form parameters
553
553
  form_params = {}
@@ -602,7 +602,7 @@ module SquareConnect
602
602
  # HTTP header 'Content-Type'
603
603
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
604
604
 
605
- header_params['Square-Version'] = "2018-09-18"
605
+ header_params['Square-Version'] = "2018-12-05"
606
606
 
607
607
  # form parameters
608
608
  form_params = {}
@@ -55,7 +55,7 @@ module SquareConnect
55
55
  # HTTP header 'Content-Type'
56
56
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
57
 
58
- header_params['Square-Version'] = "2018-09-18"
58
+ header_params['Square-Version'] = "2018-12-05"
59
59
 
60
60
  # form parameters
61
61
  form_params = {}
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2018-09-18"
54
+ header_params['Square-Version'] = "2018-12-05"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -73,7 +73,7 @@ module SquareConnect
73
73
  end
74
74
 
75
75
  # CreateCustomerCard
76
- # Adds a card on file to an existing customer. In the United States Square takes care of automatically updating any cards on file that might have expired since you first attached them to a customer. As with charges, calls to `CreateCustomerCard` are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.
76
+ # Adds a card on file to an existing customer. As with charges, calls to `CreateCustomerCard` are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.
77
77
  # @param customer_id The ID of the customer to link the card on file to.
78
78
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
79
79
  # @param [Hash] opts the optional parameters
@@ -84,7 +84,7 @@ module SquareConnect
84
84
  end
85
85
 
86
86
  # CreateCustomerCard
87
- # Adds a card on file to an existing customer. In the United States Square takes care of automatically updating any cards on file that might have expired since you first attached them to a customer. As with charges, calls to `CreateCustomerCard` are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.
87
+ # Adds a card on file to an existing customer. As with charges, calls to `CreateCustomerCard` are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.
88
88
  # @param customer_id The ID of the customer to link the card on file to.
89
89
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
90
90
  # @param [Hash] opts the optional parameters
@@ -110,7 +110,7 @@ module SquareConnect
110
110
  # HTTP header 'Content-Type'
111
111
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
112
112
 
113
- header_params['Square-Version'] = "2018-09-18"
113
+ header_params['Square-Version'] = "2018-12-05"
114
114
 
115
115
  # form parameters
116
116
  form_params = {}
@@ -165,7 +165,7 @@ module SquareConnect
165
165
  # HTTP header 'Content-Type'
166
166
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
167
167
 
168
- header_params['Square-Version'] = "2018-09-18"
168
+ header_params['Square-Version'] = "2018-12-05"
169
169
 
170
170
  # form parameters
171
171
  form_params = {}
@@ -224,7 +224,7 @@ module SquareConnect
224
224
  # HTTP header 'Content-Type'
225
225
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
226
226
 
227
- header_params['Square-Version'] = "2018-09-18"
227
+ header_params['Square-Version'] = "2018-12-05"
228
228
 
229
229
  # form parameters
230
230
  form_params = {}
@@ -290,7 +290,7 @@ module SquareConnect
290
290
  # HTTP header 'Content-Type'
291
291
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
292
292
 
293
- header_params['Square-Version'] = "2018-09-18"
293
+ header_params['Square-Version'] = "2018-12-05"
294
294
 
295
295
  # form parameters
296
296
  form_params = {}
@@ -345,7 +345,7 @@ module SquareConnect
345
345
  # HTTP header 'Content-Type'
346
346
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
347
347
 
348
- header_params['Square-Version'] = "2018-09-18"
348
+ header_params['Square-Version'] = "2018-12-05"
349
349
 
350
350
  # form parameters
351
351
  form_params = {}
@@ -400,7 +400,7 @@ module SquareConnect
400
400
  # HTTP header 'Content-Type'
401
401
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
402
402
 
403
- header_params['Square-Version'] = "2018-09-18"
403
+ header_params['Square-Version'] = "2018-12-05"
404
404
 
405
405
  # form parameters
406
406
  form_params = {}
@@ -459,7 +459,7 @@ module SquareConnect
459
459
  # HTTP header 'Content-Type'
460
460
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
461
461
 
462
- header_params['Square-Version'] = "2018-09-18"
462
+ header_params['Square-Version'] = "2018-12-05"
463
463
 
464
464
  # form parameters
465
465
  form_params = {}
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2018-09-18"
54
+ header_params['Square-Version'] = "2018-12-05"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -106,7 +106,7 @@ module SquareConnect
106
106
  # HTTP header 'Content-Type'
107
107
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
108
108
 
109
- header_params['Square-Version'] = "2018-09-18"
109
+ header_params['Square-Version'] = "2018-12-05"
110
110
 
111
111
  # form parameters
112
112
  form_params = {}
@@ -128,7 +128,7 @@ module SquareConnect
128
128
  end
129
129
 
130
130
  # BatchRetrieveInventoryCounts
131
- # Returns current counts for the provided [CatalogObject](#type-catalogobject)s at the requested [Location](#type-location)s. Results are paginated and sorted in descending order according to their `calculated_at` timestamp (newest first). When `updated_at` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a \"sync\" operation, for example in response to receiving a Webhook notification.
131
+ # Returns current counts for the provided [CatalogObject](#type-catalogobject)s at the requested [Location](#type-location)s. Results are paginated and sorted in descending order according to their `calculated_at` timestamp (newest first). When `updated_after` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a \"sync\" operation, for example in response to receiving a Webhook notification.
132
132
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
133
133
  # @param [Hash] opts the optional parameters
134
134
  # @return [BatchRetrieveInventoryCountsResponse]
@@ -138,7 +138,7 @@ module SquareConnect
138
138
  end
139
139
 
140
140
  # BatchRetrieveInventoryCounts
141
- # Returns current counts for the provided [CatalogObject](#type-catalogobject)s at the requested [Location](#type-location)s. Results are paginated and sorted in descending order according to their `calculated_at` timestamp (newest first). When `updated_at` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a \"sync\" operation, for example in response to receiving a Webhook notification.
141
+ # Returns current counts for the provided [CatalogObject](#type-catalogobject)s at the requested [Location](#type-location)s. Results are paginated and sorted in descending order according to their `calculated_at` timestamp (newest first). When `updated_after` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a \"sync\" operation, for example in response to receiving a Webhook notification.
142
142
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
143
143
  # @param [Hash] opts the optional parameters
144
144
  # @return [Array<(BatchRetrieveInventoryCountsResponse, Fixnum, Hash)>] BatchRetrieveInventoryCountsResponse data, response status code and response headers
@@ -161,7 +161,7 @@ module SquareConnect
161
161
  # HTTP header 'Content-Type'
162
162
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
163
163
 
164
- header_params['Square-Version'] = "2018-09-18"
164
+ header_params['Square-Version'] = "2018-12-05"
165
165
 
166
166
  # form parameters
167
167
  form_params = {}
@@ -216,7 +216,7 @@ module SquareConnect
216
216
  # HTTP header 'Content-Type'
217
217
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
218
218
 
219
- header_params['Square-Version'] = "2018-09-18"
219
+ header_params['Square-Version'] = "2018-12-05"
220
220
 
221
221
  # form parameters
222
222
  form_params = {}
@@ -277,7 +277,7 @@ module SquareConnect
277
277
  # HTTP header 'Content-Type'
278
278
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
279
279
 
280
- header_params['Square-Version'] = "2018-09-18"
280
+ header_params['Square-Version'] = "2018-12-05"
281
281
 
282
282
  # form parameters
283
283
  form_params = {}
@@ -338,7 +338,7 @@ module SquareConnect
338
338
  # HTTP header 'Content-Type'
339
339
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
340
340
 
341
- header_params['Square-Version'] = "2018-09-18"
341
+ header_params['Square-Version'] = "2018-12-05"
342
342
 
343
343
  # form parameters
344
344
  form_params = {}
@@ -393,7 +393,7 @@ module SquareConnect
393
393
  # HTTP header 'Content-Type'
394
394
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
395
395
 
396
- header_params['Square-Version'] = "2018-09-18"
396
+ header_params['Square-Version'] = "2018-12-05"
397
397
 
398
398
  # form parameters
399
399
  form_params = {}
@@ -47,7 +47,7 @@ module SquareConnect
47
47
  # HTTP header 'Content-Type'
48
48
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
49
49
 
50
- header_params['Square-Version'] = "2018-09-18"
50
+ header_params['Square-Version'] = "2018-12-05"
51
51
 
52
52
  # form parameters
53
53
  form_params = {}
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2018-09-18"
54
+ header_params['Square-Version'] = "2018-12-05"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2018-09-18"
54
+ header_params['Square-Version'] = "2018-12-05"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -110,7 +110,7 @@ module SquareConnect
110
110
  # HTTP header 'Content-Type'
111
111
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
112
112
 
113
- header_params['Square-Version'] = "2018-09-18"
113
+ header_params['Square-Version'] = "2018-12-05"
114
114
 
115
115
  # form parameters
116
116
  form_params = {}
@@ -165,7 +165,7 @@ module SquareConnect
165
165
  # HTTP header 'Content-Type'
166
166
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
167
167
 
168
- header_params['Square-Version'] = "2018-09-18"
168
+ header_params['Square-Version'] = "2018-12-05"
169
169
 
170
170
  # form parameters
171
171
  form_params = {}
@@ -55,7 +55,7 @@ module SquareConnect
55
55
  # HTTP header 'Content-Type'
56
56
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
57
 
58
- header_params['Square-Version'] = "2018-09-18"
58
+ header_params['Square-Version'] = "2018-12-05"
59
59
 
60
60
  # form parameters
61
61
  form_params = {}
@@ -114,7 +114,7 @@ module SquareConnect
114
114
  # HTTP header 'Content-Type'
115
115
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
116
116
 
117
- header_params['Square-Version'] = "2018-09-18"
117
+ header_params['Square-Version'] = "2018-12-05"
118
118
 
119
119
  # form parameters
120
120
  form_params = {}
@@ -66,7 +66,7 @@ module SquareConnect
66
66
  # HTTP header 'Content-Type'
67
67
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
68
68
 
69
- header_params['Square-Version'] = "2018-09-18"
69
+ header_params['Square-Version'] = "2018-12-05"
70
70
 
71
71
  # form parameters
72
72
  form_params = {}
@@ -136,7 +136,7 @@ module SquareConnect
136
136
  # HTTP header 'Content-Type'
137
137
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
138
138
 
139
- header_params['Square-Version'] = "2018-09-18"
139
+ header_params['Square-Version'] = "2018-12-05"
140
140
 
141
141
  # form parameters
142
142
  form_params = {}
@@ -55,7 +55,7 @@ module SquareConnect
55
55
  # HTTP header 'Content-Type'
56
56
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
57
 
58
- header_params['Square-Version'] = "2018-09-18"
58
+ header_params['Square-Version'] = "2018-12-05"
59
59
 
60
60
  # form parameters
61
61
  form_params = {}
@@ -114,7 +114,7 @@ module SquareConnect
114
114
  # HTTP header 'Content-Type'
115
115
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
116
116
 
117
- header_params['Square-Version'] = "2018-09-18"
117
+ header_params['Square-Version'] = "2018-12-05"
118
118
 
119
119
  # form parameters
120
120
  form_params = {}
@@ -177,7 +177,7 @@ module SquareConnect
177
177
  # HTTP header 'Content-Type'
178
178
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
179
179
 
180
- header_params['Square-Version'] = "2018-09-18"
180
+ header_params['Square-Version'] = "2018-12-05"
181
181
 
182
182
  # form parameters
183
183
  form_params = {}
@@ -247,7 +247,7 @@ module SquareConnect
247
247
  # HTTP header 'Content-Type'
248
248
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
249
249
 
250
- header_params['Square-Version'] = "2018-09-18"
250
+ header_params['Square-Version'] = "2018-12-05"
251
251
 
252
252
  # form parameters
253
253
  form_params = {}
@@ -317,7 +317,7 @@ module SquareConnect
317
317
  # HTTP header 'Content-Type'
318
318
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
319
319
 
320
- header_params['Square-Version'] = "2018-09-18"
320
+ header_params['Square-Version'] = "2018-12-05"
321
321
 
322
322
  # form parameters
323
323
  form_params = {}
@@ -376,7 +376,7 @@ module SquareConnect
376
376
  # HTTP header 'Content-Type'
377
377
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
378
378
 
379
- header_params['Square-Version'] = "2018-09-18"
379
+ header_params['Square-Version'] = "2018-12-05"
380
380
 
381
381
  # form parameters
382
382
  form_params = {}
@@ -435,7 +435,7 @@ module SquareConnect
435
435
  # HTTP header 'Content-Type'
436
436
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
437
437
 
438
- header_params['Square-Version'] = "2018-09-18"
438
+ header_params['Square-Version'] = "2018-12-05"
439
439
 
440
440
  # form parameters
441
441
  form_params = {}
@@ -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.20180918.1"
33
+ @user_agent = "Square-Connect-Ruby/2.20181205.0"
34
34
 
35
35
  @default_headers = {
36
36
  'Content-Type' => "application/json",
@@ -10,30 +10,30 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Represents the non-confidential details of a credit card.
13
+ # Represents the payment details of a card to be used for payments. These details are determined by the `card_nonce` generated by `SqPaymentForm`.
14
14
  class Card
15
- # The card's unique ID, if any.
15
+ # Unique ID for this card. Generated by Square.
16
16
  attr_accessor :id
17
17
 
18
18
  # The card's brand (such as `VISA`). See [CardBrand](#type-cardbrand) for all possible values.
19
19
  attr_accessor :card_brand
20
20
 
21
- # The last 4 digits of the card's number.
21
+ # The last 4 digits of the card number.
22
22
  attr_accessor :last_4
23
23
 
24
- # The month of the card's expiration date. This value is always between `1` and `12`, inclusive.
24
+ # The expiration month of the associated card as an integer between 1 and 12.
25
25
  attr_accessor :exp_month
26
26
 
27
27
  # The four-digit year of the card's expiration date.
28
28
  attr_accessor :exp_year
29
29
 
30
- # The cardholder name. This value is present only if this object represents a customer's card on file.
30
+ # The name of the cardholder.
31
31
  attr_accessor :cardholder_name
32
32
 
33
- # The card's billing address. This value is present only if this object represents a customer's card on file.
33
+ # The billing address for this card.
34
34
  attr_accessor :billing_address
35
35
 
36
- # The unique string fingerprint for the card. The fingerprint is based on the credit card number and is unique to the merchant. If a card is used at multiple locations for the same merchant, it will have the same fingerprint in each case. Note: Fingerprint may not exist on old transactions.
36
+ # __Not currently set.__ Intended as a Square-assigned identifier, based on the card number, to identify the card across multiple locations within a single application.
37
37
  attr_accessor :fingerprint
38
38
 
39
39
  class EnumAttributeValidator
@@ -12,6 +12,9 @@ require 'date'
12
12
  module SquareConnect
13
13
  # Defines the body parameters that can be provided in a request to the [CreateCustomer](#endpoint-createcustomer) endpoint.
14
14
  class CreateCustomerRequest
15
+ # The idempotency key for the request. See the [Idempotency](/basics/api101/idempotency) guide for more information.
16
+ attr_accessor :idempotency_key
17
+
15
18
  # The customer's given (i.e., first) name.
16
19
  attr_accessor :given_name
17
20
 
@@ -46,6 +49,7 @@ module SquareConnect
46
49
  # Attribute mapping from ruby-style variable name to JSON key.
47
50
  def self.attribute_map
48
51
  {
52
+ :'idempotency_key' => :'idempotency_key',
49
53
  :'given_name' => :'given_name',
50
54
  :'family_name' => :'family_name',
51
55
  :'company_name' => :'company_name',
@@ -62,6 +66,7 @@ module SquareConnect
62
66
  # Attribute type mapping.
63
67
  def self.swagger_types
64
68
  {
69
+ :'idempotency_key' => :'String',
65
70
  :'given_name' => :'String',
66
71
  :'family_name' => :'String',
67
72
  :'company_name' => :'String',
@@ -83,6 +88,10 @@ module SquareConnect
83
88
  # convert string to symbol for hash key
84
89
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
85
90
 
91
+ if attributes.has_key?(:'idempotency_key')
92
+ self.idempotency_key = attributes[:'idempotency_key']
93
+ end
94
+
86
95
  if attributes.has_key?(:'given_name')
87
96
  self.given_name = attributes[:'given_name']
88
97
  end
@@ -143,6 +152,7 @@ module SquareConnect
143
152
  def ==(o)
144
153
  return true if self.equal?(o)
145
154
  self.class == o.class &&
155
+ idempotency_key == o.idempotency_key &&
146
156
  given_name == o.given_name &&
147
157
  family_name == o.family_name &&
148
158
  company_name == o.company_name &&
@@ -164,7 +174,7 @@ module SquareConnect
164
174
  # Calculates hash code according to all attributes.
165
175
  # @return [Fixnum] Hash code
166
176
  def hash
167
- [given_name, family_name, company_name, nickname, email_address, address, phone_number, reference_id, note, birthday].hash
177
+ [idempotency_key, given_name, family_name, company_name, nickname, email_address, address, phone_number, reference_id, note, birthday].hash
168
178
  end
169
179
 
170
180
  # Builds the object from hash
@@ -21,7 +21,7 @@ module SquareConnect
21
21
  # The time when the customer was last updated, in RFC 3339 format.
22
22
  attr_accessor :updated_at
23
23
 
24
- # The non-confidential details of the customer's cards on file.
24
+ # The payment details of the customer's cards on file.
25
25
  attr_accessor :cards
26
26
 
27
27
  # The customer's given (i.e., first) name.
@@ -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", "DEPRECATED_FIELD_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", "BAD_CERTIFICATE", "CARD_DECLINED", "VERIFY_CVV_FAILURE", "VERIFY_AVS_FAILURE", "CARD_DECLINED_CALL_ISSUER", "NOT_FOUND", "APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND", "METHOD_NOT_ALLOWED", "REQUEST_TIMEOUT", "CONFLICT", "REQUEST_ENTITY_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "RATE_LIMITED", "NOT_IMPLEMENTED", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT"])
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_MAP", "EXPECTED_BASE64_ENCODED_BYTE_ARRAY", "INVALID_ARRAY_VALUE", "INVALID_ENUM_VALUE", "INVALID_CONTENT_TYPE", "INVALID_FORM_VALUE", "ONE_INSTRUMENT_EXPECTED", "NO_FIELDS_SET", "DEPRECATED_FIELD_SET", "CARD_EXPIRED", "INVALID_EXPIRATION", "INVALID_EXPIRATION_YEAR", "INVALID_EXPIRATION_DATE", "UNSUPPORTED_CARD_BRAND", "UNSUPPORTED_ENTRY_METHOD", "INVALID_ENCRYPTED_CARD", "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", "BAD_CERTIFICATE", "CARD_DECLINED", "VERIFY_CVV_FAILURE", "VERIFY_AVS_FAILURE", "CARD_DECLINED_CALL_ISSUER", "NOT_FOUND", "APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND", "METHOD_NOT_ALLOWED", "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", "DEPRECATED_FIELD_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", "BAD_CERTIFICATE", "CARD_DECLINED", "VERIFY_CVV_FAILURE", "VERIFY_AVS_FAILURE", "CARD_DECLINED_CALL_ISSUER", "NOT_FOUND", "APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND", "METHOD_NOT_ALLOWED", "REQUEST_TIMEOUT", "CONFLICT", "REQUEST_ENTITY_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "RATE_LIMITED", "NOT_IMPLEMENTED", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT"])
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_MAP", "EXPECTED_BASE64_ENCODED_BYTE_ARRAY", "INVALID_ARRAY_VALUE", "INVALID_ENUM_VALUE", "INVALID_CONTENT_TYPE", "INVALID_FORM_VALUE", "ONE_INSTRUMENT_EXPECTED", "NO_FIELDS_SET", "DEPRECATED_FIELD_SET", "CARD_EXPIRED", "INVALID_EXPIRATION", "INVALID_EXPIRATION_YEAR", "INVALID_EXPIRATION_DATE", "UNSUPPORTED_CARD_BRAND", "UNSUPPORTED_ENTRY_METHOD", "INVALID_ENCRYPTED_CARD", "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", "BAD_CERTIFICATE", "CARD_DECLINED", "VERIFY_CVV_FAILURE", "VERIFY_AVS_FAILURE", "CARD_DECLINED_CALL_ISSUER", "NOT_FOUND", "APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND", "METHOD_NOT_ALLOWED", "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
@@ -48,6 +48,7 @@ module SquareConnect
48
48
  EXPECTED_STRING = "EXPECTED_STRING".freeze
49
49
  EXPECTED_OBJECT = "EXPECTED_OBJECT".freeze
50
50
  EXPECTED_ARRAY = "EXPECTED_ARRAY".freeze
51
+ EXPECTED_MAP = "EXPECTED_MAP".freeze
51
52
  EXPECTED_BASE64_ENCODED_BYTE_ARRAY = "EXPECTED_BASE64_ENCODED_BYTE_ARRAY".freeze
52
53
  INVALID_ARRAY_VALUE = "INVALID_ARRAY_VALUE".freeze
53
54
  INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE".freeze
@@ -62,6 +63,7 @@ module SquareConnect
62
63
  INVALID_EXPIRATION_DATE = "INVALID_EXPIRATION_DATE".freeze
63
64
  UNSUPPORTED_CARD_BRAND = "UNSUPPORTED_CARD_BRAND".freeze
64
65
  UNSUPPORTED_ENTRY_METHOD = "UNSUPPORTED_ENTRY_METHOD".freeze
66
+ INVALID_ENCRYPTED_CARD = "INVALID_ENCRYPTED_CARD".freeze
65
67
  INVALID_CARD = "INVALID_CARD".freeze
66
68
  DELAYED_TRANSACTION_EXPIRED = "DELAYED_TRANSACTION_EXPIRED".freeze
67
69
  DELAYED_TRANSACTION_CANCELED = "DELAYED_TRANSACTION_CANCELED".freeze
@@ -19,6 +19,8 @@ module SquareConnect
19
19
  INVOICES = "INVOICES".freeze
20
20
  ONLINE_STORE = "ONLINE_STORE".freeze
21
21
  PAYROLL = "PAYROLL".freeze
22
+ DASHBOARD = "DASHBOARD".freeze
23
+ ITEM_LIBRARY_IMPORT = "ITEM_LIBRARY_IMPORT".freeze
22
24
  OTHER = "OTHER".freeze
23
25
  end
24
26
 
@@ -93,7 +93,7 @@ module SquareConnect
93
93
  # Check to see if the all the properties in the model are valid
94
94
  # @return true if the model is valid
95
95
  def valid?
96
- product_validator = EnumAttributeValidator.new('String', ["SQUARE_POS", "EXTERNAL_API", "BILLING", "APPOINTMENTS", "INVOICES", "ONLINE_STORE", "PAYROLL", "OTHER"])
96
+ product_validator = EnumAttributeValidator.new('String', ["SQUARE_POS", "EXTERNAL_API", "BILLING", "APPOINTMENTS", "INVOICES", "ONLINE_STORE", "PAYROLL", "DASHBOARD", "ITEM_LIBRARY_IMPORT", "OTHER"])
97
97
  return false unless product_validator.valid?(@product)
98
98
  return true
99
99
  end
@@ -101,7 +101,7 @@ module SquareConnect
101
101
  # Custom attribute writer method checking allowed values (enum).
102
102
  # @param [Object] product Object to be assigned
103
103
  def product=(product)
104
- validator = EnumAttributeValidator.new('String', ["SQUARE_POS", "EXTERNAL_API", "BILLING", "APPOINTMENTS", "INVOICES", "ONLINE_STORE", "PAYROLL", "OTHER"])
104
+ validator = EnumAttributeValidator.new('String', ["SQUARE_POS", "EXTERNAL_API", "BILLING", "APPOINTMENTS", "INVOICES", "ONLINE_STORE", "PAYROLL", "DASHBOARD", "ITEM_LIBRARY_IMPORT", "OTHER"])
105
105
  unless validator.valid?(product)
106
106
  fail ArgumentError, "invalid value for 'product', must be one of #{validator.allowable_values}."
107
107
  end
@@ -18,7 +18,7 @@ module SquareConnect
18
18
  # The unique identifier of the merchant that took the payment.
19
19
  attr_accessor :merchant_id
20
20
 
21
- # The time when the payment was created, in ISO 8601 format.
21
+ # The time when the payment was created, in ISO 8601 format. Reflects the time of the first payment if the object represents an incomplete partial payment, and the time of the last or complete payment otherwise.
22
22
  attr_accessor :created_at
23
23
 
24
24
  # The unique identifier of the Square account that took the payment.
@@ -21,6 +21,36 @@ module SquareConnect
21
21
  # The amount of money refunded. This amount is always negative.
22
22
  attr_accessor :refunded_money
23
23
 
24
+ # The amount of processing fee money refunded. This amount is always positive.
25
+ attr_accessor :refunded_processing_fee_money
26
+
27
+ # The total amount of tax money refunded. This amount is always negative.
28
+ attr_accessor :refunded_tax_money
29
+
30
+ # The amount of additive tax money refunded. This amount is always negative.
31
+ attr_accessor :refunded_additive_tax_money
32
+
33
+ # All of the additive taxes associated with the refund.
34
+ attr_accessor :refunded_additive_tax
35
+
36
+ # The amount of inclusive tax money refunded. This amount is always negative.
37
+ attr_accessor :refunded_inclusive_tax_money
38
+
39
+ # All of the inclusive taxes associated with the refund.
40
+ attr_accessor :refunded_inclusive_tax
41
+
42
+ # The amount of tip money refunded. This amount is always negative.
43
+ attr_accessor :refunded_tip_money
44
+
45
+ # The amount of discount money refunded. This amount is always positive.
46
+ attr_accessor :refunded_discount_money
47
+
48
+ # The amount of surcharge money refunded. This amount is always negative.
49
+ attr_accessor :refunded_surcharge_money
50
+
51
+ # A list of all surcharges associated with the refund.
52
+ attr_accessor :refunded_surcharges
53
+
24
54
  # The time when the merchant initiated the refund for Square to process, in ISO 8601 format.
25
55
  attr_accessor :created_at
26
56
 
@@ -64,6 +94,16 @@ module SquareConnect
64
94
  :'type' => :'type',
65
95
  :'reason' => :'reason',
66
96
  :'refunded_money' => :'refunded_money',
97
+ :'refunded_processing_fee_money' => :'refunded_processing_fee_money',
98
+ :'refunded_tax_money' => :'refunded_tax_money',
99
+ :'refunded_additive_tax_money' => :'refunded_additive_tax_money',
100
+ :'refunded_additive_tax' => :'refunded_additive_tax',
101
+ :'refunded_inclusive_tax_money' => :'refunded_inclusive_tax_money',
102
+ :'refunded_inclusive_tax' => :'refunded_inclusive_tax',
103
+ :'refunded_tip_money' => :'refunded_tip_money',
104
+ :'refunded_discount_money' => :'refunded_discount_money',
105
+ :'refunded_surcharge_money' => :'refunded_surcharge_money',
106
+ :'refunded_surcharges' => :'refunded_surcharges',
67
107
  :'created_at' => :'created_at',
68
108
  :'processed_at' => :'processed_at',
69
109
  :'payment_id' => :'payment_id',
@@ -78,6 +118,16 @@ module SquareConnect
78
118
  :'type' => :'String',
79
119
  :'reason' => :'String',
80
120
  :'refunded_money' => :'V1Money',
121
+ :'refunded_processing_fee_money' => :'V1Money',
122
+ :'refunded_tax_money' => :'V1Money',
123
+ :'refunded_additive_tax_money' => :'V1Money',
124
+ :'refunded_additive_tax' => :'Array<V1PaymentTax>',
125
+ :'refunded_inclusive_tax_money' => :'V1Money',
126
+ :'refunded_inclusive_tax' => :'Array<V1PaymentTax>',
127
+ :'refunded_tip_money' => :'V1Money',
128
+ :'refunded_discount_money' => :'V1Money',
129
+ :'refunded_surcharge_money' => :'V1Money',
130
+ :'refunded_surcharges' => :'Array<V1PaymentSurcharge>',
81
131
  :'created_at' => :'String',
82
132
  :'processed_at' => :'String',
83
133
  :'payment_id' => :'String',
@@ -106,6 +156,52 @@ module SquareConnect
106
156
  self.refunded_money = attributes[:'refunded_money']
107
157
  end
108
158
 
159
+ if attributes.has_key?(:'refunded_processing_fee_money')
160
+ self.refunded_processing_fee_money = attributes[:'refunded_processing_fee_money']
161
+ end
162
+
163
+ if attributes.has_key?(:'refunded_tax_money')
164
+ self.refunded_tax_money = attributes[:'refunded_tax_money']
165
+ end
166
+
167
+ if attributes.has_key?(:'refunded_additive_tax_money')
168
+ self.refunded_additive_tax_money = attributes[:'refunded_additive_tax_money']
169
+ end
170
+
171
+ if attributes.has_key?(:'refunded_additive_tax')
172
+ if (value = attributes[:'refunded_additive_tax']).is_a?(Array)
173
+ self.refunded_additive_tax = value
174
+ end
175
+ end
176
+
177
+ if attributes.has_key?(:'refunded_inclusive_tax_money')
178
+ self.refunded_inclusive_tax_money = attributes[:'refunded_inclusive_tax_money']
179
+ end
180
+
181
+ if attributes.has_key?(:'refunded_inclusive_tax')
182
+ if (value = attributes[:'refunded_inclusive_tax']).is_a?(Array)
183
+ self.refunded_inclusive_tax = value
184
+ end
185
+ end
186
+
187
+ if attributes.has_key?(:'refunded_tip_money')
188
+ self.refunded_tip_money = attributes[:'refunded_tip_money']
189
+ end
190
+
191
+ if attributes.has_key?(:'refunded_discount_money')
192
+ self.refunded_discount_money = attributes[:'refunded_discount_money']
193
+ end
194
+
195
+ if attributes.has_key?(:'refunded_surcharge_money')
196
+ self.refunded_surcharge_money = attributes[:'refunded_surcharge_money']
197
+ end
198
+
199
+ if attributes.has_key?(:'refunded_surcharges')
200
+ if (value = attributes[:'refunded_surcharges']).is_a?(Array)
201
+ self.refunded_surcharges = value
202
+ end
203
+ end
204
+
109
205
  if attributes.has_key?(:'created_at')
110
206
  self.created_at = attributes[:'created_at']
111
207
  end
@@ -161,6 +257,16 @@ module SquareConnect
161
257
  type == o.type &&
162
258
  reason == o.reason &&
163
259
  refunded_money == o.refunded_money &&
260
+ refunded_processing_fee_money == o.refunded_processing_fee_money &&
261
+ refunded_tax_money == o.refunded_tax_money &&
262
+ refunded_additive_tax_money == o.refunded_additive_tax_money &&
263
+ refunded_additive_tax == o.refunded_additive_tax &&
264
+ refunded_inclusive_tax_money == o.refunded_inclusive_tax_money &&
265
+ refunded_inclusive_tax == o.refunded_inclusive_tax &&
266
+ refunded_tip_money == o.refunded_tip_money &&
267
+ refunded_discount_money == o.refunded_discount_money &&
268
+ refunded_surcharge_money == o.refunded_surcharge_money &&
269
+ refunded_surcharges == o.refunded_surcharges &&
164
270
  created_at == o.created_at &&
165
271
  processed_at == o.processed_at &&
166
272
  payment_id == o.payment_id &&
@@ -177,7 +283,7 @@ module SquareConnect
177
283
  # Calculates hash code according to all attributes.
178
284
  # @return [Fixnum] Hash code
179
285
  def hash
180
- [type, reason, refunded_money, created_at, processed_at, payment_id, merchant_id, is_exchange].hash
286
+ [type, reason, refunded_money, refunded_processing_fee_money, refunded_tax_money, refunded_additive_tax_money, refunded_additive_tax, refunded_inclusive_tax_money, refunded_inclusive_tax, refunded_tip_money, refunded_discount_money, refunded_surcharge_money, refunded_surcharges, created_at, processed_at, payment_id, merchant_id, is_exchange].hash
181
287
  end
182
288
 
183
289
  # Builds the object from hash
@@ -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.20180918.1"
11
+ VERSION = "2.20181205.0"
12
12
  end
@@ -96,7 +96,7 @@ describe 'V1EmployeesApi' do
96
96
  # Provides summary information for all of a business&#39;s employee roles.
97
97
  # Provides summary information for all of a business&#39;s employee roles.
98
98
  # @param [Hash] opts the optional parameters
99
- # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field.Default value: ASC
99
+ # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field.Default value: ASC
100
100
  # @option opts [Integer] :limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200.
101
101
  # @option opts [String] :cursor A pagination cursor to retrieve the next set of results for your original query to the endpoint.
102
102
  # @return [Array<V1EmployeeRole>]
@@ -110,7 +110,7 @@ describe 'V1EmployeesApi' do
110
110
  # Provides summary information for all of a business&#39;s employees.
111
111
  # Provides summary information for all of a business&#39;s employees.
112
112
  # @param [Hash] opts the optional parameters
113
- # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field. Default value: ASC
113
+ # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field. Default value: ASC
114
114
  # @option opts [String] :begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format
115
115
  # @option opts [String] :end_updated_at If filtering results by there updated_at field, the end of the requested reporting period, in ISO 8601 format.
116
116
  # @option opts [String] :begin_created_at If filtering results by their created_at field, the beginning of the requested reporting period, in ISO 8601 format.
@@ -210,7 +210,7 @@ describe 'V1EmployeesApi' do
210
210
 
211
211
  # unit tests for update_employee
212
212
  # V1 UpdateEmployee
213
- #
213
+ #
214
214
  # @param employee_id The ID of the role to modify.
215
215
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
216
216
  # @param [Hash] opts the optional parameters
@@ -102,7 +102,7 @@ describe 'V1TransactionsApi' do
102
102
 
103
103
  # unit tests for list_settlements
104
104
  # Provides summary information for all deposits and withdrawals initiated by Square to a merchant&#39;s bank account during a date range. Date ranges cannot exceed one year in length.
105
- # Provides summary information for all deposits and withdrawals initiated by Square to a merchant&#39;s bank account during a date range. Date ranges cannot exceed one year in length.
105
+ # Provides summary information for all deposits and withdrawals initiated by Square to a merchant&#39;s bank account during a date range. Date ranges cannot exceed one year in length.
106
106
  # @param location_id The ID of the location to list settlements for. If you specify me, this endpoint returns payments aggregated from all of the business&#39;s locations.
107
107
  # @param [Hash] opts the optional parameters
108
108
  # @option opts [String] :order TThe order in which payments are listed in the response.
@@ -124,7 +124,7 @@ describe SquareConnect::ApiClient do
124
124
  #api_client = SquareConnect::ApiClient.new
125
125
  #_model = SquareConnect::ModelName.new
126
126
  # update the model attribute below
127
- #_model.id = 1
127
+ #_model.id = 1
128
128
  # update the expected value (hash) below
129
129
  #expected = {id: 1, name: '', tags: []}
130
130
  #expect(api_client.object_to_hash(_model)).to eq(expected)
data/spec/spec_helper.rb CHANGED
@@ -64,7 +64,7 @@ RSpec.configure do |config|
64
64
  config.access_token = @account["access_token"]
65
65
  end
66
66
  end
67
-
67
+
68
68
  # The settings below are suggested to provide a good initial experience
69
69
  # with RSpec, but feel free to customize to your heart's content.
70
70
  =begin
@@ -122,4 +122,4 @@ end
122
122
 
123
123
  def load_accounts()
124
124
  open('./travis-ci/accounts.json') { |f| JSON.load(f) }
125
- end
125
+ 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.20180918.1.251
4
+ version: 2.20181205.0.263
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-10-24 00:00:00.000000000 Z
11
+ date: 2018-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -34,42 +34,42 @@ dependencies:
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: 2.1.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '2.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '2.1'
50
47
  - - ">="
51
48
  - !ruby/object:Gem::Version
52
49
  version: 2.1.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '2.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '3.4'
60
57
  - - ">="
61
58
  - !ruby/object:Gem::Version
62
59
  version: 3.4.0
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '3.4'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.4'
70
67
  - - ">="
71
68
  - !ruby/object:Gem::Version
72
69
  version: 3.4.0
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '3.4'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: vcr
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -941,7 +941,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
941
941
  version: '0'
942
942
  requirements: []
943
943
  rubyforge_project:
944
- rubygems_version: 2.7.7
944
+ rubygems_version: 2.7.8
945
945
  signing_key:
946
946
  specification_version: 4
947
947
  summary: Square Connect API Ruby Gem