/* Options: Date: 2025-08-03 23:55:23 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeServices30/api //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: C2BPostContractRequest.* //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 AIM.WebService; namespace AIM.WebService { [DataContract(Name="Accessory")] public partial class Accessory { /// ///The description to be used for the Accessory /// [DataMember] [ApiMember(DataType="string", Description="The description to be used for the Accessory", IsRequired=true, Name="Desc", ParameterType="body")] public virtual string Desc { get; set; } /// ///The price to be used for the Accessory /// [DataMember] [ApiMember(DataType="decimal", Description="The price to be used for the Accessory", Name="Price", ParameterType="body")] public virtual decimal Price { get; set; } /// ///The type of Accessory. A is Accessory, D is Delivery Option, and M is Maintenance /// [DataMember] [ApiMember(DataType="string", Description="The type of Accessory. A is Accessory, D is Delivery Option, and M is Maintenance", Name="Type", ParameterType="body")] public virtual string Type { get; set; } /// ///The category # in AIM to be linked to this accessory. /// [DataMember] [ApiMember(DataType="int", Description="The category # in AIM to be linked to this accessory.", Name="CatNum", ParameterType="body")] public virtual int CatNum { get; set; } /// ///A SKU or Package Deal package SKU can be sent here to link the accessory to that SKU or package. /// [DataMember] [ApiMember(DataType="string", Description="A SKU or Package Deal package SKU can be sent here to link the accessory to that SKU or package.", Name="Sku", ParameterType="body")] public virtual string Sku { get; set; } /// ///Internal Use Only /// [DataMember] [ApiMember(DataType="bool", Description="Internal Use Only", Name="Report", ParameterType="body")] public virtual bool? Report { get; set; } } [DataContract] public partial class BaseRequest { /// ///This is your AIM API Key provided by Tri-Tech /// [DataMember] [ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="Header")] public virtual string ApiKey { get; set; } /// ///The OAuthToken token return by AeServices30 /// [DataMember] [ApiMember(DataType="string", Description="The OAuthToken token return by AeServices30", IsRequired=true, Name="OAuthToken", ParameterType="Header")] public virtual string OAuthToken { get; set; } /// ///The Device ID of the Mobile Device. Not used for non-mobile devices. /// [DataMember] [ApiMember(DataType="string", Description="The Device ID of the Mobile Device. Not used for non-mobile devices.", Name="DeviceId", ParameterType="Header")] public virtual string DeviceId { get; set; } /// ///An identifier for your integration /// [DataMember] [ApiMember(DataType="string", Description="An identifier for your integration", IsRequired=true, Name="AppId", ParameterType="Header")] public virtual string AppId { get; set; } } [DataContract] public partial class BaseResponse { /// /// /// [DataMember] [ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body")] public virtual BaseResponseResult Status { get; set; } } [DataContract] public partial class BaseSecureRequest : BaseRequest { /// ///The Login Token return by the Security API. Required for secured calls. /// [DataMember] [ApiMember(DataType="string", Description="The Login Token return by the Security API. Required for secured calls.", Name="Token", ParameterType="Header")] public virtual string Token { get; set; } } /// ///C2BPostContractRequires active-e Contracts Service. /// [Route("/C2BPostContract", "POST, GET")] [DataContract] public partial class C2BPostContractRequest : BaseSecureRequest, IReturn { public C2BPostContractRequest() { AccessoryIdList = new List{}; AccessoryList = new List{}; FormInputList = new List{}; } /// ///ID of the teacher to associate the contract with. /// [DataMember] [ApiMember(DataType="integer", Description="ID of the teacher to associate the contract with.", Format="int64", Name="TeacherId", ParameterType="body")] public virtual long? TeacherId { get; set; } /// ///Used to associate the contract with a school by school name. /// [DataMember] [ApiMember(DataType="string", Description="Used to associate the contract with a school by school name.", Name="SchoolName", ParameterType="body")] public virtual string SchoolName { get; set; } /// ///Used to associate the contract with a school by the AIM School ID /// [DataMember] [ApiMember(DataType="string", Description="Used to associate the contract with a school by the AIM School ID", Name="AIMSchoolId", ParameterType="body")] public virtual long? AIMSchoolId { get; set; } /// ///Used to associate the contract with a location by location code. /// [DataMember] [ApiMember(DataType="string", Description="Used to associate the contract with a location by location code.", Name="Stloc", ParameterType="body")] public virtual string Stloc { get; set; } /// ///ID of the instrument to associate the contract with. /// [DataMember] [ApiMember(DataType="integer", Description="ID of the instrument to associate the contract with.", Format="int64", Name="InstrumentId", ParameterType="body")] public virtual long? InstrumentId { get; set; } /// ///SKU to associate the contract with. Don't send if you send InstrumentId. /// [DataMember] [ApiMember(DataType="string", Description="SKU to associate the contract with. Don't send if you send InstrumentId.", Name="Sku", ParameterType="body")] public virtual string Sku { get; set; } /// ///Description to associate the contract with if a SKU is sent. Don't send if you send InstrumentId. /// [DataMember] [ApiMember(DataType="string", Description="Description to associate the contract with if a SKU is sent. Don't send if you send InstrumentId.", Name="Desc", ParameterType="body")] public virtual string Desc { get; set; } /// ///The ID from the C2BGradeGeneric object /// [DataMember] [ApiMember(DataType="integer", Description="The ID from the C2BGradeGeneric object", Format="int64", Name="RateId", ParameterType="body")] public virtual long? RateId { get; set; } /// ///Rate object if you're not sending RateId. Don't send both. /// [DataMember] [ApiMember(DataType="object", Description="Rate object if you're not sending RateId. Don't send both.", Name="Rate", ParameterType="body")] public virtual Rate Rate { get; set; } /// ///List of Accessory/Delivery/Maintenance IDs. /// [DataMember] [ApiMember(DataType="array", Description="List of Accessory/Delivery/Maintenance IDs.", Name="AccessoryIdList", ParameterType="body")] public virtual List AccessoryIdList { get; set; } /// ///List of Accessory/Delivery/Maintenance objects. This is for items not defined in AIM. /// [DataMember] [ApiMember(DataType="array", Description="List of Accessory/Delivery/Maintenance objects. This is for items not defined in AIM.", Name="AccessoryList", ParameterType="body")] public virtual List AccessoryList { get; set; } /// ///List of Key/Value pairs containing additional information about the customer. If the Key matches an attribute tag within AIM it will populate that attribute. The following Keys are also handled specially: RENTALNOTES, ONLINESIGNATURE, ATTENTION, EMPLOYER, SOCIALSECURITY, WORKPHONE, EXTENSION, EXTENSION2, CELLPHONE, FAX, BANKROUTINGNUMBER, BANKACCOUNTNUMBER, BANKTRANSACTIONTYPE, DRIVERSLICENSENUMBER, DRIVERSLICENSESTATE, BIRTHDAY, SIGCAPTURE, WORKPHONE_EXT, CELLPHONE_EXT, FAX_EXT, CREDITCHECKNAMEOVERRIDE, DELIVERYDATE /// [DataMember] [ApiMember(DataType="array", Description="List of Key/Value pairs containing additional information about the customer. If the Key matches an attribute tag within AIM it will populate that attribute. The following Keys are also handled specially: RENTALNOTES, ONLINESIGNATURE, ATTENTION, EMPLOYER, SOCIALSECURITY, WORKPHONE, EXTENSION, EXTENSION2, CELLPHONE, FAX, BANKROUTINGNUMBER, BANKACCOUNTNUMBER, BANKTRANSACTIONTYPE, DRIVERSLICENSENUMBER, DRIVERSLICENSESTATE, BIRTHDAY, SIGCAPTURE, WORKPHONE_EXT, CELLPHONE_EXT, FAX_EXT, CREDITCHECKNAMEOVERRIDE, DELIVERYDATE", Name="FormInputList", ParameterType="body")] public virtual List FormInputList { get; set; } /// ///Credit Card Information /// [DataMember] [ApiMember(DataType="object", Description="Credit Card Information", Name="CcInfo", ParameterType="body")] public virtual CcInfo CcInfo { get; set; } /// ///Customer Information if the a CusAcct is not being passed in. /// [DataMember] [ApiMember(DataType="object", Description="Customer Information if the a CusAcct is not being passed in.", Name="CustomerInfo", ParameterType="body")] public virtual CustomerInfo CustomerInfo { get; set; } /// ///AIM Customer Acct# to be linked to this contract. Do not pass in CustomerInfo if using CusAcct. /// [DataMember] [ApiMember(DataType="integer", Description="AIM Customer Acct# to be linked to this contract. Do not pass in CustomerInfo if using CusAcct.", Format="int32", Name="CusAcct", ParameterType="body")] public virtual int? CusAcct { get; set; } /// ///Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU. /// [DataMember] [ApiMember(DataType="int", Description="Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU.", Name="Cat", ParameterType="body")] public virtual int? Cat { get; set; } /// ///Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU. /// [DataMember] [ApiMember(DataType="int", Description="Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU.", Name="Sub", ParameterType="body")] public virtual int? Sub { get; set; } /// ///If TRUE is sent, a Topic will be returned with information from AIM. Usually not used. /// [DataMember] [ApiMember(DataType="bool", Description="If TRUE is sent, a Topic will be returned with information from AIM. Usually not used.", Name="ReturnTopic", ParameterType="body")] public virtual bool? ReturnTopic { get; set; } /// ///If sent, the Contract will have the specified status in AIM upon creation. Use ContractStatusListing to get the desired Id. Usually not used. /// [DataMember] [ApiMember(DataType="int", Description="If sent, the Contract will have the specified status in AIM upon creation. Use ContractStatusListing to get the desired Id. Usually not used.", Name="StatusId", ParameterType="body")] public virtual long? StatusId { get; set; } /// ///Internal Use Only. Do not use. /// [DataMember] [ApiMember(DataType="string", Description="Internal Use Only. Do not use.", Name="CardTerminalId", ParameterType="body")] public virtual string CardTerminalId { get; set; } } [DataContract] public partial class C2BPostContractResponse : BaseResponse { [DataMember] public virtual bool PaymentRequired { get; set; } [DataMember] public virtual string Topic { get; set; } [DataMember] public virtual string WebRef { get; set; } [DataMember] public virtual string BaseUrl { get; set; } } [DataContract(Name="CCInfo")] public partial class CcInfo { /// ///Token returned from processor /// [DataMember] [ApiMember(DataType="string", Description="Token returned from processor", IsRequired=true, Name="TokenStr", ParameterType="body")] public virtual string TokenStr { get; set; } /// ///Card Type (VISA, MCARD, AMEX, DSCVR) /// [DataMember] [ApiMember(DataType="string", Description="Card Type (VISA, MCARD, AMEX, DSCVR)", IsRequired=true, Name="CardType", ParameterType="body")] public virtual string CardType { get; set; } /// ///Last four of the card /// [DataMember] [ApiMember(DataType="string", Description="Last four of the card", IsRequired=true, Name="LastFour", ParameterType="body")] public virtual string LastFour { get; set; } /// ///Expiration Date of the Card. (MM/YY) /// [DataMember] [ApiMember(DataType="string", Description="Expiration Date of the Card. (MM/YY)", Name="Expiration", ParameterType="body")] public virtual string Expiration { get; set; } /// ///Reason the card is on file. /// [DataMember] [ApiMember(DataType="string", Description="Reason the card is on file.", Name="ReasonOnFile", ParameterType="body")] public virtual string ReasonOnFile { get; set; } /// ///ID of the existing Token Record in AIM, if applicable /// [DataMember] [ApiMember(DataType="integer", Description="ID of the existing Token Record in AIM, if applicable", Format="int64", Name="TokenPk", ParameterType="body")] public virtual long? TokenPk { get; set; } /// ///Is this the customer's primary card? Defaults to false. /// [DataMember] [ApiMember(DataType="boolean", Description="Is this the customer's primary card? Defaults to false.", Name="Primary", ParameterType="body")] public virtual bool? Primary { get; set; } } [DataContract(Name="CustomerInfo")] public partial class CustomerInfo { /// ///The WebId of the customer. Optional. /// [DataMember] [ApiMember(DataType="integer", Description="The WebId of the customer. Optional.", Format="int32", Name="WebId", ParameterType="body")] public virtual int? WebId { get; set; } /// ///Name of the customer. /// [DataMember] [ApiMember(DataType="string", Description="Name of the customer.", IsRequired=true, Name="Name", ParameterType="body")] public virtual string Name { get; set; } /// ///Address line 1 of the customer /// [DataMember] [ApiMember(DataType="string", Description="Address line 1 of the customer", Name="Addr1", ParameterType="body")] public virtual string Addr1 { get; set; } /// ///Address line 2 of the customer /// [DataMember] [ApiMember(DataType="string", Description="Address line 2 of the customer", Name="Addr2", ParameterType="body")] public virtual string Addr2 { get; set; } /// ///City of the customer /// [DataMember] [ApiMember(DataType="string", Description="City of the customer", Name="City", ParameterType="body")] public virtual string City { get; set; } /// ///State/Province of the customer /// [DataMember] [ApiMember(DataType="string", Description="State/Province of the customer", Name="St", ParameterType="body")] public virtual string St { get; set; } /// ///Zip code of the customer /// [DataMember] [ApiMember(DataType="string", Description="Zip code of the customer", Name="Zip", ParameterType="body")] public virtual string Zip { get; set; } /// ///Country of the customer /// [DataMember] [ApiMember(DataType="string", Description="Country of the customer", Name="Country", ParameterType="body")] public virtual string Country { get; set; } /// ///Phone number of the customer /// [DataMember] [ApiMember(DataType="string", Description="Phone number of the customer", Name="Phone", ParameterType="body")] public virtual string Phone { get; set; } /// ///Email address of the customer. Required. /// [DataMember] [ApiMember(DataType="string", Description="Email address of the customer. Required.", IsRequired=true, Name="Email", ParameterType="body")] public virtual string Email { get; set; } } [DataContract(Name="FormInput")] public partial class FormInput { /// ///Field name of the Input Field. If linking to an Attribute, this should match the Tag value. /// [DataMember] [ApiMember(DataType="string", Description="Field name of the Input Field. If linking to an Attribute, this should match the Tag value.", IsRequired=true, Name="Key", ParameterType="body")] public virtual string Key { get; set; } /// ///Value of the Input Field. /// [DataMember] [ApiMember(DataType="string", Description="Value of the Input Field.", IsRequired=true, Name="Value", ParameterType="body")] public virtual string Value { get; set; } /// ///Whether or not the field is encryped with the C2B encryption key. /// [DataMember] [ApiMember(DataType="boolean", Description="Whether or not the field is encryped with the C2B encryption key.", Name="Encrypted", ParameterType="body")] public virtual bool Encrypted { get; set; } } [DataContract(Name="Rate")] public partial class Rate { /// ///Plan Code to be used for the contract /// [DataMember] [ApiMember(DataType="string", Description="Plan Code to be used for the contract", Name="PlanCode", ParameterType="body")] public virtual string PlanCode { get; set; } /// ///Level to be used for the contract /// [DataMember] [ApiMember(DataType="int", Description="Level to be used for the contract", Name="Level", ParameterType="body")] public virtual int? Level { get; set; } /// ///Grade to be used for the contract /// [DataMember] [ApiMember(DataType="string", Description="Grade to be used for the contract", Name="Grade", ParameterType="body")] public virtual string Grade { get; set; } /// ///Down Payment to be collected. Does not include maintenance or lease fees. /// [DataMember] [ApiMember(DataType="decimal", Description="Down Payment to be collected. Does not include maintenance or lease fees.", Name="DownPay", ParameterType="body")] public virtual decimal? DownPay { get; set; } /// ///Monthly amount to be collected for the contract. Does not include maintenance or lease fees. /// [DataMember] [ApiMember(DataType="decimal", Description="Monthly amount to be collected for the contract. Does not include maintenance or lease fees.", Name="MoPay", ParameterType="body")] public virtual decimal? MoPay { get; set; } /// ///Down Payment to be collected for maintenance. /// [DataMember] [ApiMember(DataType="decimal", Description="Down Payment to be collected for maintenance.", Name="DownMaint", ParameterType="body")] public virtual decimal? DownMaint { get; set; } /// ///Monthly amount to be collected for the maintenance. /// [DataMember] [ApiMember(DataType="decimal", Description="Monthly amount to be collected for the maintenance.", Name="MoMaint", ParameterType="body")] public virtual decimal? MoMaint { get; set; } /// ///If sent, the first Contract Default with this rental type will be used. Not used if ContractDefaultId is sent. Valid values are EW: Extended Warranty, RO: Rent to Rent, RF: Rent to Own, SF: Sales Contract, RV: Simple Intrst: Rent, SV: Simple Intrst: Sales /// [DataMember] [ApiMember(DataType="int64", Description="If sent, the first Contract Default with this rental type will be used. Not used if ContractDefaultId is sent. Valid values are EW: Extended Warranty, RO: Rent to Rent, RF: Rent to Own, SF: Sales Contract, RV: Simple Intrst: Rent, SV: Simple Intrst: Sales", Name="RdfType", ParameterType="body")] public virtual string RdfType { get; set; } /// ///The ID of the contract default to be used for this contract. /// [DataMember] [ApiMember(DataType="int64", Description="The ID of the contract default to be used for this contract.", Name="ContractDefaultId", ParameterType="body")] public virtual long? ContractDefaultId { get; set; } /// ///The Number of Months covered by the downpayment /// [DataMember] [ApiMember(DataType="int", Description="The Number of Months covered by the downpayment", Name="Months", ParameterType="body")] public virtual int? Months { get; set; } /// ///Down Payment to be collected for Lease Fees. /// [DataMember] [ApiMember(DataType="decimal", Description="Down Payment to be collected for Lease Fees.", Name="DownMaint", ParameterType="body")] public virtual decimal? DownLease { get; set; } /// ///Monthly amount to be collected for lease fees. /// [DataMember] [ApiMember(DataType="decimal", Description="Monthly amount to be collected for lease fees.", Name="MoLease", ParameterType="body")] public virtual decimal? MoLease { get; set; } } }