Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/typings/payment/modificationResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export namespace ModificationResult {
DonationReceived = '[donation-received]',
TechnicalCancelReceived = '[technical-cancel-received]',
VoidPendingRefundReceived = '[voidPendingRefund-received]',
Authorised = 'Authorised'
Authorised = 'Authorised',
Refused = 'Refused',
Error = 'Error'
}
}
10 changes: 10 additions & 0 deletions src/typings/payment/responseAdditionalDataCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@


export class ResponseAdditionalDataCard {
/**
* This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of Ecommerce Card Payment in India
*/
"cardAltID"?: string;
/**
* The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234
*/
Expand Down Expand Up @@ -51,6 +55,12 @@ export class ResponseAdditionalDataCard {
static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "cardAltID",
"baseName": "cardAltID",
"type": "string",
"format": ""
},
{
"name": "cardBin",
"baseName": "cardBin",
Expand Down
17 changes: 14 additions & 3 deletions src/typings/payment/responseAdditionalDataCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ export class ResponseAdditionalDataCommon {
*/
"fraudManualReview"?: string;
/**
* The fraud result properties of the payment.
* The fraud result properties of the payment. Possible values: * AMBER * GREEN * RED
*/
"fraudResultType"?: ResponseAdditionalDataCommon.FraudResultTypeEnum;
/**
* The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh
* The risk level of the transaction as classified by the [machine learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/) fraud risk rule. The risk level indicates the likelihood that a transaction will result in a fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh
*/
"fraudRiskLevel"?: ResponseAdditionalDataCommon.FraudRiskLevelEnum;
/**
Expand Down Expand Up @@ -142,6 +142,10 @@ export class ResponseAdditionalDataCommon {
*/
"merchantReference"?: string;
/**
* Indicates the processing flow. Possible values: * **sale**: no separate capture required, funds are captured as part of the transaction * **auth**: separate capture is required. This might be automatic, depending on your [capture settings](https://docs.adyen.com/online-payments/capture#types-of-capture).
*/
"networkProcessingMode"?: string;
/**
* Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID.
*/
"networkTxReference"?: string;
Expand Down Expand Up @@ -471,6 +475,12 @@ export class ResponseAdditionalDataCommon {
"type": "string",
"format": ""
},
{
"name": "networkProcessingMode",
"baseName": "networkProcessingMode",
"type": "string",
"format": ""
},
{
"name": "networkTxReference",
"baseName": "networkTxReference",
Expand Down Expand Up @@ -662,8 +672,9 @@ export class ResponseAdditionalDataCommon {

export namespace ResponseAdditionalDataCommon {
export enum FraudResultTypeEnum {
Amber = 'AMBER',
Green = 'GREEN',
Fraud = 'FRAUD'
Red = 'RED'
}
export enum FraudRiskLevelEnum {
VeryLow = 'veryLow',
Expand Down
Loading