   payment_source: DS.belongsTo('payment-source')
   bill_address: DS.belongsTo('bill-address')
   line_items: DS.hasMany('line-item')
-  shipments: DS.hasMany('shipments')
+  shipments: DS.hasMany('shipment')
+  payments: DS.hasMany('payment')
   payment_methods: DS.hasMany('payment-method')
   adjustments: DS.hasMany('adjustment')
 


SpreeCheckout.Order = DS.Model.extend
  coupon_code: null
  use_billing: false
  payment_method_id: null

  number: DS.attr('string')

    )

  updateAddresses: ->
    @store.adapterFor(@constructor).updateAddresses(@)

  updatePayment: ->
    @store.adapterFor(@constructor).updatePayment(@)

  next: ->
    @store.adapterFor(@constructor).next(@)

  confirm: ->
    @store.adapterFor(@constructor).confirm(@)

  selectShippingRate: ->
    @store.adapterFor(@constructor).selectShippingRate(@)

  goToState: (state) ->
    @store.adapterFor(@constructor).goToState(@, state)
