diff --git a/src/typings/payment/modificationResult.ts b/src/typings/payment/modificationResult.ts index 635d1c018..4bc31a928 100644 --- a/src/typings/payment/modificationResult.ts +++ b/src/typings/payment/modificationResult.ts @@ -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' } } diff --git a/src/typings/payment/responseAdditionalDataCard.ts b/src/typings/payment/responseAdditionalDataCard.ts index 9ad24e59f..ff86f3c8f 100644 --- a/src/typings/payment/responseAdditionalDataCard.ts +++ b/src/typings/payment/responseAdditionalDataCard.ts @@ -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 */ @@ -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", diff --git a/src/typings/payment/responseAdditionalDataCommon.ts b/src/typings/payment/responseAdditionalDataCommon.ts index b3c42bfa1..44628351a 100644 --- a/src/typings/payment/responseAdditionalDataCommon.ts +++ b/src/typings/payment/responseAdditionalDataCommon.ts @@ -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; /** @@ -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; @@ -471,6 +475,12 @@ export class ResponseAdditionalDataCommon { "type": "string", "format": "" }, + { + "name": "networkProcessingMode", + "baseName": "networkProcessingMode", + "type": "string", + "format": "" + }, { "name": "networkTxReference", "baseName": "networkTxReference", @@ -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',