Repository navigation
STF-2488: Update verification input documentation #1997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ const isEmail = (value: string): boolean => { | |
| return match !== null && isFQDN(match[2]); | ||
| }; | ||
|
|
||
| interface EmailProps { | ||
| export interface EmailProps { | ||
| /** | ||
| * The email address used in the transaction. | ||
| */ | ||
|
|
@@ -53,16 +53,20 @@ interface EmailProps { | |
| */ | ||
| hashAddress?: boolean; | ||
| /** | ||
| * The date and time of the most recent attempt to verify the email address, | ||
| * if known. The time must not be before 1970-01-01T00:00:00Z or more than two | ||
| * days in the future. The web service ignores a time outside this range and | ||
| * returns a warning. | ||
| * The date and time that the end user completed the most recent verification | ||
| * of the email address, if known. Set this only if | ||
| * `wasVerificationSuccessful` is `true`. The time must not be before | ||
| * 1970-01-01T00:00:00Z or more than two days in the future. The web service | ||
| * ignores a time outside this range and returns a warning. | ||
| */ | ||
| verificationTime?: Date; | ||
| /** | ||
| * Whether the most recent verification that the end user controls the email | ||
| * address succeeded, for example by confirming a link sent to the address. | ||
| * Omit this if no verification was attempted. | ||
| * Whether the end user has verified that they control the email address, as | ||
| * of the time of the event. Set this to `true` if the user completed a | ||
| * verification, for example by confirming a link sent to the address. Set it | ||
| * to `false` if the address is not verified. This includes a verification | ||
| * that is pending, abandoned, expired, or failed, and an address that you did | ||
| * not try to verify. Omitting this is not equivalent to `false`. | ||
|
Comment on lines
+67
to
+69
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Align the The new text tells callers to send Update the documentation so that
|
||
| */ | ||
| wasVerificationSuccessful?: boolean; | ||
| } | ||
|
|
@@ -79,16 +83,20 @@ export default class Email implements EmailProps { | |
| /** @inheritDoc EmailProps.domain */ | ||
| public domain?: string; | ||
| /** | ||
| * The date and time of the most recent attempt to verify the email address, | ||
| * if known. The time must not be before 1970-01-01T00:00:00Z or more than two | ||
| * days in the future. The web service ignores a time outside this range and | ||
| * returns a warning. | ||
| * The date and time that the end user completed the most recent verification | ||
| * of the email address, if known. Set this only if | ||
| * `wasVerificationSuccessful` is `true`. The time must not be before | ||
| * 1970-01-01T00:00:00Z or more than two days in the future. The web service | ||
| * ignores a time outside this range and returns a warning. | ||
| */ | ||
| public verificationTime?: Date; | ||
| /** | ||
| * Whether the most recent verification that the end user controls the email | ||
| * address succeeded, for example by confirming a link sent to the address. | ||
| * Omit this if no verification was attempted. | ||
| * Whether the end user has verified that they control the email address, as | ||
| * of the time of the event. Set this to `true` if the user completed a | ||
| * verification, for example by confirming a link sent to the address. Set it | ||
| * to `false` if the address is not verified. This includes a verification | ||
| * that is pending, abandoned, expired, or failed, and an address that you did | ||
| * not try to verify. Omitting this is not equivalent to `false`. | ||
| */ | ||
| public wasVerificationSuccessful?: boolean; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,19 +49,27 @@ export interface LocationProps { | |
| */ | ||
| phoneCountryCode?: string; | ||
| /** | ||
| * The most recent method used to verify the phone number. | ||
| * The method used for the most recent verification of the phone number. Set | ||
| * this if you tried to verify the phone number, even if the user did not | ||
| * complete the verification. Do not set this if you did not try to verify | ||
|
Comment on lines
+52
to
+54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Align the phone verification method text with the published contract. This text tells callers to set Confirm the current service behavior. Then resolve the conflict in one of two ways:
|
||
| * the phone number. | ||
| */ | ||
| phoneVerificationMethod?: PhoneVerificationMethod; | ||
| /** | ||
| * The date and time of the most recent verification of the phone number. | ||
| * The time must not be before 1970-01-01T00:00:00Z or more than two days in | ||
| * the future. The web service ignores a time outside this range and returns | ||
| * a warning. | ||
| * The date and time that the end user completed the most recent verification | ||
| * of the phone number, if known. Set this only if | ||
| * `phoneWasVerificationSuccessful` is `true`. The time must not be before | ||
| * 1970-01-01T00:00:00Z or more than two days in the future. The web service | ||
| * ignores a time outside this range and returns a warning. | ||
| */ | ||
| phoneVerificationTime?: Date; | ||
| /** | ||
| * Whether the most recent verification of the phone number succeeded. Omit | ||
| * this if no verification was attempted. | ||
| * Whether the end user has verified that they control the phone number, as | ||
| * of the time of the event. Set this to `true` if the user completed a | ||
| * verification. Set it to `false` if the phone number is not verified. This | ||
| * includes a verification that is pending, abandoned, expired, or failed, | ||
| * and a phone number that you did not try to verify. Omitting this is not | ||
| * equivalent to `false`. | ||
| */ | ||
| phoneWasVerificationSuccessful?: boolean; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve the failed-verification time guidance before merging.
The new guidance tells callers to set
verificationTimeonly whenwasVerificationSuccessfulistrue. The published minFraud request documentation tells callers to send the time that a verification succeeded or failed. It allows omission only when no verification was attempted or completed. Callers that follow this guidance omit a known failure time that the documentation asks them to send. The phone verification time has the same restriction.Confirm the service contract for a completed failure. If the service expects the time, allow it for failed verifications in this guidance. If the service does not expect it, update the published documentation to match this guidance.