Skip to content

Stripe.Radar reference

Source: src/Stripe/RadarValueList.ts

A Stripe Radar Value List — a named collection of values (emails, IPs, card fingerprints, …) referenced from Radar rules. alias and itemType are immutable and changing them replaces the list. Name and metadata update in place. Destroy deletes the list and its items; a list referenced by a Radar rule cannot be deleted.

Radar custom lists may require Radar for Fraud Teams.

Generated alias

const blocked = yield* Stripe.RadarValueList("blocked-emails", {
itemType: "email",
});

Named list with alias

const blocked = yield* Stripe.RadarValueList("blocked-emails", {
alias: "custom_email_blocklist",
name: "Blocked emails",
itemType: "email",
});
const blocked = yield* Stripe.RadarValueList("blocked-emails", {
alias: "custom_email_blocklist",
name: "Blocked emails (updated)",
itemType: "email",
metadata: { team: "fraud" },
});
const blocked = yield* Stripe.RadarValueList("blocked", {
alias: "custom_blocklist",
itemType: "ip_address",
});

Source: src/Stripe/RadarValueListItem.ts

A Stripe Radar Value List Item — one entry on a Radar value list used in Radar rules. Existence-only: there is nothing to update in place; changing valueList or value replaces the item. Destroy deletes it.

Value list items have no metadata of their own. Ownership for account-wide list() (nuke) is inferred from the parent value list’s Alchemy metadata.

const blocked = yield* Stripe.RadarValueList("blocked-emails", {
alias: "blocked_emails",
name: "Blocked emails",
itemType: "email",
});
const item = yield* Stripe.RadarValueListItem("spammer", {
valueList: blocked.id,
value: "spammer@example.com",
});
const item = yield* Stripe.RadarValueListItem("spammer", {
valueList: blocked.id,
value: "other@example.com",
});

Source: src/Stripe/RetrieveRadarValueList.ts

Retrieve a bound Stripe Radar Value List over HTTP.

RetrieveRadarValueList: Reading a Value List

Section titled “RetrieveRadarValueList: Reading a Value List”
const retrieve = yield* Stripe.RetrieveRadarValueList(blocklist);
const live = yield* retrieve();

Source: src/Stripe/RetrieveRadarValueListHttp.ts Kind: Layer · Provides: Stripe.RetrieveRadarValueList

HTTP implementation of RetrieveRadarValueList.

Source: src/Stripe/RetrieveRadarValueListItem.ts

Retrieve a bound Stripe Radar Value List Item over HTTP.

RetrieveRadarValueListItem: Reading a Value List Item

Section titled “RetrieveRadarValueListItem: Reading a Value List Item”
const retrieve = yield* Stripe.RetrieveRadarValueListItem(item);
const live = yield* retrieve();

Source: src/Stripe/RetrieveRadarValueListItemHttp.ts Kind: Layer · Provides: Stripe.RetrieveRadarValueListItem

HTTP implementation of RetrieveRadarValueListItem.