Skip to content

Commit 73398da

Browse files
[create-pull-request] automated change (#1261)
1 parent 4b2ccec commit 73398da

Some content is hidden

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

43 files changed

+531
-122
lines changed

src/services/balancePlatform/accountHoldersApi.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import Client from "../../client";
1313
import { AccountHolder } from "../../typings/balancePlatform/models";
1414
import { AccountHolderInfo } from "../../typings/balancePlatform/models";
1515
import { AccountHolderUpdateRequest } from "../../typings/balancePlatform/models";
16+
import { GetTaxFormResponse } from "../../typings/balancePlatform/models";
1617
import { PaginatedBalanceAccountsResponse } from "../../typings/balancePlatform/models";
1718
import { IRequest } from "../../typings/requestOptions";
1819
import Resource from "../resource";
@@ -66,6 +67,26 @@ export class AccountHoldersApi extends Service {
6667
return ObjectSerializer.deserialize(response, "PaginatedBalanceAccountsResponse");
6768
}
6869

70+
/**
71+
* @summary Get a tax form
72+
* @param id {@link string } The unique identifier of the account holder.
73+
* @param formType {@link 'US1099k' | 'US1099nec' } The type of tax form you want to retrieve. Accepted values are **us1099k** and **us1099nec**
74+
* @param year {@link number } The tax year in YYYY format for the tax form you want to retrieve
75+
* @param requestOptions {@link IRequest.Options}
76+
* @return {@link GetTaxFormResponse }
77+
*/
78+
public async getTaxForm(id: string, requestOptions?: IRequest.Options): Promise<GetTaxFormResponse> {
79+
const endpoint = `${this.baseUrl}/accountHolders/{id}/taxForms`
80+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
81+
const resource = new Resource(this, endpoint);
82+
const response = await getJsonResponse<string, GetTaxFormResponse>(
83+
resource,
84+
"",
85+
{ ...requestOptions, method: "GET" }
86+
);
87+
return ObjectSerializer.deserialize(response, "GetTaxFormResponse");
88+
}
89+
6990
/**
7091
* @summary Update an account holder
7192
* @param id {@link string } The unique identifier of the account holder.

src/services/management/myAPICredentialApi.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import Client from "../../client";
1313
import { AllowedOrigin } from "../../typings/management/models";
1414
import { AllowedOriginsResponse } from "../../typings/management/models";
1515
import { CreateAllowedOriginRequest } from "../../typings/management/models";
16+
import { GenerateClientKeyResponse } from "../../typings/management/models";
1617
import { MeApiCredential } from "../../typings/management/models";
1718
import { IRequest } from "../../typings/requestOptions";
1819
import Resource from "../resource";
@@ -111,4 +112,20 @@ export class MyAPICredentialApi extends Service {
111112
);
112113
return ObjectSerializer.deserialize(response, "AllowedOrigin");
113114
}
115+
116+
/**
117+
* @summary Generate new client key for self
118+
* @param requestOptions {@link IRequest.Options}
119+
* @return {@link GenerateClientKeyResponse }
120+
*/
121+
public async generateNewClientKeyForSelf(requestOptions?: IRequest.Options): Promise<GenerateClientKeyResponse> {
122+
const endpoint = `${this.baseUrl}/me/generateClientKey`;
123+
const resource = new Resource(this, endpoint);
124+
const response = await getJsonResponse<string, GenerateClientKeyResponse>(
125+
resource,
126+
"",
127+
{ ...requestOptions, method: "POST" }
128+
);
129+
return ObjectSerializer.deserialize(response, "GenerateClientKeyResponse");
130+
}
114131
}

src/typings/balancePlatform/balanceAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class BalanceAccount {
2020
*/
2121
'balances'?: Array<Balance>;
2222
/**
23-
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**.
23+
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
2424
*/
2525
'defaultCurrencyCode'?: string;
2626
/**

src/typings/balancePlatform/balanceAccountBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class BalanceAccountBase {
1515
*/
1616
'accountHolderId': string;
1717
/**
18-
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**.
18+
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
1919
*/
2020
'defaultCurrencyCode'?: string;
2121
/**

src/typings/balancePlatform/balanceAccountInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class BalanceAccountInfo {
1515
*/
1616
'accountHolderId': string;
1717
/**
18-
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**.
18+
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
1919
*/
2020
'defaultCurrencyCode'?: string;
2121
/**

src/typings/balancePlatform/balanceAccountUpdateRequest.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ export class BalanceAccountUpdateRequest {
1515
*/
1616
'accountHolderId'?: string;
1717
/**
18-
* The default currency code of this balance account, in three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) format. The default value is **EUR**.
19-
*/
20-
'defaultCurrencyCode'?: string;
21-
/**
2218
* A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.
2319
*/
2420
'description'?: string;
@@ -48,11 +44,6 @@ export class BalanceAccountUpdateRequest {
4844
"baseName": "accountHolderId",
4945
"type": "string"
5046
},
51-
{
52-
"name": "defaultCurrencyCode",
53-
"baseName": "defaultCurrencyCode",
54-
"type": "string"
55-
},
5647
{
5748
"name": "description",
5849
"baseName": "description",
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 BankIdentification {
12+
'country'?: string;
13+
'identification'?: string;
14+
'identificationType'?: BankIdentification.IdentificationTypeEnum;
15+
16+
static discriminator: string | undefined = undefined;
17+
18+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
19+
{
20+
"name": "country",
21+
"baseName": "country",
22+
"type": "string"
23+
},
24+
{
25+
"name": "identification",
26+
"baseName": "identification",
27+
"type": "string"
28+
},
29+
{
30+
"name": "identificationType",
31+
"baseName": "identificationType",
32+
"type": "BankIdentification.IdentificationTypeEnum"
33+
} ];
34+
35+
static getAttributeTypeMap() {
36+
return BankIdentification.attributeTypeMap;
37+
}
38+
}
39+
40+
export namespace BankIdentification {
41+
export enum IdentificationTypeEnum {
42+
Iban = 'iban',
43+
RoutingNumber = 'routingNumber'
44+
}
45+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
import { BankIdentification } from './bankIdentification';
11+
12+
export class CounterpartyBankRestriction {
13+
/**
14+
* Defines how the condition must be evaluated.
15+
*/
16+
'operation': string;
17+
/**
18+
* List of counterparty Bank Institutions and the operation.
19+
*/
20+
'value'?: Array<BankIdentification>;
21+
22+
static discriminator: string | undefined = undefined;
23+
24+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
25+
{
26+
"name": "operation",
27+
"baseName": "operation",
28+
"type": "string"
29+
},
30+
{
31+
"name": "value",
32+
"baseName": "value",
33+
"type": "Array<BankIdentification>"
34+
} ];
35+
36+
static getAttributeTypeMap() {
37+
return CounterpartyBankRestriction.attributeTypeMap;
38+
}
39+
}
40+

src/typings/balancePlatform/createSweepConfigurationV2.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ export namespace CreateSweepConfigurationV2 {
123123
}
124124
export enum PrioritiesEnum {
125125
CrossBorder = 'crossBorder',
126-
DirectDebit = 'directDebit',
127126
Fast = 'fast',
128127
Instant = 'instant',
129128
Internal = 'internal',
@@ -133,16 +132,19 @@ export namespace CreateSweepConfigurationV2 {
133132
export enum ReasonEnum {
134133
AmountLimitExceeded = 'amountLimitExceeded',
135134
Approved = 'approved',
135+
BalanceAccountTemporarilyBlockedByTransactionRule = 'balanceAccountTemporarilyBlockedByTransactionRule',
136136
CounterpartyAccountBlocked = 'counterpartyAccountBlocked',
137137
CounterpartyAccountClosed = 'counterpartyAccountClosed',
138138
CounterpartyAccountNotFound = 'counterpartyAccountNotFound',
139139
CounterpartyAddressRequired = 'counterpartyAddressRequired',
140140
CounterpartyBankTimedOut = 'counterpartyBankTimedOut',
141141
CounterpartyBankUnavailable = 'counterpartyBankUnavailable',
142+
DeclinedByTransactionRule = 'declinedByTransactionRule',
142143
Error = 'error',
143144
NotEnoughBalance = 'notEnoughBalance',
144145
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',
145146
RouteNotFound = 'routeNotFound',
147+
ScaFailed = 'scaFailed',
146148
Unknown = 'unknown'
147149
}
148150
export enum StatusEnum {
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 GetTaxFormResponse {
12+
/**
13+
* The content of the tax form in Base64 format.
14+
*/
15+
'content': string;
16+
/**
17+
* The content type of the tax form. Possible values: * **application/pdf**
18+
*/
19+
'contentType'?: GetTaxFormResponse.ContentTypeEnum;
20+
21+
static discriminator: string | undefined = undefined;
22+
23+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24+
{
25+
"name": "content",
26+
"baseName": "content",
27+
"type": "string"
28+
},
29+
{
30+
"name": "contentType",
31+
"baseName": "contentType",
32+
"type": "GetTaxFormResponse.ContentTypeEnum"
33+
} ];
34+
35+
static getAttributeTypeMap() {
36+
return GetTaxFormResponse.attributeTypeMap;
37+
}
38+
}
39+
40+
export namespace GetTaxFormResponse {
41+
export enum ContentTypeEnum {
42+
ApplicationPdf = 'application/pdf'
43+
}
44+
}

0 commit comments

Comments
 (0)