/* Options: Date: 2026-11-08 12:03:23 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: IvrCcPaymentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; class MemberPaymentResult implements IHaveErrorField, IConvertible { String? TransactionId; String? ErrorCode; String? ErrorMessage; String? GatewayConfirmationNumber; bool? IsError; MemberPaymentResult({this.TransactionId,this.ErrorCode,this.ErrorMessage,this.GatewayConfirmationNumber,this.IsError}); MemberPaymentResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TransactionId = json['TransactionId']; ErrorCode = json['ErrorCode']; ErrorMessage = json['ErrorMessage']; GatewayConfirmationNumber = json['GatewayConfirmationNumber']; IsError = json['IsError']; return this; } Map toJson() => { 'TransactionId': TransactionId, 'ErrorCode': ErrorCode, 'ErrorMessage': ErrorMessage, 'GatewayConfirmationNumber': GatewayConfirmationNumber, 'IsError': IsError }; getTypeName() => "MemberPaymentResult"; TypeContext? context = _ctx; } class IvrCcPaymentResponse extends IvrCcPaymentResponse implements IConvertible { IvrCcPaymentResponse(); IvrCcPaymentResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "IvrCcPaymentResponse"; TypeContext? context = _ctx; } // @Route("/ivr/payment/cc", "POST") class IvrCcPaymentRequest extends IvrCcPaymentRequest implements IReturn, IConvertible { String? PaymentChoice; IvrCcPaymentRequest({this.PaymentChoice}); IvrCcPaymentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); PaymentChoice = json['PaymentChoice']; return this; } Map toJson() => super.toJson()..addAll({ 'PaymentChoice': PaymentChoice }); createResponse() => IvrCcPaymentResponse(); getResponseTypeName() => "IvrCcPaymentResponse"; getTypeName() => "IvrCcPaymentRequest"; TypeContext? context = _ctx; } class IvrCcPaymentRequest implements IConvertible { int? UserID; String? PaymentChoice; String? CardNumber; String? CvcNumber; String? CardType; String? ExpirationMonthYear; double? OtherAmount; IvrCcPaymentRequest({this.UserID,this.PaymentChoice,this.CardNumber,this.CvcNumber,this.CardType,this.ExpirationMonthYear,this.OtherAmount}); IvrCcPaymentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserID = json['UserID']; PaymentChoice = json['PaymentChoice']; CardNumber = json['CardNumber']; CvcNumber = json['CvcNumber']; CardType = json['CardType']; ExpirationMonthYear = json['ExpirationMonthYear']; OtherAmount = JsonConverters.toDouble(json['OtherAmount']); return this; } Map toJson() => { 'UserID': UserID, 'PaymentChoice': PaymentChoice, 'CardNumber': CardNumber, 'CvcNumber': CvcNumber, 'CardType': CardType, 'ExpirationMonthYear': ExpirationMonthYear, 'OtherAmount': OtherAmount }; getTypeName() => "IvrCcPaymentRequest"; TypeContext? context = _ctx; } abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } class IvrCcPaymentResponse extends MemberPaymentResult implements IConvertible { IvrCcPaymentResponse(); IvrCcPaymentResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "IvrCcPaymentResponse"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'MemberPaymentResult': TypeInfo(TypeOf.Class, create:() => MemberPaymentResult()), 'IvrCcPaymentResponse': TypeInfo(TypeOf.Class, create:() => IvrCcPaymentResponse()), 'IvrCcPaymentRequest': TypeInfo(TypeOf.Class, create:() => IvrCcPaymentRequest()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), });