/* Options: Date: 2026-11-08 11:52:56 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: CreditCardPaymentRefund.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ApiClientHeader implements IConvertible { int? ClientId; String? Referrer; String? IpAddress; int? LoggedInUserId; int? GroupId; String? Task; String? Machine; String? Location; int? CreatedBy; int? CampaignId; double? ReCaptchaScore; ApiClientHeader({this.ClientId,this.Referrer,this.IpAddress,this.LoggedInUserId,this.GroupId,this.Task,this.Machine,this.Location,this.CreatedBy,this.CampaignId,this.ReCaptchaScore}); ApiClientHeader.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ClientId = json['ClientId']; Referrer = json['Referrer']; IpAddress = json['IpAddress']; LoggedInUserId = json['LoggedInUserId']; GroupId = json['GroupId']; Task = json['Task']; Machine = json['Machine']; Location = json['Location']; CreatedBy = json['CreatedBy']; CampaignId = json['CampaignId']; ReCaptchaScore = JsonConverters.toDouble(json['ReCaptchaScore']); return this; } Map toJson() => { 'ClientId': ClientId, 'Referrer': Referrer, 'IpAddress': IpAddress, 'LoggedInUserId': LoggedInUserId, 'GroupId': GroupId, 'Task': Task, 'Machine': Machine, 'Location': Location, 'CreatedBy': CreatedBy, 'CampaignId': CampaignId, 'ReCaptchaScore': ReCaptchaScore }; getTypeName() => "ApiClientHeader"; TypeContext? context = _ctx; } class PaymentTransactionType { static const PaymentTransactionType None = const PaymentTransactionType._(0); static const PaymentTransactionType MemberPayment = const PaymentTransactionType._(1); static const PaymentTransactionType DonationPayment = const PaymentTransactionType._(2); static const PaymentTransactionType PmiPayment = const PaymentTransactionType._(3); static const PaymentTransactionType MemberPaymentRefund = const PaymentTransactionType._(4); static const PaymentTransactionType DonationRefund = const PaymentTransactionType._(5); static const PaymentTransactionType SmpPayment = const PaymentTransactionType._(6); final int _value; const PaymentTransactionType._(this._value); int get value => _value; static List get values => const [None,MemberPayment,DonationPayment,PmiPayment,MemberPaymentRefund,DonationRefund,SmpPayment]; } class CreditCardRefundInformation implements IConvertible { String? CurrencyCode; String? GatewayTransactionId; double? Amount; String? Memo; int? MemberPaymentId; PaymentTransactionType? Type; int? ReasonId; int? UserId; CreditCardRefundInformation({this.CurrencyCode,this.GatewayTransactionId,this.Amount,this.Memo,this.MemberPaymentId,this.Type,this.ReasonId,this.UserId}); CreditCardRefundInformation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CurrencyCode = json['CurrencyCode']; GatewayTransactionId = json['GatewayTransactionId']; Amount = JsonConverters.toDouble(json['Amount']); Memo = json['Memo']; MemberPaymentId = json['MemberPaymentId']; Type = JsonConverters.fromJson(json['Type'],'PaymentTransactionType',context!); ReasonId = json['ReasonId']; UserId = json['UserId']; return this; } Map toJson() => { 'CurrencyCode': CurrencyCode, 'GatewayTransactionId': GatewayTransactionId, 'Amount': Amount, 'Memo': Memo, 'MemberPaymentId': MemberPaymentId, 'Type': JsonConverters.toJson(Type,'PaymentTransactionType',context!), 'ReasonId': ReasonId, 'UserId': UserId }; getTypeName() => "CreditCardRefundInformation"; TypeContext? context = _ctx; } 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 PaymentFailureType { static const PaymentFailureType None = const PaymentFailureType._(0); static const PaymentFailureType Gateway = const PaymentFailureType._(1); static const PaymentFailureType PaymentTransaction = const PaymentFailureType._(2); static const PaymentFailureType KeyProcurment = const PaymentFailureType._(3); static const PaymentFailureType CardVerification = const PaymentFailureType._(4); final int _value; const PaymentFailureType._(this._value); int get value => _value; static List get values => const [None,Gateway,PaymentTransaction,KeyProcurment,CardVerification]; } class CreditCardPaymentRefundResult extends CreditCardCloudServiceResponse implements IConvertible { int? TransactionRecordID; PaymentFailureType? FailureType; bool? IsOverpayment; bool? PaymentNotFound; CreditCardPaymentRefundResult({this.TransactionRecordID,this.FailureType,this.IsOverpayment,this.PaymentNotFound}); CreditCardPaymentRefundResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); TransactionRecordID = json['TransactionRecordID']; FailureType = JsonConverters.fromJson(json['FailureType'],'PaymentFailureType',context!); IsOverpayment = json['IsOverpayment']; PaymentNotFound = json['PaymentNotFound']; return this; } Map toJson() => super.toJson()..addAll({ 'TransactionRecordID': TransactionRecordID, 'FailureType': JsonConverters.toJson(FailureType,'PaymentFailureType',context!), 'IsOverpayment': IsOverpayment, 'PaymentNotFound': PaymentNotFound }); getTypeName() => "CreditCardPaymentRefundResult"; TypeContext? context = _ctx; } // @Route("/api/CreditCard/Payment/Refund", "POST") class CreditCardPaymentRefund extends CreditCardPaymentRefund implements IReturn, IConvertible { CreditCardPaymentRefund(); CreditCardPaymentRefund.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => CreditCardPaymentRefundResult(); getResponseTypeName() => "CreditCardPaymentRefundResult"; getTypeName() => "CreditCardPaymentRefund"; TypeContext? context = _ctx; } class CreditCardPaymentRefund implements IConvertible { ApiClientHeader? Header; CreditCardRefundInformation? RefundInfo; CreditCardPaymentRefund({this.Header,this.RefundInfo}); CreditCardPaymentRefund.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Header = JsonConverters.fromJson(json['Header'],'ApiClientHeader',context!); RefundInfo = JsonConverters.fromJson(json['RefundInfo'],'CreditCardRefundInformation',context!); return this; } Map toJson() => { 'Header': JsonConverters.toJson(Header,'ApiClientHeader',context!), 'RefundInfo': JsonConverters.toJson(RefundInfo,'CreditCardRefundInformation',context!) }; getTypeName() => "CreditCardPaymentRefund"; TypeContext? context = _ctx; } abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'ApiClientHeader': TypeInfo(TypeOf.Class, create:() => ApiClientHeader()), 'PaymentTransactionType': TypeInfo(TypeOf.Enum, enumValues:PaymentTransactionType.values), 'CreditCardRefundInformation': TypeInfo(TypeOf.Class, create:() => CreditCardRefundInformation()), 'CreditCardCloudServiceResponse': TypeInfo(TypeOf.Class, create:() => CreditCardCloudServiceResponse()), 'PaymentFailureType': TypeInfo(TypeOf.Enum, enumValues:PaymentFailureType.values), 'CreditCardPaymentRefundResult': TypeInfo(TypeOf.Class, create:() => CreditCardPaymentRefundResult()), 'CreditCardPaymentRefund': TypeInfo(TypeOf.Class, create:() => CreditCardPaymentRefund()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), });