Skip to content
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

Make IP address optional when reporting transactions #1326

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

ugexe
Copy link
Contributor

@ugexe ugexe commented May 24, 2024

No description provided.

* The IP address of the customer placing the order.
* The IP address of the customer placing the order. This field is not
* required if you provide at least one of the transaction's minfraud_id,
* maxmind_id, or transaction_id. You are encouraged to provide it, if
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the casung should match the names in this interface (which also match the names used elsewhere in this package).

CHANGELOG.md Outdated

* Updated `TransactionReport` to make the `ipAddress` parameter optional. Now
the `tag` and at least one of the following paramters must be supplied:
`ipAddress`, `maxmindId`, `minfraudID`, `transactionID`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`ipAddress`, `maxmindId`, `minfraudID`, `transactionID`.
`ipAddress`, `maxmindId`, `minfraudId`, `transactionId`.

@@ -50,7 +54,7 @@ export default class TransactionReport {
/** @inheritDoc TransactionReportProps.chargebackCode */
public chargebackCode?: string;
/** @inheritDoc TransactionReportProps.ipAddress */
public ipAddress: string;
public ipAddress?: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this seems like a breaking change too. We should probably do a major version bump.

@oschwald oschwald merged commit df26ea7 into main Jun 12, 2024
9 checks passed
@oschwald oschwald deleted the nlogan/report-no-ip branch June 12, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants