mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
Pw 5326/update notification models (#751)
* updated notification types & fixed eslint updates * updated lockfile
This commit is contained in:
@@ -37,7 +37,6 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
extends: [
|
extends: [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended"
|
"plugin:@typescript-eslint/recommended"
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
* See the LICENSE file for more info.
|
* See the LICENSE file for more info.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/naming-convention */
|
||||||
import checkServerIdentity from "../helpers/checkServerIdentity";
|
import checkServerIdentity from "../helpers/checkServerIdentity";
|
||||||
import { PeerCertificate } from "tls";
|
import { PeerCertificate } from "tls";
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const notificationRequestItem: { NotificationRequestItem: NotificationRequestIte
|
|||||||
merchantAccountCode: "merchantAccount",
|
merchantAccountCode: "merchantAccount",
|
||||||
merchantReference: "reference",
|
merchantReference: "reference",
|
||||||
amount: {currency: "EUR", value: 1000},
|
amount: {currency: "EUR", value: 1000},
|
||||||
eventCode: NotificationRequestItem.EventCodeEnum.REPORTAVAILABLE,
|
eventCode: NotificationRequestItem.EventCodeEnum.ReportAvailable,
|
||||||
eventDate: "2019-09-21T11:45:24.637Z",
|
eventDate: "2019-09-21T11:45:24.637Z",
|
||||||
paymentMethod: "VISA",
|
paymentMethod: "VISA",
|
||||||
reason: "reason",
|
reason: "reason",
|
||||||
@@ -92,7 +92,7 @@ describe("HMAC Validator", function (): void {
|
|||||||
merchantAccountCode: "merchantAccount",
|
merchantAccountCode: "merchantAccount",
|
||||||
merchantReference: "reference",
|
merchantReference: "reference",
|
||||||
amount: {currency: "EUR", value: 1000},
|
amount: {currency: "EUR", value: 1000},
|
||||||
eventCode: NotificationRequestItem.EventCodeEnum.REPORTAVAILABLE,
|
eventCode: NotificationRequestItem.EventCodeEnum.ReportAvailable,
|
||||||
eventDate: "2019-09-21T11:45:24.637Z",
|
eventDate: "2019-09-21T11:45:24.637Z",
|
||||||
paymentMethod: "VISA",
|
paymentMethod: "VISA",
|
||||||
reason: "reason",
|
reason: "reason",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ describe("Notification Test", function (): void {
|
|||||||
|
|
||||||
if (notificationRequest.notificationItems) {
|
if (notificationRequest.notificationItems) {
|
||||||
const notificationRequestItem: NotificationRequestItem = notificationRequest.notificationItems[0];
|
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.success === SuccessEnum.True).toBeTruthy();
|
||||||
expect(notificationRequestItem.pspReference).toEqual("123456789");
|
expect(notificationRequestItem.pspReference).toEqual("123456789");
|
||||||
} else {
|
} else {
|
||||||
@@ -48,7 +48,7 @@ describe("Notification Test", function (): void {
|
|||||||
|
|
||||||
if (notificationRequest.notificationItems) {
|
if (notificationRequest.notificationItems) {
|
||||||
const notificationRequestItem = notificationRequest.notificationItems[0];
|
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.success === SuccessEnum.True).toBeTruthy();
|
||||||
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
|
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
|
||||||
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
|
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
|
||||||
@@ -63,7 +63,7 @@ describe("Notification Test", function (): void {
|
|||||||
|
|
||||||
if (notificationRequest.notificationItems) {
|
if (notificationRequest.notificationItems) {
|
||||||
const notificationRequestItem = notificationRequest.notificationItems[0];
|
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.success === SuccessEnum.True).toBeFalsy();
|
||||||
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
|
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
|
||||||
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
|
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
|
||||||
@@ -78,7 +78,7 @@ describe("Notification Test", function (): void {
|
|||||||
|
|
||||||
if (notificationRequest.notificationItems) {
|
if (notificationRequest.notificationItems) {
|
||||||
const notificationRequestItem = notificationRequest.notificationItems[0];
|
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.success === SuccessEnum.True).toBeTruthy();
|
||||||
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
|
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
|
||||||
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
|
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
|
||||||
@@ -94,7 +94,7 @@ describe("Notification Test", function (): void {
|
|||||||
|
|
||||||
if (notificationRequest.notificationItems) {
|
if (notificationRequest.notificationItems) {
|
||||||
const notificationRequestItem = notificationRequest.notificationItems[0];
|
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.success === SuccessEnum.True).toBeFalsy();
|
||||||
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
|
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
|
||||||
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
|
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
|
||||||
|
|||||||
@@ -86,6 +86,5 @@ describe("Terminal Cloud API", (): void => {
|
|||||||
} else {
|
} else {
|
||||||
fail();
|
fail();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class NotificationRequest {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.notificationItemContainers.map((container): NotificationRequestItem => container.notificationRequestItem);
|
return this.notificationItemContainers.map((container): NotificationRequestItem => container.NotificationRequestItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
public live: string;
|
public live: string;
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class Checkout extends ApiKeyAuthenticatedService {
|
|||||||
|
|
||||||
public getPaymentLinks(linkId: string): Promise<PaymentLinkResource> {
|
public getPaymentLinks(linkId: string): Promise<PaymentLinkResource> {
|
||||||
this._paymentLinksId.id = linkId;
|
this._paymentLinksId.id = linkId;
|
||||||
return getJsonResponse<{}, PaymentLinkResource>(
|
return getJsonResponse<Record<string, never>, PaymentLinkResource>(
|
||||||
this._paymentLinksId,
|
this._paymentLinksId,
|
||||||
{},
|
{},
|
||||||
{ method: "GET" }
|
{ method: "GET" }
|
||||||
@@ -117,7 +117,7 @@ class Checkout extends ApiKeyAuthenticatedService {
|
|||||||
|
|
||||||
public updatePaymentLinks(linkId: string, status: "expired"): Promise<PaymentLinkResource> {
|
public updatePaymentLinks(linkId: string, status: "expired"): Promise<PaymentLinkResource> {
|
||||||
this._paymentLinksId.id = linkId;
|
this._paymentLinksId.id = linkId;
|
||||||
return getJsonResponse<{}, PaymentLinkResource>(
|
return getJsonResponse<Record<string, unknown>, PaymentLinkResource>(
|
||||||
this._paymentLinksId,
|
this._paymentLinksId,
|
||||||
{ status },
|
{ status },
|
||||||
{ method: "PATCH" }
|
{ method: "PATCH" }
|
||||||
|
|||||||
@@ -229,12 +229,12 @@ class Platforms extends Service {
|
|||||||
updateNotificationConfiguration: (request: IPlatformsNotificationConfiguration.UpdateNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
|
updateNotificationConfiguration: (request: IPlatformsNotificationConfiguration.UpdateNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
|
||||||
getNotificationConfiguration: (request: IPlatformsNotificationConfiguration.GetNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
|
getNotificationConfiguration: (request: IPlatformsNotificationConfiguration.GetNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
|
||||||
testNotificationConfiguration: (request: IPlatformsNotificationConfiguration.TestNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.TestNotificationConfigurationResponse>;
|
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>;
|
deleteNotificationConfigurations: (request: IPlatformsNotificationConfiguration.DeleteNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GenericResponse>;
|
||||||
} {
|
} {
|
||||||
const createNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.CreateNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>(this._createNotificationConfiguration);
|
const createNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.CreateNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>(this._createNotificationConfiguration);
|
||||||
const getNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.GetNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>(this._getNotificationConfiguration);
|
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 testNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.TestNotificationConfigurationRequest, IPlatformsNotificationConfiguration.TestNotificationConfigurationResponse>(this._testNotificationConfiguration);
|
||||||
const updateNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.UpdateNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>(this._updateNotificationConfiguration);
|
const updateNotificationConfiguration = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.UpdateNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>(this._updateNotificationConfiguration);
|
||||||
const deleteNotificationConfigurations = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.DeleteNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GenericResponse>(this._deleteNotificationConfiguration);
|
const deleteNotificationConfigurations = this.createRequest<PlatformsHostedOnboardingPage, IPlatformsNotificationConfiguration.DeleteNotificationConfigurationRequest, IPlatformsNotificationConfiguration.GenericResponse>(this._deleteNotificationConfiguration);
|
||||||
|
|||||||
@@ -12,17 +12,17 @@
|
|||||||
* #############
|
* #############
|
||||||
* ############
|
* ############
|
||||||
* Adyen NodeJS API Library
|
* 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.
|
* This file is open source and available under the MIT license.
|
||||||
* See the LICENSE file for more info.
|
* See the LICENSE file for more info.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notification API
|
* Notification API
|
||||||
* Definition of Notification API Schema
|
* Definition of Notification API Schema
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* 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.
|
* 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.
|
* 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.
|
* 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.
|
* Returns the last 4 digits of the credit card.
|
||||||
*/
|
*/
|
||||||
"cardSummary"?: string;
|
'cardSummary'?: string;
|
||||||
/**
|
/**
|
||||||
* Returns the card expiry date.
|
* Returns the card expiry date.
|
||||||
*/
|
*/
|
||||||
"expiryDate"?: string;
|
'expiryDate'?: string;
|
||||||
/**
|
/**
|
||||||
* Value of the amount authorised.
|
* Value of the amount authorised.
|
||||||
*/
|
*/
|
||||||
"authorisedAmountValue"?: string;
|
'authorisedAmountValue'?: string;
|
||||||
/**
|
/**
|
||||||
* Currency of the authorised amount.
|
* Currency of the authorised amount.
|
||||||
*/
|
*/
|
||||||
"authorisedAmountCurrency"?: string;
|
'authorisedAmountCurrency'?: string;
|
||||||
/**
|
/**
|
||||||
* HMAC Key from customer area
|
* HMAC Key from customer area
|
||||||
*/
|
*/
|
||||||
"hmacSignature"?: string;
|
'hmacSignature'?: string;
|
||||||
|
|
||||||
static discriminator: string | undefined = undefined;
|
static discriminator: string | undefined = undefined;
|
||||||
|
|
||||||
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||||
{
|
{
|
||||||
"name": "shopperReference",
|
"name": "shopperReference",
|
||||||
"baseName": "shopperReference",
|
"baseName": "shopperReference",
|
||||||
|
|||||||
@@ -12,17 +12,17 @@
|
|||||||
* #############
|
* #############
|
||||||
* ############
|
* ############
|
||||||
* Adyen NodeJS API Library
|
* 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.
|
* This file is open source and available under the MIT license.
|
||||||
* See the LICENSE file for more info.
|
* See the LICENSE file for more info.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notification API
|
* Notification API
|
||||||
* Definition of Notification API Schema
|
* Definition of Notification API Schema
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* 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
|
* 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
|
* 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 discriminator: string | undefined = undefined;
|
||||||
|
|
||||||
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||||
{
|
{
|
||||||
"name": "currency",
|
"name": "currency",
|
||||||
"baseName": "currency",
|
"baseName": "currency",
|
||||||
|
|||||||
@@ -12,25 +12,38 @@
|
|||||||
* #############
|
* #############
|
||||||
* ############
|
* ############
|
||||||
* Adyen NodeJS API Library
|
* 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.
|
* This file is open source and available under the MIT license.
|
||||||
* See the LICENSE file for more info.
|
* 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";
|
import * as fs from 'fs';
|
||||||
export * from "./amount";
|
|
||||||
export * from "./notification";
|
|
||||||
export * from "./notificationItem";
|
|
||||||
export * from "./notificationRequestItem";
|
|
||||||
|
|
||||||
import { AdditionalData } from "./additionalData";
|
export interface RequestDetailedFile {
|
||||||
import { Amount } from "./amount";
|
value: Buffer;
|
||||||
import { Notification } from "./notification";
|
options?: {
|
||||||
import { NotificationItem } from "./notificationItem";
|
filename?: string;
|
||||||
import { NotificationRequestItem } from "./notificationRequestItem";
|
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 */
|
/* tslint:disable:no-unused-variable */
|
||||||
const primitives = [
|
let primitives = [
|
||||||
"string",
|
"string",
|
||||||
"boolean",
|
"boolean",
|
||||||
"double",
|
"double",
|
||||||
@@ -41,19 +54,19 @@ const primitives = [
|
|||||||
"any"
|
"any"
|
||||||
];
|
];
|
||||||
|
|
||||||
const enumsMap: {[index: string]: any} = {
|
let enumsMap: {[index: string]: any} = {
|
||||||
"NotificationRequestItem.EventCodeEnum": NotificationRequestItem.EventCodeEnum,
|
"NotificationRequestItem.EventCodeEnum": NotificationRequestItem.EventCodeEnum,
|
||||||
"NotificationRequestItem.OperationsEnum": NotificationRequestItem.OperationsEnum,
|
"NotificationRequestItem.OperationsEnum": NotificationRequestItem.OperationsEnum,
|
||||||
"NotificationRequestItem.SuccessEnum": NotificationRequestItem.SuccessEnum,
|
"NotificationRequestItem.SuccessEnum": NotificationRequestItem.SuccessEnum,
|
||||||
};
|
}
|
||||||
|
|
||||||
const typeMap: {[index: string]: any} = {
|
let typeMap: {[index: string]: any} = {
|
||||||
"AdditionalData": AdditionalData,
|
"AdditionalData": AdditionalData,
|
||||||
"Amount": Amount,
|
"Amount": Amount,
|
||||||
"Notification": Notification,
|
"Notification": Notification,
|
||||||
"NotificationItem": NotificationItem,
|
"NotificationItem": NotificationItem,
|
||||||
"NotificationRequestItem": NotificationRequestItem,
|
"NotificationRequestItem": NotificationRequestItem,
|
||||||
};
|
}
|
||||||
|
|
||||||
export class ObjectSerializer {
|
export class ObjectSerializer {
|
||||||
public static findCorrectType(data: any, expectedType: string) {
|
public static findCorrectType(data: any, expectedType: string) {
|
||||||
@@ -73,13 +86,13 @@ export class ObjectSerializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check the discriminator
|
// Check the discriminator
|
||||||
const discriminatorProperty = typeMap[expectedType].discriminator;
|
let discriminatorProperty = typeMap[expectedType].discriminator;
|
||||||
if (discriminatorProperty == undefined) {
|
if (discriminatorProperty == null) {
|
||||||
return expectedType; // the type does not have a discriminator. use it.
|
return expectedType; // the type does not have a discriminator. use it.
|
||||||
} else {
|
} else {
|
||||||
if (data[discriminatorProperty]) {
|
if (data[discriminatorProperty]) {
|
||||||
const discriminatorType = data[discriminatorProperty];
|
var discriminatorType = data[discriminatorProperty];
|
||||||
if (typeMap[discriminatorType]) {
|
if(typeMap[discriminatorType]){
|
||||||
return discriminatorType; // use the type given in the discriminator
|
return discriminatorType; // use the type given in the discriminator
|
||||||
} else {
|
} else {
|
||||||
return expectedType; // discriminator did not map to a type
|
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
|
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
|
||||||
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
|
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
|
||||||
subType = subType.substring(0, subType.length - 1); // Type> => Type
|
subType = subType.substring(0, subType.length - 1); // Type> => Type
|
||||||
const transformedData: any[] = [];
|
let transformedData: any[] = [];
|
||||||
for (const index in data) {
|
for (let index = 0; index < data.length; index++) {
|
||||||
const date = data[index];
|
let datum = data[index];
|
||||||
transformedData.push(ObjectSerializer.serialize(date, subType));
|
transformedData.push(ObjectSerializer.serialize(datum, subType));
|
||||||
}
|
}
|
||||||
return transformedData;
|
return transformedData;
|
||||||
} else if (type === "Date") {
|
} else if (type === "Date") {
|
||||||
@@ -119,10 +132,10 @@ export class ObjectSerializer {
|
|||||||
type = this.findCorrectType(data, type);
|
type = this.findCorrectType(data, type);
|
||||||
|
|
||||||
// get the map for the correct type.
|
// get the map for the correct type.
|
||||||
const attributeTypes = typeMap[type].getAttributeTypeMap();
|
let attributeTypes = typeMap[type].getAttributeTypeMap();
|
||||||
const instance: {[index: string]: any} = {};
|
let instance: {[index: string]: any} = {};
|
||||||
for (const index in attributeTypes) {
|
for (let index = 0; index < attributeTypes.length; index++) {
|
||||||
const attributeType = attributeTypes[index];
|
let attributeType = attributeTypes[index];
|
||||||
instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
|
instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
|
||||||
}
|
}
|
||||||
return instance;
|
return instance;
|
||||||
@@ -139,10 +152,10 @@ export class ObjectSerializer {
|
|||||||
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
|
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
|
||||||
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
|
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
|
||||||
subType = subType.substring(0, subType.length - 1); // Type> => Type
|
subType = subType.substring(0, subType.length - 1); // Type> => Type
|
||||||
const transformedData: any[] = [];
|
let transformedData: any[] = [];
|
||||||
for (const index in data) {
|
for (let index = 0; index < data.length; index++) {
|
||||||
const date = data[index];
|
let datum = data[index];
|
||||||
transformedData.push(ObjectSerializer.deserialize(date, subType));
|
transformedData.push(ObjectSerializer.deserialize(datum, subType));
|
||||||
}
|
}
|
||||||
return transformedData;
|
return transformedData;
|
||||||
} else if (type === "Date") {
|
} else if (type === "Date") {
|
||||||
@@ -155,14 +168,13 @@ export class ObjectSerializer {
|
|||||||
if (!typeMap[type]) { // dont know the type
|
if (!typeMap[type]) { // dont know the type
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
const instance = new typeMap[type]();
|
let instance = new typeMap[type]();
|
||||||
const attributeTypes = typeMap[type].getAttributeTypeMap();
|
let attributeTypes = typeMap[type].getAttributeTypeMap();
|
||||||
for (const index in attributeTypes) {
|
for (let index = 0; index < attributeTypes.length; index++) {
|
||||||
const attributeType = attributeTypes[index];
|
let attributeType = attributeTypes[index];
|
||||||
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
|
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
|
||||||
}
|
}
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,38 +12,38 @@
|
|||||||
* #############
|
* #############
|
||||||
* ############
|
* ############
|
||||||
* Adyen NodeJS API Library
|
* 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.
|
* This file is open source and available under the MIT license.
|
||||||
* See the LICENSE file for more info.
|
* See the LICENSE file for more info.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notification API
|
* Notification API
|
||||||
* Definition of Notification API Schema
|
* Definition of Notification API Schema
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { NotificationItem } from "./notificationItem";
|
import { NotificationItem } from './notificationItem';
|
||||||
|
|
||||||
export class Notification {
|
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.
|
* 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.
|
* A container object for the details included in the notification.
|
||||||
*/
|
*/
|
||||||
"notificationItems": NotificationItem[];
|
'notificationItems': Array<NotificationItem>;
|
||||||
|
|
||||||
static discriminator: string | undefined = undefined;
|
static discriminator: string | undefined = undefined;
|
||||||
|
|
||||||
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||||
{
|
{
|
||||||
"name": "live",
|
"name": "live",
|
||||||
"baseName": "live",
|
"baseName": "live",
|
||||||
|
|||||||
@@ -12,33 +12,33 @@
|
|||||||
* #############
|
* #############
|
||||||
* ############
|
* ############
|
||||||
* Adyen NodeJS API Library
|
* 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.
|
* This file is open source and available under the MIT license.
|
||||||
* See the LICENSE file for more info.
|
* See the LICENSE file for more info.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notification API
|
* Notification API
|
||||||
* Definition of Notification API Schema
|
* Definition of Notification API Schema
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { NotificationRequestItem } from "./notificationRequestItem";
|
import { NotificationRequestItem } from './notificationRequestItem';
|
||||||
|
|
||||||
export class NotificationItem {
|
export class NotificationItem {
|
||||||
"notificationRequestItem": NotificationRequestItem;
|
'NotificationRequestItem': NotificationRequestItem;
|
||||||
|
|
||||||
static discriminator: string | undefined = undefined;
|
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",
|
"baseName": "NotificationRequestItem",
|
||||||
"type": "NotificationRequestItem"
|
"type": "NotificationRequestItem"
|
||||||
} ];
|
} ];
|
||||||
|
|||||||
@@ -12,73 +12,73 @@
|
|||||||
* #############
|
* #############
|
||||||
* ############
|
* ############
|
||||||
* Adyen NodeJS API Library
|
* 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.
|
* This file is open source and available under the MIT license.
|
||||||
* See the LICENSE file for more info.
|
* See the LICENSE file for more info.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notification API
|
* Notification API
|
||||||
* Definition of Notification API Schema
|
* Definition of Notification API Schema
|
||||||
*
|
*
|
||||||
* The version of the OpenAPI document: 1.0.0
|
* The version of the OpenAPI document: 1.0.0
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { AdditionalData } from "./additionalData";
|
import { AdditionalData } from './additionalData';
|
||||||
import { Amount } from "./amount";
|
import { Amount } from './amount';
|
||||||
|
|
||||||
export class NotificationRequestItem {
|
export class NotificationRequestItem {
|
||||||
"additionalData"?: AdditionalData;
|
'additionalData'?: AdditionalData;
|
||||||
"amount": Amount;
|
'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.
|
* 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.
|
* 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.
|
* The time when the event was generated.
|
||||||
*/
|
*/
|
||||||
"eventDate": string;
|
'eventDate': string;
|
||||||
/**
|
/**
|
||||||
* The merchant account identifier used in the transaction the notification item refers to.
|
* 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).
|
* 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.
|
* 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.
|
* 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.
|
* 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.
|
* 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.
|
* 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 discriminator: string | undefined = undefined;
|
||||||
|
|
||||||
static attributeTypeMap: {name: string, baseName: string, type: string}[] = [
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||||
{
|
{
|
||||||
"name": "additionalData",
|
"name": "additionalData",
|
||||||
"baseName": "additionalData",
|
"baseName": "additionalData",
|
||||||
@@ -147,50 +147,50 @@ export class NotificationRequestItem {
|
|||||||
|
|
||||||
export namespace NotificationRequestItem {
|
export namespace NotificationRequestItem {
|
||||||
export enum EventCodeEnum {
|
export enum EventCodeEnum {
|
||||||
AUTHORISATION = "AUTHORISATION" as any,
|
Authorisation = <any> 'AUTHORISATION',
|
||||||
AUTHORISATIONADJUSTMENT = "AUTHORISATION_ADJUSTMENT" as any,
|
AuthorisationAdjustment = <any> 'AUTHORISATION_ADJUSTMENT',
|
||||||
CANCELLATION = "CANCELLATION" as any,
|
Cancellation = <any> 'CANCELLATION',
|
||||||
CANCELORREFUND = "CANCEL_OR_REFUND" as any,
|
CancelOrRefund = <any> 'CANCEL_OR_REFUND',
|
||||||
CAPTURE = "CAPTURE" as any,
|
Capture = <any> 'CAPTURE',
|
||||||
CAPTUREFAILED = "CAPTURE_FAILED" as any,
|
CaptureFailed = <any> 'CAPTURE_FAILED',
|
||||||
HANDLEDEXTERNALLY = "HANDLED_EXTERNALLY" as any,
|
HandledExternally = <any> 'HANDLED_EXTERNALLY',
|
||||||
ORDEROPENED = "ORDER_OPENED" as any,
|
OrderOpened = <any> 'ORDER_OPENED',
|
||||||
ORDERCLOSED = "ORDER_CLOSED" as any,
|
OrderClosed = <any> 'ORDER_CLOSED',
|
||||||
PENDING = "PENDING" as any,
|
Pending = <any> 'PENDING',
|
||||||
PROCESSRETRY = "PROCESS_RETRY" as any,
|
ProcessRetry = <any> 'PROCESS_RETRY',
|
||||||
REFUND = "REFUND" as any,
|
Refund = <any> 'REFUND',
|
||||||
REFUNDFAILED = "REFUND_FAILED" as any,
|
RefundFailed = <any> 'REFUND_FAILED',
|
||||||
REFUNDEDREVERSED = "REFUNDED_REVERSED" as any,
|
RefundedReversed = <any> 'REFUNDED_REVERSED',
|
||||||
REFUNDWITHDATA = "REFUND_WITH_DATA" as any,
|
RefundWithData = <any> 'REFUND_WITH_DATA',
|
||||||
REPORTAVAILABLE = "REPORT_AVAILABLE" as any,
|
ReportAvailable = <any> 'REPORT_AVAILABLE',
|
||||||
VOIDPENDINGREFUND = "VOID_PENDING_REFUND" as any,
|
VoidPendingRefund = <any> 'VOID_PENDING_REFUND',
|
||||||
CHARGEBACK = "CHARGEBACK" as any,
|
Chargeback = <any> 'CHARGEBACK',
|
||||||
CHARGEBACKREVERSED = "CHARGEBACK_REVERSED" as any,
|
ChargebackReversed = <any> 'CHARGEBACK_REVERSED',
|
||||||
NOTIFICATIONOFCHARGEBACK = "NOTIFICATION_OF_CHARGEBACK" as any,
|
NotificationOfChargeback = <any> 'NOTIFICATION_OF_CHARGEBACK',
|
||||||
NOTIFICATIONOFFRAUD = "NOTIFICATION_OF_FRAUD" as any,
|
NotificationOfFraud = <any> 'NOTIFICATION_OF_FRAUD',
|
||||||
PREARBITRATIONLOST = "PREARBITRATION_LOST" as any,
|
PrearbitrationLost = <any> 'PREARBITRATION_LOST',
|
||||||
PREARBITRATIONWON = "PREARBITRATION_WON" as any,
|
PrearbitrationWon = <any> 'PREARBITRATION_WON',
|
||||||
REQUESTFORINFORMATION = "REQUEST_FOR_INFORMATION" as any,
|
RequestForInformation = <any> 'REQUEST_FOR_INFORMATION',
|
||||||
SECONDCHARGEBACK = "SECOND_CHARGEBACK" as any,
|
SecondChargeback = <any> 'SECOND_CHARGEBACK',
|
||||||
PAYOUTEXPIRE = "PAYOUT_EXPIRE" as any,
|
PayoutExpire = <any> 'PAYOUT_EXPIRE',
|
||||||
PAYOUTDECLINE = "PAYOUT_DECLINE" as any,
|
PayoutDecline = <any> 'PAYOUT_DECLINE',
|
||||||
PAYOUTTHIRDPARTY = "PAYOUT_THIRDPARTY" as any,
|
PayoutThirdparty = <any> 'PAYOUT_THIRDPARTY',
|
||||||
PAIDOUTREVERSED = "PAIDOUT_REVERSED" as any,
|
PaidoutReversed = <any> 'PAIDOUT_REVERSED',
|
||||||
AUTORESCUE = "AUTORESCUE" as any,
|
Autorescue = <any> 'AUTORESCUE',
|
||||||
CANCELAUTORESCUE = "CANCEL_AUTORESCUE" as any,
|
CancelAutorescue = <any> 'CANCEL_AUTORESCUE',
|
||||||
RECURRINGCONTRACT = "RECURRING_CONTRACT" as any,
|
RecurringContract = <any> 'RECURRING_CONTRACT',
|
||||||
POSTPONEDREFUND = "POSTPONED_REFUND" as any,
|
PostponedRefund = <any> 'POSTPONED_REFUND',
|
||||||
OFFERCLOSED = "OFFER_CLOSED" as any,
|
OfferClosed = <any> 'OFFER_CLOSED',
|
||||||
MANUALREVIEWACCEPT = "MANUAL_REVIEW_ACCEPT" as any,
|
ManualReviewAccept = <any> 'MANUAL_REVIEW_ACCEPT',
|
||||||
MANUALREVIEWREJECT = "MANUAL_REVIEW_REJECT" as any
|
ManualReviewReject = <any> 'MANUAL_REVIEW_REJECT'
|
||||||
}
|
}
|
||||||
export enum OperationsEnum {
|
export enum OperationsEnum {
|
||||||
CANCEL = "CANCEL" as any,
|
Cancel = <any> 'CANCEL',
|
||||||
CAPTURE = "CAPTURE" as any,
|
Capture = <any> 'CAPTURE',
|
||||||
REFUND = "REFUND" as any
|
Refund = <any> 'REFUND'
|
||||||
}
|
}
|
||||||
export enum SuccessEnum {
|
export enum SuccessEnum {
|
||||||
True = "true" as any,
|
True = <any> 'true',
|
||||||
False = "false" as any
|
False = <any> 'false'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user