diff --git a/modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb b/modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb index ba3b011c6bd..32d6bda3acc 100644 --- a/modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb +++ b/modules/claims_api/app/controllers/concerns/claims_api/v2/disability_compensation_validation.rb @@ -131,11 +131,6 @@ def validate_form_526_change_of_address_zip source: '/changeOfAddress/zipFirstFive', detail: 'The zipFirstFive is required if the country is USA.' ) - elsif address['country'] != 'USA' && address['internationalPostalCode'].blank? - collect_error_messages( - source: '/changeOfAddress/internationalPostalCode', - detail: 'The internationalPostalCode is required if the country is not USA.' - ) elsif address['country'] == 'USA' && address['internationalPostalCode'].present? collect_error_messages( source: '/changeOfAddress/internationalPostalCode', @@ -198,11 +193,6 @@ def validate_form_526_current_mailing_address_zip source: '/veteranIdentification/mailingAddress/zipFirstFive', detail: 'The zipFirstFive is required if the country is USA.' ) - elsif mailing_address['country'] != 'USA' && mailing_address['internationalPostalCode'].blank? - collect_error_messages( - source: '/veteranIdentification/mailingAddress/internationalPostalCode', - detail: 'The internationalPostalCode is required if the country is not USA.' - ) elsif mailing_address['country'] == 'USA' && mailing_address['internationalPostalCode'].present? collect_error_messages( source: '/veteranIdentification/mailingAddress/internationalPostalCode', diff --git a/modules/claims_api/app/swagger/claims_api/v2/dev/swagger.json b/modules/claims_api/app/swagger/claims_api/v2/dev/swagger.json index 38cbb9691dd..70df5321eff 100644 --- a/modules/claims_api/app/swagger/claims_api/v2/dev/swagger.json +++ b/modules/claims_api/app/swagger/claims_api/v2/dev/swagger.json @@ -2143,10 +2143,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -2252,10 +2253,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -3523,10 +3525,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -3632,10 +3635,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -5069,7 +5073,7 @@ "202 without a transactionId": { "value": { "data": { - "id": "925698c0-acd8-4155-80ba-6aed534825da", + "id": "40167e4f-703f-48bb-9c06-eea907988788", "type": "forms/526", "attributes": { "claimId": "600442191", @@ -5254,7 +5258,7 @@ }, "federalActivation": { "activationDate": "2023-10-01", - "anticipatedSeparationDate": "2024-08-31" + "anticipatedSeparationDate": "2024-09-07" }, "confinements": [ { @@ -5300,7 +5304,7 @@ "202 with a transactionId": { "value": { "data": { - "id": "285b02b0-6a6b-4a57-ba90-77a7cfc01e0c", + "id": "917204da-61f3-4f0d-a2a5-e5a423b44c1a", "type": "forms/526", "attributes": { "claimId": "600442191", @@ -5678,10 +5682,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -5787,10 +5792,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -7058,10 +7064,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -7167,10 +7174,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -9215,10 +9223,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -9324,10 +9333,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -10506,7 +10516,7 @@ "application/json": { "example": { "data": { - "id": "4e010a53-2107-486a-b006-5e98b8394c15", + "id": "555d0e33-d296-465c-b054-ab459381dc3e", "type": "forms/526", "attributes": { "claimProcessType": "STANDARD_CLAIM_PROCESS", @@ -14166,8 +14176,8 @@ "id": "1", "type": "intent_to_file", "attributes": { - "creationDate": "2024-08-29", - "expirationDate": "2025-08-29", + "creationDate": "2024-09-05", + "expirationDate": "2025-09-05", "type": "compensation", "status": "active" } @@ -15063,7 +15073,7 @@ "application/json": { "example": { "data": { - "id": "fb3346c4-25c3-45fb-bb7c-99edeb99c5f5", + "id": "2042b892-b0c9-4551-8c90-55538b3d6324", "type": "individual", "attributes": { "code": "067", @@ -15756,7 +15766,7 @@ "application/json": { "example": { "data": { - "id": "14b7e4ed-1537-479c-ab98-fb65eb97ef18", + "id": "378415a5-f585-44ac-9a66-f97891a7c116", "type": "organization", "attributes": { "code": "083", @@ -17707,10 +17717,10 @@ "application/json": { "example": { "data": { - "id": "7ab0c254-3162-45fd-87dd-dc44d14cb2f9", + "id": "b17376c2-39a2-44a5-a4bd-3a9d2b1de18f", "type": "claimsApiPowerOfAttorneys", "attributes": { - "dateRequestAccepted": "2024-08-29", + "dateRequestAccepted": "2024-09-05", "previousPoa": null, "representative": { "serviceOrganization": { diff --git a/modules/claims_api/app/swagger/claims_api/v2/production/swagger.json b/modules/claims_api/app/swagger/claims_api/v2/production/swagger.json index 587d31af0d9..b45b19e464d 100644 --- a/modules/claims_api/app/swagger/claims_api/v2/production/swagger.json +++ b/modules/claims_api/app/swagger/claims_api/v2/production/swagger.json @@ -756,10 +756,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -865,10 +866,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -2136,10 +2138,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -2245,10 +2248,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -3682,7 +3686,7 @@ "202 without a transactionId": { "value": { "data": { - "id": "0db55941-4811-4fd9-80cd-f743761a64ea", + "id": "f6c279e0-7e00-4c31-86d3-839c896e8865", "type": "forms/526", "attributes": { "claimId": "600442191", @@ -3867,7 +3871,7 @@ }, "federalActivation": { "activationDate": "2023-10-01", - "anticipatedSeparationDate": "2024-08-31" + "anticipatedSeparationDate": "2024-09-07" }, "confinements": [ { @@ -3913,7 +3917,7 @@ "202 with a transactionId": { "value": { "data": { - "id": "01a05245-ad48-47c0-b044-60bd1a1cf4d5", + "id": "d0634b7d-7919-4546-8730-da0b46241272", "type": "forms/526", "attributes": { "claimId": "600442191", @@ -4291,10 +4295,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -4400,10 +4405,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -5671,10 +5677,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -5780,10 +5787,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -7828,10 +7836,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -7937,10 +7946,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": "string", - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object", @@ -9119,7 +9129,7 @@ "application/json": { "example": { "data": { - "id": "746039f5-8aa5-49b5-abea-5ed07ac16b35", + "id": "4f521b24-e79b-482f-b85b-7e80ca67701d", "type": "forms/526", "attributes": { "claimProcessType": "STANDARD_CLAIM_PROCESS", @@ -12779,8 +12789,8 @@ "id": "1", "type": "intent_to_file", "attributes": { - "creationDate": "2024-08-29", - "expirationDate": "2025-08-29", + "creationDate": "2024-09-05", + "expirationDate": "2025-09-05", "type": "compensation", "status": "active" } @@ -13676,7 +13686,7 @@ "application/json": { "example": { "data": { - "id": "69b82793-223a-4d60-ab61-eb67ddb77fc6", + "id": "e3f67c59-3391-445d-9629-f215f8495484", "type": "individual", "attributes": { "code": "067", @@ -14369,7 +14379,7 @@ "application/json": { "example": { "data": { - "id": "5cfd4d55-d0c5-4476-87c1-a1956c8dc02b", + "id": "7bdfdf32-45d7-4724-9e97-ad4762cc5642", "type": "organization", "attributes": { "code": "083", @@ -16320,10 +16330,10 @@ "application/json": { "example": { "data": { - "id": "22563f3d-74c4-44b8-b2a0-0da7bfe639a4", + "id": "50a3a1dd-2ec2-40a3-9588-7cad8377b515", "type": "claimsApiPowerOfAttorneys", "attributes": { - "dateRequestAccepted": "2024-08-29", + "dateRequestAccepted": "2024-09-05", "previousPoa": null, "representative": { "serviceOrganization": { diff --git a/modules/claims_api/config/schemas/v2/526.json b/modules/claims_api/config/schemas/v2/526.json index 39f0449b2a6..b38bc007ddf 100644 --- a/modules/claims_api/config/schemas/v2/526.json +++ b/modules/claims_api/config/schemas/v2/526.json @@ -116,10 +116,11 @@ "nullable": true }, "internationalPostalCode": { - "description": "International postal code for the Veteran's current mailing address. Required if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's current mailing address. Do not include if 'country' is 'USA'.", "type": ["string", "null"], - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" } } }, @@ -222,10 +223,11 @@ "example": "6789" }, "internationalPostalCode": { - "description": "International postal code for the Veteran's new address. Requried if 'country' is not 'USA'. Do not include if 'country' is 'USA'.", + "description": "International postal code for the Veteran's new address. Do not include if 'country' is 'USA'.", "type": ["string", "null"], - "maxLength": 100, - "nullable": true + "maxLength": 16, + "nullable": true, + "pattern": "^[a-zA-Z0-9]*$" }, "dates": { "type": "object",