square_connect 2.20190213.0.274 → 2.20190313.0.278

Sign up to get free protection for your applications and to get access to all the features.
Files changed (700) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +24 -0
  3. data/README.md +256 -70
  4. data/docs/BatchRetrieveInventoryChangesRequest.md +1 -1
  5. data/docs/BatchRetrieveInventoryChangesResponse.md +1 -1
  6. data/docs/BatchRetrieveInventoryCountsRequest.md +1 -1
  7. data/docs/BatchRetrieveInventoryCountsResponse.md +1 -1
  8. data/docs/BatchUpsertCatalogObjectsRequest.md +1 -1
  9. data/docs/BreakType.md +19 -0
  10. data/docs/Card.md +1 -1
  11. data/docs/CatalogApi.md +2 -2
  12. data/docs/CatalogItem.md +1 -1
  13. data/docs/CatalogItemVariation.md +1 -1
  14. data/docs/CatalogObject.md +1 -1
  15. data/docs/CatalogQuery.md +1 -1
  16. data/docs/ChargeRequest.md +1 -1
  17. data/docs/CreateBreakTypeRequest.md +13 -0
  18. data/docs/CreateBreakTypeResponse.md +13 -0
  19. data/docs/CreateCheckoutRequest.md +1 -1
  20. data/docs/CreateOrderRequest.md +1 -1
  21. data/docs/CreateRefundRequest.md +1 -1
  22. data/docs/CreateShiftRequest.md +13 -0
  23. data/docs/CreateShiftResponse.md +13 -0
  24. data/docs/CustomersApi.md +2 -2
  25. data/docs/DateRange.md +13 -0
  26. data/docs/DeleteBreakTypeRequest.md +11 -0
  27. data/docs/DeleteBreakTypeResponse.md +12 -0
  28. data/docs/DeleteShiftRequest.md +11 -0
  29. data/docs/DeleteShiftResponse.md +12 -0
  30. data/docs/Device.md +2 -0
  31. data/docs/Employee.md +18 -0
  32. data/docs/EmployeeStatus.md +13 -0
  33. data/docs/EmployeeWage.md +15 -0
  34. data/docs/EmployeesApi.md +121 -0
  35. data/docs/Error.md +1 -1
  36. data/docs/GetBreakTypeRequest.md +11 -0
  37. data/docs/GetBreakTypeResponse.md +13 -0
  38. data/docs/GetEmployeeWageRequest.md +11 -0
  39. data/docs/GetEmployeeWageResponse.md +13 -0
  40. data/docs/GetShiftRequest.md +11 -0
  41. data/docs/GetShiftResponse.md +13 -0
  42. data/docs/InventoryApi.md +4 -4
  43. data/docs/LaborApi.md +772 -0
  44. data/docs/ListAdditionalRecipientReceivableRefundsRequest.md +1 -1
  45. data/docs/ListAdditionalRecipientReceivableRefundsResponse.md +1 -1
  46. data/docs/ListAdditionalRecipientReceivablesRequest.md +1 -1
  47. data/docs/ListAdditionalRecipientReceivablesResponse.md +1 -1
  48. data/docs/ListBreakTypesRequest.md +14 -0
  49. data/docs/ListBreakTypesResponse.md +14 -0
  50. data/docs/ListCatalogRequest.md +1 -1
  51. data/docs/ListCatalogResponse.md +1 -1
  52. data/docs/ListCustomersRequest.md +1 -1
  53. data/docs/ListCustomersResponse.md +1 -1
  54. data/docs/ListEmployeeWagesRequest.md +14 -0
  55. data/docs/ListEmployeeWagesResponse.md +14 -0
  56. data/docs/ListEmployeesRequest.md +15 -0
  57. data/docs/ListEmployeesResponse.md +14 -0
  58. data/docs/ListRefundsRequest.md +1 -1
  59. data/docs/ListRefundsResponse.md +1 -1
  60. data/docs/ListTransactionsRequest.md +1 -1
  61. data/docs/ListTransactionsResponse.md +1 -1
  62. data/docs/ListWorkweekConfigsRequest.md +13 -0
  63. data/docs/ListWorkweekConfigsResponse.md +14 -0
  64. data/docs/ModelBreak.md +18 -0
  65. data/docs/OAuthApi.md +5 -5
  66. data/docs/ObtainTokenRequest.md +6 -3
  67. data/docs/ObtainTokenResponse.md +3 -2
  68. data/docs/ReportingApi.md +4 -4
  69. data/docs/RetrieveEmployeeRequest.md +11 -0
  70. data/docs/RetrieveEmployeeResponse.md +13 -0
  71. data/docs/RetrieveInventoryChangesRequest.md +1 -1
  72. data/docs/RetrieveInventoryChangesResponse.md +1 -1
  73. data/docs/RetrieveInventoryCountRequest.md +1 -1
  74. data/docs/RetrieveInventoryCountResponse.md +1 -1
  75. data/docs/SearchCatalogObjectsRequest.md +1 -1
  76. data/docs/SearchCatalogObjectsResponse.md +1 -1
  77. data/docs/SearchCustomersRequest.md +1 -1
  78. data/docs/SearchCustomersResponse.md +1 -1
  79. data/docs/SearchShiftsRequest.md +14 -0
  80. data/docs/SearchShiftsResponse.md +14 -0
  81. data/docs/Shift.md +23 -0
  82. data/docs/ShiftFilter.md +17 -0
  83. data/docs/ShiftFilterStatus.md +13 -0
  84. data/docs/ShiftQuery.md +13 -0
  85. data/docs/ShiftSort.md +13 -0
  86. data/docs/ShiftSortField.md +15 -0
  87. data/docs/ShiftStatus.md +13 -0
  88. data/docs/ShiftWage.md +13 -0
  89. data/docs/ShiftWorkday.md +14 -0
  90. data/docs/ShiftWorkdayMatcher.md +14 -0
  91. data/docs/TransactionsApi.md +4 -4
  92. data/docs/UpdateBreakTypeRequest.md +12 -0
  93. data/docs/UpdateBreakTypeResponse.md +13 -0
  94. data/docs/UpdateShiftRequest.md +12 -0
  95. data/docs/UpdateShiftResponse.md +13 -0
  96. data/docs/UpdateWorkweekConfigRequest.md +12 -0
  97. data/docs/UpdateWorkweekConfigResponse.md +13 -0
  98. data/docs/UpsertCatalogObjectRequest.md +1 -1
  99. data/docs/V1AdjustInventoryRequest.md +3 -1
  100. data/docs/V1AdjustInventoryRequestAdjustmentType.md +14 -0
  101. data/docs/V1ApplyFeeRequest.md +11 -0
  102. data/docs/V1ApplyModifierListRequest.md +11 -0
  103. data/docs/V1BankAccount.md +3 -1
  104. data/docs/V1BankAccountType.md +17 -0
  105. data/docs/V1CashDrawerEvent.md +3 -1
  106. data/docs/V1CashDrawerEventEventType.md +20 -0
  107. data/docs/V1CashDrawerShift.md +3 -1
  108. data/docs/V1CashDrawerShiftEventType.md +14 -0
  109. data/docs/V1Category.md +2 -0
  110. data/docs/V1CreateCategoryRequest.md +12 -0
  111. data/docs/V1CreateDiscountRequest.md +12 -0
  112. data/docs/V1CreateEmployeeRoleRequest.md +12 -0
  113. data/docs/V1CreateFeeRequest.md +12 -0
  114. data/docs/V1CreateItemRequest.md +12 -0
  115. data/docs/V1CreateModifierListRequest.md +12 -0
  116. data/docs/V1CreateModifierOptionRequest.md +12 -0
  117. data/docs/V1CreatePageRequest.md +12 -0
  118. data/docs/V1CreateRefundRequest.md +4 -2
  119. data/docs/V1CreateRefundRequestType.md +13 -0
  120. data/docs/V1CreateVariationRequest.md +12 -0
  121. data/docs/V1DeleteCategoryRequest.md +11 -0
  122. data/docs/V1DeleteDiscountRequest.md +11 -0
  123. data/docs/V1DeleteFeeRequest.md +11 -0
  124. data/docs/V1DeleteItemRequest.md +11 -0
  125. data/docs/V1DeleteModifierListRequest.md +11 -0
  126. data/docs/V1DeleteModifierOptionRequest.md +11 -0
  127. data/docs/V1DeletePageCellRequest.md +13 -0
  128. data/docs/V1DeletePageRequest.md +11 -0
  129. data/docs/V1DeleteTimecardRequest.md +11 -0
  130. data/docs/V1DeleteTimecardResponse.md +11 -0
  131. data/docs/V1DeleteVariationRequest.md +11 -0
  132. data/docs/V1Discount.md +4 -2
  133. data/docs/V1DiscountColor.md +20 -0
  134. data/docs/V1DiscountDiscountType.md +14 -0
  135. data/docs/V1Employee.md +1 -1
  136. data/docs/V1EmployeeRole.md +3 -1
  137. data/docs/V1EmployeeRolePermissions.md +18 -0
  138. data/docs/V1EmployeeStatus.md +13 -0
  139. data/docs/V1EmployeesApi.md +63 -61
  140. data/docs/V1Fee.md +6 -4
  141. data/docs/V1FeeAdjustmentType.md +12 -0
  142. data/docs/V1FeeCalculationPhase.md +14 -0
  143. data/docs/V1FeeInclusionType.md +13 -0
  144. data/docs/V1FeeType.md +19 -0
  145. data/docs/V1InventoryEntry.md +2 -0
  146. data/docs/V1Item.md +5 -3
  147. data/docs/V1ItemColor.md +20 -0
  148. data/docs/V1ItemImage.md +2 -0
  149. data/docs/V1ItemType.md +14 -0
  150. data/docs/V1ItemVisibility.md +13 -0
  151. data/docs/V1ItemsApi.md +130 -130
  152. data/docs/V1ListBankAccountsRequest.md +11 -0
  153. data/docs/V1ListBankAccountsResponse.md +12 -0
  154. data/docs/V1ListCashDrawerShiftsRequest.md +14 -0
  155. data/docs/V1ListCashDrawerShiftsResponse.md +12 -0
  156. data/docs/V1ListCategoriesRequest.md +11 -0
  157. data/docs/V1ListCategoriesResponse.md +12 -0
  158. data/docs/V1ListDiscountsRequest.md +11 -0
  159. data/docs/V1ListDiscountsResponse.md +12 -0
  160. data/docs/V1ListEmployeeRolesRequest.md +14 -0
  161. data/docs/V1ListEmployeeRolesResponse.md +12 -0
  162. data/docs/V1ListEmployeesRequest.md +20 -0
  163. data/docs/V1ListEmployeesRequestStatus.md +13 -0
  164. data/docs/V1ListEmployeesResponse.md +12 -0
  165. data/docs/V1ListFeesRequest.md +11 -0
  166. data/docs/V1ListFeesResponse.md +12 -0
  167. data/docs/V1ListInventoryRequest.md +13 -0
  168. data/docs/V1ListInventoryResponse.md +12 -0
  169. data/docs/V1ListItemsRequest.md +12 -0
  170. data/docs/V1ListItemsResponse.md +12 -0
  171. data/docs/V1ListLocationsRequest.md +11 -0
  172. data/docs/V1ListLocationsResponse.md +12 -0
  173. data/docs/V1ListModifierListsRequest.md +11 -0
  174. data/docs/V1ListModifierListsResponse.md +12 -0
  175. data/docs/V1ListOrdersRequest.md +14 -0
  176. data/docs/V1ListOrdersResponse.md +12 -0
  177. data/docs/V1ListPagesRequest.md +11 -0
  178. data/docs/V1ListPagesResponse.md +12 -0
  179. data/docs/V1ListPaymentsRequest.md +17 -0
  180. data/docs/V1ListPaymentsResponse.md +12 -0
  181. data/docs/V1ListRefundsRequest.md +16 -0
  182. data/docs/V1ListRefundsResponse.md +12 -0
  183. data/docs/V1ListSettlementsRequest.md +17 -0
  184. data/docs/V1ListSettlementsRequestStatus.md +13 -0
  185. data/docs/V1ListSettlementsResponse.md +12 -0
  186. data/docs/V1ListTimecardEventsRequest.md +12 -0
  187. data/docs/V1ListTimecardEventsResponse.md +12 -0
  188. data/docs/V1ListTimecardsRequest.md +22 -0
  189. data/docs/V1ListTimecardsResponse.md +12 -0
  190. data/docs/V1LocationsApi.md +6 -6
  191. data/docs/V1Merchant.md +4 -4
  192. data/docs/V1MerchantAccountType.md +13 -0
  193. data/docs/V1MerchantBusinessType.md +61 -0
  194. data/docs/V1ModifierList.md +3 -1
  195. data/docs/V1ModifierListSelectionType.md +13 -0
  196. data/docs/V1ModifierOption.md +2 -0
  197. data/docs/V1Money.md +1 -1
  198. data/docs/V1Order.md +3 -1
  199. data/docs/V1OrderHistoryEntry.md +3 -1
  200. data/docs/V1OrderHistoryEntryAction.md +18 -0
  201. data/docs/V1OrderState.md +17 -0
  202. data/docs/V1Page.md +2 -0
  203. data/docs/V1PageCell.md +4 -2
  204. data/docs/V1PageCellObjectType.md +15 -0
  205. data/docs/V1PageCellPlaceholderType.md +14 -0
  206. data/docs/V1Payment.md +2 -0
  207. data/docs/V1PaymentDiscount.md +2 -0
  208. data/docs/V1PaymentItemDetail.md +2 -0
  209. data/docs/V1PaymentItemization.md +3 -1
  210. data/docs/V1PaymentItemizationItemizationType.md +17 -0
  211. data/docs/V1PaymentModifier.md +2 -0
  212. data/docs/V1PaymentSurcharge.md +3 -1
  213. data/docs/V1PaymentSurchargeType.md +14 -0
  214. data/docs/V1PaymentTax.md +3 -1
  215. data/docs/V1PaymentTaxInclusionType.md +13 -0
  216. data/docs/V1Refund.md +3 -1
  217. data/docs/V1RefundType.md +13 -0
  218. data/docs/V1RemoveFeeRequest.md +11 -0
  219. data/docs/V1RemoveModifierListRequest.md +11 -0
  220. data/docs/V1RetrieveBankAccountRequest.md +11 -0
  221. data/docs/V1RetrieveBusinessRequest.md +11 -0
  222. data/docs/V1RetrieveCashDrawerShiftRequest.md +11 -0
  223. data/docs/V1RetrieveEmployeeRequest.md +11 -0
  224. data/docs/V1RetrieveEmployeeRoleRequest.md +11 -0
  225. data/docs/V1RetrieveItemRequest.md +11 -0
  226. data/docs/V1RetrieveModifierListRequest.md +11 -0
  227. data/docs/V1RetrieveOrderRequest.md +11 -0
  228. data/docs/V1RetrievePaymentRequest.md +11 -0
  229. data/docs/V1RetrieveSettlementRequest.md +11 -0
  230. data/docs/V1RetrieveTimecardRequest.md +11 -0
  231. data/docs/V1Settlement.md +3 -1
  232. data/docs/V1SettlementEntry.md +3 -1
  233. data/docs/V1SettlementEntryType.md +32 -0
  234. data/docs/V1SettlementStatus.md +13 -0
  235. data/docs/V1Tender.md +5 -3
  236. data/docs/V1TenderEntryMethod.md +18 -0
  237. data/docs/V1TenderType.md +19 -0
  238. data/docs/V1Timecard.md +1 -1
  239. data/docs/V1TimecardEvent.md +3 -1
  240. data/docs/V1TimecardEventEventType.md +19 -0
  241. data/docs/V1TransactionsApi.md +37 -37
  242. data/docs/V1UpdateCategoryRequest.md +12 -0
  243. data/docs/V1UpdateDiscountRequest.md +12 -0
  244. data/docs/V1UpdateEmployeeRequest.md +12 -0
  245. data/docs/V1UpdateEmployeeRoleRequest.md +12 -0
  246. data/docs/V1UpdateFeeRequest.md +12 -0
  247. data/docs/V1UpdateItemRequest.md +12 -0
  248. data/docs/V1UpdateModifierListRequest.md +3 -1
  249. data/docs/V1UpdateModifierListRequestSelectionType.md +13 -0
  250. data/docs/V1UpdateModifierOptionRequest.md +12 -0
  251. data/docs/V1UpdateOrderRequest.md +3 -1
  252. data/docs/V1UpdateOrderRequestAction.md +14 -0
  253. data/docs/V1UpdatePageCellRequest.md +12 -0
  254. data/docs/V1UpdatePageRequest.md +12 -0
  255. data/docs/V1UpdateTimecardRequest.md +12 -0
  256. data/docs/V1UpdateVariationRequest.md +12 -0
  257. data/docs/V1Variation.md +4 -2
  258. data/docs/V1VariationInventoryAlertType.md +17 -0
  259. data/docs/V1VariationPricingType.md +13 -0
  260. data/docs/Weekday.md +18 -0
  261. data/docs/WorkweekConfig.md +17 -0
  262. data/lib/square_connect.rb +172 -0
  263. data/lib/square_connect/api/apple_pay_api.rb +1 -1
  264. data/lib/square_connect/api/catalog_api.rb +13 -13
  265. data/lib/square_connect/api/checkout_api.rb +1 -1
  266. data/lib/square_connect/api/customers_api.rb +10 -10
  267. data/lib/square_connect/api/employees_api.rb +141 -0
  268. data/lib/square_connect/api/inventory_api.rb +11 -11
  269. data/lib/square_connect/api/labor_api.rb +814 -0
  270. data/lib/square_connect/api/locations_api.rb +1 -1
  271. data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
  272. data/lib/square_connect/api/o_auth_api.rb +9 -9
  273. data/lib/square_connect/api/orders_api.rb +2 -2
  274. data/lib/square_connect/api/reporting_api.rb +6 -6
  275. data/lib/square_connect/api/transactions_api.rb +11 -11
  276. data/lib/square_connect/api/v1_employees_api.rb +78 -73
  277. data/lib/square_connect/api/v1_items_api.rb +140 -104
  278. data/lib/square_connect/api/v1_locations_api.rb +6 -4
  279. data/lib/square_connect/api/v1_transactions_api.rb +49 -54
  280. data/lib/square_connect/api_client.rb +1 -1
  281. data/lib/square_connect/models/batch_retrieve_inventory_changes_request.rb +1 -1
  282. data/lib/square_connect/models/batch_retrieve_inventory_changes_response.rb +1 -1
  283. data/lib/square_connect/models/batch_retrieve_inventory_counts_request.rb +1 -1
  284. data/lib/square_connect/models/batch_retrieve_inventory_counts_response.rb +1 -1
  285. data/lib/square_connect/models/batch_upsert_catalog_objects_request.rb +1 -1
  286. data/lib/square_connect/models/break_type.rb +349 -0
  287. data/lib/square_connect/models/card.rb +1 -1
  288. data/lib/square_connect/models/catalog_item.rb +1 -1
  289. data/lib/square_connect/models/catalog_item_variation.rb +1 -1
  290. data/lib/square_connect/models/catalog_object.rb +1 -1
  291. data/lib/square_connect/models/catalog_query.rb +1 -1
  292. data/lib/square_connect/models/charge_request.rb +1 -1
  293. data/lib/square_connect/models/create_break_type_request.rb +217 -0
  294. data/lib/square_connect/models/create_break_type_response.rb +198 -0
  295. data/lib/square_connect/models/create_checkout_request.rb +1 -1
  296. data/lib/square_connect/models/create_order_request.rb +1 -1
  297. data/lib/square_connect/models/create_refund_request.rb +1 -1
  298. data/lib/square_connect/models/create_shift_request.rb +217 -0
  299. data/lib/square_connect/models/create_shift_response.rb +198 -0
  300. data/lib/square_connect/models/date_range.rb +196 -0
  301. data/lib/square_connect/models/delete_break_type_request.rb +176 -0
  302. data/lib/square_connect/models/delete_break_type_response.rb +188 -0
  303. data/lib/square_connect/models/delete_shift_request.rb +176 -0
  304. data/lib/square_connect/models/delete_shift_response.rb +188 -0
  305. data/lib/square_connect/models/device.rb +1 -1
  306. data/lib/square_connect/models/employee.rb +281 -0
  307. data/lib/square_connect/models/employee_status.rb +19 -0
  308. data/lib/square_connect/models/employee_wage.rb +240 -0
  309. data/lib/square_connect/models/error.rb +1 -1
  310. data/lib/square_connect/models/get_break_type_request.rb +176 -0
  311. data/lib/square_connect/models/get_break_type_response.rb +198 -0
  312. data/lib/square_connect/models/get_employee_wage_request.rb +176 -0
  313. data/lib/square_connect/models/get_employee_wage_response.rb +198 -0
  314. data/lib/square_connect/models/get_shift_request.rb +176 -0
  315. data/lib/square_connect/models/get_shift_response.rb +198 -0
  316. data/lib/square_connect/models/list_additional_recipient_receivable_refunds_request.rb +1 -1
  317. data/lib/square_connect/models/list_additional_recipient_receivable_refunds_response.rb +1 -1
  318. data/lib/square_connect/models/list_additional_recipient_receivables_request.rb +1 -1
  319. data/lib/square_connect/models/list_additional_recipient_receivables_response.rb +1 -1
  320. data/lib/square_connect/models/list_break_types_request.rb +231 -0
  321. data/lib/square_connect/models/list_break_types_response.rb +210 -0
  322. data/lib/square_connect/models/list_catalog_request.rb +1 -1
  323. data/lib/square_connect/models/list_catalog_response.rb +1 -1
  324. data/lib/square_connect/models/list_customers_request.rb +1 -1
  325. data/lib/square_connect/models/list_customers_response.rb +1 -1
  326. data/lib/square_connect/models/list_employee_wages_request.rb +231 -0
  327. data/lib/square_connect/models/list_employee_wages_response.rb +210 -0
  328. data/lib/square_connect/models/list_employees_request.rb +249 -0
  329. data/lib/square_connect/models/list_employees_response.rb +210 -0
  330. data/lib/square_connect/models/list_refunds_request.rb +1 -1
  331. data/lib/square_connect/models/list_refunds_response.rb +1 -1
  332. data/lib/square_connect/models/list_transactions_request.rb +1 -1
  333. data/lib/square_connect/models/list_transactions_response.rb +1 -1
  334. data/lib/square_connect/models/list_workweek_configs_request.rb +196 -0
  335. data/lib/square_connect/models/list_workweek_configs_response.rb +210 -0
  336. data/lib/square_connect/models/model_break.rb +347 -0
  337. data/lib/square_connect/models/obtain_token_request.rb +37 -7
  338. data/lib/square_connect/models/obtain_token_response.rb +16 -6
  339. data/lib/square_connect/models/retrieve_employee_request.rb +176 -0
  340. data/lib/square_connect/models/retrieve_employee_response.rb +198 -0
  341. data/lib/square_connect/models/retrieve_inventory_changes_request.rb +1 -1
  342. data/lib/square_connect/models/retrieve_inventory_changes_response.rb +1 -1
  343. data/lib/square_connect/models/retrieve_inventory_count_request.rb +1 -1
  344. data/lib/square_connect/models/retrieve_inventory_count_response.rb +1 -1
  345. data/lib/square_connect/models/search_catalog_objects_request.rb +1 -1
  346. data/lib/square_connect/models/search_catalog_objects_response.rb +1 -1
  347. data/lib/square_connect/models/search_customers_request.rb +1 -1
  348. data/lib/square_connect/models/search_customers_response.rb +1 -1
  349. data/lib/square_connect/models/search_shifts_request.rb +231 -0
  350. data/lib/square_connect/models/search_shifts_response.rb +210 -0
  351. data/lib/square_connect/models/shift.rb +395 -0
  352. data/lib/square_connect/models/shift_filter.rb +273 -0
  353. data/lib/square_connect/models/shift_filter_status.rb +19 -0
  354. data/lib/square_connect/models/shift_query.rb +196 -0
  355. data/lib/square_connect/models/shift_sort.rb +241 -0
  356. data/lib/square_connect/models/shift_sort_field.rb +21 -0
  357. data/lib/square_connect/models/shift_status.rb +19 -0
  358. data/lib/square_connect/models/shift_wage.rb +196 -0
  359. data/lib/square_connect/models/shift_workday.rb +239 -0
  360. data/lib/square_connect/models/shift_workday_matcher.rb +20 -0
  361. data/lib/square_connect/models/update_break_type_request.rb +186 -0
  362. data/lib/square_connect/models/update_break_type_response.rb +198 -0
  363. data/lib/square_connect/models/update_shift_request.rb +191 -0
  364. data/lib/square_connect/models/update_shift_response.rb +198 -0
  365. data/lib/square_connect/models/update_workweek_config_request.rb +186 -0
  366. data/lib/square_connect/models/update_workweek_config_response.rb +198 -0
  367. data/lib/square_connect/models/upsert_catalog_object_request.rb +1 -1
  368. data/lib/square_connect/models/v1_adjust_inventory_request.rb +2 -2
  369. data/lib/square_connect/models/v1_adjust_inventory_request_adjustment_type.rb +20 -0
  370. data/lib/square_connect/models/v1_apply_fee_request.rb +176 -0
  371. data/lib/square_connect/models/v1_apply_modifier_list_request.rb +176 -0
  372. data/lib/square_connect/models/v1_bank_account.rb +2 -2
  373. data/lib/square_connect/models/v1_bank_account_type.rb +23 -0
  374. data/lib/square_connect/models/v1_cash_drawer_event.rb +2 -2
  375. data/lib/square_connect/models/v1_cash_drawer_event_event_type.rb +26 -0
  376. data/lib/square_connect/models/v1_cash_drawer_shift.rb +2 -2
  377. data/lib/square_connect/models/v1_cash_drawer_shift_event_type.rb +20 -0
  378. data/lib/square_connect/models/v1_category.rb +1 -1
  379. data/lib/square_connect/models/v1_create_category_request.rb +186 -0
  380. data/lib/square_connect/models/v1_create_discount_request.rb +186 -0
  381. data/lib/square_connect/models/v1_create_employee_role_request.rb +186 -0
  382. data/lib/square_connect/models/v1_create_fee_request.rb +186 -0
  383. data/lib/square_connect/models/v1_create_item_request.rb +186 -0
  384. data/lib/square_connect/models/v1_create_modifier_list_request.rb +186 -0
  385. data/lib/square_connect/models/v1_create_modifier_option_request.rb +186 -0
  386. data/lib/square_connect/models/v1_create_page_request.rb +186 -0
  387. data/lib/square_connect/models/v1_create_refund_request.rb +3 -3
  388. data/lib/square_connect/models/v1_create_refund_request_type.rb +19 -0
  389. data/lib/square_connect/models/v1_create_variation_request.rb +186 -0
  390. data/lib/square_connect/models/v1_delete_category_request.rb +176 -0
  391. data/lib/square_connect/models/v1_delete_discount_request.rb +176 -0
  392. data/lib/square_connect/models/v1_delete_fee_request.rb +176 -0
  393. data/lib/square_connect/models/v1_delete_item_request.rb +176 -0
  394. data/lib/square_connect/models/v1_delete_modifier_list_request.rb +176 -0
  395. data/lib/square_connect/models/v1_delete_modifier_option_request.rb +176 -0
  396. data/lib/square_connect/models/v1_delete_page_cell_request.rb +196 -0
  397. data/lib/square_connect/models/v1_delete_page_request.rb +176 -0
  398. data/lib/square_connect/models/v1_delete_timecard_request.rb +176 -0
  399. data/lib/square_connect/models/v1_delete_timecard_response.rb +176 -0
  400. data/lib/square_connect/models/v1_delete_variation_request.rb +176 -0
  401. data/lib/square_connect/models/v1_discount.rb +3 -3
  402. data/lib/square_connect/models/v1_discount_color.rb +26 -0
  403. data/lib/square_connect/models/v1_discount_discount_type.rb +20 -0
  404. data/lib/square_connect/models/v1_employee.rb +1 -1
  405. data/lib/square_connect/models/v1_employee_role.rb +2 -2
  406. data/lib/square_connect/models/v1_employee_role_permissions.rb +24 -0
  407. data/lib/square_connect/models/v1_employee_status.rb +19 -0
  408. data/lib/square_connect/models/v1_fee.rb +5 -5
  409. data/lib/square_connect/models/v1_fee_adjustment_type.rb +18 -0
  410. data/lib/square_connect/models/v1_fee_calculation_phase.rb +20 -0
  411. data/lib/square_connect/models/v1_fee_inclusion_type.rb +19 -0
  412. data/lib/square_connect/models/v1_fee_type.rb +25 -0
  413. data/lib/square_connect/models/v1_inventory_entry.rb +1 -1
  414. data/lib/square_connect/models/v1_item.rb +4 -4
  415. data/lib/square_connect/models/v1_item_color.rb +26 -0
  416. data/lib/square_connect/models/v1_item_image.rb +1 -1
  417. data/lib/square_connect/models/v1_item_type.rb +20 -0
  418. data/lib/square_connect/models/v1_item_visibility.rb +19 -0
  419. data/lib/square_connect/models/v1_list_bank_accounts_request.rb +176 -0
  420. data/lib/square_connect/models/v1_list_bank_accounts_response.rb +188 -0
  421. data/lib/square_connect/models/v1_list_cash_drawer_shifts_request.rb +239 -0
  422. data/lib/square_connect/models/v1_list_cash_drawer_shifts_response.rb +188 -0
  423. data/lib/square_connect/models/v1_list_categories_request.rb +176 -0
  424. data/lib/square_connect/models/v1_list_categories_response.rb +188 -0
  425. data/lib/square_connect/models/v1_list_discounts_request.rb +176 -0
  426. data/lib/square_connect/models/v1_list_discounts_response.rb +188 -0
  427. data/lib/square_connect/models/v1_list_employee_roles_request.rb +239 -0
  428. data/lib/square_connect/models/v1_list_employee_roles_response.rb +188 -0
  429. data/lib/square_connect/models/v1_list_employees_request.rb +311 -0
  430. data/lib/square_connect/models/v1_list_employees_request_status.rb +19 -0
  431. data/lib/square_connect/models/v1_list_employees_response.rb +188 -0
  432. data/lib/square_connect/models/v1_list_fees_request.rb +176 -0
  433. data/lib/square_connect/models/v1_list_fees_response.rb +188 -0
  434. data/lib/square_connect/models/v1_list_inventory_request.rb +196 -0
  435. data/lib/square_connect/models/v1_list_inventory_response.rb +188 -0
  436. data/lib/square_connect/models/v1_list_items_request.rb +186 -0
  437. data/lib/square_connect/models/v1_list_items_response.rb +188 -0
  438. data/lib/square_connect/models/v1_list_locations_request.rb +176 -0
  439. data/lib/square_connect/models/v1_list_locations_response.rb +188 -0
  440. data/lib/square_connect/models/v1_list_modifier_lists_request.rb +176 -0
  441. data/lib/square_connect/models/v1_list_modifier_lists_response.rb +188 -0
  442. data/lib/square_connect/models/v1_list_orders_request.rb +239 -0
  443. data/lib/square_connect/models/v1_list_orders_response.rb +188 -0
  444. data/lib/square_connect/models/v1_list_pages_request.rb +176 -0
  445. data/lib/square_connect/models/v1_list_pages_response.rb +188 -0
  446. data/lib/square_connect/models/v1_list_payments_request.rb +269 -0
  447. data/lib/square_connect/models/v1_list_payments_response.rb +188 -0
  448. data/lib/square_connect/models/v1_list_refunds_request.rb +259 -0
  449. data/lib/square_connect/models/v1_list_refunds_response.rb +188 -0
  450. data/lib/square_connect/models/v1_list_settlements_request.rb +281 -0
  451. data/lib/square_connect/models/v1_list_settlements_request_status.rb +19 -0
  452. data/lib/square_connect/models/v1_list_settlements_response.rb +188 -0
  453. data/lib/square_connect/models/v1_list_timecard_events_request.rb +191 -0
  454. data/lib/square_connect/models/v1_list_timecard_events_response.rb +188 -0
  455. data/lib/square_connect/models/v1_list_timecards_request.rb +319 -0
  456. data/lib/square_connect/models/v1_list_timecards_response.rb +188 -0
  457. data/lib/square_connect/models/v1_merchant.rb +10 -9
  458. data/lib/square_connect/models/v1_merchant_account_type.rb +19 -0
  459. data/lib/square_connect/models/v1_merchant_business_type.rb +67 -0
  460. data/lib/square_connect/models/v1_modifier_list.rb +2 -2
  461. data/lib/square_connect/models/v1_modifier_list_selection_type.rb +19 -0
  462. data/lib/square_connect/models/v1_modifier_option.rb +1 -1
  463. data/lib/square_connect/models/v1_money.rb +3 -3
  464. data/lib/square_connect/models/v1_order.rb +2 -2
  465. data/lib/square_connect/models/v1_order_history_entry.rb +2 -2
  466. data/lib/square_connect/models/v1_order_history_entry_action.rb +24 -0
  467. data/lib/square_connect/models/v1_order_state.rb +23 -0
  468. data/lib/square_connect/models/v1_page.rb +1 -1
  469. data/lib/square_connect/models/v1_page_cell.rb +3 -3
  470. data/lib/square_connect/models/v1_page_cell_object_type.rb +21 -0
  471. data/lib/square_connect/models/v1_page_cell_placeholder_type.rb +20 -0
  472. data/lib/square_connect/models/v1_payment.rb +1 -1
  473. data/lib/square_connect/models/v1_payment_discount.rb +1 -1
  474. data/lib/square_connect/models/v1_payment_item_detail.rb +1 -1
  475. data/lib/square_connect/models/v1_payment_itemization.rb +2 -2
  476. data/lib/square_connect/models/v1_payment_itemization_itemization_type.rb +23 -0
  477. data/lib/square_connect/models/v1_payment_modifier.rb +1 -1
  478. data/lib/square_connect/models/v1_payment_surcharge.rb +2 -2
  479. data/lib/square_connect/models/v1_payment_surcharge_type.rb +20 -0
  480. data/lib/square_connect/models/v1_payment_tax.rb +2 -2
  481. data/lib/square_connect/models/v1_payment_tax_inclusion_type.rb +19 -0
  482. data/lib/square_connect/models/v1_refund.rb +2 -2
  483. data/lib/square_connect/models/v1_refund_type.rb +19 -0
  484. data/lib/square_connect/models/v1_remove_fee_request.rb +176 -0
  485. data/lib/square_connect/models/v1_remove_modifier_list_request.rb +176 -0
  486. data/lib/square_connect/models/v1_retrieve_bank_account_request.rb +176 -0
  487. data/lib/square_connect/models/v1_retrieve_business_request.rb +176 -0
  488. data/lib/square_connect/models/v1_retrieve_cash_drawer_shift_request.rb +176 -0
  489. data/lib/square_connect/models/v1_retrieve_employee_request.rb +176 -0
  490. data/lib/square_connect/models/v1_retrieve_employee_role_request.rb +176 -0
  491. data/lib/square_connect/models/v1_retrieve_item_request.rb +176 -0
  492. data/lib/square_connect/models/v1_retrieve_modifier_list_request.rb +176 -0
  493. data/lib/square_connect/models/v1_retrieve_order_request.rb +176 -0
  494. data/lib/square_connect/models/v1_retrieve_payment_request.rb +176 -0
  495. data/lib/square_connect/models/v1_retrieve_settlement_request.rb +176 -0
  496. data/lib/square_connect/models/v1_retrieve_timecard_request.rb +176 -0
  497. data/lib/square_connect/models/v1_settlement.rb +2 -2
  498. data/lib/square_connect/models/v1_settlement_entry.rb +4 -4
  499. data/lib/square_connect/models/v1_settlement_entry_type.rb +38 -0
  500. data/lib/square_connect/models/v1_settlement_status.rb +19 -0
  501. data/lib/square_connect/models/v1_tender.rb +6 -6
  502. data/lib/square_connect/models/v1_tender_entry_method.rb +24 -0
  503. data/lib/square_connect/models/v1_tender_type.rb +25 -0
  504. data/lib/square_connect/models/v1_timecard.rb +1 -1
  505. data/lib/square_connect/models/v1_timecard_event.rb +2 -2
  506. data/lib/square_connect/models/v1_timecard_event_event_type.rb +25 -0
  507. data/lib/square_connect/models/v1_update_category_request.rb +191 -0
  508. data/lib/square_connect/models/v1_update_discount_request.rb +191 -0
  509. data/lib/square_connect/models/v1_update_employee_request.rb +191 -0
  510. data/lib/square_connect/models/v1_update_employee_role_request.rb +191 -0
  511. data/lib/square_connect/models/v1_update_fee_request.rb +191 -0
  512. data/lib/square_connect/models/v1_update_item_request.rb +191 -0
  513. data/lib/square_connect/models/v1_update_modifier_list_request.rb +2 -2
  514. data/lib/square_connect/models/v1_update_modifier_list_request_selection_type.rb +19 -0
  515. data/lib/square_connect/models/v1_update_modifier_option_request.rb +191 -0
  516. data/lib/square_connect/models/v1_update_order_request.rb +2 -2
  517. data/lib/square_connect/models/v1_update_order_request_action.rb +20 -0
  518. data/lib/square_connect/models/v1_update_page_cell_request.rb +191 -0
  519. data/lib/square_connect/models/v1_update_page_request.rb +191 -0
  520. data/lib/square_connect/models/v1_update_timecard_request.rb +191 -0
  521. data/lib/square_connect/models/v1_update_variation_request.rb +191 -0
  522. data/lib/square_connect/models/v1_variation.rb +3 -3
  523. data/lib/square_connect/models/v1_variation_inventory_alert_type.rb +23 -0
  524. data/lib/square_connect/models/v1_variation_pricing_type.rb +19 -0
  525. data/lib/square_connect/models/weekday.rb +24 -0
  526. data/lib/square_connect/models/workweek_config.rb +298 -0
  527. data/lib/square_connect/version.rb +1 -1
  528. data/spec/api/employees_api_spec.rb +59 -0
  529. data/spec/api/labor_api_spec.rb +208 -0
  530. data/spec/models/break_type_spec.rb +81 -0
  531. data/spec/models/create_break_type_request_spec.rb +45 -0
  532. data/spec/models/create_break_type_response_spec.rb +45 -0
  533. data/spec/models/create_shift_request_spec.rb +45 -0
  534. data/spec/models/create_shift_response_spec.rb +45 -0
  535. data/spec/models/date_range_spec.rb +45 -0
  536. data/spec/models/delete_break_type_request_spec.rb +33 -0
  537. data/spec/models/delete_break_type_response_spec.rb +39 -0
  538. data/spec/models/delete_shift_request_spec.rb +33 -0
  539. data/spec/models/delete_shift_response_spec.rb +39 -0
  540. data/spec/models/employee_spec.rb +79 -0
  541. data/spec/models/employee_status_spec.rb +33 -0
  542. data/spec/models/employee_wage_spec.rb +57 -0
  543. data/spec/models/get_break_type_request_spec.rb +33 -0
  544. data/spec/models/get_break_type_response_spec.rb +45 -0
  545. data/spec/models/get_employee_wage_request_spec.rb +33 -0
  546. data/spec/models/get_employee_wage_response_spec.rb +45 -0
  547. data/spec/models/get_shift_request_spec.rb +33 -0
  548. data/spec/models/get_shift_response_spec.rb +45 -0
  549. data/spec/models/list_break_types_request_spec.rb +51 -0
  550. data/spec/models/list_break_types_response_spec.rb +51 -0
  551. data/spec/models/list_employee_wages_request_spec.rb +51 -0
  552. data/spec/models/list_employee_wages_response_spec.rb +51 -0
  553. data/spec/models/list_employees_request_spec.rb +61 -0
  554. data/spec/models/list_employees_response_spec.rb +51 -0
  555. data/spec/models/list_workweek_configs_request_spec.rb +45 -0
  556. data/spec/models/list_workweek_configs_response_spec.rb +51 -0
  557. data/spec/models/model_break_spec.rb +75 -0
  558. data/spec/models/retrieve_employee_request_spec.rb +33 -0
  559. data/spec/models/retrieve_employee_response_spec.rb +45 -0
  560. data/spec/models/search_shifts_request_spec.rb +51 -0
  561. data/spec/models/search_shifts_response_spec.rb +51 -0
  562. data/spec/models/shift_filter_spec.rb +73 -0
  563. data/spec/models/shift_filter_status_spec.rb +33 -0
  564. data/spec/models/shift_query_spec.rb +45 -0
  565. data/spec/models/shift_sort_field_spec.rb +33 -0
  566. data/spec/models/shift_sort_spec.rb +53 -0
  567. data/spec/models/shift_spec.rb +109 -0
  568. data/spec/models/shift_status_spec.rb +33 -0
  569. data/spec/models/shift_wage_spec.rb +45 -0
  570. data/spec/models/shift_workday_matcher_spec.rb +33 -0
  571. data/spec/models/shift_workday_spec.rb +55 -0
  572. data/spec/models/update_break_type_request_spec.rb +39 -0
  573. data/spec/models/update_break_type_response_spec.rb +45 -0
  574. data/spec/models/update_shift_request_spec.rb +39 -0
  575. data/spec/models/update_shift_response_spec.rb +45 -0
  576. data/spec/models/update_workweek_config_request_spec.rb +39 -0
  577. data/spec/models/update_workweek_config_response_spec.rb +45 -0
  578. data/spec/models/v1_adjust_inventory_request_adjustment_type_spec.rb +33 -0
  579. data/spec/models/v1_apply_fee_request_spec.rb +33 -0
  580. data/spec/models/v1_apply_modifier_list_request_spec.rb +33 -0
  581. data/spec/models/v1_bank_account_type_spec.rb +33 -0
  582. data/spec/models/v1_cash_drawer_event_event_type_spec.rb +33 -0
  583. data/spec/models/v1_cash_drawer_shift_event_type_spec.rb +33 -0
  584. data/spec/models/v1_create_category_request_spec.rb +39 -0
  585. data/spec/models/v1_create_discount_request_spec.rb +39 -0
  586. data/spec/models/v1_create_employee_role_request_spec.rb +39 -0
  587. data/spec/models/v1_create_fee_request_spec.rb +39 -0
  588. data/spec/models/v1_create_item_request_spec.rb +39 -0
  589. data/spec/models/v1_create_modifier_list_request_spec.rb +39 -0
  590. data/spec/models/v1_create_modifier_option_request_spec.rb +39 -0
  591. data/spec/models/v1_create_page_request_spec.rb +39 -0
  592. data/spec/models/v1_create_refund_request_type_spec.rb +33 -0
  593. data/spec/models/v1_create_variation_request_spec.rb +39 -0
  594. data/spec/models/v1_delete_category_request_spec.rb +33 -0
  595. data/spec/models/v1_delete_discount_request_spec.rb +33 -0
  596. data/spec/models/v1_delete_fee_request_spec.rb +33 -0
  597. data/spec/models/v1_delete_item_request_spec.rb +33 -0
  598. data/spec/models/v1_delete_modifier_list_request_spec.rb +33 -0
  599. data/spec/models/v1_delete_modifier_option_request_spec.rb +33 -0
  600. data/spec/models/v1_delete_page_cell_request_spec.rb +45 -0
  601. data/spec/models/v1_delete_page_request_spec.rb +33 -0
  602. data/spec/models/v1_delete_timecard_request_spec.rb +33 -0
  603. data/spec/models/v1_delete_timecard_response_spec.rb +33 -0
  604. data/spec/models/v1_delete_variation_request_spec.rb +33 -0
  605. data/spec/models/v1_discount_color_spec.rb +33 -0
  606. data/spec/models/v1_discount_discount_type_spec.rb +33 -0
  607. data/spec/models/v1_employee_role_permissions_spec.rb +33 -0
  608. data/spec/models/v1_employee_status_spec.rb +33 -0
  609. data/spec/models/v1_fee_adjustment_type_spec.rb +33 -0
  610. data/spec/models/v1_fee_calculation_phase_spec.rb +33 -0
  611. data/spec/models/v1_fee_inclusion_type_spec.rb +33 -0
  612. data/spec/models/v1_fee_type_spec.rb +33 -0
  613. data/spec/models/v1_item_color_spec.rb +33 -0
  614. data/spec/models/v1_item_type_spec.rb +33 -0
  615. data/spec/models/v1_item_visibility_spec.rb +33 -0
  616. data/spec/models/v1_list_bank_accounts_request_spec.rb +33 -0
  617. data/spec/models/v1_list_bank_accounts_response_spec.rb +39 -0
  618. data/spec/models/v1_list_cash_drawer_shifts_request_spec.rb +55 -0
  619. data/spec/models/v1_list_cash_drawer_shifts_response_spec.rb +39 -0
  620. data/spec/models/v1_list_categories_request_spec.rb +33 -0
  621. data/spec/models/v1_list_categories_response_spec.rb +39 -0
  622. data/spec/models/v1_list_discounts_request_spec.rb +33 -0
  623. data/spec/models/v1_list_discounts_response_spec.rb +39 -0
  624. data/spec/models/v1_list_employee_roles_request_spec.rb +55 -0
  625. data/spec/models/v1_list_employee_roles_response_spec.rb +39 -0
  626. data/spec/models/v1_list_employees_request_spec.rb +95 -0
  627. data/spec/models/v1_list_employees_request_status_spec.rb +33 -0
  628. data/spec/models/v1_list_employees_response_spec.rb +39 -0
  629. data/spec/models/v1_list_fees_request_spec.rb +33 -0
  630. data/spec/models/v1_list_fees_response_spec.rb +39 -0
  631. data/spec/models/v1_list_inventory_request_spec.rb +45 -0
  632. data/spec/models/v1_list_inventory_response_spec.rb +39 -0
  633. data/spec/models/v1_list_items_request_spec.rb +39 -0
  634. data/spec/models/v1_list_items_response_spec.rb +39 -0
  635. data/spec/models/v1_list_locations_request_spec.rb +33 -0
  636. data/spec/models/v1_list_locations_response_spec.rb +39 -0
  637. data/spec/models/v1_list_modifier_lists_request_spec.rb +33 -0
  638. data/spec/models/v1_list_modifier_lists_response_spec.rb +39 -0
  639. data/spec/models/v1_list_orders_request_spec.rb +55 -0
  640. data/spec/models/v1_list_orders_response_spec.rb +39 -0
  641. data/spec/models/v1_list_pages_request_spec.rb +33 -0
  642. data/spec/models/v1_list_pages_response_spec.rb +39 -0
  643. data/spec/models/v1_list_payments_request_spec.rb +73 -0
  644. data/spec/models/v1_list_payments_response_spec.rb +39 -0
  645. data/spec/models/v1_list_refunds_request_spec.rb +67 -0
  646. data/spec/models/v1_list_refunds_response_spec.rb +39 -0
  647. data/spec/models/v1_list_settlements_request_spec.rb +77 -0
  648. data/spec/models/v1_list_settlements_request_status_spec.rb +33 -0
  649. data/spec/models/v1_list_settlements_response_spec.rb +39 -0
  650. data/spec/models/v1_list_timecard_events_request_spec.rb +39 -0
  651. data/spec/models/v1_list_timecard_events_response_spec.rb +39 -0
  652. data/spec/models/v1_list_timecards_request_spec.rb +103 -0
  653. data/spec/models/v1_list_timecards_response_spec.rb +39 -0
  654. data/spec/models/v1_merchant_account_type_spec.rb +33 -0
  655. data/spec/models/v1_merchant_business_type_spec.rb +33 -0
  656. data/spec/models/v1_modifier_list_selection_type_spec.rb +33 -0
  657. data/spec/models/v1_order_history_entry_action_spec.rb +33 -0
  658. data/spec/models/v1_order_state_spec.rb +33 -0
  659. data/spec/models/v1_page_cell_object_type_spec.rb +33 -0
  660. data/spec/models/v1_page_cell_placeholder_type_spec.rb +33 -0
  661. data/spec/models/v1_payment_itemization_itemization_type_spec.rb +33 -0
  662. data/spec/models/v1_payment_surcharge_type_spec.rb +33 -0
  663. data/spec/models/v1_payment_tax_inclusion_type_spec.rb +33 -0
  664. data/spec/models/v1_refund_type_spec.rb +33 -0
  665. data/spec/models/v1_remove_fee_request_spec.rb +33 -0
  666. data/spec/models/v1_remove_modifier_list_request_spec.rb +33 -0
  667. data/spec/models/v1_retrieve_bank_account_request_spec.rb +33 -0
  668. data/spec/models/v1_retrieve_business_request_spec.rb +33 -0
  669. data/spec/models/v1_retrieve_cash_drawer_shift_request_spec.rb +33 -0
  670. data/spec/models/v1_retrieve_employee_request_spec.rb +33 -0
  671. data/spec/models/v1_retrieve_employee_role_request_spec.rb +33 -0
  672. data/spec/models/v1_retrieve_item_request_spec.rb +33 -0
  673. data/spec/models/v1_retrieve_modifier_list_request_spec.rb +33 -0
  674. data/spec/models/v1_retrieve_order_request_spec.rb +33 -0
  675. data/spec/models/v1_retrieve_payment_request_spec.rb +33 -0
  676. data/spec/models/v1_retrieve_settlement_request_spec.rb +33 -0
  677. data/spec/models/v1_retrieve_timecard_request_spec.rb +33 -0
  678. data/spec/models/v1_settlement_entry_type_spec.rb +33 -0
  679. data/spec/models/v1_settlement_status_spec.rb +33 -0
  680. data/spec/models/v1_tender_entry_method_spec.rb +33 -0
  681. data/spec/models/v1_tender_type_spec.rb +33 -0
  682. data/spec/models/v1_timecard_event_event_type_spec.rb +33 -0
  683. data/spec/models/v1_update_category_request_spec.rb +39 -0
  684. data/spec/models/v1_update_discount_request_spec.rb +39 -0
  685. data/spec/models/v1_update_employee_request_spec.rb +39 -0
  686. data/spec/models/v1_update_employee_role_request_spec.rb +39 -0
  687. data/spec/models/v1_update_fee_request_spec.rb +39 -0
  688. data/spec/models/v1_update_item_request_spec.rb +39 -0
  689. data/spec/models/v1_update_modifier_list_request_selection_type_spec.rb +33 -0
  690. data/spec/models/v1_update_modifier_option_request_spec.rb +39 -0
  691. data/spec/models/v1_update_order_request_action_spec.rb +33 -0
  692. data/spec/models/v1_update_page_cell_request_spec.rb +39 -0
  693. data/spec/models/v1_update_page_request_spec.rb +39 -0
  694. data/spec/models/v1_update_timecard_request_spec.rb +39 -0
  695. data/spec/models/v1_update_variation_request_spec.rb +39 -0
  696. data/spec/models/v1_variation_inventory_alert_type_spec.rb +33 -0
  697. data/spec/models/v1_variation_pricing_type_spec.rb +33 -0
  698. data/spec/models/weekday_spec.rb +33 -0
  699. data/spec/models/workweek_config_spec.rb +73 -0
  700. metadata +691 -3
@@ -17,7 +17,7 @@ module SquareConnect
17
17
  @api_client = api_client
18
18
  end
19
19
 
20
- # Provides details for a business's locations, including their IDs.
20
+ # ListLocations
21
21
  # Provides details for a business's locations, including their IDs.
22
22
  # @param [Hash] opts the optional parameters
23
23
  # @return [Array<V1Merchant>]
@@ -26,7 +26,7 @@ module SquareConnect
26
26
  return data
27
27
  end
28
28
 
29
- # Provides details for a business&#39;s locations, including their IDs.
29
+ # ListLocations
30
30
  # Provides details for a business&#39;s locations, including their IDs.
31
31
  # @param [Hash] opts the optional parameters
32
32
  # @return [Array<(Array<V1Merchant>, Fixnum, Hash)>] Array<V1Merchant> data, response status code and response headers
@@ -47,6 +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'] = "2019-03-13"
50
51
 
51
52
  # form parameters
52
53
  form_params = {}
@@ -67,7 +68,7 @@ module SquareConnect
67
68
  return data, status_code, headers
68
69
  end
69
70
 
70
- # Get a business's information.
71
+ # RetrieveBusiness
71
72
  # Get a business's information.
72
73
  # @param [Hash] opts the optional parameters
73
74
  # @return [V1Merchant]
@@ -76,7 +77,7 @@ module SquareConnect
76
77
  return data
77
78
  end
78
79
 
79
- # Get a business&#39;s information.
80
+ # RetrieveBusiness
80
81
  # Get a business&#39;s information.
81
82
  # @param [Hash] opts the optional parameters
82
83
  # @return [Array<(V1Merchant, Fixnum, Hash)>] V1Merchant data, response status code and response headers
@@ -97,6 +98,7 @@ module SquareConnect
97
98
  # HTTP header 'Content-Type'
98
99
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
99
100
 
101
+ header_params['Square-Version'] = "2019-03-13"
100
102
 
101
103
  # form parameters
102
104
  form_params = {}
@@ -17,8 +17,8 @@ module SquareConnect
17
17
  @api_client = api_client
18
18
  end
19
19
 
20
- # Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
21
- # Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
20
+ # CreateRefund
21
+ # Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment. You cannot issue a partial refund for a split tender payment. You must instead issue a full or partial refund for a particular tender, by providing the applicable tender id to the V1CreateRefund endpoint. Issuing a full refund for a split tender payment refunds all tenders associated with the payment. Issuing a refund for a card payment is not reversible. For development purposes, you can create fake cash payments in Square Point of Sale and refund them.
22
22
  # @param location_id The ID of the original payment&#39;s associated location.
23
23
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
24
24
  # @param [Hash] opts the optional parameters
@@ -28,8 +28,8 @@ module SquareConnect
28
28
  return data
29
29
  end
30
30
 
31
- # Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
32
- # Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
31
+ # CreateRefund
32
+ # Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment. You cannot issue a partial refund for a split tender payment. You must instead issue a full or partial refund for a particular tender, by providing the applicable tender id to the V1CreateRefund endpoint. Issuing a full refund for a split tender payment refunds all tenders associated with the payment. Issuing a refund for a card payment is not reversible. For development purposes, you can create fake cash payments in Square Point of Sale and refund them.
33
33
  # @param location_id The ID of the original payment&#39;s associated location.
34
34
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
35
35
  # @param [Hash] opts the optional parameters
@@ -55,6 +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'] = "2019-03-13"
58
59
 
59
60
  # form parameters
60
61
  form_params = {}
@@ -75,7 +76,7 @@ module SquareConnect
75
76
  return data, status_code, headers
76
77
  end
77
78
 
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
+ # ListBankAccounts
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.
80
81
  # @param location_id The ID of the location to list bank accounts for.
81
82
  # @param [Hash] opts the optional parameters
@@ -85,7 +86,7 @@ module SquareConnect
85
86
  return data
86
87
  end
87
88
 
88
- # Provides non-confidential details for all of a location&#39;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.
89
+ # ListBankAccounts
89
90
  # Provides non-confidential details for all of a location&#39;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.
90
91
  # @param location_id The ID of the location to list bank accounts for.
91
92
  # @param [Hash] opts the optional parameters
@@ -109,6 +110,7 @@ module SquareConnect
109
110
  # HTTP header 'Content-Type'
110
111
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
111
112
 
113
+ header_params['Square-Version'] = "2019-03-13"
112
114
 
113
115
  # form parameters
114
116
  form_params = {}
@@ -129,7 +131,7 @@ module SquareConnect
129
131
  return data, status_code, headers
130
132
  end
131
133
 
132
- # Provides summary information for a merchant's online store orders.
134
+ # ListOrders
133
135
  # Provides summary information for a merchant's online store orders.
134
136
  # @param location_id The ID of the location to list online store orders for.
135
137
  # @param [Hash] opts the optional parameters
@@ -142,7 +144,7 @@ module SquareConnect
142
144
  return data
143
145
  end
144
146
 
145
- # Provides summary information for a merchant&#39;s online store orders.
147
+ # ListOrders
146
148
  # Provides summary information for a merchant&#39;s online store orders.
147
149
  # @param location_id The ID of the location to list online store orders for.
148
150
  # @param [Hash] opts the optional parameters
@@ -156,13 +158,9 @@ module SquareConnect
156
158
  end
157
159
  # verify the required parameter 'location_id' is set
158
160
  fail ArgumentError, "Missing the required parameter 'location_id' when calling V1TransactionsApi.list_orders" if location_id.nil?
159
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
160
- fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
161
- end
162
- if !opts[:'limit'].nil? && opts[:'limit'] > 200
163
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling V1TransactionsApi.list_orders, must be smaller than or equal to 200.'
161
+ if opts[:'order'] && !['DESC', 'ASC'].include?(opts[:'order'])
162
+ fail ArgumentError, 'invalid value for "order", must be one of DESC, ASC'
164
163
  end
165
-
166
164
  # resource path
167
165
  local_var_path = "/v1/{location_id}/orders".sub('{format}','json').sub('{' + 'location_id' + '}', location_id.to_s)
168
166
 
@@ -179,6 +177,7 @@ module SquareConnect
179
177
  # HTTP header 'Content-Type'
180
178
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
181
179
 
180
+ header_params['Square-Version'] = "2019-03-13"
182
181
 
183
182
  # form parameters
184
183
  form_params = {}
@@ -199,8 +198,8 @@ module SquareConnect
199
198
  return data, status_code, headers
200
199
  end
201
200
 
202
- # 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.
203
- # 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.
201
+ # ListPayments
202
+ # Provides summary information for all payments taken for a given Square account during a date range. Date ranges cannot exceed 1 year in length. See Date ranges for details of inclusive and exclusive dates. *Note**: Details for payments processed with Square Point of Sale while in offline mode may not be transmitted to Square for up to 72 hours. Offline payments have a `created_at` value that reflects the time the payment was originally processed, not the time it was subsequently transmitted to Square. Consequently, the ListPayments endpoint might list an offline payment chronologically between online payments that were seen in a previous request.
204
203
  # @param location_id The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business&#39;s locations.
205
204
  # @param [Hash] opts the optional parameters
206
205
  # @option opts [String] :order The order in which payments are listed in the response.
@@ -215,8 +214,8 @@ module SquareConnect
215
214
  return data
216
215
  end
217
216
 
218
- # Provides summary information for all payments taken by a merchant or any of the merchant&#39;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.
219
- # Provides summary information for all payments taken by a merchant or any of the merchant&#39;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.
217
+ # ListPayments
218
+ # Provides summary information for all payments taken for a given Square account during a date range. Date ranges cannot exceed 1 year in length. See Date ranges for details of inclusive and exclusive dates. *Note**: Details for payments processed with Square Point of Sale while in offline mode may not be transmitted to Square for up to 72 hours. Offline payments have a &#x60;created_at&#x60; value that reflects the time the payment was originally processed, not the time it was subsequently transmitted to Square. Consequently, the ListPayments endpoint might list an offline payment chronologically between online payments that were seen in a previous request.
220
219
  # @param location_id The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business&#39;s locations.
221
220
  # @param [Hash] opts the optional parameters
222
221
  # @option opts [String] :order The order in which payments are listed in the response.
@@ -232,13 +231,9 @@ module SquareConnect
232
231
  end
233
232
  # verify the required parameter 'location_id' is set
234
233
  fail ArgumentError, "Missing the required parameter 'location_id' when calling V1TransactionsApi.list_payments" if location_id.nil?
235
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
236
- fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
234
+ if opts[:'order'] && !['DESC', 'ASC'].include?(opts[:'order'])
235
+ fail ArgumentError, 'invalid value for "order", must be one of DESC, ASC'
237
236
  end
238
- if !opts[:'limit'].nil? && opts[:'limit'] > 200
239
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling V1TransactionsApi.list_payments, must be smaller than or equal to 200.'
240
- end
241
-
242
237
  # resource path
243
238
  local_var_path = "/v1/{location_id}/payments".sub('{format}','json').sub('{' + 'location_id' + '}', location_id.to_s)
244
239
 
@@ -258,6 +253,7 @@ module SquareConnect
258
253
  # HTTP header 'Content-Type'
259
254
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
260
255
 
256
+ header_params['Square-Version'] = "2019-03-13"
261
257
 
262
258
  # form parameters
263
259
  form_params = {}
@@ -278,7 +274,7 @@ module SquareConnect
278
274
  return data, status_code, headers
279
275
  end
280
276
 
281
- # 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
+ # ListRefunds
282
278
  # 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.
283
279
  # @param location_id The ID of the location to list refunds for.
284
280
  # @param [Hash] opts the optional parameters
@@ -293,7 +289,7 @@ module SquareConnect
293
289
  return data
294
290
  end
295
291
 
296
- # Provides the details for all refunds initiated by a merchant or any of the merchant&#39;s mobile staff during a date range. Date ranges cannot exceed one year in length.
292
+ # ListRefunds
297
293
  # Provides the details for all refunds initiated by a merchant or any of the merchant&#39;s mobile staff during a date range. Date ranges cannot exceed one year in length.
298
294
  # @param location_id The ID of the location to list refunds for.
299
295
  # @param [Hash] opts the optional parameters
@@ -309,13 +305,9 @@ module SquareConnect
309
305
  end
310
306
  # verify the required parameter 'location_id' is set
311
307
  fail ArgumentError, "Missing the required parameter 'location_id' when calling V1TransactionsApi.list_refunds" if location_id.nil?
312
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
313
- fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
314
- end
315
- if !opts[:'limit'].nil? && opts[:'limit'] > 200
316
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling V1TransactionsApi.list_refunds, must be smaller than or equal to 200.'
308
+ if opts[:'order'] && !['DESC', 'ASC'].include?(opts[:'order'])
309
+ fail ArgumentError, 'invalid value for "order", must be one of DESC, ASC'
317
310
  end
318
-
319
311
  # resource path
320
312
  local_var_path = "/v1/{location_id}/refunds".sub('{format}','json').sub('{' + 'location_id' + '}', location_id.to_s)
321
313
 
@@ -334,6 +326,7 @@ module SquareConnect
334
326
  # HTTP header 'Content-Type'
335
327
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
336
328
 
329
+ header_params['Square-Version'] = "2019-03-13"
337
330
 
338
331
  # form parameters
339
332
  form_params = {}
@@ -354,8 +347,8 @@ module SquareConnect
354
347
  return data, status_code, headers
355
348
  end
356
349
 
357
- # 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.
358
- # 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.
350
+ # ListSettlements
351
+ # Provides summary information for all deposits and withdrawals initiated by Square to a linked bank account during a date range. Date ranges cannot exceed one year in length. *Note**: the ListSettlements endpoint does not provide entry information.
359
352
  # @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.
360
353
  # @param [Hash] opts the optional parameters
361
354
  # @option opts [String] :order TThe order in which payments are listed in the response.
@@ -370,8 +363,8 @@ module SquareConnect
370
363
  return data
371
364
  end
372
365
 
373
- # 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.
374
- # 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.
366
+ # ListSettlements
367
+ # Provides summary information for all deposits and withdrawals initiated by Square to a linked bank account during a date range. Date ranges cannot exceed one year in length. *Note**: the ListSettlements endpoint does not provide entry information.
375
368
  # @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.
376
369
  # @param [Hash] opts the optional parameters
377
370
  # @option opts [String] :order TThe order in which payments are listed in the response.
@@ -387,13 +380,9 @@ module SquareConnect
387
380
  end
388
381
  # verify the required parameter 'location_id' is set
389
382
  fail ArgumentError, "Missing the required parameter 'location_id' when calling V1TransactionsApi.list_settlements" if location_id.nil?
390
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
391
- fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
392
- end
393
- if !opts[:'limit'].nil? && opts[:'limit'] > 200
394
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling V1TransactionsApi.list_settlements, must be smaller than or equal to 200.'
383
+ if opts[:'order'] && !['DESC', 'ASC'].include?(opts[:'order'])
384
+ fail ArgumentError, 'invalid value for "order", must be one of DESC, ASC'
395
385
  end
396
-
397
386
  if opts[:'status'] && !['SENT', 'FAILED'].include?(opts[:'status'])
398
387
  fail ArgumentError, 'invalid value for "status", must be one of SENT, FAILED'
399
388
  end
@@ -416,6 +405,7 @@ module SquareConnect
416
405
  # HTTP header 'Content-Type'
417
406
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
418
407
 
408
+ header_params['Square-Version'] = "2019-03-13"
419
409
 
420
410
  # form parameters
421
411
  form_params = {}
@@ -436,7 +426,7 @@ module SquareConnect
436
426
  return data, status_code, headers
437
427
  end
438
428
 
439
- # 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.
429
+ # RetrieveBankAccount
440
430
  # 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.
441
431
  # @param location_id The ID of the bank account&#39;s associated location.
442
432
  # @param bank_account_id The bank account&#39;s Square-issued ID. You obtain this value from Settlement objects returned.
@@ -447,7 +437,7 @@ module SquareConnect
447
437
  return data
448
438
  end
449
439
 
450
- # Provides non-confidential details for a merchant&#39;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.
440
+ # RetrieveBankAccount
451
441
  # Provides non-confidential details for a merchant&#39;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.
452
442
  # @param location_id The ID of the bank account&#39;s associated location.
453
443
  # @param bank_account_id The bank account&#39;s Square-issued ID. You obtain this value from Settlement objects returned.
@@ -474,6 +464,7 @@ module SquareConnect
474
464
  # HTTP header 'Content-Type'
475
465
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
476
466
 
467
+ header_params['Square-Version'] = "2019-03-13"
477
468
 
478
469
  # form parameters
479
470
  form_params = {}
@@ -494,7 +485,7 @@ module SquareConnect
494
485
  return data, status_code, headers
495
486
  end
496
487
 
497
- # Provides comprehensive information for a single online store order, including the order's history.
488
+ # RetrieveOrder
498
489
  # Provides comprehensive information for a single online store order, including the order's history.
499
490
  # @param location_id The ID of the order&#39;s associated location.
500
491
  # @param order_id The order&#39;s Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint
@@ -505,7 +496,7 @@ module SquareConnect
505
496
  return data
506
497
  end
507
498
 
508
- # Provides comprehensive information for a single online store order, including the order&#39;s history.
499
+ # RetrieveOrder
509
500
  # Provides comprehensive information for a single online store order, including the order&#39;s history.
510
501
  # @param location_id The ID of the order&#39;s associated location.
511
502
  # @param order_id The order&#39;s Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint
@@ -532,6 +523,7 @@ module SquareConnect
532
523
  # HTTP header 'Content-Type'
533
524
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
534
525
 
526
+ header_params['Square-Version'] = "2019-03-13"
535
527
 
536
528
  # form parameters
537
529
  form_params = {}
@@ -552,7 +544,7 @@ module SquareConnect
552
544
  return data, status_code, headers
553
545
  end
554
546
 
555
- # Provides comprehensive information for a single payment.
547
+ # RetrievePayment
556
548
  # Provides comprehensive information for a single payment.
557
549
  # @param location_id The ID of the payment&#39;s associated location.
558
550
  # @param payment_id The Square-issued payment ID. payment_id comes from Payment objects returned by the List Payments endpoint, Settlement objects returned by the List Settlements endpoint, or Refund objects returned by the List Refunds endpoint.
@@ -563,7 +555,7 @@ module SquareConnect
563
555
  return data
564
556
  end
565
557
 
566
- # Provides comprehensive information for a single payment.
558
+ # RetrievePayment
567
559
  # Provides comprehensive information for a single payment.
568
560
  # @param location_id The ID of the payment&#39;s associated location.
569
561
  # @param payment_id The Square-issued payment ID. payment_id comes from Payment objects returned by the List Payments endpoint, Settlement objects returned by the List Settlements endpoint, or Refund objects returned by the List Refunds endpoint.
@@ -590,6 +582,7 @@ module SquareConnect
590
582
  # HTTP header 'Content-Type'
591
583
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
592
584
 
585
+ header_params['Square-Version'] = "2019-03-13"
593
586
 
594
587
  # form parameters
595
588
  form_params = {}
@@ -610,8 +603,8 @@ module SquareConnect
610
603
  return data, status_code, headers
611
604
  end
612
605
 
613
- # Provides comprehensive information for a single settlement, including the entries that contribute to the settlement's total.
614
- # Provides comprehensive information for a single settlement, including the entries that contribute to the settlement's total.
606
+ # RetrieveSettlement
607
+ # Provides comprehensive information for a single settlement. The returned `Settlement` objects include an `entries` field that lists the transactions that contribute to the settlement total. Most settlement entries correspond to a payment payout, but settlement entries are also generated for less common events, like refunds, manual adjustments, or chargeback holds. Square initiates its regular deposits as indicated in the [Deposit Options with Square](https://squareup.com/help/us/en/article/3807) help article. Details for a regular deposit are usually not available from Connect API endpoints before 10 p.m. PST the same day. Square does not know when an initiated settlement **completes**, only whether it has failed. A completed settlement is typically reflected in a bank account within 3 business days, but in exceptional cases it may take longer.
615
608
  # @param location_id The ID of the settlements&#39;s associated location.
616
609
  # @param settlement_id The settlement&#39;s Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint.
617
610
  # @param [Hash] opts the optional parameters
@@ -621,8 +614,8 @@ module SquareConnect
621
614
  return data
622
615
  end
623
616
 
624
- # Provides comprehensive information for a single settlement, including the entries that contribute to the settlement&#39;s total.
625
- # Provides comprehensive information for a single settlement, including the entries that contribute to the settlement&#39;s total.
617
+ # RetrieveSettlement
618
+ # Provides comprehensive information for a single settlement. The returned &#x60;Settlement&#x60; objects include an &#x60;entries&#x60; field that lists the transactions that contribute to the settlement total. Most settlement entries correspond to a payment payout, but settlement entries are also generated for less common events, like refunds, manual adjustments, or chargeback holds. Square initiates its regular deposits as indicated in the [Deposit Options with Square](https://squareup.com/help/us/en/article/3807) help article. Details for a regular deposit are usually not available from Connect API endpoints before 10 p.m. PST the same day. Square does not know when an initiated settlement **completes**, only whether it has failed. A completed settlement is typically reflected in a bank account within 3 business days, but in exceptional cases it may take longer.
626
619
  # @param location_id The ID of the settlements&#39;s associated location.
627
620
  # @param settlement_id The settlement&#39;s Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint.
628
621
  # @param [Hash] opts the optional parameters
@@ -648,6 +641,7 @@ module SquareConnect
648
641
  # HTTP header 'Content-Type'
649
642
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
650
643
 
644
+ header_params['Square-Version'] = "2019-03-13"
651
645
 
652
646
  # form parameters
653
647
  form_params = {}
@@ -668,7 +662,7 @@ module SquareConnect
668
662
  return data, status_code, headers
669
663
  end
670
664
 
671
- # Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
665
+ # UpdateOrder
672
666
  # Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
673
667
  # @param location_id The ID of the order&#39;s associated location.
674
668
  # @param order_id The order&#39;s Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint
@@ -680,7 +674,7 @@ module SquareConnect
680
674
  return data
681
675
  end
682
676
 
683
- # Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
677
+ # UpdateOrder
684
678
  # Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
685
679
  # @param location_id The ID of the order&#39;s associated location.
686
680
  # @param order_id The order&#39;s Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint
@@ -710,6 +704,7 @@ module SquareConnect
710
704
  # HTTP header 'Content-Type'
711
705
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
712
706
 
707
+ header_params['Square-Version'] = "2019-03-13"
713
708
 
714
709
  # form parameters
715
710
  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.20190213.0"
33
+ @user_agent = "Square-Connect-Ruby/2.20190313.0"
34
34
 
35
35
  @default_headers = {
36
36
  'Content-Type' => "application/json",
@@ -30,7 +30,7 @@ module SquareConnect
30
30
  # Provided as an RFC 3339 timestamp. Returns results whose `created_at` or `calculated_at` value is strictly before the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`).
31
31
  attr_accessor :updated_before
32
32
 
33
- # A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Paginating results](#paginatingresults) for more information.
33
+ # A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](/basics/api101/pagination) for more information.
34
34
  attr_accessor :cursor
35
35
 
36
36
  class EnumAttributeValidator
@@ -18,7 +18,7 @@ module SquareConnect
18
18
  # The current calculated inventory changes for the requested objects and locations.
19
19
  attr_accessor :changes
20
20
 
21
- # The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Paginating results](#paginatingresults) for more information.
21
+ # The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](/basics/api101/pagination) for more information.
22
22
  attr_accessor :cursor
23
23
 
24
24
 
@@ -21,7 +21,7 @@ module SquareConnect
21
21
  # Provided as an RFC 3339 timestamp. Returns results whose `calculated_at` value is after the given time. Default: UNIX epoch (`1970-01-01T00:00:00Z`).
22
22
  attr_accessor :updated_after
23
23
 
24
- # A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Paginating results](#paginatingresults) for more information.
24
+ # A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](/basics/api101/pagination) for more information.
25
25
  attr_accessor :cursor
26
26
 
27
27
 
@@ -18,7 +18,7 @@ module SquareConnect
18
18
  # The current calculated inventory counts for the requested objects and locations.
19
19
  attr_accessor :counts
20
20
 
21
- # The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Paginating results](#paginatingresults) for more information.
21
+ # The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](/basics/api101/pagination) for more information.
22
22
  attr_accessor :cursor
23
23
 
24
24