import { AdyenClient } from '../client.mjs'; import { PaymentMethodType } from '../types.mjs'; export type TransactionDescriptionType = 'fixed' | 'append' | 'dynamic'; export type TransactionDescription = { doingBusinessAsName?: string; type?: TransactionDescriptionType; }; export type AmexServiceLevel = 'noContract' | 'gatewayContract' | 'paymentDesignatorContract'; export type AmexPaymentMethod = { midNumber?: string; reuseMidNumber?: boolean; }; export type ApplePayPaymentMethod = { domains: string[]; }; export type ChinaUnionPayPaymentMethod = { transactionDescription?: TransactionDescription; }; export type DinersServiceLevel = 'noContract' | 'gatewayContract'; export type DinersPaymentMethod = { midNumber?: string; reuseMidNumber: boolean; serviceLevel?: DinersServiceLevel; transactionDescription?: TransactionDescription; }; export type DiscoverPaymentMethod = { transactionDescription?: TransactionDescription; }; export type GooglePayPaymentMethod = { merchantId: string; reuseMerchantId?: boolean; }; export type InteracPaymentMethod = { transactionDescription?: TransactionDescription; }; export type JcbServiceLevel = 'noContract' | 'gatewayContract' | 'paymentDesignatorContract'; export type JcbPaymentMethod = { midNumber?: string; reuseMidNumber?: boolean; serviceLevel: JcbServiceLevel; transactionDescription?: TransactionDescription; }; export type MaestroPaymentMethod = { transactionDescription?: TransactionDescription; }; export type MaestroUsaPaymentMethod = { transactionDescription?: TransactionDescription; }; export type MasterCardPaymentMethod = { transactionDescription?: TransactionDescription; }; export type PayByBankPlaidPaymentMethod = { logo?: string; transactionDescription?: TransactionDescription; }; export type PayPalPaymentMethod = { directCapture?: boolean; payerId: string; subject: string; }; export type StarProcessingType = 'pos' | 'billpay' | 'ecom'; export type StarPaymentMethod = { processingType: StarProcessingType; transactionDescription?: TransactionDescription; }; export type VisaPaymentMethod = { transactionDescription?: TransactionDescription; }; export type ShopperInteractionType = 'eCommerce' | 'pos' | 'contAuth' | 'noto'; export type RequestPaymentMethodInput = { amex?: unknown; applePay?: ApplePayPaymentMethod; businessLineId: string; countries?: string[]; cup?: ChinaUnionPayPaymentMethod; currencies?: string[]; customRoutingFlags?: string[]; diners?: DinersPaymentMethod; discover?: DiscoverPaymentMethod; googlePay?: GooglePayPaymentMethod; interac_card?: InteracPaymentMethod; jcb?: JcbPaymentMethod; maestro?: MaestroPaymentMethod; maestro_usa?: MaestroUsaPaymentMethod; mc?: MasterCardPaymentMethod; paybybank_plaid?: PayByBankPlaidPaymentMethod; paypal?: PayPalPaymentMethod; /** * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ reference?: string; /** * The sales channel. Required if the merchant account does not have a sales * channel. When you provide this field, it overrides the default sales * channel set on the merchant account. */ shopperInteraction?: ShopperInteractionType; star?: StarPaymentMethod; /** * The unique identifier of the store for which to configure the payment * method, if any. */ storeIds?: string[]; type: PaymentMethodType; visa?: VisaPaymentMethod; }; export type RequestPaymentMethodOutput = RequestPaymentMethodInput & { id: string; }; /** * Sends a request to add a new payment method to the merchant account * identified in the path. * * @see https://docs.adyen.com/api-explorer/Management/latest/post/merchants/(merchantId)/paymentMethodSettings * * @param client * @param meerchantId * @parma input */ export declare function requestPaymentMethod(client: AdyenClient, meerchantId: string, input: RequestPaymentMethodInput): Promise; //# sourceMappingURL=request-payment-method.d.mts.map