mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
* create first version of management api structure and "me" endpoints * change me/allowedOrigins response to fix bug in API Spec file
146 lines
4.2 KiB
TypeScript
146 lines
4.2 KiB
TypeScript
/*
|
|
* The version of the OpenAPI document: v1
|
|
* Contact: developer-experience@adyen.com
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit this class manually.
|
|
*/
|
|
|
|
import { ApplePayInfo } from './applePayInfo';
|
|
import { BcmcInfo } from './bcmcInfo';
|
|
import { GiroPayInfo } from './giroPayInfo';
|
|
import { KlarnaInfo } from './klarnaInfo';
|
|
import { PayPalInfo } from './payPalInfo';
|
|
import { SofortInfo } from './sofortInfo';
|
|
import { SwishInfo } from './swishInfo';
|
|
|
|
export class PaymentMethodSetupInfo {
|
|
'applePay'?: ApplePayInfo;
|
|
'bcmc'?: BcmcInfo;
|
|
/**
|
|
* The unique identifier of the business line.
|
|
*/
|
|
'businessLineId'?: string;
|
|
/**
|
|
* The list of countries where a payment method is available. By default, all countries supported by the payment method.
|
|
*/
|
|
'countries'?: Array<string>;
|
|
/**
|
|
* The list of currencies that a payment method supports. By default, all currencies supported by the payment method.
|
|
*/
|
|
'currencies'?: Array<string>;
|
|
'giroPay'?: GiroPayInfo;
|
|
'klarna'?: KlarnaInfo;
|
|
'paypal'?: PayPalInfo;
|
|
'sofort'?: SofortInfo;
|
|
/**
|
|
* The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any.
|
|
*/
|
|
'storeId'?: string;
|
|
'swish'?: SwishInfo;
|
|
/**
|
|
* Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).
|
|
*/
|
|
'type': PaymentMethodSetupInfo.TypeEnum;
|
|
|
|
static discriminator: string | undefined = undefined;
|
|
|
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
{
|
|
"name": "applePay",
|
|
"baseName": "applePay",
|
|
"type": "ApplePayInfo"
|
|
},
|
|
{
|
|
"name": "bcmc",
|
|
"baseName": "bcmc",
|
|
"type": "BcmcInfo"
|
|
},
|
|
{
|
|
"name": "businessLineId",
|
|
"baseName": "businessLineId",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "countries",
|
|
"baseName": "countries",
|
|
"type": "Array<string>"
|
|
},
|
|
{
|
|
"name": "currencies",
|
|
"baseName": "currencies",
|
|
"type": "Array<string>"
|
|
},
|
|
{
|
|
"name": "giroPay",
|
|
"baseName": "giroPay",
|
|
"type": "GiroPayInfo"
|
|
},
|
|
{
|
|
"name": "klarna",
|
|
"baseName": "klarna",
|
|
"type": "KlarnaInfo"
|
|
},
|
|
{
|
|
"name": "paypal",
|
|
"baseName": "paypal",
|
|
"type": "PayPalInfo"
|
|
},
|
|
{
|
|
"name": "sofort",
|
|
"baseName": "sofort",
|
|
"type": "SofortInfo"
|
|
},
|
|
{
|
|
"name": "storeId",
|
|
"baseName": "storeId",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "swish",
|
|
"baseName": "swish",
|
|
"type": "SwishInfo"
|
|
},
|
|
{
|
|
"name": "type",
|
|
"baseName": "type",
|
|
"type": "PaymentMethodSetupInfo.TypeEnum"
|
|
} ];
|
|
|
|
static getAttributeTypeMap() {
|
|
return PaymentMethodSetupInfo.attributeTypeMap;
|
|
}
|
|
}
|
|
|
|
export namespace PaymentMethodSetupInfo {
|
|
export enum TypeEnum {
|
|
Alipay = <any> 'alipay',
|
|
Amex = <any> 'amex',
|
|
Applepay = <any> 'applepay',
|
|
Bcmc = <any> 'bcmc',
|
|
Blik = <any> 'blik',
|
|
Cartebancaire = <any> 'cartebancaire',
|
|
Cup = <any> 'cup',
|
|
Diners = <any> 'diners',
|
|
DirectEbanking = <any> 'directEbanking',
|
|
Discover = <any> 'discover',
|
|
EftposAustralia = <any> 'eftpos_australia',
|
|
Girocard = <any> 'girocard',
|
|
Giropay = <any> 'giropay',
|
|
Ideal = <any> 'ideal',
|
|
InteracCard = <any> 'interac_card',
|
|
Jcb = <any> 'jcb',
|
|
Klarna = <any> 'klarna',
|
|
KlarnaAccount = <any> 'klarna_account',
|
|
KlarnaPaynow = <any> 'klarna_paynow',
|
|
Maestro = <any> 'maestro',
|
|
Mc = <any> 'mc',
|
|
Mobilepay = <any> 'mobilepay',
|
|
Paypal = <any> 'paypal',
|
|
Swish = <any> 'swish',
|
|
Visa = <any> 'visa',
|
|
WechatpayPos = <any> 'wechatpay_pos'
|
|
}
|
|
}
|