naftiko: 1.0.0-alpha2 info: label: Paypal Payments — Authorizations description: 'Paypal Payments — Authorizations. 4 operations. Lead operation: Paypal Show details for authorized payment. Self-contained Naftiko capability covering one Paypal business surface.' tags: - Paypal - Authorizations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PAYPAL_API_KEY: PAYPAL_API_KEY capability: consumes: - type: http namespace: payments-authorizations baseUri: https://api-m.sandbox.paypal.com description: Paypal Payments — Authorizations business capability. Self-contained, no shared references. resources: - name: v2-payments-authorizations-authorization_id path: /v2/payments/authorizations/{authorization_id} operations: - name: authorizationsget method: GET description: Paypal Show details for authorized payment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v2-payments-authorizations-authorization_id-capture path: /v2/payments/authorizations/{authorization_id}/capture operations: - name: authorizationscapture method: POST description: Paypal Capture authorized payment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: v2-payments-authorizations-authorization_id-reauthorize path: /v2/payments/authorizations/{authorization_id}/reauthorize operations: - name: authorizationsreauthorize method: POST description: Paypal Reauthorize authorized payment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: v2-payments-authorizations-authorization_id-void path: /v2/payments/authorizations/{authorization_id}/void operations: - name: authorizationsvoid method: POST description: Paypal Void authorized payment outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.PAYPAL_API_KEY}}' exposes: - type: rest namespace: payments-authorizations-rest port: 8080 description: REST adapter for Paypal Payments — Authorizations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/payments/authorizations/{authorization-id} name: v2-payments-authorizations-authorization-id description: REST surface for v2-payments-authorizations-authorization_id. operations: - method: GET name: authorizationsget description: Paypal Show details for authorized payment call: payments-authorizations.authorizationsget outputParameters: - type: object mapping: $. - path: /v1/v2/payments/authorizations/{authorization-id}/capture name: v2-payments-authorizations-authorization-id-capture description: REST surface for v2-payments-authorizations-authorization_id-capture. operations: - method: POST name: authorizationscapture description: Paypal Capture authorized payment call: payments-authorizations.authorizationscapture with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/payments/authorizations/{authorization-id}/reauthorize name: v2-payments-authorizations-authorization-id-reauthorize description: REST surface for v2-payments-authorizations-authorization_id-reauthorize. operations: - method: POST name: authorizationsreauthorize description: Paypal Reauthorize authorized payment call: payments-authorizations.authorizationsreauthorize with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/payments/authorizations/{authorization-id}/void name: v2-payments-authorizations-authorization-id-void description: REST surface for v2-payments-authorizations-authorization_id-void. operations: - method: POST name: authorizationsvoid description: Paypal Void authorized payment call: payments-authorizations.authorizationsvoid outputParameters: - type: object mapping: $. - type: mcp namespace: payments-authorizations-mcp port: 9090 transport: http description: MCP adapter for Paypal Payments — Authorizations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: paypal-show-details-authorized-payment description: Paypal Show details for authorized payment hints: readOnly: true destructive: false idempotent: true call: payments-authorizations.authorizationsget outputParameters: - type: object mapping: $. - name: paypal-capture-authorized-payment description: Paypal Capture authorized payment hints: readOnly: false destructive: false idempotent: false call: payments-authorizations.authorizationscapture with: body: tools.body outputParameters: - type: object mapping: $. - name: paypal-reauthorize-authorized-payment description: Paypal Reauthorize authorized payment hints: readOnly: false destructive: false idempotent: false call: payments-authorizations.authorizationsreauthorize with: body: tools.body outputParameters: - type: object mapping: $. - name: paypal-void-authorized-payment description: Paypal Void authorized payment hints: readOnly: false destructive: false idempotent: false call: payments-authorizations.authorizationsvoid outputParameters: - type: object mapping: $.