def order_object
      prices = []

      cores_price_item = @cores ? _item_price_with_capacity("guest_core", @cores) : nil
      ram_price_item = @ram ? _item_price_with_capacity("ram", @ram) : nil
      max_port_speed_price_item = @max_port_speed ? _item_price_with_capacity("port_speed", @max_port_speed) : nil

      prices << { "id" => cores_price_item['id'] } if cores_price_item
      prices << { "id" => ram_price_item['id'] } if ram_price_item
      prices << { "id" => max_port_speed_price_item['id'] } if max_port_speed_price_item

      # put together an order
      upgrade_order = {
        'complexType' => 'SoftLayer_Container_Product_Order_Virtual_Guest_Upgrade',
        'virtualGuests' => [{'id' => @virtual_server.id }],
        'properties' => [{'name' => 'MAINTENANCE_WINDOW', 'value' => @upgrade_at ? @upgrade_at.iso8601 : Time.now.iso8601}],
        'prices' => prices
      }
    end
def order_object
      prices = []

      cores_price_item = @cores ? _item_price_with_capacity("guest_core", @cores) : nil
      ram_price_item = @ram ? _item_price_with_capacity("ram", @ram) : nil
      max_port_speed_price_item = @max_port_speed ? _item_price_with_capacity("port_speed", @max_port_speed) : nil

      prices << { "id" => cores_price_item['id'] } if cores_price_item
      prices << { "id" => ram_price_item['id'] } if ram_price_item
      prices << { "id" => max_port_speed_price_item['id'] } if max_port_speed_price_item

      # put together an order
      upgrade_order = {
        'complexType' => 'SoftLayer_Container_Product_Order_Virtual_Guest_Upgrade',
        'virtualGuests' => [{'id' => @virtual_server.id }],
        'properties' => [{'name' => 'MAINTENANCE_WINDOW', 'value' => @upgrade_at ? @upgrade_at.iso8601 : Time.now.iso8601}],
        'prices' => prices
      }
    end
construct an order object