42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
Appraiser_Case__c appraiserCase = new Appraiser_Case__c(
|
|
Appraiser_Field_Review_Date__c = Date.today(),
|
|
Letter_Sent_Date__c = Date.today().addDays(7),
|
|
FHA_Case_Number__c = '123-4567890',
|
|
Appraiser_Name__c = 'Jamie',
|
|
Appraiser_Last_Name__c = 'Appraiser',
|
|
Appraiser_Salutation__c = 'Ms.',
|
|
Appraiser_Email__c = 'jamie.appraiser@example.com',
|
|
Appraiser_Street__c = '245 Lexington Ave',
|
|
Appraiser_City__c = 'New York',
|
|
Appraiser_State_Province__c = 'NY',
|
|
Appraiser_Postal_Code__c = '10016',
|
|
Appraiser_Country__c = 'USA',
|
|
Property_Street__c = '123 Main St',
|
|
Property_City__c = 'Denver',
|
|
Property_State_Province__c = 'CO',
|
|
Property_Postal_Code__c = '80202',
|
|
Property_Country__c = 'USA'
|
|
);
|
|
insert appraiserCase;
|
|
|
|
insert new List<Appraiser_Case_Deficiency__c>{
|
|
new Appraiser_Case_Deficiency__c(
|
|
Appraiser_Case__c = appraiserCase.Id,
|
|
Deficiency_Number__c = 1,
|
|
Description__c = 'Missing comparable sale adjustment detail.',
|
|
Resolution__c = 'Added adjustment rationale and supporting calculations.',
|
|
Reference__c = 'VC-1'
|
|
),
|
|
new Appraiser_Case_Deficiency__c(
|
|
Appraiser_Case__c = appraiserCase.Id,
|
|
Deficiency_Number__c = 2,
|
|
Description__c = 'Neighborhood trend explanation insufficient.',
|
|
Resolution__c = 'Expanded market trend narrative with MLS evidence.',
|
|
Reference__c = 'MC-2'
|
|
)
|
|
};
|
|
|
|
System.debug('Created Appraiser Case Id: ' + appraiserCase.Id);
|
|
System.debug('Payload JSON: ' + AppraiserCasePayloadBuilder.buildPayloadJson(appraiserCase.Id));
|
|
System.debug('Data XML:\n' + CLMDocGenCallout.buildDataXmlForCase(appraiserCase.Id));
|