Skip to content

Commit 5506c83

Browse files
AdyenAutomationBotAdyenAutomationBotDjoykeAbyah
authored
Update all services (#1441)
* [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 5c158b4 commit 5506c83

17 files changed

+119
-3
lines changed

src/services/terminalManagementApi.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ export class TerminalManagementAPI extends Service {
3939
* @param assignTerminalsRequest {@link AssignTerminalsRequest }
4040
* @param requestOptions {@link IRequest.Options }
4141
* @return {@link AssignTerminalsResponse }
42+
*
43+
* @deprecated since POS Terminal Management API v1
44+
* Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
4245
*/
4346
public async assignTerminals(assignTerminalsRequest: AssignTerminalsRequest, requestOptions?: IRequest.Options): Promise<AssignTerminalsResponse> {
4447
const endpoint = `${this.baseUrl}/assignTerminals`;
@@ -57,6 +60,9 @@ export class TerminalManagementAPI extends Service {
5760
* @param findTerminalRequest {@link FindTerminalRequest }
5861
* @param requestOptions {@link IRequest.Options }
5962
* @return {@link FindTerminalResponse }
63+
*
64+
* @deprecated since POS Terminal Management API v1
65+
* Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
6066
*/
6167
public async findTerminal(findTerminalRequest: FindTerminalRequest, requestOptions?: IRequest.Options): Promise<FindTerminalResponse> {
6268
const endpoint = `${this.baseUrl}/findTerminal`;
@@ -75,6 +81,9 @@ export class TerminalManagementAPI extends Service {
7581
* @param getStoresUnderAccountRequest {@link GetStoresUnderAccountRequest }
7682
* @param requestOptions {@link IRequest.Options }
7783
* @return {@link GetStoresUnderAccountResponse }
84+
*
85+
* @deprecated since POS Terminal Management API v1
86+
* Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
7887
*/
7988
public async getStoresUnderAccount(getStoresUnderAccountRequest: GetStoresUnderAccountRequest, requestOptions?: IRequest.Options): Promise<GetStoresUnderAccountResponse> {
8089
const endpoint = `${this.baseUrl}/getStoresUnderAccount`;
@@ -93,6 +102,9 @@ export class TerminalManagementAPI extends Service {
93102
* @param getTerminalDetailsRequest {@link GetTerminalDetailsRequest }
94103
* @param requestOptions {@link IRequest.Options }
95104
* @return {@link GetTerminalDetailsResponse }
105+
*
106+
* @deprecated since POS Terminal Management API v1
107+
* Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
96108
*/
97109
public async getTerminalDetails(getTerminalDetailsRequest: GetTerminalDetailsRequest, requestOptions?: IRequest.Options): Promise<GetTerminalDetailsResponse> {
98110
const endpoint = `${this.baseUrl}/getTerminalDetails`;
@@ -111,6 +123,9 @@ export class TerminalManagementAPI extends Service {
111123
* @param getTerminalsUnderAccountRequest {@link GetTerminalsUnderAccountRequest }
112124
* @param requestOptions {@link IRequest.Options }
113125
* @return {@link GetTerminalsUnderAccountResponse }
126+
*
127+
* @deprecated since POS Terminal Management API v1
128+
* Use [Management API](https://docs.adyen.com/api-explorer/Management/latest/overview).
114129
*/
115130
public async getTerminalsUnderAccount(getTerminalsUnderAccountRequest: GetTerminalsUnderAccountRequest, requestOptions?: IRequest.Options): Promise<GetTerminalsUnderAccountResponse> {
116131
const endpoint = `${this.baseUrl}/getTerminalsUnderAccount`;

src/typings/balancePlatform/balance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Balance {
1414
*/
1515
'available': number;
1616
/**
17-
* The sum of transactions that have already been settled.
17+
* The sum of the transactions that have already been settled.
1818
*/
1919
'balance': number;
2020
/**

src/typings/balancePlatform/models.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export * from './phoneNumber';
115115
export * from './pinChangeRequest';
116116
export * from './pinChangeResponse';
117117
export * from './platformPaymentConfiguration';
118+
export * from './priorityRestriction';
118119
export * from './processingTypesRestriction';
119120
export * from './publicKeyResponse';
120121
export * from './registerSCAFinalResponse';
@@ -270,6 +271,7 @@ import { PhoneNumber } from './phoneNumber';
270271
import { PinChangeRequest } from './pinChangeRequest';
271272
import { PinChangeResponse } from './pinChangeResponse';
272273
import { PlatformPaymentConfiguration } from './platformPaymentConfiguration';
274+
import { PriorityRestriction } from './priorityRestriction';
273275
import { ProcessingTypesRestriction } from './processingTypesRestriction';
274276
import { PublicKeyResponse } from './publicKeyResponse';
275277
import { RegisterSCAFinalResponse } from './registerSCAFinalResponse';
@@ -399,6 +401,7 @@ let enumsMap: {[index: string]: any} = {
399401
"Phone.TypeEnum": Phone.TypeEnum,
400402
"PhoneNumber.PhoneTypeEnum": PhoneNumber.PhoneTypeEnum,
401403
"PinChangeResponse.StatusEnum": PinChangeResponse.StatusEnum,
404+
"PriorityRestriction.ValueEnum": PriorityRestriction.ValueEnum,
402405
"ProcessingTypesRestriction.ValueEnum": ProcessingTypesRestriction.ValueEnum,
403406
"SELocalAccountIdentification.TypeEnum": SELocalAccountIdentification.TypeEnum,
404407
"SGLocalAccountIdentification.TypeEnum": SGLocalAccountIdentification.TypeEnum,
@@ -552,6 +555,7 @@ let typeMap: {[index: string]: any} = {
552555
"PinChangeRequest": PinChangeRequest,
553556
"PinChangeResponse": PinChangeResponse,
554557
"PlatformPaymentConfiguration": PlatformPaymentConfiguration,
558+
"PriorityRestriction": PriorityRestriction,
555559
"ProcessingTypesRestriction": ProcessingTypesRestriction,
556560
"PublicKeyResponse": PublicKeyResponse,
557561
"RegisterSCAFinalResponse": RegisterSCAFinalResponse,
Lines changed: 45 additions & 0 deletions
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 PriorityRestriction {
12+
/**
13+
* Defines how the condition must be evaluated.
14+
*/
15+
'operation': string;
16+
'value'?: Array<PriorityRestriction.ValueEnum>;
17+
18+
static discriminator: string | undefined = undefined;
19+
20+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
21+
{
22+
"name": "operation",
23+
"baseName": "operation",
24+
"type": "string"
25+
},
26+
{
27+
"name": "value",
28+
"baseName": "value",
29+
"type": "Array<PriorityRestriction.ValueEnum>"
30+
} ];
31+
32+
static getAttributeTypeMap() {
33+
return PriorityRestriction.attributeTypeMap;
34+
}
35+
}
36+
37+
export namespace PriorityRestriction {
38+
export enum ValueEnum {
39+
CrossBorder = 'crossBorder',
40+
Fast = 'fast',
41+
Instant = 'instant',
42+
IntraBank = 'intraBank',
43+
Regular = 'regular'
44+
}
45+
}

src/typings/balancePlatform/transactionRuleRestrictions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { MatchingValuesRestriction } from './matchingValuesRestriction';
2121
import { MccsRestriction } from './mccsRestriction';
2222
import { MerchantNamesRestriction } from './merchantNamesRestriction';
2323
import { MerchantsRestriction } from './merchantsRestriction';
24+
import { PriorityRestriction } from './priorityRestriction';
2425
import { ProcessingTypesRestriction } from './processingTypesRestriction';
2526
import { RiskScoresRestriction } from './riskScoresRestriction';
2627
import { SameAmountRestriction } from './sameAmountRestriction';
@@ -44,6 +45,7 @@ export class TransactionRuleRestrictions {
4445
'mccs'?: MccsRestriction | null;
4546
'merchantNames'?: MerchantNamesRestriction | null;
4647
'merchants'?: MerchantsRestriction | null;
48+
'priority'?: PriorityRestriction | null;
4749
'processingTypes'?: ProcessingTypesRestriction | null;
4850
'riskScores'?: RiskScoresRestriction | null;
4951
'sameAmountRestriction'?: SameAmountRestriction | null;
@@ -125,6 +127,11 @@ export class TransactionRuleRestrictions {
125127
"baseName": "merchants",
126128
"type": "MerchantsRestriction | null"
127129
},
130+
{
131+
"name": "priority",
132+
"baseName": "priority",
133+
"type": "PriorityRestriction | null"
134+
},
128135
{
129136
"name": "processingTypes",
130137
"baseName": "processingTypes",

src/typings/balancePlatform/verificationDeadline.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export namespace VerificationDeadline {
6969
IssueCard = 'issueCard',
7070
IssueCardCommercial = 'issueCardCommercial',
7171
IssueCardConsumer = 'issueCardConsumer',
72+
IssueChargeCard = 'issueChargeCard',
73+
IssueChargeCardCommercial = 'issueChargeCardCommercial',
7274
IssueCreditLimit = 'issueCreditLimit',
7375
LocalAcceptance = 'localAcceptance',
7476
Payout = 'payout',
@@ -93,6 +95,8 @@ export namespace VerificationDeadline {
9395
UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries',
9496
UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial',
9597
UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer',
98+
UseChargeCard = 'useChargeCard',
99+
UseChargeCardCommercial = 'useChargeCardCommercial',
96100
WithdrawFromAtm = 'withdrawFromAtm',
97101
WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial',
98102
WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer',

src/typings/balancePlatform/verificationError.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export namespace VerificationError {
9898
IssueCard = 'issueCard',
9999
IssueCardCommercial = 'issueCardCommercial',
100100
IssueCardConsumer = 'issueCardConsumer',
101+
IssueChargeCard = 'issueChargeCard',
102+
IssueChargeCardCommercial = 'issueChargeCardCommercial',
101103
IssueCreditLimit = 'issueCreditLimit',
102104
LocalAcceptance = 'localAcceptance',
103105
Payout = 'payout',
@@ -122,6 +124,8 @@ export namespace VerificationError {
122124
UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries',
123125
UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial',
124126
UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer',
127+
UseChargeCard = 'useChargeCard',
128+
UseChargeCardCommercial = 'useChargeCardCommercial',
125129
WithdrawFromAtm = 'withdrawFromAtm',
126130
WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial',
127131
WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer',

src/typings/balancePlatform/verificationErrorRecursive.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export namespace VerificationErrorRecursive {
8888
IssueCard = 'issueCard',
8989
IssueCardCommercial = 'issueCardCommercial',
9090
IssueCardConsumer = 'issueCardConsumer',
91+
IssueChargeCard = 'issueChargeCard',
92+
IssueChargeCardCommercial = 'issueChargeCardCommercial',
9193
IssueCreditLimit = 'issueCreditLimit',
9294
LocalAcceptance = 'localAcceptance',
9395
Payout = 'payout',
@@ -112,6 +114,8 @@ export namespace VerificationErrorRecursive {
112114
UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries',
113115
UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial',
114116
UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer',
117+
UseChargeCard = 'useChargeCard',
118+
UseChargeCardCommercial = 'useChargeCardCommercial',
115119
WithdrawFromAtm = 'withdrawFromAtm',
116120
WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial',
117121
WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer',

src/typings/checkout/paymentRefundRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class PaymentRefundRequest {
2424
*/
2525
'merchantAccount': string;
2626
/**
27-
* Your reason for the refund request
27+
* The reason for the refund request. Possible values: * **FRAUD** * **CUSTOMER REQUEST** * **RETURN** * **DUPLICATE** * **OTHER**
2828
*/
2929
'merchantRefundReason'?: PaymentRefundRequest.MerchantRefundReasonEnum | null;
3030
/**

src/typings/configurationWebhooks/balance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Balance {
1414
*/
1515
'available': number;
1616
/**
17-
* The sum of transactions that have already been settled.
17+
* The sum of the transactions that have already been settled.
1818
*/
1919
'balance': number;
2020
/**

src/typings/configurationWebhooks/verificationDeadline.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export namespace VerificationDeadline {
6969
IssueCard = 'issueCard',
7070
IssueCardCommercial = 'issueCardCommercial',
7171
IssueCardConsumer = 'issueCardConsumer',
72+
IssueChargeCard = 'issueChargeCard',
73+
IssueChargeCardCommercial = 'issueChargeCardCommercial',
7274
IssueCreditLimit = 'issueCreditLimit',
7375
LocalAcceptance = 'localAcceptance',
7476
Payout = 'payout',
@@ -93,6 +95,8 @@ export namespace VerificationDeadline {
9395
UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries',
9496
UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial',
9597
UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer',
98+
UseChargeCard = 'useChargeCard',
99+
UseChargeCardCommercial = 'useChargeCardCommercial',
96100
WithdrawFromAtm = 'withdrawFromAtm',
97101
WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial',
98102
WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer',

src/typings/configurationWebhooks/verificationError.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export namespace VerificationError {
9898
IssueCard = 'issueCard',
9999
IssueCardCommercial = 'issueCardCommercial',
100100
IssueCardConsumer = 'issueCardConsumer',
101+
IssueChargeCard = 'issueChargeCard',
102+
IssueChargeCardCommercial = 'issueChargeCardCommercial',
101103
IssueCreditLimit = 'issueCreditLimit',
102104
LocalAcceptance = 'localAcceptance',
103105
Payout = 'payout',
@@ -122,6 +124,8 @@ export namespace VerificationError {
122124
UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries',
123125
UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial',
124126
UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer',
127+
UseChargeCard = 'useChargeCard',
128+
UseChargeCardCommercial = 'useChargeCardCommercial',
125129
WithdrawFromAtm = 'withdrawFromAtm',
126130
WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial',
127131
WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer',

src/typings/configurationWebhooks/verificationErrorRecursive.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export namespace VerificationErrorRecursive {
8888
IssueCard = 'issueCard',
8989
IssueCardCommercial = 'issueCardCommercial',
9090
IssueCardConsumer = 'issueCardConsumer',
91+
IssueChargeCard = 'issueChargeCard',
92+
IssueChargeCardCommercial = 'issueChargeCardCommercial',
9193
IssueCreditLimit = 'issueCreditLimit',
9294
LocalAcceptance = 'localAcceptance',
9395
Payout = 'payout',
@@ -112,6 +114,8 @@ export namespace VerificationErrorRecursive {
112114
UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries',
113115
UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial',
114116
UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer',
117+
UseChargeCard = 'useChargeCard',
118+
UseChargeCardCommercial = 'useChargeCardCommercial',
115119
WithdrawFromAtm = 'withdrawFromAtm',
116120
WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial',
117121
WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer',

src/typings/legalEntityManagement/verificationDeadline.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export namespace VerificationDeadline {
6969
IssueCard = 'issueCard',
7070
IssueCardCommercial = 'issueCardCommercial',
7171
IssueCardConsumer = 'issueCardConsumer',
72+
IssueChargeCard = 'issueChargeCard',
73+
IssueChargeCardCommercial = 'issueChargeCardCommercial',
7274
IssueCreditLimit = 'issueCreditLimit',
7375
LocalAcceptance = 'localAcceptance',
7476
Payout = 'payout',
@@ -93,6 +95,8 @@ export namespace VerificationDeadline {
9395
UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries',
9496
UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial',
9597
UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer',
98+
UseChargeCard = 'useChargeCard',
99+
UseChargeCardCommercial = 'useChargeCardCommercial',
96100
WithdrawFromAtm = 'withdrawFromAtm',
97101
WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial',
98102
WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer',

src/typings/legalEntityManagement/verificationError.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export namespace VerificationError {
9898
IssueCard = 'issueCard',
9999
IssueCardCommercial = 'issueCardCommercial',
100100
IssueCardConsumer = 'issueCardConsumer',
101+
IssueChargeCard = 'issueChargeCard',
102+
IssueChargeCardCommercial = 'issueChargeCardCommercial',
101103
IssueCreditLimit = 'issueCreditLimit',
102104
LocalAcceptance = 'localAcceptance',
103105
Payout = 'payout',
@@ -122,6 +124,8 @@ export namespace VerificationError {
122124
UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries',
123125
UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial',
124126
UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer',
127+
UseChargeCard = 'useChargeCard',
128+
UseChargeCardCommercial = 'useChargeCardCommercial',
125129
WithdrawFromAtm = 'withdrawFromAtm',
126130
WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial',
127131
WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer',

src/typings/legalEntityManagement/verificationErrorRecursive.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export namespace VerificationErrorRecursive {
8888
IssueCard = 'issueCard',
8989
IssueCardCommercial = 'issueCardCommercial',
9090
IssueCardConsumer = 'issueCardConsumer',
91+
IssueChargeCard = 'issueChargeCard',
92+
IssueChargeCardCommercial = 'issueChargeCardCommercial',
9193
IssueCreditLimit = 'issueCreditLimit',
9294
LocalAcceptance = 'localAcceptance',
9395
Payout = 'payout',
@@ -112,6 +114,8 @@ export namespace VerificationErrorRecursive {
112114
UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries',
113115
UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial',
114116
UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer',
117+
UseChargeCard = 'useChargeCard',
118+
UseChargeCardCommercial = 'useChargeCardCommercial',
115119
WithdrawFromAtm = 'withdrawFromAtm',
116120
WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial',
117121
WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer',

src/typings/reportWebhooks/reportNotificationData.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export class ReportNotificationData {
2929
*/
3030
'fileName': string;
3131
/**
32+
* The ID of the resource.
33+
*/
34+
'id'?: string;
35+
/**
3236
* The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report`
3337
*/
3438
'reportType': string;
@@ -66,6 +70,11 @@ export class ReportNotificationData {
6670
"baseName": "fileName",
6771
"type": "string"
6872
},
73+
{
74+
"name": "id",
75+
"baseName": "id",
76+
"type": "string"
77+
},
6978
{
7079
"name": "reportType",
7180
"baseName": "reportType",

0 commit comments

Comments
 (0)