/* Options: Date: 2024-07-06 12:48:19 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://wp-cddws-test.worldpay.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: BankAccountRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export class ResponseError { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public FieldName: string; // @DataMember(Order=3) public Message: string; // @DataMember(Order=4) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[]; // @DataMember(Order=5) public Meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class BankAccountResult { public AccountName: string; public BankName: string; public SortCode: string; public IsValid: boolean; public IsDirectDebitCapable?: boolean; public AccountNumber: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class BankAccountResponse { /** * Contains the bank account lookup result when successful. */ public Result: BankAccountResult; /** * Contains response status, details and errors. */ public ResponseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/BankAccount", "GET, POST") export class BankAccountRequest implements IReturn { /** * The bank sort code. */ // @Required() public Sortcode: string; /** * The bank account number. */ // @Required() public AccountNumber: string; /** * The Csr of the application (if available). */ public Csr: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'BankAccountRequest'; } public getMethod() { return 'POST'; } public createResponse() { return new BankAccountResponse(); } }