naftiko: 1.0.0-alpha2 info: label: Braintree Payments API — Transactions description: 'Braintree Payments API — Transactions. 5 operations. Lead operation: Create a transaction. Self-contained Naftiko capability covering one Braintree business surface.' tags: - Braintree - Transactions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BRAINTREE_API_KEY: BRAINTREE_API_KEY capability: consumes: - type: http namespace: payments-transactions baseUri: https://api.braintreegateway.com/merchants/{merchantId} description: Braintree Payments API — Transactions business capability. Self-contained, no shared references. resources: - name: transactions path: /transactions operations: - name: createtransaction method: POST description: Create a transaction outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: transactions-transactionId path: /transactions/{transactionId} operations: - name: gettransaction method: GET description: Get a transaction outputRawFormat: json outputParameters: - name: result type: object value: $. - name: transactions-transactionId-refund path: /transactions/{transactionId}/refund operations: - name: refundtransaction method: POST description: Refund a transaction outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: transactions-transactionId-submit_for_settlement path: /transactions/{transactionId}/submit_for_settlement operations: - name: submittransactionforsettlement method: PUT description: Submit transaction for settlement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: transactions-transactionId-void path: /transactions/{transactionId}/void operations: - name: voidtransaction method: PUT description: Void a transaction outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: basic username: '{{env.BRAINTREE_USER}}' password: '{{env.BRAINTREE_PASS}}' exposes: - type: rest namespace: payments-transactions-rest port: 8080 description: REST adapter for Braintree Payments API — Transactions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/transactions name: transactions description: REST surface for transactions. operations: - method: POST name: createtransaction description: Create a transaction call: payments-transactions.createtransaction with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/transactions/{transactionid} name: transactions-transactionid description: REST surface for transactions-transactionId. operations: - method: GET name: gettransaction description: Get a transaction call: payments-transactions.gettransaction outputParameters: - type: object mapping: $. - path: /v1/transactions/{transactionid}/refund name: transactions-transactionid-refund description: REST surface for transactions-transactionId-refund. operations: - method: POST name: refundtransaction description: Refund a transaction call: payments-transactions.refundtransaction with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/transactions/{transactionid}/submit-for-settlement name: transactions-transactionid-submit-for-settlement description: REST surface for transactions-transactionId-submit_for_settlement. operations: - method: PUT name: submittransactionforsettlement description: Submit transaction for settlement call: payments-transactions.submittransactionforsettlement with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/transactions/{transactionid}/void name: transactions-transactionid-void description: REST surface for transactions-transactionId-void. operations: - method: PUT name: voidtransaction description: Void a transaction call: payments-transactions.voidtransaction outputParameters: - type: object mapping: $. - type: mcp namespace: payments-transactions-mcp port: 9090 transport: http description: MCP adapter for Braintree Payments API — Transactions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-transaction description: Create a transaction hints: readOnly: false destructive: false idempotent: false call: payments-transactions.createtransaction with: body: tools.body outputParameters: - type: object mapping: $. - name: get-transaction description: Get a transaction hints: readOnly: true destructive: false idempotent: true call: payments-transactions.gettransaction outputParameters: - type: object mapping: $. - name: refund-transaction description: Refund a transaction hints: readOnly: false destructive: false idempotent: false call: payments-transactions.refundtransaction with: body: tools.body outputParameters: - type: object mapping: $. - name: submit-transaction-settlement description: Submit transaction for settlement hints: readOnly: false destructive: false idempotent: true call: payments-transactions.submittransactionforsettlement with: body: tools.body outputParameters: - type: object mapping: $. - name: void-transaction description: Void a transaction hints: readOnly: false destructive: false idempotent: true call: payments-transactions.voidtransaction outputParameters: - type: object mapping: $.