naftiko: 1.0.0-alpha2 info: label: Modern Treasury — PaymentAction description: 'Modern Treasury — PaymentAction. 4 operations. Lead operation: list payment_actions. Self-contained Naftiko capability covering one Modern Treasury business surface.' tags: - Modern Treasury - PaymentAction created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MODERN_TREASURY_API_KEY: MODERN_TREASURY_API_KEY capability: consumes: - type: http namespace: modern-treasury-paymentaction baseUri: http://localhost:3000 description: Modern Treasury — PaymentAction business capability. Self-contained, no shared references. resources: - name: api-payment_actions path: /api/payment_actions operations: - name: listpaymentactions method: GET description: list payment_actions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: type in: query type: string description: The type of payment action. - name: status in: query type: string description: Filter by payment actions of a specific status. - name: actionable_id in: query type: string description: The ID of the associated actionable object. - name: actionable_type in: query type: string description: The type of the associated actionable object. One of `payment_order`, `expected_payment`. - name: internal_account_id in: query type: string description: The ID of one of your internal accounts. - name: created_at in: query type: object description: Filter by `created_at` using comparison operators like `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the created at timestamp. For exampl - name: after_cursor in: query type: string - name: per_page in: query type: integer - name: createpaymentaction method: POST description: create payment_action outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Idempotency-Key in: header type: string description: This key should be something unique, preferably something like an UUID. - name: body in: body type: object description: Request body (JSON). required: false - name: api-payment_actions-id path: /api/payment_actions/{id} operations: - name: getpaymentaction method: GET description: get payment_action outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatepaymentaction method: PATCH description: update payment_action outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: basic username: '{{env.MODERN_TREASURY_USER}}' password: '{{env.MODERN_TREASURY_PASS}}' exposes: - type: rest namespace: modern-treasury-paymentaction-rest port: 8080 description: REST adapter for Modern Treasury — PaymentAction. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/payment-actions name: api-payment-actions description: REST surface for api-payment_actions. operations: - method: GET name: listpaymentactions description: list payment_actions call: modern-treasury-paymentaction.listpaymentactions with: type: rest.type status: rest.status actionable_id: rest.actionable_id actionable_type: rest.actionable_type internal_account_id: rest.internal_account_id created_at: rest.created_at after_cursor: rest.after_cursor per_page: rest.per_page outputParameters: - type: object mapping: $. - method: POST name: createpaymentaction description: create payment_action call: modern-treasury-paymentaction.createpaymentaction with: Idempotency-Key: rest.Idempotency-Key body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/payment-actions/{id} name: api-payment-actions-id description: REST surface for api-payment_actions-id. operations: - method: GET name: getpaymentaction description: get payment_action call: modern-treasury-paymentaction.getpaymentaction outputParameters: - type: object mapping: $. - method: PATCH name: updatepaymentaction description: update payment_action call: modern-treasury-paymentaction.updatepaymentaction with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: modern-treasury-paymentaction-mcp port: 9090 transport: http description: MCP adapter for Modern Treasury — PaymentAction. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-payment-actions description: list payment_actions hints: readOnly: true destructive: false idempotent: true call: modern-treasury-paymentaction.listpaymentactions with: type: tools.type status: tools.status actionable_id: tools.actionable_id actionable_type: tools.actionable_type internal_account_id: tools.internal_account_id created_at: tools.created_at after_cursor: tools.after_cursor per_page: tools.per_page outputParameters: - type: object mapping: $. - name: create-payment-action description: create payment_action hints: readOnly: false destructive: false idempotent: false call: modern-treasury-paymentaction.createpaymentaction with: Idempotency-Key: tools.Idempotency-Key body: tools.body outputParameters: - type: object mapping: $. - name: get-payment-action description: get payment_action hints: readOnly: true destructive: false idempotent: true call: modern-treasury-paymentaction.getpaymentaction outputParameters: - type: object mapping: $. - name: update-payment-action description: update payment_action hints: readOnly: false destructive: false idempotent: true call: modern-treasury-paymentaction.updatepaymentaction with: body: tools.body outputParameters: - type: object mapping: $.