/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { digitalWalletsDomainsCreate } from "../funcs/digitalWalletsDomainsCreate.js"; import { digitalWalletsDomainsDelete } from "../funcs/digitalWalletsDomainsDelete.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Domains extends ClientSDK { /** * Register a digital wallet domain * * @remarks * Register a digital wallet domain (Apple Pay only). */ async create( digitalWalletDomain: components.DigitalWalletDomain, digitalWalletId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(digitalWalletsDomainsCreate( this, digitalWalletDomain, digitalWalletId, merchantAccountId, options, )); } /** * Remove a digital wallet domain * * @remarks * Remove a digital wallet domain (Apple Pay only). */ async delete( digitalWalletDomain: components.DigitalWalletDomain, digitalWalletId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(digitalWalletsDomainsDelete( this, digitalWalletDomain, digitalWalletId, merchantAccountId, options, )); } }