square_connect 2.0.0 → 2.0.2.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +151 -9
  4. data/Rakefile +8 -0
  5. data/docs/Address.md +26 -0
  6. data/docs/CaptureTransactionRequest.md +11 -0
  7. data/docs/CaptureTransactionResponse.md +12 -0
  8. data/docs/Card.md +18 -0
  9. data/docs/CardBrand.md +20 -0
  10. data/docs/ChargeRequest.md +22 -0
  11. data/docs/ChargeResponse.md +13 -0
  12. data/docs/Checkout.md +20 -0
  13. data/docs/CheckoutApi.md +62 -0
  14. data/docs/Country.md +261 -0
  15. data/docs/CreateCheckoutRequest.md +18 -0
  16. data/docs/CreateCheckoutResponse.md +13 -0
  17. data/docs/CreateCustomerCardRequest.md +14 -0
  18. data/docs/CreateCustomerCardResponse.md +13 -0
  19. data/docs/CreateCustomerRequest.md +20 -0
  20. data/docs/CreateCustomerResponse.md +13 -0
  21. data/docs/CreateOrderRequest.md +13 -0
  22. data/docs/CreateOrderRequestLineItem.md +14 -0
  23. data/docs/CreateOrderRequestOrder.md +13 -0
  24. data/docs/CreateRefundRequest.md +15 -0
  25. data/docs/CreateRefundResponse.md +13 -0
  26. data/docs/Currency.md +191 -0
  27. data/docs/Customer.md +26 -0
  28. data/docs/CustomerApi.md +267 -0
  29. data/docs/CustomerCardApi.md +116 -0
  30. data/docs/CustomerGroupInfo.md +13 -0
  31. data/docs/CustomerPreferences.md +12 -0
  32. data/docs/DeleteCustomerCardRequest.md +11 -0
  33. data/docs/DeleteCustomerCardResponse.md +12 -0
  34. data/docs/DeleteCustomerRequest.md +11 -0
  35. data/docs/DeleteCustomerResponse.md +12 -0
  36. data/docs/Error.md +15 -0
  37. data/docs/ErrorCategory.md +17 -0
  38. data/docs/ErrorCode.md +83 -0
  39. data/docs/ListCustomersRequest.md +12 -0
  40. data/docs/ListCustomersResponse.md +14 -0
  41. data/docs/ListLocationsRequest.md +11 -0
  42. data/docs/ListLocationsResponse.md +13 -0
  43. data/docs/ListRefundsRequest.md +15 -0
  44. data/docs/ListRefundsResponse.md +14 -0
  45. data/docs/ListTransactionsRequest.md +15 -0
  46. data/docs/ListTransactionsResponse.md +14 -0
  47. data/docs/Location.md +16 -0
  48. data/docs/LocationApi.md +56 -0
  49. data/docs/LocationCapability.md +12 -0
  50. data/docs/Money.md +13 -0
  51. data/docs/Order.md +16 -0
  52. data/docs/OrderLineItem.md +16 -0
  53. data/docs/Refund.md +20 -0
  54. data/docs/RefundApi.md +126 -0
  55. data/docs/RefundStatus.md +15 -0
  56. data/docs/RetrieveCustomerRequest.md +11 -0
  57. data/docs/RetrieveCustomerResponse.md +13 -0
  58. data/docs/RetrieveTransactionRequest.md +11 -0
  59. data/docs/RetrieveTransactionResponse.md +13 -0
  60. data/docs/SortOrder.md +13 -0
  61. data/docs/Tender.md +22 -0
  62. data/docs/TenderCardDetails.md +14 -0
  63. data/docs/TenderCardDetailsEntryMethod.md +16 -0
  64. data/docs/TenderCardDetailsStatus.md +15 -0
  65. data/docs/TenderCashDetails.md +13 -0
  66. data/docs/TenderType.md +17 -0
  67. data/docs/Transaction.md +21 -0
  68. data/docs/TransactionApi.md +285 -0
  69. data/docs/TransactionProduct.md +19 -0
  70. data/docs/UpdateCustomerRequest.md +20 -0
  71. data/docs/UpdateCustomerResponse.md +13 -0
  72. data/docs/VoidTransactionRequest.md +11 -0
  73. data/docs/VoidTransactionResponse.md +12 -0
  74. data/lib/square_connect.rb +33 -16
  75. data/lib/square_connect/api/checkout_api.rb +82 -0
  76. data/lib/square_connect/api/customer_api.rb +121 -162
  77. data/lib/square_connect/api/customer_card_api.rb +31 -50
  78. data/lib/square_connect/api/location_api.rb +12 -20
  79. data/lib/square_connect/api/refund_api.rb +70 -90
  80. data/lib/square_connect/api/transaction_api.rb +119 -165
  81. data/lib/square_connect/api_client.rb +64 -17
  82. data/lib/square_connect/api_error.rb +7 -3
  83. data/lib/square_connect/configuration.rb +31 -1
  84. data/lib/square_connect/models/address.rb +149 -78
  85. data/lib/square_connect/models/capture_transaction_request.rb +176 -0
  86. data/lib/square_connect/models/capture_transaction_response.rb +54 -26
  87. data/lib/square_connect/models/card.rb +98 -52
  88. data/lib/square_connect/models/card_brand.rb +12 -133
  89. data/lib/square_connect/models/charge_request.rb +106 -67
  90. data/lib/square_connect/models/charge_response.rb +57 -30
  91. data/lib/square_connect/models/checkout.rb +266 -0
  92. data/lib/square_connect/models/country.rb +253 -133
  93. data/lib/square_connect/models/create_checkout_request.rb +316 -0
  94. data/lib/square_connect/models/create_checkout_response.rb +198 -0
  95. data/lib/square_connect/models/create_customer_card_request.rb +66 -35
  96. data/lib/square_connect/models/create_customer_card_response.rb +58 -31
  97. data/lib/square_connect/models/create_customer_request.rb +79 -59
  98. data/lib/square_connect/models/create_customer_response.rb +58 -31
  99. data/lib/square_connect/models/create_order_request.rb +234 -0
  100. data/lib/square_connect/models/create_order_request_line_item.rb +268 -0
  101. data/lib/square_connect/models/create_order_request_order.rb +219 -0
  102. data/lib/square_connect/models/create_refund_request.rb +79 -39
  103. data/lib/square_connect/models/create_refund_response.rb +57 -30
  104. data/lib/square_connect/models/currency.rb +183 -133
  105. data/lib/square_connect/models/customer.rb +130 -77
  106. data/lib/square_connect/models/customer_group_info.rb +206 -0
  107. data/lib/square_connect/models/customer_preferences.rb +186 -0
  108. data/lib/square_connect/models/delete_customer_card_request.rb +176 -0
  109. data/lib/square_connect/models/delete_customer_card_response.rb +55 -27
  110. data/lib/square_connect/models/delete_customer_request.rb +176 -0
  111. data/lib/square_connect/models/delete_customer_response.rb +55 -27
  112. data/lib/square_connect/models/error.rb +107 -45
  113. data/lib/square_connect/models/error_category.rb +9 -133
  114. data/lib/square_connect/models/error_code.rb +75 -133
  115. data/lib/square_connect/models/list_customers_request.rb +55 -27
  116. data/lib/square_connect/models/list_customers_response.rb +61 -35
  117. data/lib/square_connect/models/list_locations_request.rb +176 -0
  118. data/lib/square_connect/models/list_locations_response.rb +57 -30
  119. data/lib/square_connect/models/list_refunds_request.rb +91 -42
  120. data/lib/square_connect/models/list_refunds_response.rb +59 -33
  121. data/lib/square_connect/models/list_transactions_request.rb +91 -42
  122. data/lib/square_connect/models/list_transactions_response.rb +59 -33
  123. data/lib/square_connect/models/location.rb +86 -41
  124. data/lib/square_connect/models/location_capability.rb +4 -133
  125. data/lib/square_connect/models/money.rb +85 -34
  126. data/lib/square_connect/models/order.rb +228 -0
  127. data/lib/square_connect/models/order_line_item.rb +226 -0
  128. data/lib/square_connect/models/refund.rb +138 -59
  129. data/lib/square_connect/models/refund_status.rb +7 -133
  130. data/lib/square_connect/models/retrieve_customer_request.rb +176 -0
  131. data/lib/square_connect/models/retrieve_customer_response.rb +58 -31
  132. data/lib/square_connect/models/retrieve_transaction_request.rb +176 -0
  133. data/lib/square_connect/models/retrieve_transaction_response.rb +57 -30
  134. data/lib/square_connect/models/sort_order.rb +5 -133
  135. data/lib/square_connect/models/tender.rb +112 -65
  136. data/lib/square_connect/models/tender_card_details.rb +93 -40
  137. data/lib/square_connect/models/tender_card_details_entry_method.rb +8 -133
  138. data/lib/square_connect/models/tender_card_details_status.rb +7 -133
  139. data/lib/square_connect/models/tender_cash_details.rb +58 -31
  140. data/lib/square_connect/models/tender_type.rb +9 -133
  141. data/lib/square_connect/models/transaction.rb +132 -56
  142. data/lib/square_connect/models/transaction_product.rb +11 -133
  143. data/lib/square_connect/models/update_customer_request.rb +79 -59
  144. data/lib/square_connect/models/update_customer_response.rb +58 -31
  145. data/lib/square_connect/models/void_transaction_request.rb +176 -0
  146. data/lib/square_connect/models/void_transaction_response.rb +54 -26
  147. data/lib/square_connect/version.rb +2 -3
  148. data/spec/api/checkout_api_spec.rb +53 -0
  149. data/spec/api/customer_api_spec.rb +121 -0
  150. data/spec/api/customer_card_api_spec.rb +71 -0
  151. data/spec/api/location_api_spec.rb +58 -0
  152. data/spec/api/refund_api_spec.rb +75 -0
  153. data/spec/api/transaction_api_spec.rb +128 -0
  154. data/spec/api_client_spec.rb +226 -0
  155. data/spec/configuration_spec.rb +42 -0
  156. data/spec/models/address_spec.rb +186 -0
  157. data/spec/models/capture_transaction_request_spec.rb +36 -0
  158. data/spec/models/capture_transaction_response_spec.rb +46 -0
  159. data/spec/models/card_brand_spec.rb +36 -0
  160. data/spec/models/card_spec.rb +106 -0
  161. data/spec/models/charge_request_spec.rb +146 -0
  162. data/spec/models/charge_response_spec.rb +56 -0
  163. data/spec/models/checkout_spec.rb +126 -0
  164. data/spec/models/country_spec.rb +36 -0
  165. data/spec/models/create_checkout_request_spec.rb +106 -0
  166. data/spec/models/create_checkout_response_spec.rb +56 -0
  167. data/spec/models/create_customer_card_request_spec.rb +66 -0
  168. data/spec/models/create_customer_card_response_spec.rb +56 -0
  169. data/spec/models/create_customer_request_spec.rb +126 -0
  170. data/spec/models/create_customer_response_spec.rb +56 -0
  171. data/spec/models/create_order_request_line_item_spec.rb +66 -0
  172. data/spec/models/create_order_request_order_spec.rb +56 -0
  173. data/spec/models/create_order_request_spec.rb +56 -0
  174. data/spec/models/create_refund_request_spec.rb +76 -0
  175. data/spec/models/create_refund_response_spec.rb +56 -0
  176. data/spec/models/currency_spec.rb +36 -0
  177. data/spec/models/customer_group_info_spec.rb +56 -0
  178. data/spec/models/customer_preferences_spec.rb +46 -0
  179. data/spec/models/customer_spec.rb +186 -0
  180. data/spec/models/delete_customer_card_request_spec.rb +36 -0
  181. data/spec/models/delete_customer_card_response_spec.rb +46 -0
  182. data/spec/models/delete_customer_request_spec.rb +36 -0
  183. data/spec/models/delete_customer_response_spec.rb +46 -0
  184. data/spec/models/error_category_spec.rb +36 -0
  185. data/spec/models/error_code_spec.rb +36 -0
  186. data/spec/models/error_spec.rb +76 -0
  187. data/spec/models/list_customers_request_spec.rb +46 -0
  188. data/spec/models/list_customers_response_spec.rb +66 -0
  189. data/spec/models/list_locations_request_spec.rb +36 -0
  190. data/spec/models/list_locations_response_spec.rb +56 -0
  191. data/spec/models/list_refunds_request_spec.rb +76 -0
  192. data/spec/models/list_refunds_response_spec.rb +66 -0
  193. data/spec/models/list_transactions_request_spec.rb +76 -0
  194. data/spec/models/list_transactions_response_spec.rb +66 -0
  195. data/spec/models/location_capability_spec.rb +36 -0
  196. data/spec/models/location_spec.rb +86 -0
  197. data/spec/models/money_spec.rb +56 -0
  198. data/spec/models/order_line_item_spec.rb +86 -0
  199. data/spec/models/order_spec.rb +86 -0
  200. data/spec/models/refund_spec.rb +126 -0
  201. data/spec/models/refund_status_spec.rb +36 -0
  202. data/spec/models/retrieve_customer_request_spec.rb +36 -0
  203. data/spec/models/retrieve_customer_response_spec.rb +56 -0
  204. data/spec/models/retrieve_transaction_request_spec.rb +36 -0
  205. data/spec/models/retrieve_transaction_response_spec.rb +56 -0
  206. data/spec/models/sort_order_spec.rb +36 -0
  207. data/spec/models/tender_card_details_entry_method_spec.rb +36 -0
  208. data/spec/models/tender_card_details_spec.rb +66 -0
  209. data/spec/models/tender_card_details_status_spec.rb +36 -0
  210. data/spec/models/tender_cash_details_spec.rb +56 -0
  211. data/spec/models/tender_spec.rb +146 -0
  212. data/spec/models/tender_type_spec.rb +36 -0
  213. data/spec/models/transaction_product_spec.rb +36 -0
  214. data/spec/models/transaction_spec.rb +136 -0
  215. data/spec/models/update_customer_request_spec.rb +126 -0
  216. data/spec/models/update_customer_response_spec.rb +56 -0
  217. data/spec/models/void_transaction_request_spec.rb +36 -0
  218. data/spec/models/void_transaction_response_spec.rb +46 -0
  219. data/spec/spec_helper.rb +115 -0
  220. data/square_connect.gemspec +22 -11
  221. data/travis-ci/accounts.enc +0 -0
  222. metadata +264 -31
@@ -0,0 +1,116 @@
1
+ # SquareConnect::CustomerCardApi
2
+
3
+ All URIs are relative to *https://connect.squareup.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_customer_card**](CustomerCardApi.md#create_customer_card) | **POST** /v2/customers/{customer_id}/cards | CreateCustomerCard
8
+ [**delete_customer_card**](CustomerCardApi.md#delete_customer_card) | **DELETE** /v2/customers/{customer_id}/cards/{card_id} | DeleteCustomerCard
9
+
10
+
11
+ # **create_customer_card**
12
+ > CreateCustomerCardResponse create_customer_card(authorization, customer_id, body)
13
+
14
+ CreateCustomerCard
15
+
16
+ Adds a card on file to an existing customer.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'square_connect'
22
+
23
+ api_instance = SquareConnect::CustomerCardApi.new
24
+
25
+ authorization = "authorization_example" # String | The value to provide in the Authorization header of your request. This value should follow the format `Bearer YOUR_ACCESS_TOKEN_HERE`.
26
+
27
+ customer_id = "customer_id_example" # String | The ID of the customer to link the card on file to.
28
+
29
+ body = SquareConnect::CreateCustomerCardRequest.new # CreateCustomerCardRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details.
30
+
31
+
32
+ begin
33
+ #CreateCustomerCard
34
+ result = api_instance.create_customer_card(authorization, customer_id, body)
35
+ p result
36
+ rescue SquareConnect::ApiError => e
37
+ puts "Exception when calling CustomerCardApi->create_customer_card: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **authorization** | **String**| The value to provide in the Authorization header of your request. This value should follow the format `Bearer YOUR_ACCESS_TOKEN_HERE`. |
46
+ **customer_id** | **String**| The ID of the customer to link the card on file to. |
47
+ **body** | [**CreateCustomerCardRequest**](CreateCustomerCardRequest.md)| An object containing the fields to POST for the request. See the corresponding object definition for field details. |
48
+
49
+ ### Return type
50
+
51
+ [**CreateCustomerCardResponse**](CreateCustomerCardResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ No authorization required
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json
60
+ - **Accept**: application/json
61
+
62
+
63
+
64
+ # **delete_customer_card**
65
+ > DeleteCustomerCardResponse delete_customer_card(authorization, customer_id, card_id)
66
+
67
+ DeleteCustomerCard
68
+
69
+ Removes a card on file from a customer.
70
+
71
+ ### Example
72
+ ```ruby
73
+ # load the gem
74
+ require 'square_connect'
75
+
76
+ api_instance = SquareConnect::CustomerCardApi.new
77
+
78
+ authorization = "authorization_example" # String | The value to provide in the Authorization header of your request. This value should follow the format `Bearer YOUR_ACCESS_TOKEN_HERE`.
79
+
80
+ customer_id = "customer_id_example" # String | The ID of the customer that the card on file belongs to.
81
+
82
+ card_id = "card_id_example" # String | The ID of the card on file to delete.
83
+
84
+
85
+ begin
86
+ #DeleteCustomerCard
87
+ result = api_instance.delete_customer_card(authorization, customer_id, card_id)
88
+ p result
89
+ rescue SquareConnect::ApiError => e
90
+ puts "Exception when calling CustomerCardApi->delete_customer_card: #{e}"
91
+ end
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ Name | Type | Description | Notes
97
+ ------------- | ------------- | ------------- | -------------
98
+ **authorization** | **String**| The value to provide in the Authorization header of your request. This value should follow the format `Bearer YOUR_ACCESS_TOKEN_HERE`. |
99
+ **customer_id** | **String**| The ID of the customer that the card on file belongs to. |
100
+ **card_id** | **String**| The ID of the card on file to delete. |
101
+
102
+ ### Return type
103
+
104
+ [**DeleteCustomerCardResponse**](DeleteCustomerCardResponse.md)
105
+
106
+ ### Authorization
107
+
108
+ No authorization required
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: application/json
113
+ - **Accept**: application/json
114
+
115
+
116
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::CustomerGroupInfo
2
+
3
+ ### Description
4
+
5
+ Contains some brief information about a customer group with its identifier included.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **id** | **String** | The ID of the customer group. |
11
+ **name** | **String** | The name of the customer group. |
12
+
13
+
@@ -0,0 +1,12 @@
1
+ # SquareConnect::CustomerPreferences
2
+
3
+ ### Description
4
+
5
+ Represents a particular customer's preferences.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **email_unsubscribed** | **BOOLEAN** | The customer has unsubscribed from receiving marketing campaign emails. | [optional]
11
+
12
+
@@ -0,0 +1,11 @@
1
+ # SquareConnect::DeleteCustomerCardRequest
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+
11
+
@@ -0,0 +1,12 @@
1
+ # SquareConnect::DeleteCustomerCardResponse
2
+
3
+ ### Description
4
+
5
+ Defines the fields that are included in the response body of a request to the [DeleteCustomerCard](#endpoint-deletecustomercard) endpoint.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+
12
+
@@ -0,0 +1,11 @@
1
+ # SquareConnect::DeleteCustomerRequest
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+
11
+
@@ -0,0 +1,12 @@
1
+ # SquareConnect::DeleteCustomerResponse
2
+
3
+ ### Description
4
+
5
+ Defines the fields that are included in the response body of a request to the [DeleteCustomer](#endpoint-deletecustomer) endpoint.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+
12
+
@@ -0,0 +1,15 @@
1
+ # SquareConnect::Error
2
+
3
+ ### Description
4
+
5
+ Represents an error encountered during a request to the Connect API. See [Handling errors](#handlingerrors) for more information.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **category** | **String** | The error's high-level category. See [ErrorCategory](#type-errorcategory) for possible values. |
11
+ **code** | **String** | The error's specific code. See [ErrorCode](#type-errorcode) for possible values |
12
+ **detail** | **String** | A human-readable description of the error for debugging purposes. | [optional]
13
+ **field** | **String** | The name of the field provided in the original request that the error pertains to, if any. | [optional]
14
+
15
+
@@ -0,0 +1,17 @@
1
+ # SquareConnect::ErrorCategory
2
+
3
+ ### Description
4
+
5
+ Indicates which high-level category of error has occurred during a request to the Connect API.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **API_ERROR** | string
11
+ **AUTHENTICATION_ERROR** | string
12
+ **INVALID_REQUEST_ERROR** | string
13
+ **RATE_LIMIT_ERROR** | string
14
+ **PAYMENT_METHOD_ERROR** | string
15
+ **REFUND_ERROR** | string
16
+
17
+
@@ -0,0 +1,83 @@
1
+ # SquareConnect::ErrorCode
2
+
3
+ ### Description
4
+
5
+ Indicates specific errors that can occur during a request to the Connect API.
6
+
7
+ ## Properties
8
+ Name | Type
9
+ ------------ | -------------
10
+ **INTERNAL_SERVER_ERROR** | string
11
+ **UNAUTHORIZED** | string
12
+ **ACCESS_TOKEN_EXPIRED** | string
13
+ **ACCESS_TOKEN_REVOKED** | string
14
+ **FORBIDDEN** | string
15
+ **INSUFFICIENT_SCOPES** | string
16
+ **APPLICATION_DISABLED** | string
17
+ **V1_APPLICATION** | string
18
+ **V1_ACCESS_TOKEN** | string
19
+ **CARD_PROCESSING_NOT_ENABLED** | string
20
+ **BAD_REQUEST** | string
21
+ **MISSING_REQUIRED_PARAMETER** | string
22
+ **INCORRECT_TYPE** | string
23
+ **INVALID_TIME** | string
24
+ **INVALID_TIME_RANGE** | string
25
+ **INVALID_VALUE** | string
26
+ **INVALID_CURSOR** | string
27
+ **UNKNOWN_QUERY_PARAMETER** | string
28
+ **CONFLICTING_PARAMETERS** | string
29
+ **EXPECTED_JSON_BODY** | string
30
+ **INVALID_SORT_ORDER** | string
31
+ **VALUE_REGEX_MISMATCH** | string
32
+ **VALUE_TOO_SHORT** | string
33
+ **VALUE_TOO_LONG** | string
34
+ **VALUE_TOO_LOW** | string
35
+ **VALUE_TOO_HIGH** | string
36
+ **VALUE_EMPTY** | string
37
+ **ARRAY_EMPTY** | string
38
+ **EXPECTED_BOOLEAN** | string
39
+ **EXPECTED_INTEGER** | string
40
+ **EXPECTED_FLOAT** | string
41
+ **EXPECTED_STRING** | string
42
+ **EXPECTED_OBJECT** | string
43
+ **EXPECTED_ARRAY** | string
44
+ **EXPECTED_BASE64_ENCODED_BYTE_ARRAY** | string
45
+ **INVALID_ARRAY_VALUE** | string
46
+ **INVALID_ENUM_VALUE** | string
47
+ **INVALID_CONTENT_TYPE** | string
48
+ **INVALID_FORM_VALUE** | string
49
+ **ONE_INSTRUMENT_EXPECTED** | string
50
+ **NO_FIELDS_SET** | string
51
+ **CARD_EXPIRED** | string
52
+ **INVALID_EXPIRATION** | string
53
+ **INVALID_EXPIRATION_YEAR** | string
54
+ **INVALID_EXPIRATION_DATE** | string
55
+ **UNSUPPORTED_CARD_BRAND** | string
56
+ **INVALID_CARD** | string
57
+ **DELAYED_TRANSACTION_EXPIRED** | string
58
+ **DELAYED_TRANSACTION_CANCELED** | string
59
+ **DELAYED_TRANSACTION_CAPTURED** | string
60
+ **DELAYED_TRANSACTION_FAILED** | string
61
+ **CARD_TOKEN_EXPIRED** | string
62
+ **CARD_TOKEN_USED** | string
63
+ **AMOUNT_TOO_HIGH** | string
64
+ **UNSUPPORTED_INSTRUMENT_TYPE** | string
65
+ **REFUND_AMOUNT_INVALID** | string
66
+ **REFUND_ALREADY_PENDING** | string
67
+ **PAYMENT_NOT_REFUNDABLE** | string
68
+ **INVALID_CARD_DATA** | string
69
+ **IDEMPOTENCY_KEY_REUSED** | string
70
+ **CARD_DECLINED** | string
71
+ **VERIFY_CVV_FAILURE** | string
72
+ **VERIFY_AVS_FAILURE** | string
73
+ **CARD_DECLINED_CALL_ISSUER** | string
74
+ **NOT_FOUND** | string
75
+ **REQUEST_TIMEOUT** | string
76
+ **CONFLICT** | string
77
+ **REQUEST_ENTITY_TOO_LARGE** | string
78
+ **UNSUPPORTED_MEDIA_TYPE** | string
79
+ **RATE_LIMITED** | string
80
+ **NOT_IMPLEMENTED** | string
81
+ **SERVICE_UNAVAILABLE** | string
82
+
83
+
@@ -0,0 +1,12 @@
1
+ # SquareConnect::ListCustomersRequest
2
+
3
+ ### Description
4
+
5
+ Defines the query parameters that can be provided in a request to the [ListCustomers](#endpoint-listcustomers) endpoint.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. | [optional]
11
+
12
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::ListCustomersResponse
2
+
3
+ ### Description
4
+
5
+ Defines the fields that are included in the response body of a request to the [ListCustomers](#endpoint-listcustomers) endpoint. One of `errors` or `customers` is present in a given response (never both).
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **customers** | [**Array<Customer>**](Customer.md) | An array of `Customer` objects that match your query. | [optional]
12
+ **cursor** | **String** | A pagination cursor to retrieve the next set of results for your original query to the endpoint. This value is present only if the request succeeded and additional results are available. See [Paginating results](#paginatingresults) for more information. | [optional]
13
+
14
+
@@ -0,0 +1,11 @@
1
+ # SquareConnect::ListLocationsRequest
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+
11
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::ListLocationsResponse
2
+
3
+ ### Description
4
+
5
+ Defines the fields that are included in the response body of a request to the [ListLocations](#endpoint-listlocations) endpoint. One of `errors` or `locations` is present in a given response (never both).
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **locations** | [**Array<Location>**](Location.md) | The business's locations. | [optional]
12
+
13
+
@@ -0,0 +1,15 @@
1
+ # SquareConnect::ListRefundsRequest
2
+
3
+ ### Description
4
+
5
+ Defines the query parameters that can be included in a request to the [ListRefunds](#endpoint-listrefunds) endpoint.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **begin_time** | **String** | The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. | [optional]
11
+ **end_time** | **String** | The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. | [optional]
12
+ **sort_order** | **String** | The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` | [optional]
13
+ **cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. | [optional]
14
+
15
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::ListRefundsResponse
2
+
3
+ ### Description
4
+
5
+ Defines the fields that are included in the response body of a request to the [ListRefunds](#endpoint-listrefunds) endpoint. One of `errors` or `refunds` is present in a given response (never both).
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **refunds** | [**Array<Refund>**](Refund.md) | An array of refunds that match your query. | [optional]
12
+ **cursor** | **String** | A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. | [optional]
13
+
14
+
@@ -0,0 +1,15 @@
1
+ # SquareConnect::ListTransactionsRequest
2
+
3
+ ### Description
4
+
5
+ Defines the query parameters that can be included in a request to the [ListTransactions](#endpoint-listtransactions) endpoint.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **begin_time** | **String** | The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. | [optional]
11
+ **end_time** | **String** | The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. | [optional]
12
+ **sort_order** | **String** | The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` | [optional]
13
+ **cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. | [optional]
14
+
15
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::ListTransactionsResponse
2
+
3
+ ### Description
4
+
5
+ Defines the fields that are included in the response body of a request to the [ListTransactions](#endpoint-listtransactions) endpoint. One of `errors` or `transactions` is present in a given response (never both).
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **transactions** | [**Array<Transaction>**](Transaction.md) | An array of transactions that match your query. | [optional]
12
+ **cursor** | **String** | A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. | [optional]
13
+
14
+
@@ -0,0 +1,16 @@
1
+ # SquareConnect::Location
2
+
3
+ ### Description
4
+
5
+ Represents one of a business's locations.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **id** | **String** | The location's unique ID. | [optional]
11
+ **name** | **String** | The location's name. | [optional]
12
+ **address** | [**Address**](Address.md) | The location's physical address. | [optional]
13
+ **timezone** | **String** | The [IANA Timezone Database](https://www.iana.org/time-zones) identifier for the location's timezone. | [optional]
14
+ **capabilities** | **Array<String>** | Indicates which Square features are enabled for the location. See [LocationCapability](#type-locationcapability) for possible values. | [optional]
15
+
16
+