object @sale

attributes :id, :recurly_invoice_id, :recurly_subtotal_in_cents, :recurly_tax_in_cents, :recurly_total_in_cents, :recurly_currency, :sale_type, :recurly_invoice_number, :state, :created_at

child(:recurly_transactions => :recurly_transactions) {
  attributes :transaction_type, :amount_in_cents
}

child(:sale_line_items => :line_items) {
  attributes :id, :product_info
}
