naftiko: 1.0.0-alpha2 info: label: Connector API — Credit cards description: 'Connector API — Credit cards. 4 operations. Lead operation: Add tokenized credit card. Self-contained Naftiko capability covering one Mews business surface.' tags: - Mews - Credit cards created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MEWS_API_KEY: MEWS_API_KEY capability: consumes: - type: http namespace: connector-credit-cards baseUri: https://api.mews.com description: Connector API — Credit cards business capability. Self-contained, no shared references. resources: - name: api-connector-v1-creditCards-addTokenized path: /api/connector/v1/creditCards/addTokenized operations: - name: creditcardsaddtokenized method: POST description: Add tokenized credit card outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: api-connector-v1-creditCards-charge path: /api/connector/v1/creditCards/charge operations: - name: creditcardscharge method: POST description: Charge credit card outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: api-connector-v1-creditCards-disable path: /api/connector/v1/creditCards/disable operations: - name: creditcardsdisable method: POST description: Disable gateway credit card outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: api-connector-v1-creditCards-getAll path: /api/connector/v1/creditCards/getAll operations: - name: creditcardsgetall method: POST description: Get all credit cards outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false exposes: - type: rest namespace: connector-credit-cards-rest port: 8080 description: REST adapter for Connector API — Credit cards. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/connector/v1/creditcards/addtokenized name: api-connector-v1-creditcards-addtokenized description: REST surface for api-connector-v1-creditCards-addTokenized. operations: - method: POST name: creditcardsaddtokenized description: Add tokenized credit card call: connector-credit-cards.creditcardsaddtokenized with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/connector/v1/creditcards/charge name: api-connector-v1-creditcards-charge description: REST surface for api-connector-v1-creditCards-charge. operations: - method: POST name: creditcardscharge description: Charge credit card call: connector-credit-cards.creditcardscharge with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/connector/v1/creditcards/disable name: api-connector-v1-creditcards-disable description: REST surface for api-connector-v1-creditCards-disable. operations: - method: POST name: creditcardsdisable description: Disable gateway credit card call: connector-credit-cards.creditcardsdisable with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/connector/v1/creditcards/getall name: api-connector-v1-creditcards-getall description: REST surface for api-connector-v1-creditCards-getAll. operations: - method: POST name: creditcardsgetall description: Get all credit cards call: connector-credit-cards.creditcardsgetall with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: connector-credit-cards-mcp port: 9090 transport: http description: MCP adapter for Connector API — Credit cards. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: add-tokenized-credit-card description: Add tokenized credit card hints: readOnly: false destructive: false idempotent: false call: connector-credit-cards.creditcardsaddtokenized with: body: tools.body outputParameters: - type: object mapping: $. - name: charge-credit-card description: Charge credit card hints: readOnly: false destructive: false idempotent: false call: connector-credit-cards.creditcardscharge with: body: tools.body outputParameters: - type: object mapping: $. - name: disable-gateway-credit-card description: Disable gateway credit card hints: readOnly: false destructive: false idempotent: false call: connector-credit-cards.creditcardsdisable with: body: tools.body outputParameters: - type: object mapping: $. - name: get-all-credit-cards description: Get all credit cards hints: readOnly: true destructive: false idempotent: false call: connector-credit-cards.creditcardsgetall with: body: tools.body outputParameters: - type: object mapping: $.