Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ await client.reportTransaction(report);

**Exception:** Use plain `string` only when the API documentation explicitly states "additional values may be added in the future" AND you want to allow any string value (e.g., `phone.numberType`).

#### 6. **GeoIP2 Integration**
#### 6. **GeoIP Integration**

The Insights and Factors responses include IP geolocation data from the @maxmind/geoip2-node library:
```typescript
Expand Down Expand Up @@ -331,7 +331,7 @@ try {
}
```

### Problem: GeoIP2 Type Conflicts
### Problem: GeoIP Type Conflicts

The IP address data comes from @maxmind/geoip2-node and needs augmentation.

Expand Down
2 changes: 1 addition & 1 deletion src/response/models/factors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class Factors extends Insights {
public readonly riskScoreReasons?: records.RiskScoreReason[];

/**
* An object containing GeoIP2 and minFraud Insights information about the IP
* An object containing GeoIP and minFraud Insights information about the IP
* address.
*
* @deprecated replaced by {@link riskScoreReasons}.
Expand Down
2 changes: 1 addition & 1 deletion src/response/models/insights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class Insights extends Score {
*/
public readonly email?: records.Email;
/**
* An object containing GeoIP2 and minFraud Insights information about the IP address.
* An object containing GeoIP and minFraud Insights information about the IP address.
*/
public readonly ipAddress?: records.IpAddress;
/**
Expand Down
6 changes: 3 additions & 3 deletions src/response/records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface ScoreIpAddress {
}

/**
* A subclass of the GeoIP2 Country model with minFraud-specific additions.
* A subclass of the GeoIP Country model with minFraud-specific additions.
*/
export interface GeoIPCountry extends CountryRecord {
/**
Expand All @@ -37,7 +37,7 @@ export interface GeoIPCountry extends CountryRecord {
}

/**
* A subclass of the GeoIP2 Location model with minFraud-specific additions.
* A subclass of the GeoIP Location model with minFraud-specific additions.
*/
export interface GeoIPLocation extends LocationRecord {
/**
Expand All @@ -64,7 +64,7 @@ export interface IpRiskReasons {
}

/**
* Model for minFraud GeoIP2 Insights data.
* Model for minFraud GeoIP Insights data.
*/
export interface IpAddress extends Insights {
/**
Expand Down