features/support/purchase_messages.rb
# Multiple books under single purchase messages
Multiple books under single purchase messages
Multiple books under single purchase messages
def purchase_complete_message_two_books
    <<-EOS
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:purchase xmlns:ns2="http://schemas.blinkbox.com/books/purchasing/v1">
    <userId>76</userId>
    <firstName>mohamed</firstName>
    <lastName>Ahmed</lastName>
    <email>mohameda@blinkbox.com</email>
    <basketId>424056</basketId>
    <deviceId>555001</deviceId>
    <clubcardNumber>634004078527573552</clubcardNumber>
    <clubcardPointsAward>7</clubcardPointsAward>
    <transactionDate>2013-10-15T13:32:51</transactionDate>
    <totalPrice>
        <amount>7.26</amount>
        <currency>GBP</currency>
    </totalPrice>
    <billingProviders>
        <billingProvider>
            <name>braintree</name>
            <region>UK</region>
            <payment>
                <amount>7.26</amount>
                <currency>GBP</currency>
            </payment>
        </billingProvider>
    </billingProviders>
    <basketItems>
        <basketItem>
            <isbn>9780007279616</isbn>
            <publisherId>8</publisherId>
            <salePrice>
                <amount>3.63</amount>
                <currency>GBP</currency>
            </salePrice>
            <listPrice>
                <amount>3.63</amount>
                <currency>GBP</currency>
            </listPrice>
        </basketItem>
            <basketItem>
            <isbn>9780007279616</isbn>
            <publisherId>8</publisherId>
            <salePrice>
                <amount>3.63</amount>
                <currency>GBP</currency>
            </salePrice>
            <listPrice>
                <amount>3.63</amount>
                <currency>GBP</currency>
            </listPrice>
        </basketItem>
    </basketItems>
</ns2:purchase>
    EOS
  end
def purchase_complete_message_two_books <<-EOS 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:purchase xmlns:ns2="http://schemas.blinkbox.com/books/purchasing/v1">
    <userId>76</userId>
    <firstName>mohamed</firstName>
    <lastName>Ahmed</lastName>
    <email>mohameda@blinkbox.com</email>
    <basketId>424056</basketId>
    <deviceId>555001</deviceId>
    <clubcardNumber>634004078527573552</clubcardNumber>
    <clubcardPointsAward>7</clubcardPointsAward>
    <transactionDate>2013-10-15T13:32:51</transactionDate>
    <totalPrice>
        <amount>7.26</amount>
        <currency>GBP</currency>
    </totalPrice>
    <billingProviders>
        <billingProvider>
            <name>braintree</name>
            <region>UK</region>
            <payment>
                <amount>7.26</amount>
                <currency>GBP</currency>
            </payment>
        </billingProvider>
    </billingProviders>
    <basketItems>
        <basketItem>
            <isbn>9780007279616</isbn>
            <publisherId>8</publisherId>
            <salePrice>
                <amount>3.63</amount>
                <currency>GBP</currency>
            </salePrice>
            <listPrice>
                <amount>3.63</amount>
                <currency>GBP</currency>
            </listPrice>
        </basketItem>
            <basketItem>
            <isbn>9780007279616</isbn>
            <publisherId>8</publisherId>
            <salePrice>
                <amount>3.63</amount>
                <currency>GBP</currency>
            </salePrice>
            <listPrice>
                <amount>3.63</amount>
                <currency>GBP</currency>
            </listPrice>
        </basketItem>
    </basketItems>
</ns2:purchase>
     EOS end
Multiple books under single purchase messages
Multiple books under single purchase messages