Skip to content

Commit 966c8a9

Browse files
[capital] Automated update from Adyen/adyen-openapi@0410567
1 parent b8e6e2c commit 966c8a9

File tree

8 files changed

+64
-33
lines changed

8 files changed

+64
-33
lines changed

src/typings/capital/amount.ts

Lines changed: 2 additions & 2 deletions
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#currency-codes).
13+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount.
1414
*/
1515
"currency": string;
1616
/**
17-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
17+
* The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
1818
*/
1919
"value": number;
2020

src/typings/capital/grant.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@
77
* Do not edit this class manually.
88
*/
99

10-
import { Amount } from "./amount";
1110
import { Balance } from "./balance";
12-
import { Counterparty } from "./counterparty";
11+
import { GrantCounterparty } from "./grantCounterparty";
1312
import { Status } from "./status";
1413

1514

1615
export class Grant {
17-
"amount"?: Amount | null;
1816
"balances": Balance;
19-
"counterparty"?: Counterparty | null;
17+
"counterparty"?: GrantCounterparty | null;
2018
/**
2119
* The unique identifier of the grant account that tracks this grant.
2220
*/
@@ -36,12 +34,6 @@ export class Grant {
3634
static readonly mapping: {[index: string]: string} | undefined = undefined;
3735

3836
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
39-
{
40-
"name": "amount",
41-
"baseName": "amount",
42-
"type": "Amount | null",
43-
"format": ""
44-
},
4537
{
4638
"name": "balances",
4739
"baseName": "balances",
@@ -51,7 +43,7 @@ export class Grant {
5143
{
5244
"name": "counterparty",
5345
"baseName": "counterparty",
54-
"type": "Counterparty | null",
46+
"type": "GrantCounterparty | null",
5547
"format": ""
5648
},
5749
{
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
*/
99

1010

11-
export class Counterparty {
11+
export class GrantCounterparty {
1212
/**
13-
* The unique identifier of the account holder that receives the grant. If no `balanceAccountId` is provided, the grant funds are disbursed to the primary balance account of this account holder.
13+
* The unique identifier of the account holder that receives the grant.
1414
*/
1515
"accountHolderId"?: string;
1616
/**
@@ -47,7 +47,7 @@ export class Counterparty {
4747
} ];
4848

4949
static getAttributeTypeMap() {
50-
return Counterparty.attributeTypeMap;
50+
return GrantCounterparty.attributeTypeMap;
5151
}
5252

5353
public constructor() {

src/typings/capital/grantInfo.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
* Do not edit this class manually.
88
*/
99

10-
import { Amount } from "./amount";
11-
import { Counterparty } from "./counterparty";
10+
import { GrantInfoCounterparty } from "./grantInfoCounterparty";
1211

1312

1413
export class GrantInfo {
15-
"amount"?: Amount | null;
16-
"counterparty"?: Counterparty | null;
14+
"counterparty"?: GrantInfoCounterparty | null;
1715
/**
1816
* The unique identifier of the grant account that tracks this grant.
1917
*/
@@ -28,16 +26,10 @@ export class GrantInfo {
2826
static readonly mapping: {[index: string]: string} | undefined = undefined;
2927

3028
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
31-
{
32-
"name": "amount",
33-
"baseName": "amount",
34-
"type": "Amount | null",
35-
"format": ""
36-
},
3729
{
3830
"name": "counterparty",
3931
"baseName": "counterparty",
40-
"type": "Counterparty | null",
32+
"type": "GrantInfoCounterparty | null",
4133
"format": ""
4234
},
4335
{
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* The version of the OpenAPI document: v1
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 GrantInfoCounterparty {
12+
/**
13+
* The unique identifier of the balance account where the funds are disbursed. The balance account must belong to the specified account holder.
14+
*/
15+
"balanceAccountId"?: string;
16+
/**
17+
* The unique identifier of the transfer instrument where the funds are disbursed. The transfer instrument must belong to the legal entity of the specified account holder.
18+
*/
19+
"transferInstrumentId"?: string;
20+
21+
static readonly discriminator: string | undefined = undefined;
22+
23+
static readonly mapping: {[index: string]: string} | undefined = undefined;
24+
25+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
26+
{
27+
"name": "balanceAccountId",
28+
"baseName": "balanceAccountId",
29+
"type": "string",
30+
"format": ""
31+
},
32+
{
33+
"name": "transferInstrumentId",
34+
"baseName": "transferInstrumentId",
35+
"type": "string",
36+
"format": ""
37+
} ];
38+
39+
static getAttributeTypeMap() {
40+
return GrantInfoCounterparty.attributeTypeMap;
41+
}
42+
43+
public constructor() {
44+
}
45+
}
46+

src/typings/capital/models.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export * from "./bankAccountIdentification"
99
export * from "./cALocalAccountIdentification"
1010
export * from "./cALocalBankAccountType"
1111
export * from "./cZLocalAccountIdentification"
12-
export * from "./counterparty"
1312
export * from "./dKLocalAccountIdentification"
1413
export * from "./defaultErrorResponseEntity"
1514
export * from "./disbursement"
@@ -22,7 +21,9 @@ export * from "./fundsCollection"
2221
export * from "./fundsCollectionType"
2322
export * from "./grant"
2423
export * from "./grantAccount"
24+
export * from "./grantCounterparty"
2525
export * from "./grantInfo"
26+
export * from "./grantInfoCounterparty"
2627
export * from "./grantLimit"
2728
export * from "./grantOffer"
2829
export * from "./grantOfferFee"

src/typings/capital/objectSerializer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { BankAccountIdentification } from "./bankAccountIdentification";
1111
import { CALocalAccountIdentification } from "./cALocalAccountIdentification";
1212
import { CALocalBankAccountType } from "./cALocalBankAccountType";
1313
import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification";
14-
import { Counterparty } from "./counterparty";
1514
import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification";
1615
import { DefaultErrorResponseEntity } from "./defaultErrorResponseEntity";
1716
import { Disbursement } from "./disbursement";
@@ -24,7 +23,9 @@ import { FundsCollection } from "./fundsCollection";
2423
import { FundsCollectionType } from "./fundsCollectionType";
2524
import { Grant } from "./grant";
2625
import { GrantAccount } from "./grantAccount";
26+
import { GrantCounterparty } from "./grantCounterparty";
2727
import { GrantInfo } from "./grantInfo";
28+
import { GrantInfoCounterparty } from "./grantInfoCounterparty";
2829
import { GrantLimit } from "./grantLimit";
2930
import { GrantOffer } from "./grantOffer";
3031
import { GrantOfferFee } from "./grantOfferFee";
@@ -88,7 +89,6 @@ let typeMap: {[index: string]: any} = {
8889
"BankAccountIdentification": BankAccountIdentification,
8990
"CALocalAccountIdentification": CALocalAccountIdentification,
9091
"CZLocalAccountIdentification": CZLocalAccountIdentification,
91-
"Counterparty": Counterparty,
9292
"DKLocalAccountIdentification": DKLocalAccountIdentification,
9393
"DefaultErrorResponseEntity": DefaultErrorResponseEntity,
9494
"Disbursement": Disbursement,
@@ -100,7 +100,9 @@ let typeMap: {[index: string]: any} = {
100100
"FundsCollection": FundsCollection,
101101
"Grant": Grant,
102102
"GrantAccount": GrantAccount,
103+
"GrantCounterparty": GrantCounterparty,
103104
"GrantInfo": GrantInfo,
105+
"GrantInfoCounterparty": GrantInfoCounterparty,
104106
"GrantLimit": GrantLimit,
105107
"GrantOffer": GrantOffer,
106108
"GrantOfferFee": GrantOfferFee,

src/typings/capital/status.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class Status {
1616
*/
1717
"actions"?: Array<Action>;
1818
/**
19-
* The code for the status of the grant. Possible values: - **Pending** - **Active** - **Repaid** - **WrittenOff** - **Failed** - **Revoked** - **Requested** - **Underwriting** - **Reviewing** - **Assessed** - **Approved** - **Rejected** - **Cancelled**
19+
* The code for the status of the grant. Possible values: - **Pending** - **Active** - **Repaid** - **WrittenOff** - **Failed** - **Revoked** - **Requested** - **Reviewing** - **Approved** - **Rejected** - **Cancelled**
2020
*/
2121
"code": Status.CodeEnum;
2222

@@ -55,9 +55,7 @@ export namespace Status {
5555
Failed = 'Failed',
5656
Revoked = 'Revoked',
5757
Requested = 'Requested',
58-
Underwriting = 'Underwriting',
5958
Reviewing = 'Reviewing',
60-
Assessed = 'Assessed',
6159
Approved = 'Approved',
6260
Rejected = 'Rejected',
6361
Cancelled = 'Cancelled'

0 commit comments

Comments
 (0)