naftiko: 1.0.0-alpha2 info: label: Tratta API — Payment Methods description: 'Tratta API — Payment Methods. 4 operations. Lead operation: List Payment Methods. Self-contained Naftiko capability covering one Tratta business surface.' tags: - Tratta - Payment Methods created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TRATTA_API_KEY: TRATTA_API_KEY capability: consumes: - type: http namespace: tratta-payment-methods baseUri: https://{org-uuid}.production.tratta.io/api/v1 description: Tratta API — Payment Methods business capability. Self-contained, no shared references. resources: - name: payment_methods path: /payment_methods operations: - name: listpaymentmethods method: GET description: List Payment Methods outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createpaymentmethod method: POST description: Create Payment Method outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: payment_methods-id path: /payment_methods/{id} operations: - name: getpaymentmethod method: GET description: Get Payment Method outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deletepaymentmethod method: DELETE description: Delete Payment Method outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.TRATTA_API_KEY}}' exposes: - type: rest namespace: tratta-payment-methods-rest port: 8080 description: REST adapter for Tratta API — Payment Methods. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/payment-methods name: payment-methods description: REST surface for payment_methods. operations: - method: GET name: listpaymentmethods description: List Payment Methods call: tratta-payment-methods.listpaymentmethods outputParameters: - type: object mapping: $. - method: POST name: createpaymentmethod description: Create Payment Method call: tratta-payment-methods.createpaymentmethod with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/payment-methods/{id} name: payment-methods-id description: REST surface for payment_methods-id. operations: - method: GET name: getpaymentmethod description: Get Payment Method call: tratta-payment-methods.getpaymentmethod outputParameters: - type: object mapping: $. - method: DELETE name: deletepaymentmethod description: Delete Payment Method call: tratta-payment-methods.deletepaymentmethod outputParameters: - type: object mapping: $. - type: mcp namespace: tratta-payment-methods-mcp port: 9090 transport: http description: MCP adapter for Tratta API — Payment Methods. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-payment-methods description: List Payment Methods hints: readOnly: true destructive: false idempotent: true call: tratta-payment-methods.listpaymentmethods outputParameters: - type: object mapping: $. - name: create-payment-method description: Create Payment Method hints: readOnly: false destructive: false idempotent: false call: tratta-payment-methods.createpaymentmethod with: body: tools.body outputParameters: - type: object mapping: $. - name: get-payment-method description: Get Payment Method hints: readOnly: true destructive: false idempotent: true call: tratta-payment-methods.getpaymentmethod outputParameters: - type: object mapping: $. - name: delete-payment-method description: Delete Payment Method hints: readOnly: false destructive: true idempotent: true call: tratta-payment-methods.deletepaymentmethod outputParameters: - type: object mapping: $.