diff --git a/src/typings/transfers/capitalGrant.ts b/src/typings/transfers/capitalGrant.ts index 04bd8c98e..8dc10f7b4 100644 --- a/src/typings/transfers/capitalGrant.ts +++ b/src/typings/transfers/capitalGrant.ts @@ -9,15 +9,15 @@ import { Amount } from "./amount"; import { CapitalBalance } from "./capitalBalance"; -import { Counterparty } from "./counterparty"; import { Fee } from "./fee"; +import { GrantCounterparty } from "./grantCounterparty"; import { Repayment } from "./repayment"; export class CapitalGrant { "amount"?: Amount | null; "balances": CapitalBalance; - "counterparty"?: Counterparty | null; + "counterparty"?: GrantCounterparty | null; "fee"?: Fee | null; /** * The identifier of the grant account used for the grant. @@ -57,7 +57,7 @@ export class CapitalGrant { { "name": "counterparty", "baseName": "counterparty", - "type": "Counterparty | null", + "type": "GrantCounterparty | null", "format": "" }, { diff --git a/src/typings/transfers/capitalGrantInfo.ts b/src/typings/transfers/capitalGrantInfo.ts index 7907b703b..feb70d32a 100644 --- a/src/typings/transfers/capitalGrantInfo.ts +++ b/src/typings/transfers/capitalGrantInfo.ts @@ -7,11 +7,11 @@ * Do not edit this class manually. */ -import { Counterparty } from "./counterparty"; +import { GrantInfoCounterparty } from "./grantInfoCounterparty"; export class CapitalGrantInfo { - "counterparty"?: Counterparty | null; + "counterparty"?: GrantInfoCounterparty | null; /** * The identifier of the grant account used for the grant. */ @@ -29,7 +29,7 @@ export class CapitalGrantInfo { { "name": "counterparty", "baseName": "counterparty", - "type": "Counterparty | null", + "type": "GrantInfoCounterparty | null", "format": "" }, { diff --git a/src/typings/transfers/counterparty.ts b/src/typings/transfers/grantCounterparty.ts similarity index 85% rename from src/typings/transfers/counterparty.ts rename to src/typings/transfers/grantCounterparty.ts index 944461b94..fd77e6d40 100644 --- a/src/typings/transfers/counterparty.ts +++ b/src/typings/transfers/grantCounterparty.ts @@ -8,9 +8,9 @@ */ -export class Counterparty { +export class GrantCounterparty { /** - * The identifier of the receiving account holder. The payout will default to the primary balance account of this account holder if no `balanceAccountId` is provided. + * The identifier of the receiving account holder. */ "accountHolderId"?: string; /** @@ -47,7 +47,7 @@ export class Counterparty { } ]; static getAttributeTypeMap() { - return Counterparty.attributeTypeMap; + return GrantCounterparty.attributeTypeMap; } public constructor() { diff --git a/src/typings/transfers/grantInfoCounterparty.ts b/src/typings/transfers/grantInfoCounterparty.ts new file mode 100644 index 000000000..d873e8129 --- /dev/null +++ b/src/typings/transfers/grantInfoCounterparty.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v4 + * + * + * 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 identifier of the balance account that belongs to the receiving account holder. + */ + "balanceAccountId"?: string; + /** + * The identifier of the transfer instrument that belongs to the legal entity of the 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() { + } +} + diff --git a/src/typings/transfers/interchangeData.ts b/src/typings/transfers/interchangeData.ts new file mode 100644 index 000000000..8f75e8255 --- /dev/null +++ b/src/typings/transfers/interchangeData.ts @@ -0,0 +1,60 @@ +/* + * The version of the OpenAPI document: v4 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from "./amount"; + + +export class InterchangeData { + "interchangeAmount"?: Amount | null; + /** + * A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for. The code is assigned based on the card type, entry mode, and security data provided. + */ + "interchangeRateIndicator"?: string; + /** + * The type of events data. Possible values: - **interchangeData**: information about the interchange fee applied to a transaction. + */ + "type": InterchangeData.TypeEnum; + + 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": "interchangeAmount", + "baseName": "interchangeAmount", + "type": "Amount | null", + "format": "" + }, + { + "name": "interchangeRateIndicator", + "baseName": "interchangeRateIndicator", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "InterchangeData.TypeEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return InterchangeData.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace InterchangeData { + export enum TypeEnum { + InterchangeData = 'interchangeData' + } +} diff --git a/src/typings/transfers/models.ts b/src/typings/transfers/models.ts index 58a7dcc83..01f20a998 100644 --- a/src/typings/transfers/models.ts +++ b/src/typings/transfers/models.ts @@ -20,7 +20,6 @@ export * from "./capitalGrants" export * from "./card" export * from "./cardIdentification" export * from "./confirmationTrackingData" -export * from "./counterparty" export * from "./counterpartyInfoV3" export * from "./counterpartyV3" export * from "./dKLocalAccountIdentification" @@ -31,9 +30,12 @@ export * from "./externalReason" export * from "./fee" export * from "./findTransfersResponse" export * from "./fundingInstrument" +export * from "./grantCounterparty" +export * from "./grantInfoCounterparty" export * from "./hKLocalAccountIdentification" export * from "./hULocalAccountIdentification" export * from "./ibanAccountIdentification" +export * from "./interchangeData" export * from "./internalCategoryData" export * from "./internalReviewTrackingData" export * from "./invalidField" diff --git a/src/typings/transfers/modification.ts b/src/typings/transfers/modification.ts index 172832e37..e2ddeeab1 100644 --- a/src/typings/transfers/modification.ts +++ b/src/typings/transfers/modification.ts @@ -111,6 +111,7 @@ export namespace Modification { Failed = 'failed', Fee = 'fee', FeePending = 'feePending', + InterchangeAdjusted = 'interchangeAdjusted', InternalTransfer = 'internalTransfer', InternalTransferPending = 'internalTransferPending', InvoiceDeduction = 'invoiceDeduction', diff --git a/src/typings/transfers/objectSerializer.ts b/src/typings/transfers/objectSerializer.ts index e14146cc6..3489d185b 100644 --- a/src/typings/transfers/objectSerializer.ts +++ b/src/typings/transfers/objectSerializer.ts @@ -22,7 +22,6 @@ import { CapitalGrants } from "./capitalGrants"; import { Card } from "./card"; import { CardIdentification } from "./cardIdentification"; import { ConfirmationTrackingData } from "./confirmationTrackingData"; -import { Counterparty } from "./counterparty"; import { CounterpartyInfoV3 } from "./counterpartyInfoV3"; import { CounterpartyV3 } from "./counterpartyV3"; import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; @@ -33,9 +32,12 @@ import { ExternalReason } from "./externalReason"; import { Fee } from "./fee"; import { FindTransfersResponse } from "./findTransfersResponse"; import { FundingInstrument } from "./fundingInstrument"; +import { GrantCounterparty } from "./grantCounterparty"; +import { GrantInfoCounterparty } from "./grantInfoCounterparty"; import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification"; import { HULocalAccountIdentification } from "./hULocalAccountIdentification"; import { IbanAccountIdentification } from "./ibanAccountIdentification"; +import { InterchangeData } from "./interchangeData"; import { InternalCategoryData } from "./internalCategoryData"; import { InternalReviewTrackingData } from "./internalReviewTrackingData"; import { InvalidField } from "./invalidField"; @@ -127,6 +129,7 @@ let enumsMap: Set = new Set([ "HKLocalAccountIdentification.TypeEnum", "HULocalAccountIdentification.TypeEnum", "IbanAccountIdentification.TypeEnum", + "InterchangeData.TypeEnum", "InternalCategoryData.TypeEnum", "InternalReviewTrackingData.ReasonEnum", "InternalReviewTrackingData.StatusEnum", @@ -208,7 +211,6 @@ let typeMap: {[index: string]: any} = { "Card": Card, "CardIdentification": CardIdentification, "ConfirmationTrackingData": ConfirmationTrackingData, - "Counterparty": Counterparty, "CounterpartyInfoV3": CounterpartyInfoV3, "CounterpartyV3": CounterpartyV3, "DKLocalAccountIdentification": DKLocalAccountIdentification, @@ -219,9 +221,12 @@ let typeMap: {[index: string]: any} = { "Fee": Fee, "FindTransfersResponse": FindTransfersResponse, "FundingInstrument": FundingInstrument, + "GrantCounterparty": GrantCounterparty, + "GrantInfoCounterparty": GrantInfoCounterparty, "HKLocalAccountIdentification": HKLocalAccountIdentification, "HULocalAccountIdentification": HULocalAccountIdentification, "IbanAccountIdentification": IbanAccountIdentification, + "InterchangeData": InterchangeData, "InternalCategoryData": InternalCategoryData, "InternalReviewTrackingData": InternalReviewTrackingData, "InvalidField": InvalidField, diff --git a/src/typings/transfers/transfer.ts b/src/typings/transfers/transfer.ts index 66e35a6c1..87ce26f80 100644 --- a/src/typings/transfers/transfer.ts +++ b/src/typings/transfers/transfer.ts @@ -345,6 +345,7 @@ export namespace Transfer { Failed = 'failed', Fee = 'fee', FeePending = 'feePending', + InterchangeAdjusted = 'interchangeAdjusted', InternalTransfer = 'internalTransfer', InternalTransferPending = 'internalTransferPending', InvoiceDeduction = 'invoiceDeduction', diff --git a/src/typings/transfers/transferData.ts b/src/typings/transfers/transferData.ts index 80bcb5dc7..2d70dbfff 100644 --- a/src/typings/transfers/transferData.ts +++ b/src/typings/transfers/transferData.ts @@ -431,6 +431,7 @@ export namespace TransferData { Failed = 'failed', Fee = 'fee', FeePending = 'feePending', + InterchangeAdjusted = 'interchangeAdjusted', InternalTransfer = 'internalTransfer', InternalTransferPending = 'internalTransferPending', InvoiceDeduction = 'invoiceDeduction', diff --git a/src/typings/transfers/transferEvent.ts b/src/typings/transfers/transferEvent.ts index 72ef684d0..f32862e6b 100644 --- a/src/typings/transfers/transferEvent.ts +++ b/src/typings/transfers/transferEvent.ts @@ -321,6 +321,7 @@ export namespace TransferEvent { Failed = 'failed', Fee = 'fee', FeePending = 'feePending', + InterchangeAdjusted = 'interchangeAdjusted', InternalTransfer = 'internalTransfer', InternalTransferPending = 'internalTransferPending', InvoiceDeduction = 'invoiceDeduction', @@ -356,6 +357,7 @@ export namespace TransferEvent { } export enum TypeEnum { Accounting = 'accounting', + Tracing = 'tracing', Tracking = 'tracking' } } diff --git a/src/typings/transfers/transferEventEventsDataInner.ts b/src/typings/transfers/transferEventEventsDataInner.ts index e4072e850..62140f251 100644 --- a/src/typings/transfers/transferEventEventsDataInner.ts +++ b/src/typings/transfers/transferEventEventsDataInner.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ +import { InterchangeData } from "./interchangeData"; import { IssuingTransactionData } from "./issuingTransactionData"; import { MerchantPurchaseData } from "./merchantPurchaseData"; @@ -16,7 +17,7 @@ import { MerchantPurchaseData } from "./merchantPurchaseData"; * Type * @export */ -export type TransferEventEventsDataInner = IssuingTransactionData | MerchantPurchaseData; +export type TransferEventEventsDataInner = InterchangeData | IssuingTransactionData | MerchantPurchaseData; /** * @type TransferEventEventsDataInnerClass