Name | Getter | Setter | Type | Description | Notes |
---|---|---|---|---|---|
name | getName() | setName($value) | string | Only used for ad hoc line items. The name of the line item. This value cannot exceed 500 characters. Do not provide a value for this field if you provide a value for `catalog_object_id`. | [optional] |
quantity | getQuantity() | setQuantity($value) | string | The quantity to purchase, as a string representation of a number. This string must have a positive integer value. | |
base_price_money | getBasePriceMoney() | setBasePriceMoney($value) | \SquareConnect\Model\Money | The base price for a single unit of the line item. `base_price_money` is required for ad hoc line items and variable priced CatalogItemVariations. If both `catalog_object_id` and `base_price_money` are set, `base_price_money` will override the CatalogItemVariation's price. | [optional] |
variation_name | getVariationName() | setVariationName($value) | string | Only used for ad hoc line items. The variation name of the line item. This value cannot exceed 255 characters. If this value is not set for an ad hoc line item, the default value of `Regular` is used. Do not provide a value for this field if you provide a value for the `catalog_object_id`. | [optional] |
note | getNote() | setNote($value) | string | The note of the line item. This value cannot exceed 500 characters. | [optional] |
catalog_object_id | getCatalogObjectId() | setCatalogObjectId($value) | string | Only used for Catalog line items. The catalog object ID for an existing CatalogItemVariation. Do not provide a value for this field if you provide a value for `name` and `base_price_money`. | [optional] |
modifiers | getModifiers() | setModifiers($value) | \SquareConnect\Model\CreateOrderRequestModifier[] | Only used for Catalog line items. The modifiers to include on the line item. | [optional] |
taxes | getTaxes() | setTaxes($value) | \SquareConnect\Model\CreateOrderRequestTax[] | The taxes to include on the line item. | [optional] |
discounts | getDiscounts() | setDiscounts($value) | \SquareConnect\Model\CreateOrderRequestDiscount[] | The discounts to include on the line item. | [optional] |
Note: All properties are protected and only accessed via getters and setters.