{"swagger":"2.0","info":{"description":"Persist data from the frontend divorce session into Core Case data","title":"Transformation Service API","license":{}},"host":"localhost:8080","basePath":"/","tags":[{"name":"ccd-submission-controller","description":"Ccd Submission Controller"},{"name":"ccd-call-back-controller","description":"Ccd Call Back Controller"},{"name":"drafts-controller","description":"Drafts Controller"}],"paths":{"/caseprogression/petition-issued":{"post":{"tags":["ccd-call-back-controller"],"summary":"Generate and add a pdf of the petition to the case","operationId":"addPdfUsingPOST","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"Authorization","in":"header","description":"Authorization","required":false,"type":"string"},{"in":"body","name":"caseDetailsRequest","description":"CaseData","required":false,"schema":{"$ref":"#/definitions/CreateEvent"}}],"responses":{"200":{"description":"A pdf of the petition has been generated and added to the case","schema":{"$ref":"#/definitions/CCDCallbackResponse"}},"400":{"description":"Bad Request"}}}},"/caseprogression/petition-submitted":{"post":{"tags":["ccd-call-back-controller"],"summary":"Generate/dispatch a notification email to the petitioner when the application is submitted","operationId":"petitionSubmittedUsingPOST","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"Authorization","in":"header","description":"Authorization","required":false,"type":"string"},{"in":"body","name":"caseDetailsRequest","description":"CaseData","required":false,"schema":{"$ref":"#/definitions/CreateEvent"}}],"responses":{"200":{"description":"An email notification has been generated and dispatched","schema":{"$ref":"#/definitions/CCDCallbackResponse"}},"400":{"description":"Bad Request"}}}},"/draftsapi/version/1":{"get":{"tags":["drafts-controller"],"summary":"Retrieves a divorce case draft","operationId":"retrieveDraftUsingGET","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string"}],"responses":{"200":{"description":"A draft exists. The draft content is in the response body","schema":{"$ref":"#/definitions/JsonNode"}},"404":{"description":"Draft does not exist"}}},"put":{"tags":["drafts-controller"],"summary":"Saves a divorce case draft","operationId":"saveDraftUsingPUT","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string"},{"in":"body","name":"data","description":"The divorce case draft","required":true,"schema":{"$ref":"#/definitions/JsonNode"}},{"name":"notificationEmail","in":"query","description":"The email address that will receive the notification that the draft has been saved","required":false,"type":"string"}],"responses":{"200":{"description":"OK"},"204":{"description":"Draft saved"}}},"delete":{"tags":["drafts-controller"],"summary":"Deletes a divorce case draft","operationId":"deleteDraftUsingDELETE","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string"}],"responses":{"200":{"description":"OK"},"204":{"description":"The divorce case draft has been deleted successfully"}}}},"/transformationapi/version/1/submit":{"post":{"tags":["ccd-submission-controller"],"summary":"Submits a divorce session to CCD","operationId":"submitCaseUsingPOST","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"divorceSession","description":"The divorce session.","required":true,"schema":{"$ref":"#/definitions/DivorceSession"}},{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string"}],"responses":{"200":{"description":"Divorce session was submitted to CCD. The body payload indicates if the submit has been successful.","schema":{"$ref":"#/definitions/CCDResponse"}}}}},"/transformationapi/version/1/updateCase/{caseId}":{"post":{"tags":["ccd-submission-controller"],"summary":"Updates a divorce session in CCD","operationId":"updateCaseUsingPOST","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"body","name":"divorceEventSession","description":"The update event that requires the resubmission to CCD","required":false,"schema":{"$ref":"#/definitions/Divorce event which requires the divorce session to be resubmitted"}},{"name":"caseId","in":"path","description":"Unique identifier of the session that was submitted to CCD","required":false,"type":"integer","format":"int64"},{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string"}],"responses":{"200":{"description":"A request to update the divorce session was sent to CCD. The body payload indicates if the request has been successful.","schema":{"$ref":"#/definitions/CCDResponse"}}}}}},"definitions":{"Connections":{"type":"object","properties":{"A":{"type":"string"},"B":{"type":"string"},"C":{"type":"string"},"D":{"type":"string"},"E":{"type":"string"},"F":{"type":"string"},"G":{"type":"string"}}},"CCDCallbackResponse":{"type":"object","properties":{"data":{"description":"The entire case data to be returned with updated fields","$ref":"#/definitions/CoreCaseData"},"errors":{"type":"array","description":"Some error messages","items":{"type":"string"}},"warnings":{"type":"array","description":"Some warning messages","items":{"type":"string"}}},"description":"The response to a feedback call by ccd"},"Address":{"type":"object","properties":{"address":{"type":"array","description":"Address.","items":{"type":"string"}},"addressAbroad":{"type":"string","description":"Address abroad."},"addressConfirmed":{"type":"boolean","example":false,"description":"Is the address confirmed?"},"addressType":{"type":"string","description":"Address type."},"postcode":{"type":"string","description":"Address post code."},"postcodeError":{"type":"boolean","example":false,"description":"Is there an error in the postcode?"},"postcodeManual":{"type":"string","description":"Postcode manual."},"street1":{"type":"string","description":"Street line 1."},"street2":{"type":"string","description":"Street line 2."},"town":{"type":"string","description":"Town."},"url":{"type":"string","description":"URL."},"validPostcode":{"type":"boolean","example":false,"description":"Is the postcode valid?"}}},"CaseDetails":{"type":"object","properties":{"case_data":{"$ref":"#/definitions/CoreCaseData"},"id":{"type":"string"},"state":{"type":"string"}}},"PaymentCollection":{"type":"object","required":["id","value"],"properties":{"id":{"type":"string"},"value":{"$ref":"#/definitions/Payment details."}}},"Payment details.":{"type":"object","properties":{"PaymentAmount":{"type":"string","description":"Payment amount."},"PaymentChannel":{"type":"string","description":"Payment channel."},"PaymentDate":{"type":"string","description":"Payment date."},"PaymentFeeId":{"type":"string","description":"ID of payment fee."},"PaymentReference":{"type":"string","description":"Payment reference."},"PaymentSiteId":{"type":"string","description":"ID of site the payment was made."},"PaymentStatus":{"type":"string","description":"Payment status."},"PaymentTransactionId":{"type":"string","description":"Payment transaction ID."}}},"JsonNode":{"type":"object","properties":{"array":{"type":"boolean"},"bigDecimal":{"type":"boolean"},"bigInteger":{"type":"boolean"},"binary":{"type":"boolean"},"boolean":{"type":"boolean"},"containerNode":{"type":"boolean"},"double":{"type":"boolean"},"float":{"type":"boolean"},"floatingPointNumber":{"type":"boolean"},"int":{"type":"boolean"},"integralNumber":{"type":"boolean"},"long":{"type":"boolean"},"missingNode":{"type":"boolean"},"nodeType":{"type":"string","enum":["ARRAY","BINARY","BOOLEAN","MISSING","NULL","NUMBER","OBJECT","POJO","STRING"]},"null":{"type":"boolean"},"number":{"type":"boolean"},"object":{"type":"boolean"},"pojo":{"type":"boolean"},"short":{"type":"boolean"},"textual":{"type":"boolean"},"valueNode":{"type":"boolean"}}},"Document":{"type":"object","properties":{"DocumentComment":{"type":"string"},"DocumentDateAdded":{"type":"string"},"DocumentEmailContent":{"type":"string"},"DocumentFileName":{"type":"string"},"DocumentLink":{"$ref":"#/definitions/DocumentLink"},"DocumentType":{"type":"string"}}},"CoreCaseData":{"type":"object","properties":{"D8CertificateInEnglish":{"type":"string"},"D8CertifiedTranslation":{"type":"string"},"D8ClaimsCostsAppliedForFees":{"type":"string"},"D8Cohort":{"type":"string"},"D8ConnectionSummary":{"type":"string"},"D8Connections":{"$ref":"#/definitions/Connections"},"D8CountryName":{"type":"string"},"D8DerivedLivingArrangementsLastLivedAddr":{"type":"string"},"D8DerivedPetitionerCorrespondenceAddr":{"type":"string"},"D8DerivedPetitionerCurrentFullName":{"type":"string"},"D8DerivedPetitionerHomeAddress":{"type":"string"},"D8DerivedReasonForDivorceAdultery3dPtyNm":{"type":"string"},"D8DerivedReasonForDivorceAdultery3rdAddr":{"type":"string"},"D8DerivedRespondentCorrespondenceAddr":{"type":"string"},"D8DerivedRespondentCurrentName":{"type":"string"},"D8DerivedRespondentHomeAddress":{"type":"string"},"D8DerivedRespondentSolicitorAddr":{"type":"string"},"D8DerivedRespondentSolicitorDetails":{"type":"string"},"D8DerivedStatementOfCase":{"type":"string"},"D8DivorceClaimFrom":{"type":"array","items":{"type":"string"}},"D8DivorceCostsClaim":{"type":"string"},"D8DivorceIsNamed":{"type":"string"},"D8DivorceUnit":{"type":"string"},"D8DivorceWho":{"type":"string"},"D8DocumentsGenerated":{"type":"array","items":{"$ref":"#/definitions/CollectionMember«Document»"}},"D8DocumentsUploaded":{"type":"array","items":{"$ref":"#/definitions/CollectionMember«Document»"}},"D8FinancialOrder":{"type":"string"},"D8FinancialOrderFor":{"type":"array","items":{"type":"string"}},"D8HelpWithFeesAppliedForFees":{"type":"string"},"D8HelpWithFeesNeedHelp":{"type":"string"},"D8HelpWithFeesReferenceNumber":{"type":"string"},"D8InferredPetitionerGender":{"type":"string","enum":["female","male"]},"D8InferredRespondentGender":{"type":"string","enum":["female","male"]},"D8JurisdictionConfidentLegal":{"type":"string"},"D8JurisdictionConnection":{"type":"array","items":{"type":"string"}},"D8JurisdictionHabituallyResLast6Months":{"type":"string"},"D8JurisdictionLastTwelveMonths":{"type":"string"},"D8JurisdictionPetitionerDomicile":{"type":"string"},"D8JurisdictionPetitionerResidence":{"type":"string"},"D8JurisdictionRespondentDomicile":{"type":"string"},"D8JurisdictionRespondentResidence":{"type":"string"},"D8LegalProceedings":{"type":"string"},"D8LegalProceedingsDetails":{"type":"string"},"D8LegalProceedingsRelated":{"type":"array","items":{"type":"string"}},"D8LivingArrangementsLastLivedTogethAddr":{"$ref":"#/definitions/Address"},"D8LivingArrangementsLastLivedTogether":{"type":"string"},"D8LivingArrangementsLiveTogether":{"type":"string"},"D8LivingArrangementsTogetherSeparated":{"type":"string"},"D8MarriageCanDivorce":{"type":"string"},"D8MarriageDate":{"type":"string"},"D8MarriageIsFuture":{"type":"string"},"D8MarriageIsSameSexCouple":{"type":"string"},"D8MarriageMoreThan100":{"type":"string"},"D8MarriagePetitionerName":{"type":"string"},"D8MarriagePlaceOfMarriage":{"type":"string"},"D8MarriageRespondentName":{"type":"string"},"D8MarriedInUk":{"type":"string"},"D8PaymentMethod":{"type":"string"},"D8PetitionerContactDetailsConfidential":{"type":"string"},"D8PetitionerCorrespondenceAddress":{"$ref":"#/definitions/Address"},"D8PetitionerCorrespondenceUseHomeAddress":{"type":"string"},"D8PetitionerEmail":{"type":"string"},"D8PetitionerFirstName":{"type":"string"},"D8PetitionerHomeAddress":{"$ref":"#/definitions/Address"},"D8PetitionerLastName":{"type":"string"},"D8PetitionerNameChangedHow":{"type":"array","items":{"type":"string"}},"D8PetitionerNameChangedHowOtherDetails":{"type":"string"},"D8PetitionerNameDifferentToMarriageCert":{"type":"string"},"D8PetitionerPhoneNumber":{"type":"string"},"D8ReasonForDivorce":{"type":"string"},"D8ReasonForDivorceAdultery3rdAddress":{"$ref":"#/definitions/Address"},"D8ReasonForDivorceAdultery3rdPartyFName":{"type":"string"},"D8ReasonForDivorceAdultery3rdPartyLName":{"type":"string"},"D8ReasonForDivorceAdulteryDetails":{"type":"string"},"D8ReasonForDivorceAdulteryIsNamed":{"type":"string"},"D8ReasonForDivorceAdulteryKnowWhen":{"type":"string"},"D8ReasonForDivorceAdulteryKnowWhere":{"type":"string"},"D8ReasonForDivorceAdulteryWhenDetails":{"type":"string"},"D8ReasonForDivorceAdulteryWhereDetails":{"type":"string"},"D8ReasonForDivorceAdulteryWishToName":{"type":"string"},"D8ReasonForDivorceBehaviourDetails":{"type":"string"},"D8ReasonForDivorceClaiming5YearSeparatio":{"type":"string"},"D8ReasonForDivorceClaimingAdultery":{"type":"string"},"D8ReasonForDivorceDesertion":{"type":"string"},"D8ReasonForDivorceDesertionAgreed":{"type":"string"},"D8ReasonForDivorceDesertionAlright":{"type":"string"},"D8ReasonForDivorceDesertionBeforeMarriag":{"type":"string"},"D8ReasonForDivorceDesertionDate":{"type":"string"},"D8ReasonForDivorceDesertionDay":{"type":"string"},"D8ReasonForDivorceDesertionDetails":{"type":"string"},"D8ReasonForDivorceDesertionInFuture":{"type":"string"},"D8ReasonForDivorceDesertionMonth":{"type":"string"},"D8ReasonForDivorceDesertionYear":{"type":"string"},"D8ReasonForDivorceEnableAdultery":{"type":"string"},"D8ReasonForDivorceHasMarriage":{"type":"string"},"D8ReasonForDivorceLimitReasons":{"type":"string"},"D8ReasonForDivorceSeperation":{"type":"string"},"D8ReasonForDivorceSeperationBeforeMarria":{"type":"string"},"D8ReasonForDivorceSeperationDate":{"type":"string"},"D8ReasonForDivorceSeperationDay":{"type":"string"},"D8ReasonForDivorceSeperationInFuture":{"type":"string"},"D8ReasonForDivorceSeperationIsSameOrAftr":{"type":"string"},"D8ReasonForDivorceSeperationMonth":{"type":"string"},"D8ReasonForDivorceSeperationYear":{"type":"string"},"D8ReasonForDivorceShowAdultery":{"type":"string"},"D8ReasonForDivorceShowDesertion":{"type":"string"},"D8ReasonForDivorceShowFiveYearsSeparatio":{"type":"string"},"D8ReasonForDivorceShowTwoYearsSeparation":{"type":"string"},"D8ReasonForDivorceShowUnreasonableBehavi":{"type":"string"},"D8RejectDocumentsUploaded":{"type":"array","items":{"$ref":"#/definitions/Document"}},"D8RejectMarriageDetails":{"$ref":"#/definitions/RejectReason"},"D8RejectRespondentAddress":{"$ref":"#/definitions/RejectReasonAddress"},"D8RejectStatementOfCase":{"$ref":"#/definitions/RejectReason"},"D8ResidualJurisdictionEligible":{"type":"string"},"D8RespondentCorrespondenceAddress":{"$ref":"#/definitions/Address"},"D8RespondentCorrespondenceSendToSol":{"type":"string"},"D8RespondentCorrespondenceUseHomeAddress":{"type":"string"},"D8RespondentFirstName":{"type":"string"},"D8RespondentHomeAddress":{"$ref":"#/definitions/Address"},"D8RespondentKnowsHomeAddress":{"type":"string"},"D8RespondentLastName":{"type":"string"},"D8RespondentLivesAtLastAddress":{"type":"string"},"D8RespondentNameAsOnMarriageCertificate":{"type":"string"},"D8RespondentSolicitorAddress":{"$ref":"#/definitions/Address"},"D8RespondentSolicitorCompany":{"type":"string"},"D8RespondentSolicitorName":{"type":"string"},"D8ScreenHasMarriageBroken":{"type":"string"},"D8ScreenHasMarriageCert":{"type":"string"},"D8ScreenHasPrinter":{"type":"string"},"D8ScreenHasRespondentAddress":{"type":"string"},"D8SolicitorReference":{"type":"string"},"D8StatementOfTruth":{"type":"string"},"D8caseReference":{"type":"string"},"D8legalProcess":{"type":"string"},"Payments":{"type":"array","items":{"$ref":"#/definitions/PaymentCollection"}},"createdDate":{"type":"string"}}},"DocumentLink":{"type":"object","required":["document_binary_url","document_filename","document_url"],"properties":{"document_url":{"type":"string"},"document_binary_url":{"type":"string"},"document_filename":{"type":"string"}}},"CreateEvent":{"type":"object","required":["case_details","event_id","token"],"properties":{"token":{"type":"string"},"event_id":{"type":"string"},"case_details":{"$ref":"#/definitions/CaseDetails"}}},"UploadedFile":{"type":"object","required":["createdBy","createdOn","fileName","fileUrl","lastModifiedBy","mimeType","modifiedOn","status"],"properties":{"createdBy":{"type":"integer","format":"int32"},"createdOn":{"type":"string","format":"date-time"},"lastModifiedBy":{"type":"integer","format":"int32"},"modifiedOn":{"type":"string","format":"date-time"},"fileName":{"type":"string"},"fileUrl":{"type":"string"},"mimeType":{"type":"string"},"status":{"type":"string"}}},"Divorce event which requires the divorce session to be resubmitted":{"type":"object","properties":{"eventData":{"description":"The updated divorce session","$ref":"#/definitions/DivorceSession"},"eventId":{"type":"string","description":"The id of the event"}}},"CollectionMember«Document»":{"type":"object","properties":{"id":{"type":"string"},"value":{"$ref":"#/definitions/Document"}}},"CCDResponse":{"type":"object","properties":{"caseId":{"type":"integer","format":"int64","example":1234567890123456,"description":"The id of the case as returned from CCD."},"error":{"type":"string","example":"null","description":"If the status is not \"success\" this field will contain explanation of the problem."},"status":{"type":"string","example":"success","description":"The result of the request.","enum":["success","error"]}},"description":"The response of a document submission to CCD"},"RejectReason":{"type":"object","properties":{"RejectReasonText":{"type":"string"},"RejectReasonType":{"type":"string"}}},"DivorceSession":{"type":"object","properties":{"certificateInEnglish":{"type":"string","description":"Is the marriage certificate in English?","enum":["Yes","No"]},"certifiedTranslation":{"type":"string","description":"Has petitioner got a translation of the marriage certificate?","enum":["Yes","No"]},"claimsCosts":{"type":"string","description":"Petitioner to claim costs?","enum":["Yes","No"]},"claimsCostsAppliedForFees":{"type":"string","enum":["Yes","No"]},"claimsCostsFrom":{"type":"array","description":"Claim costs from.","items":{"type":"string","enum":["respondent","co-respondent"]}},"confirmPrayer":{"type":"string","description":"Agree to statement of truth?","enum":["Yes","No"]},"connectionSummary":{"type":"string","description":"Connection summary"},"connections":{"description":"Legal connections content.","$ref":"#/definitions/Connections"},"countryName":{"type":"string","description":"Country of marriage."},"courts":{"type":"string","description":"Regional divorce unit."},"d8":{"type":"array","description":"D8 PDF file URL details.","items":{"$ref":"#/definitions/UploadedFile"}},"divorceWho":{"type":"string","description":"Who is petitioner divorcing?","enum":["husband","wife"]},"existingPayments":{"type":"array","description":"Details about existing payments.","items":{"$ref":"#/definitions/PaymentCollection"}},"financialOrder":{"type":"string","description":"Petitioner want a financial order?","enum":["Yes","No"]},"financialOrderFor":{"type":"array","description":"Who is financial order for?","items":{"type":"string","enum":["petitioner","children"]}},"helpWithFeesAppliedForFees":{"type":"string","description":"Has petitioner applied for Help With Fees?","enum":["Yes","No"]},"helpWithFeesNeedHelp":{"type":"string","description":"Does petitioner need help with fees?","enum":["Yes","No"]},"helpWithFeesReferenceNumber":{"type":"string","description":"Help with fees reference. Must conform to regex ([Hh][Ww][Ff]-?)?[0-9a-zA-Z]{3}-?[0-9a-zA-Z]{3}$"},"jurisdictionConfidentLegal":{"type":"string","description":"Is petitioner confident with their legal connections?","enum":["Yes","No"]},"jurisdictionConnection":{"type":"array","description":"Legal connections.","items":{"type":"string"}},"jurisdictionLastHabitualResident":{"type":"string","description":"Is habitually resident in the last six months?","enum":["Yes","No"]},"jurisdictionLastTwelveMonths":{"type":"string","description":"Last 12 months.","enum":["Yes","No"]},"jurisdictionPetitionerDomicile":{"type":"string","description":"Is petitioner domiciled?","enum":["Yes","No"]},"jurisdictionPetitionerResidence":{"type":"string","description":"Is petitioner resident?","enum":["Yes","No"]},"jurisdictionRespondentDomicile":{"type":"string","description":"Is respondent domiciled.","enum":["Yes","No"]},"jurisdictionRespondentResidence":{"type":"string","description":"Is respondent resident?","enum":["Yes","No"]},"legalProceedings":{"type":"string","description":"Are there legal proceedings relating to property, marriage or children?","enum":["Yes","No"]},"legalProceedingsDetails":{"type":"string","description":"Legal proceeding details"},"legalProceedingsRelated":{"type":"array","description":"Legal proceedings relating to divorce.","items":{"type":"string","enum":["children","property","marriage"]}},"livingArrangementsLastLivedTogetherAddress":{"description":"Address petitioner and respondent last lived together.","$ref":"#/definitions/Address"},"livingArrangementsLiveTogether":{"type":"string","description":"Are petitioner and respondent living together?","enum":["Yes","No"]},"marriageCanDivorce":{"type":"string","enum":["Yes","No"]},"marriageCertificateFiles":{"type":"array","description":"Supporting documentation uploaded with the application","items":{"$ref":"#/definitions/UploadedFile"}},"marriageDate":{"type":"string","format":"date-time","description":"The marriage date in one of the following formats (\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\", \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", \"yyyy-MM-dd'T'HH:mm:ss.SSS\", \"EEE, dd MMM yyyy HH:mm:ss zzz\", \"yyyy-MM-dd\")"},"marriageDateDay":{"type":"string","description":"The day component of the marriage date in 'dd' format. This field is not currently used."},"marriageDateMonth":{"type":"string","description":"The month component of the marriage date in 'MM' format. This field is not currently used"},"marriageDateYear":{"type":"string","description":"The year component of the marriage date in 'yyyy' format. This field is not currently used"},"marriageIsFuture":{"type":"string","enum":["Yes","No"]},"marriageIsSameSexCouple":{"type":"string","description":"Is same sex couple?","enum":["Yes","No"]},"marriageMoreThan100":{"type":"string","enum":["Yes","No"]},"marriagePetitionerName":{"type":"string","description":"Petitioner's full name (as on marriage certificate)."},"marriageRespondentName":{"type":"string","description":"Respondent's full name (as on marriage certificate)."},"marriageWhereMarried":{"type":"string","description":"Site ID for selected court."},"marriedInUk":{"type":"string","description":"Has petitioner got married in the UK?","enum":["Yes","No"]},"payment":{"description":"Payment details.","$ref":"#/definitions/Payment details."},"petitionerContactDetailsConfidential":{"type":"string","description":"Petitioners contact details to be kept private?","enum":["share","keep"]},"petitionerCorrespondenceAddress":{"description":"Petitioner's correspondence address.","$ref":"#/definitions/Address"},"petitionerCorrespondenceUseHomeAddress":{"type":"string","description":"Use petitioners home address as address for service?","enum":["Yes","No"]},"petitionerEmail":{"type":"string","description":"Petitioner's email address?"},"petitionerFirstName":{"type":"string","description":"Petitioner's current first names."},"petitionerHomeAddress":{"description":"Petitioner's home address.","$ref":"#/definitions/Address"},"petitionerLastName":{"type":"string","description":"Petitioner's current last names."},"petitionerNameChangedHow":{"type":"array","description":"How did the petitioner change their name?","items":{"type":"string","enum":["marriageCertificate","deedPoll","other"]}},"petitionerNameChangedHowOtherDetails":{"type":"string","description":"What other details does the petitioner have of the name change?"},"petitionerNameDifferentToMarriageCertificate":{"type":"string","description":"Is petitioner's current name the same as that on marriage certificate?","enum":["Yes","No"]},"petitionerPhoneNumber":{"type":"string","description":"Petitioner's phone number?"},"placeOfMarriage":{"type":"string","description":"Place of marriage (as on marriage certificate)."},"reasonForDivorce":{"type":"string","description":"Fact (reason for divorce)","enum":["unreasonable-behaviour","adultery","separation-2-years","separation-5-years","desertion"]},"reasonForDivorceAdultery3rdAddress":{"description":"Adultery co-respondent address.","$ref":"#/definitions/Address"},"reasonForDivorceAdultery3rdPartyFirstName":{"type":"string","description":"First name of adultery co-respondent."},"reasonForDivorceAdultery3rdPartyLastName":{"type":"string","description":"Last name of adultery co-respondent."},"reasonForDivorceAdulteryDetails":{"type":"string","description":"Adultery details."},"reasonForDivorceAdulteryIsNamed":{"type":"string","enum":["Yes","No"]},"reasonForDivorceAdulteryKnowWhen":{"type":"string","description":"Does petitioner know when the adultery took place?","enum":["Yes","No"]},"reasonForDivorceAdulteryKnowWhere":{"type":"string","description":"Does petitioner know where the adultery took place?","enum":["Yes","No"]},"reasonForDivorceAdulteryWhenDetails":{"type":"string","description":"When did adultery take place?"},"reasonForDivorceAdulteryWhereDetails":{"type":"string","description":"Where did adultery take place?"},"reasonForDivorceAdulteryWishToName":{"type":"string","description":"Does petitioner want to name co-respondent?","enum":["Yes","No"]},"reasonForDivorceBehaviourDetails":{"type":"array","description":"Behaviour details","items":{"type":"string"}},"reasonForDivorceClaiming5YearSeparation":{"type":"string","enum":["Yes","No"]},"reasonForDivorceClaimingAdultery":{"type":"string","enum":["Yes","No"]},"reasonForDivorceDesertion":{"type":"string"},"reasonForDivorceDesertionAgreed":{"type":"string","description":"Did petitioner agree to the desertion?","enum":["Yes","No"]},"reasonForDivorceDesertionAlright":{"type":"string","enum":["Yes","No"]},"reasonForDivorceDesertionBeforeMarriage":{"type":"string","description":"Is desertion date before marriage?","enum":["Yes","No"]},"reasonForDivorceDesertionDate":{"type":"string","format":"date-time","description":"Desertion date in one of the following formats (\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\", \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", \"yyyy-MM-dd'T'HH:mm:ss.SSS\", \"EEE, dd MMM yyyy HH:mm:ss zzz\", \"yyyy-MM-dd\")."},"reasonForDivorceDesertionDateInFuture":{"type":"string","description":"Is desertion date in the future?","enum":["Yes","No"]},"reasonForDivorceDesertionDay":{"type":"string","description":"Desertion date day in dd format."},"reasonForDivorceDesertionDetails":{"type":"string","description":"Desertion details."},"reasonForDivorceDesertionInFuture":{"type":"string","enum":["Yes","No"]},"reasonForDivorceDesertionMonth":{"type":"string","description":"Desertion date month in MM format."},"reasonForDivorceDesertionYear":{"type":"string","description":"Desertion date year in yyyy format."},"reasonForDivorceEnableAdultery":{"type":"string","enum":["Yes","No"]},"reasonForDivorceHasMarriage":{"type":"string","enum":["Yes","No"]},"reasonForDivorceHasMarriageDate":{"type":"string","enum":["Yes","No"]},"reasonForDivorceLimitReasons":{"type":"string","enum":["Yes","No"]},"reasonForDivorceSeperationBeforeMarriage":{"type":"string","enum":["Yes","No"]},"reasonForDivorceSeperationDate":{"type":"string","format":"date-time","description":"The separation date in one of the following formats (\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\", \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", \"yyyy-MM-dd'T'HH:mm:ss.SSS\", \"EEE, dd MMM yyyy HH:mm:ss zzz\", \"yyyy-MM-dd\")."},"reasonForDivorceSeperationDateBeforeMarriageDate":{"type":"string","description":"Is separation date before marriage date?","enum":["Yes","No"]},"reasonForDivorceSeperationDateInFuture":{"type":"string","description":"Is separation date in the future?","enum":["Yes","No"]},"reasonForDivorceSeperationDateIsSameOrAfterLimitDate":{"type":"string","description":"Is separation date same as or after limit date?","enum":["Yes","No"]},"reasonForDivorceSeperationDay":{"type":"string","description":"Separation date day in dd format."},"reasonForDivorceSeperationInFuture":{"type":"string","enum":["Yes","No"]},"reasonForDivorceSeperationMonth":{"type":"string","description":"Separation date month in MM format."},"reasonForDivorceSeperationYear":{"type":"string","description":"Separation date year in yyyy format."},"reasonForDivorceShowAdultery":{"type":"string","description":"Is reason for divorce adultery?","enum":["Yes","No"]},"reasonForDivorceShowDesertion":{"type":"string","description":"Is reason for divorce desertion?","enum":["Yes","No"]},"reasonForDivorceShowFiveYearsSeparation":{"type":"string","description":"Is reason for divorce five year separation?","enum":["Yes","No"]},"reasonForDivorceShowTwoYearsSeparation":{"type":"string","description":"Is reason for divorce two year separation?","enum":["Yes","No"]},"reasonForDivorceShowUnreasonableBehaviour":{"type":"string","description":"Is reason for divorce unreasonable behaviour?","enum":["Yes","No"]},"residualJurisdictionEligible":{"type":"string","description":"Is residual jurisdiction eligible?","enum":["Yes","No"]},"respondentCorrespondenceAddress":{"description":"Respondent service address.","$ref":"#/definitions/Address"},"respondentCorrespondenceSendToSolicitor":{"type":"string","description":"Is respondent using a solicitor?","enum":["Yes","No"]},"respondentCorrespondenceUseHomeAddress":{"type":"string","description":"Use respondent's home address as their address for service?","enum":["Yes","No","Solicitor"]},"respondentFirstName":{"type":"string","description":"Respondent's current first names."},"respondentHomeAddress":{"description":"Respondent home address.","$ref":"#/definitions/Address"},"respondentKnowsHomeAddress":{"type":"string","description":"Does petitioner know the respondents home address?","enum":["Yes","No"]},"respondentLastName":{"type":"string","description":"Respondent's current last names."},"respondentLivesAtLastAddress":{"type":"string","description":"Does respondent live at last address?","enum":["Yes","No"]},"respondentNameAsOnMarriageCertificate":{"type":"string","description":"Respondent current name is the same as that on marriage certificate?","enum":["Yes","No"]},"respondentSolicitorAddress":{"description":"Address of solicitor used by respondent.","$ref":"#/definitions/Address"},"respondentSolicitorCompany":{"type":"string","description":"Company of solicitor used by respondent."},"respondentSolicitorName":{"type":"string","description":"Name of solicitor used by respondent."},"screenHasMarriageBroken":{"type":"string","description":"Has petitioners marriage broken down irretrievably?","enum":["Yes","No"]},"screenHasMarriageCert":{"type":"string","description":"Has petitioner got their marriage certificate?","enum":["Yes","No"]},"screenHasPrinter":{"type":"string","description":"Has petitioner got access to a printer?","enum":["Yes","No"]},"screenHasRespondentAddress":{"type":"string","description":"Has petitioner got an address for the respondent?","enum":["Yes","No"]}}},"RejectReasonAddress":{"type":"object","properties":{"RejectReasonAddressText":{"type":"string"},"RejectReasonAddressType":{"type":"string"}}}}}
