naftiko: 1.0.0-alpha2 info: label: TSYS Payment Gateway — Capture description: 'TSYS Payment Gateway — Capture. 2 operations. Lead operation: Process Sale. Self-contained Naftiko capability covering one Total System Services business surface.' tags: - Total System Services - Capture created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TOTAL_SYSTEM_SERVICES_API_KEY: TOTAL_SYSTEM_SERVICES_API_KEY capability: consumes: - type: http namespace: tsys-payment-gateway-capture baseUri: https://api.tsys.com/v1 description: TSYS Payment Gateway — Capture business capability. Self-contained, no shared references. resources: - name: transactions-sale path: /transactions/sale operations: - name: processsale method: POST description: Process Sale outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: transactions-transactionId-capture path: /transactions/{transactionId}/capture operations: - name: capturetransaction method: POST description: Capture Transaction outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: transactionId in: path type: string description: The transaction ID from the authorization response required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: apikey key: X-TSYS-API-Key value: '{{env.TOTAL_SYSTEM_SERVICES_API_KEY}}' placement: header exposes: - type: rest namespace: tsys-payment-gateway-capture-rest port: 8080 description: REST adapter for TSYS Payment Gateway — Capture. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/transactions/sale name: transactions-sale description: REST surface for transactions-sale. operations: - method: POST name: processsale description: Process Sale call: tsys-payment-gateway-capture.processsale with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/transactions/{transactionid}/capture name: transactions-transactionid-capture description: REST surface for transactions-transactionId-capture. operations: - method: POST name: capturetransaction description: Capture Transaction call: tsys-payment-gateway-capture.capturetransaction with: transactionId: rest.transactionId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: tsys-payment-gateway-capture-mcp port: 9090 transport: http description: MCP adapter for TSYS Payment Gateway — Capture. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: process-sale description: Process Sale hints: readOnly: false destructive: false idempotent: false call: tsys-payment-gateway-capture.processsale with: body: tools.body outputParameters: - type: object mapping: $. - name: capture-transaction description: Capture Transaction hints: readOnly: false destructive: false idempotent: false call: tsys-payment-gateway-capture.capturetransaction with: transactionId: tools.transactionId body: tools.body outputParameters: - type: object mapping: $.