@adyen/api-library
Version:
The Adyen API Library for NodeJS enables you to work with Adyen APIs.
50 lines (49 loc) • 2.21 kB
TypeScript
import { Amount } from "./amount";
export declare class StoredValueBalanceMergeResponse {
/**
* Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.
*/
"authCode"?: string;
"currentBalance"?: Amount | null;
/**
* Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.
*/
"pspReference"?: string;
/**
* If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values.
*/
"refusalReason"?: string;
/**
* The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks.
*/
"resultCode"?: StoredValueBalanceMergeResponse.ResultCodeEnum;
/**
* Raw refusal reason received from the third party, where available
*/
"thirdPartyRefusalReason"?: string;
static readonly discriminator: string | undefined;
static readonly mapping: {
[index: string]: string;
} | undefined;
static readonly attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
format: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
format: string;
}[];
constructor();
}
export declare namespace StoredValueBalanceMergeResponse {
enum ResultCodeEnum {
Success = "Success",
Refused = "Refused",
Error = "Error",
NotEnoughBalance = "NotEnoughBalance"
}
}