/* Options: Date: 2024-07-06 11:54:22 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://wpcdd-featuretest-ws.worldpay.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AllChecksOrderDataRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Partner implements IConvertible { String? PartnerName; String? PartnerId; Partner({this.PartnerName,this.PartnerId}); Partner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PartnerName = json['PartnerName']; PartnerId = json['PartnerId']; return this; } Map toJson() => { 'PartnerName': PartnerName, 'PartnerId': PartnerId }; getTypeName() => "Partner"; TypeContext? context = _ctx; } class Person implements IConvertible { String? Title; String? FirstName; String? MiddleName; String? LastName; Person({this.Title,this.FirstName,this.MiddleName,this.LastName}); Person.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Title = json['Title']; FirstName = json['FirstName']; MiddleName = json['MiddleName']; LastName = json['LastName']; return this; } Map toJson() => { 'Title': Title, 'FirstName': FirstName, 'MiddleName': MiddleName, 'LastName': LastName }; getTypeName() => "Person"; TypeContext? context = _ctx; } class Contact extends Person implements IConvertible { String? IdpGuid; String? TelephoneNumber; String? AltTelephoneNumber; String? Email; String? Position; String? PreferredContactMethod; String? PreferredContactBestTime; Contact({this.IdpGuid,this.TelephoneNumber,this.AltTelephoneNumber,this.Email,this.Position,this.PreferredContactMethod,this.PreferredContactBestTime}); Contact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); IdpGuid = json['IdpGuid']; TelephoneNumber = json['TelephoneNumber']; AltTelephoneNumber = json['AltTelephoneNumber']; Email = json['Email']; Position = json['Position']; PreferredContactMethod = json['PreferredContactMethod']; PreferredContactBestTime = json['PreferredContactBestTime']; return this; } Map toJson() => super.toJson()..addAll({ 'IdpGuid': IdpGuid, 'TelephoneNumber': TelephoneNumber, 'AltTelephoneNumber': AltTelephoneNumber, 'Email': Email, 'Position': Position, 'PreferredContactMethod': PreferredContactMethod, 'PreferredContactBestTime': PreferredContactBestTime }); getTypeName() => "Contact"; TypeContext? context = _ctx; } class AuthorisedSigner extends Contact implements IConvertible { DateTime? DateOfBirth; String? CountryCode; AuthorisedSigner({this.DateOfBirth,this.CountryCode}); AuthorisedSigner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DateOfBirth = JsonConverters.fromJson(json['DateOfBirth'],'DateTime',context!); CountryCode = json['CountryCode']; return this; } Map toJson() => super.toJson()..addAll({ 'DateOfBirth': JsonConverters.toJson(DateOfBirth,'DateTime',context!), 'CountryCode': CountryCode }); getTypeName() => "AuthorisedSigner"; TypeContext? context = _ctx; } class OrderMeta implements IConvertible { String? SourceSystem; String? SourceSystemIdentifier; String? Csr; String? UltimateParentId; String? OrderType; String? CustomerType; Partner? Partner; String? SellerCode; String? SellerEmail; String? SpecialInstructions; AuthorisedSigner? Contact; String? OfferDetails; DateTime? DateContractAccepted; bool? WorldpayBusinessFinanceInterest; bool? Sar; bool? HasSupportingFiles; OrderMeta({this.SourceSystem,this.SourceSystemIdentifier,this.Csr,this.UltimateParentId,this.OrderType,this.CustomerType,this.Partner,this.SellerCode,this.SellerEmail,this.SpecialInstructions,this.Contact,this.OfferDetails,this.DateContractAccepted,this.WorldpayBusinessFinanceInterest,this.Sar,this.HasSupportingFiles}); OrderMeta.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SourceSystem = json['SourceSystem']; SourceSystemIdentifier = json['SourceSystemIdentifier']; Csr = json['Csr']; UltimateParentId = json['UltimateParentId']; OrderType = json['OrderType']; CustomerType = json['CustomerType']; Partner = JsonConverters.fromJson(json['Partner'],'Partner',context!); SellerCode = json['SellerCode']; SellerEmail = json['SellerEmail']; SpecialInstructions = json['SpecialInstructions']; Contact = JsonConverters.fromJson(json['Contact'],'AuthorisedSigner',context!); OfferDetails = json['OfferDetails']; DateContractAccepted = JsonConverters.fromJson(json['DateContractAccepted'],'DateTime',context!); WorldpayBusinessFinanceInterest = json['WorldpayBusinessFinanceInterest']; Sar = json['Sar']; HasSupportingFiles = json['HasSupportingFiles']; return this; } Map toJson() => { 'SourceSystem': SourceSystem, 'SourceSystemIdentifier': SourceSystemIdentifier, 'Csr': Csr, 'UltimateParentId': UltimateParentId, 'OrderType': OrderType, 'CustomerType': CustomerType, 'Partner': JsonConverters.toJson(Partner,'Partner',context!), 'SellerCode': SellerCode, 'SellerEmail': SellerEmail, 'SpecialInstructions': SpecialInstructions, 'Contact': JsonConverters.toJson(Contact,'AuthorisedSigner',context!), 'OfferDetails': OfferDetails, 'DateContractAccepted': JsonConverters.toJson(DateContractAccepted,'DateTime',context!), 'WorldpayBusinessFinanceInterest': WorldpayBusinessFinanceInterest, 'Sar': Sar, 'HasSupportingFiles': HasSupportingFiles }; getTypeName() => "OrderMeta"; TypeContext? context = _ctx; } class Address implements IConvertible { String? Address1; String? Address2; String? Address3; String? Postcode; String? City; String? State; String? Countrycode; Address({this.Address1,this.Address2,this.Address3,this.Postcode,this.City,this.State,this.Countrycode}); Address.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Address1 = json['Address1']; Address2 = json['Address2']; Address3 = json['Address3']; Postcode = json['Postcode']; City = json['City']; State = json['State']; Countrycode = json['Countrycode']; return this; } Map toJson() => { 'Address1': Address1, 'Address2': Address2, 'Address3': Address3, 'Postcode': Postcode, 'City': City, 'State': State, 'Countrycode': Countrycode }; getTypeName() => "Address"; TypeContext? context = _ctx; } class MerchantAddress extends Address implements IConvertible { String? AddressType; bool? IsCommercial; MerchantAddress({this.AddressType,this.IsCommercial}); MerchantAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AddressType = json['AddressType']; IsCommercial = json['IsCommercial']; return this; } Map toJson() => super.toJson()..addAll({ 'AddressType': AddressType, 'IsCommercial': IsCommercial }); getTypeName() => "MerchantAddress"; TypeContext? context = _ctx; } class InvoiceContact extends Person implements IConvertible { String? Email; String? Position; InvoiceContact({this.Email,this.Position}); InvoiceContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Email = json['Email']; Position = json['Position']; return this; } Map toJson() => super.toJson()..addAll({ 'Email': Email, 'Position': Position }); getTypeName() => "InvoiceContact"; TypeContext? context = _ctx; } class BankAccount implements IConvertible { String? SortCode; String? AccountNumber; String? BankName; String? BankAccountName; BankAccount({this.SortCode,this.AccountNumber,this.BankName,this.BankAccountName}); BankAccount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SortCode = json['SortCode']; AccountNumber = json['AccountNumber']; BankName = json['BankName']; BankAccountName = json['BankAccountName']; return this; } Map toJson() => { 'SortCode': SortCode, 'AccountNumber': AccountNumber, 'BankName': BankName, 'BankAccountName': BankAccountName }; getTypeName() => "BankAccount"; TypeContext? context = _ctx; } class MerchantCategory implements IConvertible { String? MerchantCategoryCode; String? MerchantCategoryDescription; String? DescriptionOfGoodsAndServices; MerchantCategory({this.MerchantCategoryCode,this.MerchantCategoryDescription,this.DescriptionOfGoodsAndServices}); MerchantCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MerchantCategoryCode = json['MerchantCategoryCode']; MerchantCategoryDescription = json['MerchantCategoryDescription']; DescriptionOfGoodsAndServices = json['DescriptionOfGoodsAndServices']; return this; } Map toJson() => { 'MerchantCategoryCode': MerchantCategoryCode, 'MerchantCategoryDescription': MerchantCategoryDescription, 'DescriptionOfGoodsAndServices': DescriptionOfGoodsAndServices }; getTypeName() => "MerchantCategory"; TypeContext? context = _ctx; } class Financials implements IConvertible { double? Annual; double? CardPercentage; double? CreditCardPercentage; double? AverageTransactionValue; Financials({this.Annual,this.CardPercentage,this.CreditCardPercentage,this.AverageTransactionValue}); Financials.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Annual = JsonConverters.toDouble(json['Annual']); CardPercentage = JsonConverters.toDouble(json['CardPercentage']); CreditCardPercentage = JsonConverters.toDouble(json['CreditCardPercentage']); AverageTransactionValue = JsonConverters.toDouble(json['AverageTransactionValue']); return this; } Map toJson() => { 'Annual': Annual, 'CardPercentage': CardPercentage, 'CreditCardPercentage': CreditCardPercentage, 'AverageTransactionValue': AverageTransactionValue }; getTypeName() => "Financials"; TypeContext? context = _ctx; } class TradeAssociation implements IConvertible { String? GroupName; String? MemberNumber; TradeAssociation({this.GroupName,this.MemberNumber}); TradeAssociation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GroupName = json['GroupName']; MemberNumber = json['MemberNumber']; return this; } Map toJson() => { 'GroupName': GroupName, 'MemberNumber': MemberNumber }; getTypeName() => "TradeAssociation"; TypeContext? context = _ctx; } class Principal extends Person implements IConvertible { String? Position; bool? IsFinancialController; DateTime? DateOfBirth; String? Nationality; double? OwnershipPercentage; List? HomeAddresses; List? PrincipalIdDocuments; Principal({this.Position,this.IsFinancialController,this.DateOfBirth,this.Nationality,this.OwnershipPercentage,this.HomeAddresses,this.PrincipalIdDocuments}); Principal.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Position = json['Position']; IsFinancialController = json['IsFinancialController']; DateOfBirth = JsonConverters.fromJson(json['DateOfBirth'],'DateTime',context!); Nationality = json['Nationality']; OwnershipPercentage = JsonConverters.toDouble(json['OwnershipPercentage']); HomeAddresses = JsonConverters.fromJson(json['HomeAddresses'],'List',context!); PrincipalIdDocuments = JsonConverters.fromJson(json['PrincipalIdDocuments'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Position': Position, 'IsFinancialController': IsFinancialController, 'DateOfBirth': JsonConverters.toJson(DateOfBirth,'DateTime',context!), 'Nationality': Nationality, 'OwnershipPercentage': OwnershipPercentage, 'HomeAddresses': JsonConverters.toJson(HomeAddresses,'List',context!), 'PrincipalIdDocuments': JsonConverters.toJson(PrincipalIdDocuments,'List',context!) }); getTypeName() => "Principal"; TypeContext? context = _ctx; } class GoodsAndServices implements IConvertible { bool? GoodsProvidedByThirdParty; Deposits? Deposits; WarrantiesAndGuarantees? WarrantiesAndGuarantees; Prepayments? Prepayments; MembershipsSubscriptionAndInsurancePremiums? MembershipsSubscriptionAndInsurancePremiums; Address? StockHeldAtAnotherAddressLocation; GoodsAndServices({this.GoodsProvidedByThirdParty,this.Deposits,this.WarrantiesAndGuarantees,this.Prepayments,this.MembershipsSubscriptionAndInsurancePremiums,this.StockHeldAtAnotherAddressLocation}); GoodsAndServices.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GoodsProvidedByThirdParty = json['GoodsProvidedByThirdParty']; Deposits = JsonConverters.fromJson(json['Deposits'],'Deposits',context!); WarrantiesAndGuarantees = JsonConverters.fromJson(json['WarrantiesAndGuarantees'],'WarrantiesAndGuarantees',context!); Prepayments = JsonConverters.fromJson(json['Prepayments'],'Prepayments',context!); MembershipsSubscriptionAndInsurancePremiums = JsonConverters.fromJson(json['MembershipsSubscriptionAndInsurancePremiums'],'MembershipsSubscriptionAndInsurancePremiums',context!); StockHeldAtAnotherAddressLocation = JsonConverters.fromJson(json['StockHeldAtAnotherAddressLocation'],'Address',context!); return this; } Map toJson() => { 'GoodsProvidedByThirdParty': GoodsProvidedByThirdParty, 'Deposits': JsonConverters.toJson(Deposits,'Deposits',context!), 'WarrantiesAndGuarantees': JsonConverters.toJson(WarrantiesAndGuarantees,'WarrantiesAndGuarantees',context!), 'Prepayments': JsonConverters.toJson(Prepayments,'Prepayments',context!), 'MembershipsSubscriptionAndInsurancePremiums': JsonConverters.toJson(MembershipsSubscriptionAndInsurancePremiums,'MembershipsSubscriptionAndInsurancePremiums',context!), 'StockHeldAtAnotherAddressLocation': JsonConverters.toJson(StockHeldAtAnotherAddressLocation,'Address',context!) }; getTypeName() => "GoodsAndServices"; TypeContext? context = _ctx; } class AccessibilityOptions implements IConvertible { bool? AudiotapeRequired; bool? LargePrintRequired; bool? UncontractedBrailleGrade1Required; bool? UncontractedBrailleGrade2Required; bool? NextGenerationTextRequired; AccessibilityOptions({this.AudiotapeRequired,this.LargePrintRequired,this.UncontractedBrailleGrade1Required,this.UncontractedBrailleGrade2Required,this.NextGenerationTextRequired}); AccessibilityOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AudiotapeRequired = json['AudiotapeRequired']; LargePrintRequired = json['LargePrintRequired']; UncontractedBrailleGrade1Required = json['UncontractedBrailleGrade1Required']; UncontractedBrailleGrade2Required = json['UncontractedBrailleGrade2Required']; NextGenerationTextRequired = json['NextGenerationTextRequired']; return this; } Map toJson() => { 'AudiotapeRequired': AudiotapeRequired, 'LargePrintRequired': LargePrintRequired, 'UncontractedBrailleGrade1Required': UncontractedBrailleGrade1Required, 'UncontractedBrailleGrade2Required': UncontractedBrailleGrade2Required, 'NextGenerationTextRequired': NextGenerationTextRequired }; getTypeName() => "AccessibilityOptions"; TypeContext? context = _ctx; } class ClearingDetails implements IConvertible { String? MerchantUrl; String? Telephone; String? Email; ClearingDetails({this.MerchantUrl,this.Telephone,this.Email}); ClearingDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MerchantUrl = json['MerchantUrl']; Telephone = json['Telephone']; Email = json['Email']; return this; } Map toJson() => { 'MerchantUrl': MerchantUrl, 'Telephone': Telephone, 'Email': Email }; getTypeName() => "ClearingDetails"; TypeContext? context = _ctx; } class Acquiring implements IConvertible { int? SettlementPeriod; String? FundingMode; Rates? Rates; List? TradingCurrencies; Acquiring({this.SettlementPeriod,this.FundingMode,this.Rates,this.TradingCurrencies}); Acquiring.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SettlementPeriod = json['SettlementPeriod']; FundingMode = json['FundingMode']; Rates = JsonConverters.fromJson(json['Rates'],'Rates',context!); TradingCurrencies = JsonConverters.fromJson(json['TradingCurrencies'],'List',context!); return this; } Map toJson() => { 'SettlementPeriod': SettlementPeriod, 'FundingMode': FundingMode, 'Rates': JsonConverters.toJson(Rates,'Rates',context!), 'TradingCurrencies': JsonConverters.toJson(TradingCurrencies,'List',context!) }; getTypeName() => "Acquiring"; TypeContext? context = _ctx; } class ProductFee implements IConvertible { String? Type; double? Cost; String? BillingParty; ProductFee({this.Type,this.Cost,this.BillingParty}); ProductFee.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Type = json['Type']; Cost = JsonConverters.toDouble(json['Cost']); BillingParty = json['BillingParty']; return this; } Map toJson() => { 'Type': Type, 'Cost': Cost, 'BillingParty': BillingParty }; getTypeName() => "ProductFee"; TypeContext? context = _ctx; } class ProductOption implements IConvertible { String? Type; String? Value; ProductOption({this.Type,this.Value}); ProductOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Type = json['Type']; Value = json['Value']; return this; } Map toJson() => { 'Type': Type, 'Value': Value }; getTypeName() => "ProductOption"; TypeContext? context = _ctx; } class Product implements IConvertible { String? Name; String? Type; String? Variant; int? Quantity; List? RelatedFees; List? Options; Product({this.Name,this.Type,this.Variant,this.Quantity,this.RelatedFees,this.Options}); Product.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Type = json['Type']; Variant = json['Variant']; Quantity = json['Quantity']; RelatedFees = JsonConverters.fromJson(json['RelatedFees'],'List',context!); Options = JsonConverters.fromJson(json['Options'],'List',context!); return this; } Map toJson() => { 'Name': Name, 'Type': Type, 'Variant': Variant, 'Quantity': Quantity, 'RelatedFees': JsonConverters.toJson(RelatedFees,'List',context!), 'Options': JsonConverters.toJson(Options,'List',context!) }; getTypeName() => "Product"; TypeContext? context = _ctx; } class Subscription implements IConvertible { String? Proposition; String? PricingPackage; int? Term; int? RenewalLength; Acquiring? Acquiring; List? Products; Subscription({this.Proposition,this.PricingPackage,this.Term,this.RenewalLength,this.Acquiring,this.Products}); Subscription.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Proposition = json['Proposition']; PricingPackage = json['PricingPackage']; Term = json['Term']; RenewalLength = json['RenewalLength']; Acquiring = JsonConverters.fromJson(json['Acquiring'],'Acquiring',context!); Products = JsonConverters.fromJson(json['Products'],'List',context!); return this; } Map toJson() => { 'Proposition': Proposition, 'PricingPackage': PricingPackage, 'Term': Term, 'RenewalLength': RenewalLength, 'Acquiring': JsonConverters.toJson(Acquiring,'Acquiring',context!), 'Products': JsonConverters.toJson(Products,'List',context!) }; getTypeName() => "Subscription"; TypeContext? context = _ctx; } class OrderPayload implements IConvertible { String? PartyId; String? ParentPartyId; String? LegalName; String? TradingName; String? PartyName; List? Addresses; Contact? TradingContact; InvoiceContact? InvoiceContact; BankAccount? SettlementBankAccount; BankAccount? ChargesBankAccount; String? DirectDebitCorrespondenceEmail; String? WebsiteAddress; String? CompanyType; String? CompanyTypeOther; String? CompanyRegistrationNumber; String? CharityNumber; List? MerchantCategories; String? VatNumber; DateTime? DateStartedTrading; DateTime? AnticipatedGoLiveDate; String? CountryOfIncorporation; String? RegionOfIncorporation; Financials? Financials; bool? NewToCards; TradeAssociation? TradeAssociation; List? Principals; GoodsAndServices? GoodsAndServices; AccessibilityOptions? AccessibilityOptions; ClearingDetails? ClearingDetails; Acquiring? Acquiring; List? Subscriptions; List? Children; OrderPayload({this.PartyId,this.ParentPartyId,this.LegalName,this.TradingName,this.PartyName,this.Addresses,this.TradingContact,this.InvoiceContact,this.SettlementBankAccount,this.ChargesBankAccount,this.DirectDebitCorrespondenceEmail,this.WebsiteAddress,this.CompanyType,this.CompanyTypeOther,this.CompanyRegistrationNumber,this.CharityNumber,this.MerchantCategories,this.VatNumber,this.DateStartedTrading,this.AnticipatedGoLiveDate,this.CountryOfIncorporation,this.RegionOfIncorporation,this.Financials,this.NewToCards,this.TradeAssociation,this.Principals,this.GoodsAndServices,this.AccessibilityOptions,this.ClearingDetails,this.Acquiring,this.Subscriptions,this.Children}); OrderPayload.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PartyId = json['PartyId']; ParentPartyId = json['ParentPartyId']; LegalName = json['LegalName']; TradingName = json['TradingName']; PartyName = json['PartyName']; Addresses = JsonConverters.fromJson(json['Addresses'],'List',context!); TradingContact = JsonConverters.fromJson(json['TradingContact'],'Contact',context!); InvoiceContact = JsonConverters.fromJson(json['InvoiceContact'],'InvoiceContact',context!); SettlementBankAccount = JsonConverters.fromJson(json['SettlementBankAccount'],'BankAccount',context!); ChargesBankAccount = JsonConverters.fromJson(json['ChargesBankAccount'],'BankAccount',context!); DirectDebitCorrespondenceEmail = json['DirectDebitCorrespondenceEmail']; WebsiteAddress = json['WebsiteAddress']; CompanyType = json['CompanyType']; CompanyTypeOther = json['CompanyTypeOther']; CompanyRegistrationNumber = json['CompanyRegistrationNumber']; CharityNumber = json['CharityNumber']; MerchantCategories = JsonConverters.fromJson(json['MerchantCategories'],'List',context!); VatNumber = json['VatNumber']; DateStartedTrading = JsonConverters.fromJson(json['DateStartedTrading'],'DateTime',context!); AnticipatedGoLiveDate = JsonConverters.fromJson(json['AnticipatedGoLiveDate'],'DateTime',context!); CountryOfIncorporation = json['CountryOfIncorporation']; RegionOfIncorporation = json['RegionOfIncorporation']; Financials = JsonConverters.fromJson(json['Financials'],'Financials',context!); NewToCards = json['NewToCards']; TradeAssociation = JsonConverters.fromJson(json['TradeAssociation'],'TradeAssociation',context!); Principals = JsonConverters.fromJson(json['Principals'],'List',context!); GoodsAndServices = JsonConverters.fromJson(json['GoodsAndServices'],'GoodsAndServices',context!); AccessibilityOptions = JsonConverters.fromJson(json['AccessibilityOptions'],'AccessibilityOptions',context!); ClearingDetails = JsonConverters.fromJson(json['ClearingDetails'],'ClearingDetails',context!); Acquiring = JsonConverters.fromJson(json['Acquiring'],'Acquiring',context!); Subscriptions = JsonConverters.fromJson(json['Subscriptions'],'List',context!); Children = JsonConverters.fromJson(json['Children'],'List',context!); return this; } Map toJson() => { 'PartyId': PartyId, 'ParentPartyId': ParentPartyId, 'LegalName': LegalName, 'TradingName': TradingName, 'PartyName': PartyName, 'Addresses': JsonConverters.toJson(Addresses,'List',context!), 'TradingContact': JsonConverters.toJson(TradingContact,'Contact',context!), 'InvoiceContact': JsonConverters.toJson(InvoiceContact,'InvoiceContact',context!), 'SettlementBankAccount': JsonConverters.toJson(SettlementBankAccount,'BankAccount',context!), 'ChargesBankAccount': JsonConverters.toJson(ChargesBankAccount,'BankAccount',context!), 'DirectDebitCorrespondenceEmail': DirectDebitCorrespondenceEmail, 'WebsiteAddress': WebsiteAddress, 'CompanyType': CompanyType, 'CompanyTypeOther': CompanyTypeOther, 'CompanyRegistrationNumber': CompanyRegistrationNumber, 'CharityNumber': CharityNumber, 'MerchantCategories': JsonConverters.toJson(MerchantCategories,'List',context!), 'VatNumber': VatNumber, 'DateStartedTrading': JsonConverters.toJson(DateStartedTrading,'DateTime',context!), 'AnticipatedGoLiveDate': JsonConverters.toJson(AnticipatedGoLiveDate,'DateTime',context!), 'CountryOfIncorporation': CountryOfIncorporation, 'RegionOfIncorporation': RegionOfIncorporation, 'Financials': JsonConverters.toJson(Financials,'Financials',context!), 'NewToCards': NewToCards, 'TradeAssociation': JsonConverters.toJson(TradeAssociation,'TradeAssociation',context!), 'Principals': JsonConverters.toJson(Principals,'List',context!), 'GoodsAndServices': JsonConverters.toJson(GoodsAndServices,'GoodsAndServices',context!), 'AccessibilityOptions': JsonConverters.toJson(AccessibilityOptions,'AccessibilityOptions',context!), 'ClearingDetails': JsonConverters.toJson(ClearingDetails,'ClearingDetails',context!), 'Acquiring': JsonConverters.toJson(Acquiring,'Acquiring',context!), 'Subscriptions': JsonConverters.toJson(Subscriptions,'List',context!), 'Children': JsonConverters.toJson(Children,'List',context!) }; getTypeName() => "OrderPayload"; TypeContext? context = _ctx; } class Order implements IConvertible { OrderMeta? Meta; OrderPayload? Payload; Order({this.Meta,this.Payload}); Order.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Meta = JsonConverters.fromJson(json['Meta'],'OrderMeta',context!); Payload = JsonConverters.fromJson(json['Payload'],'OrderPayload',context!); return this; } Map toJson() => { 'Meta': JsonConverters.toJson(Meta,'OrderMeta',context!), 'Payload': JsonConverters.toJson(Payload,'OrderPayload',context!) }; getTypeName() => "Order"; TypeContext? context = _ctx; } class IdentityVerificationDocuments implements IConvertible { String? documentId; String? authenticity; IdentityVerificationDocuments({this.documentId,this.authenticity}); IdentityVerificationDocuments.fromJson(Map json) { fromMap(json); } fromMap(Map json) { documentId = json['documentId']; authenticity = json['authenticity']; return this; } Map toJson() => { 'documentId': documentId, 'authenticity': authenticity }; getTypeName() => "IdentityVerificationDocuments"; TypeContext? context = _ctx; } class Acquiring implements IConvertible { int? SettlementPeriodTPlus; Rates? Rates; Services? Services; List? TradingCurrencies; Acquiring({this.SettlementPeriodTPlus,this.Rates,this.Services,this.TradingCurrencies}); Acquiring.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SettlementPeriodTPlus = json['SettlementPeriodTPlus']; Rates = JsonConverters.fromJson(json['Rates'],'Rates',context!); Services = JsonConverters.fromJson(json['Services'],'Services',context!); TradingCurrencies = JsonConverters.fromJson(json['TradingCurrencies'],'List',context!); return this; } Map toJson() => { 'SettlementPeriodTPlus': SettlementPeriodTPlus, 'Rates': JsonConverters.toJson(Rates,'Rates',context!), 'Services': JsonConverters.toJson(Services,'Services',context!), 'TradingCurrencies': JsonConverters.toJson(TradingCurrencies,'List',context!) }; getTypeName() => "Acquiring"; TypeContext? context = _ctx; } class Partner implements IConvertible { String? PartnerId; String? PartnerName; Partner({this.PartnerId,this.PartnerName}); Partner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PartnerId = json['PartnerId']; PartnerName = json['PartnerName']; return this; } Map toJson() => { 'PartnerId': PartnerId, 'PartnerName': PartnerName }; getTypeName() => "Partner"; TypeContext? context = _ctx; } class AuthorisedSigner extends ContactPerson implements IConvertible { DateTime? DateOfBirth; String? CountryCode; AuthorisedSigner({this.DateOfBirth,this.CountryCode}); AuthorisedSigner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DateOfBirth = JsonConverters.fromJson(json['DateOfBirth'],'DateTime',context!); CountryCode = json['CountryCode']; return this; } Map toJson() => super.toJson()..addAll({ 'DateOfBirth': JsonConverters.toJson(DateOfBirth,'DateTime',context!), 'CountryCode': CountryCode }); getTypeName() => "AuthorisedSigner"; TypeContext? context = _ctx; } class AccessibilityOptions implements IConvertible { bool? AudiotapeRequired; bool? LargePrintRequired; bool? UncontractedBrailleGrade1Required; bool? UncontractedBrailleGrade2Required; bool? NextGenerationTextRequired; AccessibilityOptions({this.AudiotapeRequired,this.LargePrintRequired,this.UncontractedBrailleGrade1Required,this.UncontractedBrailleGrade2Required,this.NextGenerationTextRequired}); AccessibilityOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AudiotapeRequired = json['AudiotapeRequired']; LargePrintRequired = json['LargePrintRequired']; UncontractedBrailleGrade1Required = json['UncontractedBrailleGrade1Required']; UncontractedBrailleGrade2Required = json['UncontractedBrailleGrade2Required']; NextGenerationTextRequired = json['NextGenerationTextRequired']; return this; } Map toJson() => { 'AudiotapeRequired': AudiotapeRequired, 'LargePrintRequired': LargePrintRequired, 'UncontractedBrailleGrade1Required': UncontractedBrailleGrade1Required, 'UncontractedBrailleGrade2Required': UncontractedBrailleGrade2Required, 'NextGenerationTextRequired': NextGenerationTextRequired }; getTypeName() => "AccessibilityOptions"; TypeContext? context = _ctx; } class Principal implements IConvertible { String? Title; String? FirstName; String? MiddleName; String? LastName; DateTime? DateOfBirth; String? Nationality; List? HomeAddresses; double? OwnershipPercentage; PositionType? Position; bool? IsFinancialController; Principal({this.Title,this.FirstName,this.MiddleName,this.LastName,this.DateOfBirth,this.Nationality,this.HomeAddresses,this.OwnershipPercentage,this.Position,this.IsFinancialController}); Principal.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Title = json['Title']; FirstName = json['FirstName']; MiddleName = json['MiddleName']; LastName = json['LastName']; DateOfBirth = JsonConverters.fromJson(json['DateOfBirth'],'DateTime',context!); Nationality = json['Nationality']; HomeAddresses = JsonConverters.fromJson(json['HomeAddresses'],'List',context!); OwnershipPercentage = JsonConverters.toDouble(json['OwnershipPercentage']); Position = JsonConverters.fromJson(json['Position'],'PositionType',context!); IsFinancialController = json['IsFinancialController']; return this; } Map toJson() => { 'Title': Title, 'FirstName': FirstName, 'MiddleName': MiddleName, 'LastName': LastName, 'DateOfBirth': JsonConverters.toJson(DateOfBirth,'DateTime',context!), 'Nationality': Nationality, 'HomeAddresses': JsonConverters.toJson(HomeAddresses,'List',context!), 'OwnershipPercentage': OwnershipPercentage, 'Position': JsonConverters.toJson(Position,'PositionType',context!), 'IsFinancialController': IsFinancialController }; getTypeName() => "Principal"; TypeContext? context = _ctx; } class GoodsAndServices implements IConvertible { bool? GoodsProvidedByThirdParty; Deposits? Deposits; WarrantiesAndGuarantees? WarrantiesAndGuarantees; Prepayments? Prepayments; MembershipsSubscriptionAndInsurancePremiums? MembershipsSubscriptionAndInsurancePremiums; Address? StockHeldAtAnotherAddressLocation; GoodsAndServices({this.GoodsProvidedByThirdParty,this.Deposits,this.WarrantiesAndGuarantees,this.Prepayments,this.MembershipsSubscriptionAndInsurancePremiums,this.StockHeldAtAnotherAddressLocation}); GoodsAndServices.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GoodsProvidedByThirdParty = json['GoodsProvidedByThirdParty']; Deposits = JsonConverters.fromJson(json['Deposits'],'Deposits',context!); WarrantiesAndGuarantees = JsonConverters.fromJson(json['WarrantiesAndGuarantees'],'WarrantiesAndGuarantees',context!); Prepayments = JsonConverters.fromJson(json['Prepayments'],'Prepayments',context!); MembershipsSubscriptionAndInsurancePremiums = JsonConverters.fromJson(json['MembershipsSubscriptionAndInsurancePremiums'],'MembershipsSubscriptionAndInsurancePremiums',context!); StockHeldAtAnotherAddressLocation = JsonConverters.fromJson(json['StockHeldAtAnotherAddressLocation'],'Address',context!); return this; } Map toJson() => { 'GoodsProvidedByThirdParty': GoodsProvidedByThirdParty, 'Deposits': JsonConverters.toJson(Deposits,'Deposits',context!), 'WarrantiesAndGuarantees': JsonConverters.toJson(WarrantiesAndGuarantees,'WarrantiesAndGuarantees',context!), 'Prepayments': JsonConverters.toJson(Prepayments,'Prepayments',context!), 'MembershipsSubscriptionAndInsurancePremiums': JsonConverters.toJson(MembershipsSubscriptionAndInsurancePremiums,'MembershipsSubscriptionAndInsurancePremiums',context!), 'StockHeldAtAnotherAddressLocation': JsonConverters.toJson(StockHeldAtAnotherAddressLocation,'Address',context!) }; getTypeName() => "GoodsAndServices"; TypeContext? context = _ctx; } class Address implements IConvertible { String? Address1; String? Address2; String? Address3; String? Postcode; String? City; String? State; String? CountryCode; Address({this.Address1,this.Address2,this.Address3,this.Postcode,this.City,this.State,this.CountryCode}); Address.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Address1 = json['Address1']; Address2 = json['Address2']; Address3 = json['Address3']; Postcode = json['Postcode']; City = json['City']; State = json['State']; CountryCode = json['CountryCode']; return this; } Map toJson() => { 'Address1': Address1, 'Address2': Address2, 'Address3': Address3, 'Postcode': Postcode, 'City': City, 'State': State, 'CountryCode': CountryCode }; getTypeName() => "Address"; TypeContext? context = _ctx; } class BankAccount implements IConvertible { String? SortCode; String? AccountNumber; String? BankName; String? BankAccountName; String? SwiftCode; String? InternationalBankAccountNumber; BankAccount({this.SortCode,this.AccountNumber,this.BankName,this.BankAccountName,this.SwiftCode,this.InternationalBankAccountNumber}); BankAccount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SortCode = json['SortCode']; AccountNumber = json['AccountNumber']; BankName = json['BankName']; BankAccountName = json['BankAccountName']; SwiftCode = json['SwiftCode']; InternationalBankAccountNumber = json['InternationalBankAccountNumber']; return this; } Map toJson() => { 'SortCode': SortCode, 'AccountNumber': AccountNumber, 'BankName': BankName, 'BankAccountName': BankAccountName, 'SwiftCode': SwiftCode, 'InternationalBankAccountNumber': InternationalBankAccountNumber }; getTypeName() => "BankAccount"; TypeContext? context = _ctx; } class Financials implements IConvertible { double? Annual; double? CardPercentage; double? CreditCardPercentage; double? AverageTransactionValue; double? CardNotPresentPercentage; Financials({this.Annual,this.CardPercentage,this.CreditCardPercentage,this.AverageTransactionValue,this.CardNotPresentPercentage}); Financials.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Annual = JsonConverters.toDouble(json['Annual']); CardPercentage = JsonConverters.toDouble(json['CardPercentage']); CreditCardPercentage = JsonConverters.toDouble(json['CreditCardPercentage']); AverageTransactionValue = JsonConverters.toDouble(json['AverageTransactionValue']); CardNotPresentPercentage = JsonConverters.toDouble(json['CardNotPresentPercentage']); return this; } Map toJson() => { 'Annual': Annual, 'CardPercentage': CardPercentage, 'CreditCardPercentage': CreditCardPercentage, 'AverageTransactionValue': AverageTransactionValue, 'CardNotPresentPercentage': CardNotPresentPercentage }; getTypeName() => "Financials"; TypeContext? context = _ctx; } class TradeAssociation implements IConvertible { String? GroupName; String? MemberNumber; TradeAssociation({this.GroupName,this.MemberNumber}); TradeAssociation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GroupName = json['GroupName']; MemberNumber = json['MemberNumber']; return this; } Map toJson() => { 'GroupName': GroupName, 'MemberNumber': MemberNumber }; getTypeName() => "TradeAssociation"; TypeContext? context = _ctx; } class ClearingDetails implements IConvertible { String? MerchantUrl; String? Telephone; String? Email; ClearingDetails({this.MerchantUrl,this.Telephone,this.Email}); ClearingDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MerchantUrl = json['MerchantUrl']; Telephone = json['Telephone']; Email = json['Email']; return this; } Map toJson() => { 'MerchantUrl': MerchantUrl, 'Telephone': Telephone, 'Email': Email }; getTypeName() => "ClearingDetails"; TypeContext? context = _ctx; } class ProductFee implements IConvertible { ProductFeeType? Type; double? Cost; ProductFee({this.Type,this.Cost}); ProductFee.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Type = JsonConverters.fromJson(json['Type'],'ProductFeeType',context!); Cost = JsonConverters.toDouble(json['Cost']); return this; } Map toJson() => { 'Type': JsonConverters.toJson(Type,'ProductFeeType',context!), 'Cost': Cost }; getTypeName() => "ProductFee"; TypeContext? context = _ctx; } class StandardOrderResponse implements IConvertible { int? Status; String? CorrelationId; String? Message; StandardOrderResponse({this.Status,this.CorrelationId,this.Message}); StandardOrderResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = json['Status']; CorrelationId = json['CorrelationId']; Message = json['Message']; return this; } Map toJson() => { 'Status': Status, 'CorrelationId': CorrelationId, 'Message': Message }; getTypeName() => "StandardOrderResponse"; TypeContext? context = _ctx; } // @Route("/allchecks/submit/order", "POST") class AllChecksOrderDataRequest implements IReturn, IConvertible { String? CorrelationId; Order? OrderJson; String? NapPartyId; String? LEID; String? OrderId; List? PartyIndividuals; List? IdentityVerificationDocuments; AllChecksOrderDataRequest({this.CorrelationId,this.OrderJson,this.NapPartyId,this.LEID,this.OrderId,this.PartyIndividuals,this.IdentityVerificationDocuments}); AllChecksOrderDataRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CorrelationId = json['CorrelationId']; OrderJson = JsonConverters.fromJson(json['OrderJson'],'Order',context!); NapPartyId = json['NapPartyId']; LEID = json['LEID']; OrderId = json['OrderId']; PartyIndividuals = JsonConverters.fromJson(json['PartyIndividuals'],'List',context!); IdentityVerificationDocuments = JsonConverters.fromJson(json['IdentityVerificationDocuments'],'List',context!); return this; } Map toJson() => { 'CorrelationId': CorrelationId, 'OrderJson': JsonConverters.toJson(OrderJson,'Order',context!), 'NapPartyId': NapPartyId, 'LEID': LEID, 'OrderId': OrderId, 'PartyIndividuals': JsonConverters.toJson(PartyIndividuals,'List',context!), 'IdentityVerificationDocuments': JsonConverters.toJson(IdentityVerificationDocuments,'List',context!) }; createResponse() => StandardOrderResponse(); getResponseTypeName() => "StandardOrderResponse"; getTypeName() => "AllChecksOrderDataRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'wpcdd_featuretest_ws.worldpay.com', types: { 'Partner': TypeInfo(TypeOf.Class, create:() => Partner()), 'Person': TypeInfo(TypeOf.Class, create:() => Person()), 'Contact': TypeInfo(TypeOf.Class, create:() => Contact()), 'AuthorisedSigner': TypeInfo(TypeOf.Class, create:() => AuthorisedSigner()), 'OrderMeta': TypeInfo(TypeOf.Class, create:() => OrderMeta()), 'Address': TypeInfo(TypeOf.Class, create:() => Address()), 'MerchantAddress': TypeInfo(TypeOf.Class, create:() => MerchantAddress()), 'InvoiceContact': TypeInfo(TypeOf.Class, create:() => InvoiceContact()), 'BankAccount': TypeInfo(TypeOf.Class, create:() => BankAccount()), 'MerchantCategory': TypeInfo(TypeOf.Class, create:() => MerchantCategory()), 'Financials': TypeInfo(TypeOf.Class, create:() => Financials()), 'TradeAssociation': TypeInfo(TypeOf.Class, create:() => TradeAssociation()), 'Principal': TypeInfo(TypeOf.Class, create:() => Principal()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PrincipalAddress': TypeInfo(TypeOf.Class, create:() => PrincipalAddress()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PrincipalIdDocument': TypeInfo(TypeOf.Class, create:() => PrincipalIdDocument()), 'GoodsAndServices': TypeInfo(TypeOf.Class, create:() => GoodsAndServices()), 'Deposits': TypeInfo(TypeOf.Class, create:() => Deposits()), 'WarrantiesAndGuarantees': TypeInfo(TypeOf.Class, create:() => WarrantiesAndGuarantees()), 'Prepayments': TypeInfo(TypeOf.Class, create:() => Prepayments()), 'MembershipsSubscriptionAndInsurancePremiums': TypeInfo(TypeOf.Class, create:() => MembershipsSubscriptionAndInsurancePremiums()), 'AccessibilityOptions': TypeInfo(TypeOf.Class, create:() => AccessibilityOptions()), 'ClearingDetails': TypeInfo(TypeOf.Class, create:() => ClearingDetails()), 'Acquiring': TypeInfo(TypeOf.Class, create:() => Acquiring()), 'Rates': TypeInfo(TypeOf.Class, create:() => Rates()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'TradingCurrency': TypeInfo(TypeOf.Class, create:() => TradingCurrency()), 'ProductFee': TypeInfo(TypeOf.Class, create:() => ProductFee()), 'ProductOption': TypeInfo(TypeOf.Class, create:() => ProductOption()), 'Product': TypeInfo(TypeOf.Class, create:() => Product()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Subscription': TypeInfo(TypeOf.Class, create:() => Subscription()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'OrderPayload': TypeInfo(TypeOf.Class, create:() => OrderPayload()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Order': TypeInfo(TypeOf.Class, create:() => Order()), 'IdentityVerificationDocuments': TypeInfo(TypeOf.Class, create:() => IdentityVerificationDocuments()), 'Services': TypeInfo(TypeOf.Class, create:() => Services()), 'PositionType': TypeInfo(TypeOf.Class, create:() => PositionType()), 'ProductFeeType': TypeInfo(TypeOf.Class, create:() => ProductFeeType()), 'StandardOrderResponse': TypeInfo(TypeOf.Class, create:() => StandardOrderResponse()), 'AllChecksOrderDataRequest': TypeInfo(TypeOf.Class, create:() => AllChecksOrderDataRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });