Pw 5326/update notification models (#751)

* updated notification types & fixed eslint updates

* updated lockfile
This commit is contained in:
Wouter Boereboom
2021-09-27 14:36:28 +02:00
committed by GitHub
parent 9d464a83d6
commit e4de89f4bc
15 changed files with 732 additions and 957 deletions

View File

@@ -37,7 +37,6 @@ module.exports = {
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
rules: {

View File

@@ -17,6 +17,7 @@
* See the LICENSE file for more info.
*/
/* eslint-disable @typescript-eslint/naming-convention */
import checkServerIdentity from "../helpers/checkServerIdentity";
import { PeerCertificate } from "tls";

View File

@@ -32,7 +32,7 @@ const notificationRequestItem: { NotificationRequestItem: NotificationRequestIte
merchantAccountCode: "merchantAccount",
merchantReference: "reference",
amount: {currency: "EUR", value: 1000},
eventCode: NotificationRequestItem.EventCodeEnum.REPORTAVAILABLE,
eventCode: NotificationRequestItem.EventCodeEnum.ReportAvailable,
eventDate: "2019-09-21T11:45:24.637Z",
paymentMethod: "VISA",
reason: "reason",
@@ -92,7 +92,7 @@ describe("HMAC Validator", function (): void {
merchantAccountCode: "merchantAccount",
merchantReference: "reference",
amount: {currency: "EUR", value: 1000},
eventCode: NotificationRequestItem.EventCodeEnum.REPORTAVAILABLE,
eventCode: NotificationRequestItem.EventCodeEnum.ReportAvailable,
eventDate: "2019-09-21T11:45:24.637Z",
paymentMethod: "VISA",
reason: "reason",

View File

@@ -34,7 +34,7 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem: NotificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.AUTHORISATION).toEqual(notificationRequestItem.eventCode);
expect(NotificationEnum.Authorisation).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("123456789");
} else {
@@ -48,7 +48,7 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.CAPTURE).toEqual(notificationRequestItem.eventCode);
expect(NotificationEnum.Capture).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
@@ -63,7 +63,7 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.CAPTURE).toEqual(notificationRequestItem.eventCode);
expect(NotificationEnum.Capture).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeFalsy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
@@ -78,7 +78,7 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.REFUND).toEqual(notificationRequestItem.eventCode);
expect(NotificationEnum.Refund).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
@@ -94,7 +94,7 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.REFUND).toEqual(notificationRequestItem.eventCode);
expect(NotificationEnum.Refund).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeFalsy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");

View File

@@ -86,6 +86,5 @@ describe("Terminal Cloud API", (): void => {
} else {
fail();
}
});
});

View File

@@ -35,7 +35,7 @@ class NotificationRequest {
return undefined;
}
return this.notificationItemContainers.map((container): NotificationRequestItem => container.notificationRequestItem);
return this.notificationItemContainers.map((container): NotificationRequestItem => container.NotificationRequestItem);
}
public live: string;

View File

@@ -108,7 +108,7 @@ class Checkout extends ApiKeyAuthenticatedService {
public getPaymentLinks(linkId: string): Promise<PaymentLinkResource> {
this._paymentLinksId.id = linkId;
return getJsonResponse<{}, PaymentLinkResource>(
return getJsonResponse<Record<string, never>, PaymentLinkResource>(
this._paymentLinksId,
{},
{ method: "GET" }
@@ -117,7 +117,7 @@ class Checkout extends ApiKeyAuthenticatedService {
public updatePaymentLinks(linkId: string, status: "expired"): Promise<PaymentLinkResource> {
this._paymentLinksId.id = linkId;
return getJsonResponse<{}, PaymentLinkResource>(
return getJsonResponse<Record<string, unknown>, PaymentLinkResource>(
this._paymentLinksId,
{ status },
{ method: "PATCH" }

View File

@@ -229,12 +229,12 @@ class Platforms extends Service {
updateNotificationConfiguration: (request: IPlatformsNotificationConfiguration.UpdateNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
getNotificationConfiguration: (request: IPlatformsNotificationConfiguration.GetNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
testNotificationConfiguration: (request: IPlatformsNotificationConfiguration.TestNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.TestNotificationConfigurationResponse>;
getNotificationConfigurationList: (request: {}) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationListResponse>;
getNotificationConfigurationList: (request: Record<string, unknown>) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationListResponse>;
deleteNotificationConfigurations: (request: IPlatformsNotificationConfiguration.DeleteNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GenericResponse>;
} {
const createNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.CreateNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>(this._createNotificationConfiguration);
const getNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.GetNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>(this._getNotificationConfiguration);
const getNotificationConfigurationList = this.createRequest<PlatformsHostedOnboardingPage, {}, IPlatformsNotificationConfiguration.GetNotificationConfigurationListResponse>(this._getNotificationConfigurationList);
const getNotificationConfigurationList = this.createRequest<PlatformsHostedOnboardingPage, Record<string, unknown>, IPlatformsNotificationConfiguration.GetNotificationConfigurationListResponse>(this._getNotificationConfigurationList);
const testNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.TestNotificationConfigurationRequest, IPlatformsNotificationConfiguration.TestNotificationConfigurationResponse>(this._testNotificationConfiguration);
const updateNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.UpdateNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>(this._updateNotificationConfiguration);
const deleteNotificationConfigurations = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.DeleteNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GenericResponse>(this._deleteNotificationConfiguration);

View File

@@ -12,17 +12,17 @@
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* Copyright (c) 2021 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/**
* Notification API
* Definition of Notification API Schema
*
* The version of the OpenAPI document: 1.0.0
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -36,39 +36,39 @@ export class AdditionalData {
/**
* The ID that uniquely identifies the shopper. This shopperReference is the same as the shopperReference used in the initial payment.
*/
"shopperReference"?: string;
'shopperReference'?: string;
/**
* The shopper\'s email address.
*/
"shopperEmail"?: string;
'shopperEmail'?: string;
/**
* Authorisation code: When the payment is authorised successfully, this field holds the authorisation code for the payment. When the payment is not authorised, this field is empty.
*/
"authCode"?: string;
'authCode'?: string;
/**
* Returns the last 4 digits of the credit card.
*/
"cardSummary"?: string;
'cardSummary'?: string;
/**
* Returns the card expiry date.
*/
"expiryDate"?: string;
'expiryDate'?: string;
/**
* Value of the amount authorised.
*/
"authorisedAmountValue"?: string;
'authorisedAmountValue'?: string;
/**
* Currency of the authorised amount.
*/
"authorisedAmountCurrency"?: string;
'authorisedAmountCurrency'?: string;
/**
* HMAC Key from customer area
*/
"hmacSignature"?: string;
'hmacSignature'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "shopperReference",
"baseName": "shopperReference",

View File

@@ -12,17 +12,17 @@
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* Copyright (c) 2021 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/**
* Notification API
* Definition of Notification API Schema
*
* The version of the OpenAPI document: 1.0.0
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -36,15 +36,15 @@ export class Amount {
/**
* The three-character ISO currency code. https://docs.adyen.com/development-resources/currency-codes
*/
"currency"?: string;
'currency'?: string;
/**
* The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the following table: https://docs.adyen.com/development-resources/currency-codes
*/
"value"?: number;
'value'?: number;
static discriminator: string | undefined = undefined;
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "currency",
"baseName": "currency",

View File

@@ -12,25 +12,38 @@
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* Copyright (c) 2021 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export * from './additionalData';
export * from './amount';
export * from './notification';
export * from './notificationItem';
export * from './notificationRequestItem';
export * from "./additionalData";
export * from "./amount";
export * from "./notification";
export * from "./notificationItem";
export * from "./notificationRequestItem";
import * as fs from 'fs';
import { AdditionalData } from "./additionalData";
import { Amount } from "./amount";
import { Notification } from "./notification";
import { NotificationItem } from "./notificationItem";
import { NotificationRequestItem } from "./notificationRequestItem";
export interface RequestDetailedFile {
value: Buffer;
options?: {
filename?: string;
contentType?: string;
}
}
export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
import { AdditionalData } from './additionalData';
import { Amount } from './amount';
import { Notification } from './notification';
import { NotificationItem } from './notificationItem';
import { NotificationRequestItem } from './notificationRequestItem';
/* tslint:disable:no-unused-variable */
const primitives = [
let primitives = [
"string",
"boolean",
"double",
@@ -41,19 +54,19 @@ const primitives = [
"any"
];
const enumsMap: {[index: string]: any} = {
let enumsMap: {[index: string]: any} = {
"NotificationRequestItem.EventCodeEnum": NotificationRequestItem.EventCodeEnum,
"NotificationRequestItem.OperationsEnum": NotificationRequestItem.OperationsEnum,
"NotificationRequestItem.SuccessEnum": NotificationRequestItem.SuccessEnum,
};
}
const typeMap: {[index: string]: any} = {
let typeMap: {[index: string]: any} = {
"AdditionalData": AdditionalData,
"Amount": Amount,
"Notification": Notification,
"NotificationItem": NotificationItem,
"NotificationRequestItem": NotificationRequestItem,
};
}
export class ObjectSerializer {
public static findCorrectType(data: any, expectedType: string) {
@@ -73,13 +86,13 @@ export class ObjectSerializer {
}
// Check the discriminator
const discriminatorProperty = typeMap[expectedType].discriminator;
if (discriminatorProperty == undefined) {
let discriminatorProperty = typeMap[expectedType].discriminator;
if (discriminatorProperty == null) {
return expectedType; // the type does not have a discriminator. use it.
} else {
if (data[discriminatorProperty]) {
const discriminatorType = data[discriminatorProperty];
if (typeMap[discriminatorType]) {
var discriminatorType = data[discriminatorProperty];
if(typeMap[discriminatorType]){
return discriminatorType; // use the type given in the discriminator
} else {
return expectedType; // discriminator did not map to a type
@@ -99,10 +112,10 @@ export class ObjectSerializer {
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
subType = subType.substring(0, subType.length - 1); // Type> => Type
const transformedData: any[] = [];
for (const index in data) {
const date = data[index];
transformedData.push(ObjectSerializer.serialize(date, subType));
let transformedData: any[] = [];
for (let index = 0; index < data.length; index++) {
let datum = data[index];
transformedData.push(ObjectSerializer.serialize(datum, subType));
}
return transformedData;
} else if (type === "Date") {
@@ -119,10 +132,10 @@ export class ObjectSerializer {
type = this.findCorrectType(data, type);
// get the map for the correct type.
const attributeTypes = typeMap[type].getAttributeTypeMap();
const instance: {[index: string]: any} = {};
for (const index in attributeTypes) {
const attributeType = attributeTypes[index];
let attributeTypes = typeMap[type].getAttributeTypeMap();
let instance: {[index: string]: any} = {};
for (let index = 0; index < attributeTypes.length; index++) {
let attributeType = attributeTypes[index];
instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
}
return instance;
@@ -139,10 +152,10 @@ export class ObjectSerializer {
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
subType = subType.substring(0, subType.length - 1); // Type> => Type
const transformedData: any[] = [];
for (const index in data) {
const date = data[index];
transformedData.push(ObjectSerializer.deserialize(date, subType));
let transformedData: any[] = [];
for (let index = 0; index < data.length; index++) {
let datum = data[index];
transformedData.push(ObjectSerializer.deserialize(datum, subType));
}
return transformedData;
} else if (type === "Date") {
@@ -155,14 +168,13 @@ export class ObjectSerializer {
if (!typeMap[type]) { // dont know the type
return data;
}
const instance = new typeMap[type]();
const attributeTypes = typeMap[type].getAttributeTypeMap();
for (const index in attributeTypes) {
const attributeType = attributeTypes[index];
let instance = new typeMap[type]();
let attributeTypes = typeMap[type].getAttributeTypeMap();
for (let index = 0; index < attributeTypes.length; index++) {
let attributeType = attributeTypes[index];
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
}
return instance;
}
}
}

View File

@@ -12,38 +12,38 @@
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* Copyright (c) 2021 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/**
* Notification API
* Definition of Notification API Schema
*
* The version of the OpenAPI document: 1.0.0
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { NotificationItem } from "./notificationItem";
import { NotificationItem } from './notificationItem';
export class Notification {
/**
* Informs about the origin of the notification: - true: the notification originated from the live environment. - false: the notification originated from the test environment.
*/
"live": string;
'live': string;
/**
* A container object for the details included in the notification.
*/
"notificationItems": NotificationItem[];
'notificationItems': Array<NotificationItem>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "live",
"baseName": "live",

View File

@@ -12,33 +12,33 @@
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* Copyright (c) 2021 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/**
* Notification API
* Definition of Notification API Schema
*
* The version of the OpenAPI document: 1.0.0
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { NotificationRequestItem } from "./notificationRequestItem";
import { NotificationRequestItem } from './notificationRequestItem';
export class NotificationItem {
"notificationRequestItem": NotificationRequestItem;
'NotificationRequestItem': NotificationRequestItem;
static discriminator: string | undefined = undefined;
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "notificationRequestItem",
"name": "NotificationRequestItem",
"baseName": "NotificationRequestItem",
"type": "NotificationRequestItem"
} ];

View File

@@ -12,73 +12,73 @@
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* Copyright (c) 2021 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/**
* Notification API
* Definition of Notification API Schema
*
* The version of the OpenAPI document: 1.0.0
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AdditionalData } from "./additionalData";
import { Amount } from "./amount";
import { AdditionalData } from './additionalData';
import { Amount } from './amount';
export class NotificationRequestItem {
"additionalData"?: AdditionalData;
"amount": Amount;
'additionalData'?: AdditionalData;
'amount': Amount;
/**
* Adyen\'s 16-character unique reference associated with the transaction/the request. This value is globally unique; quote it when communicating with us about this request.
*/
"pspReference": string;
'pspReference': string;
/**
* The type of event the notification item refers to. When eventCode returns AUTHORISATION, it does not necessarily mean that the payment authorisation request has been successfully processed. The authorisation is successful if success = true. If success = false, check the the reason value for further information on the authorisation failure cause. This can occur, for example, if an error occurs or if the transaction is refused.
*/
"eventCode": NotificationRequestItem.EventCodeEnum;
'eventCode': NotificationRequestItem.EventCodeEnum;
/**
* The time when the event was generated.
*/
"eventDate": string;
'eventDate': string;
/**
* The merchant account identifier used in the transaction the notification item refers to.
*/
"merchantAccountCode": string;
'merchantAccountCode': string;
/**
* This field holds a list of the modification operations supported by the transaction the notification item refers to. The available operations in the list give information on the follow-up actions concerning the payment. You may be requested to: Capture the payment (for example, if auto-capture is not set up), Cancel the payment (if the payment has not been captured yet), or Refund the payment (if the payment has already been captured).
*/
"operations"?: NotificationRequestItem.OperationsEnum[];
'operations'?: Array<NotificationRequestItem.OperationsEnum>;
/**
* A reference to uniquely identify the payment.This reference is used in all communication with you about the payment status.We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, you can enter them in this field. Separate each reference value with a hyphen character (\'-\'). This field has a length restriction: you can enter max. 80 characters.
*/
"merchantReference": string;
'merchantReference': string;
/**
* If the notification item is about a payment authorisation, this field is not populated and is blank. If the notification item is about a modification, the originalReference value corresponds to the payment request assigned to the original payment.
*/
"originalReference"?: string;
'originalReference'?: string;
/**
* The payment method used in the transaction the notification item refers to.
*/
"paymentMethod"?: string;
'paymentMethod'?: string;
/**
* This field holds plain text. For more information, refer to the reason field values below.
*/
"reason"?: string;
'reason'?: string;
/**
* Informs about the outcome of the event ( eventCode ) the notification refers to. true: the event ( eventCode ) the notification refers to was executed successfully. false: the event was not executed successfully.
*/
"success": NotificationRequestItem.SuccessEnum;
'success': NotificationRequestItem.SuccessEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "additionalData",
"baseName": "additionalData",
@@ -147,50 +147,50 @@ export class NotificationRequestItem {
export namespace NotificationRequestItem {
export enum EventCodeEnum {
AUTHORISATION = "AUTHORISATION" as any,
AUTHORISATIONADJUSTMENT = "AUTHORISATION_ADJUSTMENT" as any,
CANCELLATION = "CANCELLATION" as any,
CANCELORREFUND = "CANCEL_OR_REFUND" as any,
CAPTURE = "CAPTURE" as any,
CAPTUREFAILED = "CAPTURE_FAILED" as any,
HANDLEDEXTERNALLY = "HANDLED_EXTERNALLY" as any,
ORDEROPENED = "ORDER_OPENED" as any,
ORDERCLOSED = "ORDER_CLOSED" as any,
PENDING = "PENDING" as any,
PROCESSRETRY = "PROCESS_RETRY" as any,
REFUND = "REFUND" as any,
REFUNDFAILED = "REFUND_FAILED" as any,
REFUNDEDREVERSED = "REFUNDED_REVERSED" as any,
REFUNDWITHDATA = "REFUND_WITH_DATA" as any,
REPORTAVAILABLE = "REPORT_AVAILABLE" as any,
VOIDPENDINGREFUND = "VOID_PENDING_REFUND" as any,
CHARGEBACK = "CHARGEBACK" as any,
CHARGEBACKREVERSED = "CHARGEBACK_REVERSED" as any,
NOTIFICATIONOFCHARGEBACK = "NOTIFICATION_OF_CHARGEBACK" as any,
NOTIFICATIONOFFRAUD = "NOTIFICATION_OF_FRAUD" as any,
PREARBITRATIONLOST = "PREARBITRATION_LOST" as any,
PREARBITRATIONWON = "PREARBITRATION_WON" as any,
REQUESTFORINFORMATION = "REQUEST_FOR_INFORMATION" as any,
SECONDCHARGEBACK = "SECOND_CHARGEBACK" as any,
PAYOUTEXPIRE = "PAYOUT_EXPIRE" as any,
PAYOUTDECLINE = "PAYOUT_DECLINE" as any,
PAYOUTTHIRDPARTY = "PAYOUT_THIRDPARTY" as any,
PAIDOUTREVERSED = "PAIDOUT_REVERSED" as any,
AUTORESCUE = "AUTORESCUE" as any,
CANCELAUTORESCUE = "CANCEL_AUTORESCUE" as any,
RECURRINGCONTRACT = "RECURRING_CONTRACT" as any,
POSTPONEDREFUND = "POSTPONED_REFUND" as any,
OFFERCLOSED = "OFFER_CLOSED" as any,
MANUALREVIEWACCEPT = "MANUAL_REVIEW_ACCEPT" as any,
MANUALREVIEWREJECT = "MANUAL_REVIEW_REJECT" as any
Authorisation = <any> 'AUTHORISATION',
AuthorisationAdjustment = <any> 'AUTHORISATION_ADJUSTMENT',
Cancellation = <any> 'CANCELLATION',
CancelOrRefund = <any> 'CANCEL_OR_REFUND',
Capture = <any> 'CAPTURE',
CaptureFailed = <any> 'CAPTURE_FAILED',
HandledExternally = <any> 'HANDLED_EXTERNALLY',
OrderOpened = <any> 'ORDER_OPENED',
OrderClosed = <any> 'ORDER_CLOSED',
Pending = <any> 'PENDING',
ProcessRetry = <any> 'PROCESS_RETRY',
Refund = <any> 'REFUND',
RefundFailed = <any> 'REFUND_FAILED',
RefundedReversed = <any> 'REFUNDED_REVERSED',
RefundWithData = <any> 'REFUND_WITH_DATA',
ReportAvailable = <any> 'REPORT_AVAILABLE',
VoidPendingRefund = <any> 'VOID_PENDING_REFUND',
Chargeback = <any> 'CHARGEBACK',
ChargebackReversed = <any> 'CHARGEBACK_REVERSED',
NotificationOfChargeback = <any> 'NOTIFICATION_OF_CHARGEBACK',
NotificationOfFraud = <any> 'NOTIFICATION_OF_FRAUD',
PrearbitrationLost = <any> 'PREARBITRATION_LOST',
PrearbitrationWon = <any> 'PREARBITRATION_WON',
RequestForInformation = <any> 'REQUEST_FOR_INFORMATION',
SecondChargeback = <any> 'SECOND_CHARGEBACK',
PayoutExpire = <any> 'PAYOUT_EXPIRE',
PayoutDecline = <any> 'PAYOUT_DECLINE',
PayoutThirdparty = <any> 'PAYOUT_THIRDPARTY',
PaidoutReversed = <any> 'PAIDOUT_REVERSED',
Autorescue = <any> 'AUTORESCUE',
CancelAutorescue = <any> 'CANCEL_AUTORESCUE',
RecurringContract = <any> 'RECURRING_CONTRACT',
PostponedRefund = <any> 'POSTPONED_REFUND',
OfferClosed = <any> 'OFFER_CLOSED',
ManualReviewAccept = <any> 'MANUAL_REVIEW_ACCEPT',
ManualReviewReject = <any> 'MANUAL_REVIEW_REJECT'
}
export enum OperationsEnum {
CANCEL = "CANCEL" as any,
CAPTURE = "CAPTURE" as any,
REFUND = "REFUND" as any
Cancel = <any> 'CANCEL',
Capture = <any> 'CAPTURE',
Refund = <any> 'REFUND'
}
export enum SuccessEnum {
True = "true" as any,
False = "false" as any
True = <any> 'true',
False = <any> 'false'
}
}

1394
yarn.lock

File diff suppressed because it is too large Load Diff