/* Options: Date: 2026-11-08 11:52:37 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: HeldPaymentChargeRq.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using BH.CloudAPI.DTO.HeldPayments; using BH.CloudAPI.DTO.Charges; using BH.CloudAPI.DTO.HeldPayments.Api; using BH.CloudAPI.Common4.DTO; using BH.CloudAPI.DTO.Charges.Api; using BH.CloudAPI.DTO; using BH.CloudAPI.DTO.HeldPayments.Api.Request; using BH.CloudAPI.DTO.HeldPayments.Api.Response; namespace BH.CloudAPI.Common4.DTO { public partial class AttributeItem { public virtual string Name { get; set; } public virtual string Value { get; set; } } } namespace BH.CloudAPI.DTO { public partial class AttributeItem { public virtual string Name { get; set; } public virtual string Value { get; set; } } } namespace BH.CloudAPI.DTO.Charges { public partial interface IChargeRequest { string integrationType { get; set; } int NationalId { get; set; } int ChapterId { get; set; } long StoredAccountId { get; set; } int ContextIntegrationPartnerId { get; set; } int CallerIntegrationPartnerId { get; set; } int AuthenticationId { get; set; } string ChargeType { get; set; } string Token { get; set; } decimal Amount { get; set; } string Description { get; set; } int CreatedById { get; set; } long TransactionId { get; set; } } } namespace BH.CloudAPI.DTO.Charges.Api { public partial class AchChargeVerificationResult { public virtual bool NetworkVerificationAttempted { get; set; } public virtual string Result { get; set; } } public partial class CreditCardBillingAddressItem { public CreditCardBillingAddressItem() { Attributes = new List{}; } public virtual string Address1 { get; set; } public virtual string Address2 { get; set; } public virtual string City { get; set; } public virtual string PostalCode { get; set; } public virtual string Region { get; set; } public virtual string Country { get; set; } public virtual List Attributes { get; set; } } public partial class CreditCardChargeVerificationResult { public virtual bool NetworkVerificationAttempted { get; set; } public virtual string CvvVerificationResult { get; set; } public virtual string AddressVerificationResult { get; set; } public virtual string PostalCodeVerificationResult { get; set; } } } namespace BH.CloudAPI.DTO.HeldPayments { public partial class HeldPaymentChargeItem { public virtual string Type { get; set; } public virtual string Description { get; set; } public virtual decimal Amount { get; set; } public virtual string ClientInvoiceId { get; set; } public virtual int ClientInvoiceOwnerTypeId { get; set; } } public partial class HeldPaymentGatewaySaleResponse { public virtual string FailureType { get; set; } public virtual bool IsDuplicate { get; set; } public virtual bool IsSuccessful { get; set; } public virtual string ErrorCode { get; set; } public virtual string Message { get; set; } public virtual int GatewayId { get; set; } public virtual string ConfirmationNumber { get; set; } public virtual string NetworkTransactionId { get; set; } } } namespace BH.CloudAPI.DTO.HeldPayments.Api { public partial class HeldPaymentAchChargeDetails { public virtual string AccountType { get; set; } public virtual string RoutingNumber { get; set; } public virtual string AccountNumberLast4 { get; set; } public virtual string BankName { get; set; } public virtual AchChargeVerificationResult VerificationResult { get; set; } } public partial class HeldPaymentChargeDetails { public virtual string PaymentType { get; set; } public virtual decimal Amount { get; set; } public virtual string IntegrationType { get; set; } public virtual string Currency { get; set; } public virtual HeldPaymentCreditCardChargeDetails CardDetails { get; set; } public virtual HeldPaymentAchChargeDetails AchDetails { get; set; } } public partial class HeldPaymentCreditCardChargeDetails { public virtual string CardType { get; set; } public virtual int ExpMonth { get; set; } public virtual int ExpYear { get; set; } public virtual string Last4 { get; set; } public virtual CreditCardBillingAddressItem Address { get; set; } public virtual CreditCardChargeVerificationResult VerificationResult { get; set; } } } namespace BH.CloudAPI.DTO.HeldPayments.Api.Request { [Route("/integrations/api/{integrationType}/heldpayment/charge", "POST")] public partial class HeldPaymentChargeRq : IReturn, IChargeRequest { public HeldPaymentChargeRq() { ChargeItems = new List{}; } public virtual string integrationType { get; set; } public virtual int NationalId { get; set; } public virtual int ChapterId { get; set; } public virtual long StoredAccountId { get; set; } public virtual int ContextIntegrationPartnerId { get; set; } public virtual int CallerIntegrationPartnerId { get; set; } public virtual int AuthenticationId { get; set; } public virtual string ChargeType { get; set; } public virtual string Token { get; set; } public virtual decimal Amount { get; set; } public virtual string Description { get; set; } public virtual int CreatedById { get; set; } public virtual long TransactionId { get; set; } public virtual bool StoreChargeAccount { get; set; } public virtual List ChargeItems { get; set; } public virtual int CreatedBy { get; set; } } } namespace BH.CloudAPI.DTO.HeldPayments.Api.Response { public partial class HeldPaymentChargeRs { public HeldPaymentChargeRs() { ChargeItems = new List{}; } public virtual string TransactionId { get; set; } public virtual long StoredAccountId { get; set; } public virtual int NationalId { get; set; } public virtual int ChapterId { get; set; } public virtual string ChargeType { get; set; } public virtual string IntegrationType { get; set; } public virtual int ContextIntegrationPartnerId { get; set; } public virtual int CallerIntegrationPartnerId { get; set; } public virtual HeldPaymentGatewaySaleResponse GatewayResponse { get; set; } public virtual HeldPaymentChargeDetails ChargeDetails { get; set; } public virtual List ChargeItems { get; set; } } }