Class WC_Braintree_Subscription
- WC_Order
- WC_Braintree_Subscription
Package: Braintree\Classes\Subscriptions
Since: 3.0.0
Located at subscriptions/class-wc-braintree-subscription.php
Since: 3.0.0
Located at subscriptions/class-wc-braintree-subscription.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
#
add_order_item_totals_subtotal_row( array & $total_rows, string $tax_display )
Add total row for subtotal. |
protected
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
DateTime
|
|
public
|
|
public
|
#
get_descriptor( unknown $type )
Return the descriptor for the type provided. Valid types are name, phone, url |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
get_formatted_date( string $type, string $format = null )
Return a formatted date string using the timezone that the subscription was created in. |
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
#
sync_dates( )
Sync the subscription's dates before creating in Braintree. This will allow for accurate date calculations. For example, when a subscription is created by the admin, a customer may not pay for it for several days. The start date, etc need to be re-calculated. |
public
|
|
public
|
|
public
|
#
can_be_updated_to( string $status )
Return if the subscription's status can be update to the provided status. |
private
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Properties summary
protected
array
|
$extra_data
|
#
array(
'merchant_account_id' => '',
'subscription_trial_length' => '',
'subscription_trial_period' => 'day',
'start_date' => '',
'trial_end_date' => '',
'first_payment_date' => '',
'next_payment_date' => '',
'end_date' => '',
'previous_payment_date' => '',
'braintree_plan' => '',
'subscription_period' => 'month',
'subscription_period_interval' => '',
'subscription_length' => '',
'created_in_braintree' => false,
'recurring_cart_key' => '',
)
|
protected
string
|
$data_store_name
|
#
'braintree_subscription'
|
public
WC_Order
|
$order
|