' Options: 'Date: 2025-08-04 00:03:57 '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 '''MakeDataContractsExtensible: 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 Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports AIM.WebService Namespace Global Namespace AIM.WebService Public Partial Class Accessory ''' '''The description to be used for the Accessory ''' Public Overridable Property Desc As String ''' '''The price to be used for the Accessory ''' Public Overridable Property Price As Decimal ''' '''The type of Accessory. A is Accessory, D is Delivery Option, and M is Maintenance ''' Public Overridable Property Type As String ''' '''The category # in AIM to be linked to this accessory. ''' Public Overridable Property CatNum As Integer ''' '''A SKU or Package Deal package SKU can be sent here to link the accessory to that SKU or package. ''' Public Overridable Property Sku As String ''' '''Internal Use Only ''' Public Overridable Property Report As Nullable(Of Boolean) End Class Public Partial Class BaseRequest ''' '''This is your AIM API Key provided by Tri-Tech ''' Public Overridable Property ApiKey As String ''' '''The OAuthToken token return by AeServices30 ''' Public Overridable Property OAuthToken As String ''' '''The Device ID of the Mobile Device. Not used for non-mobile devices. ''' Public Overridable Property DeviceId As String ''' '''An identifier for your integration ''' Public Overridable Property AppId As String End Class Public Partial Class BaseResponse ''' ''' ''' Public Overridable Property Status As BaseResponseResult End Class Public Partial Class BaseSecureRequest Inherits BaseRequest ''' '''The Login Token return by the Security API. Required for secured calls. ''' Public Overridable Property Token As String End Class ''' '''C2BPostContractRequires active-e Contracts Service. ''' Public Partial Class C2BPostContractRequest Inherits BaseSecureRequest Implements IReturn(Of C2BPostContractResponse) Public Sub New() AccessoryIdList = New List(Of Long) AccessoryList = New List(Of Accessory) FormInputList = New List(Of FormInput) End Sub ''' '''ID of the teacher to associate the contract with. ''' Public Overridable Property TeacherId As Nullable(Of Long) ''' '''Used to associate the contract with a school by school name. ''' Public Overridable Property SchoolName As String ''' '''Used to associate the contract with a school by the AIM School ID ''' Public Overridable Property AIMSchoolId As Nullable(Of Long) ''' '''Used to associate the contract with a location by location code. ''' Public Overridable Property Stloc As String ''' '''ID of the instrument to associate the contract with. ''' Public Overridable Property InstrumentId As Nullable(Of Long) ''' '''SKU to associate the contract with. Don't send if you send InstrumentId. ''' Public Overridable Property Sku As String ''' '''Description to associate the contract with if a SKU is sent. Don't send if you send InstrumentId. ''' Public Overridable Property Desc As String ''' '''The ID from the C2BGradeGeneric object ''' Public Overridable Property RateId As Nullable(Of Long) ''' '''Rate object if you're not sending RateId. Don't send both. ''' Public Overridable Property Rate As Rate ''' '''List of Accessory/Delivery/Maintenance IDs. ''' Public Overridable Property AccessoryIdList As List(Of Long) ''' '''List of Accessory/Delivery/Maintenance objects. This is for items not defined in AIM. ''' Public Overridable Property AccessoryList As List(Of Accessory) ''' '''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 ''' Public Overridable Property FormInputList As List(Of FormInput) ''' '''Credit Card Information ''' Public Overridable Property CcInfo As CcInfo ''' '''Customer Information if the a CusAcct is not being passed in. ''' Public Overridable Property CustomerInfo As CustomerInfo ''' '''AIM Customer Acct# to be linked to this contract. Do not pass in CustomerInfo if using CusAcct. ''' Public Overridable Property CusAcct As Nullable(Of Integer) ''' '''Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU. ''' Public Overridable Property Cat As Nullable(Of Integer) ''' '''Used to associate a contract with a Cat/Sub rather then a SKU. Don't send if you send InstrumentId or SKU. ''' Public Overridable Property Sub As Nullable(Of Integer) ''' '''If TRUE is sent, a Topic will be returned with information from AIM. Usually not used. ''' Public Overridable Property ReturnTopic As Nullable(Of Boolean) ''' '''If sent, the Contract will have the specified status in AIM upon creation. Use ContractStatusListing to get the desired Id. Usually not used. ''' Public Overridable Property StatusId As Nullable(Of Long) ''' '''Internal Use Only. Do not use. ''' Public Overridable Property CardTerminalId As String End Class Public Partial Class C2BPostContractResponse Inherits BaseResponse Public Overridable Property PaymentRequired As Boolean Public Overridable Property Topic As String Public Overridable Property WebRef As String Public Overridable Property BaseUrl As String End Class Public Partial Class CcInfo ''' '''Token returned from processor ''' Public Overridable Property TokenStr As String ''' '''Card Type (VISA, MCARD, AMEX, DSCVR) ''' Public Overridable Property CardType As String ''' '''Last four of the card ''' Public Overridable Property LastFour As String ''' '''Expiration Date of the Card. (MM/YY) ''' Public Overridable Property Expiration As String ''' '''Reason the card is on file. ''' Public Overridable Property ReasonOnFile As String ''' '''ID of the existing Token Record in AIM, if applicable ''' Public Overridable Property TokenPk As Nullable(Of Long) ''' '''Is this the customer's primary card? Defaults to false. ''' Public Overridable Property Primary As Nullable(Of Boolean) End Class Public Partial Class CustomerInfo ''' '''The WebId of the customer. Optional. ''' Public Overridable Property WebId As Nullable(Of Integer) ''' '''Name of the customer. ''' Public Overridable Property Name As String ''' '''Address line 1 of the customer ''' Public Overridable Property Addr1 As String ''' '''Address line 2 of the customer ''' Public Overridable Property Addr2 As String ''' '''City of the customer ''' Public Overridable Property City As String ''' '''State/Province of the customer ''' Public Overridable Property St As String ''' '''Zip code of the customer ''' Public Overridable Property Zip As String ''' '''Country of the customer ''' Public Overridable Property Country As String ''' '''Phone number of the customer ''' Public Overridable Property Phone As String ''' '''Email address of the customer. Required. ''' Public Overridable Property Email As String End Class Public Partial Class FormInput ''' '''Field name of the Input Field. If linking to an Attribute, this should match the Tag value. ''' Public Overridable Property Key As String ''' '''Value of the Input Field. ''' Public Overridable Property Value As String ''' '''Whether or not the field is encryped with the C2B encryption key. ''' Public Overridable Property Encrypted As Boolean End Class Public Partial Class Rate ''' '''Plan Code to be used for the contract ''' Public Overridable Property PlanCode As String ''' '''Level to be used for the contract ''' Public Overridable Property Level As Nullable(Of Integer) ''' '''Grade to be used for the contract ''' Public Overridable Property Grade As String ''' '''Down Payment to be collected. Does not include maintenance or lease fees. ''' Public Overridable Property DownPay As Nullable(Of Decimal) ''' '''Monthly amount to be collected for the contract. Does not include maintenance or lease fees. ''' Public Overridable Property MoPay As Nullable(Of Decimal) ''' '''Down Payment to be collected for maintenance. ''' Public Overridable Property DownMaint As Nullable(Of Decimal) ''' '''Monthly amount to be collected for the maintenance. ''' Public Overridable Property MoMaint As Nullable(Of Decimal) ''' '''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 ''' Public Overridable Property RdfType As String ''' '''The ID of the contract default to be used for this contract. ''' Public Overridable Property ContractDefaultId As Nullable(Of Long) ''' '''The Number of Months covered by the downpayment ''' Public Overridable Property Months As Nullable(Of Integer) ''' '''Down Payment to be collected for Lease Fees. ''' Public Overridable Property DownLease As Nullable(Of Decimal) ''' '''Monthly amount to be collected for lease fees. ''' Public Overridable Property MoLease As Nullable(Of Decimal) End Class End Namespace End Namespace