UNPKG

@goparrot/franchise-mcp-server

Version:

MCP Server for Franchise API

44 lines (43 loc) 1.26 kB
import { dashboardBaseUrl, makeRequest } from '../../../common/index.js'; /** * Method information for dashboard payment domain endpoints */ export const PaymentDomainMethods = { register: { description: 'Register a domain for a store payment', method: 'post', path: '/payment/api/v2/merchants/{merchantId}/stores/{storeId}/domains', pathParams: [ { name: 'merchantId', type: 'string', description: 'Merchant ID', required: true, }, { name: 'storeId', type: 'string', description: 'Store ID', required: true, }, ], queryParams: [], requestType: 'DomainRegistrationRequest', isMultipart: false, originalName: 'register', isWrite: true, permissions: ['store-payment:api:create'], }, }; /** * Handlers for dashboard payment domain endpoints */ export const PaymentDomainHandlers = { register: async (accessToken, args) => { return makeRequest(PaymentDomainMethods.register, { baseUrl: dashboardBaseUrl, accessToken, args, }); }, };