OrderReturnLineItem

February 26, 2020 ยท View on GitHub

Description

The line item being returned in an Order.

Properties

NameGetterSetterTypeDescriptionNotes
uidgetUid()setUid($value)stringUnique identifier for this return line item entry.[optional]
source_line_item_uidgetSourceLineItemUid()setSourceLineItemUid($value)string`uid` of the LineItem in the original sale Order.[optional]
namegetName()setName($value)stringThe name of the line item.[optional]
quantitygetQuantity()setQuantity($value)stringThe quantity returned, formatted as a decimal number. For example: `"3"`. Line items with a `quantity_unit` can have non-integer quantities. For example: `"1.70000"`.
quantity_unitgetQuantityUnit()setQuantityUnit($value)\SquareConnect\Model\OrderQuantityUnitThe unit and precision that this return line item's quantity is measured in.[optional]
notegetNote()setNote($value)stringThe note of the returned line item.[optional]
catalog_object_idgetCatalogObjectId()setCatalogObjectId($value)stringThe `CatalogItemVariation` id applied to this returned line item.[optional]
variation_namegetVariationName()setVariationName($value)stringThe name of the variation applied to this returned line item.[optional]
return_modifiersgetReturnModifiers()setReturnModifiers($value)\SquareConnect\Model\OrderReturnLineItemModifier[]The `CatalogModifier`s applied to this line item.[optional]
applied_taxesgetAppliedTaxes()setAppliedTaxes($value)\SquareConnect\Model\OrderLineItemAppliedTax[]The list of references to `OrderReturnTax` entities applied to the returned line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderReturnTax` applied to the returned line item. On reads, the amount applied is populated.[optional]
applied_discountsgetAppliedDiscounts()setAppliedDiscounts($value)\SquareConnect\Model\OrderLineItemAppliedDiscount[]The list of references to `OrderReturnDiscount` entities applied to the returned line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderReturnDiscount` applied to the returned line item. On reads, the amount applied is populated.[optional]
base_price_moneygetBasePriceMoney()setBasePriceMoney($value)\SquareConnect\Model\MoneyThe base price for a single unit of the line item.[optional]
variation_total_price_moneygetVariationTotalPriceMoney()setVariationTotalPriceMoney($value)\SquareConnect\Model\MoneyThe total price of all item variations returned in this line item. Calculated as `base_price_money` multiplied by `quantity`. Does not include modifiers.[optional]
gross_return_moneygetGrossReturnMoney()setGrossReturnMoney($value)\SquareConnect\Model\MoneyThe gross return amount of money calculated as (item base price + modifiers price) * quantity.[optional]
total_tax_moneygetTotalTaxMoney()setTotalTaxMoney($value)\SquareConnect\Model\MoneyThe total tax amount of money to return for the line item.[optional]
total_discount_moneygetTotalDiscountMoney()setTotalDiscountMoney($value)\SquareConnect\Model\MoneyThe total discount amount of money to return for the line item.[optional]
total_moneygetTotalMoney()setTotalMoney($value)\SquareConnect\Model\MoneyThe total amount of money to return for this line item.[optional]

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

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