OrderReturnTax

September 24, 2019 · View on GitHub

Description

Represents a tax being returned that applies to one or more return line items in an order. Fixed-amount, order-scoped taxes are distributed across all non-zero return line item totals. The amount distributed to each return line item is relative to that item’s contribution to the order subtotal.

Properties

NameGetterSetterTypeDescriptionNotes
uidgetUid()setUid($value)stringUnique ID that identifies the return tax only within this order.[optional]
source_tax_uidgetSourceTaxUid()setSourceTaxUid($value)string`uid` of the Tax from the Order which contains the original charge of this tax.[optional]
catalog_object_idgetCatalogObjectId()setCatalogObjectId($value)stringThe catalog object id referencing `CatalogTax`.[optional]
namegetName()setName($value)stringThe tax's name.[optional]
typegetType()setType($value)stringIndicates the calculation method used to apply the tax. See OrderLineItemTaxType for possible values[optional]
percentagegetPercentage()setPercentage($value)stringThe percentage of the tax, as a string representation of a decimal number. For example, a value of `"7.25"` corresponds to a percentage of 7.25%.[optional]
applied_moneygetAppliedMoney()setAppliedMoney($value)\SquareConnect\Model\MoneyThe amount of the money applied by the tax in an order.[optional]
scopegetScope()setScope($value)stringIndicates the level at which the `OrderReturnTax` applies. For `ORDER` scoped taxes, Square generates references in `applied_taxes` on all `OrderReturnLineItem`s. For `LINE_ITEM` scoped taxes, the tax will only apply to `OrderReturnLineItem`s with references in their `applied_discounts` field. See OrderLineItemTaxScope for possible values[optional]

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

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