import type { Square } from "square" import { defineSquareOperation } from "../lib" /** Activates a domain for use with Apple Pay on the Web and Square. */ export const registerSquareDomain = defineSquareOperation< Square.RegisterDomainRequest, Square.RegisterDomainResponse >({ allowedKeys: ["domainName"], description: "Activates a domain for use with Apple Pay on the Web and Square.", execute: (api, input) => api.applePay.registerDomain(input), name: "Register Square Domain", replaySafety: "unsafe", requiredKeys: ["domainName"], scopes: [], })