/* Options: Date: 2026-11-08 11:52:04 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: CreditCardRefund.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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/refund", "POST") class CreditCardRefund extends CreditCardRefund implements IReturn, IConvertible { CreditCardRefund(); CreditCardRefund.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => RefundResponse(); getResponseTypeName() => "RefundResponse"; getTypeName() => "CreditCardRefund"; TypeContext? context = _ctx; } class CreditCardRefund implements IConvertible { int? UserId; int? GroupId; String? Location; String? CurrencyCode; String? GatewayConfirmationNumber; double? RefundAmount; String? Memo; CreditCardRefund({this.UserId,this.GroupId,this.Location,this.CurrencyCode,this.GatewayConfirmationNumber,this.RefundAmount,this.Memo}); CreditCardRefund.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; GroupId = json['GroupId']; Location = json['Location']; CurrencyCode = json['CurrencyCode']; GatewayConfirmationNumber = json['GatewayConfirmationNumber']; RefundAmount = JsonConverters.toDouble(json['RefundAmount']); Memo = json['Memo']; return this; } Map toJson() => { 'UserId': UserId, 'GroupId': GroupId, 'Location': Location, 'CurrencyCode': CurrencyCode, 'GatewayConfirmationNumber': GatewayConfirmationNumber, 'RefundAmount': RefundAmount, 'Memo': Memo }; getTypeName() => "CreditCardRefund"; 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()), 'CreditCardRefund': TypeInfo(TypeOf.Class, create:() => CreditCardRefund()), 'IHaveErrorField': TypeInfo(TypeOf.Interface), });