hakanensari/peddler — pull request #22 by mcnelson (2014-06-06 21:35:13+00:00)
Title: Add OrderReferenceObject model to help with Off Amazon Payment API

# What
Adds a new model to model Amazon's ORO. Primarily, this model's responsibility is to fetch an ORO by ID and expose a few convenience methods for retrieving response data.

# Testing
1. Login via any "Login with Amazon" widgets to the point where the address book appears.
2. That just created an ORO, retrieve its ID by looking at `orderReference.getAmazonOrderReferenceId()` in `onOrderReferenceCreate` in Amazon's JS.
3. Instantiate and play with the ORO. `oro = Peddler::OrderReferenceObject.new('')`