NAME

WebService::Braintree::_::Discount

PURPOSE

This class represents a discount.

This class will only be created as part of a response or error response.

METHODS

amount()

This is the amount for this discount.

created_at()

This is when this discount was created.

current_billing_cycle()

TODO

description()

The description provided when creating the discount.

id()

The id of the discount.

kind()

The kind of the discount.

merchant_id()

The merchant_id of the discount.

name()

The name provided when creating the discount. If one was not provided, then Braintree generated one.

never_expires()

The name provided when creating the discount. If one was not provided, then Braintree generated one.

is_never_expires is an alias.

number_of_billing_cycles()

This is the number of billing cycles in the discount.

quantity()

This is the quanty of the discount.

updated_at()

This is when this discount was last updated. If it has never been updated, then this should equal the created_at date.