/* Options: Date: 2026-11-08 11:37:33 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: CoreChargeRq.* //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.Charges; using BH.CloudAPI.DTO; using BH.CloudAPI.DTO.CoreCharges; using BH.CloudAPI.Common4.DTO; using BH.CloudAPI.DTO.Charges.Api; using BH.CloudAPI.DTO.CoreCharges.Api.Request; using BH.CloudAPI.DTO.CoreCharges.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; } } public partial class ReferenceIdTypedAssociationItem { public virtual string Value { get; set; } public virtual string Type { 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 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.CoreCharges { public partial class CoreChargeDetails { public virtual string PaymentType { get; set; } public virtual int Amount { get; set; } public virtual string IntegrationType { get; set; } public virtual string Currency { get; set; } public virtual CoreCreditCardChargeDetails CardDetails { get; set; } } public partial class CoreChargeGatewaySaleResponse { 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; } } public partial class CoreCreditCardChargeDetails { 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.CoreCharges.Api.Request { [Route("/integrations/api/{integrationType}/core/charge", "POST")] public partial class CoreChargeRq : IReturn, IChargeRequest { public CoreChargeRq() { Invoices = new Dictionary{}; ReferenceIds = new List{}; } [ApiMember(ParameterType="path")] 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 UserId { get; set; } public virtual int AuthenticationId { get; set; } public virtual string ChargeType { get; set; } public virtual string Token { get; set; } [ApiMember(Format="decimal", ParameterType="model")] public virtual decimal Amount { get; set; } public virtual string Description { get; set; } public virtual Dictionary Invoices { get; set; } public virtual int CreatedById { get; set; } public virtual List ReferenceIds { get; set; } public virtual long TransactionId { get; set; } } } namespace BH.CloudAPI.DTO.CoreCharges.Api.Response { public partial class CoreChargeRs { 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 CoreChargeGatewaySaleResponse GatewayResponse { get; set; } public virtual CoreChargeDetails ChargeDetails { get; set; } } }