Skip to content

Commit 0c29636

Browse files
AdyenAutomationBotAdyenAutomationBotDjoykeAbyah
authored
Update all services (#1433)
* [reformat][adyen-sdk-automation] automated change * style(fmt): code formatted * Update transferRoute.ts Co-authored-by: AdyenAutomationBot <Adyen Automation [email protected]> Co-authored-by: Djoyke Reijans <[email protected]>
1 parent 2a4c78b commit 0c29636

File tree

87 files changed

+1670
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1670
-84
lines changed

src/__tests__/terminalSettings.spec.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { TerminalSettings } from '../typings/management/terminalSettings';
1+
import { TerminalSettings } from "../typings/management/terminalSettings";
22

3-
describe('TerminalSettings properties', () => {
3+
describe("TerminalSettings properties", () => {
44
let terminalSettings: TerminalSettings;
55

66
beforeEach(() => {
77
terminalSettings = new TerminalSettings();
88
});
99

10-
test('should allow properties to be null', () => {
10+
test("should allow properties to be null", () => {
1111
terminalSettings.cardholderReceipt = null;
1212
terminalSettings.connectivity = null;
1313
terminalSettings.gratuities = null;
@@ -19,15 +19,15 @@ describe('TerminalSettings properties', () => {
1919
expect(terminalSettings.hardware).toBeNull();
2020
});
2121

22-
test('should allow properties to be undefined', () => {
22+
test("should allow properties to be undefined", () => {
2323
terminalSettings.cardholderReceipt = undefined;
2424
terminalSettings.connectivity = undefined;
2525

2626
expect(terminalSettings.cardholderReceipt).toBeUndefined();
2727
expect(terminalSettings.connectivity).toBeUndefined();
2828
});
2929

30-
test('should allow properties to have valid type values', () => {
30+
test("should allow properties to have valid type values", () => {
3131
const mockGratuities = [{ /* mock Gratuity object */ }];
3232
terminalSettings.gratuities = mockGratuities;
3333

src/services/legalEntityManagement/pCIQuestionnairesApi.ts

+22
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import getJsonResponse from "../../helpers/getJsonResponse";
1111
import Service from "../../service";
1212
import Client from "../../client";
1313
import {
14+
CalculatePciStatusRequest,
15+
CalculatePciStatusResponse,
1416
GeneratePciDescriptionRequest,
1517
GeneratePciDescriptionResponse,
1618
GetPciQuestionnaireInfosResponse,
@@ -32,6 +34,26 @@ export class PCIQuestionnairesApi extends Service {
3234
this.baseUrl = this.createBaseUrl(this.API_BASEPATH);
3335
}
3436

37+
/**
38+
* @summary Calculate PCI status of a legal entity
39+
* @param id {@link string } The unique identifier of the legal entity to calculate PCI status.
40+
* @param calculatePciStatusRequest {@link CalculatePciStatusRequest }
41+
* @param requestOptions {@link IRequest.Options }
42+
* @return {@link CalculatePciStatusResponse }
43+
*/
44+
public async calculatePciStatusOfLegalEntity(id: string, calculatePciStatusRequest: CalculatePciStatusRequest, requestOptions?: IRequest.Options): Promise<CalculatePciStatusResponse> {
45+
const endpoint = `${this.baseUrl}/legalEntities/{id}/pciQuestionnaires/signingRequired`
46+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
47+
const resource = new Resource(this, endpoint);
48+
const request: CalculatePciStatusRequest = ObjectSerializer.serialize(calculatePciStatusRequest, "CalculatePciStatusRequest");
49+
const response = await getJsonResponse<CalculatePciStatusRequest, CalculatePciStatusResponse>(
50+
resource,
51+
request,
52+
{ ...requestOptions, method: "POST" }
53+
);
54+
return ObjectSerializer.deserialize(response, "CalculatePciStatusResponse");
55+
}
56+
3557
/**
3658
* @summary Generate PCI questionnaire
3759
* @param id {@link string } The unique identifier of the legal entity to get PCI questionnaire information.

src/typings/acsWebhooks/amount.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
export class Amount {
1212
/**
13-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
13+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
1414
*/
1515
'currency': string;
1616
/**
17-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
17+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
1818
*/
1919
'value': number;
2020

src/typings/acsWebhooks/authenticationNotificationRequest.ts

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export class AuthenticationNotificationRequest {
1616
*/
1717
'environment': string;
1818
/**
19+
* When the event was queued.
20+
*/
21+
'timestamp'?: Date;
22+
/**
1923
* Type of notification.
2024
*/
2125
'type': AuthenticationNotificationRequest.TypeEnum;
@@ -33,6 +37,11 @@ export class AuthenticationNotificationRequest {
3337
"baseName": "environment",
3438
"type": "string"
3539
},
40+
{
41+
"name": "timestamp",
42+
"baseName": "timestamp",
43+
"type": "Date"
44+
},
3645
{
3746
"name": "type",
3847
"baseName": "type",

src/typings/balancePlatform/amount.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
export class Amount {
1212
/**
13-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
13+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
1414
*/
1515
'currency': string;
1616
/**
17-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
17+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
1818
*/
1919
'value': number;
2020

src/typings/balancePlatform/balance.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010

1111
export class Balance {
1212
/**
13-
* The current balance minus any reserved balance.
13+
* The balance available for use.
1414
*/
1515
'available': number;
1616
/**
17-
* The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out.
17+
* The sum of transactions that have already been settled.
1818
*/
1919
'balance': number;
2020
/**
2121
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.
2222
*/
2323
'currency': string;
2424
/**
25-
* The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds).
25+
* The sum of the transactions that will be settled in the future.
2626
*/
2727
'pending'?: number;
2828
/**
29-
* The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing).
29+
* The balance currently held in reserve.
3030
*/
3131
'reserved': number;
3232

src/typings/balancePlatform/counterpartyBankRestriction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class CounterpartyBankRestriction {
1515
*/
1616
'operation': string;
1717
/**
18-
* List of counterparty Bank Institutions and the operation.
18+
* The list of counterparty bank institutions to be evaluated.
1919
*/
2020
'value'?: Array<BankIdentification>;
2121

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* The version of the OpenAPI document: v2
3+
*
4+
*
5+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6+
* https://openapi-generator.tech
7+
* Do not edit this class manually.
8+
*/
9+
10+
11+
export class CounterpartyTypesRestriction {
12+
/**
13+
* Defines how the condition must be evaluated.
14+
*/
15+
'operation': string;
16+
/**
17+
* The list of counterparty types to be evaluated.
18+
*/
19+
'value'?: Array<CounterpartyTypesRestriction.ValueEnum>;
20+
21+
static discriminator: string | undefined = undefined;
22+
23+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24+
{
25+
"name": "operation",
26+
"baseName": "operation",
27+
"type": "string"
28+
},
29+
{
30+
"name": "value",
31+
"baseName": "value",
32+
"type": "Array<CounterpartyTypesRestriction.ValueEnum>"
33+
} ];
34+
35+
static getAttributeTypeMap() {
36+
return CounterpartyTypesRestriction.attributeTypeMap;
37+
}
38+
}
39+
40+
export namespace CounterpartyTypesRestriction {
41+
export enum ValueEnum {
42+
BalanceAccount = 'balanceAccount',
43+
BankAccount = 'bankAccount',
44+
Card = 'card',
45+
TransferInstrument = 'transferInstrument'
46+
}
47+
}

src/typings/balancePlatform/models.ts

+8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export * from './cardOrderItemDeliveryStatus';
5555
export * from './contactDetails';
5656
export * from './counterparty';
5757
export * from './counterpartyBankRestriction';
58+
export * from './counterpartyTypesRestriction';
5859
export * from './countriesRestriction';
5960
export * from './createSweepConfigurationV2';
6061
export * from './dKLocalAccountIdentification';
@@ -132,6 +133,7 @@ export * from './sGLocalAccountIdentification';
132133
export * from './sameAmountRestriction';
133134
export * from './sameCounterpartyRestriction';
134135
export * from './searchRegisteredDevicesResponse';
136+
export * from './sourceAccountTypesRestriction';
135137
export * from './stringMatch';
136138
export * from './sweepConfigurationV2';
137139
export * from './sweepCounterparty';
@@ -208,6 +210,7 @@ import { CardOrderItemDeliveryStatus } from './cardOrderItemDeliveryStatus';
208210
import { ContactDetails } from './contactDetails';
209211
import { Counterparty } from './counterparty';
210212
import { CounterpartyBankRestriction } from './counterpartyBankRestriction';
213+
import { CounterpartyTypesRestriction } from './counterpartyTypesRestriction';
211214
import { CountriesRestriction } from './countriesRestriction';
212215
import { CreateSweepConfigurationV2 } from './createSweepConfigurationV2';
213216
import { DKLocalAccountIdentification } from './dKLocalAccountIdentification';
@@ -285,6 +288,7 @@ import { SGLocalAccountIdentification } from './sGLocalAccountIdentification';
285288
import { SameAmountRestriction } from './sameAmountRestriction';
286289
import { SameCounterpartyRestriction } from './sameCounterpartyRestriction';
287290
import { SearchRegisteredDevicesResponse } from './searchRegisteredDevicesResponse';
291+
import { SourceAccountTypesRestriction } from './sourceAccountTypesRestriction';
288292
import { StringMatch } from './stringMatch';
289293
import { SweepConfigurationV2 } from './sweepConfigurationV2';
290294
import { SweepCounterparty } from './sweepCounterparty';
@@ -359,6 +363,7 @@ let enumsMap: {[index: string]: any} = {
359363
"CardInfo.FormFactorEnum": CardInfo.FormFactorEnum,
360364
"CardOrder.StatusEnum": CardOrder.StatusEnum,
361365
"CardOrderItemDeliveryStatus.StatusEnum": CardOrderItemDeliveryStatus.StatusEnum,
366+
"CounterpartyTypesRestriction.ValueEnum": CounterpartyTypesRestriction.ValueEnum,
362367
"CreateSweepConfigurationV2.CategoryEnum": CreateSweepConfigurationV2.CategoryEnum,
363368
"CreateSweepConfigurationV2.PrioritiesEnum": CreateSweepConfigurationV2.PrioritiesEnum,
364369
"CreateSweepConfigurationV2.ReasonEnum": CreateSweepConfigurationV2.ReasonEnum,
@@ -397,6 +402,7 @@ let enumsMap: {[index: string]: any} = {
397402
"ProcessingTypesRestriction.ValueEnum": ProcessingTypesRestriction.ValueEnum,
398403
"SELocalAccountIdentification.TypeEnum": SELocalAccountIdentification.TypeEnum,
399404
"SGLocalAccountIdentification.TypeEnum": SGLocalAccountIdentification.TypeEnum,
405+
"SourceAccountTypesRestriction.ValueEnum": SourceAccountTypesRestriction.ValueEnum,
400406
"StringMatch.OperationEnum": StringMatch.OperationEnum,
401407
"SweepConfigurationV2.CategoryEnum": SweepConfigurationV2.CategoryEnum,
402408
"SweepConfigurationV2.PrioritiesEnum": SweepConfigurationV2.PrioritiesEnum,
@@ -486,6 +492,7 @@ let typeMap: {[index: string]: any} = {
486492
"ContactDetails": ContactDetails,
487493
"Counterparty": Counterparty,
488494
"CounterpartyBankRestriction": CounterpartyBankRestriction,
495+
"CounterpartyTypesRestriction": CounterpartyTypesRestriction,
489496
"CountriesRestriction": CountriesRestriction,
490497
"CreateSweepConfigurationV2": CreateSweepConfigurationV2,
491498
"DKLocalAccountIdentification": DKLocalAccountIdentification,
@@ -563,6 +570,7 @@ let typeMap: {[index: string]: any} = {
563570
"SameAmountRestriction": SameAmountRestriction,
564571
"SameCounterpartyRestriction": SameCounterpartyRestriction,
565572
"SearchRegisteredDevicesResponse": SearchRegisteredDevicesResponse,
573+
"SourceAccountTypesRestriction": SourceAccountTypesRestriction,
566574
"StringMatch": StringMatch,
567575
"SweepConfigurationV2": SweepConfigurationV2,
568576
"SweepCounterparty": SweepCounterparty,

src/typings/balancePlatform/platformPaymentConfiguration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class PlatformPaymentConfiguration {
1414
*/
1515
'salesDayClosingTime'?: string;
1616
/**
17-
* Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
17+
* Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **20**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
1818
*/
1919
'settlementDelayDays'?: number;
2020

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* The version of the OpenAPI document: v2
3+
*
4+
*
5+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6+
* https://openapi-generator.tech
7+
* Do not edit this class manually.
8+
*/
9+
10+
11+
export class SourceAccountTypesRestriction {
12+
/**
13+
* Defines how the condition must be evaluated.
14+
*/
15+
'operation': string;
16+
/**
17+
* The list of source account types to be evaluated.
18+
*/
19+
'value'?: Array<SourceAccountTypesRestriction.ValueEnum>;
20+
21+
static discriminator: string | undefined = undefined;
22+
23+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24+
{
25+
"name": "operation",
26+
"baseName": "operation",
27+
"type": "string"
28+
},
29+
{
30+
"name": "value",
31+
"baseName": "value",
32+
"type": "Array<SourceAccountTypesRestriction.ValueEnum>"
33+
} ];
34+
35+
static getAttributeTypeMap() {
36+
return SourceAccountTypesRestriction.attributeTypeMap;
37+
}
38+
}
39+
40+
export namespace SourceAccountTypesRestriction {
41+
export enum ValueEnum {
42+
BalanceAccount = 'balanceAccount',
43+
BusinessAccount = 'businessAccount'
44+
}
45+
}

src/typings/balancePlatform/transactionRuleRestrictions.ts

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import { ActiveNetworkTokensRestriction } from './activeNetworkTokensRestriction';
1111
import { BrandVariantsRestriction } from './brandVariantsRestriction';
1212
import { CounterpartyBankRestriction } from './counterpartyBankRestriction';
13+
import { CounterpartyTypesRestriction } from './counterpartyTypesRestriction';
1314
import { CountriesRestriction } from './countriesRestriction';
1415
import { DayOfWeekRestriction } from './dayOfWeekRestriction';
1516
import { DifferentCurrenciesRestriction } from './differentCurrenciesRestriction';
@@ -24,13 +25,15 @@ import { ProcessingTypesRestriction } from './processingTypesRestriction';
2425
import { RiskScoresRestriction } from './riskScoresRestriction';
2526
import { SameAmountRestriction } from './sameAmountRestriction';
2627
import { SameCounterpartyRestriction } from './sameCounterpartyRestriction';
28+
import { SourceAccountTypesRestriction } from './sourceAccountTypesRestriction';
2729
import { TimeOfDayRestriction } from './timeOfDayRestriction';
2830
import { TotalAmountRestriction } from './totalAmountRestriction';
2931

3032
export class TransactionRuleRestrictions {
3133
'activeNetworkTokens'?: ActiveNetworkTokensRestriction;
3234
'brandVariants'?: BrandVariantsRestriction;
3335
'counterpartyBank'?: CounterpartyBankRestriction;
36+
'counterpartyTypes'?: CounterpartyTypesRestriction;
3437
'countries'?: CountriesRestriction;
3538
'dayOfWeek'?: DayOfWeekRestriction;
3639
'differentCurrencies'?: DifferentCurrenciesRestriction;
@@ -45,6 +48,7 @@ export class TransactionRuleRestrictions {
4548
'riskScores'?: RiskScoresRestriction;
4649
'sameAmountRestriction'?: SameAmountRestriction;
4750
'sameCounterpartyRestriction'?: SameCounterpartyRestriction;
51+
'sourceAccountTypes'?: SourceAccountTypesRestriction;
4852
'timeOfDay'?: TimeOfDayRestriction;
4953
'totalAmount'?: TotalAmountRestriction;
5054

@@ -66,6 +70,11 @@ export class TransactionRuleRestrictions {
6670
"baseName": "counterpartyBank",
6771
"type": "CounterpartyBankRestriction"
6872
},
73+
{
74+
"name": "counterpartyTypes",
75+
"baseName": "counterpartyTypes",
76+
"type": "CounterpartyTypesRestriction"
77+
},
6978
{
7079
"name": "countries",
7180
"baseName": "countries",
@@ -136,6 +145,11 @@ export class TransactionRuleRestrictions {
136145
"baseName": "sameCounterpartyRestriction",
137146
"type": "SameCounterpartyRestriction"
138147
},
148+
{
149+
"name": "sourceAccountTypes",
150+
"baseName": "sourceAccountTypes",
151+
"type": "SourceAccountTypesRestriction"
152+
},
139153
{
140154
"name": "timeOfDay",
141155
"baseName": "timeOfDay",

src/typings/binLookup/amount.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
export class Amount {
1212
/**
13-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
13+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
1414
*/
1515
'currency': string;
1616
/**
17-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
17+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
1818
*/
1919
'value': number;
2020

0 commit comments

Comments
 (0)