CashDrawerShift

December 17, 2019 ยท View on GitHub

Description

This model gives the details of a cash drawer shift. The cash_payment_money, cash_refund_money, cash_paid_in_money, and cash_paid_out_money fields are all computed by summing their respective event types.

Properties

NameGetterSetterTypeDescriptionNotes
idgetId()setId($value)stringThe shift unique ID.[optional]
stategetState()setState($value)stringThe shift current state. See CashDrawerShiftState for possible values[optional]
opened_atgetOpenedAt()setOpenedAt($value)stringThe time when the shift began, in ISO 8601 format.[optional]
ended_atgetEndedAt()setEndedAt($value)stringThe time when the shift ended, in ISO 8601 format.[optional]
closed_atgetClosedAt()setClosedAt($value)stringThe time when the shift was closed, in ISO 8601 format.[optional]
employee_idsgetEmployeeIds()setEmployeeIds($value)string[]The IDs of all employees that were logged into Square Point of Sale at any point while the cash drawer shift was open.[optional]
opening_employee_idgetOpeningEmployeeId()setOpeningEmployeeId($value)stringThe ID of the employee that started the cash drawer shift.[optional]
ending_employee_idgetEndingEmployeeId()setEndingEmployeeId($value)stringThe ID of the employee that ended the cash drawer shift.[optional]
closing_employee_idgetClosingEmployeeId()setClosingEmployeeId($value)stringThe ID of the employee that closed the cash drawer shift by auditing the cash drawer contents.[optional]
descriptiongetDescription()setDescription($value)stringThe free-form text description of a cash drawer by an employee.[optional]
opened_cash_moneygetOpenedCashMoney()setOpenedCashMoney($value)\SquareConnect\Model\MoneyThe amount of money in the cash drawer at the start of the shift. The amount must be greater than or equal to zero.[optional]
cash_payment_moneygetCashPaymentMoney()setCashPaymentMoney($value)\SquareConnect\Model\MoneyThe amount of money added to the cash drawer from cash payments. This is computed by summing all events with the types CASH_TENDER_PAYMENT and CASH_TENDER_CANCELED_PAYMENT. The amount is always greater than or equal to zero.[optional]
cash_refunds_moneygetCashRefundsMoney()setCashRefundsMoney($value)\SquareConnect\Model\MoneyThe amount of money removed from the cash drawer from cash refunds. It is computed by summing the events of type CASH_TENDER_REFUND. The amount is always greater than or equal to zero.[optional]
cash_paid_in_moneygetCashPaidInMoney()setCashPaidInMoney($value)\SquareConnect\Model\MoneyThe amount of money added to the cash drawer for reasons other than cash payments. It is computed by summing the events of type PAID_IN. The amount is always greater than or equal to zero.[optional]
cash_paid_out_moneygetCashPaidOutMoney()setCashPaidOutMoney($value)\SquareConnect\Model\MoneyThe amount of money removed from the cash drawer for reasons other than cash refunds. It is computed by summing the events of type PAID_OUT. The amount is always greater than or equal to zero.[optional]
expected_cash_moneygetExpectedCashMoney()setExpectedCashMoney($value)\SquareConnect\Model\MoneyThe amount of money that should be in the cash drawer at the end of the shift, based on the shift's other money amounts. This can be negative if employees have not correctly recorded all the events on the cash drawer. cash_paid_out_money is a summation of amounts from cash_payment_money (zero or positive), cash_refunds_money (zero or negative), cash_paid_in_money (zero or positive), and cash_paid_out_money (zero or negative) event types.[optional]
closed_cash_moneygetClosedCashMoney()setClosedCashMoney($value)\SquareConnect\Model\MoneyThe amount of money found in the cash drawer at the end of the shift by an auditing employee. The amount should be positive.[optional]
devicegetDevice()setDevice($value)\SquareConnect\Model\CashDrawerDeviceThe device running Square Point of Sale that was connected to the cash drawer.[optional]

Note: All properties are protected and only accessed via getters and setters.

[Back to Model list] [Back to API list] [Back to README]