HEX
Server: nginx/1.24.0
System: Linux prod-btpayments-io 6.14.0-1018-aws #18~24.04.1-Ubuntu SMP Mon Nov 24 19:46:27 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: /var/www/BtPayments/BtPayments-platform/vendor/phpclassic/php-shopify/lib/DiscountCode.php
<?php
/**
 * Created by PhpStorm.
 * @author Sergiu Cazac <kilobyte2007@gmail.com>
 * Created at 5/06/19 2:09 AM UTC+03:00
 *
 * @see https://help.shopify.com/api/reference/discounts/discountcode Shopify API Reference for PriceRule
 */

namespace PHPShopify;


/**
 * --------------------------------------------------------------------------
 * DiscountCode -> Custom actions
 * --------------------------------------------------------------------------
 * @method array lookup()       Retrieves the location of a discount code.
 *
 */

class DiscountCode extends ShopifyResource
{
    /**
     * @inheritDoc
     */
    protected $resourceKey = 'discount_code';

    /**
     * @inheritDoc
     */
    protected $customGetActions = array(
        'lookup',
    );
}