ministryofjustice/Claim-for-Crown-Court-Defence

View on GitHub
vcr/cassettes/features/case_workers/claims/reject.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: http://localhost:3001/api/case_workers/claims?api_key=e00ab308-f9b3-4382-9399-d9702efc1a34&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current
    body:
      encoding: US-ASCII
      string: ''
    headers:
      X-Forwarded-Proto:
      - https
      X-Forwarded-Ssl:
      - 'on'
      User-Agent:
      - Faraday v2.9.0
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Vary:
      - Accept-Encoding
      Etag:
      - W/"d277fb033f2f8b29434fa86cdec86d4a"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Meta-Request-Version:
      - 0.8.2
      X-Request-Id:
      - 972c3b74-3d14-4a21-ab03-078bed36ef15
      X-Runtime:
      - '0.071796'
      Content-Length:
      - '1636'
    body:
      encoding: ASCII-8BIT
      string: '{"pagination":{"current_page":1,"total_pages":1,"total_count":1,"limit_value":10},"items":[{"id":1,"uuid":"a38a487e-e6bd-4fe7-b57e-bffdd1b59fa0","case_number":"A20161234","state":"allocated","type":"Claim::AdvocateClaim","last_submitted_at":"2024-04-25T11:40:12Z","total":0.0,"vat_amount":0.0,"opened_for_redetermination":false,"written_reasons_outstanding":false,"disk_evidence":false,"prosecution_evidence":null,"messages_count":0,"unread_messages_count":0,"external_user":{"id":1,"uuid":"2284f4b3-531f-4b49-ba78-bbfb7b058969","first_name":"Edwina","last_name":"Connelly","email":"dotty@anderson.test"},"defendants":[{"id":1,"uuid":"29d55e48-df5e-4e76-bed4-fc9ad488a445","first_name":"Pat","last_name":"Hills","date_of_birth":"1994-04-25","representation_orders":[{"id":1,"uuid":"38891769-f407-4f85-bf7c-75023bd83908","maat_reference":"4081263","date":"2016-01-01"},{"id":2,"uuid":"7aecbde6-4ed9-426a-b6ce-4449ac3f1e27","maat_reference":"6734027","date":"2023-04-11"}]}],"case_type":{"id":73,"name":"Case
        Type 18","is_fixed_fee":false,"requires_cracked_dates":false,"requires_trial_dates":false,"allow_pcmh_fee_type":false,"requires_maat_reference":true,"requires_retrial_dates":false,"roles":["agfs","lgfs"],"fee_type_code":null},"injection_attempts":[],"case_workers":[{"id":2,"uuid":"7d1b8d8c-9c6e-4883-bf3b-a8a210e1c068","first_name":"Curtis","last_name":"Bogisich","email":"curtis.bogisich@laa.gov.uk"},{"id":1,"uuid":"43a95f4b-9155-4ff2-9f78-1c4166d8eb2e","first_name":"Milo","last_name":"Ebert","email":"milo.ebert@laa.gov.uk"}],"court":{"id":341,"code":"ZIV-18","name":"MacGyver,
        Mosciski and Koss-18","court_type":"crown"}}]}'
  recorded_at: Thu, 25 Apr 2024 11:40:14 GMT
- request:
    method: get
    uri: http://localhost:3001/api/case_workers/claims?api_key=e00ab308-f9b3-4382-9399-d9702efc1a34&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current
    body:
      encoding: US-ASCII
      string: ''
    headers:
      X-Forwarded-Proto:
      - https
      X-Forwarded-Ssl:
      - 'on'
      User-Agent:
      - Faraday v2.9.0
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Vary:
      - Accept-Encoding
      Etag:
      - W/"86696b965bc296de6b570a4daa041d47"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Meta-Request-Version:
      - 0.8.2
      X-Request-Id:
      - b6abcec2-f92e-45e0-b7db-e2b5fad80aa3
      X-Runtime:
      - '0.039782'
      Content-Length:
      - '93'
    body:
      encoding: ASCII-8BIT
      string: '{"pagination":{"current_page":1,"total_pages":0,"total_count":0,"limit_value":10},"items":[]}'
  recorded_at: Thu, 25 Apr 2024 11:40:16 GMT
recorded_with: VCR 6.2.0