/* Options: Date: 2024-07-06 12:16:04 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://wp-cddws-test.worldpay.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AuthPlusRealtimeCheckDataRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 AddressData implements IConvertible { String? address1; String? address2; String? address3; String? postalCode; String? city; String? state; String? countryCode; AddressData({this.address1,this.address2,this.address3,this.postalCode,this.city,this.state,this.countryCode}); AddressData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { address1 = json['address1']; address2 = json['address2']; address3 = json['address3']; postalCode = json['postalCode']; city = json['city']; state = json['state']; countryCode = json['countryCode']; return this; } Map toJson() => { 'address1': address1, 'address2': address2, 'address3': address3, 'postalCode': postalCode, 'city': city, 'state': state, 'countryCode': countryCode }; getTypeName() => "AddressData"; TypeContext? context = _ctx; } class ContactNameData implements IConvertible { String? title; String? firstName; String? middleName; String? lastName; ContactNameData({this.title,this.firstName,this.middleName,this.lastName}); ContactNameData.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() => "ContactNameData"; TypeContext? context = _ctx; } class OwnerDetails implements IConvertible { int? dayOfBirth; int? monthOfBirth; int? yearOfBirth; double? ownershipPercentage; AddressData? homeAddress; bool? currentAddressLessThanThreeYears; AddressData? previousHomeAddress; ContactNameData? name; bool? director; String? nationality; String? position; int? timeAtHomeAddressYears; int? timeAtHomeAddressMonths; String? PrimaryPartyID; List? identityVerificationDocuments; OwnerDetails({this.dayOfBirth,this.monthOfBirth,this.yearOfBirth,this.ownershipPercentage,this.homeAddress,this.currentAddressLessThanThreeYears,this.previousHomeAddress,this.name,this.director,this.nationality,this.position,this.timeAtHomeAddressYears,this.timeAtHomeAddressMonths,this.PrimaryPartyID,this.identityVerificationDocuments}); OwnerDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { dayOfBirth = json['dayOfBirth']; monthOfBirth = json['monthOfBirth']; yearOfBirth = json['yearOfBirth']; ownershipPercentage = JsonConverters.toDouble(json['ownershipPercentage']); homeAddress = JsonConverters.fromJson(json['homeAddress'],'AddressData',context!); currentAddressLessThanThreeYears = json['currentAddressLessThanThreeYears']; previousHomeAddress = JsonConverters.fromJson(json['previousHomeAddress'],'AddressData',context!); name = JsonConverters.fromJson(json['name'],'ContactNameData',context!); director = json['director']; nationality = json['nationality']; position = json['position']; timeAtHomeAddressYears = json['timeAtHomeAddressYears']; timeAtHomeAddressMonths = json['timeAtHomeAddressMonths']; PrimaryPartyID = json['PrimaryPartyID']; identityVerificationDocuments = JsonConverters.fromJson(json['identityVerificationDocuments'],'List',context!); return this; } Map toJson() => { 'dayOfBirth': dayOfBirth, 'monthOfBirth': monthOfBirth, 'yearOfBirth': yearOfBirth, 'ownershipPercentage': ownershipPercentage, 'homeAddress': JsonConverters.toJson(homeAddress,'AddressData',context!), 'currentAddressLessThanThreeYears': currentAddressLessThanThreeYears, 'previousHomeAddress': JsonConverters.toJson(previousHomeAddress,'AddressData',context!), 'name': JsonConverters.toJson(name,'ContactNameData',context!), 'director': director, 'nationality': nationality, 'position': position, 'timeAtHomeAddressYears': timeAtHomeAddressYears, 'timeAtHomeAddressMonths': timeAtHomeAddressMonths, 'PrimaryPartyID': PrimaryPartyID, 'identityVerificationDocuments': JsonConverters.toJson(identityVerificationDocuments,'List',context!) }; getTypeName() => "OwnerDetails"; TypeContext? context = _ctx; } // @Route("/authplus/realtime", "POST") class AuthPlusRealtimeCheckDataRequest implements IConvertible { String? ApplicationGUID; int? CSR; List? Owners; AuthPlusRealtimeCheckDataRequest({this.ApplicationGUID,this.CSR,this.Owners}); AuthPlusRealtimeCheckDataRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApplicationGUID = json['ApplicationGUID']; CSR = json['CSR']; Owners = JsonConverters.fromJson(json['Owners'],'List',context!); return this; } Map toJson() => { 'ApplicationGUID': ApplicationGUID, 'CSR': CSR, 'Owners': JsonConverters.toJson(Owners,'List',context!) }; getTypeName() => "AuthPlusRealtimeCheckDataRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'wp_cddws_test.worldpay.com', types: { 'IdentityVerificationDocuments': TypeInfo(TypeOf.Class, create:() => IdentityVerificationDocuments()), 'AddressData': TypeInfo(TypeOf.Class, create:() => AddressData()), 'ContactNameData': TypeInfo(TypeOf.Class, create:() => ContactNameData()), 'OwnerDetails': TypeInfo(TypeOf.Class, create:() => OwnerDetails()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AuthPlusRealtimeCheckDataRequest': TypeInfo(TypeOf.Class, create:() => AuthPlusRealtimeCheckDataRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });