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.
- checksums.yaml +4 -4
- data/CHANGES.md +24 -0
- data/README.md +256 -70
- data/docs/BatchRetrieveInventoryChangesRequest.md +1 -1
- data/docs/BatchRetrieveInventoryChangesResponse.md +1 -1
- data/docs/BatchRetrieveInventoryCountsRequest.md +1 -1
- data/docs/BatchRetrieveInventoryCountsResponse.md +1 -1
- data/docs/BatchUpsertCatalogObjectsRequest.md +1 -1
- data/docs/BreakType.md +19 -0
- data/docs/Card.md +1 -1
- data/docs/CatalogApi.md +2 -2
- data/docs/CatalogItem.md +1 -1
- data/docs/CatalogItemVariation.md +1 -1
- data/docs/CatalogObject.md +1 -1
- data/docs/CatalogQuery.md +1 -1
- data/docs/ChargeRequest.md +1 -1
- data/docs/CreateBreakTypeRequest.md +13 -0
- data/docs/CreateBreakTypeResponse.md +13 -0
- data/docs/CreateCheckoutRequest.md +1 -1
- data/docs/CreateOrderRequest.md +1 -1
- data/docs/CreateRefundRequest.md +1 -1
- data/docs/CreateShiftRequest.md +13 -0
- data/docs/CreateShiftResponse.md +13 -0
- data/docs/CustomersApi.md +2 -2
- data/docs/DateRange.md +13 -0
- data/docs/DeleteBreakTypeRequest.md +11 -0
- data/docs/DeleteBreakTypeResponse.md +12 -0
- data/docs/DeleteShiftRequest.md +11 -0
- data/docs/DeleteShiftResponse.md +12 -0
- data/docs/Device.md +2 -0
- data/docs/Employee.md +18 -0
- data/docs/EmployeeStatus.md +13 -0
- data/docs/EmployeeWage.md +15 -0
- data/docs/EmployeesApi.md +121 -0
- data/docs/Error.md +1 -1
- data/docs/GetBreakTypeRequest.md +11 -0
- data/docs/GetBreakTypeResponse.md +13 -0
- data/docs/GetEmployeeWageRequest.md +11 -0
- data/docs/GetEmployeeWageResponse.md +13 -0
- data/docs/GetShiftRequest.md +11 -0
- data/docs/GetShiftResponse.md +13 -0
- data/docs/InventoryApi.md +4 -4
- data/docs/LaborApi.md +772 -0
- data/docs/ListAdditionalRecipientReceivableRefundsRequest.md +1 -1
- data/docs/ListAdditionalRecipientReceivableRefundsResponse.md +1 -1
- data/docs/ListAdditionalRecipientReceivablesRequest.md +1 -1
- data/docs/ListAdditionalRecipientReceivablesResponse.md +1 -1
- data/docs/ListBreakTypesRequest.md +14 -0
- data/docs/ListBreakTypesResponse.md +14 -0
- data/docs/ListCatalogRequest.md +1 -1
- data/docs/ListCatalogResponse.md +1 -1
- data/docs/ListCustomersRequest.md +1 -1
- data/docs/ListCustomersResponse.md +1 -1
- data/docs/ListEmployeeWagesRequest.md +14 -0
- data/docs/ListEmployeeWagesResponse.md +14 -0
- data/docs/ListEmployeesRequest.md +15 -0
- data/docs/ListEmployeesResponse.md +14 -0
- data/docs/ListRefundsRequest.md +1 -1
- data/docs/ListRefundsResponse.md +1 -1
- data/docs/ListTransactionsRequest.md +1 -1
- data/docs/ListTransactionsResponse.md +1 -1
- data/docs/ListWorkweekConfigsRequest.md +13 -0
- data/docs/ListWorkweekConfigsResponse.md +14 -0
- data/docs/ModelBreak.md +18 -0
- data/docs/OAuthApi.md +5 -5
- data/docs/ObtainTokenRequest.md +6 -3
- data/docs/ObtainTokenResponse.md +3 -2
- data/docs/ReportingApi.md +4 -4
- data/docs/RetrieveEmployeeRequest.md +11 -0
- data/docs/RetrieveEmployeeResponse.md +13 -0
- data/docs/RetrieveInventoryChangesRequest.md +1 -1
- data/docs/RetrieveInventoryChangesResponse.md +1 -1
- data/docs/RetrieveInventoryCountRequest.md +1 -1
- data/docs/RetrieveInventoryCountResponse.md +1 -1
- data/docs/SearchCatalogObjectsRequest.md +1 -1
- data/docs/SearchCatalogObjectsResponse.md +1 -1
- data/docs/SearchCustomersRequest.md +1 -1
- data/docs/SearchCustomersResponse.md +1 -1
- data/docs/SearchShiftsRequest.md +14 -0
- data/docs/SearchShiftsResponse.md +14 -0
- data/docs/Shift.md +23 -0
- data/docs/ShiftFilter.md +17 -0
- data/docs/ShiftFilterStatus.md +13 -0
- data/docs/ShiftQuery.md +13 -0
- data/docs/ShiftSort.md +13 -0
- data/docs/ShiftSortField.md +15 -0
- data/docs/ShiftStatus.md +13 -0
- data/docs/ShiftWage.md +13 -0
- data/docs/ShiftWorkday.md +14 -0
- data/docs/ShiftWorkdayMatcher.md +14 -0
- data/docs/TransactionsApi.md +4 -4
- data/docs/UpdateBreakTypeRequest.md +12 -0
- data/docs/UpdateBreakTypeResponse.md +13 -0
- data/docs/UpdateShiftRequest.md +12 -0
- data/docs/UpdateShiftResponse.md +13 -0
- data/docs/UpdateWorkweekConfigRequest.md +12 -0
- data/docs/UpdateWorkweekConfigResponse.md +13 -0
- data/docs/UpsertCatalogObjectRequest.md +1 -1
- data/docs/V1AdjustInventoryRequest.md +3 -1
- data/docs/V1AdjustInventoryRequestAdjustmentType.md +14 -0
- data/docs/V1ApplyFeeRequest.md +11 -0
- data/docs/V1ApplyModifierListRequest.md +11 -0
- data/docs/V1BankAccount.md +3 -1
- data/docs/V1BankAccountType.md +17 -0
- data/docs/V1CashDrawerEvent.md +3 -1
- data/docs/V1CashDrawerEventEventType.md +20 -0
- data/docs/V1CashDrawerShift.md +3 -1
- data/docs/V1CashDrawerShiftEventType.md +14 -0
- data/docs/V1Category.md +2 -0
- data/docs/V1CreateCategoryRequest.md +12 -0
- data/docs/V1CreateDiscountRequest.md +12 -0
- data/docs/V1CreateEmployeeRoleRequest.md +12 -0
- data/docs/V1CreateFeeRequest.md +12 -0
- data/docs/V1CreateItemRequest.md +12 -0
- data/docs/V1CreateModifierListRequest.md +12 -0
- data/docs/V1CreateModifierOptionRequest.md +12 -0
- data/docs/V1CreatePageRequest.md +12 -0
- data/docs/V1CreateRefundRequest.md +4 -2
- data/docs/V1CreateRefundRequestType.md +13 -0
- data/docs/V1CreateVariationRequest.md +12 -0
- data/docs/V1DeleteCategoryRequest.md +11 -0
- data/docs/V1DeleteDiscountRequest.md +11 -0
- data/docs/V1DeleteFeeRequest.md +11 -0
- data/docs/V1DeleteItemRequest.md +11 -0
- data/docs/V1DeleteModifierListRequest.md +11 -0
- data/docs/V1DeleteModifierOptionRequest.md +11 -0
- data/docs/V1DeletePageCellRequest.md +13 -0
- data/docs/V1DeletePageRequest.md +11 -0
- data/docs/V1DeleteTimecardRequest.md +11 -0
- data/docs/V1DeleteTimecardResponse.md +11 -0
- data/docs/V1DeleteVariationRequest.md +11 -0
- data/docs/V1Discount.md +4 -2
- data/docs/V1DiscountColor.md +20 -0
- data/docs/V1DiscountDiscountType.md +14 -0
- data/docs/V1Employee.md +1 -1
- data/docs/V1EmployeeRole.md +3 -1
- data/docs/V1EmployeeRolePermissions.md +18 -0
- data/docs/V1EmployeeStatus.md +13 -0
- data/docs/V1EmployeesApi.md +63 -61
- data/docs/V1Fee.md +6 -4
- data/docs/V1FeeAdjustmentType.md +12 -0
- data/docs/V1FeeCalculationPhase.md +14 -0
- data/docs/V1FeeInclusionType.md +13 -0
- data/docs/V1FeeType.md +19 -0
- data/docs/V1InventoryEntry.md +2 -0
- data/docs/V1Item.md +5 -3
- data/docs/V1ItemColor.md +20 -0
- data/docs/V1ItemImage.md +2 -0
- data/docs/V1ItemType.md +14 -0
- data/docs/V1ItemVisibility.md +13 -0
- data/docs/V1ItemsApi.md +130 -130
- data/docs/V1ListBankAccountsRequest.md +11 -0
- data/docs/V1ListBankAccountsResponse.md +12 -0
- data/docs/V1ListCashDrawerShiftsRequest.md +14 -0
- data/docs/V1ListCashDrawerShiftsResponse.md +12 -0
- data/docs/V1ListCategoriesRequest.md +11 -0
- data/docs/V1ListCategoriesResponse.md +12 -0
- data/docs/V1ListDiscountsRequest.md +11 -0
- data/docs/V1ListDiscountsResponse.md +12 -0
- data/docs/V1ListEmployeeRolesRequest.md +14 -0
- data/docs/V1ListEmployeeRolesResponse.md +12 -0
- data/docs/V1ListEmployeesRequest.md +20 -0
- data/docs/V1ListEmployeesRequestStatus.md +13 -0
- data/docs/V1ListEmployeesResponse.md +12 -0
- data/docs/V1ListFeesRequest.md +11 -0
- data/docs/V1ListFeesResponse.md +12 -0
- data/docs/V1ListInventoryRequest.md +13 -0
- data/docs/V1ListInventoryResponse.md +12 -0
- data/docs/V1ListItemsRequest.md +12 -0
- data/docs/V1ListItemsResponse.md +12 -0
- data/docs/V1ListLocationsRequest.md +11 -0
- data/docs/V1ListLocationsResponse.md +12 -0
- data/docs/V1ListModifierListsRequest.md +11 -0
- data/docs/V1ListModifierListsResponse.md +12 -0
- data/docs/V1ListOrdersRequest.md +14 -0
- data/docs/V1ListOrdersResponse.md +12 -0
- data/docs/V1ListPagesRequest.md +11 -0
- data/docs/V1ListPagesResponse.md +12 -0
- data/docs/V1ListPaymentsRequest.md +17 -0
- data/docs/V1ListPaymentsResponse.md +12 -0
- data/docs/V1ListRefundsRequest.md +16 -0
- data/docs/V1ListRefundsResponse.md +12 -0
- data/docs/V1ListSettlementsRequest.md +17 -0
- data/docs/V1ListSettlementsRequestStatus.md +13 -0
- data/docs/V1ListSettlementsResponse.md +12 -0
- data/docs/V1ListTimecardEventsRequest.md +12 -0
- data/docs/V1ListTimecardEventsResponse.md +12 -0
- data/docs/V1ListTimecardsRequest.md +22 -0
- data/docs/V1ListTimecardsResponse.md +12 -0
- data/docs/V1LocationsApi.md +6 -6
- data/docs/V1Merchant.md +4 -4
- data/docs/V1MerchantAccountType.md +13 -0
- data/docs/V1MerchantBusinessType.md +61 -0
- data/docs/V1ModifierList.md +3 -1
- data/docs/V1ModifierListSelectionType.md +13 -0
- data/docs/V1ModifierOption.md +2 -0
- data/docs/V1Money.md +1 -1
- data/docs/V1Order.md +3 -1
- data/docs/V1OrderHistoryEntry.md +3 -1
- data/docs/V1OrderHistoryEntryAction.md +18 -0
- data/docs/V1OrderState.md +17 -0
- data/docs/V1Page.md +2 -0
- data/docs/V1PageCell.md +4 -2
- data/docs/V1PageCellObjectType.md +15 -0
- data/docs/V1PageCellPlaceholderType.md +14 -0
- data/docs/V1Payment.md +2 -0
- data/docs/V1PaymentDiscount.md +2 -0
- data/docs/V1PaymentItemDetail.md +2 -0
- data/docs/V1PaymentItemization.md +3 -1
- data/docs/V1PaymentItemizationItemizationType.md +17 -0
- data/docs/V1PaymentModifier.md +2 -0
- data/docs/V1PaymentSurcharge.md +3 -1
- data/docs/V1PaymentSurchargeType.md +14 -0
- data/docs/V1PaymentTax.md +3 -1
- data/docs/V1PaymentTaxInclusionType.md +13 -0
- data/docs/V1Refund.md +3 -1
- data/docs/V1RefundType.md +13 -0
- data/docs/V1RemoveFeeRequest.md +11 -0
- data/docs/V1RemoveModifierListRequest.md +11 -0
- data/docs/V1RetrieveBankAccountRequest.md +11 -0
- data/docs/V1RetrieveBusinessRequest.md +11 -0
- data/docs/V1RetrieveCashDrawerShiftRequest.md +11 -0
- data/docs/V1RetrieveEmployeeRequest.md +11 -0
- data/docs/V1RetrieveEmployeeRoleRequest.md +11 -0
- data/docs/V1RetrieveItemRequest.md +11 -0
- data/docs/V1RetrieveModifierListRequest.md +11 -0
- data/docs/V1RetrieveOrderRequest.md +11 -0
- data/docs/V1RetrievePaymentRequest.md +11 -0
- data/docs/V1RetrieveSettlementRequest.md +11 -0
- data/docs/V1RetrieveTimecardRequest.md +11 -0
- data/docs/V1Settlement.md +3 -1
- data/docs/V1SettlementEntry.md +3 -1
- data/docs/V1SettlementEntryType.md +32 -0
- data/docs/V1SettlementStatus.md +13 -0
- data/docs/V1Tender.md +5 -3
- data/docs/V1TenderEntryMethod.md +18 -0
- data/docs/V1TenderType.md +19 -0
- data/docs/V1Timecard.md +1 -1
- data/docs/V1TimecardEvent.md +3 -1
- data/docs/V1TimecardEventEventType.md +19 -0
- data/docs/V1TransactionsApi.md +37 -37
- data/docs/V1UpdateCategoryRequest.md +12 -0
- data/docs/V1UpdateDiscountRequest.md +12 -0
- data/docs/V1UpdateEmployeeRequest.md +12 -0
- data/docs/V1UpdateEmployeeRoleRequest.md +12 -0
- data/docs/V1UpdateFeeRequest.md +12 -0
- data/docs/V1UpdateItemRequest.md +12 -0
- data/docs/V1UpdateModifierListRequest.md +3 -1
- data/docs/V1UpdateModifierListRequestSelectionType.md +13 -0
- data/docs/V1UpdateModifierOptionRequest.md +12 -0
- data/docs/V1UpdateOrderRequest.md +3 -1
- data/docs/V1UpdateOrderRequestAction.md +14 -0
- data/docs/V1UpdatePageCellRequest.md +12 -0
- data/docs/V1UpdatePageRequest.md +12 -0
- data/docs/V1UpdateTimecardRequest.md +12 -0
- data/docs/V1UpdateVariationRequest.md +12 -0
- data/docs/V1Variation.md +4 -2
- data/docs/V1VariationInventoryAlertType.md +17 -0
- data/docs/V1VariationPricingType.md +13 -0
- data/docs/Weekday.md +18 -0
- data/docs/WorkweekConfig.md +17 -0
- data/lib/square_connect.rb +172 -0
- data/lib/square_connect/api/apple_pay_api.rb +1 -1
- data/lib/square_connect/api/catalog_api.rb +13 -13
- data/lib/square_connect/api/checkout_api.rb +1 -1
- data/lib/square_connect/api/customers_api.rb +10 -10
- data/lib/square_connect/api/employees_api.rb +141 -0
- data/lib/square_connect/api/inventory_api.rb +11 -11
- data/lib/square_connect/api/labor_api.rb +814 -0
- data/lib/square_connect/api/locations_api.rb +1 -1
- data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
- data/lib/square_connect/api/o_auth_api.rb +9 -9
- data/lib/square_connect/api/orders_api.rb +2 -2
- data/lib/square_connect/api/reporting_api.rb +6 -6
- data/lib/square_connect/api/transactions_api.rb +11 -11
- data/lib/square_connect/api/v1_employees_api.rb +78 -73
- data/lib/square_connect/api/v1_items_api.rb +140 -104
- data/lib/square_connect/api/v1_locations_api.rb +6 -4
- data/lib/square_connect/api/v1_transactions_api.rb +49 -54
- data/lib/square_connect/api_client.rb +1 -1
- data/lib/square_connect/models/batch_retrieve_inventory_changes_request.rb +1 -1
- data/lib/square_connect/models/batch_retrieve_inventory_changes_response.rb +1 -1
- data/lib/square_connect/models/batch_retrieve_inventory_counts_request.rb +1 -1
- data/lib/square_connect/models/batch_retrieve_inventory_counts_response.rb +1 -1
- data/lib/square_connect/models/batch_upsert_catalog_objects_request.rb +1 -1
- data/lib/square_connect/models/break_type.rb +349 -0
- data/lib/square_connect/models/card.rb +1 -1
- data/lib/square_connect/models/catalog_item.rb +1 -1
- data/lib/square_connect/models/catalog_item_variation.rb +1 -1
- data/lib/square_connect/models/catalog_object.rb +1 -1
- data/lib/square_connect/models/catalog_query.rb +1 -1
- data/lib/square_connect/models/charge_request.rb +1 -1
- data/lib/square_connect/models/create_break_type_request.rb +217 -0
- data/lib/square_connect/models/create_break_type_response.rb +198 -0
- data/lib/square_connect/models/create_checkout_request.rb +1 -1
- data/lib/square_connect/models/create_order_request.rb +1 -1
- data/lib/square_connect/models/create_refund_request.rb +1 -1
- data/lib/square_connect/models/create_shift_request.rb +217 -0
- data/lib/square_connect/models/create_shift_response.rb +198 -0
- data/lib/square_connect/models/date_range.rb +196 -0
- data/lib/square_connect/models/delete_break_type_request.rb +176 -0
- data/lib/square_connect/models/delete_break_type_response.rb +188 -0
- data/lib/square_connect/models/delete_shift_request.rb +176 -0
- data/lib/square_connect/models/delete_shift_response.rb +188 -0
- data/lib/square_connect/models/device.rb +1 -1
- data/lib/square_connect/models/employee.rb +281 -0
- data/lib/square_connect/models/employee_status.rb +19 -0
- data/lib/square_connect/models/employee_wage.rb +240 -0
- data/lib/square_connect/models/error.rb +1 -1
- data/lib/square_connect/models/get_break_type_request.rb +176 -0
- data/lib/square_connect/models/get_break_type_response.rb +198 -0
- data/lib/square_connect/models/get_employee_wage_request.rb +176 -0
- data/lib/square_connect/models/get_employee_wage_response.rb +198 -0
- data/lib/square_connect/models/get_shift_request.rb +176 -0
- data/lib/square_connect/models/get_shift_response.rb +198 -0
- data/lib/square_connect/models/list_additional_recipient_receivable_refunds_request.rb +1 -1
- data/lib/square_connect/models/list_additional_recipient_receivable_refunds_response.rb +1 -1
- data/lib/square_connect/models/list_additional_recipient_receivables_request.rb +1 -1
- data/lib/square_connect/models/list_additional_recipient_receivables_response.rb +1 -1
- data/lib/square_connect/models/list_break_types_request.rb +231 -0
- data/lib/square_connect/models/list_break_types_response.rb +210 -0
- data/lib/square_connect/models/list_catalog_request.rb +1 -1
- data/lib/square_connect/models/list_catalog_response.rb +1 -1
- data/lib/square_connect/models/list_customers_request.rb +1 -1
- data/lib/square_connect/models/list_customers_response.rb +1 -1
- data/lib/square_connect/models/list_employee_wages_request.rb +231 -0
- data/lib/square_connect/models/list_employee_wages_response.rb +210 -0
- data/lib/square_connect/models/list_employees_request.rb +249 -0
- data/lib/square_connect/models/list_employees_response.rb +210 -0
- data/lib/square_connect/models/list_refunds_request.rb +1 -1
- data/lib/square_connect/models/list_refunds_response.rb +1 -1
- data/lib/square_connect/models/list_transactions_request.rb +1 -1
- data/lib/square_connect/models/list_transactions_response.rb +1 -1
- data/lib/square_connect/models/list_workweek_configs_request.rb +196 -0
- data/lib/square_connect/models/list_workweek_configs_response.rb +210 -0
- data/lib/square_connect/models/model_break.rb +347 -0
- data/lib/square_connect/models/obtain_token_request.rb +37 -7
- data/lib/square_connect/models/obtain_token_response.rb +16 -6
- data/lib/square_connect/models/retrieve_employee_request.rb +176 -0
- data/lib/square_connect/models/retrieve_employee_response.rb +198 -0
- data/lib/square_connect/models/retrieve_inventory_changes_request.rb +1 -1
- data/lib/square_connect/models/retrieve_inventory_changes_response.rb +1 -1
- data/lib/square_connect/models/retrieve_inventory_count_request.rb +1 -1
- data/lib/square_connect/models/retrieve_inventory_count_response.rb +1 -1
- data/lib/square_connect/models/search_catalog_objects_request.rb +1 -1
- data/lib/square_connect/models/search_catalog_objects_response.rb +1 -1
- data/lib/square_connect/models/search_customers_request.rb +1 -1
- data/lib/square_connect/models/search_customers_response.rb +1 -1
- data/lib/square_connect/models/search_shifts_request.rb +231 -0
- data/lib/square_connect/models/search_shifts_response.rb +210 -0
- data/lib/square_connect/models/shift.rb +395 -0
- data/lib/square_connect/models/shift_filter.rb +273 -0
- data/lib/square_connect/models/shift_filter_status.rb +19 -0
- data/lib/square_connect/models/shift_query.rb +196 -0
- data/lib/square_connect/models/shift_sort.rb +241 -0
- data/lib/square_connect/models/shift_sort_field.rb +21 -0
- data/lib/square_connect/models/shift_status.rb +19 -0
- data/lib/square_connect/models/shift_wage.rb +196 -0
- data/lib/square_connect/models/shift_workday.rb +239 -0
- data/lib/square_connect/models/shift_workday_matcher.rb +20 -0
- data/lib/square_connect/models/update_break_type_request.rb +186 -0
- data/lib/square_connect/models/update_break_type_response.rb +198 -0
- data/lib/square_connect/models/update_shift_request.rb +191 -0
- data/lib/square_connect/models/update_shift_response.rb +198 -0
- data/lib/square_connect/models/update_workweek_config_request.rb +186 -0
- data/lib/square_connect/models/update_workweek_config_response.rb +198 -0
- data/lib/square_connect/models/upsert_catalog_object_request.rb +1 -1
- data/lib/square_connect/models/v1_adjust_inventory_request.rb +2 -2
- data/lib/square_connect/models/v1_adjust_inventory_request_adjustment_type.rb +20 -0
- data/lib/square_connect/models/v1_apply_fee_request.rb +176 -0
- data/lib/square_connect/models/v1_apply_modifier_list_request.rb +176 -0
- data/lib/square_connect/models/v1_bank_account.rb +2 -2
- data/lib/square_connect/models/v1_bank_account_type.rb +23 -0
- data/lib/square_connect/models/v1_cash_drawer_event.rb +2 -2
- data/lib/square_connect/models/v1_cash_drawer_event_event_type.rb +26 -0
- data/lib/square_connect/models/v1_cash_drawer_shift.rb +2 -2
- data/lib/square_connect/models/v1_cash_drawer_shift_event_type.rb +20 -0
- data/lib/square_connect/models/v1_category.rb +1 -1
- data/lib/square_connect/models/v1_create_category_request.rb +186 -0
- data/lib/square_connect/models/v1_create_discount_request.rb +186 -0
- data/lib/square_connect/models/v1_create_employee_role_request.rb +186 -0
- data/lib/square_connect/models/v1_create_fee_request.rb +186 -0
- data/lib/square_connect/models/v1_create_item_request.rb +186 -0
- data/lib/square_connect/models/v1_create_modifier_list_request.rb +186 -0
- data/lib/square_connect/models/v1_create_modifier_option_request.rb +186 -0
- data/lib/square_connect/models/v1_create_page_request.rb +186 -0
- data/lib/square_connect/models/v1_create_refund_request.rb +3 -3
- data/lib/square_connect/models/v1_create_refund_request_type.rb +19 -0
- data/lib/square_connect/models/v1_create_variation_request.rb +186 -0
- data/lib/square_connect/models/v1_delete_category_request.rb +176 -0
- data/lib/square_connect/models/v1_delete_discount_request.rb +176 -0
- data/lib/square_connect/models/v1_delete_fee_request.rb +176 -0
- data/lib/square_connect/models/v1_delete_item_request.rb +176 -0
- data/lib/square_connect/models/v1_delete_modifier_list_request.rb +176 -0
- data/lib/square_connect/models/v1_delete_modifier_option_request.rb +176 -0
- data/lib/square_connect/models/v1_delete_page_cell_request.rb +196 -0
- data/lib/square_connect/models/v1_delete_page_request.rb +176 -0
- data/lib/square_connect/models/v1_delete_timecard_request.rb +176 -0
- data/lib/square_connect/models/v1_delete_timecard_response.rb +176 -0
- data/lib/square_connect/models/v1_delete_variation_request.rb +176 -0
- data/lib/square_connect/models/v1_discount.rb +3 -3
- data/lib/square_connect/models/v1_discount_color.rb +26 -0
- data/lib/square_connect/models/v1_discount_discount_type.rb +20 -0
- data/lib/square_connect/models/v1_employee.rb +1 -1
- data/lib/square_connect/models/v1_employee_role.rb +2 -2
- data/lib/square_connect/models/v1_employee_role_permissions.rb +24 -0
- data/lib/square_connect/models/v1_employee_status.rb +19 -0
- data/lib/square_connect/models/v1_fee.rb +5 -5
- data/lib/square_connect/models/v1_fee_adjustment_type.rb +18 -0
- data/lib/square_connect/models/v1_fee_calculation_phase.rb +20 -0
- data/lib/square_connect/models/v1_fee_inclusion_type.rb +19 -0
- data/lib/square_connect/models/v1_fee_type.rb +25 -0
- data/lib/square_connect/models/v1_inventory_entry.rb +1 -1
- data/lib/square_connect/models/v1_item.rb +4 -4
- data/lib/square_connect/models/v1_item_color.rb +26 -0
- data/lib/square_connect/models/v1_item_image.rb +1 -1
- data/lib/square_connect/models/v1_item_type.rb +20 -0
- data/lib/square_connect/models/v1_item_visibility.rb +19 -0
- data/lib/square_connect/models/v1_list_bank_accounts_request.rb +176 -0
- data/lib/square_connect/models/v1_list_bank_accounts_response.rb +188 -0
- data/lib/square_connect/models/v1_list_cash_drawer_shifts_request.rb +239 -0
- data/lib/square_connect/models/v1_list_cash_drawer_shifts_response.rb +188 -0
- data/lib/square_connect/models/v1_list_categories_request.rb +176 -0
- data/lib/square_connect/models/v1_list_categories_response.rb +188 -0
- data/lib/square_connect/models/v1_list_discounts_request.rb +176 -0
- data/lib/square_connect/models/v1_list_discounts_response.rb +188 -0
- data/lib/square_connect/models/v1_list_employee_roles_request.rb +239 -0
- data/lib/square_connect/models/v1_list_employee_roles_response.rb +188 -0
- data/lib/square_connect/models/v1_list_employees_request.rb +311 -0
- data/lib/square_connect/models/v1_list_employees_request_status.rb +19 -0
- data/lib/square_connect/models/v1_list_employees_response.rb +188 -0
- data/lib/square_connect/models/v1_list_fees_request.rb +176 -0
- data/lib/square_connect/models/v1_list_fees_response.rb +188 -0
- data/lib/square_connect/models/v1_list_inventory_request.rb +196 -0
- data/lib/square_connect/models/v1_list_inventory_response.rb +188 -0
- data/lib/square_connect/models/v1_list_items_request.rb +186 -0
- data/lib/square_connect/models/v1_list_items_response.rb +188 -0
- data/lib/square_connect/models/v1_list_locations_request.rb +176 -0
- data/lib/square_connect/models/v1_list_locations_response.rb +188 -0
- data/lib/square_connect/models/v1_list_modifier_lists_request.rb +176 -0
- data/lib/square_connect/models/v1_list_modifier_lists_response.rb +188 -0
- data/lib/square_connect/models/v1_list_orders_request.rb +239 -0
- data/lib/square_connect/models/v1_list_orders_response.rb +188 -0
- data/lib/square_connect/models/v1_list_pages_request.rb +176 -0
- data/lib/square_connect/models/v1_list_pages_response.rb +188 -0
- data/lib/square_connect/models/v1_list_payments_request.rb +269 -0
- data/lib/square_connect/models/v1_list_payments_response.rb +188 -0
- data/lib/square_connect/models/v1_list_refunds_request.rb +259 -0
- data/lib/square_connect/models/v1_list_refunds_response.rb +188 -0
- data/lib/square_connect/models/v1_list_settlements_request.rb +281 -0
- data/lib/square_connect/models/v1_list_settlements_request_status.rb +19 -0
- data/lib/square_connect/models/v1_list_settlements_response.rb +188 -0
- data/lib/square_connect/models/v1_list_timecard_events_request.rb +191 -0
- data/lib/square_connect/models/v1_list_timecard_events_response.rb +188 -0
- data/lib/square_connect/models/v1_list_timecards_request.rb +319 -0
- data/lib/square_connect/models/v1_list_timecards_response.rb +188 -0
- data/lib/square_connect/models/v1_merchant.rb +10 -9
- data/lib/square_connect/models/v1_merchant_account_type.rb +19 -0
- data/lib/square_connect/models/v1_merchant_business_type.rb +67 -0
- data/lib/square_connect/models/v1_modifier_list.rb +2 -2
- data/lib/square_connect/models/v1_modifier_list_selection_type.rb +19 -0
- data/lib/square_connect/models/v1_modifier_option.rb +1 -1
- data/lib/square_connect/models/v1_money.rb +3 -3
- data/lib/square_connect/models/v1_order.rb +2 -2
- data/lib/square_connect/models/v1_order_history_entry.rb +2 -2
- data/lib/square_connect/models/v1_order_history_entry_action.rb +24 -0
- data/lib/square_connect/models/v1_order_state.rb +23 -0
- data/lib/square_connect/models/v1_page.rb +1 -1
- data/lib/square_connect/models/v1_page_cell.rb +3 -3
- data/lib/square_connect/models/v1_page_cell_object_type.rb +21 -0
- data/lib/square_connect/models/v1_page_cell_placeholder_type.rb +20 -0
- data/lib/square_connect/models/v1_payment.rb +1 -1
- data/lib/square_connect/models/v1_payment_discount.rb +1 -1
- data/lib/square_connect/models/v1_payment_item_detail.rb +1 -1
- data/lib/square_connect/models/v1_payment_itemization.rb +2 -2
- data/lib/square_connect/models/v1_payment_itemization_itemization_type.rb +23 -0
- data/lib/square_connect/models/v1_payment_modifier.rb +1 -1
- data/lib/square_connect/models/v1_payment_surcharge.rb +2 -2
- data/lib/square_connect/models/v1_payment_surcharge_type.rb +20 -0
- data/lib/square_connect/models/v1_payment_tax.rb +2 -2
- data/lib/square_connect/models/v1_payment_tax_inclusion_type.rb +19 -0
- data/lib/square_connect/models/v1_refund.rb +2 -2
- data/lib/square_connect/models/v1_refund_type.rb +19 -0
- data/lib/square_connect/models/v1_remove_fee_request.rb +176 -0
- data/lib/square_connect/models/v1_remove_modifier_list_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_bank_account_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_business_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_cash_drawer_shift_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_employee_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_employee_role_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_item_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_modifier_list_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_order_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_payment_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_settlement_request.rb +176 -0
- data/lib/square_connect/models/v1_retrieve_timecard_request.rb +176 -0
- data/lib/square_connect/models/v1_settlement.rb +2 -2
- data/lib/square_connect/models/v1_settlement_entry.rb +4 -4
- data/lib/square_connect/models/v1_settlement_entry_type.rb +38 -0
- data/lib/square_connect/models/v1_settlement_status.rb +19 -0
- data/lib/square_connect/models/v1_tender.rb +6 -6
- data/lib/square_connect/models/v1_tender_entry_method.rb +24 -0
- data/lib/square_connect/models/v1_tender_type.rb +25 -0
- data/lib/square_connect/models/v1_timecard.rb +1 -1
- data/lib/square_connect/models/v1_timecard_event.rb +2 -2
- data/lib/square_connect/models/v1_timecard_event_event_type.rb +25 -0
- data/lib/square_connect/models/v1_update_category_request.rb +191 -0
- data/lib/square_connect/models/v1_update_discount_request.rb +191 -0
- data/lib/square_connect/models/v1_update_employee_request.rb +191 -0
- data/lib/square_connect/models/v1_update_employee_role_request.rb +191 -0
- data/lib/square_connect/models/v1_update_fee_request.rb +191 -0
- data/lib/square_connect/models/v1_update_item_request.rb +191 -0
- data/lib/square_connect/models/v1_update_modifier_list_request.rb +2 -2
- data/lib/square_connect/models/v1_update_modifier_list_request_selection_type.rb +19 -0
- data/lib/square_connect/models/v1_update_modifier_option_request.rb +191 -0
- data/lib/square_connect/models/v1_update_order_request.rb +2 -2
- data/lib/square_connect/models/v1_update_order_request_action.rb +20 -0
- data/lib/square_connect/models/v1_update_page_cell_request.rb +191 -0
- data/lib/square_connect/models/v1_update_page_request.rb +191 -0
- data/lib/square_connect/models/v1_update_timecard_request.rb +191 -0
- data/lib/square_connect/models/v1_update_variation_request.rb +191 -0
- data/lib/square_connect/models/v1_variation.rb +3 -3
- data/lib/square_connect/models/v1_variation_inventory_alert_type.rb +23 -0
- data/lib/square_connect/models/v1_variation_pricing_type.rb +19 -0
- data/lib/square_connect/models/weekday.rb +24 -0
- data/lib/square_connect/models/workweek_config.rb +298 -0
- data/lib/square_connect/version.rb +1 -1
- data/spec/api/employees_api_spec.rb +59 -0
- data/spec/api/labor_api_spec.rb +208 -0
- data/spec/models/break_type_spec.rb +81 -0
- data/spec/models/create_break_type_request_spec.rb +45 -0
- data/spec/models/create_break_type_response_spec.rb +45 -0
- data/spec/models/create_shift_request_spec.rb +45 -0
- data/spec/models/create_shift_response_spec.rb +45 -0
- data/spec/models/date_range_spec.rb +45 -0
- data/spec/models/delete_break_type_request_spec.rb +33 -0
- data/spec/models/delete_break_type_response_spec.rb +39 -0
- data/spec/models/delete_shift_request_spec.rb +33 -0
- data/spec/models/delete_shift_response_spec.rb +39 -0
- data/spec/models/employee_spec.rb +79 -0
- data/spec/models/employee_status_spec.rb +33 -0
- data/spec/models/employee_wage_spec.rb +57 -0
- data/spec/models/get_break_type_request_spec.rb +33 -0
- data/spec/models/get_break_type_response_spec.rb +45 -0
- data/spec/models/get_employee_wage_request_spec.rb +33 -0
- data/spec/models/get_employee_wage_response_spec.rb +45 -0
- data/spec/models/get_shift_request_spec.rb +33 -0
- data/spec/models/get_shift_response_spec.rb +45 -0
- data/spec/models/list_break_types_request_spec.rb +51 -0
- data/spec/models/list_break_types_response_spec.rb +51 -0
- data/spec/models/list_employee_wages_request_spec.rb +51 -0
- data/spec/models/list_employee_wages_response_spec.rb +51 -0
- data/spec/models/list_employees_request_spec.rb +61 -0
- data/spec/models/list_employees_response_spec.rb +51 -0
- data/spec/models/list_workweek_configs_request_spec.rb +45 -0
- data/spec/models/list_workweek_configs_response_spec.rb +51 -0
- data/spec/models/model_break_spec.rb +75 -0
- data/spec/models/retrieve_employee_request_spec.rb +33 -0
- data/spec/models/retrieve_employee_response_spec.rb +45 -0
- data/spec/models/search_shifts_request_spec.rb +51 -0
- data/spec/models/search_shifts_response_spec.rb +51 -0
- data/spec/models/shift_filter_spec.rb +73 -0
- data/spec/models/shift_filter_status_spec.rb +33 -0
- data/spec/models/shift_query_spec.rb +45 -0
- data/spec/models/shift_sort_field_spec.rb +33 -0
- data/spec/models/shift_sort_spec.rb +53 -0
- data/spec/models/shift_spec.rb +109 -0
- data/spec/models/shift_status_spec.rb +33 -0
- data/spec/models/shift_wage_spec.rb +45 -0
- data/spec/models/shift_workday_matcher_spec.rb +33 -0
- data/spec/models/shift_workday_spec.rb +55 -0
- data/spec/models/update_break_type_request_spec.rb +39 -0
- data/spec/models/update_break_type_response_spec.rb +45 -0
- data/spec/models/update_shift_request_spec.rb +39 -0
- data/spec/models/update_shift_response_spec.rb +45 -0
- data/spec/models/update_workweek_config_request_spec.rb +39 -0
- data/spec/models/update_workweek_config_response_spec.rb +45 -0
- data/spec/models/v1_adjust_inventory_request_adjustment_type_spec.rb +33 -0
- data/spec/models/v1_apply_fee_request_spec.rb +33 -0
- data/spec/models/v1_apply_modifier_list_request_spec.rb +33 -0
- data/spec/models/v1_bank_account_type_spec.rb +33 -0
- data/spec/models/v1_cash_drawer_event_event_type_spec.rb +33 -0
- data/spec/models/v1_cash_drawer_shift_event_type_spec.rb +33 -0
- data/spec/models/v1_create_category_request_spec.rb +39 -0
- data/spec/models/v1_create_discount_request_spec.rb +39 -0
- data/spec/models/v1_create_employee_role_request_spec.rb +39 -0
- data/spec/models/v1_create_fee_request_spec.rb +39 -0
- data/spec/models/v1_create_item_request_spec.rb +39 -0
- data/spec/models/v1_create_modifier_list_request_spec.rb +39 -0
- data/spec/models/v1_create_modifier_option_request_spec.rb +39 -0
- data/spec/models/v1_create_page_request_spec.rb +39 -0
- data/spec/models/v1_create_refund_request_type_spec.rb +33 -0
- data/spec/models/v1_create_variation_request_spec.rb +39 -0
- data/spec/models/v1_delete_category_request_spec.rb +33 -0
- data/spec/models/v1_delete_discount_request_spec.rb +33 -0
- data/spec/models/v1_delete_fee_request_spec.rb +33 -0
- data/spec/models/v1_delete_item_request_spec.rb +33 -0
- data/spec/models/v1_delete_modifier_list_request_spec.rb +33 -0
- data/spec/models/v1_delete_modifier_option_request_spec.rb +33 -0
- data/spec/models/v1_delete_page_cell_request_spec.rb +45 -0
- data/spec/models/v1_delete_page_request_spec.rb +33 -0
- data/spec/models/v1_delete_timecard_request_spec.rb +33 -0
- data/spec/models/v1_delete_timecard_response_spec.rb +33 -0
- data/spec/models/v1_delete_variation_request_spec.rb +33 -0
- data/spec/models/v1_discount_color_spec.rb +33 -0
- data/spec/models/v1_discount_discount_type_spec.rb +33 -0
- data/spec/models/v1_employee_role_permissions_spec.rb +33 -0
- data/spec/models/v1_employee_status_spec.rb +33 -0
- data/spec/models/v1_fee_adjustment_type_spec.rb +33 -0
- data/spec/models/v1_fee_calculation_phase_spec.rb +33 -0
- data/spec/models/v1_fee_inclusion_type_spec.rb +33 -0
- data/spec/models/v1_fee_type_spec.rb +33 -0
- data/spec/models/v1_item_color_spec.rb +33 -0
- data/spec/models/v1_item_type_spec.rb +33 -0
- data/spec/models/v1_item_visibility_spec.rb +33 -0
- data/spec/models/v1_list_bank_accounts_request_spec.rb +33 -0
- data/spec/models/v1_list_bank_accounts_response_spec.rb +39 -0
- data/spec/models/v1_list_cash_drawer_shifts_request_spec.rb +55 -0
- data/spec/models/v1_list_cash_drawer_shifts_response_spec.rb +39 -0
- data/spec/models/v1_list_categories_request_spec.rb +33 -0
- data/spec/models/v1_list_categories_response_spec.rb +39 -0
- data/spec/models/v1_list_discounts_request_spec.rb +33 -0
- data/spec/models/v1_list_discounts_response_spec.rb +39 -0
- data/spec/models/v1_list_employee_roles_request_spec.rb +55 -0
- data/spec/models/v1_list_employee_roles_response_spec.rb +39 -0
- data/spec/models/v1_list_employees_request_spec.rb +95 -0
- data/spec/models/v1_list_employees_request_status_spec.rb +33 -0
- data/spec/models/v1_list_employees_response_spec.rb +39 -0
- data/spec/models/v1_list_fees_request_spec.rb +33 -0
- data/spec/models/v1_list_fees_response_spec.rb +39 -0
- data/spec/models/v1_list_inventory_request_spec.rb +45 -0
- data/spec/models/v1_list_inventory_response_spec.rb +39 -0
- data/spec/models/v1_list_items_request_spec.rb +39 -0
- data/spec/models/v1_list_items_response_spec.rb +39 -0
- data/spec/models/v1_list_locations_request_spec.rb +33 -0
- data/spec/models/v1_list_locations_response_spec.rb +39 -0
- data/spec/models/v1_list_modifier_lists_request_spec.rb +33 -0
- data/spec/models/v1_list_modifier_lists_response_spec.rb +39 -0
- data/spec/models/v1_list_orders_request_spec.rb +55 -0
- data/spec/models/v1_list_orders_response_spec.rb +39 -0
- data/spec/models/v1_list_pages_request_spec.rb +33 -0
- data/spec/models/v1_list_pages_response_spec.rb +39 -0
- data/spec/models/v1_list_payments_request_spec.rb +73 -0
- data/spec/models/v1_list_payments_response_spec.rb +39 -0
- data/spec/models/v1_list_refunds_request_spec.rb +67 -0
- data/spec/models/v1_list_refunds_response_spec.rb +39 -0
- data/spec/models/v1_list_settlements_request_spec.rb +77 -0
- data/spec/models/v1_list_settlements_request_status_spec.rb +33 -0
- data/spec/models/v1_list_settlements_response_spec.rb +39 -0
- data/spec/models/v1_list_timecard_events_request_spec.rb +39 -0
- data/spec/models/v1_list_timecard_events_response_spec.rb +39 -0
- data/spec/models/v1_list_timecards_request_spec.rb +103 -0
- data/spec/models/v1_list_timecards_response_spec.rb +39 -0
- data/spec/models/v1_merchant_account_type_spec.rb +33 -0
- data/spec/models/v1_merchant_business_type_spec.rb +33 -0
- data/spec/models/v1_modifier_list_selection_type_spec.rb +33 -0
- data/spec/models/v1_order_history_entry_action_spec.rb +33 -0
- data/spec/models/v1_order_state_spec.rb +33 -0
- data/spec/models/v1_page_cell_object_type_spec.rb +33 -0
- data/spec/models/v1_page_cell_placeholder_type_spec.rb +33 -0
- data/spec/models/v1_payment_itemization_itemization_type_spec.rb +33 -0
- data/spec/models/v1_payment_surcharge_type_spec.rb +33 -0
- data/spec/models/v1_payment_tax_inclusion_type_spec.rb +33 -0
- data/spec/models/v1_refund_type_spec.rb +33 -0
- data/spec/models/v1_remove_fee_request_spec.rb +33 -0
- data/spec/models/v1_remove_modifier_list_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_bank_account_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_business_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_cash_drawer_shift_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_employee_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_employee_role_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_item_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_modifier_list_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_order_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_payment_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_settlement_request_spec.rb +33 -0
- data/spec/models/v1_retrieve_timecard_request_spec.rb +33 -0
- data/spec/models/v1_settlement_entry_type_spec.rb +33 -0
- data/spec/models/v1_settlement_status_spec.rb +33 -0
- data/spec/models/v1_tender_entry_method_spec.rb +33 -0
- data/spec/models/v1_tender_type_spec.rb +33 -0
- data/spec/models/v1_timecard_event_event_type_spec.rb +33 -0
- data/spec/models/v1_update_category_request_spec.rb +39 -0
- data/spec/models/v1_update_discount_request_spec.rb +39 -0
- data/spec/models/v1_update_employee_request_spec.rb +39 -0
- data/spec/models/v1_update_employee_role_request_spec.rb +39 -0
- data/spec/models/v1_update_fee_request_spec.rb +39 -0
- data/spec/models/v1_update_item_request_spec.rb +39 -0
- data/spec/models/v1_update_modifier_list_request_selection_type_spec.rb +33 -0
- data/spec/models/v1_update_modifier_option_request_spec.rb +39 -0
- data/spec/models/v1_update_order_request_action_spec.rb +33 -0
- data/spec/models/v1_update_page_cell_request_spec.rb +39 -0
- data/spec/models/v1_update_page_request_spec.rb +39 -0
- data/spec/models/v1_update_timecard_request_spec.rb +39 -0
- data/spec/models/v1_update_variation_request_spec.rb +39 -0
- data/spec/models/v1_variation_inventory_alert_type_spec.rb +33 -0
- data/spec/models/v1_variation_pricing_type_spec.rb +33 -0
- data/spec/models/weekday_spec.rb +33 -0
- data/spec/models/workweek_config_spec.rb +73 -0
- metadata +691 -3
@@ -17,7 +17,7 @@ module SquareConnect
|
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
19
|
|
20
|
-
#
|
20
|
+
# AdjustInventory
|
21
21
|
# Adjusts an item variation's current available inventory.
|
22
22
|
# @param location_id The ID of the item's associated location.
|
23
23
|
# @param variation_id The ID of the variation to adjust inventory information for.
|
@@ -29,7 +29,7 @@ module SquareConnect
|
|
29
29
|
return data
|
30
30
|
end
|
31
31
|
|
32
|
-
#
|
32
|
+
# AdjustInventory
|
33
33
|
# Adjusts an item variation's current available inventory.
|
34
34
|
# @param location_id The ID of the item's associated location.
|
35
35
|
# @param variation_id The ID of the variation to adjust inventory information for.
|
@@ -59,6 +59,7 @@ module SquareConnect
|
|
59
59
|
# HTTP header 'Content-Type'
|
60
60
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
61
|
|
62
|
+
header_params['Square-Version'] = "2019-03-13"
|
62
63
|
|
63
64
|
# form parameters
|
64
65
|
form_params = {}
|
@@ -79,7 +80,7 @@ module SquareConnect
|
|
79
80
|
return data, status_code, headers
|
80
81
|
end
|
81
82
|
|
82
|
-
#
|
83
|
+
# ApplyFee
|
83
84
|
# Associates a fee with an item, meaning the fee is automatically applied to the item in Square Register.
|
84
85
|
# @param location_id The ID of the fee's associated location.
|
85
86
|
# @param item_id The ID of the item to add the fee to.
|
@@ -91,7 +92,7 @@ module SquareConnect
|
|
91
92
|
return data
|
92
93
|
end
|
93
94
|
|
94
|
-
#
|
95
|
+
# ApplyFee
|
95
96
|
# Associates a fee with an item, meaning the fee is automatically applied to the item in Square Register.
|
96
97
|
# @param location_id The ID of the fee's associated location.
|
97
98
|
# @param item_id The ID of the item to add the fee to.
|
@@ -121,6 +122,7 @@ module SquareConnect
|
|
121
122
|
# HTTP header 'Content-Type'
|
122
123
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
123
124
|
|
125
|
+
header_params['Square-Version'] = "2019-03-13"
|
124
126
|
|
125
127
|
# form parameters
|
126
128
|
form_params = {}
|
@@ -141,7 +143,7 @@ module SquareConnect
|
|
141
143
|
return data, status_code, headers
|
142
144
|
end
|
143
145
|
|
144
|
-
#
|
146
|
+
# ApplyModifierList
|
145
147
|
# Associates a modifier list with an item, meaning modifier options from the list can be applied to the item.
|
146
148
|
# @param location_id The ID of the item's associated location.
|
147
149
|
# @param modifier_list_id The ID of the modifier list to apply.
|
@@ -153,7 +155,7 @@ module SquareConnect
|
|
153
155
|
return data
|
154
156
|
end
|
155
157
|
|
156
|
-
#
|
158
|
+
# ApplyModifierList
|
157
159
|
# Associates a modifier list with an item, meaning modifier options from the list can be applied to the item.
|
158
160
|
# @param location_id The ID of the item's associated location.
|
159
161
|
# @param modifier_list_id The ID of the modifier list to apply.
|
@@ -183,6 +185,7 @@ module SquareConnect
|
|
183
185
|
# HTTP header 'Content-Type'
|
184
186
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
185
187
|
|
188
|
+
header_params['Square-Version'] = "2019-03-13"
|
186
189
|
|
187
190
|
# form parameters
|
188
191
|
form_params = {}
|
@@ -203,7 +206,7 @@ module SquareConnect
|
|
203
206
|
return data, status_code, headers
|
204
207
|
end
|
205
208
|
|
206
|
-
#
|
209
|
+
# CreateCategory
|
207
210
|
# Creates an item category.
|
208
211
|
# @param location_id The ID of the location to create an item for.
|
209
212
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -214,7 +217,7 @@ module SquareConnect
|
|
214
217
|
return data
|
215
218
|
end
|
216
219
|
|
217
|
-
#
|
220
|
+
# CreateCategory
|
218
221
|
# Creates an item category.
|
219
222
|
# @param location_id The ID of the location to create an item for.
|
220
223
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -241,6 +244,7 @@ module SquareConnect
|
|
241
244
|
# HTTP header 'Content-Type'
|
242
245
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
243
246
|
|
247
|
+
header_params['Square-Version'] = "2019-03-13"
|
244
248
|
|
245
249
|
# form parameters
|
246
250
|
form_params = {}
|
@@ -261,7 +265,7 @@ module SquareConnect
|
|
261
265
|
return data, status_code, headers
|
262
266
|
end
|
263
267
|
|
264
|
-
#
|
268
|
+
# CreateDiscount
|
265
269
|
# Creates a discount.
|
266
270
|
# @param location_id The ID of the location to create an item for.
|
267
271
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -272,7 +276,7 @@ module SquareConnect
|
|
272
276
|
return data
|
273
277
|
end
|
274
278
|
|
275
|
-
#
|
279
|
+
# CreateDiscount
|
276
280
|
# Creates a discount.
|
277
281
|
# @param location_id The ID of the location to create an item for.
|
278
282
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -299,6 +303,7 @@ module SquareConnect
|
|
299
303
|
# HTTP header 'Content-Type'
|
300
304
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
301
305
|
|
306
|
+
header_params['Square-Version'] = "2019-03-13"
|
302
307
|
|
303
308
|
# form parameters
|
304
309
|
form_params = {}
|
@@ -319,7 +324,7 @@ module SquareConnect
|
|
319
324
|
return data, status_code, headers
|
320
325
|
end
|
321
326
|
|
322
|
-
#
|
327
|
+
# CreateFee
|
323
328
|
# Creates a fee (tax).
|
324
329
|
# @param location_id The ID of the location to create a fee for.
|
325
330
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -330,7 +335,7 @@ module SquareConnect
|
|
330
335
|
return data
|
331
336
|
end
|
332
337
|
|
333
|
-
#
|
338
|
+
# CreateFee
|
334
339
|
# Creates a fee (tax).
|
335
340
|
# @param location_id The ID of the location to create a fee for.
|
336
341
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -357,6 +362,7 @@ module SquareConnect
|
|
357
362
|
# HTTP header 'Content-Type'
|
358
363
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
359
364
|
|
365
|
+
header_params['Square-Version'] = "2019-03-13"
|
360
366
|
|
361
367
|
# form parameters
|
362
368
|
form_params = {}
|
@@ -377,8 +383,8 @@ module SquareConnect
|
|
377
383
|
return data, status_code, headers
|
378
384
|
end
|
379
385
|
|
380
|
-
#
|
381
|
-
# Creates an item and at least one variation for it.
|
386
|
+
# CreateItem
|
387
|
+
# Creates an item and at least one variation for it. Item-related entities include fields you can use to associate them with entities in a non-Square system. When you create an item-related entity, you can optionally specify its `id`. This value must be unique among all IDs ever specified for the account, including those specified by other applications. You can never reuse an entity ID. If you do not specify an ID, Square generates one for the entity. Item variations have a `user_data` string that lets you associate arbitrary metadata with the variation. The string cannot exceed 255 characters.
|
382
388
|
# @param location_id The ID of the location to create an item for.
|
383
389
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
384
390
|
# @param [Hash] opts the optional parameters
|
@@ -388,8 +394,8 @@ module SquareConnect
|
|
388
394
|
return data
|
389
395
|
end
|
390
396
|
|
391
|
-
#
|
392
|
-
# Creates an item and at least one variation for it.
|
397
|
+
# CreateItem
|
398
|
+
# Creates an item and at least one variation for it. Item-related entities include fields you can use to associate them with entities in a non-Square system. When you create an item-related entity, you can optionally specify its `id`. This value must be unique among all IDs ever specified for the account, including those specified by other applications. You can never reuse an entity ID. If you do not specify an ID, Square generates one for the entity. Item variations have a `user_data` string that lets you associate arbitrary metadata with the variation. The string cannot exceed 255 characters.
|
393
399
|
# @param location_id The ID of the location to create an item for.
|
394
400
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
395
401
|
# @param [Hash] opts the optional parameters
|
@@ -415,6 +421,7 @@ module SquareConnect
|
|
415
421
|
# HTTP header 'Content-Type'
|
416
422
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
417
423
|
|
424
|
+
header_params['Square-Version'] = "2019-03-13"
|
418
425
|
|
419
426
|
# form parameters
|
420
427
|
form_params = {}
|
@@ -435,7 +442,7 @@ module SquareConnect
|
|
435
442
|
return data, status_code, headers
|
436
443
|
end
|
437
444
|
|
438
|
-
#
|
445
|
+
# CreateModifierList
|
439
446
|
# Creates an item modifier list and at least one modifier option for it.
|
440
447
|
# @param location_id The ID of the location to create a modifier list for.
|
441
448
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -446,7 +453,7 @@ module SquareConnect
|
|
446
453
|
return data
|
447
454
|
end
|
448
455
|
|
449
|
-
#
|
456
|
+
# CreateModifierList
|
450
457
|
# Creates an item modifier list and at least one modifier option for it.
|
451
458
|
# @param location_id The ID of the location to create a modifier list for.
|
452
459
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -473,6 +480,7 @@ module SquareConnect
|
|
473
480
|
# HTTP header 'Content-Type'
|
474
481
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
475
482
|
|
483
|
+
header_params['Square-Version'] = "2019-03-13"
|
476
484
|
|
477
485
|
# form parameters
|
478
486
|
form_params = {}
|
@@ -493,7 +501,7 @@ module SquareConnect
|
|
493
501
|
return data, status_code, headers
|
494
502
|
end
|
495
503
|
|
496
|
-
#
|
504
|
+
# CreateModifierOption
|
497
505
|
# Creates an item modifier option and adds it to a modifier list.
|
498
506
|
# @param location_id The ID of the item's associated location.
|
499
507
|
# @param modifier_list_id The ID of the modifier list to edit.
|
@@ -505,7 +513,7 @@ module SquareConnect
|
|
505
513
|
return data
|
506
514
|
end
|
507
515
|
|
508
|
-
#
|
516
|
+
# CreateModifierOption
|
509
517
|
# Creates an item modifier option and adds it to a modifier list.
|
510
518
|
# @param location_id The ID of the item's associated location.
|
511
519
|
# @param modifier_list_id The ID of the modifier list to edit.
|
@@ -535,6 +543,7 @@ module SquareConnect
|
|
535
543
|
# HTTP header 'Content-Type'
|
536
544
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
537
545
|
|
546
|
+
header_params['Square-Version'] = "2019-03-13"
|
538
547
|
|
539
548
|
# form parameters
|
540
549
|
form_params = {}
|
@@ -555,7 +564,7 @@ module SquareConnect
|
|
555
564
|
return data, status_code, headers
|
556
565
|
end
|
557
566
|
|
558
|
-
#
|
567
|
+
# CreatePage
|
559
568
|
# Creates a Favorites page in Square Register.
|
560
569
|
# @param location_id The ID of the location to create an item for.
|
561
570
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -566,7 +575,7 @@ module SquareConnect
|
|
566
575
|
return data
|
567
576
|
end
|
568
577
|
|
569
|
-
#
|
578
|
+
# CreatePage
|
570
579
|
# Creates a Favorites page in Square Register.
|
571
580
|
# @param location_id The ID of the location to create an item for.
|
572
581
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
@@ -593,6 +602,7 @@ module SquareConnect
|
|
593
602
|
# HTTP header 'Content-Type'
|
594
603
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
595
604
|
|
605
|
+
header_params['Square-Version'] = "2019-03-13"
|
596
606
|
|
597
607
|
# form parameters
|
598
608
|
form_params = {}
|
@@ -613,7 +623,7 @@ module SquareConnect
|
|
613
623
|
return data, status_code, headers
|
614
624
|
end
|
615
625
|
|
616
|
-
#
|
626
|
+
# CreateVariation
|
617
627
|
# Creates an item variation for an existing item.
|
618
628
|
# @param location_id The ID of the item's associated location.
|
619
629
|
# @param item_id The item's ID.
|
@@ -625,7 +635,7 @@ module SquareConnect
|
|
625
635
|
return data
|
626
636
|
end
|
627
637
|
|
628
|
-
#
|
638
|
+
# CreateVariation
|
629
639
|
# Creates an item variation for an existing item.
|
630
640
|
# @param location_id The ID of the item's associated location.
|
631
641
|
# @param item_id The item's ID.
|
@@ -655,6 +665,7 @@ module SquareConnect
|
|
655
665
|
# HTTP header 'Content-Type'
|
656
666
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
657
667
|
|
668
|
+
header_params['Square-Version'] = "2019-03-13"
|
658
669
|
|
659
670
|
# form parameters
|
660
671
|
form_params = {}
|
@@ -675,8 +686,8 @@ module SquareConnect
|
|
675
686
|
return data, status_code, headers
|
676
687
|
end
|
677
688
|
|
678
|
-
#
|
679
|
-
# Deletes an existing item category.
|
689
|
+
# DeleteCategory
|
690
|
+
# Deletes an existing item category. *Note**: DeleteCategory returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteCategoryRequest` object as documented below.
|
680
691
|
# @param location_id The ID of the item's associated location.
|
681
692
|
# @param category_id The ID of the category to delete.
|
682
693
|
# @param [Hash] opts the optional parameters
|
@@ -686,8 +697,8 @@ module SquareConnect
|
|
686
697
|
return data
|
687
698
|
end
|
688
699
|
|
689
|
-
#
|
690
|
-
# Deletes an existing item category.
|
700
|
+
# DeleteCategory
|
701
|
+
# Deletes an existing item category. *Note**: DeleteCategory returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteCategoryRequest` object as documented below.
|
691
702
|
# @param location_id The ID of the item's associated location.
|
692
703
|
# @param category_id The ID of the category to delete.
|
693
704
|
# @param [Hash] opts the optional parameters
|
@@ -713,6 +724,7 @@ module SquareConnect
|
|
713
724
|
# HTTP header 'Content-Type'
|
714
725
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
715
726
|
|
727
|
+
header_params['Square-Version'] = "2019-03-13"
|
716
728
|
|
717
729
|
# form parameters
|
718
730
|
form_params = {}
|
@@ -733,8 +745,8 @@ module SquareConnect
|
|
733
745
|
return data, status_code, headers
|
734
746
|
end
|
735
747
|
|
736
|
-
#
|
737
|
-
# Deletes an existing discount.
|
748
|
+
# DeleteDiscount
|
749
|
+
# Deletes an existing discount. *Note**: DeleteDiscount returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteDiscountRequest` object as documented below.
|
738
750
|
# @param location_id The ID of the item's associated location.
|
739
751
|
# @param discount_id The ID of the discount to delete.
|
740
752
|
# @param [Hash] opts the optional parameters
|
@@ -744,8 +756,8 @@ module SquareConnect
|
|
744
756
|
return data
|
745
757
|
end
|
746
758
|
|
747
|
-
#
|
748
|
-
# Deletes an existing discount.
|
759
|
+
# DeleteDiscount
|
760
|
+
# Deletes an existing discount. *Note**: DeleteDiscount returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteDiscountRequest` object as documented below.
|
749
761
|
# @param location_id The ID of the item's associated location.
|
750
762
|
# @param discount_id The ID of the discount to delete.
|
751
763
|
# @param [Hash] opts the optional parameters
|
@@ -771,6 +783,7 @@ module SquareConnect
|
|
771
783
|
# HTTP header 'Content-Type'
|
772
784
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
773
785
|
|
786
|
+
header_params['Square-Version'] = "2019-03-13"
|
774
787
|
|
775
788
|
# form parameters
|
776
789
|
form_params = {}
|
@@ -791,8 +804,8 @@ module SquareConnect
|
|
791
804
|
return data, status_code, headers
|
792
805
|
end
|
793
806
|
|
794
|
-
#
|
795
|
-
# Deletes an existing fee (tax).
|
807
|
+
# DeleteFee
|
808
|
+
# Deletes an existing fee (tax). *Note**: DeleteFee returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteFeeRequest` object as documented below.
|
796
809
|
# @param location_id The ID of the fee's associated location.
|
797
810
|
# @param fee_id The ID of the fee to delete.
|
798
811
|
# @param [Hash] opts the optional parameters
|
@@ -802,8 +815,8 @@ module SquareConnect
|
|
802
815
|
return data
|
803
816
|
end
|
804
817
|
|
805
|
-
#
|
806
|
-
# Deletes an existing fee (tax).
|
818
|
+
# DeleteFee
|
819
|
+
# Deletes an existing fee (tax). *Note**: DeleteFee returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteFeeRequest` object as documented below.
|
807
820
|
# @param location_id The ID of the fee's associated location.
|
808
821
|
# @param fee_id The ID of the fee to delete.
|
809
822
|
# @param [Hash] opts the optional parameters
|
@@ -829,6 +842,7 @@ module SquareConnect
|
|
829
842
|
# HTTP header 'Content-Type'
|
830
843
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
831
844
|
|
845
|
+
header_params['Square-Version'] = "2019-03-13"
|
832
846
|
|
833
847
|
# form parameters
|
834
848
|
form_params = {}
|
@@ -849,8 +863,8 @@ module SquareConnect
|
|
849
863
|
return data, status_code, headers
|
850
864
|
end
|
851
865
|
|
852
|
-
#
|
853
|
-
# Deletes an existing item and all item variations associated with it.
|
866
|
+
# DeleteItem
|
867
|
+
# Deletes an existing item and all item variations associated with it. *Note**: DeleteItem returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteItemRequest` object as documented below.
|
854
868
|
# @param location_id The ID of the item's associated location.
|
855
869
|
# @param item_id The ID of the item to modify.
|
856
870
|
# @param [Hash] opts the optional parameters
|
@@ -860,8 +874,8 @@ module SquareConnect
|
|
860
874
|
return data
|
861
875
|
end
|
862
876
|
|
863
|
-
#
|
864
|
-
# Deletes an existing item and all item variations associated with it.
|
877
|
+
# DeleteItem
|
878
|
+
# Deletes an existing item and all item variations associated with it. *Note**: DeleteItem returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteItemRequest` object as documented below.
|
865
879
|
# @param location_id The ID of the item's associated location.
|
866
880
|
# @param item_id The ID of the item to modify.
|
867
881
|
# @param [Hash] opts the optional parameters
|
@@ -887,6 +901,7 @@ module SquareConnect
|
|
887
901
|
# HTTP header 'Content-Type'
|
888
902
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
889
903
|
|
904
|
+
header_params['Square-Version'] = "2019-03-13"
|
890
905
|
|
891
906
|
# form parameters
|
892
907
|
form_params = {}
|
@@ -907,8 +922,8 @@ module SquareConnect
|
|
907
922
|
return data, status_code, headers
|
908
923
|
end
|
909
924
|
|
910
|
-
#
|
911
|
-
# Deletes an existing item modifier list and all modifier options associated with it.
|
925
|
+
# DeleteModifierList
|
926
|
+
# Deletes an existing item modifier list and all modifier options associated with it. *Note**: DeleteModifierList returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteModifierListRequest` object as documented below.
|
912
927
|
# @param location_id The ID of the item's associated location.
|
913
928
|
# @param modifier_list_id The ID of the modifier list to delete.
|
914
929
|
# @param [Hash] opts the optional parameters
|
@@ -918,8 +933,8 @@ module SquareConnect
|
|
918
933
|
return data
|
919
934
|
end
|
920
935
|
|
921
|
-
#
|
922
|
-
# Deletes an existing item modifier list and all modifier options associated with it.
|
936
|
+
# DeleteModifierList
|
937
|
+
# Deletes an existing item modifier list and all modifier options associated with it. *Note**: DeleteModifierList returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteModifierListRequest` object as documented below.
|
923
938
|
# @param location_id The ID of the item's associated location.
|
924
939
|
# @param modifier_list_id The ID of the modifier list to delete.
|
925
940
|
# @param [Hash] opts the optional parameters
|
@@ -945,6 +960,7 @@ module SquareConnect
|
|
945
960
|
# HTTP header 'Content-Type'
|
946
961
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
947
962
|
|
963
|
+
header_params['Square-Version'] = "2019-03-13"
|
948
964
|
|
949
965
|
# form parameters
|
950
966
|
form_params = {}
|
@@ -965,8 +981,8 @@ module SquareConnect
|
|
965
981
|
return data, status_code, headers
|
966
982
|
end
|
967
983
|
|
968
|
-
#
|
969
|
-
# Deletes an existing item modifier option from a modifier list.
|
984
|
+
# DeleteModifierOption
|
985
|
+
# Deletes an existing item modifier option from a modifier list. *Note**: DeleteModifierOption returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteModifierOptionRequest` object as documented below.
|
970
986
|
# @param location_id The ID of the item's associated location.
|
971
987
|
# @param modifier_list_id The ID of the modifier list to delete.
|
972
988
|
# @param modifier_option_id The ID of the modifier list to edit.
|
@@ -977,8 +993,8 @@ module SquareConnect
|
|
977
993
|
return data
|
978
994
|
end
|
979
995
|
|
980
|
-
#
|
981
|
-
# Deletes an existing item modifier option from a modifier list.
|
996
|
+
# DeleteModifierOption
|
997
|
+
# Deletes an existing item modifier option from a modifier list. *Note**: DeleteModifierOption returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteModifierOptionRequest` object as documented below.
|
982
998
|
# @param location_id The ID of the item's associated location.
|
983
999
|
# @param modifier_list_id The ID of the modifier list to delete.
|
984
1000
|
# @param modifier_option_id The ID of the modifier list to edit.
|
@@ -1007,6 +1023,7 @@ module SquareConnect
|
|
1007
1023
|
# HTTP header 'Content-Type'
|
1008
1024
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1009
1025
|
|
1026
|
+
header_params['Square-Version'] = "2019-03-13"
|
1010
1027
|
|
1011
1028
|
# form parameters
|
1012
1029
|
form_params = {}
|
@@ -1027,8 +1044,8 @@ module SquareConnect
|
|
1027
1044
|
return data, status_code, headers
|
1028
1045
|
end
|
1029
1046
|
|
1030
|
-
#
|
1031
|
-
# Deletes an existing Favorites page and all of its cells.
|
1047
|
+
# DeletePage
|
1048
|
+
# Deletes an existing Favorites page and all of its cells. *Note**: DeletePage returns nothing on success but Connect SDKs map the empty response to an empty `V1DeletePageRequest` object as documented below.
|
1032
1049
|
# @param location_id The ID of the Favorites page's associated location.
|
1033
1050
|
# @param page_id The ID of the page to delete.
|
1034
1051
|
# @param [Hash] opts the optional parameters
|
@@ -1038,8 +1055,8 @@ module SquareConnect
|
|
1038
1055
|
return data
|
1039
1056
|
end
|
1040
1057
|
|
1041
|
-
#
|
1042
|
-
# Deletes an existing Favorites page and all of its cells.
|
1058
|
+
# DeletePage
|
1059
|
+
# Deletes an existing Favorites page and all of its cells. *Note**: DeletePage returns nothing on success but Connect SDKs map the empty response to an empty `V1DeletePageRequest` object as documented below.
|
1043
1060
|
# @param location_id The ID of the Favorites page's associated location.
|
1044
1061
|
# @param page_id The ID of the page to delete.
|
1045
1062
|
# @param [Hash] opts the optional parameters
|
@@ -1065,6 +1082,7 @@ module SquareConnect
|
|
1065
1082
|
# HTTP header 'Content-Type'
|
1066
1083
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1067
1084
|
|
1085
|
+
header_params['Square-Version'] = "2019-03-13"
|
1068
1086
|
|
1069
1087
|
# form parameters
|
1070
1088
|
form_params = {}
|
@@ -1085,8 +1103,8 @@ module SquareConnect
|
|
1085
1103
|
return data, status_code, headers
|
1086
1104
|
end
|
1087
1105
|
|
1088
|
-
#
|
1089
|
-
# Deletes a cell from a Favorites page in Square Register.
|
1106
|
+
# DeletePageCell
|
1107
|
+
# Deletes a cell from a Favorites page in Square Register. *Note**: DeletePageCell returns nothing on success but Connect SDKs map the empty response to an empty `V1DeletePageCellRequest` object as documented below.
|
1090
1108
|
# @param location_id The ID of the Favorites page's associated location.
|
1091
1109
|
# @param page_id The ID of the page to delete.
|
1092
1110
|
# @param [Hash] opts the optional parameters
|
@@ -1098,8 +1116,8 @@ module SquareConnect
|
|
1098
1116
|
return data
|
1099
1117
|
end
|
1100
1118
|
|
1101
|
-
#
|
1102
|
-
# Deletes a cell from a Favorites page in Square Register.
|
1119
|
+
# DeletePageCell
|
1120
|
+
# Deletes a cell from a Favorites page in Square Register. *Note**: DeletePageCell returns nothing on success but Connect SDKs map the empty response to an empty `V1DeletePageCellRequest` object as documented below.
|
1103
1121
|
# @param location_id The ID of the Favorites page's associated location.
|
1104
1122
|
# @param page_id The ID of the page to delete.
|
1105
1123
|
# @param [Hash] opts the optional parameters
|
@@ -1129,6 +1147,7 @@ module SquareConnect
|
|
1129
1147
|
# HTTP header 'Content-Type'
|
1130
1148
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1131
1149
|
|
1150
|
+
header_params['Square-Version'] = "2019-03-13"
|
1132
1151
|
|
1133
1152
|
# form parameters
|
1134
1153
|
form_params = {}
|
@@ -1149,8 +1168,8 @@ module SquareConnect
|
|
1149
1168
|
return data, status_code, headers
|
1150
1169
|
end
|
1151
1170
|
|
1152
|
-
#
|
1153
|
-
# Deletes an existing item variation from an item.
|
1171
|
+
# DeleteVariation
|
1172
|
+
# Deletes an existing item variation from an item. *Note**: DeleteVariation returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteVariationRequest` object as documented below.
|
1154
1173
|
# @param location_id The ID of the item's associated location.
|
1155
1174
|
# @param item_id The ID of the item to delete.
|
1156
1175
|
# @param variation_id The ID of the variation to delete.
|
@@ -1161,8 +1180,8 @@ module SquareConnect
|
|
1161
1180
|
return data
|
1162
1181
|
end
|
1163
1182
|
|
1164
|
-
#
|
1165
|
-
# Deletes an existing item variation from an item.
|
1183
|
+
# DeleteVariation
|
1184
|
+
# Deletes an existing item variation from an item. *Note**: DeleteVariation returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteVariationRequest` object as documented below.
|
1166
1185
|
# @param location_id The ID of the item's associated location.
|
1167
1186
|
# @param item_id The ID of the item to delete.
|
1168
1187
|
# @param variation_id The ID of the variation to delete.
|
@@ -1191,6 +1210,7 @@ module SquareConnect
|
|
1191
1210
|
# HTTP header 'Content-Type'
|
1192
1211
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1193
1212
|
|
1213
|
+
header_params['Square-Version'] = "2019-03-13"
|
1194
1214
|
|
1195
1215
|
# form parameters
|
1196
1216
|
form_params = {}
|
@@ -1211,7 +1231,7 @@ module SquareConnect
|
|
1211
1231
|
return data, status_code, headers
|
1212
1232
|
end
|
1213
1233
|
|
1214
|
-
#
|
1234
|
+
# ListCategories
|
1215
1235
|
# Lists all of a location's item categories.
|
1216
1236
|
# @param location_id The ID of the location to list categories for.
|
1217
1237
|
# @param [Hash] opts the optional parameters
|
@@ -1221,7 +1241,7 @@ module SquareConnect
|
|
1221
1241
|
return data
|
1222
1242
|
end
|
1223
1243
|
|
1224
|
-
#
|
1244
|
+
# ListCategories
|
1225
1245
|
# Lists all of a location's item categories.
|
1226
1246
|
# @param location_id The ID of the location to list categories for.
|
1227
1247
|
# @param [Hash] opts the optional parameters
|
@@ -1245,6 +1265,7 @@ module SquareConnect
|
|
1245
1265
|
# HTTP header 'Content-Type'
|
1246
1266
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1247
1267
|
|
1268
|
+
header_params['Square-Version'] = "2019-03-13"
|
1248
1269
|
|
1249
1270
|
# form parameters
|
1250
1271
|
form_params = {}
|
@@ -1265,7 +1286,7 @@ module SquareConnect
|
|
1265
1286
|
return data, status_code, headers
|
1266
1287
|
end
|
1267
1288
|
|
1268
|
-
#
|
1289
|
+
# ListDiscounts
|
1269
1290
|
# Lists all of a location's discounts.
|
1270
1291
|
# @param location_id The ID of the location to list categories for.
|
1271
1292
|
# @param [Hash] opts the optional parameters
|
@@ -1275,7 +1296,7 @@ module SquareConnect
|
|
1275
1296
|
return data
|
1276
1297
|
end
|
1277
1298
|
|
1278
|
-
#
|
1299
|
+
# ListDiscounts
|
1279
1300
|
# Lists all of a location's discounts.
|
1280
1301
|
# @param location_id The ID of the location to list categories for.
|
1281
1302
|
# @param [Hash] opts the optional parameters
|
@@ -1299,6 +1320,7 @@ module SquareConnect
|
|
1299
1320
|
# HTTP header 'Content-Type'
|
1300
1321
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1301
1322
|
|
1323
|
+
header_params['Square-Version'] = "2019-03-13"
|
1302
1324
|
|
1303
1325
|
# form parameters
|
1304
1326
|
form_params = {}
|
@@ -1319,7 +1341,7 @@ module SquareConnect
|
|
1319
1341
|
return data, status_code, headers
|
1320
1342
|
end
|
1321
1343
|
|
1322
|
-
#
|
1344
|
+
# ListFees
|
1323
1345
|
# Lists all of a location's fees (taxes).
|
1324
1346
|
# @param location_id The ID of the location to list fees for.
|
1325
1347
|
# @param [Hash] opts the optional parameters
|
@@ -1329,7 +1351,7 @@ module SquareConnect
|
|
1329
1351
|
return data
|
1330
1352
|
end
|
1331
1353
|
|
1332
|
-
#
|
1354
|
+
# ListFees
|
1333
1355
|
# Lists all of a location's fees (taxes).
|
1334
1356
|
# @param location_id The ID of the location to list fees for.
|
1335
1357
|
# @param [Hash] opts the optional parameters
|
@@ -1353,6 +1375,7 @@ module SquareConnect
|
|
1353
1375
|
# HTTP header 'Content-Type'
|
1354
1376
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1355
1377
|
|
1378
|
+
header_params['Square-Version'] = "2019-03-13"
|
1356
1379
|
|
1357
1380
|
# form parameters
|
1358
1381
|
form_params = {}
|
@@ -1373,7 +1396,7 @@ module SquareConnect
|
|
1373
1396
|
return data, status_code, headers
|
1374
1397
|
end
|
1375
1398
|
|
1376
|
-
#
|
1399
|
+
# ListInventory
|
1377
1400
|
# Provides inventory information for all of a merchant's inventory-enabled item variations.
|
1378
1401
|
# @param location_id The ID of the item's associated location.
|
1379
1402
|
# @param [Hash] opts the optional parameters
|
@@ -1385,7 +1408,7 @@ module SquareConnect
|
|
1385
1408
|
return data
|
1386
1409
|
end
|
1387
1410
|
|
1388
|
-
#
|
1411
|
+
# ListInventory
|
1389
1412
|
# Provides inventory information for all of a merchant's inventory-enabled item variations.
|
1390
1413
|
# @param location_id The ID of the item's associated location.
|
1391
1414
|
# @param [Hash] opts the optional parameters
|
@@ -1398,10 +1421,6 @@ module SquareConnect
|
|
1398
1421
|
end
|
1399
1422
|
# verify the required parameter 'location_id' is set
|
1400
1423
|
fail ArgumentError, "Missing the required parameter 'location_id' when calling V1ItemsApi.list_inventory" if location_id.nil?
|
1401
|
-
if !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
1402
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling V1ItemsApi.list_inventory, must be smaller than or equal to 1000.'
|
1403
|
-
end
|
1404
|
-
|
1405
1424
|
# resource path
|
1406
1425
|
local_var_path = "/v1/{location_id}/inventory".sub('{format}','json').sub('{' + 'location_id' + '}', location_id.to_s)
|
1407
1426
|
|
@@ -1417,6 +1436,7 @@ module SquareConnect
|
|
1417
1436
|
# HTTP header 'Content-Type'
|
1418
1437
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1419
1438
|
|
1439
|
+
header_params['Square-Version'] = "2019-03-13"
|
1420
1440
|
|
1421
1441
|
# form parameters
|
1422
1442
|
form_params = {}
|
@@ -1437,7 +1457,7 @@ module SquareConnect
|
|
1437
1457
|
return data, status_code, headers
|
1438
1458
|
end
|
1439
1459
|
|
1440
|
-
#
|
1460
|
+
# ListItems
|
1441
1461
|
# Provides summary information for all of a location's items.
|
1442
1462
|
# @param location_id The ID of the location to list items for.
|
1443
1463
|
# @param [Hash] opts the optional parameters
|
@@ -1448,7 +1468,7 @@ module SquareConnect
|
|
1448
1468
|
return data
|
1449
1469
|
end
|
1450
1470
|
|
1451
|
-
#
|
1471
|
+
# ListItems
|
1452
1472
|
# Provides summary information for all of a location's items.
|
1453
1473
|
# @param location_id The ID of the location to list items for.
|
1454
1474
|
# @param [Hash] opts the optional parameters
|
@@ -1474,6 +1494,7 @@ module SquareConnect
|
|
1474
1494
|
# HTTP header 'Content-Type'
|
1475
1495
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1476
1496
|
|
1497
|
+
header_params['Square-Version'] = "2019-03-13"
|
1477
1498
|
|
1478
1499
|
# form parameters
|
1479
1500
|
form_params = {}
|
@@ -1494,7 +1515,7 @@ module SquareConnect
|
|
1494
1515
|
return data, status_code, headers
|
1495
1516
|
end
|
1496
1517
|
|
1497
|
-
#
|
1518
|
+
# ListModifierLists
|
1498
1519
|
# Lists all of a location's modifier lists.
|
1499
1520
|
# @param location_id The ID of the location to list modifier lists for.
|
1500
1521
|
# @param [Hash] opts the optional parameters
|
@@ -1504,7 +1525,7 @@ module SquareConnect
|
|
1504
1525
|
return data
|
1505
1526
|
end
|
1506
1527
|
|
1507
|
-
#
|
1528
|
+
# ListModifierLists
|
1508
1529
|
# Lists all of a location's modifier lists.
|
1509
1530
|
# @param location_id The ID of the location to list modifier lists for.
|
1510
1531
|
# @param [Hash] opts the optional parameters
|
@@ -1528,6 +1549,7 @@ module SquareConnect
|
|
1528
1549
|
# HTTP header 'Content-Type'
|
1529
1550
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1530
1551
|
|
1552
|
+
header_params['Square-Version'] = "2019-03-13"
|
1531
1553
|
|
1532
1554
|
# form parameters
|
1533
1555
|
form_params = {}
|
@@ -1548,7 +1570,7 @@ module SquareConnect
|
|
1548
1570
|
return data, status_code, headers
|
1549
1571
|
end
|
1550
1572
|
|
1551
|
-
#
|
1573
|
+
# ListPages
|
1552
1574
|
# Lists all of a location's Favorites pages in Square Register.
|
1553
1575
|
# @param location_id The ID of the location to list Favorites pages for.
|
1554
1576
|
# @param [Hash] opts the optional parameters
|
@@ -1558,7 +1580,7 @@ module SquareConnect
|
|
1558
1580
|
return data
|
1559
1581
|
end
|
1560
1582
|
|
1561
|
-
#
|
1583
|
+
# ListPages
|
1562
1584
|
# Lists all of a location's Favorites pages in Square Register.
|
1563
1585
|
# @param location_id The ID of the location to list Favorites pages for.
|
1564
1586
|
# @param [Hash] opts the optional parameters
|
@@ -1582,6 +1604,7 @@ module SquareConnect
|
|
1582
1604
|
# HTTP header 'Content-Type'
|
1583
1605
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1584
1606
|
|
1607
|
+
header_params['Square-Version'] = "2019-03-13"
|
1585
1608
|
|
1586
1609
|
# form parameters
|
1587
1610
|
form_params = {}
|
@@ -1602,7 +1625,7 @@ module SquareConnect
|
|
1602
1625
|
return data, status_code, headers
|
1603
1626
|
end
|
1604
1627
|
|
1605
|
-
#
|
1628
|
+
# RemoveFee
|
1606
1629
|
# Removes a fee assocation from an item, meaning the fee is no longer automatically applied to the item in Square Register.
|
1607
1630
|
# @param location_id The ID of the fee's associated location.
|
1608
1631
|
# @param item_id The ID of the item to add the fee to.
|
@@ -1614,7 +1637,7 @@ module SquareConnect
|
|
1614
1637
|
return data
|
1615
1638
|
end
|
1616
1639
|
|
1617
|
-
#
|
1640
|
+
# RemoveFee
|
1618
1641
|
# Removes a fee assocation from an item, meaning the fee is no longer automatically applied to the item in Square Register.
|
1619
1642
|
# @param location_id The ID of the fee's associated location.
|
1620
1643
|
# @param item_id The ID of the item to add the fee to.
|
@@ -1644,6 +1667,7 @@ module SquareConnect
|
|
1644
1667
|
# HTTP header 'Content-Type'
|
1645
1668
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1646
1669
|
|
1670
|
+
header_params['Square-Version'] = "2019-03-13"
|
1647
1671
|
|
1648
1672
|
# form parameters
|
1649
1673
|
form_params = {}
|
@@ -1664,7 +1688,7 @@ module SquareConnect
|
|
1664
1688
|
return data, status_code, headers
|
1665
1689
|
end
|
1666
1690
|
|
1667
|
-
#
|
1691
|
+
# RemoveModifierList
|
1668
1692
|
# Removes a modifier list association from an item, meaning modifier options from the list can no longer be applied to the item.
|
1669
1693
|
# @param location_id The ID of the item's associated location.
|
1670
1694
|
# @param modifier_list_id The ID of the modifier list to remove.
|
@@ -1676,7 +1700,7 @@ module SquareConnect
|
|
1676
1700
|
return data
|
1677
1701
|
end
|
1678
1702
|
|
1679
|
-
#
|
1703
|
+
# RemoveModifierList
|
1680
1704
|
# Removes a modifier list association from an item, meaning modifier options from the list can no longer be applied to the item.
|
1681
1705
|
# @param location_id The ID of the item's associated location.
|
1682
1706
|
# @param modifier_list_id The ID of the modifier list to remove.
|
@@ -1706,6 +1730,7 @@ module SquareConnect
|
|
1706
1730
|
# HTTP header 'Content-Type'
|
1707
1731
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1708
1732
|
|
1733
|
+
header_params['Square-Version'] = "2019-03-13"
|
1709
1734
|
|
1710
1735
|
# form parameters
|
1711
1736
|
form_params = {}
|
@@ -1726,7 +1751,7 @@ module SquareConnect
|
|
1726
1751
|
return data, status_code, headers
|
1727
1752
|
end
|
1728
1753
|
|
1729
|
-
#
|
1754
|
+
# RetrieveItem
|
1730
1755
|
# Provides the details for a single item, including associated modifier lists and fees.
|
1731
1756
|
# @param location_id The ID of the item's associated location.
|
1732
1757
|
# @param item_id The item's ID.
|
@@ -1737,7 +1762,7 @@ module SquareConnect
|
|
1737
1762
|
return data
|
1738
1763
|
end
|
1739
1764
|
|
1740
|
-
#
|
1765
|
+
# RetrieveItem
|
1741
1766
|
# Provides the details for a single item, including associated modifier lists and fees.
|
1742
1767
|
# @param location_id The ID of the item's associated location.
|
1743
1768
|
# @param item_id The item's ID.
|
@@ -1764,6 +1789,7 @@ module SquareConnect
|
|
1764
1789
|
# HTTP header 'Content-Type'
|
1765
1790
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1766
1791
|
|
1792
|
+
header_params['Square-Version'] = "2019-03-13"
|
1767
1793
|
|
1768
1794
|
# form parameters
|
1769
1795
|
form_params = {}
|
@@ -1784,7 +1810,7 @@ module SquareConnect
|
|
1784
1810
|
return data, status_code, headers
|
1785
1811
|
end
|
1786
1812
|
|
1787
|
-
#
|
1813
|
+
# RetrieveModifierList
|
1788
1814
|
# Provides the details for a single modifier list.
|
1789
1815
|
# @param location_id The ID of the item's associated location.
|
1790
1816
|
# @param modifier_list_id The modifier list's ID.
|
@@ -1795,7 +1821,7 @@ module SquareConnect
|
|
1795
1821
|
return data
|
1796
1822
|
end
|
1797
1823
|
|
1798
|
-
#
|
1824
|
+
# RetrieveModifierList
|
1799
1825
|
# Provides the details for a single modifier list.
|
1800
1826
|
# @param location_id The ID of the item's associated location.
|
1801
1827
|
# @param modifier_list_id The modifier list's ID.
|
@@ -1822,6 +1848,7 @@ module SquareConnect
|
|
1822
1848
|
# HTTP header 'Content-Type'
|
1823
1849
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1824
1850
|
|
1851
|
+
header_params['Square-Version'] = "2019-03-13"
|
1825
1852
|
|
1826
1853
|
# form parameters
|
1827
1854
|
form_params = {}
|
@@ -1842,7 +1869,7 @@ module SquareConnect
|
|
1842
1869
|
return data, status_code, headers
|
1843
1870
|
end
|
1844
1871
|
|
1845
|
-
#
|
1872
|
+
# UpdateCategory
|
1846
1873
|
# Modifies the details of an existing item category.
|
1847
1874
|
# @param location_id The ID of the category's associated location.
|
1848
1875
|
# @param category_id The ID of the category to edit.
|
@@ -1854,7 +1881,7 @@ module SquareConnect
|
|
1854
1881
|
return data
|
1855
1882
|
end
|
1856
1883
|
|
1857
|
-
#
|
1884
|
+
# UpdateCategory
|
1858
1885
|
# Modifies the details of an existing item category.
|
1859
1886
|
# @param location_id The ID of the category's associated location.
|
1860
1887
|
# @param category_id The ID of the category to edit.
|
@@ -1884,6 +1911,7 @@ module SquareConnect
|
|
1884
1911
|
# HTTP header 'Content-Type'
|
1885
1912
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1886
1913
|
|
1914
|
+
header_params['Square-Version'] = "2019-03-13"
|
1887
1915
|
|
1888
1916
|
# form parameters
|
1889
1917
|
form_params = {}
|
@@ -1904,7 +1932,7 @@ module SquareConnect
|
|
1904
1932
|
return data, status_code, headers
|
1905
1933
|
end
|
1906
1934
|
|
1907
|
-
#
|
1935
|
+
# UpdateDiscount
|
1908
1936
|
# Modifies the details of an existing discount.
|
1909
1937
|
# @param location_id The ID of the category's associated location.
|
1910
1938
|
# @param discount_id The ID of the discount to edit.
|
@@ -1916,7 +1944,7 @@ module SquareConnect
|
|
1916
1944
|
return data
|
1917
1945
|
end
|
1918
1946
|
|
1919
|
-
#
|
1947
|
+
# UpdateDiscount
|
1920
1948
|
# Modifies the details of an existing discount.
|
1921
1949
|
# @param location_id The ID of the category's associated location.
|
1922
1950
|
# @param discount_id The ID of the discount to edit.
|
@@ -1946,6 +1974,7 @@ module SquareConnect
|
|
1946
1974
|
# HTTP header 'Content-Type'
|
1947
1975
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1948
1976
|
|
1977
|
+
header_params['Square-Version'] = "2019-03-13"
|
1949
1978
|
|
1950
1979
|
# form parameters
|
1951
1980
|
form_params = {}
|
@@ -1966,7 +1995,7 @@ module SquareConnect
|
|
1966
1995
|
return data, status_code, headers
|
1967
1996
|
end
|
1968
1997
|
|
1969
|
-
#
|
1998
|
+
# UpdateFee
|
1970
1999
|
# Modifies the details of an existing fee (tax).
|
1971
2000
|
# @param location_id The ID of the fee's associated location.
|
1972
2001
|
# @param fee_id The ID of the fee to edit.
|
@@ -1978,7 +2007,7 @@ module SquareConnect
|
|
1978
2007
|
return data
|
1979
2008
|
end
|
1980
2009
|
|
1981
|
-
#
|
2010
|
+
# UpdateFee
|
1982
2011
|
# Modifies the details of an existing fee (tax).
|
1983
2012
|
# @param location_id The ID of the fee's associated location.
|
1984
2013
|
# @param fee_id The ID of the fee to edit.
|
@@ -2008,6 +2037,7 @@ module SquareConnect
|
|
2008
2037
|
# HTTP header 'Content-Type'
|
2009
2038
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2010
2039
|
|
2040
|
+
header_params['Square-Version'] = "2019-03-13"
|
2011
2041
|
|
2012
2042
|
# form parameters
|
2013
2043
|
form_params = {}
|
@@ -2028,7 +2058,7 @@ module SquareConnect
|
|
2028
2058
|
return data, status_code, headers
|
2029
2059
|
end
|
2030
2060
|
|
2031
|
-
#
|
2061
|
+
# UpdateItem
|
2032
2062
|
# Modifies the core details of an existing item.
|
2033
2063
|
# @param location_id The ID of the item's associated location.
|
2034
2064
|
# @param item_id The ID of the item to modify.
|
@@ -2040,7 +2070,7 @@ module SquareConnect
|
|
2040
2070
|
return data
|
2041
2071
|
end
|
2042
2072
|
|
2043
|
-
#
|
2073
|
+
# UpdateItem
|
2044
2074
|
# Modifies the core details of an existing item.
|
2045
2075
|
# @param location_id The ID of the item's associated location.
|
2046
2076
|
# @param item_id The ID of the item to modify.
|
@@ -2070,6 +2100,7 @@ module SquareConnect
|
|
2070
2100
|
# HTTP header 'Content-Type'
|
2071
2101
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2072
2102
|
|
2103
|
+
header_params['Square-Version'] = "2019-03-13"
|
2073
2104
|
|
2074
2105
|
# form parameters
|
2075
2106
|
form_params = {}
|
@@ -2090,7 +2121,7 @@ module SquareConnect
|
|
2090
2121
|
return data, status_code, headers
|
2091
2122
|
end
|
2092
2123
|
|
2093
|
-
#
|
2124
|
+
# UpdateModifierList
|
2094
2125
|
# Modifies the details of an existing item modifier list.
|
2095
2126
|
# @param location_id The ID of the item's associated location.
|
2096
2127
|
# @param modifier_list_id The ID of the modifier list to edit.
|
@@ -2102,7 +2133,7 @@ module SquareConnect
|
|
2102
2133
|
return data
|
2103
2134
|
end
|
2104
2135
|
|
2105
|
-
#
|
2136
|
+
# UpdateModifierList
|
2106
2137
|
# Modifies the details of an existing item modifier list.
|
2107
2138
|
# @param location_id The ID of the item's associated location.
|
2108
2139
|
# @param modifier_list_id The ID of the modifier list to edit.
|
@@ -2132,6 +2163,7 @@ module SquareConnect
|
|
2132
2163
|
# HTTP header 'Content-Type'
|
2133
2164
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2134
2165
|
|
2166
|
+
header_params['Square-Version'] = "2019-03-13"
|
2135
2167
|
|
2136
2168
|
# form parameters
|
2137
2169
|
form_params = {}
|
@@ -2152,7 +2184,7 @@ module SquareConnect
|
|
2152
2184
|
return data, status_code, headers
|
2153
2185
|
end
|
2154
2186
|
|
2155
|
-
#
|
2187
|
+
# UpdateModifierOption
|
2156
2188
|
# Modifies the details of an existing item modifier option.
|
2157
2189
|
# @param location_id The ID of the item's associated location.
|
2158
2190
|
# @param modifier_list_id The ID of the modifier list to edit.
|
@@ -2165,7 +2197,7 @@ module SquareConnect
|
|
2165
2197
|
return data
|
2166
2198
|
end
|
2167
2199
|
|
2168
|
-
#
|
2200
|
+
# UpdateModifierOption
|
2169
2201
|
# Modifies the details of an existing item modifier option.
|
2170
2202
|
# @param location_id The ID of the item's associated location.
|
2171
2203
|
# @param modifier_list_id The ID of the modifier list to edit.
|
@@ -2198,6 +2230,7 @@ module SquareConnect
|
|
2198
2230
|
# HTTP header 'Content-Type'
|
2199
2231
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2200
2232
|
|
2233
|
+
header_params['Square-Version'] = "2019-03-13"
|
2201
2234
|
|
2202
2235
|
# form parameters
|
2203
2236
|
form_params = {}
|
@@ -2218,7 +2251,7 @@ module SquareConnect
|
|
2218
2251
|
return data, status_code, headers
|
2219
2252
|
end
|
2220
2253
|
|
2221
|
-
#
|
2254
|
+
# UpdatePage
|
2222
2255
|
# Modifies the details of a Favorites page in Square Register.
|
2223
2256
|
# @param location_id The ID of the Favorites page's associated location
|
2224
2257
|
# @param page_id The ID of the page to modify.
|
@@ -2230,7 +2263,7 @@ module SquareConnect
|
|
2230
2263
|
return data
|
2231
2264
|
end
|
2232
2265
|
|
2233
|
-
#
|
2266
|
+
# UpdatePage
|
2234
2267
|
# Modifies the details of a Favorites page in Square Register.
|
2235
2268
|
# @param location_id The ID of the Favorites page's associated location
|
2236
2269
|
# @param page_id The ID of the page to modify.
|
@@ -2260,6 +2293,7 @@ module SquareConnect
|
|
2260
2293
|
# HTTP header 'Content-Type'
|
2261
2294
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2262
2295
|
|
2296
|
+
header_params['Square-Version'] = "2019-03-13"
|
2263
2297
|
|
2264
2298
|
# form parameters
|
2265
2299
|
form_params = {}
|
@@ -2280,7 +2314,7 @@ module SquareConnect
|
|
2280
2314
|
return data, status_code, headers
|
2281
2315
|
end
|
2282
2316
|
|
2283
|
-
#
|
2317
|
+
# UpdatePageCell
|
2284
2318
|
# Modifies a cell of a Favorites page in Square Register.
|
2285
2319
|
# @param location_id The ID of the Favorites page's associated location.
|
2286
2320
|
# @param page_id The ID of the page the cell belongs to.
|
@@ -2292,7 +2326,7 @@ module SquareConnect
|
|
2292
2326
|
return data
|
2293
2327
|
end
|
2294
2328
|
|
2295
|
-
#
|
2329
|
+
# UpdatePageCell
|
2296
2330
|
# Modifies a cell of a Favorites page in Square Register.
|
2297
2331
|
# @param location_id The ID of the Favorites page's associated location.
|
2298
2332
|
# @param page_id The ID of the page the cell belongs to.
|
@@ -2322,6 +2356,7 @@ module SquareConnect
|
|
2322
2356
|
# HTTP header 'Content-Type'
|
2323
2357
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2324
2358
|
|
2359
|
+
header_params['Square-Version'] = "2019-03-13"
|
2325
2360
|
|
2326
2361
|
# form parameters
|
2327
2362
|
form_params = {}
|
@@ -2342,7 +2377,7 @@ module SquareConnect
|
|
2342
2377
|
return data, status_code, headers
|
2343
2378
|
end
|
2344
2379
|
|
2345
|
-
#
|
2380
|
+
# UpdateVariation
|
2346
2381
|
# Modifies the details of an existing item variation.
|
2347
2382
|
# @param location_id The ID of the item's associated location.
|
2348
2383
|
# @param item_id The ID of the item to modify.
|
@@ -2355,7 +2390,7 @@ module SquareConnect
|
|
2355
2390
|
return data
|
2356
2391
|
end
|
2357
2392
|
|
2358
|
-
#
|
2393
|
+
# UpdateVariation
|
2359
2394
|
# Modifies the details of an existing item variation.
|
2360
2395
|
# @param location_id The ID of the item's associated location.
|
2361
2396
|
# @param item_id The ID of the item to modify.
|
@@ -2388,6 +2423,7 @@ module SquareConnect
|
|
2388
2423
|
# HTTP header 'Content-Type'
|
2389
2424
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2390
2425
|
|
2426
|
+
header_params['Square-Version'] = "2019-03-13"
|
2391
2427
|
|
2392
2428
|
# form parameters
|
2393
2429
|
form_params = {}
|