✏️ 编辑:CashDrawerEventType.php
路径:
/home/forge/woocommerce-square/vendor/square/square/src/Models/CashDrawerEventType.php
大小:2.54 KB · 修改:2025-12-23 20:26:26 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php declare(strict_types=1); namespace Square\Models; /** * The types of events on a CashDrawerShift. * Each event type represents an employee action on the actual cash drawer * represented by a CashDrawerShift. */ class CashDrawerEventType { /** * Triggered when a no sale occurs on a cash drawer. * A CashDrawerEvent of this type must have a zero money amount. */ public const NO_SALE = 'NO_SALE'; /** * Triggered when a cash tender payment occurs on a cash drawer. * A CashDrawerEvent of this type can must not have a negative amount. */ public const CASH_TENDER_PAYMENT = 'CASH_TENDER_PAYMENT'; /** * Triggered when a check, gift card, or other non-cash payment occurs * on a cash drawer. * A CashDrawerEvent of this type must have a zero money amount. */ public const OTHER_TENDER_PAYMENT = 'OTHER_TENDER_PAYMENT'; /** * Triggered when a split tender bill is cancelled after cash has been * tendered. * A CASH_TENDER_CANCELLED_PAYMENT should have a corresponding CASH_TENDER_PAYMENT. * A CashDrawerEvent of this type must not have a negative amount. */ public const CASH_TENDER_CANCELLED_PAYMENT = 'CASH_TENDER_CANCELLED_PAYMENT'; /** * Triggered when a split tender bill is cancelled after a non-cash tender * has been tendered. An OTHER_TENDER_CANCELLED_PAYMENT should have a corresponding * OTHER_TENDER_PAYMENT. A CashDrawerEvent of this type must have a zero money * amount. */ public const OTHER_TENDER_CANCELLED_PAYMENT = 'OTHER_TENDER_CANCELLED_PAYMENT'; /** * Triggered when a cash tender refund occurs. * A CashDrawerEvent of this type must not have a negative amount. */ public const CASH_TENDER_REFUND = 'CASH_TENDER_REFUND'; /** * Triggered when an other tender refund occurs. * A CashDrawerEvent of this type must have a zero money amount. */ public const OTHER_TENDER_REFUND = 'OTHER_TENDER_REFUND'; /** * Triggered when money unrelated to a payment is added to the cash drawer. * For example, an employee adds coins to the drawer. * A CashDrawerEvent of this type must not have a negative amount. */ public const PAID_IN = 'PAID_IN'; /** * Triggered when money is removed from the drawer for other reasons * than making change. * For example, an employee pays a delivery person with cash from the cash drawer. * A CashDrawerEvent of this type must not have a negative amount. */ public const PAID_OUT = 'PAID_OUT'; }
💾 保存
取消
保存为 UTF-8,换行统一为 LF