Skip to content

Remove unused keys from Idp::Constants::MOCK_IDV_APPLICANT#10470

Merged
jmhooper merged 3 commits intomainfrom
jmhooper-remove-same-address-as-id-from-idv-applicant
Apr 22, 2024
Merged

Remove unused keys from Idp::Constants::MOCK_IDV_APPLICANT#10470
jmhooper merged 3 commits intomainfrom
jmhooper-remove-same-address-as-id-from-idv-applicant

Conversation

@jmhooper
Copy link
Contributor

The value of Idp::Constants::MOCK_IDV_APPLICANT is returned from DocAuth::Mock::ResultResponse#pii_from_doc if no YAML file is provided. This value ultimately gets written to pii_from_doc in Idv::Session.

The implementation of DocAuth::Mock::ResultResponse#pii_from_doc is intended to mirror the implementation of the same method on the LexisNexis TrueID client. This method does not return a hash with a same_address_as_id. This commit removes it so the implementation matches.

The same is true of the phone key. That is entered by the user downstream of the state ID collection and is not returned by the LexisNexis TrueID client. There is a separate MOCK_IDV_APPLICANT_WITH_PHONE constant to cover cases where the phone number is needed.

Finally, this commit adds issuing_country_code which is returned by the LexisNexis TrueID client but was not present in the hash.

The value of  `Idp::Constants::MOCK_IDV_APPLICANT` is returned from `DocAuth::Mock::ResultResponse#pii_from_doc` if no YAML file is provided. This value ultimately gets written to `pii_from_doc` in `Idv::Session`.

The implementation of `DocAuth::Mock::ResultResponse#pii_from_doc` is intended to mirror the implementation of the same method on the LexisNexis TrueID client. This method does not return a hash with a `same_address_as_id`. This commit removes it so the implementation matches.

The same is true of the `phone` key. That is entered by the user downstream of the state ID collection and is not returned by the LexisNexis TrueID client. There is a separate `MOCK_IDV_APPLICANT_WITH_PHONE` constant to cover cases where the phone number is needed.

Finally, this commit adds `issuing_country_code` which is returned by the LexisNexis TrueID client but was not present in the hash.

[skip changelog]
@jmhooper jmhooper requested a review from a team April 19, 2024 13:56
@jmhooper jmhooper merged commit a2b3cfc into main Apr 22, 2024
@jmhooper jmhooper deleted the jmhooper-remove-same-address-as-id-from-idv-applicant branch April 22, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants