Skip to content
lyang edited this page Mar 16, 2013 · 1 revision

AddOn and Discount are both readonly models. You can only create / update them through Braintree's web UI.

They have exactly the same attributes.

Attributes

Readonly

[ 
  :amount, :created_at, :description, :id, :kind, :merchant_id, :name,
  :never_expires, :number_of_billing_cycles, :quantity, :updated_at
]

Associations

None.

Default Validations

None.

Default Callbacks

None.

Convenient Methods

AddOn.all

Returns an array of BraintreeRails::AddOn. Wraps Braintree::AddOn.all behind the scenes.

AddOn.find(id)

A convenient find method is added. It looks for the given id in AddOn.all.

Supported REST APIs

Find

Clone this wiki locally