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
@@ -47,7 +47,7 @@ module SquareConnect
47
47
  # HTTP header 'Content-Type'
48
48
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
49
49
 
50
- header_params['Square-Version'] = "2019-02-13"
50
+ header_params['Square-Version'] = "2019-03-13"
51
51
 
52
52
  # form parameters
53
53
  form_params = {}
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2019-02-13"
54
+ header_params['Square-Version'] = "2019-03-13"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -18,7 +18,7 @@ module SquareConnect
18
18
  end
19
19
 
20
20
  # ObtainToken
21
- # Exchanges the authorization code for an access token. After a merchant authorizes your application with the permissions form, an authorization code is sent to the application's redirect URL (See [Implementing OAuth](https://docs.connect.squareup.com/api/oauth#implementingoauth) for information about how to set up the redirect URL).
21
+ # Returns an OAuth access token. The endpoint supports distinct methods of obtaining OAuth access tokens. Applications specify a method by adding the `grant_type` parameter in the request and also provide relevant information. For more information, see [OAuth access token management](/authz/oauth/how-it-works#oauth-access-token-management). __Note:__ Regardless of the method application specified, the endpoint always returns two items; an OAuth access token and a refresh token in the response. By default, the OAuth API lets up to 500 Square accounts authorize your application. Please [contact support](https://squareup.com/help/us/en/contact?prefill=developer_api) if you are developing an application for a larger audience. __OAuth tokens should only live on secure servers. Application clients should never interact directly with OAuth tokens__.
22
22
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
23
23
  # @param [Hash] opts the optional parameters
24
24
  # @return [ObtainTokenResponse]
@@ -28,7 +28,7 @@ module SquareConnect
28
28
  end
29
29
 
30
30
  # ObtainToken
31
- # Exchanges the authorization code for an access token. After a merchant authorizes your application with the permissions form, an authorization code is sent to the application's redirect URL (See [Implementing OAuth](https://docs.connect.squareup.com/api/oauth#implementingoauth) for information about how to set up the redirect URL).
31
+ # Returns an OAuth access token. The endpoint supports distinct methods of obtaining OAuth access tokens. Applications specify a method by adding the `grant_type` parameter in the request and also provide relevant information. For more information, see [OAuth access token management](/authz/oauth/how-it-works#oauth-access-token-management). __Note:__ Regardless of the method application specified, the endpoint always returns two items; an OAuth access token and a refresh token in the response. By default, the OAuth API lets up to 500 Square accounts authorize your application. Please [contact support](https://squareup.com/help/us/en/contact?prefill=developer_api) if you are developing an application for a larger audience. __OAuth tokens should only live on secure servers. Application clients should never interact directly with OAuth tokens__.
32
32
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(ObtainTokenResponse, Fixnum, Hash)>] ObtainTokenResponse data, response status code and response headers
@@ -51,7 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
- header_params['Square-Version'] = "2019-02-13"
54
+ header_params['Square-Version'] = "2019-03-13"
55
55
 
56
56
  # form parameters
57
57
  form_params = {}
@@ -73,7 +73,7 @@ module SquareConnect
73
73
  end
74
74
 
75
75
  # RenewToken
76
- # Renews an OAuth access token before it expires. OAuth access tokens besides your application's personal access token expire after __30 days__. You can also renew expired tokens within __15 days__ of their expiration. You cannot renew an access token that has been expired for more than 15 days. Instead, the associated merchant must complete the [OAuth flow](https://docs.connect.squareup.com/api/oauth#implementingoauth) from the beginning. __Important:__ The `Authorization` header you provide to this endpoint must have the following format: ``` Authorization: Client APPLICATION_SECRET ``` Replace `APPLICATION_SECRET` with your application's secret, available from the [application dashboard](https://connect.squareup.com/apps).
76
+ # `RenewToken` is deprecated. For information about refreshing OAuth access tokens, see [Renew OAuth Token](/authz/oauth/cookbook/oauth-renew). Renews an OAuth access token before it expires. OAuth access tokens besides your application's personal access token expire after __30 days__. You can also renew expired tokens within __15 days__ of their expiration. You cannot renew an access token that has been expired for more than 15 days. Instead, the associated user must re-complete the OAuth flow from the beginning. __Important:__ The `Authorization` header for this endpoint must have the following format: ``` Authorization: Client APPLICATION_SECRET ``` Replace `APPLICATION_SECRET` with the application secret on the Credentials page in the [application dashboard](https://connect.squareup.com/apps).
77
77
  # @param client_id Your application&#39;s ID, available from the [application dashboard](https://connect.squareup.com/apps).
78
78
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
79
79
  # @param [Hash] opts the optional parameters
@@ -84,7 +84,7 @@ module SquareConnect
84
84
  end
85
85
 
86
86
  # RenewToken
87
- # Renews an OAuth access token before it expires. OAuth access tokens besides your application&#39;s personal access token expire after __30 days__. You can also renew expired tokens within __15 days__ of their expiration. You cannot renew an access token that has been expired for more than 15 days. Instead, the associated merchant must complete the [OAuth flow](https://docs.connect.squareup.com/api/oauth#implementingoauth) from the beginning. __Important:__ The &#x60;Authorization&#x60; header you provide to this endpoint must have the following format: &#x60;&#x60;&#x60; Authorization: Client APPLICATION_SECRET &#x60;&#x60;&#x60; Replace &#x60;APPLICATION_SECRET&#x60; with your application&#39;s secret, available from the [application dashboard](https://connect.squareup.com/apps).
87
+ # &#x60;RenewToken&#x60; is deprecated. For information about refreshing OAuth access tokens, see [Renew OAuth Token](/authz/oauth/cookbook/oauth-renew). Renews an OAuth access token before it expires. OAuth access tokens besides your application&#39;s personal access token expire after __30 days__. You can also renew expired tokens within __15 days__ of their expiration. You cannot renew an access token that has been expired for more than 15 days. Instead, the associated user must re-complete the OAuth flow from the beginning. __Important:__ The &#x60;Authorization&#x60; header for this endpoint must have the following format: &#x60;&#x60;&#x60; Authorization: Client APPLICATION_SECRET &#x60;&#x60;&#x60; Replace &#x60;APPLICATION_SECRET&#x60; with the application secret on the Credentials page in the [application dashboard](https://connect.squareup.com/apps).
88
88
  # @param client_id Your application&#39;s ID, available from the [application dashboard](https://connect.squareup.com/apps).
89
89
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
90
90
  # @param [Hash] opts the optional parameters
@@ -110,7 +110,7 @@ module SquareConnect
110
110
  # HTTP header 'Content-Type'
111
111
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
112
112
 
113
- header_params['Square-Version'] = "2019-02-13"
113
+ header_params['Square-Version'] = "2019-03-13"
114
114
 
115
115
  # form parameters
116
116
  form_params = {}
@@ -132,7 +132,7 @@ module SquareConnect
132
132
  end
133
133
 
134
134
  # RevokeToken
135
- # Revokes an access token generated with the OAuth flow. If a merchant has more than one access token for your application, this endpoint revokes all of them, regardless of which token you specify. If you revoke a merchant's access token, all of the merchant's active subscriptions associated with your application are canceled immediately. __Important:__ The `Authorization` header you provide to this endpoint must have the following format: ``` Authorization: Client APPLICATION_SECRET ``` Replace `APPLICATION_SECRET` with your application's secret, available from the [application dashboard](https://connect.squareup.com/apps).
135
+ # Revokes an access token generated with the OAuth flow. If an account has more than one OAuth access token for your application, this endpoint revokes all of them, regardless of which token you specify. When an OAuth access token is revoked, all of the active subscriptions associated with that OAuth token are canceled immediately. __Important:__ The `Authorization` header for this endpoint must have the following format: ``` Authorization: Client APPLICATION_SECRET ``` Replace `APPLICATION_SECRET` with the application secret on the Credentials page in the [application dashboard](https://connect.squareup.com/apps).
136
136
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
137
137
  # @param [Hash] opts the optional parameters
138
138
  # @return [RevokeTokenResponse]
@@ -142,7 +142,7 @@ module SquareConnect
142
142
  end
143
143
 
144
144
  # RevokeToken
145
- # Revokes an access token generated with the OAuth flow. If a merchant has more than one access token for your application, this endpoint revokes all of them, regardless of which token you specify. If you revoke a merchant&#39;s access token, all of the merchant&#39;s active subscriptions associated with your application are canceled immediately. __Important:__ The &#x60;Authorization&#x60; header you provide to this endpoint must have the following format: &#x60;&#x60;&#x60; Authorization: Client APPLICATION_SECRET &#x60;&#x60;&#x60; Replace &#x60;APPLICATION_SECRET&#x60; with your application&#39;s secret, available from the [application dashboard](https://connect.squareup.com/apps).
145
+ # Revokes an access token generated with the OAuth flow. If an account has more than one OAuth access token for your application, this endpoint revokes all of them, regardless of which token you specify. When an OAuth access token is revoked, all of the active subscriptions associated with that OAuth token are canceled immediately. __Important:__ The &#x60;Authorization&#x60; header for this endpoint must have the following format: &#x60;&#x60;&#x60; Authorization: Client APPLICATION_SECRET &#x60;&#x60;&#x60; Replace &#x60;APPLICATION_SECRET&#x60; with the application secret on the Credentials page in the [application dashboard](https://connect.squareup.com/apps).
146
146
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
147
147
  # @param [Hash] opts the optional parameters
148
148
  # @return [Array<(RevokeTokenResponse, Fixnum, Hash)>] RevokeTokenResponse data, response status code and response headers
@@ -165,7 +165,7 @@ module SquareConnect
165
165
  # HTTP header 'Content-Type'
166
166
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
167
167
 
168
- header_params['Square-Version'] = "2019-02-13"
168
+ header_params['Square-Version'] = "2019-03-13"
169
169
 
170
170
  # form parameters
171
171
  form_params = {}
@@ -55,7 +55,7 @@ module SquareConnect
55
55
  # HTTP header 'Content-Type'
56
56
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
57
 
58
- header_params['Square-Version'] = "2019-02-13"
58
+ header_params['Square-Version'] = "2019-03-13"
59
59
 
60
60
  # form parameters
61
61
  form_params = {}
@@ -114,7 +114,7 @@ module SquareConnect
114
114
  # HTTP header 'Content-Type'
115
115
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
116
116
 
117
- header_params['Square-Version'] = "2019-02-13"
117
+ header_params['Square-Version'] = "2019-03-13"
118
118
 
119
119
  # form parameters
120
120
  form_params = {}
@@ -24,7 +24,7 @@ module SquareConnect
24
24
  # @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
25
25
  # @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
26
26
  # @option opts [String] :sort_order The order in which results are listed in the response (&#x60;ASC&#x60; for oldest first, &#x60;DESC&#x60; for newest first). Default value: &#x60;DESC&#x60;
27
- # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
27
+ # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
28
28
  # @return [ListAdditionalRecipientReceivableRefundsResponse]
29
29
  def list_additional_recipient_receivable_refunds(location_id, opts = {})
30
30
  data, _status_code, _headers = list_additional_recipient_receivable_refunds_with_http_info(location_id, opts)
@@ -38,7 +38,7 @@ module SquareConnect
38
38
  # @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
39
39
  # @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
40
40
  # @option opts [String] :sort_order The order in which results are listed in the response (&#x60;ASC&#x60; for oldest first, &#x60;DESC&#x60; for newest first). Default value: &#x60;DESC&#x60;
41
- # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
41
+ # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
42
42
  # @return [Array<(ListAdditionalRecipientReceivableRefundsResponse, Fixnum, Hash)>] ListAdditionalRecipientReceivableRefundsResponse data, response status code and response headers
43
43
  def list_additional_recipient_receivable_refunds_with_http_info(location_id, opts = {})
44
44
  if @api_client.config.debugging
@@ -66,7 +66,7 @@ module SquareConnect
66
66
  # HTTP header 'Content-Type'
67
67
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
68
68
 
69
- header_params['Square-Version'] = "2019-02-13"
69
+ header_params['Square-Version'] = "2019-03-13"
70
70
 
71
71
  # form parameters
72
72
  form_params = {}
@@ -94,7 +94,7 @@ module SquareConnect
94
94
  # @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
95
95
  # @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
96
96
  # @option opts [String] :sort_order The order in which results are listed in the response (&#x60;ASC&#x60; for oldest first, &#x60;DESC&#x60; for newest first). Default value: &#x60;DESC&#x60;
97
- # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
97
+ # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
98
98
  # @return [ListAdditionalRecipientReceivablesResponse]
99
99
  def list_additional_recipient_receivables(location_id, opts = {})
100
100
  data, _status_code, _headers = list_additional_recipient_receivables_with_http_info(location_id, opts)
@@ -108,7 +108,7 @@ module SquareConnect
108
108
  # @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
109
109
  # @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
110
110
  # @option opts [String] :sort_order The order in which results are listed in the response (&#x60;ASC&#x60; for oldest first, &#x60;DESC&#x60; for newest first). Default value: &#x60;DESC&#x60;
111
- # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
111
+ # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
112
112
  # @return [Array<(ListAdditionalRecipientReceivablesResponse, Fixnum, Hash)>] ListAdditionalRecipientReceivablesResponse data, response status code and response headers
113
113
  def list_additional_recipient_receivables_with_http_info(location_id, opts = {})
114
114
  if @api_client.config.debugging
@@ -136,7 +136,7 @@ module SquareConnect
136
136
  # HTTP header 'Content-Type'
137
137
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
138
138
 
139
- header_params['Square-Version'] = "2019-02-13"
139
+ header_params['Square-Version'] = "2019-03-13"
140
140
 
141
141
  # form parameters
142
142
  form_params = {}
@@ -55,7 +55,7 @@ module SquareConnect
55
55
  # HTTP header 'Content-Type'
56
56
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
57
 
58
- header_params['Square-Version'] = "2019-02-13"
58
+ header_params['Square-Version'] = "2019-03-13"
59
59
 
60
60
  # form parameters
61
61
  form_params = {}
@@ -114,7 +114,7 @@ module SquareConnect
114
114
  # HTTP header 'Content-Type'
115
115
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
116
116
 
117
- header_params['Square-Version'] = "2019-02-13"
117
+ header_params['Square-Version'] = "2019-03-13"
118
118
 
119
119
  # form parameters
120
120
  form_params = {}
@@ -177,7 +177,7 @@ module SquareConnect
177
177
  # HTTP header 'Content-Type'
178
178
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
179
179
 
180
- header_params['Square-Version'] = "2019-02-13"
180
+ header_params['Square-Version'] = "2019-03-13"
181
181
 
182
182
  # form parameters
183
183
  form_params = {}
@@ -205,7 +205,7 @@ module SquareConnect
205
205
  # @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
206
206
  # @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
207
207
  # @option opts [String] :sort_order The order in which results are listed in the response (&#x60;ASC&#x60; for oldest first, &#x60;DESC&#x60; for newest first). Default value: &#x60;DESC&#x60;
208
- # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
208
+ # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
209
209
  # @return [ListRefundsResponse]
210
210
  def list_refunds(location_id, opts = {})
211
211
  data, _status_code, _headers = list_refunds_with_http_info(location_id, opts)
@@ -219,7 +219,7 @@ module SquareConnect
219
219
  # @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
220
220
  # @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
221
221
  # @option opts [String] :sort_order The order in which results are listed in the response (&#x60;ASC&#x60; for oldest first, &#x60;DESC&#x60; for newest first). Default value: &#x60;DESC&#x60;
222
- # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
222
+ # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
223
223
  # @return [Array<(ListRefundsResponse, Fixnum, Hash)>] ListRefundsResponse data, response status code and response headers
224
224
  def list_refunds_with_http_info(location_id, opts = {})
225
225
  if @api_client.config.debugging
@@ -247,7 +247,7 @@ module SquareConnect
247
247
  # HTTP header 'Content-Type'
248
248
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
249
249
 
250
- header_params['Square-Version'] = "2019-02-13"
250
+ header_params['Square-Version'] = "2019-03-13"
251
251
 
252
252
  # form parameters
253
253
  form_params = {}
@@ -275,7 +275,7 @@ module SquareConnect
275
275
  # @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
276
276
  # @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
277
277
  # @option opts [String] :sort_order The order in which results are listed in the response (&#x60;ASC&#x60; for oldest first, &#x60;DESC&#x60; for newest first). Default value: &#x60;DESC&#x60;
278
- # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
278
+ # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
279
279
  # @return [ListTransactionsResponse]
280
280
  def list_transactions(location_id, opts = {})
281
281
  data, _status_code, _headers = list_transactions_with_http_info(location_id, opts)
@@ -289,7 +289,7 @@ module SquareConnect
289
289
  # @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
290
290
  # @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
291
291
  # @option opts [String] :sort_order The order in which results are listed in the response (&#x60;ASC&#x60; for oldest first, &#x60;DESC&#x60; for newest first). Default value: &#x60;DESC&#x60;
292
- # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
292
+ # @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
293
293
  # @return [Array<(ListTransactionsResponse, Fixnum, Hash)>] ListTransactionsResponse data, response status code and response headers
294
294
  def list_transactions_with_http_info(location_id, opts = {})
295
295
  if @api_client.config.debugging
@@ -317,7 +317,7 @@ module SquareConnect
317
317
  # HTTP header 'Content-Type'
318
318
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
319
319
 
320
- header_params['Square-Version'] = "2019-02-13"
320
+ header_params['Square-Version'] = "2019-03-13"
321
321
 
322
322
  # form parameters
323
323
  form_params = {}
@@ -376,7 +376,7 @@ module SquareConnect
376
376
  # HTTP header 'Content-Type'
377
377
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
378
378
 
379
- header_params['Square-Version'] = "2019-02-13"
379
+ header_params['Square-Version'] = "2019-03-13"
380
380
 
381
381
  # form parameters
382
382
  form_params = {}
@@ -435,7 +435,7 @@ module SquareConnect
435
435
  # HTTP header 'Content-Type'
436
436
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
437
437
 
438
- header_params['Square-Version'] = "2019-02-13"
438
+ header_params['Square-Version'] = "2019-03-13"
439
439
 
440
440
  # form parameters
441
441
  form_params = {}
@@ -17,8 +17,8 @@ module SquareConnect
17
17
  @api_client = api_client
18
18
  end
19
19
 
20
- # Creates an employee for a business.
21
- # Creates an employee for a business.
20
+ # CreateEmployee
21
+ # Use the CreateEmployee endpoint to add an employee to a Square account. Employees created with the Connect API have an initial status of `INACTIVE`. Inactive employees cannot sign in to Square Point of Sale until they are activated from the Square Dashboard. Employee status cannot be changed with the Connect API. <aside class=\"important\"> Employee entities cannot be deleted. To disable employee profiles, set the employee's status to <code>INACTIVE</code> </aside>
22
22
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
23
23
  # @param [Hash] opts the optional parameters
24
24
  # @return [V1Employee]
@@ -27,8 +27,8 @@ module SquareConnect
27
27
  return data
28
28
  end
29
29
 
30
- # Creates an employee for a business.
31
- # Creates an employee for a business.
30
+ # CreateEmployee
31
+ # Use the CreateEmployee endpoint to add an employee to a Square account. Employees created with the Connect API have an initial status of &#x60;INACTIVE&#x60;. Inactive employees cannot sign in to Square Point of Sale until they are activated from the Square Dashboard. Employee status cannot be changed with the Connect API. &lt;aside class&#x3D;\&quot;important\&quot;&gt; Employee entities cannot be deleted. To disable employee profiles, set the employee&#39;s status to &lt;code&gt;INACTIVE&lt;/code&gt; &lt;/aside&gt;
32
32
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(V1Employee, Fixnum, Hash)>] V1Employee data, response status code and response headers
@@ -51,6 +51,7 @@ module SquareConnect
51
51
  # HTTP header 'Content-Type'
52
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
53
 
54
+ header_params['Square-Version'] = "2019-03-13"
54
55
 
55
56
  # form parameters
56
57
  form_params = {}
@@ -71,8 +72,8 @@ module SquareConnect
71
72
  return data, status_code, headers
72
73
  end
73
74
 
74
- # Creates an employee role you can then assign to employees.
75
- # Creates an employee role you can then assign to employees.
75
+ # CreateEmployeeRole
76
+ # Creates an employee role you can then assign to employees. Square accounts can include any number of roles that can be assigned to employees. These roles define the actions and permissions granted to an employee with that role. For example, an employee with a \"Shift Manager\" role might be able to issue refunds in Square Point of Sale, whereas an employee with a \"Clerk\" role might not. Roles are assigned with the [V1UpdateEmployee](#endpoint-v1updateemployee) endpoint. An employee can have only one role at a time. If an employee has no role, they have none of the permissions associated with roles. All employees can accept payments with Square Point of Sale.
76
77
  # @param employee_role An EmployeeRole object with a name and permissions, and an optional owner flag.
77
78
  # @param [Hash] opts the optional parameters
78
79
  # @return [V1EmployeeRole]
@@ -81,8 +82,8 @@ module SquareConnect
81
82
  return data
82
83
  end
83
84
 
84
- # Creates an employee role you can then assign to employees.
85
- # Creates an employee role you can then assign to employees.
85
+ # CreateEmployeeRole
86
+ # Creates an employee role you can then assign to employees. Square accounts can include any number of roles that can be assigned to employees. These roles define the actions and permissions granted to an employee with that role. For example, an employee with a \&quot;Shift Manager\&quot; role might be able to issue refunds in Square Point of Sale, whereas an employee with a \&quot;Clerk\&quot; role might not. Roles are assigned with the [V1UpdateEmployee](#endpoint-v1updateemployee) endpoint. An employee can have only one role at a time. If an employee has no role, they have none of the permissions associated with roles. All employees can accept payments with Square Point of Sale.
86
87
  # @param employee_role An EmployeeRole object with a name and permissions, and an optional owner flag.
87
88
  # @param [Hash] opts the optional parameters
88
89
  # @return [Array<(V1EmployeeRole, Fixnum, Hash)>] V1EmployeeRole data, response status code and response headers
@@ -105,6 +106,7 @@ module SquareConnect
105
106
  # HTTP header 'Content-Type'
106
107
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
107
108
 
109
+ header_params['Square-Version'] = "2019-03-13"
108
110
 
109
111
  # form parameters
110
112
  form_params = {}
@@ -125,8 +127,8 @@ module SquareConnect
125
127
  return data, status_code, headers
126
128
  end
127
129
 
128
- # Creates a timecard for an employee. Each timecard corresponds to a single shift.
129
- # Creates a timecard for an employee. Each timecard corresponds to a single shift.
130
+ # CreateTimecard
131
+ # Creates a timecard for an employee and clocks them in with an `API_CREATE` event and a `clockin_time` set to the current time unless the request provides a different value. To import timecards from another system (rather than clocking someone in). Specify the `clockin_time` and* `clockout_time` in the request. Timecards correspond to exactly one shift for a given employee, bounded by the `clockin_time` and `clockout_time` fields. An employee is considered clocked in if they have a timecard that doesn't have a `clockout_time` set. An employee that is currently clocked in cannot be clocked in a second time.
130
132
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
131
133
  # @param [Hash] opts the optional parameters
132
134
  # @return [V1Timecard]
@@ -135,8 +137,8 @@ module SquareConnect
135
137
  return data
136
138
  end
137
139
 
138
- # Creates a timecard for an employee. Each timecard corresponds to a single shift.
139
- # Creates a timecard for an employee. Each timecard corresponds to a single shift.
140
+ # CreateTimecard
141
+ # Creates a timecard for an employee and clocks them in with an &#x60;API_CREATE&#x60; event and a &#x60;clockin_time&#x60; set to the current time unless the request provides a different value. To import timecards from another system (rather than clocking someone in). Specify the &#x60;clockin_time&#x60; and* &#x60;clockout_time&#x60; in the request. Timecards correspond to exactly one shift for a given employee, bounded by the &#x60;clockin_time&#x60; and &#x60;clockout_time&#x60; fields. An employee is considered clocked in if they have a timecard that doesn&#39;t have a &#x60;clockout_time&#x60; set. An employee that is currently clocked in cannot be clocked in a second time.
140
142
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
141
143
  # @param [Hash] opts the optional parameters
142
144
  # @return [Array<(V1Timecard, Fixnum, Hash)>] V1Timecard data, response status code and response headers
@@ -159,6 +161,7 @@ module SquareConnect
159
161
  # HTTP header 'Content-Type'
160
162
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
161
163
 
164
+ header_params['Square-Version'] = "2019-03-13"
162
165
 
163
166
  # form parameters
164
167
  form_params = {}
@@ -179,8 +182,8 @@ module SquareConnect
179
182
  return data, status_code, headers
180
183
  end
181
184
 
182
- # Deletes a timecard. Deleted timecards are still accessible from Connect API endpoints, but the value of their deleted field is set to true. See Handling deleted timecards for more information.
183
- # Deletes a timecard. Deleted timecards are still accessible from Connect API endpoints, but the value of their deleted field is set to true. See Handling deleted timecards for more information.
185
+ # DeleteTimecard
186
+ # Deletes a timecard. Timecards can also be deleted through the Square Dashboard. Deleted timecards are still accessible through Connect API endpoints, but cannot be modified. The `deleted` field of the `Timecard` object indicates whether the timecard has been deleted. *Note**: By default, deleted timecards appear alongside valid timecards in results returned by the [ListTimecards](#endpoint-v1employees-listtimecards) endpoint. To filter deleted timecards, include the `deleted` query parameter in the list request. <aside> Only approved accounts can manage their employees with Square. Unapproved accounts cannot use employee management features with the API. </aside>
184
187
  # @param timecard_id The ID of the timecard to delete.
185
188
  # @param [Hash] opts the optional parameters
186
189
  # @return [Object]
@@ -189,8 +192,8 @@ module SquareConnect
189
192
  return data
190
193
  end
191
194
 
192
- # Deletes a timecard. Deleted timecards are still accessible from Connect API endpoints, but the value of their deleted field is set to true. See Handling deleted timecards for more information.
193
- # Deletes a timecard. Deleted timecards are still accessible from Connect API endpoints, but the value of their deleted field is set to true. See Handling deleted timecards for more information.
195
+ # DeleteTimecard
196
+ # Deletes a timecard. Timecards can also be deleted through the Square Dashboard. Deleted timecards are still accessible through Connect API endpoints, but cannot be modified. The &#x60;deleted&#x60; field of the &#x60;Timecard&#x60; object indicates whether the timecard has been deleted. *Note**: By default, deleted timecards appear alongside valid timecards in results returned by the [ListTimecards](#endpoint-v1employees-listtimecards) endpoint. To filter deleted timecards, include the &#x60;deleted&#x60; query parameter in the list request. &lt;aside&gt; Only approved accounts can manage their employees with Square. Unapproved accounts cannot use employee management features with the API. &lt;/aside&gt;
194
197
  # @param timecard_id The ID of the timecard to delete.
195
198
  # @param [Hash] opts the optional parameters
196
199
  # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
@@ -213,6 +216,7 @@ module SquareConnect
213
216
  # HTTP header 'Content-Type'
214
217
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
215
218
 
219
+ header_params['Square-Version'] = "2019-03-13"
216
220
 
217
221
  # form parameters
218
222
  form_params = {}
@@ -233,7 +237,7 @@ module SquareConnect
233
237
  return data, status_code, headers
234
238
  end
235
239
 
236
- # Provides the details for all of a location's cash drawer shifts during a date range. The date range you specify cannot exceed 90 days.
240
+ # ListCashDrawerShifts
237
241
  # Provides the details for all of a location's cash drawer shifts during a date range. The date range you specify cannot exceed 90 days.
238
242
  # @param location_id The ID of the location to list cash drawer shifts for.
239
243
  # @param [Hash] opts the optional parameters
@@ -246,7 +250,7 @@ module SquareConnect
246
250
  return data
247
251
  end
248
252
 
249
- # Provides the details for all of a location&#39;s cash drawer shifts during a date range. The date range you specify cannot exceed 90 days.
253
+ # ListCashDrawerShifts
250
254
  # Provides the details for all of a location&#39;s cash drawer shifts during a date range. The date range you specify cannot exceed 90 days.
251
255
  # @param location_id The ID of the location to list cash drawer shifts for.
252
256
  # @param [Hash] opts the optional parameters
@@ -260,8 +264,8 @@ module SquareConnect
260
264
  end
261
265
  # verify the required parameter 'location_id' is set
262
266
  fail ArgumentError, "Missing the required parameter 'location_id' when calling V1EmployeesApi.list_cash_drawer_shifts" if location_id.nil?
263
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
264
- fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
267
+ if opts[:'order'] && !['DESC', 'ASC'].include?(opts[:'order'])
268
+ fail ArgumentError, 'invalid value for "order", must be one of DESC, ASC'
265
269
  end
266
270
  # resource path
267
271
  local_var_path = "/v1/{location_id}/cash-drawer-shifts".sub('{format}','json').sub('{' + 'location_id' + '}', location_id.to_s)
@@ -279,6 +283,7 @@ module SquareConnect
279
283
  # HTTP header 'Content-Type'
280
284
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
281
285
 
286
+ header_params['Square-Version'] = "2019-03-13"
282
287
 
283
288
  # form parameters
284
289
  form_params = {}
@@ -299,10 +304,10 @@ module SquareConnect
299
304
  return data, status_code, headers
300
305
  end
301
306
 
302
- # Provides summary information for all of a business's employee roles.
307
+ # ListEmployeeRoles
303
308
  # Provides summary information for all of a business's employee roles.
304
309
  # @param [Hash] opts the optional parameters
305
- # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field.Default value: ASC
310
+ # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field.Default value: ASC
306
311
  # @option opts [Integer] :limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200.
307
312
  # @option opts [String] :batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint.
308
313
  # @return [Array<V1EmployeeRole>]
@@ -311,10 +316,10 @@ module SquareConnect
311
316
  return data
312
317
  end
313
318
 
314
- # Provides summary information for all of a business&#39;s employee roles.
319
+ # ListEmployeeRoles
315
320
  # Provides summary information for all of a business&#39;s employee roles.
316
321
  # @param [Hash] opts the optional parameters
317
- # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field.Default value: ASC
322
+ # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field.Default value: ASC
318
323
  # @option opts [Integer] :limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200.
319
324
  # @option opts [String] :batch_token A pagination cursor to retrieve the next set of results for your original query to the endpoint.
320
325
  # @return [Array<(Array<V1EmployeeRole>, Fixnum, Hash)>] Array<V1EmployeeRole> data, response status code and response headers
@@ -322,13 +327,9 @@ module SquareConnect
322
327
  if @api_client.config.debugging
323
328
  @api_client.config.logger.debug "Calling API: V1EmployeesApi.list_employee_roles ..."
324
329
  end
325
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
326
- fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
327
- end
328
- if !opts[:'limit'].nil? && opts[:'limit'] > 200
329
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling V1EmployeesApi.list_employee_roles, must be smaller than or equal to 200.'
330
+ if opts[:'order'] && !['DESC', 'ASC'].include?(opts[:'order'])
331
+ fail ArgumentError, 'invalid value for "order", must be one of DESC, ASC'
330
332
  end
331
-
332
333
  # resource path
333
334
  local_var_path = "/v1/me/roles".sub('{format}','json')
334
335
 
@@ -345,6 +346,7 @@ module SquareConnect
345
346
  # HTTP header 'Content-Type'
346
347
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
347
348
 
349
+ header_params['Square-Version'] = "2019-03-13"
348
350
 
349
351
  # form parameters
350
352
  form_params = {}
@@ -365,10 +367,10 @@ module SquareConnect
365
367
  return data, status_code, headers
366
368
  end
367
369
 
368
- # Provides summary information for all of a business's employees.
370
+ # ListEmployees
369
371
  # Provides summary information for all of a business's employees.
370
372
  # @param [Hash] opts the optional parameters
371
- # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field. Default value: ASC
373
+ # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field. Default value: ASC
372
374
  # @option opts [String] :begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format
373
375
  # @option opts [String] :end_updated_at If filtering results by there updated_at field, the end of the requested reporting period, in ISO 8601 format.
374
376
  # @option opts [String] :begin_created_at If filtering results by their created_at field, the beginning of the requested reporting period, in ISO 8601 format.
@@ -383,10 +385,10 @@ module SquareConnect
383
385
  return data
384
386
  end
385
387
 
386
- # Provides summary information for all of a business&#39;s employees.
388
+ # ListEmployees
387
389
  # Provides summary information for all of a business&#39;s employees.
388
390
  # @param [Hash] opts the optional parameters
389
- # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field. Default value: ASC
391
+ # @option opts [String] :order The order in which employees are listed in the response, based on their created_at field. Default value: ASC
390
392
  # @option opts [String] :begin_updated_at If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format
391
393
  # @option opts [String] :end_updated_at If filtering results by there updated_at field, the end of the requested reporting period, in ISO 8601 format.
392
394
  # @option opts [String] :begin_created_at If filtering results by their created_at field, the beginning of the requested reporting period, in ISO 8601 format.
@@ -400,16 +402,12 @@ module SquareConnect
400
402
  if @api_client.config.debugging
401
403
  @api_client.config.logger.debug "Calling API: V1EmployeesApi.list_employees ..."
402
404
  end
403
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
404
- fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
405
+ if opts[:'order'] && !['DESC', 'ASC'].include?(opts[:'order'])
406
+ fail ArgumentError, 'invalid value for "order", must be one of DESC, ASC'
405
407
  end
406
408
  if opts[:'status'] && !['ACTIVE', 'INACTIVE'].include?(opts[:'status'])
407
409
  fail ArgumentError, 'invalid value for "status", must be one of ACTIVE, INACTIVE'
408
410
  end
409
- if !opts[:'limit'].nil? && opts[:'limit'] > 200
410
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling V1EmployeesApi.list_employees, must be smaller than or equal to 200.'
411
- end
412
-
413
411
  # resource path
414
412
  local_var_path = "/v1/me/employees".sub('{format}','json')
415
413
 
@@ -432,6 +430,7 @@ module SquareConnect
432
430
  # HTTP header 'Content-Type'
433
431
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
434
432
 
433
+ header_params['Square-Version'] = "2019-03-13"
435
434
 
436
435
  # form parameters
437
436
  form_params = {}
@@ -452,8 +451,8 @@ module SquareConnect
452
451
  return data, status_code, headers
453
452
  end
454
453
 
455
- # Provides summary information for all events associated with a particular timecard.
456
- # Provides summary information for all events associated with a particular timecard.
454
+ # ListTimecardEvents
455
+ # Provides summary information for all events associated with a particular timecard. <aside> Only approved accounts can manage their employees with Square. Unapproved accounts cannot use employee management features with the API. </aside>
457
456
  # @param timecard_id The ID of the timecard to list events for.
458
457
  # @param [Hash] opts the optional parameters
459
458
  # @return [Array<V1TimecardEvent>]
@@ -462,8 +461,8 @@ module SquareConnect
462
461
  return data
463
462
  end
464
463
 
465
- # Provides summary information for all events associated with a particular timecard.
466
- # Provides summary information for all events associated with a particular timecard.
464
+ # ListTimecardEvents
465
+ # Provides summary information for all events associated with a particular timecard. &lt;aside&gt; Only approved accounts can manage their employees with Square. Unapproved accounts cannot use employee management features with the API. &lt;/aside&gt;
467
466
  # @param timecard_id The ID of the timecard to list events for.
468
467
  # @param [Hash] opts the optional parameters
469
468
  # @return [Array<(Array<V1TimecardEvent>, Fixnum, Hash)>] Array<V1TimecardEvent> data, response status code and response headers
@@ -474,10 +473,11 @@ module SquareConnect
474
473
  # verify the required parameter 'timecard_id' is set
475
474
  fail ArgumentError, "Missing the required parameter 'timecard_id' when calling V1EmployeesApi.list_timecard_events" if timecard_id.nil?
476
475
  # resource path
477
- local_var_path = "/v1/me/timecards/{timecard_id}/events".sub('{format}','json').sub('{' + 'timecard_id' + '}', timecard_id.to_s)
476
+ local_var_path = "/v1/me/timecards/{timecard_id}/events".sub('{format}','json')
478
477
 
479
478
  # query parameters
480
479
  query_params = {}
480
+ query_params[:'timecard_id'] = timecard_id
481
481
 
482
482
  # header parameters
483
483
  header_params = {}
@@ -486,6 +486,7 @@ module SquareConnect
486
486
  # HTTP header 'Content-Type'
487
487
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
488
488
 
489
+ header_params['Square-Version'] = "2019-03-13"
489
490
 
490
491
  # form parameters
491
492
  form_params = {}
@@ -506,7 +507,7 @@ module SquareConnect
506
507
  return data, status_code, headers
507
508
  end
508
509
 
509
- # Provides summary information for all of a business's employee timecards.
510
+ # ListTimecards
510
511
  # Provides summary information for all of a business's employee timecards.
511
512
  # @param [Hash] opts the optional parameters
512
513
  # @option opts [String] :order The order in which timecards are listed in the response, based on their created_at field.
@@ -526,7 +527,7 @@ module SquareConnect
526
527
  return data
527
528
  end
528
529
 
529
- # Provides summary information for all of a business&#39;s employee timecards.
530
+ # ListTimecards
530
531
  # Provides summary information for all of a business&#39;s employee timecards.
531
532
  # @param [Hash] opts the optional parameters
532
533
  # @option opts [String] :order The order in which timecards are listed in the response, based on their created_at field.
@@ -545,13 +546,9 @@ module SquareConnect
545
546
  if @api_client.config.debugging
546
547
  @api_client.config.logger.debug "Calling API: V1EmployeesApi.list_timecards ..."
547
548
  end
548
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
549
- fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
549
+ if opts[:'order'] && !['DESC', 'ASC'].include?(opts[:'order'])
550
+ fail ArgumentError, 'invalid value for "order", must be one of DESC, ASC'
550
551
  end
551
- if !opts[:'limit'].nil? && opts[:'limit'] > 200
552
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling V1EmployeesApi.list_timecards, must be smaller than or equal to 200.'
553
- end
554
-
555
552
  # resource path
556
553
  local_var_path = "/v1/me/timecards".sub('{format}','json')
557
554
 
@@ -576,6 +573,7 @@ module SquareConnect
576
573
  # HTTP header 'Content-Type'
577
574
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
578
575
 
576
+ header_params['Square-Version'] = "2019-03-13"
579
577
 
580
578
  # form parameters
581
579
  form_params = {}
@@ -596,7 +594,7 @@ module SquareConnect
596
594
  return data, status_code, headers
597
595
  end
598
596
 
599
- # Provides the details for a single cash drawer shift, including all events that occurred during the shift.
597
+ # RetrieveCashDrawerShift
600
598
  # Provides the details for a single cash drawer shift, including all events that occurred during the shift.
601
599
  # @param location_id The ID of the location to list cash drawer shifts for.
602
600
  # @param shift_id The shift&#39;s ID.
@@ -607,7 +605,7 @@ module SquareConnect
607
605
  return data
608
606
  end
609
607
 
610
- # Provides the details for a single cash drawer shift, including all events that occurred during the shift.
608
+ # RetrieveCashDrawerShift
611
609
  # Provides the details for a single cash drawer shift, including all events that occurred during the shift.
612
610
  # @param location_id The ID of the location to list cash drawer shifts for.
613
611
  # @param shift_id The shift&#39;s ID.
@@ -634,6 +632,7 @@ module SquareConnect
634
632
  # HTTP header 'Content-Type'
635
633
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
636
634
 
635
+ header_params['Square-Version'] = "2019-03-13"
637
636
 
638
637
  # form parameters
639
638
  form_params = {}
@@ -654,7 +653,7 @@ module SquareConnect
654
653
  return data, status_code, headers
655
654
  end
656
655
 
657
- # Provides the details for a single employee.
656
+ # RetrieveEmployee
658
657
  # Provides the details for a single employee.
659
658
  # @param employee_id The employee&#39;s ID.
660
659
  # @param [Hash] opts the optional parameters
@@ -664,7 +663,7 @@ module SquareConnect
664
663
  return data
665
664
  end
666
665
 
667
- # Provides the details for a single employee.
666
+ # RetrieveEmployee
668
667
  # Provides the details for a single employee.
669
668
  # @param employee_id The employee&#39;s ID.
670
669
  # @param [Hash] opts the optional parameters
@@ -688,6 +687,7 @@ module SquareConnect
688
687
  # HTTP header 'Content-Type'
689
688
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
690
689
 
690
+ header_params['Square-Version'] = "2019-03-13"
691
691
 
692
692
  # form parameters
693
693
  form_params = {}
@@ -708,7 +708,7 @@ module SquareConnect
708
708
  return data, status_code, headers
709
709
  end
710
710
 
711
- # Provides the details for a single employee role.
711
+ # RetrieveEmployeeRole
712
712
  # Provides the details for a single employee role.
713
713
  # @param role_id The role&#39;s ID.
714
714
  # @param [Hash] opts the optional parameters
@@ -718,7 +718,7 @@ module SquareConnect
718
718
  return data
719
719
  end
720
720
 
721
- # Provides the details for a single employee role.
721
+ # RetrieveEmployeeRole
722
722
  # Provides the details for a single employee role.
723
723
  # @param role_id The role&#39;s ID.
724
724
  # @param [Hash] opts the optional parameters
@@ -742,6 +742,7 @@ module SquareConnect
742
742
  # HTTP header 'Content-Type'
743
743
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
744
744
 
745
+ header_params['Square-Version'] = "2019-03-13"
745
746
 
746
747
  # form parameters
747
748
  form_params = {}
@@ -762,8 +763,8 @@ module SquareConnect
762
763
  return data, status_code, headers
763
764
  end
764
765
 
765
- # Provides the details for a single timecard.
766
- # Provides the details for a single timecard.
766
+ # RetrieveTimecard
767
+ # Provides the details for a single timecard. <aside> Only approved accounts can manage their employees with Square. Unapproved accounts cannot use employee management features with the API. </aside>
767
768
  # @param timecard_id The timecard&#39;s ID.
768
769
  # @param [Hash] opts the optional parameters
769
770
  # @return [V1Timecard]
@@ -772,8 +773,8 @@ module SquareConnect
772
773
  return data
773
774
  end
774
775
 
775
- # Provides the details for a single timecard.
776
- # Provides the details for a single timecard.
776
+ # RetrieveTimecard
777
+ # Provides the details for a single timecard. &lt;aside&gt; Only approved accounts can manage their employees with Square. Unapproved accounts cannot use employee management features with the API. &lt;/aside&gt;
777
778
  # @param timecard_id The timecard&#39;s ID.
778
779
  # @param [Hash] opts the optional parameters
779
780
  # @return [Array<(V1Timecard, Fixnum, Hash)>] V1Timecard data, response status code and response headers
@@ -796,6 +797,7 @@ module SquareConnect
796
797
  # HTTP header 'Content-Type'
797
798
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
798
799
 
800
+ header_params['Square-Version'] = "2019-03-13"
799
801
 
800
802
  # form parameters
801
803
  form_params = {}
@@ -816,7 +818,7 @@ module SquareConnect
816
818
  return data, status_code, headers
817
819
  end
818
820
 
819
- # V1 UpdateEmployee
821
+ # UpdateEmployee
820
822
  #
821
823
  # @param employee_id The ID of the role to modify.
822
824
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
@@ -827,7 +829,7 @@ module SquareConnect
827
829
  return data
828
830
  end
829
831
 
830
- # V1 UpdateEmployee
832
+ # UpdateEmployee
831
833
  #
832
834
  # @param employee_id The ID of the role to modify.
833
835
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
@@ -854,6 +856,7 @@ module SquareConnect
854
856
  # HTTP header 'Content-Type'
855
857
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
856
858
 
859
+ header_params['Square-Version'] = "2019-03-13"
857
860
 
858
861
  # form parameters
859
862
  form_params = {}
@@ -874,7 +877,7 @@ module SquareConnect
874
877
  return data, status_code, headers
875
878
  end
876
879
 
877
- # Modifies the details of an employee role.
880
+ # UpdateEmployeeRole
878
881
  # Modifies the details of an employee role.
879
882
  # @param role_id The ID of the role to modify.
880
883
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
@@ -885,7 +888,7 @@ module SquareConnect
885
888
  return data
886
889
  end
887
890
 
888
- # Modifies the details of an employee role.
891
+ # UpdateEmployeeRole
889
892
  # Modifies the details of an employee role.
890
893
  # @param role_id The ID of the role to modify.
891
894
  # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
@@ -912,6 +915,7 @@ module SquareConnect
912
915
  # HTTP header 'Content-Type'
913
916
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
914
917
 
918
+ header_params['Square-Version'] = "2019-03-13"
915
919
 
916
920
  # form parameters
917
921
  form_params = {}
@@ -932,10 +936,10 @@ module SquareConnect
932
936
  return data, status_code, headers
933
937
  end
934
938
 
935
- # Modifies a timecard's details. This creates an API_EDIT event for the timecard. You can view a timecard's event history with the List Timecard Events endpoint.
936
- # Modifies a timecard's details. This creates an API_EDIT event for the timecard. You can view a timecard's event history with the List Timecard Events endpoint.
939
+ # UpdateTimecard
940
+ # Modifies the details of a timecard with an `API_EDIT` event for the timecard. Updating an active timecard with a `clockout_time` clocks the employee out.
937
941
  # @param timecard_id TThe ID of the timecard to modify.
938
- # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
942
+ # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
939
943
  # @param [Hash] opts the optional parameters
940
944
  # @return [V1Timecard]
941
945
  def update_timecard(timecard_id, body, opts = {})
@@ -943,10 +947,10 @@ module SquareConnect
943
947
  return data
944
948
  end
945
949
 
946
- # Modifies a timecard&#39;s details. This creates an API_EDIT event for the timecard. You can view a timecard&#39;s event history with the List Timecard Events endpoint.
947
- # Modifies a timecard&#39;s details. This creates an API_EDIT event for the timecard. You can view a timecard&#39;s event history with the List Timecard Events endpoint.
950
+ # UpdateTimecard
951
+ # Modifies the details of a timecard with an &#x60;API_EDIT&#x60; event for the timecard. Updating an active timecard with a &#x60;clockout_time&#x60; clocks the employee out.
948
952
  # @param timecard_id TThe ID of the timecard to modify.
949
- # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
953
+ # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
950
954
  # @param [Hash] opts the optional parameters
951
955
  # @return [Array<(V1Timecard, Fixnum, Hash)>] V1Timecard data, response status code and response headers
952
956
  def update_timecard_with_http_info(timecard_id, body, opts = {})
@@ -970,6 +974,7 @@ module SquareConnect
970
974
  # HTTP header 'Content-Type'
971
975
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
972
976
 
977
+ header_params['Square-Version'] = "2019-03-13"
973
978
 
974
979
  # form parameters
975
980
  form_params = {}