SubscriptionSearch.php
1.53 KB
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
<?php
namespace Braintree;
class SubscriptionSearch
{
public static function billingCyclesRemaining()
{
return new RangeNode('billing_cycles_remaining');
}
public static function daysPastDue()
{
return new RangeNode('days_past_due');
}
public static function id()
{
return new TextNode('id');
}
public static function inTrialPeriod()
{
return new MultipleValueNode('in_trial_period', [true, false]);
}
public static function merchantAccountId()
{
return new MultipleValueNode('merchant_account_id');
}
public static function nextBillingDate()
{
return new RangeNode('next_billing_date');
}
public static function planId()
{
return new MultipleValueOrTextNode('plan_id');
}
public static function price()
{
return new RangeNode('price');
}
public static function status()
{
return new MultipleValueNode('status', [
Subscription::ACTIVE,
Subscription::CANCELED,
Subscription::EXPIRED,
Subscription::PAST_DUE,
Subscription::PENDING,
]);
}
public static function transactionId()
{
return new TextNode('transaction_id');
}
public static function ids()
{
return new MultipleValueNode('ids');
}
public static function createdAt()
{
return new RangeNode('created_at');
}
}
class_alias('Braintree\SubscriptionSearch', 'Braintree_SubscriptionSearch');