/// <summary> /// Initializes a new instance of the /// MicrosoftDynamicsCRMcontractdetail class. /// </summary> /// <param name="expireson">Enter the date when the contract line /// expires. The date is automatically filled with the contract date, /// but you can change it if required.</param> /// <param name="priceBase">Shows the Total Price field converted to /// the system's default base currency for reporting purposes. The /// calculation uses the exchange rate specified in the Currencies /// area.</param> /// <param name="rateBase">Shows the Rate field converted to the /// system's default base currency for reporting purposes. The /// calculation uses the exchange rate specified in the Currencies /// area.</param> /// <param name="netBase">Shows the Net field converted to the system's /// default base currency for reporting purposes. The calculation uses /// the exchange rate specified in the Currencies area.</param> /// <param name="allotmentsused">Shows the number of cases or minutes /// used in the resolved cases on the contract line.</param> /// <param name="statecode">Shows whether the contract line is /// existing, renewed, canceled, or expired. You can't edit a contract /// line after it is saved, regardless of the status.</param> /// <param name="owningbusinessunit">Unique identifier of the business /// unit that owns the contract line.</param> /// <param name="versionnumber">Version number of the contract /// template.</param> /// <param name="_customeridValue">Select the customer account or /// contact to provide a quick link to additional customer details, /// such as address, phone number, activities, and orders.</param> /// <param name="discountBase">Shows the Discount field converted to /// the system's default base currency. The calculation uses the /// exchange rate specified in the Currencies area.</param> /// <param name="timezoneruleversionnumber">For internal use /// only.</param> /// <param name="_createdbyValue">Shows who created the record.</param> /// <param name="servicecontractunitscode">Select the unit type /// allotted in the contract line, such as cases or minutes, to /// determine the level of support.</param> /// <param name="_modifiedonbehalfbyValue">Shows who last updated the /// record on behalf of another user.</param> /// <param name="importsequencenumber">Unique identifier of the data /// import or data migration that created this record.</param> /// <param name="effectivitycalendar">Days of the week and times for /// which the contract line item is effective.</param> /// <param name="utcconversiontimezonecode">Time zone code that was in /// use when the record was created.</param> /// <param name="_uomidValue">Choose the unit of measurement for the /// base unit quantity for this purchase, such as each or /// dozen.</param> /// <param name="owninguser">Unique identifier of the user who owns the /// contract line.</param> /// <param name="title">Type a title or name that describes the /// contract line.</param> /// <param name="_productidValue">Choose the product that is eligible /// for services on the contract line.</param> /// <param name="modifiedon">Shows the date and time when the record /// was last updated. The date and time are displayed in the time zone /// selected in Microsoft Dynamics 365 options.</param> /// <param name="_uomscheduleidValue">Unique identifier of the unit /// group associated with the contract line.</param> /// <param name="discountpercentage">Type the discount rate that should /// be applied to the Total Price, for use in calculating the net /// amount due for the contract line.</param> /// <param name="_serviceaddressValue">Choose the address for the /// customer account or contact where the services are /// provided.</param> /// <param name="contractstatecode">Status of the contract.</param> /// <param name="initialquantity">Type the number of units of the /// specified product or service that are eligible for support on the /// contract line.</param> /// <param name="overriddencreatedon">Date and time that the record was /// migrated.</param> /// <param name="rate">Shows the cost per case or minute, calculated by /// dividing the Total Price value by the total number of cases or /// minutes allocated to the contract line.</param> /// <param name="net">Shows the total charge to the customer for the /// contract line, calculated as the Total Price minus any /// discounts.</param> /// <param name="_contractidValue">Unique identifier of the contract /// associated with the contract line.</param> /// <param name="allotmentsoverage">Shows the number of minutes over /// the Total Allotments field that have been spent on resolved cases /// related to the contract line.</param> /// <param name="contractdetailid">Unique identifier of the contract /// line.</param> /// <param name="createdon">Shows the date and time when the record was /// created. The date and time are displayed in the time zone selected /// in Microsoft Dynamics 365 options.</param> /// <param name="_transactioncurrencyidValue">Choose the local currency /// for the record to make sure budgets are reported in the correct /// currency.</param> /// <param name="allotmentsremaining">Shows the number of cases or /// minutes remaining, based on the resolved cases logged to the /// contract line.</param> /// <param name="discount">Type the discount amount for the contract /// line to deduct any negotiated or other savings from the net amount /// due.</param> /// <param name="totalallotments">Type the total number of minutes or /// cases allowed for the contract line.</param> /// <param name="price">Type the total service charge for the contract /// line before any discounts are credited.</param> /// <param name="_contactidValue">Unique identifier for the contact /// associated with the contract line.</param> /// <param name="activeon">Enter the date when the contract line /// becomes active.</param> /// <param name="_accountidValue">Unique identifier of the account with /// which the contract is associated.</param> /// <param name="productserialnumber">Type the serial number for the /// product that is eligible for services on the contract line.</param> /// <param name="exchangerate">Shows the conversion rate of the /// record's currency. The exchange rate is used to convert all money /// fields in the record from the local currency to the system's /// default currency.</param> /// <param name="_owneridValue">Unique identifier of the user or team /// who owns the contract detail.</param> /// <param name="statuscode">Select the contract line's status.</param> /// <param name="lineitemorder">Type the line item number for the /// contract line to easily identify the contract line and make sure /// it's listed in the correct order in the parent contract.</param> /// <param name="_modifiedbyValue">Shows who last updated the /// record.</param> /// <param name="_createdonbehalfbyValue">Shows who created the record /// on behalf of another user.</param> public MicrosoftDynamicsCRMcontractdetail(System.DateTimeOffset?expireson = default(System.DateTimeOffset?), decimal?priceBase = default(decimal?), decimal?rateBase = default(decimal?), decimal?netBase = default(decimal?), int?allotmentsused = default(int?), int?statecode = default(int?), string owningbusinessunit = default(string), string versionnumber = default(string), string _customeridValue = default(string), decimal?discountBase = default(decimal?), int?timezoneruleversionnumber = default(int?), string _createdbyValue = default(string), int?servicecontractunitscode = default(int?), string _modifiedonbehalfbyValue = default(string), int?importsequencenumber = default(int?), string effectivitycalendar = default(string), int?utcconversiontimezonecode = default(int?), string _uomidValue = default(string), string owninguser = default(string), string title = default(string), string _productidValue = default(string), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), string _uomscheduleidValue = default(string), decimal?discountpercentage = default(decimal?), string _serviceaddressValue = default(string), int?contractstatecode = default(int?), int?initialquantity = default(int?), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), decimal?rate = default(decimal?), decimal?net = default(decimal?), string _contractidValue = default(string), int?allotmentsoverage = default(int?), string contractdetailid = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string _transactioncurrencyidValue = default(string), int?allotmentsremaining = default(int?), decimal?discount = default(decimal?), int?totalallotments = default(int?), decimal?price = default(decimal?), string _contactidValue = default(string), System.DateTimeOffset?activeon = default(System.DateTimeOffset?), string _accountidValue = default(string), string productserialnumber = default(string), decimal?exchangerate = default(decimal?), string _owneridValue = default(string), int?statuscode = default(int?), int?lineitemorder = default(int?), string _modifiedbyValue = default(string), string _createdonbehalfbyValue = default(string), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMbulkdeletefailure> contractDetailBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), MicrosoftDynamicsCRMuomschedule uomscheduleid = default(MicrosoftDynamicsCRMuomschedule), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMincident> contractDetailCases = default(IList <MicrosoftDynamicsCRMincident>), IList <MicrosoftDynamicsCRMsyncerror> contractDetailSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMcustomeraddress serviceaddress = default(MicrosoftDynamicsCRMcustomeraddress), MicrosoftDynamicsCRMcontract contractid = default(MicrosoftDynamicsCRMcontract), IList <MicrosoftDynamicsCRMannotation> contractDetailAnnotation = default(IList <MicrosoftDynamicsCRMannotation>), IList <MicrosoftDynamicsCRMasyncoperation> contractDetailAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), MicrosoftDynamicsCRMuom uomid = default(MicrosoftDynamicsCRMuom), MicrosoftDynamicsCRMaccount customeridAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMproduct productid = default(MicrosoftDynamicsCRMproduct), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMcontact customeridContact = default(MicrosoftDynamicsCRMcontact)) { Expireson = expireson; PriceBase = priceBase; RateBase = rateBase; NetBase = netBase; Allotmentsused = allotmentsused; Statecode = statecode; Owningbusinessunit = owningbusinessunit; Versionnumber = versionnumber; this._customeridValue = _customeridValue; DiscountBase = discountBase; Timezoneruleversionnumber = timezoneruleversionnumber; this._createdbyValue = _createdbyValue; Servicecontractunitscode = servicecontractunitscode; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; Importsequencenumber = importsequencenumber; Effectivitycalendar = effectivitycalendar; Utcconversiontimezonecode = utcconversiontimezonecode; this._uomidValue = _uomidValue; Owninguser = owninguser; Title = title; this._productidValue = _productidValue; Modifiedon = modifiedon; this._uomscheduleidValue = _uomscheduleidValue; Discountpercentage = discountpercentage; this._serviceaddressValue = _serviceaddressValue; Contractstatecode = contractstatecode; Initialquantity = initialquantity; Overriddencreatedon = overriddencreatedon; Rate = rate; Net = net; this._contractidValue = _contractidValue; Allotmentsoverage = allotmentsoverage; Contractdetailid = contractdetailid; Createdon = createdon; this._transactioncurrencyidValue = _transactioncurrencyidValue; Allotmentsremaining = allotmentsremaining; Discount = discount; Totalallotments = totalallotments; Price = price; this._contactidValue = _contactidValue; Activeon = activeon; this._accountidValue = _accountidValue; Productserialnumber = productserialnumber; Exchangerate = exchangerate; this._owneridValue = _owneridValue; Statuscode = statuscode; Lineitemorder = lineitemorder; this._modifiedbyValue = _modifiedbyValue; this._createdonbehalfbyValue = _createdonbehalfbyValue; Modifiedonbehalfby = modifiedonbehalfby; ContractDetailBulkDeleteFailures = contractDetailBulkDeleteFailures; Uomscheduleid = uomscheduleid; Createdonbehalfby = createdonbehalfby; ContractDetailCases = contractDetailCases; ContractDetailSyncErrors = contractDetailSyncErrors; Transactioncurrencyid = transactioncurrencyid; Createdby = createdby; Serviceaddress = serviceaddress; Contractid = contractid; ContractDetailAnnotation = contractDetailAnnotation; ContractDetailAsyncOperations = contractDetailAsyncOperations; Uomid = uomid; CustomeridAccount = customeridAccount; Productid = productid; Modifiedby = modifiedby; CustomeridContact = customeridContact; CustomInit(); }
/// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMcontract /// class. /// </summary> public MicrosoftDynamicsCRMcontract(string _createdonbehalfbyValue = default(string), string _owningteamValue = default(string), string _billingaccountidValue = default(string), string contracttemplateabbreviation = default(string), object netprice = default(object), object exchangerate = default(object), string entityimageUrl = default(string), long?entityimageTimestamp = default(long?), object totalpriceBase = default(object), string _billtoaddressValue = default(string), System.DateTimeOffset?billingstarton = default(System.DateTimeOffset?), string _serviceaddressValue = default(string), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), int?statuscode = default(int?), object totalprice = default(object), long?versionnumber = default(long?), string _billingcontactidValue = default(string), System.DateTimeOffset?billingendon = default(System.DateTimeOffset?), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string _contracttemplateidValue = default(string), object entityimage = default(object), int?contractservicelevelcode = default(int?), object totaldiscount = default(object), int?timezoneruleversionnumber = default(int?), int?statecode = default(int?), string effectivitycalendar = default(string), string contractlanguage = default(string), string entityimageid = default(string), string _billingcustomeridValue = default(string), string _owningbusinessunitValue = default(string), int?importsequencenumber = default(int?), string contractnumber = default(string), string title = default(string), int?allotmenttypecode = default(int?), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), string _modifiedbyValue = default(string), int?utcconversiontimezonecode = default(int?), string contractid = default(string), string _customeridValue = default(string), object netpriceBase = default(object), string _accountidValue = default(string), System.DateTimeOffset?activeon = default(System.DateTimeOffset?), int?billingfrequencycode = default(int?), string _createdbyValue = default(string), string _modifiedonbehalfbyValue = default(string), string _originatingcontractValue = default(string), string _contactidValue = default(string), bool?usediscountaspercentage = default(bool?), string _owninguserValue = default(string), string _transactioncurrencyidValue = default(string), System.DateTimeOffset?expireson = default(System.DateTimeOffset?), System.DateTimeOffset?cancelon = default(System.DateTimeOffset?), int?duration = default(int?), object totaldiscountBase = default(object), string _owneridValue = default(string), IList <MicrosoftDynamicsCRMcontact> servicecontractcontactsAssociation = default(IList <MicrosoftDynamicsCRMcontact>), MicrosoftDynamicsCRMaccount billingcustomeridAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMactivitypointer> contractActivityPointers = default(IList <MicrosoftDynamicsCRMactivitypointer>), MicrosoftDynamicsCRMcustomeraddress serviceaddress = default(MicrosoftDynamicsCRMcustomeraddress), IList <MicrosoftDynamicsCRMrecurringappointmentmaster> contractRecurringAppointmentMasters = default(IList <MicrosoftDynamicsCRMrecurringappointmentmaster>), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), IList <MicrosoftDynamicsCRMactivityparty> contractActivityParties = default(IList <MicrosoftDynamicsCRMactivityparty>), IList <MicrosoftDynamicsCRMconnection> contractConnections1 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMconnection> contractConnections2 = default(IList <MicrosoftDynamicsCRMconnection>), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency), IList <MicrosoftDynamicsCRMasyncoperation> contractAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMappointment> contractAppointments = default(IList <MicrosoftDynamicsCRMappointment>), MicrosoftDynamicsCRMcontact customeridContact = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMcontact billingcustomeridContact = default(MicrosoftDynamicsCRMcontact), IList <MicrosoftDynamicsCRMduplicaterecord> contractDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), IList <MicrosoftDynamicsCRMannotation> contractAnnotation = default(IList <MicrosoftDynamicsCRMannotation>), IList <MicrosoftDynamicsCRMserviceappointment> contractServiceAppointments = default(IList <MicrosoftDynamicsCRMserviceappointment>), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMcontractdetail> contractLineItems = default(IList <MicrosoftDynamicsCRMcontractdetail>), MicrosoftDynamicsCRMcontract originatingcontract = default(MicrosoftDynamicsCRMcontract), IList <MicrosoftDynamicsCRMcontract> contractOriginatingContract = default(IList <MicrosoftDynamicsCRMcontract>), IList <MicrosoftDynamicsCRMsyncerror> contractSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), IList <MicrosoftDynamicsCRMphonecall> contractPhonecalls = default(IList <MicrosoftDynamicsCRMphonecall>), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMletter> contractLetters = default(IList <MicrosoftDynamicsCRMletter>), MicrosoftDynamicsCRMcustomeraddress billtoaddress = default(MicrosoftDynamicsCRMcustomeraddress), IList <MicrosoftDynamicsCRMsocialactivity> contractSocialActivities = default(IList <MicrosoftDynamicsCRMsocialactivity>), IList <MicrosoftDynamicsCRMfax> contractFaxes = default(IList <MicrosoftDynamicsCRMfax>), IList <MicrosoftDynamicsCRMtask> contractTasks = default(IList <MicrosoftDynamicsCRMtask>), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMbulkdeletefailure> contractBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), IList <MicrosoftDynamicsCRMduplicaterecord> contractDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMemail> contractEmails = default(IList <MicrosoftDynamicsCRMemail>), MicrosoftDynamicsCRMaccount customeridAccount = default(MicrosoftDynamicsCRMaccount), IList <MicrosoftDynamicsCRMincident> contractCases = default(IList <MicrosoftDynamicsCRMincident>), MicrosoftDynamicsCRMcontracttemplate contracttemplateid = default(MicrosoftDynamicsCRMcontracttemplate), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), IList <MicrosoftDynamicsCRMabsScheduledprocessexecution> contractAbsScheduledprocessexecutions = default(IList <MicrosoftDynamicsCRMabsScheduledprocessexecution>)) { this._createdonbehalfbyValue = _createdonbehalfbyValue; this._owningteamValue = _owningteamValue; this._billingaccountidValue = _billingaccountidValue; Contracttemplateabbreviation = contracttemplateabbreviation; Netprice = netprice; Exchangerate = exchangerate; EntityimageUrl = entityimageUrl; EntityimageTimestamp = entityimageTimestamp; TotalpriceBase = totalpriceBase; this._billtoaddressValue = _billtoaddressValue; Billingstarton = billingstarton; this._serviceaddressValue = _serviceaddressValue; Modifiedon = modifiedon; Statuscode = statuscode; Totalprice = totalprice; Versionnumber = versionnumber; this._billingcontactidValue = _billingcontactidValue; Billingendon = billingendon; Createdon = createdon; this._contracttemplateidValue = _contracttemplateidValue; Entityimage = entityimage; Contractservicelevelcode = contractservicelevelcode; Totaldiscount = totaldiscount; Timezoneruleversionnumber = timezoneruleversionnumber; Statecode = statecode; Effectivitycalendar = effectivitycalendar; Contractlanguage = contractlanguage; Entityimageid = entityimageid; this._billingcustomeridValue = _billingcustomeridValue; this._owningbusinessunitValue = _owningbusinessunitValue; Importsequencenumber = importsequencenumber; Contractnumber = contractnumber; Title = title; Allotmenttypecode = allotmenttypecode; Overriddencreatedon = overriddencreatedon; this._modifiedbyValue = _modifiedbyValue; Utcconversiontimezonecode = utcconversiontimezonecode; Contractid = contractid; this._customeridValue = _customeridValue; NetpriceBase = netpriceBase; this._accountidValue = _accountidValue; Activeon = activeon; Billingfrequencycode = billingfrequencycode; this._createdbyValue = _createdbyValue; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; this._originatingcontractValue = _originatingcontractValue; this._contactidValue = _contactidValue; Usediscountaspercentage = usediscountaspercentage; this._owninguserValue = _owninguserValue; this._transactioncurrencyidValue = _transactioncurrencyidValue; Expireson = expireson; Cancelon = cancelon; Duration = duration; TotaldiscountBase = totaldiscountBase; this._owneridValue = _owneridValue; ServicecontractcontactsAssociation = servicecontractcontactsAssociation; BillingcustomeridAccount = billingcustomeridAccount; Owninguser = owninguser; ContractActivityPointers = contractActivityPointers; Serviceaddress = serviceaddress; ContractRecurringAppointmentMasters = contractRecurringAppointmentMasters; Owningteam = owningteam; ContractActivityParties = contractActivityParties; ContractConnections1 = contractConnections1; ContractConnections2 = contractConnections2; Transactioncurrencyid = transactioncurrencyid; ContractAsyncOperations = contractAsyncOperations; ContractAppointments = contractAppointments; CustomeridContact = customeridContact; BillingcustomeridContact = billingcustomeridContact; ContractDuplicateBaseRecord = contractDuplicateBaseRecord; Owningbusinessunit = owningbusinessunit; ContractAnnotation = contractAnnotation; ContractServiceAppointments = contractServiceAppointments; Modifiedonbehalfby = modifiedonbehalfby; Modifiedby = modifiedby; ContractLineItems = contractLineItems; Originatingcontract = originatingcontract; ContractOriginatingContract = contractOriginatingContract; ContractSyncErrors = contractSyncErrors; ContractPhonecalls = contractPhonecalls; Createdonbehalfby = createdonbehalfby; ContractLetters = contractLetters; Billtoaddress = billtoaddress; ContractSocialActivities = contractSocialActivities; ContractFaxes = contractFaxes; ContractTasks = contractTasks; Createdby = createdby; ContractBulkDeleteFailures = contractBulkDeleteFailures; ContractDuplicateMatchingRecord = contractDuplicateMatchingRecord; ContractEmails = contractEmails; CustomeridAccount = customeridAccount; ContractCases = contractCases; Contracttemplateid = contracttemplateid; Ownerid = ownerid; ContractAbsScheduledprocessexecutions = contractAbsScheduledprocessexecutions; CustomInit(); }