Skip to content
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
4 changes: 2 additions & 2 deletions src/typings/capital/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#currency-codes).
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount.
*/
"currency": string;
/**
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
* The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
*/
"value": number;

Expand Down
14 changes: 3 additions & 11 deletions src/typings/capital/grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
* Do not edit this class manually.
*/

import { Amount } from "./amount";
import { Balance } from "./balance";
import { Counterparty } from "./counterparty";
import { GrantCounterparty } from "./grantCounterparty";
import { Status } from "./status";


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

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "amount",
"baseName": "amount",
"type": "Amount | null",
"format": ""
},
{
"name": "balances",
"baseName": "balances",
Expand All @@ -51,7 +43,7 @@ export class Grant {
{
"name": "counterparty",
"baseName": "counterparty",
"type": "Counterparty | null",
"type": "GrantCounterparty | null",
"format": ""
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
*/


export class Counterparty {
export class GrantCounterparty {
/**
* 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.
* The unique identifier of the account holder that receives the grant.
*/
"accountHolderId"?: string;
/**
Expand Down Expand Up @@ -47,7 +47,7 @@ export class Counterparty {
} ];

static getAttributeTypeMap() {
return Counterparty.attributeTypeMap;
return GrantCounterparty.attributeTypeMap;
}

public constructor() {
Expand Down
14 changes: 3 additions & 11 deletions src/typings/capital/grantInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
* Do not edit this class manually.
*/

import { Amount } from "./amount";
import { Counterparty } from "./counterparty";
import { GrantInfoCounterparty } from "./grantInfoCounterparty";


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

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "amount",
"baseName": "amount",
"type": "Amount | null",
"format": ""
},
{
"name": "counterparty",
"baseName": "counterparty",
"type": "Counterparty | null",
"type": "GrantInfoCounterparty | null",
"format": ""
},
{
Expand Down
46 changes: 46 additions & 0 deletions src/typings/capital/grantInfoCounterparty.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.
*/


export class GrantInfoCounterparty {
/**
* The unique identifier of the balance account where the funds are disbursed. The balance account must belong to the specified account holder.
*/
"balanceAccountId"?: string;
/**
* 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.
*/
"transferInstrumentId"?: string;

static readonly discriminator: string | undefined = undefined;

static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "balanceAccountId",
"baseName": "balanceAccountId",
"type": "string",
"format": ""
},
{
"name": "transferInstrumentId",
"baseName": "transferInstrumentId",
"type": "string",
"format": ""
} ];

static getAttributeTypeMap() {
return GrantInfoCounterparty.attributeTypeMap;
}

public constructor() {
}
}

3 changes: 2 additions & 1 deletion src/typings/capital/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export * from "./bankAccountIdentification"
export * from "./cALocalAccountIdentification"
export * from "./cALocalBankAccountType"
export * from "./cZLocalAccountIdentification"
export * from "./counterparty"
export * from "./dKLocalAccountIdentification"
export * from "./defaultErrorResponseEntity"
export * from "./disbursement"
Expand All @@ -22,7 +21,9 @@ export * from "./fundsCollection"
export * from "./fundsCollectionType"
export * from "./grant"
export * from "./grantAccount"
export * from "./grantCounterparty"
export * from "./grantInfo"
export * from "./grantInfoCounterparty"
export * from "./grantLimit"
export * from "./grantOffer"
export * from "./grantOfferFee"
Expand Down
6 changes: 4 additions & 2 deletions src/typings/capital/objectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { BankAccountIdentification } from "./bankAccountIdentification";
import { CALocalAccountIdentification } from "./cALocalAccountIdentification";
import { CALocalBankAccountType } from "./cALocalBankAccountType";
import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification";
import { Counterparty } from "./counterparty";
import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification";
import { DefaultErrorResponseEntity } from "./defaultErrorResponseEntity";
import { Disbursement } from "./disbursement";
Expand All @@ -24,7 +23,9 @@ import { FundsCollection } from "./fundsCollection";
import { FundsCollectionType } from "./fundsCollectionType";
import { Grant } from "./grant";
import { GrantAccount } from "./grantAccount";
import { GrantCounterparty } from "./grantCounterparty";
import { GrantInfo } from "./grantInfo";
import { GrantInfoCounterparty } from "./grantInfoCounterparty";
import { GrantLimit } from "./grantLimit";
import { GrantOffer } from "./grantOffer";
import { GrantOfferFee } from "./grantOfferFee";
Expand Down Expand Up @@ -88,7 +89,6 @@ let typeMap: {[index: string]: any} = {
"BankAccountIdentification": BankAccountIdentification,
"CALocalAccountIdentification": CALocalAccountIdentification,
"CZLocalAccountIdentification": CZLocalAccountIdentification,
"Counterparty": Counterparty,
"DKLocalAccountIdentification": DKLocalAccountIdentification,
"DefaultErrorResponseEntity": DefaultErrorResponseEntity,
"Disbursement": Disbursement,
Expand All @@ -100,7 +100,9 @@ let typeMap: {[index: string]: any} = {
"FundsCollection": FundsCollection,
"Grant": Grant,
"GrantAccount": GrantAccount,
"GrantCounterparty": GrantCounterparty,
"GrantInfo": GrantInfo,
"GrantInfoCounterparty": GrantInfoCounterparty,
"GrantLimit": GrantLimit,
"GrantOffer": GrantOffer,
"GrantOfferFee": GrantOfferFee,
Expand Down
4 changes: 1 addition & 3 deletions src/typings/capital/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class Status {
*/
"actions"?: Array<Action>;
/**
* The code for the status of the grant. Possible values: - **Pending** - **Active** - **Repaid** - **WrittenOff** - **Failed** - **Revoked** - **Requested** - **Underwriting** - **Reviewing** - **Assessed** - **Approved** - **Rejected** - **Cancelled**
* The code for the status of the grant. Possible values: - **Pending** - **Active** - **Repaid** - **WrittenOff** - **Failed** - **Revoked** - **Requested** - **Reviewing** - **Approved** - **Rejected** - **Cancelled**
*/
"code": Status.CodeEnum;

Expand Down Expand Up @@ -55,9 +55,7 @@ export namespace Status {
Failed = 'Failed',
Revoked = 'Revoked',
Requested = 'Requested',
Underwriting = 'Underwriting',
Reviewing = 'Reviewing',
Assessed = 'Assessed',
Approved = 'Approved',
Rejected = 'Rejected',
Cancelled = 'Cancelled'
Expand Down