Skip to content

TASK: Expose payment instruction lifecycle HTTP API #163

Closed

Description

@ramioooz

Type: Task
Epic: Payment Rail Architecture
Slice: Slice 5 - Internal Transfer
Service: payment-service
Priority: P0

Parent story: #161

Objective

Expose the existing payment instruction lifecycle application service through a versioned internal HTTP adapter.

Scope

  • Add endpoints to create, complete, and fail payment instructions.
  • Map request bodies to application commands and return stable lifecycle response DTOs.
  • Preserve idempotent replay behavior and return conflict responses for changed payloads or invalid transitions.
  • Add OpenAPI documentation for request, response, replay, conflict, and not-found behavior.
  • Add focused web-layer tests.
  • Add repeatable local/SIT verification instructions and Insomnia requests.

Boundaries

  • Keep the transport adapter thin and delegate lifecycle rules to the application service.
  • Do not implement external payment rails, provider integrations, settlement, or persistence in this task.
  • Treat payment instruction state as internal workflow state.

Definition of Done

Activity

  1. self-assigned this
    on Aug 30, 2026
  2. added theissue type on Aug 30, 2026
  3. ramioooz commented on Aug 30, 2026

    @ramioooz
    MemberAuthor

    Payment instruction HTTP implementation PR is ready for review. PR: digital-bank-java/payment-service#3

  4. ramioooz commented on Sep 1, 2026

    @ramioooz
    MemberAuthor

    Completed by merged Payment Service PR #3. The internal payment instruction HTTP adapter is implemented and verified; payment resource-contract work is tracked under the corrected parent task #161.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions