Skip to content

feat: affiliate on intents and order reviews - #54

Merged
YellowSnnowmann merged 1 commit into
mainfrom
feat/intent-affiliate
Nov 18, 2026
Merged

YellowSnnowmann merged 1 commit into
mainfrom
feat/intent-affiliate

Conversation

@YellowSnnowmann

Copy link
Copy Markdown
Member

Adds affiliate to Intent and OrderReview. It is set when a live purchase is at a store whose affiliate program may pay OpenIntents a commission on it, before anything is ordered, so a caller can tell the payer before they place the order. The store's price is the same either way, and no store is chosen for it.

  • Spec: the Affiliate schema (program, name, network), Intent.affiliate and OrderReview.affiliate, both nullable. The review wire examples carry "affiliate": null.
  • SDKs: Affiliate and both fields, in TypeScript, Python and Rust. An absent or null value parses as before.
  • CHANGELOG: both entries under Unreleased.

Checks

  • Rust: cargo fmt --check, cargo clippy --all-targets --features cli -- -D warnings and cargo test all pass.
  • TypeScript: lint (tsc) is clean, and test passes 117 of 117.
  • Python: ruff check and ruff format --check are clean, and pytest passes 64 of 64.

An intent's `affiliate` (`program`, `name`, `network`) is set when a live
purchase is at a store whose affiliate program may pay OpenIntents a
commission on it, before anything is ordered, and an order review's
`OrderReview.affiliate` carries the same for the order shown to the payer.
The store's price is the same either way, and no store is chosen for it.

Spec: the `Affiliate` schema, `Intent.affiliate` and
`OrderReview.affiliate`; the review wire examples carry
`"affiliate": null`. SDKs: `Affiliate`, `Intent.affiliate` and
`OrderReview.affiliate` (TypeScript, Python, Rust).
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4ec844c4-5bda-4b85-b26b-5a36a78c504e
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@YellowSnnowmann
YellowSnnowmann merged commit bae3b4d into main Nov 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant