Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generation: update services and models #1478

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
2 changes: 2 additions & 0 deletions src/services/balanceControlApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export class BalanceControlAPI extends Service {
* @param balanceTransferRequest {@link BalanceTransferRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link BalanceTransferResponse }
*
* @deprecated since Adyen Balance Control API v1
*/
public async balanceTransfer(balanceTransferRequest: BalanceTransferRequest, requestOptions?: IRequest.Options): Promise<BalanceTransferResponse> {
const endpoint = `${this.baseUrl}/balanceTransfer`;
Expand Down
12 changes: 12 additions & 0 deletions src/services/recurringApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export class RecurringAPI extends Service {
* @param createPermitRequest {@link CreatePermitRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link CreatePermitResult }
*
* @deprecated since Adyen Recurring API (deprecated) v68
*/
public async createPermit(createPermitRequest: CreatePermitRequest, requestOptions?: IRequest.Options): Promise<CreatePermitResult> {
const endpoint = `${this.baseUrl}/createPermit`;
Expand All @@ -59,6 +61,8 @@ export class RecurringAPI extends Service {
* @param disableRequest {@link DisableRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link DisableResult }
*
* @deprecated since Adyen Recurring API (deprecated) v68
*/
public async disable(disableRequest: DisableRequest, requestOptions?: IRequest.Options): Promise<DisableResult> {
const endpoint = `${this.baseUrl}/disable`;
Expand All @@ -77,6 +81,8 @@ export class RecurringAPI extends Service {
* @param disablePermitRequest {@link DisablePermitRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link DisablePermitResult }
*
* @deprecated since Adyen Recurring API (deprecated) v68
*/
public async disablePermit(disablePermitRequest: DisablePermitRequest, requestOptions?: IRequest.Options): Promise<DisablePermitResult> {
const endpoint = `${this.baseUrl}/disablePermit`;
Expand All @@ -95,6 +101,8 @@ export class RecurringAPI extends Service {
* @param recurringDetailsRequest {@link RecurringDetailsRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link RecurringDetailsResult }
*
* @deprecated since Adyen Recurring API (deprecated) v68
*/
public async listRecurringDetails(recurringDetailsRequest: RecurringDetailsRequest, requestOptions?: IRequest.Options): Promise<RecurringDetailsResult> {
const endpoint = `${this.baseUrl}/listRecurringDetails`;
Expand All @@ -113,6 +121,8 @@ export class RecurringAPI extends Service {
* @param notifyShopperRequest {@link NotifyShopperRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link NotifyShopperResult }
*
* @deprecated since Adyen Recurring API (deprecated) v68
*/
public async notifyShopper(notifyShopperRequest: NotifyShopperRequest, requestOptions?: IRequest.Options): Promise<NotifyShopperResult> {
const endpoint = `${this.baseUrl}/notifyShopper`;
Expand All @@ -131,6 +141,8 @@ export class RecurringAPI extends Service {
* @param scheduleAccountUpdaterRequest {@link ScheduleAccountUpdaterRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link ScheduleAccountUpdaterResult }
*
* @deprecated since Adyen Recurring API (deprecated) v68
*/
public async scheduleAccountUpdater(scheduleAccountUpdaterRequest: ScheduleAccountUpdaterRequest, requestOptions?: IRequest.Options): Promise<ScheduleAccountUpdaterResult> {
const endpoint = `${this.baseUrl}/scheduleAccountUpdater`;
Expand Down
36 changes: 36 additions & 0 deletions src/typings/acsWebhooks/authenticationDecision.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/


export class AuthenticationDecision {
/**
* The status of the authentication. Possible values: * **refused** * **proceed** For more information, refer to [Authenticate cardholders using the Authentication SDK](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/authenticate-cardholders/).
*/
'status': AuthenticationDecision.StatusEnum;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "status",
"baseName": "status",
"type": "AuthenticationDecision.StatusEnum"
} ];

static getAttributeTypeMap() {
return AuthenticationDecision.attributeTypeMap;
}
}

export namespace AuthenticationDecision {
export enum StatusEnum {
Proceed = 'proceed',
Refused = 'refused'
}
}
16 changes: 16 additions & 0 deletions src/typings/acsWebhooks/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,33 @@


export * from './amount';
export * from './authenticationDecision';
export * from './authenticationInfo';
export * from './authenticationNotificationData';
export * from './authenticationNotificationRequest';
export * from './balancePlatformNotificationResponse';
export * from './challengeInfo';
export * from './purchase';
export * from './purchaseInfo';
export * from './relayedAuthenticationRequest';
export * from './relayedAuthenticationResponse';
export * from './resource';
export * from './serviceError';


import { Amount } from './amount';
import { AuthenticationDecision } from './authenticationDecision';
import { AuthenticationInfo } from './authenticationInfo';
import { AuthenticationNotificationData } from './authenticationNotificationData';
import { AuthenticationNotificationRequest } from './authenticationNotificationRequest';
import { BalancePlatformNotificationResponse } from './balancePlatformNotificationResponse';
import { ChallengeInfo } from './challengeInfo';
import { Purchase } from './purchase';
import { PurchaseInfo } from './purchaseInfo';
import { RelayedAuthenticationRequest } from './relayedAuthenticationRequest';
import { RelayedAuthenticationResponse } from './relayedAuthenticationResponse';
import { Resource } from './resource';
import { ServiceError } from './serviceError';

/* tslint:disable:no-unused-variable */
let primitives = [
Expand All @@ -40,6 +50,7 @@ let primitives = [
];

let enumsMap: {[index: string]: any} = {
"AuthenticationDecision.StatusEnum": AuthenticationDecision.StatusEnum,
"AuthenticationInfo.ChallengeIndicatorEnum": AuthenticationInfo.ChallengeIndicatorEnum,
"AuthenticationInfo.DeviceChannelEnum": AuthenticationInfo.DeviceChannelEnum,
"AuthenticationInfo.ExemptionIndicatorEnum": AuthenticationInfo.ExemptionIndicatorEnum,
Expand All @@ -55,13 +66,18 @@ let enumsMap: {[index: string]: any} = {

let typeMap: {[index: string]: any} = {
"Amount": Amount,
"AuthenticationDecision": AuthenticationDecision,
"AuthenticationInfo": AuthenticationInfo,
"AuthenticationNotificationData": AuthenticationNotificationData,
"AuthenticationNotificationRequest": AuthenticationNotificationRequest,
"BalancePlatformNotificationResponse": BalancePlatformNotificationResponse,
"ChallengeInfo": ChallengeInfo,
"Purchase": Purchase,
"PurchaseInfo": PurchaseInfo,
"RelayedAuthenticationRequest": RelayedAuthenticationRequest,
"RelayedAuthenticationResponse": RelayedAuthenticationResponse,
"Resource": Resource,
"ServiceError": ServiceError,
}

export class ObjectSerializer {
Expand Down
46 changes: 46 additions & 0 deletions src/typings/acsWebhooks/purchase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/

import { Amount } from './amount';

export class Purchase {
/**
* The time of the purchase.
*/
'date': Date;
/**
* The name of the merchant.
*/
'merchantName': string;
'originalAmount': Amount;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "date",
"baseName": "date",
"type": "Date"
},
{
"name": "merchantName",
"baseName": "merchantName",
"type": "string"
},
{
"name": "originalAmount",
"baseName": "originalAmount",
"type": "Amount"
} ];

static getAttributeTypeMap() {
return Purchase.attributeTypeMap;
}
}

46 changes: 46 additions & 0 deletions src/typings/acsWebhooks/relayedAuthenticationRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/

import { Purchase } from './purchase';

export class RelayedAuthenticationRequest {
/**
* The unique identifier of the challenge.
*/
'id': string;
/**
* The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/paymentInstruments/_id_) used for the purchase.
*/
'paymentInstrumentId': string;
'purchase': Purchase;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "paymentInstrumentId",
"baseName": "paymentInstrumentId",
"type": "string"
},
{
"name": "purchase",
"baseName": "purchase",
"type": "Purchase"
} ];

static getAttributeTypeMap() {
return RelayedAuthenticationRequest.attributeTypeMap;
}
}

28 changes: 28 additions & 0 deletions src/typings/acsWebhooks/relayedAuthenticationResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/

import { AuthenticationDecision } from './authenticationDecision';

export class RelayedAuthenticationResponse {
'authenticationDecision': AuthenticationDecision;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "authenticationDecision",
"baseName": "authenticationDecision",
"type": "AuthenticationDecision"
} ];

static getAttributeTypeMap() {
return RelayedAuthenticationResponse.attributeTypeMap;
}
}

66 changes: 66 additions & 0 deletions src/typings/acsWebhooks/serviceError.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/


export class ServiceError {
/**
* The error code mapped to the error message.
*/
'errorCode'?: string;
/**
* The category of the error.
*/
'errorType'?: string;
/**
* A short explanation of the issue.
*/
'message'?: string;
/**
* The PSP reference of the payment.
*/
'pspReference'?: string;
/**
* The HTTP response status.
*/
'status'?: number;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "errorCode",
"baseName": "errorCode",
"type": "string"
},
{
"name": "errorType",
"baseName": "errorType",
"type": "string"
},
{
"name": "message",
"baseName": "message",
"type": "string"
},
{
"name": "pspReference",
"baseName": "pspReference",
"type": "string"
},
{
"name": "status",
"baseName": "status",
"type": "number"
} ];

static getAttributeTypeMap() {
return ServiceError.attributeTypeMap;
}
}

4 changes: 2 additions & 2 deletions src/typings/balanceControl/amount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

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-codes).
*/
'currency': string;
/**
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
*/
'value': number;

Expand Down
1 change: 1 addition & 0 deletions src/typings/balancePlatform/transferRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

import { AddressRequirement } from './addressRequirement';
import { AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement } from './addressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement';
import { AmountMinMaxRequirement } from './amountMinMaxRequirement';
import { AmountNonZeroDecimalsRequirement } from './amountNonZeroDecimalsRequirement';
import { BankAccountIdentificationTypeRequirement } from './bankAccountIdentificationTypeRequirement';
Expand Down
Loading
Loading