InventoryAdjustment

December 17, 2019 ยท View on GitHub

Description

Represents a change in state or quantity of product inventory at a particular time and location.

Properties

NameGetterSetterTypeDescriptionNotes
idgetId()setId($value)stringA unique ID generated by Square for the `InventoryAdjustment`.[optional]
reference_idgetReferenceId()setReferenceId($value)stringAn optional ID provided by the application to tie the `InventoryAdjustment` to an external system.[optional]
from_stategetFromState()setFromState($value)stringThe `InventoryState` of the related quantity of items before the adjustment. See InventoryState for possible values[optional]
to_stategetToState()setToState($value)stringThe `InventoryState` of the related quantity of items after the adjustment. See InventoryState for possible values[optional]
location_idgetLocationId()setLocationId($value)stringThe Square ID of the `Location` where the related quantity of items are being tracked.[optional]
catalog_object_idgetCatalogObjectId()setCatalogObjectId($value)stringThe Square generated ID of the `CatalogObject` being tracked.[optional]
catalog_object_typegetCatalogObjectType()setCatalogObjectType($value)stringThe `CatalogObjectType` of the `CatalogObject` being tracked. Tracking is only supported for the `ITEM_VARIATION` type.[optional]
quantitygetQuantity()setQuantity($value)stringThe number of items affected by the adjustment as a decimal string. Can support up to 5 digits after the decimal point. Important: The Point of Sale app and Dashboard do not currently support decimal quantities. If a Point of Sale app or Dashboard attempts to read a decimal quantity on inventory counts or adjustments, the quantity will be rounded down to the nearest integer. For example, `2.5` will become `2`, and `-2.5` will become `-3`. Read Decimal Quantities (BETA) for more information.[optional] [beta]
total_price_moneygetTotalPriceMoney()setTotalPriceMoney($value)\SquareConnect\Model\MoneyThe read-only total price paid for goods associated with the adjustment. Present if and only if `to_state` is `SOLD`. Always non-negative.[optional]
occurred_atgetOccurredAt()setOccurredAt($value)stringA client-generated timestamp in RFC 3339 format that indicates when the adjustment took place. For write actions, the `occurred_at` timestamp cannot be older than 24 hours or in the future relative to the time of the request.[optional]
created_atgetCreatedAt()setCreatedAt($value)stringA read-only timestamp in RFC 3339 format that indicates when Square received the adjustment.[optional]
sourcegetSource()setSource($value)\SquareConnect\Model\SourceApplicationRead-only information about the application that caused the inventory adjustment.[optional]
employee_idgetEmployeeId()setEmployeeId($value)stringThe Square ID of the `Employee` responsible for the inventory adjustment.[optional]
transaction_idgetTransactionId()setTransactionId($value)stringThe read-only Square ID of the [Transaction][#type-transaction] that caused the adjustment. Only relevant for payment-related state transitions.[optional]
refund_idgetRefundId()setRefundId($value)stringThe read-only Square ID of the [Refund][#type-refund] that caused the adjustment. Only relevant for refund-related state transitions.[optional]
purchase_order_idgetPurchaseOrderId()setPurchaseOrderId($value)stringThe read-only Square ID of the purchase order that caused the adjustment. Only relevant for state transitions from the Square for Retail app.[optional]
goods_receipt_idgetGoodsReceiptId()setGoodsReceiptId($value)stringThe read-only Square ID of the Square goods receipt that caused the adjustment. Only relevant for state transitions from the Square for Retail app.[optional]

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

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