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
7 changes: 7 additions & 0 deletions v2/api-validator/src/client/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ export type { FiatTransferDestination } from './models/FiatTransferDestination';
export type { FiatWithdrawal } from './models/FiatWithdrawal';
export type { FiatWithdrawalRequest } from './models/FiatWithdrawalRequest';
export { FixedFeeAmount } from './models/FixedFeeAmount';
export type { FpsUkAccountNumber } from './models/FpsUkAccountNumber';
export type { FpsUkAddress } from './models/FpsUkAddress';
export type { FpsUkBankAccountCountry } from './models/FpsUkBankAccountCountry';
export { FpsUkCapability } from './models/FpsUkCapability';
export type { FpsUkSortCode } from './models/FpsUkSortCode';
export type { FpsUkTransfer } from './models/FpsUkTransfer';
export type { FpsUkTransferDestination } from './models/FpsUkTransferDestination';
export type { FullName } from './models/FullName';
export { GeneralError } from './models/GeneralError';
export type { Iban } from './models/Iban';
Expand Down
3 changes: 2 additions & 1 deletion v2/api-validator/src/client/generated/models/FiatAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import type { AchAddress } from './AchAddress';
import type { ChapsAddress } from './ChapsAddress';
import type { EuropeanSEPAAddress } from './EuropeanSEPAAddress';
import type { FpsUkAddress } from './FpsUkAddress';
import type { IbanAddress } from './IbanAddress';
import type { InteracAddress } from './InteracAddress';
import type { LocalBankTransferAddress } from './LocalBankTransferAddress';
Expand All @@ -15,5 +16,5 @@ import type { PixAddress } from './PixAddress';
import type { SpeiAddress } from './SpeiAddress';
import type { WireAddress } from './WireAddress';

export type FiatAddress = (IbanAddress | AchAddress | WireAddress | SpeiAddress | PixAddress | EuropeanSEPAAddress | LocalBankTransferAddress | MobileMoneyAddressOffRamp | PayIdAddress | InteracAddress | ChapsAddress);
export type FiatAddress = (IbanAddress | AchAddress | WireAddress | SpeiAddress | PixAddress | EuropeanSEPAAddress | LocalBankTransferAddress | MobileMoneyAddressOffRamp | PayIdAddress | InteracAddress | ChapsAddress | FpsUkAddress);

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import type { AchCapability } from './AchCapability';
import type { ChapsCapability } from './ChapsCapability';
import type { EuropeanSEPACapability } from './EuropeanSEPACapability';
import type { FpsUkCapability } from './FpsUkCapability';
import type { IbanCapability } from './IbanCapability';
import type { InteracCapability } from './InteracCapability';
import type { InternalTransferMethod } from './InternalTransferMethod';
Expand All @@ -16,5 +17,5 @@ import type { PixCapability } from './PixCapability';
import type { SpeiCapability } from './SpeiCapability';
import type { WireCapability } from './WireCapability';

export type FiatCapability = (IbanCapability | AchCapability | WireCapability | SpeiCapability | PixCapability | EuropeanSEPACapability | LocalBankTransferCapability | MobileMoneyCapability | PayIdCapability | InteracCapability | ChapsCapability | InternalTransferMethod);
export type FiatCapability = (IbanCapability | AchCapability | WireCapability | SpeiCapability | PixCapability | EuropeanSEPACapability | LocalBankTransferCapability | MobileMoneyCapability | PayIdCapability | InteracCapability | ChapsCapability | FpsUkCapability | InternalTransferMethod);

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import type { AchAddress } from './AchAddress';
import type { ChapsAddress } from './ChapsAddress';
import type { EuropeanSEPAAddress } from './EuropeanSEPAAddress';
import type { FpsUkAddress } from './FpsUkAddress';
import type { IbanAddress } from './IbanAddress';
import type { InteracAddressPaymentInstruction } from './InteracAddressPaymentInstruction';
import type { InternalTransferAddress } from './InternalTransferAddress';
Expand All @@ -19,5 +20,5 @@ import type { WireAddress } from './WireAddress';
/**
* Fiat payment instruction for on-ramp
*/
export type FiatPaymentInstruction = (IbanAddress | AchAddress | WireAddress | SpeiAddress | PixAddressPaymentInstruction | ChapsAddress | EuropeanSEPAAddress | LocalBankTransferAddressPaymentInstruction | MobileMoneyAddressPaymentInstruction | PayIdAddress | InteracAddressPaymentInstruction | InternalTransferAddress);
export type FiatPaymentInstruction = (IbanAddress | AchAddress | WireAddress | SpeiAddress | PixAddressPaymentInstruction | ChapsAddress | FpsUkAddress | EuropeanSEPAAddress | LocalBankTransferAddressPaymentInstruction | MobileMoneyAddressPaymentInstruction | PayIdAddress | InteracAddressPaymentInstruction | InternalTransferAddress);

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* FPS UK account number (8 digits)
*/
export type FpsUkAccountNumber = string;
22 changes: 22 additions & 0 deletions v2/api-validator/src/client/generated/models/FpsUkAddress.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { AccountHolderDetails } from './AccountHolderDetails';
import type { FpsUkAccountNumber } from './FpsUkAccountNumber';
import type { FpsUkBankAccountCountry } from './FpsUkBankAccountCountry';
import type { FpsUkCapability } from './FpsUkCapability';
import type { FpsUkSortCode } from './FpsUkSortCode';

export type FpsUkAddress = (FpsUkCapability & {
accountHolder: AccountHolderDetails;
accountNumber: FpsUkAccountNumber;
sortCode: FpsUkSortCode;
bankAccountCountry?: FpsUkBankAccountCountry;
/**
* Optional bank name
*/
bankName?: string;
});

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* FPS UK bank account country (ISO 3166-1 alpha-2)
*/
export type FpsUkBankAccountCountry = string;
21 changes: 21 additions & 0 deletions v2/api-validator/src/client/generated/models/FpsUkCapability.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { NationalCurrency } from './NationalCurrency';

export type FpsUkCapability = {
asset: NationalCurrency;
transferMethod: FpsUkCapability.transferMethod;
};

export namespace FpsUkCapability {

export enum transferMethod {
FPS_UK = 'FpsUk',
}


}

9 changes: 9 additions & 0 deletions v2/api-validator/src/client/generated/models/FpsUkSortCode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* FPS UK 6-digit sort code
*/
export type FpsUkSortCode = string;
11 changes: 11 additions & 0 deletions v2/api-validator/src/client/generated/models/FpsUkTransfer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { FpsUkTransferDestination } from './FpsUkTransferDestination';

export type FpsUkTransfer = (FpsUkTransferDestination & {
referenceId?: string;
});

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { FpsUkAddress } from './FpsUkAddress';
import type { PositiveAmount } from './PositiveAmount';

export type FpsUkTransferDestination = (FpsUkAddress & {
amount: PositiveAmount;
});

4 changes: 4 additions & 0 deletions v2/api-validator/src/server/controllers/ramps-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
BridgeProperties,
ChapsAddress,
ChapsCapability,
FpsUkAddress,
FpsUkCapability,
EuropeanSEPAAddress,
EuropeanSEPACapability,
FiatAddress,
Expand Down Expand Up @@ -247,6 +249,8 @@ function getTransferMethod(
return fakeSchemaObject('PixAddressPaymentInstruction') as PixAddressPaymentInstruction;
case ChapsCapability.transferMethod.CHAPS:
return fakeSchemaObject('ChapsAddress') as ChapsAddress;
case FpsUkCapability.transferMethod.FPS_UK:
return fakeSchemaObject('FpsUkAddress') as FpsUkAddress;
case EuropeanSEPACapability.transferMethod.EUROPEAN_SEPA:
return fakeSchemaObject('EuropeanSEPAAddress') as EuropeanSEPAAddress;
case LocalBankTransferCapability.transferMethod.LBT:
Expand Down
Loading
Loading