/* Options: Date: 2026-11-08 12:02:24 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: CreditCardSale.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; 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 CreditCardProcessingTypes { static const CreditCardProcessingTypes Default = const CreditCardProcessingTypes._(0); static const CreditCardProcessingTypes CardOnFile = const CreditCardProcessingTypes._(1); static const CreditCardProcessingTypes Initial = const CreditCardProcessingTypes._(2); static const CreditCardProcessingTypes Recurring = const CreditCardProcessingTypes._(3); final int _value; const CreditCardProcessingTypes._(this._value); int get value => _value; static List get values => const [Default,CardOnFile,Initial,Recurring]; } 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 CreditCardSaleResult extends CreditCardCloudServiceResponse implements IConvertible { CreditCardSaleResult(); CreditCardSaleResult.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "CreditCardSaleResult"; TypeContext? context = _ctx; } // @Route("/api/CreditCard/Sale", "POST") class CreditCardSale extends CreditCardSale implements IReturn, IConvertible { CreditCardSale(); CreditCardSale.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => CreditCardSaleResult(); getResponseTypeName() => "CreditCardSaleResult"; getTypeName() => "CreditCardSale"; TypeContext? context = _ctx; } class CreditCardSale implements IConvertible { int? ClientId; String? GroupId; String? UserId; int? BhUserId; String? UniqueId; 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; double? Amount; String? ChapAndUser; String? Description; int? PayLinkID; bool? AutoPay; bool? StoreCardInfo; int? PaymentSourceTypeID; int? PaymentSourceID; CreditCardProcessingTypes? ProcessingType; String? NetworkTransactionID; double? ReCaptchaScore; CreditCardSale({this.ClientId,this.GroupId,this.UserId,this.BhUserId,this.UniqueId,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.AutoPay,this.StoreCardInfo,this.PaymentSourceTypeID,this.PaymentSourceID,this.ProcessingType,this.NetworkTransactionID,this.ReCaptchaScore}); CreditCardSale.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClientId = json['ClientId']; GroupId = json['GroupId']; UserId = json['UserId']; BhUserId = json['BhUserId']; UniqueId = json['UniqueId']; 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']; AutoPay = json['AutoPay']; StoreCardInfo = json['StoreCardInfo']; PaymentSourceTypeID = json['PaymentSourceTypeID']; PaymentSourceID = json['PaymentSourceID']; ProcessingType = JsonConverters.fromJson(json['ProcessingType'],'CreditCardProcessingTypes',context!); NetworkTransactionID = json['NetworkTransactionID']; ReCaptchaScore = JsonConverters.toDouble(json['ReCaptchaScore']); return this; } Map toJson() => { 'ClientId': ClientId, 'GroupId': GroupId, 'UserId': UserId, 'BhUserId': BhUserId, 'UniqueId': UniqueId, '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, 'AutoPay': AutoPay, 'StoreCardInfo': StoreCardInfo, 'PaymentSourceTypeID': PaymentSourceTypeID, 'PaymentSourceID': PaymentSourceID, 'ProcessingType': JsonConverters.toJson(ProcessingType,'CreditCardProcessingTypes',context!), 'NetworkTransactionID': NetworkTransactionID, 'ReCaptchaScore': ReCaptchaScore }; getTypeName() => "CreditCardSale"; 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), 'CreditCardProcessingTypes': TypeInfo(TypeOf.Enum, enumValues:CreditCardProcessingTypes.values), 'CreditCardCloudServiceResponse': TypeInfo(TypeOf.Class, create:() => CreditCardCloudServiceResponse()), 'CreditCardSaleResult': TypeInfo(TypeOf.Class, create:() => CreditCardSaleResult()), 'CreditCardSale': TypeInfo(TypeOf.Class, create:() => CreditCardSale()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), });