/* Options: Date: 2026-11-08 12:02:48 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: CreditCardDonationRefund.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; 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 RefundResponse extends CreditCardCloudServiceResponse implements IConvertible { bool? IsOverpayment; bool? PaymentNotFound; RefundResponse({this.IsOverpayment,this.PaymentNotFound}); RefundResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); IsOverpayment = json['IsOverpayment']; PaymentNotFound = json['PaymentNotFound']; return this; } Map toJson() => super.toJson()..addAll({ 'IsOverpayment': IsOverpayment, 'PaymentNotFound': PaymentNotFound }); getTypeName() => "RefundResponse"; TypeContext? context = _ctx; } // @Route("/api/creditcard/DonationRefund", "POST") class CreditCardDonationRefund extends CreditCardDonationRefund implements IReturn, IConvertible { CreditCardDonationRefund(); CreditCardDonationRefund.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => RefundResponse(); getResponseTypeName() => "RefundResponse"; getTypeName() => "CreditCardDonationRefund"; TypeContext? context = _ctx; } class CreditCardDonationRefund implements IConvertible { int? ConfirmationId; double? Amount; String? Memo; String? ReasonId; CreditCardDonationRefund({this.ConfirmationId,this.Amount,this.Memo,this.ReasonId}); CreditCardDonationRefund.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ConfirmationId = json['ConfirmationId']; Amount = JsonConverters.toDouble(json['Amount']); Memo = json['Memo']; ReasonId = json['ReasonId']; return this; } Map toJson() => { 'ConfirmationId': ConfirmationId, 'Amount': Amount, 'Memo': Memo, 'ReasonId': ReasonId }; getTypeName() => "CreditCardDonationRefund"; TypeContext? context = _ctx; } abstract class IHaveErrorField { bool? IsError; } abstract class IHaveErrorField { bool? IsError; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'CreditCardCloudServiceResponse': TypeInfo(TypeOf.Class, create:() => CreditCardCloudServiceResponse()), 'RefundResponse': TypeInfo(TypeOf.Class, create:() => RefundResponse()), 'CreditCardDonationRefund': TypeInfo(TypeOf.Class, create:() => CreditCardDonationRefund()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), });