square_connect 2.0.2.69 → 2.1.0.beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +133 -21
  3. data/docs/ChargeRequest.md +1 -1
  4. data/docs/CheckoutApi.md +8 -6
  5. data/docs/CustomersApi.md +389 -0
  6. data/docs/Device.md +11 -0
  7. data/docs/LocationsApi.md +55 -0
  8. data/docs/TransactionsApi.md +417 -0
  9. data/docs/V1AdjustInventoryRequest.md +12 -0
  10. data/docs/V1BankAccount.md +17 -0
  11. data/docs/V1CashDrawerEvent.md +15 -0
  12. data/docs/V1CashDrawerShift.md +28 -0
  13. data/docs/V1Category.md +11 -0
  14. data/docs/V1CreateRefundRequest.md +14 -0
  15. data/docs/V1Discount.md +16 -0
  16. data/docs/V1Employee.md +21 -0
  17. data/docs/V1EmployeeRole.md +15 -0
  18. data/docs/V1EmployeesApi.md +915 -0
  19. data/docs/V1Fee.md +18 -0
  20. data/docs/V1InventoryEntry.md +11 -0
  21. data/docs/V1Item.md +23 -0
  22. data/docs/V1ItemImage.md +11 -0
  23. data/docs/V1ItemsApi.md +2297 -0
  24. data/docs/V1LocationApi.md +102 -0
  25. data/docs/V1LocationsApi.md +102 -0
  26. data/docs/V1Merchant.md +26 -0
  27. data/docs/V1MerchantLocationDetails.md +12 -0
  28. data/docs/V1ModifierList.md +13 -0
  29. data/docs/V1ModifierOption.md +15 -0
  30. data/docs/V1Money.md +13 -0
  31. data/docs/V1Order.md +34 -0
  32. data/docs/V1OrderHistoryEntry.md +11 -0
  33. data/docs/V1Page.md +13 -0
  34. data/docs/V1PageCell.md +15 -0
  35. data/docs/V1Payment.md +33 -0
  36. data/docs/V1PaymentDiscount.md +12 -0
  37. data/docs/V1PaymentItemDetail.md +13 -0
  38. data/docs/V1PaymentItemization.md +23 -0
  39. data/docs/V1PaymentModifier.md +12 -0
  40. data/docs/V1PaymentTax.md +15 -0
  41. data/docs/V1PhoneNumber.md +13 -0
  42. data/docs/V1Refund.md +16 -0
  43. data/docs/V1Settlement.md +15 -0
  44. data/docs/V1SettlementEntry.md +13 -0
  45. data/docs/V1Tender.md +22 -0
  46. data/docs/V1Timecard.md +20 -0
  47. data/docs/V1TimecardEvent.md +14 -0
  48. data/docs/V1TransactionsApi.md +650 -0
  49. data/docs/V1UpdateModifierListRequest.md +11 -0
  50. data/docs/V1UpdateOrderRequest.md +14 -0
  51. data/docs/V1Variation.md +20 -0
  52. data/lib/.DS_Store +0 -0
  53. data/lib/square_connect.rb +46 -5
  54. data/lib/square_connect/.DS_Store +0 -0
  55. data/lib/square_connect/api/checkout_api.rb +4 -9
  56. data/lib/square_connect/api/{customer_api.rb → customers_api.rb} +150 -61
  57. data/lib/square_connect/api/{location_api.rb → locations_api.rb} +7 -12
  58. data/lib/square_connect/api/{transaction_api.rb → transactions_api.rb} +169 -65
  59. data/lib/square_connect/api/v1_employees_api.rb +974 -0
  60. data/lib/square_connect/api/v1_items_api.rb +2365 -0
  61. data/lib/square_connect/api/v1_locations_api.rb +118 -0
  62. data/lib/square_connect/api/v1_transactions_api.rb +707 -0
  63. data/lib/square_connect/api_client.rb +1 -1
  64. data/lib/square_connect/models/charge_request.rb +1 -1
  65. data/lib/square_connect/models/device.rb +196 -0
  66. data/lib/square_connect/models/v1_adjust_inventory_request.rb +206 -0
  67. data/lib/square_connect/models/v1_bank_account.rb +289 -0
  68. data/lib/square_connect/models/v1_cash_drawer_event.rb +269 -0
  69. data/lib/square_connect/models/v1_cash_drawer_shift.rb +403 -0
  70. data/lib/square_connect/models/v1_category.rb +196 -0
  71. data/lib/square_connect/models/v1_create_refund_request.rb +274 -0
  72. data/lib/square_connect/models/v1_discount.rb +291 -0
  73. data/lib/square_connect/models/v1_employee.rb +323 -0
  74. data/lib/square_connect/models/v1_employee_role.rb +269 -0
  75. data/lib/square_connect/models/v1_fee.rb +335 -0
  76. data/lib/square_connect/models/v1_inventory_entry.rb +196 -0
  77. data/lib/square_connect/models/v1_item.rb +379 -0
  78. data/lib/square_connect/models/v1_item_image.rb +196 -0
  79. data/lib/square_connect/models/v1_merchant.rb +372 -0
  80. data/lib/square_connect/models/v1_merchant_location_details.rb +186 -0
  81. data/lib/square_connect/models/v1_modifier_list.rb +251 -0
  82. data/lib/square_connect/models/v1_modifier_option.rb +236 -0
  83. data/lib/square_connect/models/v1_money.rb +229 -0
  84. data/lib/square_connect/models/v1_order.rb +463 -0
  85. data/lib/square_connect/models/v1_order_history_entry.rb +229 -0
  86. data/lib/square_connect/models/v1_page.rb +218 -0
  87. data/lib/square_connect/models/v1_page_cell.rb +261 -0
  88. data/lib/square_connect/models/v1_payment.rb +423 -0
  89. data/lib/square_connect/models/v1_payment_discount.rb +206 -0
  90. data/lib/square_connect/models/v1_payment_item_detail.rb +216 -0
  91. data/lib/square_connect/models/v1_payment_itemization.rb +355 -0
  92. data/lib/square_connect/models/v1_payment_modifier.rb +206 -0
  93. data/lib/square_connect/models/v1_payment_tax.rb +271 -0
  94. data/lib/square_connect/models/v1_phone_number.rb +206 -0
  95. data/lib/square_connect/models/v1_refund.rb +279 -0
  96. data/lib/square_connect/models/v1_settlement.rb +271 -0
  97. data/lib/square_connect/models/v1_settlement_entry.rb +249 -0
  98. data/lib/square_connect/models/v1_tender.rb +363 -0
  99. data/lib/square_connect/models/v1_timecard.rb +271 -0
  100. data/lib/square_connect/models/v1_timecard_event.rb +259 -0
  101. data/lib/square_connect/models/v1_update_modifier_list_request.rb +229 -0
  102. data/lib/square_connect/models/v1_update_order_request.rb +264 -0
  103. data/lib/square_connect/models/v1_variation.rb +331 -0
  104. data/lib/square_connect/version.rb +1 -1
  105. data/spec/.DS_Store +0 -0
  106. data/spec/api/checkout_api_spec.rb +4 -12
  107. data/spec/api/{customer_api_spec.rb → customers_api_spec.rb} +39 -41
  108. data/spec/api/{location_api_spec.rb → locations_api_spec.rb} +9 -15
  109. data/spec/api/{transaction_api_spec.rb → transactions_api_spec.rb} +43 -41
  110. data/spec/api/v1_employees_api_spec.rb +250 -0
  111. data/spec/api/v1_items_api_spec.rb +568 -0
  112. data/spec/api/v1_locations_api_spec.rb +54 -0
  113. data/spec/api/v1_transactions_api_spec.rb +186 -0
  114. data/spec/models/address_spec.rb +22 -81
  115. data/spec/models/capture_transaction_request_spec.rb +3 -6
  116. data/spec/models/capture_transaction_response_spec.rb +4 -11
  117. data/spec/models/card_brand_spec.rb +3 -6
  118. data/spec/models/card_spec.rb +14 -41
  119. data/spec/models/charge_request_spec.rb +14 -61
  120. data/spec/models/charge_response_spec.rb +5 -16
  121. data/spec/models/checkout_spec.rb +12 -51
  122. data/spec/models/country_spec.rb +3 -6
  123. data/spec/models/create_checkout_request_spec.rb +10 -41
  124. data/spec/models/create_checkout_response_spec.rb +5 -16
  125. data/spec/models/create_customer_card_request_spec.rb +6 -21
  126. data/spec/models/create_customer_card_response_spec.rb +5 -16
  127. data/spec/models/create_customer_request_spec.rb +12 -51
  128. data/spec/models/create_customer_response_spec.rb +5 -16
  129. data/spec/models/create_order_request_line_item_spec.rb +6 -21
  130. data/spec/models/create_order_request_order_spec.rb +5 -16
  131. data/spec/models/create_order_request_spec.rb +5 -16
  132. data/spec/models/create_refund_request_spec.rb +7 -26
  133. data/spec/models/create_refund_response_spec.rb +5 -16
  134. data/spec/models/currency_spec.rb +3 -6
  135. data/spec/models/customer_group_info_spec.rb +5 -16
  136. data/spec/models/customer_preferences_spec.rb +4 -11
  137. data/spec/models/customer_spec.rb +18 -81
  138. data/spec/models/delete_customer_card_request_spec.rb +3 -6
  139. data/spec/models/delete_customer_card_response_spec.rb +4 -11
  140. data/spec/models/delete_customer_request_spec.rb +3 -6
  141. data/spec/models/delete_customer_response_spec.rb +4 -11
  142. data/spec/models/device_spec.rb +45 -0
  143. data/spec/models/error_category_spec.rb +3 -6
  144. data/spec/models/error_code_spec.rb +3 -6
  145. data/spec/models/error_spec.rb +15 -26
  146. data/spec/models/list_customers_request_spec.rb +4 -11
  147. data/spec/models/list_customers_response_spec.rb +6 -21
  148. data/spec/models/list_locations_request_spec.rb +3 -6
  149. data/spec/models/list_locations_response_spec.rb +5 -16
  150. data/spec/models/list_refunds_request_spec.rb +11 -26
  151. data/spec/models/list_refunds_response_spec.rb +6 -21
  152. data/spec/models/list_transactions_request_spec.rb +11 -26
  153. data/spec/models/list_transactions_response_spec.rb +6 -21
  154. data/spec/models/location_capability_spec.rb +3 -6
  155. data/spec/models/location_spec.rb +12 -31
  156. data/spec/models/money_spec.rb +9 -16
  157. data/spec/models/order_line_item_spec.rb +8 -31
  158. data/spec/models/order_spec.rb +8 -31
  159. data/spec/models/refund_spec.rb +16 -51
  160. data/spec/models/refund_status_spec.rb +3 -6
  161. data/spec/models/retrieve_customer_request_spec.rb +3 -6
  162. data/spec/models/retrieve_customer_response_spec.rb +5 -16
  163. data/spec/models/retrieve_transaction_request_spec.rb +3 -6
  164. data/spec/models/retrieve_transaction_response_spec.rb +5 -16
  165. data/spec/models/sort_order_spec.rb +3 -6
  166. data/spec/models/tender_card_details_entry_method_spec.rb +3 -6
  167. data/spec/models/tender_card_details_spec.rb +14 -21
  168. data/spec/models/tender_card_details_status_spec.rb +3 -6
  169. data/spec/models/tender_cash_details_spec.rb +5 -16
  170. data/spec/models/tender_spec.rb +18 -61
  171. data/spec/models/tender_type_spec.rb +3 -6
  172. data/spec/models/transaction_product_spec.rb +3 -6
  173. data/spec/models/transaction_spec.rb +17 -56
  174. data/spec/models/update_customer_request_spec.rb +12 -51
  175. data/spec/models/update_customer_response_spec.rb +5 -16
  176. data/spec/models/v1_adjust_inventory_request_spec.rb +51 -0
  177. data/spec/models/v1_bank_account_spec.rb +85 -0
  178. data/spec/models/v1_cash_drawer_event_spec.rb +73 -0
  179. data/spec/models/v1_cash_drawer_shift_spec.rb +151 -0
  180. data/spec/models/v1_category_spec.rb +45 -0
  181. data/spec/models/v1_create_refund_request_spec.rb +67 -0
  182. data/spec/models/v1_discount_spec.rb +83 -0
  183. data/spec/models/v1_employee_role_spec.rb +73 -0
  184. data/spec/models/v1_employee_spec.rb +97 -0
  185. data/spec/models/v1_fee_spec.rb +103 -0
  186. data/spec/models/v1_inventory_entry_spec.rb +45 -0
  187. data/spec/models/v1_item_image_spec.rb +45 -0
  188. data/spec/models/v1_item_spec.rb +129 -0
  189. data/spec/models/v1_merchant_location_details_spec.rb +39 -0
  190. data/spec/models/v1_merchant_spec.rb +131 -0
  191. data/spec/models/v1_modifier_list_spec.rb +61 -0
  192. data/spec/models/v1_modifier_option_spec.rb +69 -0
  193. data/spec/models/v1_money_spec.rb +49 -0
  194. data/spec/models/v1_order_history_entry_spec.rb +49 -0
  195. data/spec/models/v1_order_spec.rb +187 -0
  196. data/spec/models/v1_page_cell_spec.rb +77 -0
  197. data/spec/models/v1_page_spec.rb +57 -0
  198. data/spec/models/v1_payment_discount_spec.rb +51 -0
  199. data/spec/models/v1_payment_item_detail_spec.rb +57 -0
  200. data/spec/models/v1_payment_itemization_spec.rb +121 -0
  201. data/spec/models/v1_payment_modifier_spec.rb +51 -0
  202. data/spec/models/v1_payment_spec.rb +177 -0
  203. data/spec/models/v1_payment_tax_spec.rb +73 -0
  204. data/spec/models/v1_phone_number_spec.rb +45 -0
  205. data/spec/models/v1_refund_spec.rb +79 -0
  206. data/spec/models/v1_settlement_entry_spec.rb +61 -0
  207. data/spec/models/v1_settlement_spec.rb +73 -0
  208. data/spec/models/v1_tender_spec.rb +123 -0
  209. data/spec/models/v1_timecard_event_spec.rb +67 -0
  210. data/spec/models/v1_timecard_spec.rb +87 -0
  211. data/spec/models/v1_update_modifier_list_request_spec.rb +49 -0
  212. data/spec/models/v1_update_order_request_spec.rb +67 -0
  213. data/spec/models/v1_variation_spec.rb +107 -0
  214. data/spec/models/void_transaction_request_spec.rb +3 -6
  215. data/spec/models/void_transaction_response_spec.rb +4 -11
  216. data/spec/spec_helper.rb +10 -0
  217. data/square_connect-2.0.2.gem +0 -0
  218. data/square_connect-2.1.0.gem +0 -0
  219. data/square_connect-2.1.0beta.gem +0 -0
  220. data/square_connect.gemspec +1 -1
  221. data/travis-ci/accounts.enc +0 -0
  222. metadata +197 -26
  223. data/docs/CustomerApi.md +0 -267
  224. data/docs/CustomerCardApi.md +0 -116
  225. data/docs/LocationApi.md +0 -56
  226. data/docs/RefundApi.md +0 -126
  227. data/docs/TransactionApi.md +0 -285
  228. data/lib/square_connect/api/customer_card_api.rb +0 -144
  229. data/lib/square_connect/api/refund_api.rb +0 -159
  230. data/spec/api/customer_card_api_spec.rb +0 -71
  231. data/spec/api/refund_api_spec.rb +0 -75
@@ -0,0 +1,12 @@
1
+ # SquareConnect::V1PaymentModifier
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **String** | The modifier option's name. | [optional]
9
+ **applied_money** | [**V1Money**](V1Money.md) | The amount of money that this modifier option adds to the payment. | [optional]
10
+ **modifier_option_id** | **String** | TThe ID of the applied modifier option, if available. Modifier options applied in older versions of Square Register might not have an ID. | [optional]
11
+
12
+
@@ -0,0 +1,15 @@
1
+ # SquareConnect::V1PaymentTax
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
9
+ **name** | **String** | The merchant-defined name of the tax. | [optional]
10
+ **applied_money** | [**V1Money**](V1Money.md) | The amount of money that this tax adds to the payment. | [optional]
11
+ **rate** | **String** | The rate of the tax, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%. | [optional]
12
+ **inclusion_type** | **String** | Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. | [optional]
13
+ **fee_id** | **String** | The ID of the tax, if available. Taxes applied in older versions of Square Register might not have an ID. | [optional]
14
+
15
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::V1PhoneNumber
2
+
3
+ ### Description
4
+
5
+ Represents a phone number.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **calling_code** | **String** | The phone number's international calling code. For US phone numbers, this value is +1. |
11
+ **number** | **String** | The phone number. |
12
+
13
+
data/docs/V1Refund.md ADDED
@@ -0,0 +1,16 @@
1
+ # SquareConnect::V1Refund
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **String** | The type of refund | [optional]
9
+ **reason** | **String** | The merchant-specified reason for the refund. | [optional]
10
+ **refunded_money** | [**V1Money**](V1Money.md) | The amount of money refunded. This amount is always negative. | [optional]
11
+ **created_at** | **String** | The time when the merchant initiated the refund for Square to process, in ISO 8601 format.. | [optional]
12
+ **processed_at** | **String** | The time when Square processed the refund on behalf of the merchant, in ISO 8601 format. | [optional]
13
+ **payment_id** | **String** | The Square-issued ID of the payment the refund is applied to. | [optional]
14
+ **merchant_id** | **String** | | [optional]
15
+
16
+
@@ -0,0 +1,15 @@
1
+ # SquareConnect::V1Settlement
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **String** | The settlement's unique identifier. | [optional]
9
+ **status** | **String** | The settlement's current status. | [optional]
10
+ **total_money** | [**V1Money**](V1Money.md) | The amount of money involved in the settlement. A positive amount indicates a deposit, and a negative amount indicates a withdrawal. This amount is never zero. | [optional]
11
+ **initiated_at** | **String** | The time when the settlement was submitted for deposit or withdrawal, in ISO 8601 format. | [optional]
12
+ **bank_account_id** | **String** | The Square-issued unique identifier for the bank account associated with the settlement. | [optional]
13
+ **entries** | [**Array<V1SettlementEntry>**](V1SettlementEntry.md) | The entries included in this settlement. | [optional]
14
+
15
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::V1SettlementEntry
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **payment_id** | **String** | The settlement's unique identifier. | [optional]
9
+ **type** | **String** | The settlement's current status. | [optional]
10
+ **amount_money** | [**V1Money**](V1Money.md) | The total amount of money this entry contributes to the total settlement amount. | [optional]
11
+ **fee_money** | [**V1Money**](V1Money.md) | The amount of all Square fees associated with this settlement entry. This value is always negative or zero. | [optional]
12
+
13
+
data/docs/V1Tender.md ADDED
@@ -0,0 +1,22 @@
1
+ # SquareConnect::V1Tender
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **String** | The tender's unique ID. | [optional]
9
+ **type** | **String** | The type of tender. | [optional]
10
+ **name** | **String** | A human-readable description of the tender. | [optional]
11
+ **employee_id** | **String** | The ID of the employee that processed the tender. | [optional]
12
+ **receipt_url** | **String** | The URL of the receipt for the tender. | [optional]
13
+ **card_brand** | **String** | The brand of credit card provided. | [optional]
14
+ **pan_suffix** | **String** | The last four digits of the provided credit card's account number. | [optional]
15
+ **entry_method** | **String** | The tender's unique ID. | [optional]
16
+ **payment_note** | **String** | Notes entered by the merchant about the tender at the time of payment, if any. Typically only present for tender with the type: OTHER. | [optional]
17
+ **total_money** | [**V1Money**](V1Money.md) | The total amount of money provided in this form of tender. | [optional]
18
+ **tendered_money** | [**V1Money**](V1Money.md) | The amount of total_money applied to the payment. | [optional]
19
+ **change_back_money** | [**V1Money**](V1Money.md) | The amount of total_money returned to the buyer as change. | [optional]
20
+ **refunded_money** | [**V1Money**](V1Money.md) | The total of all refunds applied to this tender. This amount is always negative or zero. | [optional]
21
+
22
+
@@ -0,0 +1,20 @@
1
+ # SquareConnect::V1Timecard
2
+
3
+ ### Description
4
+
5
+ Represents a timecard for an employee.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **id** | **String** | The timecard's unique ID. | [optional]
11
+ **employee_id** | **String** | The ID of the employee the timecard is associated with. |
12
+ **deleted** | **BOOLEAN** | If true, the timecard was deleted by the merchant, and it is no longer valid. | [optional]
13
+ **clockin_time** | **String** | The clock-in time for the timecard, in ISO 8601 format. | [optional]
14
+ **clockout_time** | **String** | The clock-out time for the timecard, in ISO 8601 format. Provide this value only if importing timecard information from another system. | [optional]
15
+ **clockin_location_id** | **String** | The ID of the location the employee clocked in from, if any. | [optional]
16
+ **clockout_location_id** | **String** | The ID of the location the employee clocked out from. Provide this value only if importing timecard information from another system. | [optional]
17
+ **created_at** | **String** | The time when the timecard was created, in ISO 8601 format. | [optional]
18
+ **updated_at** | **String** | The time when the timecard was most recently updated, in ISO 8601 format. | [optional]
19
+
20
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::V1TimecardEvent
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **String** | The event's unique ID. | [optional]
9
+ **event_type** | **String** | The ID of the timecard to list events for. | [optional]
10
+ **clockin_time** | **String** | The time the employee clocked in, in ISO 8601 format. | [optional]
11
+ **clockout_time** | **String** | The time the employee clocked out, in ISO 8601 format. | [optional]
12
+ **created_at** | **String** | The time when the event was created, in ISO 8601 format. | [optional]
13
+
14
+
@@ -0,0 +1,650 @@
1
+ # SquareConnect::V1TransactionsApi
2
+
3
+ All URIs are relative to *https://connect.squareup.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_refund**](V1TransactionsApi.md#create_refund) | **POST** /v1/{location_id}/refunds | Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
8
+ [**list_bank_accounts**](V1TransactionsApi.md#list_bank_accounts) | **GET** /v1/{location_id}/bank-accounts | Provides non-confidential details for all of a location's associated bank accounts. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
9
+ [**list_orders**](V1TransactionsApi.md#list_orders) | **GET** /v1/{location_id}/orders | Provides summary information for a merchant's online store orders.
10
+ [**list_payments**](V1TransactionsApi.md#list_payments) | **GET** /v1/{location_id}/payments | Provides summary information for all payments taken by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length. See Date ranges for details of inclusive and exclusive dates.
11
+ [**list_refunds**](V1TransactionsApi.md#list_refunds) | **GET** /v1/{location_id}/refunds | Provides the details for all refunds initiated by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length.
12
+ [**list_settlements**](V1TransactionsApi.md#list_settlements) | **GET** /v1/{location_id}/settlements | Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
13
+ [**retrieve_bank_account**](V1TransactionsApi.md#retrieve_bank_account) | **GET** /v1/{location_id}/bank-accounts/{bank_account_id} | Provides non-confidential details for a merchant's associated bank account. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
14
+ [**retrieve_order**](V1TransactionsApi.md#retrieve_order) | **GET** /v1/{location_id}/orders/{order_id} | Provides comprehensive information for a single online store order, including the order's history.
15
+ [**retrieve_payment**](V1TransactionsApi.md#retrieve_payment) | **GET** /v1/{location_id}/payments/{payment_id} | Provides comprehensive information for a single payment.
16
+ [**retrieve_settlement**](V1TransactionsApi.md#retrieve_settlement) | **GET** /v1/{location_id}/settlements/{settlement_id} | Provides comprehensive information for a single settlement, including the entries that contribute to the settlement's total.
17
+ [**update_order**](V1TransactionsApi.md#update_order) | **PUT** /v1/{location_id}/orders/{order_id} | Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
18
+
19
+
20
+ # **create_refund**
21
+ > V1Refund create_refund(location_id, body)
22
+
23
+ Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
24
+
25
+ Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
26
+
27
+ ### Example
28
+ ```ruby
29
+ # load the gem
30
+ require 'square_connect'
31
+ # setup authorization
32
+ SquareConnect.configure do |config|
33
+ # Configure OAuth2 access token for authorization: oauth2
34
+ config.access_token = 'YOUR ACCESS TOKEN'
35
+ end
36
+
37
+ api_instance = SquareConnect::V1TransactionsApi.new
38
+
39
+ location_id = "location_id_example" # String | The ID of the original payment's associated location.
40
+
41
+ body = SquareConnect::V1CreateRefundRequest.new # V1CreateRefundRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details.
42
+
43
+
44
+ begin
45
+ #Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
46
+ result = api_instance.create_refund(location_id, body)
47
+ p result
48
+ rescue SquareConnect::ApiError => e
49
+ puts "Exception when calling V1TransactionsApi->create_refund: #{e}"
50
+ end
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+ Name | Type | Description | Notes
56
+ ------------- | ------------- | ------------- | -------------
57
+ **location_id** | **String**| The ID of the original payment's associated location. |
58
+ **body** | [**V1CreateRefundRequest**](V1CreateRefundRequest.md)| An object containing the fields to POST for the request. See the corresponding object definition for field details. |
59
+
60
+ ### Return type
61
+
62
+ [**V1Refund**](V1Refund.md)
63
+
64
+ ### Authorization
65
+
66
+ [oauth2](../README.md#oauth2)
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: application/json
71
+ - **Accept**: application/json
72
+
73
+
74
+
75
+ # **list_bank_accounts**
76
+ > Array<V1BankAccount> list_bank_accounts(location_id)
77
+
78
+ Provides non-confidential details for all of a location's associated bank accounts. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
79
+
80
+ Provides non-confidential details for all of a location's associated bank accounts. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
81
+
82
+ ### Example
83
+ ```ruby
84
+ # load the gem
85
+ require 'square_connect'
86
+ # setup authorization
87
+ SquareConnect.configure do |config|
88
+ # Configure OAuth2 access token for authorization: oauth2
89
+ config.access_token = 'YOUR ACCESS TOKEN'
90
+ end
91
+
92
+ api_instance = SquareConnect::V1TransactionsApi.new
93
+
94
+ location_id = "location_id_example" # String | The ID of the location to list bank accounts for.
95
+
96
+
97
+ begin
98
+ #Provides non-confidential details for all of a location's associated bank accounts. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
99
+ result = api_instance.list_bank_accounts(location_id)
100
+ p result
101
+ rescue SquareConnect::ApiError => e
102
+ puts "Exception when calling V1TransactionsApi->list_bank_accounts: #{e}"
103
+ end
104
+ ```
105
+
106
+ ### Parameters
107
+
108
+ Name | Type | Description | Notes
109
+ ------------- | ------------- | ------------- | -------------
110
+ **location_id** | **String**| The ID of the location to list bank accounts for. |
111
+
112
+ ### Return type
113
+
114
+ [**Array<V1BankAccount>**](V1BankAccount.md)
115
+
116
+ ### Authorization
117
+
118
+ [oauth2](../README.md#oauth2)
119
+
120
+ ### HTTP request headers
121
+
122
+ - **Content-Type**: application/json
123
+ - **Accept**: application/json
124
+
125
+
126
+
127
+ # **list_orders**
128
+ > Array<V1Order> list_orders(location_id, opts)
129
+
130
+ Provides summary information for a merchant's online store orders.
131
+
132
+ Provides summary information for a merchant's online store orders.
133
+
134
+ ### Example
135
+ ```ruby
136
+ # load the gem
137
+ require 'square_connect'
138
+ # setup authorization
139
+ SquareConnect.configure do |config|
140
+ # Configure OAuth2 access token for authorization: oauth2
141
+ config.access_token = 'YOUR ACCESS TOKEN'
142
+ end
143
+
144
+ api_instance = SquareConnect::V1TransactionsApi.new
145
+
146
+ location_id = "location_id_example" # String | The ID of the location to list online store orders for.
147
+
148
+ opts = {
149
+ order: "order_example", # String | TThe order in which payments are listed in the response.
150
+ limit: 56 # Integer | The maximum number of payments to return in a single response. This value cannot exceed 200.
151
+ }
152
+
153
+ begin
154
+ #Provides summary information for a merchant's online store orders.
155
+ result = api_instance.list_orders(location_id, opts)
156
+ p result
157
+ rescue SquareConnect::ApiError => e
158
+ puts "Exception when calling V1TransactionsApi->list_orders: #{e}"
159
+ end
160
+ ```
161
+
162
+ ### Parameters
163
+
164
+ Name | Type | Description | Notes
165
+ ------------- | ------------- | ------------- | -------------
166
+ **location_id** | **String**| The ID of the location to list online store orders for. |
167
+ **order** | **String**| TThe order in which payments are listed in the response. | [optional]
168
+ **limit** | **Integer**| The maximum number of payments to return in a single response. This value cannot exceed 200. | [optional]
169
+
170
+ ### Return type
171
+
172
+ [**Array<V1Order>**](V1Order.md)
173
+
174
+ ### Authorization
175
+
176
+ [oauth2](../README.md#oauth2)
177
+
178
+ ### HTTP request headers
179
+
180
+ - **Content-Type**: application/json
181
+ - **Accept**: application/json
182
+
183
+
184
+
185
+ # **list_payments**
186
+ > Array<V1Payment> list_payments(location_id, opts)
187
+
188
+ Provides summary information for all payments taken by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length. See Date ranges for details of inclusive and exclusive dates.
189
+
190
+ Provides summary information for all payments taken by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length. See Date ranges for details of inclusive and exclusive dates.
191
+
192
+ ### Example
193
+ ```ruby
194
+ # load the gem
195
+ require 'square_connect'
196
+ # setup authorization
197
+ SquareConnect.configure do |config|
198
+ # Configure OAuth2 access token for authorization: oauth2
199
+ config.access_token = 'YOUR ACCESS TOKEN'
200
+ end
201
+
202
+ api_instance = SquareConnect::V1TransactionsApi.new
203
+
204
+ location_id = "location_id_example" # String | The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business's locations.
205
+
206
+ opts = {
207
+ order: "order_example", # String | The order in which payments are listed in the response.
208
+ begin_time: "begin_time_example", # String | The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
209
+ end_time: "end_time_example", # String | The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
210
+ limit: 56 # Integer | The maximum number of payments to return in a single response. This value cannot exceed 200.
211
+ }
212
+
213
+ begin
214
+ #Provides summary information for all payments taken by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length. See Date ranges for details of inclusive and exclusive dates.
215
+ result = api_instance.list_payments(location_id, opts)
216
+ p result
217
+ rescue SquareConnect::ApiError => e
218
+ puts "Exception when calling V1TransactionsApi->list_payments: #{e}"
219
+ end
220
+ ```
221
+
222
+ ### Parameters
223
+
224
+ Name | Type | Description | Notes
225
+ ------------- | ------------- | ------------- | -------------
226
+ **location_id** | **String**| The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business's locations. |
227
+ **order** | **String**| The order in which payments are listed in the response. | [optional]
228
+ **begin_time** | **String**| The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. | [optional]
229
+ **end_time** | **String**| The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. | [optional]
230
+ **limit** | **Integer**| The maximum number of payments to return in a single response. This value cannot exceed 200. | [optional]
231
+
232
+ ### Return type
233
+
234
+ [**Array<V1Payment>**](V1Payment.md)
235
+
236
+ ### Authorization
237
+
238
+ [oauth2](../README.md#oauth2)
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: application/json
243
+ - **Accept**: application/json
244
+
245
+
246
+
247
+ # **list_refunds**
248
+ > Array<V1Refund> list_refunds(location_id, opts)
249
+
250
+ Provides the details for all refunds initiated by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length.
251
+
252
+ Provides the details for all refunds initiated by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length.
253
+
254
+ ### Example
255
+ ```ruby
256
+ # load the gem
257
+ require 'square_connect'
258
+ # setup authorization
259
+ SquareConnect.configure do |config|
260
+ # Configure OAuth2 access token for authorization: oauth2
261
+ config.access_token = 'YOUR ACCESS TOKEN'
262
+ end
263
+
264
+ api_instance = SquareConnect::V1TransactionsApi.new
265
+
266
+ location_id = "location_id_example" # String | The ID of the location to list refunds for.
267
+
268
+ opts = {
269
+ order: "order_example", # String | TThe order in which payments are listed in the response.
270
+ begin_time: "begin_time_example", # String | The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
271
+ end_time: "end_time_example", # String | The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
272
+ limit: 56 # Integer | The maximum number of payments to return in a single response. This value cannot exceed 200.
273
+ }
274
+
275
+ begin
276
+ #Provides the details for all refunds initiated by a merchant or any of the merchant's mobile staff during a date range. Date ranges cannot exceed one year in length.
277
+ result = api_instance.list_refunds(location_id, opts)
278
+ p result
279
+ rescue SquareConnect::ApiError => e
280
+ puts "Exception when calling V1TransactionsApi->list_refunds: #{e}"
281
+ end
282
+ ```
283
+
284
+ ### Parameters
285
+
286
+ Name | Type | Description | Notes
287
+ ------------- | ------------- | ------------- | -------------
288
+ **location_id** | **String**| The ID of the location to list refunds for. |
289
+ **order** | **String**| TThe order in which payments are listed in the response. | [optional]
290
+ **begin_time** | **String**| The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. | [optional]
291
+ **end_time** | **String**| The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. | [optional]
292
+ **limit** | **Integer**| The maximum number of payments to return in a single response. This value cannot exceed 200. | [optional]
293
+
294
+ ### Return type
295
+
296
+ [**Array<V1Refund>**](V1Refund.md)
297
+
298
+ ### Authorization
299
+
300
+ [oauth2](../README.md#oauth2)
301
+
302
+ ### HTTP request headers
303
+
304
+ - **Content-Type**: application/json
305
+ - **Accept**: application/json
306
+
307
+
308
+
309
+ # **list_settlements**
310
+ > Array<V1Settlement> list_settlements(location_id, opts)
311
+
312
+ Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
313
+
314
+ Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
315
+
316
+ ### Example
317
+ ```ruby
318
+ # load the gem
319
+ require 'square_connect'
320
+ # setup authorization
321
+ SquareConnect.configure do |config|
322
+ # Configure OAuth2 access token for authorization: oauth2
323
+ config.access_token = 'YOUR ACCESS TOKEN'
324
+ end
325
+
326
+ api_instance = SquareConnect::V1TransactionsApi.new
327
+
328
+ location_id = "location_id_example" # String | The ID of the location to list settlements for. If you specify me, this endpoint returns payments aggregated from all of the business's locations.
329
+
330
+ opts = {
331
+ order: "order_example", # String | TThe order in which payments are listed in the response.
332
+ begin_time: "begin_time_example", # String | The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
333
+ end_time: "end_time_example", # String | The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
334
+ limit: 56, # Integer | The maximum number of payments to return in a single response. This value cannot exceed 200.
335
+ status: "status_example" # String | Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED).
336
+ }
337
+
338
+ begin
339
+ #Provides summary information for all deposits and withdrawals initiated by Square to a merchant's bank account during a date range. Date ranges cannot exceed one year in length.
340
+ result = api_instance.list_settlements(location_id, opts)
341
+ p result
342
+ rescue SquareConnect::ApiError => e
343
+ puts "Exception when calling V1TransactionsApi->list_settlements: #{e}"
344
+ end
345
+ ```
346
+
347
+ ### Parameters
348
+
349
+ Name | Type | Description | Notes
350
+ ------------- | ------------- | ------------- | -------------
351
+ **location_id** | **String**| The ID of the location to list settlements for. If you specify me, this endpoint returns payments aggregated from all of the business's locations. |
352
+ **order** | **String**| TThe order in which payments are listed in the response. | [optional]
353
+ **begin_time** | **String**| The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year. | [optional]
354
+ **end_time** | **String**| The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time. | [optional]
355
+ **limit** | **Integer**| The maximum number of payments to return in a single response. This value cannot exceed 200. | [optional]
356
+ **status** | **String**| Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED). | [optional]
357
+
358
+ ### Return type
359
+
360
+ [**Array<V1Settlement>**](V1Settlement.md)
361
+
362
+ ### Authorization
363
+
364
+ [oauth2](../README.md#oauth2)
365
+
366
+ ### HTTP request headers
367
+
368
+ - **Content-Type**: application/json
369
+ - **Accept**: application/json
370
+
371
+
372
+
373
+ # **retrieve_bank_account**
374
+ > V1BankAccount retrieve_bank_account(location_id, bank_account_id)
375
+
376
+ Provides non-confidential details for a merchant's associated bank account. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
377
+
378
+ Provides non-confidential details for a merchant's associated bank account. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
379
+
380
+ ### Example
381
+ ```ruby
382
+ # load the gem
383
+ require 'square_connect'
384
+ # setup authorization
385
+ SquareConnect.configure do |config|
386
+ # Configure OAuth2 access token for authorization: oauth2
387
+ config.access_token = 'YOUR ACCESS TOKEN'
388
+ end
389
+
390
+ api_instance = SquareConnect::V1TransactionsApi.new
391
+
392
+ location_id = "location_id_example" # String | The ID of the bank account's associated location.
393
+
394
+ bank_account_id = "bank_account_id_example" # String | The bank account's Square-issued ID. You obtain this value from Settlement objects returned.
395
+
396
+
397
+ begin
398
+ #Provides non-confidential details for a merchant's associated bank account. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
399
+ result = api_instance.retrieve_bank_account(location_id, bank_account_id)
400
+ p result
401
+ rescue SquareConnect::ApiError => e
402
+ puts "Exception when calling V1TransactionsApi->retrieve_bank_account: #{e}"
403
+ end
404
+ ```
405
+
406
+ ### Parameters
407
+
408
+ Name | Type | Description | Notes
409
+ ------------- | ------------- | ------------- | -------------
410
+ **location_id** | **String**| The ID of the bank account's associated location. |
411
+ **bank_account_id** | **String**| The bank account's Square-issued ID. You obtain this value from Settlement objects returned. |
412
+
413
+ ### Return type
414
+
415
+ [**V1BankAccount**](V1BankAccount.md)
416
+
417
+ ### Authorization
418
+
419
+ [oauth2](../README.md#oauth2)
420
+
421
+ ### HTTP request headers
422
+
423
+ - **Content-Type**: application/json
424
+ - **Accept**: application/json
425
+
426
+
427
+
428
+ # **retrieve_order**
429
+ > V1Order retrieve_order(location_id, order_id)
430
+
431
+ Provides comprehensive information for a single online store order, including the order's history.
432
+
433
+ Provides comprehensive information for a single online store order, including the order's history.
434
+
435
+ ### Example
436
+ ```ruby
437
+ # load the gem
438
+ require 'square_connect'
439
+ # setup authorization
440
+ SquareConnect.configure do |config|
441
+ # Configure OAuth2 access token for authorization: oauth2
442
+ config.access_token = 'YOUR ACCESS TOKEN'
443
+ end
444
+
445
+ api_instance = SquareConnect::V1TransactionsApi.new
446
+
447
+ location_id = "location_id_example" # String | The ID of the order's associated location.
448
+
449
+ order_id = "order_id_example" # String | The order's Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint
450
+
451
+
452
+ begin
453
+ #Provides comprehensive information for a single online store order, including the order's history.
454
+ result = api_instance.retrieve_order(location_id, order_id)
455
+ p result
456
+ rescue SquareConnect::ApiError => e
457
+ puts "Exception when calling V1TransactionsApi->retrieve_order: #{e}"
458
+ end
459
+ ```
460
+
461
+ ### Parameters
462
+
463
+ Name | Type | Description | Notes
464
+ ------------- | ------------- | ------------- | -------------
465
+ **location_id** | **String**| The ID of the order's associated location. |
466
+ **order_id** | **String**| The order's Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint |
467
+
468
+ ### Return type
469
+
470
+ [**V1Order**](V1Order.md)
471
+
472
+ ### Authorization
473
+
474
+ [oauth2](../README.md#oauth2)
475
+
476
+ ### HTTP request headers
477
+
478
+ - **Content-Type**: application/json
479
+ - **Accept**: application/json
480
+
481
+
482
+
483
+ # **retrieve_payment**
484
+ > V1Payment retrieve_payment(location_id, payment_id)
485
+
486
+ Provides comprehensive information for a single payment.
487
+
488
+ Provides comprehensive information for a single payment.
489
+
490
+ ### Example
491
+ ```ruby
492
+ # load the gem
493
+ require 'square_connect'
494
+ # setup authorization
495
+ SquareConnect.configure do |config|
496
+ # Configure OAuth2 access token for authorization: oauth2
497
+ config.access_token = 'YOUR ACCESS TOKEN'
498
+ end
499
+
500
+ api_instance = SquareConnect::V1TransactionsApi.new
501
+
502
+ location_id = "location_id_example" # String | The ID of the payment's associated location.
503
+
504
+ payment_id = "payment_id_example" # String | The payment's Square-issued ID. You obtain this value from Payment objects returned by the List Payments endpoint, or Settlement objects returned by the List Settlements endpoint.
505
+
506
+
507
+ begin
508
+ #Provides comprehensive information for a single payment.
509
+ result = api_instance.retrieve_payment(location_id, payment_id)
510
+ p result
511
+ rescue SquareConnect::ApiError => e
512
+ puts "Exception when calling V1TransactionsApi->retrieve_payment: #{e}"
513
+ end
514
+ ```
515
+
516
+ ### Parameters
517
+
518
+ Name | Type | Description | Notes
519
+ ------------- | ------------- | ------------- | -------------
520
+ **location_id** | **String**| The ID of the payment's associated location. |
521
+ **payment_id** | **String**| The payment's Square-issued ID. You obtain this value from Payment objects returned by the List Payments endpoint, or Settlement objects returned by the List Settlements endpoint. |
522
+
523
+ ### Return type
524
+
525
+ [**V1Payment**](V1Payment.md)
526
+
527
+ ### Authorization
528
+
529
+ [oauth2](../README.md#oauth2)
530
+
531
+ ### HTTP request headers
532
+
533
+ - **Content-Type**: application/json
534
+ - **Accept**: application/json
535
+
536
+
537
+
538
+ # **retrieve_settlement**
539
+ > V1Settlement retrieve_settlement(location_id, settlement_id)
540
+
541
+ Provides comprehensive information for a single settlement, including the entries that contribute to the settlement's total.
542
+
543
+ Provides comprehensive information for a single settlement, including the entries that contribute to the settlement's total.
544
+
545
+ ### Example
546
+ ```ruby
547
+ # load the gem
548
+ require 'square_connect'
549
+ # setup authorization
550
+ SquareConnect.configure do |config|
551
+ # Configure OAuth2 access token for authorization: oauth2
552
+ config.access_token = 'YOUR ACCESS TOKEN'
553
+ end
554
+
555
+ api_instance = SquareConnect::V1TransactionsApi.new
556
+
557
+ location_id = "location_id_example" # String | The ID of the settlements's associated location.
558
+
559
+ settlement_id = "settlement_id_example" # String | The settlement's Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint.
560
+
561
+
562
+ begin
563
+ #Provides comprehensive information for a single settlement, including the entries that contribute to the settlement's total.
564
+ result = api_instance.retrieve_settlement(location_id, settlement_id)
565
+ p result
566
+ rescue SquareConnect::ApiError => e
567
+ puts "Exception when calling V1TransactionsApi->retrieve_settlement: #{e}"
568
+ end
569
+ ```
570
+
571
+ ### Parameters
572
+
573
+ Name | Type | Description | Notes
574
+ ------------- | ------------- | ------------- | -------------
575
+ **location_id** | **String**| The ID of the settlements's associated location. |
576
+ **settlement_id** | **String**| The settlement's Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint. |
577
+
578
+ ### Return type
579
+
580
+ [**V1Settlement**](V1Settlement.md)
581
+
582
+ ### Authorization
583
+
584
+ [oauth2](../README.md#oauth2)
585
+
586
+ ### HTTP request headers
587
+
588
+ - **Content-Type**: application/json
589
+ - **Accept**: application/json
590
+
591
+
592
+
593
+ # **update_order**
594
+ > V1Order update_order(location_id, order_id, body)
595
+
596
+ Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
597
+
598
+ Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
599
+
600
+ ### Example
601
+ ```ruby
602
+ # load the gem
603
+ require 'square_connect'
604
+ # setup authorization
605
+ SquareConnect.configure do |config|
606
+ # Configure OAuth2 access token for authorization: oauth2
607
+ config.access_token = 'YOUR ACCESS TOKEN'
608
+ end
609
+
610
+ api_instance = SquareConnect::V1TransactionsApi.new
611
+
612
+ location_id = "location_id_example" # String | The ID of the order's associated location.
613
+
614
+ order_id = "order_id_example" # String | The order's Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint
615
+
616
+ body = SquareConnect::V1UpdateOrderRequest.new # V1UpdateOrderRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details.
617
+
618
+
619
+ begin
620
+ #Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
621
+ result = api_instance.update_order(location_id, order_id, body)
622
+ p result
623
+ rescue SquareConnect::ApiError => e
624
+ puts "Exception when calling V1TransactionsApi->update_order: #{e}"
625
+ end
626
+ ```
627
+
628
+ ### Parameters
629
+
630
+ Name | Type | Description | Notes
631
+ ------------- | ------------- | ------------- | -------------
632
+ **location_id** | **String**| The ID of the order's associated location. |
633
+ **order_id** | **String**| The order's Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint |
634
+ **body** | [**V1UpdateOrderRequest**](V1UpdateOrderRequest.md)| An object containing the fields to POST for the request. See the corresponding object definition for field details. |
635
+
636
+ ### Return type
637
+
638
+ [**V1Order**](V1Order.md)
639
+
640
+ ### Authorization
641
+
642
+ [oauth2](../README.md#oauth2)
643
+
644
+ ### HTTP request headers
645
+
646
+ - **Content-Type**: application/json
647
+ - **Accept**: application/json
648
+
649
+
650
+