theodi/open-orgn-services

View on GitHub
fixtures/vcr_cassettes/Adding_sector_to_invoices/Sector_is_added_when_user_requests_an_invoice.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%22b928bbff-c4c3-4a1d-b3d3-2d0b72ee560d%22)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="zV3UcxyQujIZSJD6e7M99rNsqSx5j37VTQUCqUc7Vc",
        oauth_signature="qQ0SVpiaeJBOPwGRIanTAG3emxYbvXIrD%2FPzz3qbMtT99A8Bi8eSXCzQp9O%2Fss7fYNmO0AB8IKS8RbSKCyFtvsLcEON2xmtsCqLH%2F1LSW%2FYnqffWvSTq4SQ48Hq24ub0B6F3RrmRJL0y5qKTYGt0RkXbQE3eP2ecQLk0sku%2Fz%2Fo%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401461875", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 14:57:49 GMT
      Content-Length:
      - '289'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>0687eac7-b396-4a13-a27c-d974144025ad</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T14:57:49.9858943Z</DateTimeUTC>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 14:57:55 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%2220a7d29d-982c-4233-bba6-7e87319b88d5%22)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="ORIOb0V3ujU7zHmGd7UPSMS3ESR4V2qA30JDS84Cg",
        oauth_signature="liguhRRG3P%2Blmo1HdtrE3KYlzV82%2Bxx%2Fz3axfBZ4OyPxDXygajfMsYv6G0q0%2FNyMAH1HlTOhrfRV4UDa15K%2FAGQ%2F111ZX%2FqmPB6FK717CV6t5hHukzkm5klfMAclNTCGngSSGBhaBR96n0YZhSXgnX7U8Qh2tH7YY0zf35wGcKQ%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401461989", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 14:59:43 GMT
      Content-Length:
      - '289'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>59781eff-576a-4249-a213-5a836706508d</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T14:59:43.7766707Z</DateTimeUTC>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 14:59:49 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%2238051436-2e9e-4108-8264-f35a6695d567%22)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="hlz3V7FW5dHs2mXFyf4g0L6YozbPIKLQoaKkv17ab0",
        oauth_signature="o85e4BZmM8Wb3VUy8ICFDtul9RaDd7OdPVDNPksyjUAE0FYQn2t6DWHxVP%2FJ3rPmb1EFmvVP9js2uuoZLZaxM8Sy4Kc8OiGprvSx3tbOQddofGaHkj4LL7bdfnXs0pye4j0KbPevUftlLBYuCoqen1EjvHMgb0JLHlkiJA1qMwg%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462461", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445758-O1VMAP01
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:07:36 GMT
      Content-Length:
      - '289'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>6a07564a-661a-4b63-88ff-a7b27251b25d</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:07:36.2869718Z</DateTimeUTC>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:07:42 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%22e2a70585-0c37-4c68-9086-fe681a77ca6b%22)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="IsUAZqlwUtDf5QeOWunHViHAzid2vJ8L5kPhdNv0e8",
        oauth_signature="FcVtIE3UYMUf1O0qeTC8Juq9xMMGVNVfImL7BUEO%2BGfuTdTU7FgtX%2FizBRlbP%2FbYRy2GPvubqckQNpYBvqY0ktvDqAFcoBOl1WaWCRn1F7JmEeG9QcuKNbHiZe6kTVB0gKnUjU8Ahw7dlxovO%2Fm9saJg50BMlJPLqWulwuRAF7w%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462704", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:11:38 GMT
      Content-Length:
      - '289'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>28ee9ab5-ce24-4048-9538-0d402f158c1b</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:11:39.5009975Z</DateTimeUTC>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:11:45 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%221c893f86-08b8-4676-b56f-4dfca604b90b%22)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="Y8IK1PI4gpcoaviswU197hfSTj3ONUFfAASVX6F1ZU",
        oauth_signature="pVm2CAbdCXat4liUkLjSsgQimPkZWWlMKyUJUrNMy67Yd2ihR4jfbzWnaM6KKPRzrmQbvp8S0KiCa0yk5pLdPRDQn6QJTy8XdnDiXsk6EOY%2BCy1lwLJPM%2BbNhl%2B1kS2QcTtN7vLAZMAZ6yr%2BnDHsyVIzNlUxXQVPsxnZsISPTnE%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462768", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:12:42 GMT
      Content-Length:
      - '289'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>f203fccc-8ac2-435e-924b-ce986dfaadb8</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:12:42.8238329Z</DateTimeUTC>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:12:48 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%221c893f86-08b8-4676-b56f-4dfca604b90b%22)%20AND%20Status%20!=%20%22DELETED%22
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="0bvDMysKdsM2MR9PMkKhmy997ZuMcV9mhLTwrkQg",
        oauth_signature="qoGMeBUYhNz4hCM%2Fbz9fDbb3qP82vErUJp%2FkpK3z6W0yt3uAqiclVj7ziyRLhCG7u9JbSGkQ4%2BTYw7ATa4uEWDe1rWvyTfAtLGb67GvVYTWtLecXX8kUWJ55SZMgggLidHlcAXbLiIzjvWDQZLj%2Fg8Bs7lo94v62bk2iiWkgwDE%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462772", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:12:46 GMT
      Content-Length:
      - '1296'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>beea3c24-18cb-427f-a9a0-f02dfae17adc</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:12:46.7707847Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>1c893f86-08b8-4676-b56f-4dfca604b90b</ContactID>\r\n
        \       <Name>Existing Company Inc.</Name>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <SubTotal>1.00</SubTotal>\r\n      <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n
        \     <UpdatedDateUTC>2014-05-30T15:12:45.257</UpdatedDateUTC>\r\n      <CurrencyCode>GBP</CurrencyCode>\r\n
        \     <Type>ACCREC</Type>\r\n      <InvoiceID>8b1c3462-2d4d-4345-b061-7eb6a86bcce1</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0041</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <AmountCredited>0.00</AmountCredited>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:12:52 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices/8b1c3462-2d4d-4345-b061-7eb6a86bcce1
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="5JhSzJvaxJxJdXJ5xI9dZRjGB4iQAwKvqNPFNk07Y",
        oauth_signature="lKC2SqMs4V%2FgqoPX9FwE4%2FHBWAHs52MbBedLCHR84VX8tVoqvU0NGR0qwl9RlcxmMe45%2B7eH3PWcXsSYkI0bgIW9qnC43%2F94hDwbZFuLAJG2%2FlWOlKHHiNoMOggiohAyyM76GA%2F6XNpptWpglW41Y%2FakovDzsi%2FOBMTgDfTAXys%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462772", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:12:46 GMT
      Content-Length:
      - '2701'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>816eeb16-ed58-40a7-997e-f64e56e5ed13</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:12:47.5040129Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>1c893f86-08b8-4676-b56f-4dfca604b90b</ContactID>\r\n
        \       <ContactStatus>ACTIVE</ContactStatus>\r\n        <Name>Existing Company
        Inc.</Name>\r\n        <Addresses>\r\n          <Address>\r\n            <AddressType>POBOX</AddressType>\r\n
        \         </Address>\r\n          <Address>\r\n            <AddressType>STREET</AddressType>\r\n
        \         </Address>\r\n        </Addresses>\r\n        <Phones>\r\n          <Phone>\r\n
        \           <PhoneType>DDI</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>DEFAULT</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>FAX</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>MOBILE</PhoneType>\r\n          </Phone>\r\n        </Phones>\r\n
        \       <UpdatedDateUTC>2014-05-30T15:12:41.06</UpdatedDateUTC>\r\n        <IsSupplier>false</IsSupplier>\r\n
        \       <IsCustomer>true</IsCustomer>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <LineItems>\r\n        <LineItem>\r\n          <Description>my fantastic
        invoice description</Description>\r\n          <UnitAmount>1.00</UnitAmount>\r\n
        \         <TaxType>OUTPUT2</TaxType>\r\n          <TaxAmount>0.20</TaxAmount>\r\n
        \         <LineAmount>1.00</LineAmount>\r\n          <Tracking>\r\n            <TrackingCategory>\r\n
        \             <Name>Sector</Name>\r\n              <Option>Public sector</Option>\r\n
        \             <TrackingCategoryID>fa620646-16e2-446d-a596-6298b1cd738d</TrackingCategoryID>\r\n
        \           </TrackingCategory>\r\n          </Tracking>\r\n          <Quantity>1.0000</Quantity>\r\n
        \       </LineItem>\r\n      </LineItems>\r\n      <SubTotal>1.00</SubTotal>\r\n
        \     <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n      <UpdatedDateUTC>2014-05-30T15:12:45.257</UpdatedDateUTC>\r\n
        \     <CurrencyCode>GBP</CurrencyCode>\r\n      <Type>ACCREC</Type>\r\n      <InvoiceID>8b1c3462-2d4d-4345-b061-7eb6a86bcce1</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0041</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <SentToContact>false</SentToContact>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:12:53 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%223e50d6ef-6e31-4edf-9f1a-9df92b272ef3%22)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="CtgSxuW0St38H9ZQtgsoT359gHVmVgXMlPXKuccHA",
        oauth_signature="BH6dsvHzuNc8csvXpU%2BYpg0OyCnhiT%2F9PWb%2FC7PUIRv2We1DkrmOAzZt2v9rV8gjavf59K9xZW0RhVGv0IGWJnYpohmt5QIWhtMTfPdkPaUn4EWrZFU66mcU%2FXExGZZ%2FJVHrMK4oM6yKzf59IImA2tv3ey1%2FI5LwaLWyrnNIC%2Fk%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462814", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:13:29 GMT
      Content-Length:
      - '289'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>2e6a1f8a-4ea2-496a-9ae7-6cac1005b9cb</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:13:29.0952125Z</DateTimeUTC>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:13:35 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%223e50d6ef-6e31-4edf-9f1a-9df92b272ef3%22)%20AND%20Status%20!=%20%22DELETED%22
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="A39Nl8QaJBuPY09SBq0bOVUTd99L46m9xxfHHDpEgks",
        oauth_signature="H9vAiNbpTLCL9sqqDJcxOLigrmyv2%2B0SKeBOoexZs4iielKJiNSqIUPFJqx%2B0jQZG4hf6XAD60FBzIobNYQXh6h236dviw30vQkOxGzJvg1u3Cqh9Ea2b3nF35EtUgGqvFwZCgHuKwjVd%2BT2gy0q6ck3iJ%2FBF6XDJPj1JJ%2FHqSg%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462819", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:13:33 GMT
      Content-Length:
      - '1296'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>12ef09a6-5762-4806-824c-a9d5711a122e</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:13:33.7285907Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>3e50d6ef-6e31-4edf-9f1a-9df92b272ef3</ContactID>\r\n
        \       <Name>Existing Company Inc.</Name>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <SubTotal>1.00</SubTotal>\r\n      <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n
        \     <UpdatedDateUTC>2014-05-30T15:13:31.857</UpdatedDateUTC>\r\n      <CurrencyCode>GBP</CurrencyCode>\r\n
        \     <Type>ACCREC</Type>\r\n      <InvoiceID>0199dbfc-92a7-4a43-ba49-11658add701b</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0041</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <AmountCredited>0.00</AmountCredited>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:13:39 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices/0199dbfc-92a7-4a43-ba49-11658add701b
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="P8AXgApsH0UP0mkQS5te6sHy6GUkpie7uFBHVS40Sc",
        oauth_signature="cWvnPJac8iriQ4lakNHKyg3nMNvCDpCHj%2Bc%2Br0oqnnuDS357GU4TYptZ2UCRv5IK4BM%2FGgOUZrDW34btWkpkFszVgE4r0XI%2BtTvFdn3H8aNeJNDxvJOW%2B14D8%2BG9V0dsLFC09cINhEMgzD4oQ%2BcQ6JjARPqpkhdF8Vh4Xa8zSF4%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462825", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:13:39 GMT
      Content-Length:
      - '2702'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>9728c60b-efac-4553-9840-778c2c4e47fc</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:13:40.1092361Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>3e50d6ef-6e31-4edf-9f1a-9df92b272ef3</ContactID>\r\n
        \       <ContactStatus>ACTIVE</ContactStatus>\r\n        <Name>Existing Company
        Inc.</Name>\r\n        <Addresses>\r\n          <Address>\r\n            <AddressType>POBOX</AddressType>\r\n
        \         </Address>\r\n          <Address>\r\n            <AddressType>STREET</AddressType>\r\n
        \         </Address>\r\n        </Addresses>\r\n        <Phones>\r\n          <Phone>\r\n
        \           <PhoneType>DDI</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>DEFAULT</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>FAX</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>MOBILE</PhoneType>\r\n          </Phone>\r\n        </Phones>\r\n
        \       <UpdatedDateUTC>2014-05-30T15:13:27.567</UpdatedDateUTC>\r\n        <IsSupplier>false</IsSupplier>\r\n
        \       <IsCustomer>true</IsCustomer>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <LineItems>\r\n        <LineItem>\r\n          <Description>my fantastic
        invoice description</Description>\r\n          <UnitAmount>1.00</UnitAmount>\r\n
        \         <TaxType>OUTPUT2</TaxType>\r\n          <TaxAmount>0.20</TaxAmount>\r\n
        \         <LineAmount>1.00</LineAmount>\r\n          <Tracking>\r\n            <TrackingCategory>\r\n
        \             <Name>Sector</Name>\r\n              <Option>Public sector</Option>\r\n
        \             <TrackingCategoryID>fa620646-16e2-446d-a596-6298b1cd738d</TrackingCategoryID>\r\n
        \           </TrackingCategory>\r\n          </Tracking>\r\n          <Quantity>1.0000</Quantity>\r\n
        \       </LineItem>\r\n      </LineItems>\r\n      <SubTotal>1.00</SubTotal>\r\n
        \     <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n      <UpdatedDateUTC>2014-05-30T15:13:31.857</UpdatedDateUTC>\r\n
        \     <CurrencyCode>GBP</CurrencyCode>\r\n      <Type>ACCREC</Type>\r\n      <InvoiceID>0199dbfc-92a7-4a43-ba49-11658add701b</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0041</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <SentToContact>false</SentToContact>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:13:46 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%22f2391419-4678-4c0e-b1ca-ba943909b0b6%22)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="c5X2zBcjvFlLUKJwYm0Aam4DstF2To2lTS7HRPRWhZg",
        oauth_signature="ZKMErcyro7JVP18%2BEavn1syfbFY6wG3uBwzOFOKc0Si1Whx7hKBZU1gyWq5vUr9aOM%2B2M95Oe0OOD4nmp%2BpEcM2CejIwjScbCOZXeDNSutg%2BFoVhcJTVbmcodKAvx4O5kVFgi0Z26QWxndJ3DywK3fMNDzoG90170Vtv%2FKoLbWw%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462864", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:14:18 GMT
      Content-Length:
      - '289'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>5eee3e0c-8f4c-4306-9468-594c352e54ef</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:14:19.2511415Z</DateTimeUTC>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:14:25 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%22f2391419-4678-4c0e-b1ca-ba943909b0b6%22)%20AND%20Status%20!=%20%22DELETED%22
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="fdUiWwJPkX0qcUmr53XTqzw8oSX2BIsopmT70pIRrE",
        oauth_signature="mbA8eRPx9%2FL%2B4oG%2BwesNRAw6YfXkdf6ZrYE%2BiRln7nEs1w%2F6PFZKca0FWtgJUrqX9%2BwBC9N8PrOAygKkE%2BXCFZ%2FZli1dvRJ7tfZWalnOwb8po0gtSitSxeih7MP01b1g%2BXRjzBDCZuqbzMQcgbB11La29GgGNFxQ6u3rRIy7vIw%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462869", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:14:23 GMT
      Content-Length:
      - '1296'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>cff56ef8-6e40-4b3b-b7ee-4e47fc8d9e64</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:14:23.6505107Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>f2391419-4678-4c0e-b1ca-ba943909b0b6</ContactID>\r\n
        \       <Name>Existing Company Inc.</Name>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <SubTotal>1.00</SubTotal>\r\n      <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n
        \     <UpdatedDateUTC>2014-05-30T15:14:22.107</UpdatedDateUTC>\r\n      <CurrencyCode>GBP</CurrencyCode>\r\n
        \     <Type>ACCREC</Type>\r\n      <InvoiceID>e2ae3be1-8c17-4cc8-93f2-bec971d57fe9</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0042</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <AmountCredited>0.00</AmountCredited>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:14:29 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices/e2ae3be1-8c17-4cc8-93f2-bec971d57fe9
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="wJxrny49WpR9mRPmMuNRk5kD54P7zqFex9Zr6eBqA",
        oauth_signature="RuY%2FbMxBpmR2J1ZyMgzpBKKRrTkQ5IstTB%2B%2FqqojVlPdLUfNQ6rC4FbTqLS%2FC5EMiXl53yPTOK5XiXyRh500ruCI6zVPDKG9cuGfoLjEi%2B5WWffm8%2BzYIXX1bx9bZDdxptiA7t0shK0Xq8n8wY1WcmK%2BuSK%2FhNBQ9TDufIR1SIg%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462869", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:14:24 GMT
      Content-Length:
      - '2702'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>754ae004-213b-4051-8a02-1a77965fd28a</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:14:24.3681383Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>f2391419-4678-4c0e-b1ca-ba943909b0b6</ContactID>\r\n
        \       <ContactStatus>ACTIVE</ContactStatus>\r\n        <Name>Existing Company
        Inc.</Name>\r\n        <Addresses>\r\n          <Address>\r\n            <AddressType>STREET</AddressType>\r\n
        \         </Address>\r\n          <Address>\r\n            <AddressType>POBOX</AddressType>\r\n
        \         </Address>\r\n        </Addresses>\r\n        <Phones>\r\n          <Phone>\r\n
        \           <PhoneType>DDI</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>DEFAULT</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>FAX</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>MOBILE</PhoneType>\r\n          </Phone>\r\n        </Phones>\r\n
        \       <UpdatedDateUTC>2014-05-30T15:14:17.193</UpdatedDateUTC>\r\n        <IsSupplier>false</IsSupplier>\r\n
        \       <IsCustomer>true</IsCustomer>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <LineItems>\r\n        <LineItem>\r\n          <Description>my fantastic
        invoice description</Description>\r\n          <UnitAmount>1.00</UnitAmount>\r\n
        \         <TaxType>OUTPUT2</TaxType>\r\n          <TaxAmount>0.20</TaxAmount>\r\n
        \         <LineAmount>1.00</LineAmount>\r\n          <Tracking>\r\n            <TrackingCategory>\r\n
        \             <Name>Sector</Name>\r\n              <Option>Public sector</Option>\r\n
        \             <TrackingCategoryID>fa620646-16e2-446d-a596-6298b1cd738d</TrackingCategoryID>\r\n
        \           </TrackingCategory>\r\n          </Tracking>\r\n          <Quantity>1.0000</Quantity>\r\n
        \       </LineItem>\r\n      </LineItems>\r\n      <SubTotal>1.00</SubTotal>\r\n
        \     <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n      <UpdatedDateUTC>2014-05-30T15:14:22.107</UpdatedDateUTC>\r\n
        \     <CurrencyCode>GBP</CurrencyCode>\r\n      <Type>ACCREC</Type>\r\n      <InvoiceID>e2ae3be1-8c17-4cc8-93f2-bec971d57fe9</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0042</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <SentToContact>false</SentToContact>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:14:30 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%2208ca5765-f5c3-4794-9ade-afbc76277ccd%22)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="X0jTDFq2yCWMSVErB9Ztq9iP4yCb4Tbi3te4RJRkvE",
        oauth_signature="Z3q6RhfORYXSWXq4N34mqE8M3mQIZScGBmp40KYd8VWXcx8kYU%2FaWf9eBbZr9mo2mdYcY6dncYqJMTWcEgwQJhqXnI%2FiHaFQVr3sEiVtBaRuu4aDYiWRdeBEr3EXaUtOD2n7NAm32EEZV3c90fwppT5uMxI6bEWpZM2l8teHzJY%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462886", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:14:40 GMT
      Content-Length:
      - '289'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>72a2f0c9-f466-46a5-a113-c0f3dda58420</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:14:40.7643689Z</DateTimeUTC>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:14:46 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/TrackingCategories
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="rnosrODbYo6791eOmvVw5ErI47UOy0pSBz4lwvX3Mc",
        oauth_signature="c8T03De42kAYx69I1q02LajANk8%2FCgys9ZSjNbeo9aRNB8hQGgn2P649%2F1%2Ba86yXtV9rwvy59Yc%2Byejl8VgMceGyZLfEmbrXSrPw8NWd4k51ee19GABcm01iKC96gmn2ndR0y2zh85PmpvUYQ2rMmEeZlXIJQjHtmSQcmNYk%2Fl4%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462887", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:14:41 GMT
      Content-Length:
      - '2197'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>b482abbf-61fc-4ffd-863a-9bf640b09f58</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:14:42.1684229Z</DateTimeUTC>\r\n
        \ <TrackingCategories>\r\n    <TrackingCategory>\r\n      <Name>Region</Name>\r\n
        \     <Status>ACTIVE</Status>\r\n      <TrackingCategoryID>9d8ad8f6-0d0f-41e0-8851-ef47e8b54ae6</TrackingCategoryID>\r\n
        \     <Options>\r\n        <Option>\r\n          <TrackingOptionID>dba3d4da-f9ed-4eee-8e0b-452d11fdb1fa</TrackingOptionID>\r\n
        \         <Name>Eastside</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>34b9b859-07a9-451a-b4d3-effc9946634a</TrackingOptionID>\r\n
        \         <Name>North</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>b3900cc6-3745-40ea-955f-9ef7b1c8cf7e</TrackingOptionID>\r\n
        \         <Name>South</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>83aa6e46-ef98-4b37-b562-459479e52c4c</TrackingOptionID>\r\n
        \         <Name>West Coast</Name>\r\n        </Option>\r\n      </Options>\r\n
        \   </TrackingCategory>\r\n    <TrackingCategory>\r\n      <Name>Sector</Name>\r\n
        \     <Status>ACTIVE</Status>\r\n      <TrackingCategoryID>fa620646-16e2-446d-a596-6298b1cd738d</TrackingCategoryID>\r\n
        \     <Options>\r\n        <Option>\r\n          <TrackingOptionID>7a47c64d-b35b-48da-85ec-a637d11a4dc5</TrackingOptionID>\r\n
        \         <Name>Individual</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>79168e8a-135a-441a-b0c5-f910fef87729</TrackingOptionID>\r\n
        \         <Name>Other</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>1e519a12-3d08-41ce-bfa1-e735a23dad29</TrackingOptionID>\r\n
        \         <Name>Private sector</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>e0882046-902c-4aab-b79e-f88eaa6616cc</TrackingOptionID>\r\n
        \         <Name>Public sector</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>1567f588-05c8-4ec9-9cb1-29e87e33001e</TrackingOptionID>\r\n
        \         <Name>Third sector</Name>\r\n        </Option>\r\n      </Options>\r\n
        \   </TrackingCategory>\r\n  </TrackingCategories>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:14:48 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%2208ca5765-f5c3-4794-9ade-afbc76277ccd%22)%20AND%20Status%20!=%20%22DELETED%22
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="KICCFhz62cBXI2NTK1tHkx04KrmRMBYRTeYC5L5JrwU",
        oauth_signature="CdzcXP0pyYZW5uFwnG90syb65TzYVPNNbUD1%2F7ku3q21tm%2B7SGDCg%2F3ELAiT50zniSj%2BKaeKEfXFiRm8FLy1Q36YZPT4517vFzUh9%2BEWp53afQ498UwGzwnITVWFeDH%2BXLMbD2J3KZJC5TJMv23JPhyYdlUBGPrx9PVov8uCtlI%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462890", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:14:44 GMT
      Content-Length:
      - '1295'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>4bdbd762-3616-44e2-8ecd-281e7f8a9d4b</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:14:44.8517261Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>08ca5765-f5c3-4794-9ade-afbc76277ccd</ContactID>\r\n
        \       <Name>Existing Company Inc.</Name>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <SubTotal>1.00</SubTotal>\r\n      <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n
        \     <UpdatedDateUTC>2014-05-30T15:14:43.15</UpdatedDateUTC>\r\n      <CurrencyCode>GBP</CurrencyCode>\r\n
        \     <Type>ACCREC</Type>\r\n      <InvoiceID>25cff30a-db79-49d4-9748-a5d5f6b1eeee</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0043</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <AmountCredited>0.00</AmountCredited>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:14:51 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices/25cff30a-db79-49d4-9748-a5d5f6b1eeee
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="7YsOU6nwnzG3x7McmyyK7HlfPotY9fd1fJEQbOIQoV8",
        oauth_signature="mRbMpxhNs25xqp6h0zSdcRNhe9ps2mGNHfmj%2FxRtrDEvA7uwCj%2BIA6eLBsbfF5667vYQhDTuCA67o4woNT6Fc0%2BfH6GPAxvvH4n2g915MWEG9NIwXeI2xwXai8CFBHoGgZUCIYremadDc6imDpgsQm1U%2BEIGWO%2Fzq3aL%2FCtLSas%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401462891", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:14:45 GMT
      Content-Length:
      - '2701'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>f10ecee7-a2e6-49a9-982c-7b04fb9291a5</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:14:45.5693537Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>08ca5765-f5c3-4794-9ade-afbc76277ccd</ContactID>\r\n
        \       <ContactStatus>ACTIVE</ContactStatus>\r\n        <Name>Existing Company
        Inc.</Name>\r\n        <Addresses>\r\n          <Address>\r\n            <AddressType>STREET</AddressType>\r\n
        \         </Address>\r\n          <Address>\r\n            <AddressType>POBOX</AddressType>\r\n
        \         </Address>\r\n        </Addresses>\r\n        <Phones>\r\n          <Phone>\r\n
        \           <PhoneType>DDI</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>DEFAULT</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>FAX</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>MOBILE</PhoneType>\r\n          </Phone>\r\n        </Phones>\r\n
        \       <UpdatedDateUTC>2014-05-30T15:14:38.907</UpdatedDateUTC>\r\n        <IsSupplier>false</IsSupplier>\r\n
        \       <IsCustomer>true</IsCustomer>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <LineItems>\r\n        <LineItem>\r\n          <Description>my fantastic
        invoice description</Description>\r\n          <UnitAmount>1.00</UnitAmount>\r\n
        \         <TaxType>OUTPUT2</TaxType>\r\n          <TaxAmount>0.20</TaxAmount>\r\n
        \         <LineAmount>1.00</LineAmount>\r\n          <Tracking>\r\n            <TrackingCategory>\r\n
        \             <Name>Sector</Name>\r\n              <Option>Public sector</Option>\r\n
        \             <TrackingCategoryID>fa620646-16e2-446d-a596-6298b1cd738d</TrackingCategoryID>\r\n
        \           </TrackingCategory>\r\n          </Tracking>\r\n          <Quantity>1.0000</Quantity>\r\n
        \       </LineItem>\r\n      </LineItems>\r\n      <SubTotal>1.00</SubTotal>\r\n
        \     <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n      <UpdatedDateUTC>2014-05-30T15:14:43.15</UpdatedDateUTC>\r\n
        \     <CurrencyCode>GBP</CurrencyCode>\r\n      <Type>ACCREC</Type>\r\n      <InvoiceID>25cff30a-db79-49d4-9748-a5d5f6b1eeee</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0043</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <SentToContact>false</SentToContact>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:14:51 GMT
- request:
    method: put
    uri: https://api.xero.com/api.xro/2.0/Contacts
    body:
      encoding: US-ASCII
      string: xml=%3CContact%3E%0A%20%20%3CName%3EExisting%20Company%20Inc.%3C%2FName%3E%0A%3C%2FContact%3E%0A
    headers:
      Charset:
      - utf-8
      Content-Type:
      - application/x-www-form-urlencoded
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Content-Length:
      - '0'
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="2eLm9kgTPDtOcmA15n0MNWUvPIv39tO3BqqcHleZxk",
        oauth_signature="Syan6QIdCLq2dmgXxN%2BhMOYtFwSYcHujIAZoMa4PY8ljODlNZRNCrEqYM9rvhEFl4sGECSQRQI%2BWFvtwm9KwHlEc375H7gpikU0cqqp3YQkZtTdSZSeF6KZ8ku9ijTWbeTuqkqR4Ff%2Fgy9U6esauhUzbr1yKg2GYYFnrNwfywkc%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463046", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:20 GMT
      Content-Length:
      - '1226'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>0f28d5b0-887e-4310-b4b7-08f01ce33015</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:20.9357291Z</DateTimeUTC>\r\n
        \ <Contacts>\r\n    <Contact>\r\n      <ContactID>52129e59-9b76-412e-a2e0-d66608ebb012</ContactID>\r\n
        \     <ContactStatus>ACTIVE</ContactStatus>\r\n      <Name>Existing Company
        Inc.</Name>\r\n      <Addresses>\r\n        <Address>\r\n          <AddressType>STREET</AddressType>\r\n
        \       </Address>\r\n        <Address>\r\n          <AddressType>POBOX</AddressType>\r\n
        \       </Address>\r\n      </Addresses>\r\n      <Phones>\r\n        <Phone>\r\n
        \         <PhoneType>DDI</PhoneType>\r\n        </Phone>\r\n        <Phone>\r\n
        \         <PhoneType>DEFAULT</PhoneType>\r\n        </Phone>\r\n        <Phone>\r\n
        \         <PhoneType>FAX</PhoneType>\r\n        </Phone>\r\n        <Phone>\r\n
        \         <PhoneType>MOBILE</PhoneType>\r\n        </Phone>\r\n      </Phones>\r\n
        \     <UpdatedDateUTC>2014-05-30T15:17:20.92</UpdatedDateUTC>\r\n      <IsSupplier>false</IsSupplier>\r\n
        \     <IsCustomer>false</IsCustomer>\r\n      <HasAttachments>false</HasAttachments>\r\n
        \   </Contact>\r\n  </Contacts>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:27 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Contacts?where=Name.ToLower()%20==%20%22existing%20company%20inc.%22
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="eryn0brRBlJUByIBRMoHYdmLzixkZoyH45p9LO9hw",
        oauth_signature="lS829df04b%2F6HolyOAFCha2wVsdjBO9I8yrqUAUCjfdKkkuN7MFD9em5X1ahTTms1lDKwCAxRjNwUom7KpY83onEPBoz2kU6w%2Fhaj54Q2AEUCCllKPSvLqYfhuPYQ79ExwnPPXM%2FwuXR6e1uL2En9zYFot3JSLIspJopJY8nF8Q%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463047", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:20 GMT
      Content-Length:
      - '1226'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>5866861a-dd62-4bd7-a18a-38ee62eb1c95</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:21.9029663Z</DateTimeUTC>\r\n
        \ <Contacts>\r\n    <Contact>\r\n      <ContactID>52129e59-9b76-412e-a2e0-d66608ebb012</ContactID>\r\n
        \     <ContactStatus>ACTIVE</ContactStatus>\r\n      <Name>Existing Company
        Inc.</Name>\r\n      <Addresses>\r\n        <Address>\r\n          <AddressType>STREET</AddressType>\r\n
        \       </Address>\r\n        <Address>\r\n          <AddressType>POBOX</AddressType>\r\n
        \       </Address>\r\n      </Addresses>\r\n      <Phones>\r\n        <Phone>\r\n
        \         <PhoneType>DDI</PhoneType>\r\n        </Phone>\r\n        <Phone>\r\n
        \         <PhoneType>DEFAULT</PhoneType>\r\n        </Phone>\r\n        <Phone>\r\n
        \         <PhoneType>FAX</PhoneType>\r\n        </Phone>\r\n        <Phone>\r\n
        \         <PhoneType>MOBILE</PhoneType>\r\n        </Phone>\r\n      </Phones>\r\n
        \     <UpdatedDateUTC>2014-05-30T15:17:20.92</UpdatedDateUTC>\r\n      <IsSupplier>false</IsSupplier>\r\n
        \     <IsCustomer>false</IsCustomer>\r\n      <HasAttachments>false</HasAttachments>\r\n
        \   </Contact>\r\n  </Contacts>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:28 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%2252129e59-9b76-412e-a2e0-d66608ebb012%22)
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="ywljv3zbOZgQ11pqDoZiNanB7K8evl3BT0fc7nkolc",
        oauth_signature="Q126lHur1HNMuy0%2BnYlTp6d1f2qED7Kf7GQQpt89HDCieJqULC0eoSMQeS6%2BVqLxuNKkrJP%2BzEIjr0En39MW5eR8tfmR%2BrHdXz%2FkPfSscBuKvtCgTCPPGQiFkixxvjSMsB9%2B%2B5SvnR76QycAl8m%2BfKGk9D6ADErLwaYMfcrPVQo%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463048", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:22 GMT
      Content-Length:
      - '289'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>d42c9e92-6f43-464c-8032-54ca817f3d51</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:22.7922005Z</DateTimeUTC>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:28 GMT
- request:
    method: put
    uri: https://api.xero.com/api.xro/2.0/Invoices
    body:
      encoding: US-ASCII
      string: xml=%3CInvoice%3E%0A%20%20%3CType%3EACCREC%3C%2FType%3E%0A%20%20%3CContact%3E%0A%20%20%20%20%3CContactID%3E52129e59-9b76-412e-a2e0-d66608ebb012%3C%2FContactID%3E%0A%20%20%20%20%3CContactStatus%3EACTIVE%3C%2FContactStatus%3E%0A%20%20%20%20%3CName%3EExisting%20Company%20Inc.%3C%2FName%3E%0A%20%20%20%20%3CAddresses%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3ESTREET%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3EPOBOX%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%3C%2FAddresses%3E%0A%20%20%20%20%3CPhones%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDDI%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDEFAULT%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EFAX%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EMOBILE%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3C%2FPhones%3E%0A%20%20%20%20%3CUpdatedDateUTC%3E2014-05-30T14%3A17%3A20%3C%2FUpdatedDateUTC%3E%0A%20%20%20%20%3CIsSupplier%3Efalse%3C%2FIsSupplier%3E%0A%20%20%20%20%3CIsCustomer%3Efalse%3C%2FIsCustomer%3E%0A%20%20%3C%2FContact%3E%0A%20%20%3CDueDate%3E2013-03-10%3C%2FDueDate%3E%0A%20%20%3CStatus%3EDRAFT%3C%2FStatus%3E%0A%20%20%3CLineItems%3E%0A%20%20%20%20%3CLineItem%3E%0A%20%20%20%20%20%20%3CDescription%3Emy%20fantastic%20invoice%20description%3C%2FDescription%3E%0A%20%20%20%20%20%20%3CQuantity%3E1%3C%2FQuantity%3E%0A%20%20%20%20%20%20%3CUnitAmount%3E1.0%3C%2FUnitAmount%3E%0A%20%20%20%20%20%20%3CTaxType%3EOUTPUT2%3C%2FTaxType%3E%0A%20%20%20%20%3C%2FLineItem%3E%0A%20%20%3C%2FLineItems%3E%0A%20%20%3CReference%3EAB1234%3C%2FReference%3E%0A%3C%2FInvoice%3E%0A
    headers:
      Charset:
      - utf-8
      Content-Type:
      - application/x-www-form-urlencoded
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Content-Length:
      - '0'
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="orcVt6qB7KWo2hX6ptuBZBXOCPkxpKKpwXLNHKJcZbU",
        oauth_signature="apvhoioduGniJNbc0p9%2B1ImANML6rdvpMSPj2JbDAMDoyp%2FjHrD%2FGYFFyVjVdrpmTc07tFT2I04PbIePmBrTJtuU2UOXixBAsxJ1XP8Qxi4brfaAJSfCwu0v3fR7GGGS19d1UAaeZ%2B5N9fyXsUkhyA148pgLzfROQlXXiPoRmHM%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463048", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:23 GMT
      Content-Length:
      - '2370'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>eb6438a5-4cd4-43c0-9241-74eada6848d8</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:23.6346329Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>52129e59-9b76-412e-a2e0-d66608ebb012</ContactID>\r\n
        \       <ContactStatus>ACTIVE</ContactStatus>\r\n        <Name>Existing Company
        Inc.</Name>\r\n        <Addresses>\r\n          <Address>\r\n            <AddressType>STREET</AddressType>\r\n
        \         </Address>\r\n          <Address>\r\n            <AddressType>POBOX</AddressType>\r\n
        \         </Address>\r\n        </Addresses>\r\n        <Phones>\r\n          <Phone>\r\n
        \           <PhoneType>DDI</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>DEFAULT</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>FAX</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>MOBILE</PhoneType>\r\n          </Phone>\r\n        </Phones>\r\n
        \       <UpdatedDateUTC>2014-05-30T15:17:20.92</UpdatedDateUTC>\r\n        <IsSupplier>false</IsSupplier>\r\n
        \       <IsCustomer>true</IsCustomer>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <LineItems>\r\n        <LineItem>\r\n          <Description>my fantastic
        invoice description</Description>\r\n          <UnitAmount>1.00</UnitAmount>\r\n
        \         <TaxType>OUTPUT2</TaxType>\r\n          <TaxAmount>0.20</TaxAmount>\r\n
        \         <LineAmount>1.00</LineAmount>\r\n          <Quantity>1.0000</Quantity>\r\n
        \       </LineItem>\r\n      </LineItems>\r\n      <SubTotal>1.00</SubTotal>\r\n
        \     <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n      <UpdatedDateUTC>2014-05-30T15:17:23.62</UpdatedDateUTC>\r\n
        \     <CurrencyCode>GBP</CurrencyCode>\r\n      <Type>ACCREC</Type>\r\n      <InvoiceID>6fb580ca-1daf-40b3-95ac-fd75594b0f8b</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0044</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <SentToContact>false</SentToContact>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \   </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:29 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/TrackingCategories
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="wy0oMHTAlpH8MX3ItFQnUoOr5Xh2HPro61AGoE1yvk",
        oauth_signature="Q0KCLD8dUFwBC3kYZTmXcvz%2FwpCjj3UTpviAZSNe5h%2BWTzRvE94n%2Bdgj6eDp%2FkLsXfm%2BsiCfX5bNjL3H7tzjNggjcexRB36POPcKsKrRIJf%2BUTI9Eon417vdhqVhb3TBrPxVGH78h3ijR5YKFs9c31iD2KxZC6024P%2F1543Sp5Y%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463049", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:23 GMT
      Content-Length:
      - '2197'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>f08c69ed-2cfb-41dd-b734-da771ac9eeb8</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:24.4926659Z</DateTimeUTC>\r\n
        \ <TrackingCategories>\r\n    <TrackingCategory>\r\n      <Name>Region</Name>\r\n
        \     <Status>ACTIVE</Status>\r\n      <TrackingCategoryID>9d8ad8f6-0d0f-41e0-8851-ef47e8b54ae6</TrackingCategoryID>\r\n
        \     <Options>\r\n        <Option>\r\n          <TrackingOptionID>dba3d4da-f9ed-4eee-8e0b-452d11fdb1fa</TrackingOptionID>\r\n
        \         <Name>Eastside</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>34b9b859-07a9-451a-b4d3-effc9946634a</TrackingOptionID>\r\n
        \         <Name>North</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>b3900cc6-3745-40ea-955f-9ef7b1c8cf7e</TrackingOptionID>\r\n
        \         <Name>South</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>83aa6e46-ef98-4b37-b562-459479e52c4c</TrackingOptionID>\r\n
        \         <Name>West Coast</Name>\r\n        </Option>\r\n      </Options>\r\n
        \   </TrackingCategory>\r\n    <TrackingCategory>\r\n      <Name>Sector</Name>\r\n
        \     <Status>ACTIVE</Status>\r\n      <TrackingCategoryID>fa620646-16e2-446d-a596-6298b1cd738d</TrackingCategoryID>\r\n
        \     <Options>\r\n        <Option>\r\n          <TrackingOptionID>7a47c64d-b35b-48da-85ec-a637d11a4dc5</TrackingOptionID>\r\n
        \         <Name>Individual</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>79168e8a-135a-441a-b0c5-f910fef87729</TrackingOptionID>\r\n
        \         <Name>Other</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>1e519a12-3d08-41ce-bfa1-e735a23dad29</TrackingOptionID>\r\n
        \         <Name>Private sector</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>e0882046-902c-4aab-b79e-f88eaa6616cc</TrackingOptionID>\r\n
        \         <Name>Public sector</Name>\r\n        </Option>\r\n        <Option>\r\n
        \         <TrackingOptionID>1567f588-05c8-4ec9-9cb1-29e87e33001e</TrackingOptionID>\r\n
        \         <Name>Third sector</Name>\r\n        </Option>\r\n      </Options>\r\n
        \   </TrackingCategory>\r\n  </TrackingCategories>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:30 GMT
- request:
    method: post
    uri: https://api.xero.com/api.xro/2.0/Invoices
    body:
      encoding: US-ASCII
      string: xml=%3CInvoice%3E%0A%20%20%3CInvoice%3E%0A%20%20%20%20%3CContactID%3E52129e59-9b76-412e-a2e0-d66608ebb012%3C%2FContactID%3E%0A%20%20%20%20%3CContactStatus%3EACTIVE%3C%2FContactStatus%3E%0A%20%20%20%20%3CName%3EExisting%20Company%20Inc.%3C%2FName%3E%0A%20%20%20%20%3CAddresses%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3ESTREET%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3EPOBOX%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%3C%2FAddresses%3E%0A%20%20%20%20%3CPhones%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDDI%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDEFAULT%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EFAX%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EMOBILE%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3C%2FPhones%3E%0A%20%20%20%20%3CUpdatedDateUTC%3E2014-05-30T14%3A17%3A20%3C%2FUpdatedDateUTC%3E%0A%20%20%20%20%3CIsSupplier%3Efalse%3C%2FIsSupplier%3E%0A%20%20%20%20%3CIsCustomer%3Etrue%3C%2FIsCustomer%3E%0A%20%20%3C%2FInvoice%3E%0A%20%20%3CDate%3E2014-05-30%3C%2FDate%3E%0A%20%20%3CDueDate%3E2013-03-10%3C%2FDueDate%3E%0A%20%20%3CStatus%3EDRAFT%3C%2FStatus%3E%0A%20%20%3CLineAmountTypes%3EExclusive%3C%2FLineAmountTypes%3E%0A%20%20%3CLineItems%3E%0A%20%20%20%20%3CLineItem%3E%0A%20%20%20%20%20%20%3CDescription%3Emy%20fantastic%20invoice%20description%3C%2FDescription%3E%0A%20%20%20%20%20%20%3CUnitAmount%3E1.0%3C%2FUnitAmount%3E%0A%20%20%20%20%20%20%3CTaxType%3EOUTPUT2%3C%2FTaxType%3E%0A%20%20%20%20%20%20%3CTaxAmount%3E0.2%3C%2FTaxAmount%3E%0A%20%20%20%20%20%20%3CLineAmount%3E1.0%3C%2FLineAmount%3E%0A%20%20%20%20%20%20%3CQuantity%3E1.0%3C%2FQuantity%3E%0A%20%20%20%20%20%20%3CTracking%3E%0A%20%20%20%20%20%20%20%20%3CTrackingCategory%3E%0A%20%20%20%20%20%20%20%20%20%20%3CName%3ESector%3C%2FName%3E%0A%20%20%20%20%20%20%20%20%20%20%3COption%3EPublic%20sector%3C%2FOption%3E%0A%20%20%20%20%20%20%20%20%3C%2FTrackingCategory%3E%0A%20%20%20%20%20%20%3C%2FTracking%3E%0A%20%20%20%20%3C%2FLineItem%3E%0A%20%20%3C%2FLineItems%3E%0A%20%20%3CSubTotal%3E1.0%3C%2FSubTotal%3E%0A%20%20%3CTotalTax%3E0.2%3C%2FTotalTax%3E%0A%20%20%3CTotal%3E1.2%3C%2FTotal%3E%0A%20%20%3CUpdatedDateUTC%3E2014-05-30T14%3A17%3A23%3C%2FUpdatedDateUTC%3E%0A%20%20%3CCurrencyCode%3EGBP%3C%2FCurrencyCode%3E%0A%20%20%3CType%3EACCREC%3C%2FType%3E%0A%20%20%3CInvoiceID%3E6fb580ca-1daf-40b3-95ac-fd75594b0f8b%3C%2FInvoiceID%3E%0A%20%20%3CInvoiceNumber%3EINV-0044%3C%2FInvoiceNumber%3E%0A%20%20%3CReference%3EAB1234%3C%2FReference%3E%0A%20%20%3CAmountDue%3E1.2%3C%2FAmountDue%3E%0A%20%20%3CAmountPaid%3E0.0%3C%2FAmountPaid%3E%0A%20%20%3CSentToContact%3Efalse%3C%2FSentToContact%3E%0A%3C%2FInvoice%3E%0A
    headers:
      Charset:
      - utf-8
      Content-Type:
      - application/x-www-form-urlencoded
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Content-Length:
      - '0'
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="tH9grU4omd2LS8dBg8AuIXScC2A6ZwB3xecPSmNqaE",
        oauth_signature="m%2FPvpeseDPCXYdOnIrop%2FWk0RnRoqEBSLeIadU%2FwlPJGbLjF9eRt6Rb1c1dZo84qU3NmbEEG06Al3y5q1zJrFSvcgi7LWUkFm6a7Fvx5U2lFPgOG2BibWYu0gb72w6m43HIrPPls9ihx9xnfnl7WJyxpr0mKh7%2BbrSPS2q7xbx4%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463050", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:24 GMT
      Content-Length:
      - '2817'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>94fdf68e-76dd-4530-855d-5437222b652a</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:25.7719151Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Warnings>\r\n        <Warning>\r\n
        \         <Message>Only AUTHORISED invoices may have SentToContact updated.</Message>\r\n
        \       </Warning>\r\n      </Warnings>\r\n      <Contact>\r\n        <ContactID>52129e59-9b76-412e-a2e0-d66608ebb012</ContactID>\r\n
        \       <ContactStatus>ACTIVE</ContactStatus>\r\n        <Name>Existing Company
        Inc.</Name>\r\n        <Addresses>\r\n          <Address>\r\n            <AddressType>STREET</AddressType>\r\n
        \         </Address>\r\n          <Address>\r\n            <AddressType>POBOX</AddressType>\r\n
        \         </Address>\r\n        </Addresses>\r\n        <Phones>\r\n          <Phone>\r\n
        \           <PhoneType>DDI</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>DEFAULT</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>FAX</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>MOBILE</PhoneType>\r\n          </Phone>\r\n        </Phones>\r\n
        \       <UpdatedDateUTC>2014-05-30T15:17:20.92</UpdatedDateUTC>\r\n        <IsSupplier>false</IsSupplier>\r\n
        \       <IsCustomer>true</IsCustomer>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <LineItems>\r\n        <LineItem>\r\n          <Description>my fantastic
        invoice description</Description>\r\n          <UnitAmount>1.00</UnitAmount>\r\n
        \         <TaxType>OUTPUT2</TaxType>\r\n          <TaxAmount>0.20</TaxAmount>\r\n
        \         <LineAmount>1.00</LineAmount>\r\n          <Tracking>\r\n            <TrackingCategory>\r\n
        \             <Name>Sector</Name>\r\n              <Option>Public sector</Option>\r\n
        \             <TrackingCategoryID>fa620646-16e2-446d-a596-6298b1cd738d</TrackingCategoryID>\r\n
        \           </TrackingCategory>\r\n          </Tracking>\r\n          <Quantity>1.0000</Quantity>\r\n
        \       </LineItem>\r\n      </LineItems>\r\n      <SubTotal>1.00</SubTotal>\r\n
        \     <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n      <UpdatedDateUTC>2014-05-30T15:17:25.74</UpdatedDateUTC>\r\n
        \     <CurrencyCode>GBP</CurrencyCode>\r\n      <Type>ACCREC</Type>\r\n      <InvoiceID>6fb580ca-1daf-40b3-95ac-fd75594b0f8b</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0044</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <SentToContact>false</SentToContact>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \   </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:32 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Contacts?where=Name%20==%20%22Existing%20Company%20Inc.%22
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="e2rc702CuhcnwMgNUxfMtD3aUZRpqXcF9zVTinpSXM",
        oauth_signature="Kb8%2Bo1modQHl51XnFvGkwTOdILGKHQ%2FCTEFm0ThKuPddfE7KsBY9z5GSIRGElZGF%2F3MB0ujkgk95CVz2BcYcStuzngQq8fJjV7wltYy6qA%2Fz2E8yREIbHR5MnB5DCy%2BUK4zD2jNv%2FqZZEOptjrn3eQ00fedL1Lw%2Bj6phoHeSBmI%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463052", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:25 GMT
      Content-Length:
      - '1225'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>c8b88ca5-f0c3-4551-b1cc-f91f29a33994</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:26.5675457Z</DateTimeUTC>\r\n
        \ <Contacts>\r\n    <Contact>\r\n      <ContactID>52129e59-9b76-412e-a2e0-d66608ebb012</ContactID>\r\n
        \     <ContactStatus>ACTIVE</ContactStatus>\r\n      <Name>Existing Company
        Inc.</Name>\r\n      <Addresses>\r\n        <Address>\r\n          <AddressType>STREET</AddressType>\r\n
        \       </Address>\r\n        <Address>\r\n          <AddressType>POBOX</AddressType>\r\n
        \       </Address>\r\n      </Addresses>\r\n      <Phones>\r\n        <Phone>\r\n
        \         <PhoneType>DDI</PhoneType>\r\n        </Phone>\r\n        <Phone>\r\n
        \         <PhoneType>DEFAULT</PhoneType>\r\n        </Phone>\r\n        <Phone>\r\n
        \         <PhoneType>FAX</PhoneType>\r\n        </Phone>\r\n        <Phone>\r\n
        \         <PhoneType>MOBILE</PhoneType>\r\n        </Phone>\r\n      </Phones>\r\n
        \     <UpdatedDateUTC>2014-05-30T15:17:20.92</UpdatedDateUTC>\r\n      <IsSupplier>false</IsSupplier>\r\n
        \     <IsCustomer>true</IsCustomer>\r\n      <HasAttachments>false</HasAttachments>\r\n
        \   </Contact>\r\n  </Contacts>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:32 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices?where=Contact.ContactID%20=%20GUID(%2252129e59-9b76-412e-a2e0-d66608ebb012%22)%20AND%20Status%20!=%20%22DELETED%22
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="eivWqMM0dRjJJW5uHJXZKkQnmR6u1dwA8yh6SxSPbg",
        oauth_signature="QCPIYqzCB6%2FcYGAgkAnVMhwFN3L4JNUAXE4Zg1IQYY%2BzqX4QbxP8wsGgYr18ummxU%2B9GJf9V89yWRfBKBpuRlwOt8%2ByBdt6%2Fv8p1PGgf6wluNkoXH7xRraekq1R4KBBKR%2FhxaWlN8V4Ppd8DEcWD6EGc6pd9R6t1ea9UwUjgEGg%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463052", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:27 GMT
      Content-Length:
      - '1295'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>2bfb5099-b6fd-4502-b10f-9d93165e0f72</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:27.4411793Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>52129e59-9b76-412e-a2e0-d66608ebb012</ContactID>\r\n
        \       <Name>Existing Company Inc.</Name>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <SubTotal>1.00</SubTotal>\r\n      <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n
        \     <UpdatedDateUTC>2014-05-30T15:17:25.74</UpdatedDateUTC>\r\n      <CurrencyCode>GBP</CurrencyCode>\r\n
        \     <Type>ACCREC</Type>\r\n      <InvoiceID>6fb580ca-1daf-40b3-95ac-fd75594b0f8b</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0044</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <AmountCredited>0.00</AmountCredited>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:33 GMT
- request:
    method: get
    uri: https://api.xero.com/api.xro/2.0/Invoices/6fb580ca-1daf-40b3-95ac-fd75594b0f8b
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Charset:
      - utf-8
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="luk6ZudS4JaiMGTzFbQ5TUeWzlMCiQfIvsoSNKU7VY",
        oauth_signature="MM7iFgadS9OEl8abpnm1JlFhjJw%2BMw0396szAShte8WWM6vHIPHWdhKdLLJ2ZJ3X89WlCP%2FA5NIW1BuiteZL4hbF5fM%2BkYSbr0vuCr%2F3HysjgVJUn7CRYMJvPZxZWxXtC03O7cLi5UHJ9msC853bwLf%2FxRnI4PlViOwuE%2FIbvjk%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463053", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:28 GMT
      Content-Length:
      - '2700'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>0a4990f2-c553-459e-91f6-2a8d8eec5d17</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:28.3460141Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>52129e59-9b76-412e-a2e0-d66608ebb012</ContactID>\r\n
        \       <ContactStatus>ACTIVE</ContactStatus>\r\n        <Name>Existing Company
        Inc.</Name>\r\n        <Addresses>\r\n          <Address>\r\n            <AddressType>STREET</AddressType>\r\n
        \         </Address>\r\n          <Address>\r\n            <AddressType>POBOX</AddressType>\r\n
        \         </Address>\r\n        </Addresses>\r\n        <Phones>\r\n          <Phone>\r\n
        \           <PhoneType>DDI</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>DEFAULT</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>FAX</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>MOBILE</PhoneType>\r\n          </Phone>\r\n        </Phones>\r\n
        \       <UpdatedDateUTC>2014-05-30T15:17:20.92</UpdatedDateUTC>\r\n        <IsSupplier>false</IsSupplier>\r\n
        \       <IsCustomer>true</IsCustomer>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DRAFT</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <LineItems>\r\n        <LineItem>\r\n          <Description>my fantastic
        invoice description</Description>\r\n          <UnitAmount>1.00</UnitAmount>\r\n
        \         <TaxType>OUTPUT2</TaxType>\r\n          <TaxAmount>0.20</TaxAmount>\r\n
        \         <LineAmount>1.00</LineAmount>\r\n          <Tracking>\r\n            <TrackingCategory>\r\n
        \             <Name>Sector</Name>\r\n              <Option>Public sector</Option>\r\n
        \             <TrackingCategoryID>fa620646-16e2-446d-a596-6298b1cd738d</TrackingCategoryID>\r\n
        \           </TrackingCategory>\r\n          </Tracking>\r\n          <Quantity>1.0000</Quantity>\r\n
        \       </LineItem>\r\n      </LineItems>\r\n      <SubTotal>1.00</SubTotal>\r\n
        \     <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n      <UpdatedDateUTC>2014-05-30T15:17:25.74</UpdatedDateUTC>\r\n
        \     <CurrencyCode>GBP</CurrencyCode>\r\n      <Type>ACCREC</Type>\r\n      <InvoiceID>6fb580ca-1daf-40b3-95ac-fd75594b0f8b</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0044</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <SentToContact>false</SentToContact>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:34 GMT
- request:
    method: post
    uri: https://api.xero.com/api.xro/2.0/Invoices
    body:
      encoding: US-ASCII
      string: xml=%3CInvoice%3E%0A%20%20%3CInvoice%3E%0A%20%20%20%20%3CContactID%3E52129e59-9b76-412e-a2e0-d66608ebb012%3C%2FContactID%3E%0A%20%20%20%20%3CContactStatus%3EACTIVE%3C%2FContactStatus%3E%0A%20%20%20%20%3CName%3EExisting%20Company%20Inc.%3C%2FName%3E%0A%20%20%20%20%3CAddresses%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3ESTREET%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%20%20%3CAddressType%3EPOBOX%3C%2FAddressType%3E%0A%20%20%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%3C%2FAddresses%3E%0A%20%20%20%20%3CPhones%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDDI%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EDEFAULT%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EFAX%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%20%20%3CPhoneType%3EMOBILE%3C%2FPhoneType%3E%0A%20%20%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3C%2FPhones%3E%0A%20%20%20%20%3CUpdatedDateUTC%3E2014-05-30T14%3A17%3A20%3C%2FUpdatedDateUTC%3E%0A%20%20%20%20%3CIsSupplier%3Efalse%3C%2FIsSupplier%3E%0A%20%20%20%20%3CIsCustomer%3Etrue%3C%2FIsCustomer%3E%0A%20%20%3C%2FInvoice%3E%0A%20%20%3CDate%3E2014-05-30%3C%2FDate%3E%0A%20%20%3CDueDate%3E2013-03-10%3C%2FDueDate%3E%0A%20%20%3CStatus%3EDELETED%3C%2FStatus%3E%0A%20%20%3CLineAmountTypes%3EExclusive%3C%2FLineAmountTypes%3E%0A%20%20%3CLineItems%3E%0A%20%20%20%20%3CLineItem%3E%0A%20%20%20%20%20%20%3CDescription%3Emy%20fantastic%20invoice%20description%3C%2FDescription%3E%0A%20%20%20%20%20%20%3CUnitAmount%3E1.0%3C%2FUnitAmount%3E%0A%20%20%20%20%20%20%3CTaxType%3EOUTPUT2%3C%2FTaxType%3E%0A%20%20%20%20%20%20%3CTaxAmount%3E0.2%3C%2FTaxAmount%3E%0A%20%20%20%20%20%20%3CLineAmount%3E1.0%3C%2FLineAmount%3E%0A%20%20%20%20%20%20%3CTracking%3E%0A%20%20%20%20%20%20%20%20%3CTrackingCategory%3E%0A%20%20%20%20%20%20%20%20%20%20%3CName%3ESector%3C%2FName%3E%0A%20%20%20%20%20%20%20%20%20%20%3COption%3EPublic%20sector%3C%2FOption%3E%0A%20%20%20%20%20%20%20%20%20%20%3CTrackingCategoryID%3Efa620646-16e2-446d-a596-6298b1cd738d%3C%2FTrackingCategoryID%3E%0A%20%20%20%20%20%20%20%20%3C%2FTrackingCategory%3E%0A%20%20%20%20%20%20%3C%2FTracking%3E%0A%20%20%20%20%20%20%3CQuantity%3E1.0%3C%2FQuantity%3E%0A%20%20%20%20%3C%2FLineItem%3E%0A%20%20%3C%2FLineItems%3E%0A%20%20%3CSubTotal%3E1.0%3C%2FSubTotal%3E%0A%20%20%3CTotalTax%3E0.2%3C%2FTotalTax%3E%0A%20%20%3CTotal%3E1.2%3C%2FTotal%3E%0A%20%20%3CUpdatedDateUTC%3E2014-05-30T14%3A17%3A25%3C%2FUpdatedDateUTC%3E%0A%20%20%3CCurrencyCode%3EGBP%3C%2FCurrencyCode%3E%0A%20%20%3CType%3EACCREC%3C%2FType%3E%0A%20%20%3CInvoiceID%3E6fb580ca-1daf-40b3-95ac-fd75594b0f8b%3C%2FInvoiceID%3E%0A%20%20%3CInvoiceNumber%3EINV-0044%3C%2FInvoiceNumber%3E%0A%20%20%3CReference%3EAB1234%3C%2FReference%3E%0A%20%20%3CAmountDue%3E1.2%3C%2FAmountDue%3E%0A%20%20%3CAmountPaid%3E0.0%3C%2FAmountPaid%3E%0A%20%20%3CSentToContact%3Efalse%3C%2FSentToContact%3E%0A%3C%2FInvoice%3E%0A
    headers:
      Charset:
      - utf-8
      Content-Type:
      - application/x-www-form-urlencoded
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Content-Length:
      - '0'
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="5jppSMk0THgqoEH7VcY74fTykIAKwSkLrKjaeOks8U",
        oauth_signature="c3tfy6tFm9cvVjxarp18HLZ2JyeS4eimmo7eWZ%2BegWQkRYQ4zB9aSw8HTB71CHyqGNIN%2FySLtsqeZy2J24KOMUfmcvKLFZDhjFe3DaL1sarrl3bggpiBmcq%2BkDTvpTa7%2FQ%2FMN%2Fj6KhDi7h40u3n3cTn8dAiVEj91FUvNGhgs%2FXo%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463054", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:29 GMT
      Content-Length:
      - '2657'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>7e9770ef-e94b-45aa-857d-2c8d41ccefaa</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:29.5316597Z</DateTimeUTC>\r\n
        \ <Invoices>\r\n    <Invoice>\r\n      <Contact>\r\n        <ContactID>52129e59-9b76-412e-a2e0-d66608ebb012</ContactID>\r\n
        \       <ContactStatus>ACTIVE</ContactStatus>\r\n        <Name>Existing Company
        Inc.</Name>\r\n        <Addresses>\r\n          <Address>\r\n            <AddressType>STREET</AddressType>\r\n
        \         </Address>\r\n          <Address>\r\n            <AddressType>POBOX</AddressType>\r\n
        \         </Address>\r\n        </Addresses>\r\n        <Phones>\r\n          <Phone>\r\n
        \           <PhoneType>DDI</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>DEFAULT</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>FAX</PhoneType>\r\n          </Phone>\r\n          <Phone>\r\n
        \           <PhoneType>MOBILE</PhoneType>\r\n          </Phone>\r\n        </Phones>\r\n
        \       <UpdatedDateUTC>2014-05-30T15:17:20.92</UpdatedDateUTC>\r\n        <IsSupplier>false</IsSupplier>\r\n
        \       <IsCustomer>true</IsCustomer>\r\n        <HasAttachments>false</HasAttachments>\r\n
        \     </Contact>\r\n      <Date>2014-05-30T00:00:00</Date>\r\n      <DueDate>2013-03-10T00:00:00</DueDate>\r\n
        \     <Status>DELETED</Status>\r\n      <LineAmountTypes>Exclusive</LineAmountTypes>\r\n
        \     <LineItems>\r\n        <LineItem>\r\n          <Description>my fantastic
        invoice description</Description>\r\n          <UnitAmount>1.00</UnitAmount>\r\n
        \         <TaxType>OUTPUT2</TaxType>\r\n          <TaxAmount>0.20</TaxAmount>\r\n
        \         <LineAmount>1.00</LineAmount>\r\n          <Tracking>\r\n            <TrackingCategory>\r\n
        \             <Name>Sector</Name>\r\n              <Option>Public sector</Option>\r\n
        \             <TrackingCategoryID>fa620646-16e2-446d-a596-6298b1cd738d</TrackingCategoryID>\r\n
        \           </TrackingCategory>\r\n          </Tracking>\r\n          <Quantity>1.0000</Quantity>\r\n
        \       </LineItem>\r\n      </LineItems>\r\n      <SubTotal>1.00</SubTotal>\r\n
        \     <TotalTax>0.20</TotalTax>\r\n      <Total>1.20</Total>\r\n      <UpdatedDateUTC>2014-05-30T15:17:29.517</UpdatedDateUTC>\r\n
        \     <CurrencyCode>GBP</CurrencyCode>\r\n      <Type>ACCREC</Type>\r\n      <InvoiceID>6fb580ca-1daf-40b3-95ac-fd75594b0f8b</InvoiceID>\r\n
        \     <InvoiceNumber>INV-0044</InvoiceNumber>\r\n      <Reference>AB1234</Reference>\r\n
        \     <AmountDue>1.20</AmountDue>\r\n      <AmountPaid>0.00</AmountPaid>\r\n
        \     <SentToContact>false</SentToContact>\r\n      <CurrencyRate>1.000000</CurrencyRate>\r\n
        \   </Invoice>\r\n  </Invoices>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:35 GMT
- request:
    method: post
    uri: https://api.xero.com/api.xro/2.0/Contacts
    body:
      encoding: US-ASCII
      string: xml=%3CContact%3E%0A%20%20%3CContactID%3E52129e59-9b76-412e-a2e0-d66608ebb012%3C%2FContactID%3E%0A%20%20%3CContactStatus%3EACTIVE%3C%2FContactStatus%3E%0A%20%20%3CName%3EExisting%20Company%20Inc.%2052129e59-9b76-412e-a2e0-d66608ebb012%3C%2FName%3E%0A%20%20%3CAddresses%3E%0A%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%3CAddressType%3ESTREET%3C%2FAddressType%3E%0A%20%20%20%20%3C%2FAddress%3E%0A%20%20%20%20%3CAddress%3E%0A%20%20%20%20%20%20%3CAddressType%3EPOBOX%3C%2FAddressType%3E%0A%20%20%20%20%3C%2FAddress%3E%0A%20%20%3C%2FAddresses%3E%0A%20%20%3CPhones%3E%0A%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%3CPhoneType%3EDDI%3C%2FPhoneType%3E%0A%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%3CPhoneType%3EDEFAULT%3C%2FPhoneType%3E%0A%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%3CPhoneType%3EFAX%3C%2FPhoneType%3E%0A%20%20%20%20%3C%2FPhone%3E%0A%20%20%20%20%3CPhone%3E%0A%20%20%20%20%20%20%3CPhoneType%3EMOBILE%3C%2FPhoneType%3E%0A%20%20%20%20%3C%2FPhone%3E%0A%20%20%3C%2FPhones%3E%0A%20%20%3CUpdatedDateUTC%3E2014-05-30T14%3A17%3A20%3C%2FUpdatedDateUTC%3E%0A%20%20%3CIsSupplier%3Efalse%3C%2FIsSupplier%3E%0A%20%20%3CIsCustomer%3Etrue%3C%2FIsCustomer%3E%0A%3C%2FContact%3E%0A
    headers:
      Charset:
      - utf-8
      Content-Type:
      - application/x-www-form-urlencoded
      Accept:
      - ! '*/*'
      User-Agent:
      - OAuth gem v0.4.7
      Content-Length:
      - '0'
      Authorization:
      - OAuth oauth_consumer_key="<XERO_CONSUMER_KEY>", oauth_nonce="q8XGaS4DWOQhm6WuucBIvESId6xFfpPULT9sybxty4E",
        oauth_signature="VpD%2FQuZIQqkJ5c97FT8t%2FEqWNul3fnit6xtPjGkR0luVmDUozugHh4iEQD0WqPA3t4mR3DuKk1iw22eb5JyGTTkvByGruM68yyTkr9hsZ62ubfZqeHWjgI1ur9v5tGkLcUy5YPJfwFfk4SXi4QFxIUK9%2FE8Q7nKOGMnVIv%2BC5Bw%3D",
        oauth_signature_method="RSA-SHA1", oauth_timestamp="1401463055", oauth_token="<XERO_CONSUMER_KEY>",
        oauth_version="1.0"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - private
      Content-Type:
      - text/xml; charset=utf-8
      Www-Authenticate:
      - OAuth Realm="api.xero.com"
      X-S:
      - 445761-O1VMAP04
      Strict-Transport-Security:
      - max-age=31536000
      Date:
      - Fri, 30 May 2014 15:17:30 GMT
      Content-Length:
      - '1261'
    body:
      encoding: US-ASCII
      string: ! "<Response xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n
        \ <Id>47d62f69-c6a3-4ea4-8193-4ede29c1c53d</Id>\r\n  <Status>OK</Status>\r\n
        \ <ProviderName>WAT</ProviderName>\r\n  <DateTimeUTC>2014-05-30T15:17:30.5300981Z</DateTimeUTC>\r\n
        \ <Contacts>\r\n    <Contact>\r\n      <ContactID>52129e59-9b76-412e-a2e0-d66608ebb012</ContactID>\r\n
        \     <ContactStatus>ACTIVE</ContactStatus>\r\n      <Name>Existing Company
        Inc. 52129e59-9b76-412e-a2e0-d66608ebb012</Name>\r\n      <Addresses>\r\n
        \       <Address>\r\n          <AddressType>STREET</AddressType>\r\n        </Address>\r\n
        \       <Address>\r\n          <AddressType>POBOX</AddressType>\r\n        </Address>\r\n
        \     </Addresses>\r\n      <Phones>\r\n        <Phone>\r\n          <PhoneType>DDI</PhoneType>\r\n
        \       </Phone>\r\n        <Phone>\r\n          <PhoneType>DEFAULT</PhoneType>\r\n
        \       </Phone>\r\n        <Phone>\r\n          <PhoneType>FAX</PhoneType>\r\n
        \       </Phone>\r\n        <Phone>\r\n          <PhoneType>MOBILE</PhoneType>\r\n
        \       </Phone>\r\n      </Phones>\r\n      <UpdatedDateUTC>2014-05-30T15:17:30.5</UpdatedDateUTC>\r\n
        \     <IsSupplier>false</IsSupplier>\r\n      <IsCustomer>true</IsCustomer>\r\n
        \     <HasAttachments>false</HasAttachments>\r\n    </Contact>\r\n  </Contacts>\r\n</Response>"
    http_version: 
  recorded_at: Fri, 30 May 2014 15:17:36 GMT
recorded_with: VCR 2.8.0