PageRenderTime 106ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/test/cassettes/authorized_with_capture.yml

https://github.com/collectiveidea/tax_cloud
YAML | 63 lines | 63 code | 0 blank | 0 comment | 0 complexity | 31b136d69e0a53469ea5259c6252ba01 MD5 | raw file
  1. ---
  2. - !ruby/struct:VCR::HTTPInteraction
  3. request: !ruby/struct:VCR::Request
  4. method: :post
  5. uri: https://api.taxcloud.net:443/1.0/TaxCloud.asmx
  6. body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://taxcloud.net" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://taxcloud.net"><env:Body><ins0:Lookup><ins0:customerID>1644</ins0:customerID><ins0:cartID>8291</ins0:cartID><ins0:cartItems><ins0:CartItem><wsdl:Index>0</wsdl:Index><wsdl:ItemID>SKU-TEST</wsdl:ItemID><wsdl:TIC>00000</wsdl:TIC><wsdl:Price>50.0</wsdl:Price><wsdl:Qty>1</wsdl:Qty></ins0:CartItem><ins0:CartItem><wsdl:Index>1</wsdl:Index><wsdl:ItemID>SKU-TEST1</wsdl:ItemID><wsdl:TIC>00000</wsdl:TIC><wsdl:Price>50.0</wsdl:Price><wsdl:Qty>1</wsdl:Qty></ins0:CartItem></ins0:cartItems><ins0:origin><ins0:Address1>888 6th Ave</ins0:Address1><ins0:Address2 xsi:nil="true"/><ins0:City>New York</ins0:City><ins0:State>NY</ins0:State><ins0:Zip5>10001</ins0:Zip5><ins0:Zip4 xsi:nil="true"/></ins0:origin><ins0:destination><ins0:Address1>888 6th Ave</ins0:Address1><ins0:Address2 xsi:nil="true"/><ins0:City>New York</ins0:City><ins0:State>NY</ins0:State><ins0:Zip5>10001</ins0:Zip5><ins0:Zip4 xsi:nil="true"/></ins0:destination><ins0:apiLoginID>api-login-id</ins0:apiLoginID><ins0:apiKey>api-key</ins0:apiKey></ins0:Lookup></env:Body></env:Envelope>
  7. headers:
  8. soapaction:
  9. - "\"http://taxcloud.net/Lookup\""
  10. content-type:
  11. - text/xml;charset=UTF-8
  12. response: !ruby/struct:VCR::Response
  13. status: !ruby/struct:VCR::ResponseStatus
  14. code: 200
  15. message: OK
  16. headers:
  17. cache-control:
  18. - private, max-age=0
  19. content-type:
  20. - text/xml; charset=utf-8
  21. server:
  22. - Microsoft-IIS/7.0
  23. x-aspnet-version:
  24. - 2.0.50727
  25. x-powered-by:
  26. - TaxCloud
  27. date:
  28. - Sat, 17 Sep 2011 19:21:56 GMT
  29. content-length:
  30. - "870"
  31. body: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><LookupResponse xmlns="http://taxcloud.net"><LookupResult><ResponseType>Informational</ResponseType><Messages><ResponseMessage><ResponseType>Informational</ResponseType><Message>The transaction occurred in a non-SSUTA State. TaxCloud will not collect or remit the tax amount for this transaction.</Message></ResponseMessage></Messages><CartID>8291</CartID><CartItemsResponse><CartItemResponse><CartItemIndex>0</CartItemIndex><TaxAmount>4.4375</TaxAmount></CartItemResponse><CartItemResponse><CartItemIndex>1</CartItemIndex><TaxAmount>4.4375</TaxAmount></CartItemResponse></CartItemsResponse></LookupResult></LookupResponse></soap:Body></soap:Envelope>
  32. http_version: "1.1"
  33. - !ruby/struct:VCR::HTTPInteraction
  34. request: !ruby/struct:VCR::Request
  35. method: :post
  36. uri: https://api.taxcloud.net:443/1.0/TaxCloud.asmx
  37. body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://taxcloud.net" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://taxcloud.net"><env:Body><ins0:AuthorizedWithCapture><ins0:customerID>1644</ins0:customerID><ins0:cartID>8291</ins0:cartID><ins0:orderID>4804</ins0:orderID><ins0:dateAuthorized>2011-09-17</ins0:dateAuthorized><ins0:dateCaptured>2011-09-17</ins0:dateCaptured><ins0:apiLoginID>api-login-id</ins0:apiLoginID><ins0:apiKey>api-key</ins0:apiKey></ins0:AuthorizedWithCapture></env:Body></env:Envelope>
  38. headers:
  39. soapaction:
  40. - "\"http://taxcloud.net/AuthorizedWithCapture\""
  41. content-type:
  42. - text/xml;charset=UTF-8
  43. response: !ruby/struct:VCR::Response
  44. status: !ruby/struct:VCR::ResponseStatus
  45. code: 200
  46. message: OK
  47. headers:
  48. cache-control:
  49. - private, max-age=0
  50. content-type:
  51. - text/xml; charset=utf-8
  52. server:
  53. - Microsoft-IIS/7.0
  54. x-aspnet-version:
  55. - 2.0.50727
  56. x-powered-by:
  57. - TaxCloud
  58. date:
  59. - Sat, 17 Sep 2011 19:21:58 GMT
  60. content-length:
  61. - "439"
  62. body: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><AuthorizedWithCaptureResponse xmlns="http://taxcloud.net"><AuthorizedWithCaptureResult><ResponseType>OK</ResponseType><Messages /></AuthorizedWithCaptureResult></AuthorizedWithCaptureResponse></soap:Body></soap:Envelope>
  63. http_version: "1.1"