Skip to content

feat(v3-ref-seller): MediaBuy.invoice_recipient first-class column (3.1 readiness) #378

@bokelley

Description

@bokelley

Context

AdCP 3.1 surfaces media_buy.invoice_recipient as a per-buy override of the account's default billing_entity. The v3 reference seller currently captures invoice_recipient only inside the request_snapshot JSON blob — which means it is:

  • not queryable
  • not enforceable by billing or governance code
  • not surfaced in get_media_buy / list_media_buys responses

Refs:

  • examples/v3_reference_seller/src/models.py (MediaBuy)
  • examples/v3_reference_seller/src/platform.py (create_media_buy, update_media_buy)

Acceptance Criteria

  • MediaBuy.invoice_recipient JSON column added to the ORM
  • create_media_buy extracts invoice_recipient from the request and persists to the column (still keeping request_snapshot for the full request)
  • update_media_buy propagates changes to the column when the buyer updates the field
  • get_media_buy / list_media_buys responses populate invoice_recipient from the column
  • Smoke test creates a buy with invoice_recipient set, queries it, asserts it round-trips

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions