V1PaymentItemization

March 13, 2019 ยท View on GitHub

Description

Payment include an itemizations field that lists the items purchased, along with associated fees, modifiers, and discounts. Each itemization has an itemization_type field that indicates which of the following the itemization represents:

  • An item variation from the merchant's item library
  • A custom monetary amount
  • An action performed on a Square gift card, such as activating or reloading it.
Note*: itemization information included in a Payment object reflects details collected at the time of the payment. Details such as the name or price of items might have changed since the payment was processed.

Properties

NameGetterSetterTypeDescriptionNotes
namegetName()setName($value)stringThe item's name.[optional]
quantitygetQuantity()setQuantity($value)floatThe quantity of the item purchased. This can be a decimal value.[optional]
itemization_typegetItemizationType()setItemizationType($value)stringThe type of purchase that the itemization represents, such as an ITEM or CUSTOM_AMOUNT See V1PaymentItemizationItemizationType for possible values[optional]
item_detailgetItemDetail()setItemDetail($value)\SquareConnect\Model\V1PaymentItemDetailDetails of the item, including its unique identifier and the identifier of the item variation purchased.[optional]
notesgetNotes()setNotes($value)stringNotes entered by the merchant about the item at the time of payment, if any.[optional]
item_variation_namegetItemVariationName()setItemVariationName($value)stringThe name of the item variation purchased, if any.[optional]
total_moneygetTotalMoney()setTotalMoney($value)\SquareConnect\Model\V1MoneyThe total cost of the item, including all taxes and discounts.[optional]
single_quantity_moneygetSingleQuantityMoney()setSingleQuantityMoney($value)\SquareConnect\Model\V1MoneyThe cost of a single unit of this item.[optional]
gross_sales_moneygetGrossSalesMoney()setGrossSalesMoney($value)\SquareConnect\Model\V1MoneyThe total cost of the itemization and its modifiers, not including taxes or discounts.[optional]
discount_moneygetDiscountMoney()setDiscountMoney($value)\SquareConnect\Model\V1MoneyThe total of all discounts applied to the itemization. This value is always negative or zero.[optional]
net_sales_moneygetNetSalesMoney()setNetSalesMoney($value)\SquareConnect\Model\V1MoneyThe sum of gross_sales_money and discount_money.[optional]
taxesgetTaxes()setTaxes($value)\SquareConnect\Model\V1PaymentTax[]All taxes applied to this itemization.[optional]
discountsgetDiscounts()setDiscounts($value)\SquareConnect\Model\V1PaymentDiscount[]All discounts applied to this itemization.[optional]
modifiersgetModifiers()setModifiers($value)\SquareConnect\Model\V1PaymentModifier[]All modifier options applied to this itemization.[optional]

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

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