Repository navigation
STF-2532: Deprecate ShippingAddress.isHighRisk #2001
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
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 |
|---|---|---|
|
|
@@ -4,6 +4,9 @@ CHANGELOG | |
| 9.3.0 (unreleased) | ||
| ------------------ | ||
|
|
||
| * Deprecated the `isHighRisk` property on `response.shippingAddress`. The | ||
| minFraud web service is removing the `shipping_address.is_high_risk` field | ||
| from its responses. The property will be removed in 10.0.0. | ||
|
Contributor
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. This entry says that 10.0.0 removes the property. It does not say that the value can be Suggest a sentence such as: "The property is 🤖 Comment by Claude Opus 5.5. |
||
| * Updated the documentation for the email and phone verification inputs. Set | ||
| `wasVerificationSuccessful` and `phoneWasVerificationSuccessful` to `true` | ||
| if your system considers the email address or phone number verified as of | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -335,17 +335,19 @@ export interface Phone { | |
| */ | ||
| export interface ShippingAddress { | ||
| /** | ||
| * This property is `true` if the shipping address is in the IP country. The | ||
| * property is `false` when the address is not in the IP country. If the | ||
| * shipping address could not be parsed or was not provided or the IP address | ||
| * could not be geolocated, then the property is `null`. | ||
| * This is `true` if the shipping address is associated with fraudulent | ||
| * transactions. The minFraud web service deprecated this field. This is | ||
|
Contributor
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. Nit: this comment says the web service "deprecated this field", but the CHANGELOG entry says the web service "is removing" it from its responses. "Deprecated" can suggest that the web service still sends the field. The web service already leaves the field out of some responses, and after the change it leaves it out of all responses. Suggest the CHANGELOG wording here, for example: "The minFraud web service is removing this field from its responses. This is 🤖 Comment by Claude Opus 5.5. |
||
| * `undefined` when the web service does not return it. | ||
|
Contributor
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. Nit: no test covers the 🤖 Comment by Claude Opus 5.5. |
||
| * | ||
| * @category Deprecated | ||
| * @deprecated This property will be removed in 10.0.0. | ||
| */ | ||
| readonly isHighRisk: boolean; | ||
|
Contributor
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. The comment above says this property is But the web service already leaves out Consider 🤖 Comment by Claude Opus 5.5.
Contributor
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. Seems like it is intentional to leave it.
Member
Author
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. Yeah, this is intentional as changing it would be a breaking change. I agree that it was wrong, but it is deprecated now and we will be removing it. |
||
| /** | ||
|
Contributor
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. Pre-existing, not caused by this PR: the new 🤖 Comment by Claude Opus 5.5.
Contributor
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. That might be worth fixing given we fixed it for this one?
Member
Author
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. Comment from Claude Opus 5.5, an agent working on behalf of Greg. Fixed in 01b173b. The
Contributor
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. Pre-existing, not caused by this PR: 🤖 Comment by Claude Opus 5.5.
Contributor
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. Interesting
Member
Author
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. Yeah, I'll make an issue for this.
Member
Author
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. Comment from Claude Opus 5.5, an agent working on behalf of Greg. Filed as ENG-5895. I checked the web service code: it can leave out these address fields. The issue also lists the other Node response properties that are typed as always present but that the service can leave out, for example on the credit card, phone, email, and device. The fix is a breaking type change, so it is planned for 10.0.0. |
||
| * This property is `true` if the postal code provided with the address is in | ||
| * the city for the address. The property is `false` when the postal code is | ||
| * not in the city. If the address was not provided or could not be parsed, | ||
| * the property will be `null`. | ||
| * the property is `undefined`. | ||
| */ | ||
| readonly isPostalInCity?: boolean; | ||
| /** | ||
|
|
@@ -368,7 +370,7 @@ export interface ShippingAddress { | |
| * This property is `true` if the address is in the IP country. The property | ||
| * is `false` when the address is not in the IP country. If the address could | ||
| * not be parsed or was not provided or if the IP address could not be | ||
| * geolocated, the property will be `null`. | ||
| * geolocated, the property is `undefined`. | ||
| */ | ||
| readonly isInIpCountry?: boolean; | ||
| } | ||
|
|
@@ -378,7 +380,7 @@ export interface BillingAddress { | |
| * This property is `true` if the postal code provided with the address is in | ||
| * the city for the address. The property is `false` when the postal code is | ||
| * not in the city. If the address was not provided or could not be parsed, | ||
| * the property will be `null`. | ||
| * the property is `undefined`. | ||
| */ | ||
| readonly isPostalInCity?: boolean; | ||
| /** | ||
|
|
@@ -397,7 +399,7 @@ export interface BillingAddress { | |
| * This property is `true` if the address is in the IP country. The property | ||
| * is `false` when the address is not in the IP country. If the address could | ||
| * not be parsed or was not provided or if the IP address could not be | ||
| * geolocated, the property will be `null`. | ||
| * geolocated, the property is `undefined`. | ||
| */ | ||
| readonly isInIpCountry?: 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.
Nit, optional: when this library deprecated the Factors subscores (8.0.0), the CHANGELOG entry linked to the minFraud release notes. Consider a link to the release note for this removal, so users can find the date and the reason. If this release ships before that release note is published, ignore this.
🤖 Comment by Claude Opus 5.5.