@springtree/eva-core
Version:
The EVA core typings
51 lines (41 loc) • 1.49 kB
TypeScript
declare module EVA.Payment.Adyen {
export namespace Errors {
export namespace Adyen {
export const CreatePaymentFailed = 'Adyen:CreatePaymentFailed';
}
}
/**
* Retrieve all gateways supported by the current configuration of Adyen, matched with the existing payment types in EVA.
*
* `ID` is it's unique identifier, `Name` is something that you can show the customer.
*
* If present, the `Details` list will show a list of properties that this gateway supports. Every detail is identied with the `Key`, and to support
* typed inputs, the `Type` is also given. If the `Type` is `select`, one of the items inside the `Items` list needs to be chosen. Here, again, the
* `ID` is it's unique identifier, and the `Name` is something you can show the customer.
*
* When creating the payment, use the `ID` of the gateway as `GatewayID`. Fill the payment properties `Details` with the properties specific to the
* gateway, as indicated by this response's `Details` list.
*/
export interface ListAdyenCheckoutGateways {
CurrencyID?: string;
Amount?: number;
}
export interface ListAdyenCheckoutGatewaysResponse {
Gateways: Gateway[];
Error: EVA.Core.ServiceError;
}
export interface Gateway {
ID: string;
Name: string;
Details: Detail[];
}
export interface Detail {
ID: string;
Type: string;
Items: Item[];
}
export interface Item {
ID: string;
Name: string;
}
}