Skip to content

feat(v3-ref-seller): implement sync_accounts + list_accounts with billing_entity write-only projection guard wired #377

@bokelley

Description

@bokelley

Context

The v3 reference seller has the Account.billing_entity JSON column but does not implement sync_accounts or list_accounts. Because of this, adcp.types.project_account_for_response (the 3.1 bank-details write-only guard) is never called — the protection is purely architectural, not enforced.

Refs:

  • examples/v3_reference_seller/src/platform.py
  • examples/v3_reference_seller/src/models.py (Account.billing_entity)
  • adcp.types.project_account_for_response

Acceptance Criteria

  • sync_accounts implemented — persists incoming accounts (including billing_entity with bank details), then returns response via project_account_for_response
  • list_accounts implemented — returns accounts projected through project_account_for_response so bank details are stripped
  • Smoke test asserts bank_details (or any write-only field) never appears in either response
  • Smoke test asserts non-write-only fields (display name, address, tax id format) DO appear

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions