TierPriceInterface.php 2.83 KB
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

namespace Magento\Catalog\Api\Data;

/**
 * Tier price interface.
 * @api
 * @since 102.0.0
 */
interface TierPriceInterface extends \Magento\Framework\Api\ExtensibleDataInterface
{
    /**#@+
     * Constants
     */
    const PRICE = 'price';
    const PRICE_TYPE = 'price_type';
    const WEBSITE_ID = 'website_id';
    const SKU = 'sku';
    const CUSTOMER_GROUP = 'customer_group';
    const QUANTITY = 'quantity';
    const PRICE_TYPE_FIXED = 'fixed';
    const PRICE_TYPE_DISCOUNT = 'discount';
    /**#@-*/

    /**
     * Set tier price.
     *
     * @param float $price
     * @return $this
     * @since 102.0.0
     */
    public function setPrice($price);

    /**
     * Get tier price.
     *
     * @return float
     * @since 102.0.0
     */
    public function getPrice();

    /**
     * Set tier price type.
     *
     * @param string $type
     * @return $this
     * @since 102.0.0
     */
    public function setPriceType($type);

    /**
     * Get tier price type.
     *
     * @return string
     * @since 102.0.0
     */
    public function getPriceType();

    /**
     * Set website id.
     *
     * @param int $websiteId
     * @return $this
     * @since 102.0.0
     */
    public function setWebsiteId($websiteId);

    /**
     * Get website id.
     *
     * @return int
     * @since 102.0.0
     */
    public function getWebsiteId();

    /**
     * Set SKU.
     *
     * @param string $sku
     * @return $this
     * @since 102.0.0
     */
    public function setSku($sku);

    /**
     * Get SKU.
     *
     * @return string
     * @since 102.0.0
     */
    public function getSku();

    /**
     * Set customer group.
     *
     * @param string $group
     * @return $this
     * @since 102.0.0
     */
    public function setCustomerGroup($group);

    /**
     * Get customer group.
     *
     * @return string
     * @since 102.0.0
     */
    public function getCustomerGroup();

    /**
     * Set quantity.
     *
     * @param float $quantity
     * @return $this
     * @since 102.0.0
     */
    public function setQuantity($quantity);

    /**
     * Get quantity.
     *
     * @return float
     * @since 102.0.0
     */
    public function getQuantity();

    /**
     * Retrieve existing extension attributes object or create a new one.
     *
     * @return \Magento\Catalog\Api\Data\TierPriceExtensionInterface|null
     * @since 102.0.0
     */
    public function getExtensionAttributes();

    /**
     * Set an extension attributes object.
     *
     * @param \Magento\Catalog\Api\Data\TierPriceExtensionInterface $extensionAttributes
     * @return $this
     * @since 102.0.0
     */
    public function setExtensionAttributes(
        \Magento\Catalog\Api\Data\TierPriceExtensionInterface $extensionAttributes
    );
}