/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { merchantAccountsThreeDsConfigurationCreate } from "../funcs/merchantAccountsThreeDsConfigurationCreate.js"; import { merchantAccountsThreeDsConfigurationDelete } from "../funcs/merchantAccountsThreeDsConfigurationDelete.js"; import { merchantAccountsThreeDsConfigurationList } from "../funcs/merchantAccountsThreeDsConfigurationList.js"; import { merchantAccountsThreeDsConfigurationUpdate } from "../funcs/merchantAccountsThreeDsConfigurationUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class ThreeDsConfiguration extends ClientSDK { /** * Create 3DS configuration for merchant * * @remarks * Create a new 3DS configuration for a merchant account. */ async create( merchantAccountThreeDSConfigurationCreate: components.MerchantAccountThreeDSConfigurationCreate, merchantAccountId: string, options?: RequestOptions, ): Promise { return unwrapAsync(merchantAccountsThreeDsConfigurationCreate( this, merchantAccountThreeDSConfigurationCreate, merchantAccountId, options, )); } /** * List 3DS configurations for merchant * * @remarks * List all 3DS configurations for a merchant account. */ async list( merchantAccountId: string, currency?: string | null | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(merchantAccountsThreeDsConfigurationList( this, merchantAccountId, currency, options, )); } /** * Edit 3DS configuration * * @remarks * Update the 3DS configuration for a merchant account. */ async update( merchantAccountThreeDSConfigurationUpdate: components.MerchantAccountThreeDSConfigurationUpdate, merchantAccountId: string, threeDsConfigurationId: string, options?: RequestOptions, ): Promise { return unwrapAsync(merchantAccountsThreeDsConfigurationUpdate( this, merchantAccountThreeDSConfigurationUpdate, merchantAccountId, threeDsConfigurationId, options, )); } /** * Delete 3DS configuration for a merchant * * @remarks * Delete a 3DS configuration for a merchant account. */ async delete( merchantAccountId: string, threeDsConfigurationId: string, options?: RequestOptions, ): Promise { return unwrapAsync(merchantAccountsThreeDsConfigurationDelete( this, merchantAccountId, threeDsConfigurationId, options, )); } }