Braintree v0.7.0 Braintree.Discount
Add-ons and discounts are created in the Control Panel. You cannot create or update them through the API.
Add-ons and discounts can be applied manually on a case-by-case basis, or you can associate them with certain plans to apply them automatically to new subscriptions. When creating a subscription, it will automatically inherit any add-ons and/or discounts associated with the plan. You can override those details at the time you create or update the subscription.
Summary
Functions
Returns a collection of Braintree::Discount objects
Convert a response into one or more typed structs
Types
Functions
Specs
all :: {:ok, t} | {:error, Braintree.ErrorResponse.t}
Returns a collection of Braintree::Discount objects.
Example
{:ok, discounts} = Braintree.Discount.all()