/* Options: Date: 2026-11-08 11:51:53 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreditCardVerify.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CreditCardType { static const CreditCardType AmericanExpress = const CreditCardType._(0); static const CreditCardType Discover = const CreditCardType._(1); static const CreditCardType MasterCard = const CreditCardType._(2); static const CreditCardType Visa = const CreditCardType._(3); static const CreditCardType DinersClub = const CreditCardType._(4); static const CreditCardType DinersCartBlanche = const CreditCardType._(5); static const CreditCardType Unknown = const CreditCardType._(6); final int _value; const CreditCardType._(this._value); int get value => _value; static List get values => const [AmericanExpress,Discover,MasterCard,Visa,DinersClub,DinersCartBlanche,Unknown]; } class CreditCardCloudServiceResponse implements IHaveErrorField, IConvertible { bool? IsDuplicate; bool? IsSuccessful; String? ErrorCode; String? Message; int? GatewayId; String? ConfirmationNumber; String? NetworkTransactionId; bool? IsError; CreditCardCloudServiceResponse({this.IsDuplicate,this.IsSuccessful,this.ErrorCode,this.Message,this.GatewayId,this.ConfirmationNumber,this.NetworkTransactionId,this.IsError}); CreditCardCloudServiceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IsDuplicate = json['IsDuplicate']; IsSuccessful = json['IsSuccessful']; ErrorCode = json['ErrorCode']; Message = json['Message']; GatewayId = json['GatewayId']; ConfirmationNumber = json['ConfirmationNumber']; NetworkTransactionId = json['NetworkTransactionId']; IsError = json['IsError']; return this; } Map toJson() => { 'IsDuplicate': IsDuplicate, 'IsSuccessful': IsSuccessful, 'ErrorCode': ErrorCode, 'Message': Message, 'GatewayId': GatewayId, 'ConfirmationNumber': ConfirmationNumber, 'NetworkTransactionId': NetworkTransactionId, 'IsError': IsError }; getTypeName() => "CreditCardCloudServiceResponse"; TypeContext? context = _ctx; } class CreditCardVerifyResult extends CreditCardCloudServiceResponse implements IConvertible { String? CardRef; CreditCardVerifyResult({this.CardRef}); CreditCardVerifyResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CardRef = json['CardRef']; return this; } Map toJson() => super.toJson()..addAll({ 'CardRef': CardRef }); getTypeName() => "CreditCardVerifyResult"; TypeContext? context = _ctx; } // @Route("/api/v2/PaymentMethods/CC/Verification", "POST") class CreditCardVerify extends CreditCardVerify implements IReturn, IConvertible { CreditCardVerify(); CreditCardVerify.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => CreditCardVerifyResult(); getResponseTypeName() => "CreditCardVerifyResult"; getTypeName() => "CreditCardVerify"; TypeContext? context = _ctx; } class CreditCardVerify implements IConvertible { int? UserId; int? GroupId; String? Location; String? CurrencyCode; String? NameOnCard; String? Address1; String? Address2; String? City; String? State; String? PostalCode; String? Country; CreditCardType? CardType; String? CardNumber; int? ExpMonth; int? ExpYear; String? CVV; // @ApiMember(Format="decimal", ParameterType="model") double? Amount; String? ChapAndUser; String? Description; int? PayLinkID; bool? EnsureValidZipAndCvc; double? ReCaptchaScore; CreditCardVerify({this.UserId,this.GroupId,this.Location,this.CurrencyCode,this.NameOnCard,this.Address1,this.Address2,this.City,this.State,this.PostalCode,this.Country,this.CardType,this.CardNumber,this.ExpMonth,this.ExpYear,this.CVV,this.Amount,this.ChapAndUser,this.Description,this.PayLinkID,this.EnsureValidZipAndCvc,this.ReCaptchaScore}); CreditCardVerify.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; GroupId = json['GroupId']; Location = json['Location']; CurrencyCode = json['CurrencyCode']; NameOnCard = json['NameOnCard']; Address1 = json['Address1']; Address2 = json['Address2']; City = json['City']; State = json['State']; PostalCode = json['PostalCode']; Country = json['Country']; CardType = JsonConverters.fromJson(json['CardType'],'CreditCardType',context!); CardNumber = json['CardNumber']; ExpMonth = json['ExpMonth']; ExpYear = json['ExpYear']; CVV = json['CVV']; Amount = JsonConverters.toDouble(json['Amount']); ChapAndUser = json['ChapAndUser']; Description = json['Description']; PayLinkID = json['PayLinkID']; EnsureValidZipAndCvc = json['EnsureValidZipAndCvc']; ReCaptchaScore = JsonConverters.toDouble(json['ReCaptchaScore']); return this; } Map toJson() => { 'UserId': UserId, 'GroupId': GroupId, 'Location': Location, 'CurrencyCode': CurrencyCode, 'NameOnCard': NameOnCard, 'Address1': Address1, 'Address2': Address2, 'City': City, 'State': State, 'PostalCode': PostalCode, 'Country': Country, 'CardType': JsonConverters.toJson(CardType,'CreditCardType',context!), 'CardNumber': CardNumber, 'ExpMonth': ExpMonth, 'ExpYear': ExpYear, 'CVV': CVV, 'Amount': Amount, 'ChapAndUser': ChapAndUser, 'Description': Description, 'PayLinkID': PayLinkID, 'EnsureValidZipAndCvc': EnsureValidZipAndCvc, 'ReCaptchaScore': ReCaptchaScore }; getTypeName() => "CreditCardVerify"; TypeContext? context = _ctx; } abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'CreditCardType': TypeInfo(TypeOf.Enum, enumValues:CreditCardType.values), 'CreditCardCloudServiceResponse': TypeInfo(TypeOf.Class, create:() => CreditCardCloudServiceResponse()), 'CreditCardVerifyResult': TypeInfo(TypeOf.Class, create:() => CreditCardVerifyResult()), 'CreditCardVerify': TypeInfo(TypeOf.Class, create:() => CreditCardVerify()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), });