{"openapi":"3.0.1","info":{"description":"civil orchestrator service demo","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"title":"Civil Orchestrator Service - Demo","version":"v0.0.1"},"externalDocs":{"description":"README","url":"https://github.com/hmcts/spring-boot-template"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"paths":{"/":{"get":{"operationId":"welcome","responses":{"200":{"content":{"*/*":{"schema":{"type":"string"}}},"description":"OK"}},"tags":["root-controller"]}},"/createSDTClaim":{"post":{"operationId":"createClaimSdt","parameters":[{"in":"header","name":"Authorization","required":true,"schema":{"type":"string"}},{"in":"header","name":"SdtRequestId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClaimRequest"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CreateClaimResponse"}}},"description":"Callback processed."},"400":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CreateClaimResponse"}}},"description":"Bad Request"}},"summary":"Create claim from SDT","tags":["Create Claim From SDT Controller"]}}},"components":{"schemas":{"AddressType":{"required":["postcode"],"type":"object","properties":{"addressLine1":{"maxLength":150,"minLength":0,"type":"string","example":"Flat 2, Caver-sham House 15-17"},"addressLine2":{"maxLength":50,"minLength":0,"type":"string","example":"Church Road, Kent"},"addressLine3":{"maxLength":50,"minLength":0,"type":"string","example":"Kent"},"addressLine4":{"maxLength":50,"minLength":0,"type":"string","example":"UNITED KINGDOM"},"postcode":{"maxLength":14,"minLength":0,"type":"string","example":"RG4 7AA"}}},"ClaimantType":{"required":["name"],"type":"object","properties":{"address":{"$ref":"#/components/schemas/AddressType"},"name":{"type":"string","example":"Dr Jane Doe"}},"description":"Applicant/Claimant details"},"CreateClaimRequest":{"required":["bulkCustomerId","claimAmount","claimantReference","particulars","sotSignature"],"type":"object","properties":{"addApplicant2":{"type":"string","enum":["Yes","No"]},"bulkCustomerId":{"pattern":"[1-9]\\d{7}","type":"string","description":"Bulk customer Id that should be in [1-9]\\d{7} format ","example":"15678908"},"claimAmount":{"maximum":9999999,"minimum":0,"type":"integer","description":"claim amount should be between 0 and 99999","format":"int64","example":87989},"claimant":{"$ref":"#/components/schemas/ClaimantType"},"claimantReference":{"maxLength":24,"minLength":0,"type":"string","example":"1568h8992334"},"defendant1":{"$ref":"#/components/schemas/DefendantType"},"defendant2":{"$ref":"#/components/schemas/DefendantType"},"interest":{"$ref":"#/components/schemas/Interest"},"particulars":{"maxLength":45,"minLength":0,"type":"string","description":"particulars value should always be less than or equal to 45 characters","example":"particularsValue"},"reserveRightToClaimInterest":{"type":"boolean"},"sdtRequestId":{"type":"string"},"sotSignature":{"type":"string","example":"signature"},"sotSignatureRole":{"type":"string","example":"bulkIssuerRole"},"specRespondent1Represented":{"type":"string","enum":["Yes","No"]}},"description":"Schema for Create Claim Request Object"},"CreateClaimResponse":{"type":"object"},"DefendantType":{"required":["name"],"type":"object","properties":{"address":{"$ref":"#/components/schemas/AddressType"},"name":{"type":"string","example":"Sir John Doe"}},"description":"Defendant details"},"Interest":{"required":["interestOwedDate"],"type":"object","properties":{"claimAmountInterestBase":{"type":"integer","format":"int32","example":6},"interestClaimDate":{"type":"string","format":"date","example":"2023-07-25"},"interestDailyAmount":{"type":"integer","format":"int64","example":7},"interestOwedDate":{"type":"string","format":"date","example":"2023-07-25"}}}}}}
