Skip to content

Commit

Permalink
Merge pull request #42 from moldypenguins/master
Browse files Browse the repository at this point in the history
updates
  • Loading branch information
Craig Roberts authored Dec 18, 2019
2 parents 9e6d2f0 + 17c6637 commit 651bedc
Show file tree
Hide file tree
Showing 34 changed files with 156 additions and 46 deletions.
Binary file modified .vs/AutotaskNET/v15/.suo
Binary file not shown.
Binary file modified .vs/AutotaskNET/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/AutotaskNET/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/AutotaskNET/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
Binary file added .vs/AutotaskNET/v16/.suo
Binary file not shown.
Empty file.
Binary file added .vs/AutotaskNET/v16/Server/sqlite3/storage.ide
Binary file not shown.
3 changes: 2 additions & 1 deletion AutotaskNET/Entities/AccountLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public static implicit operator net.autotask.webservices.AccountLocation(Account
return new net.autotask.webservices.AccountLocation()
{
id = accountlocation.id,

AccountID = int.Parse(accountlocation.AccountID.ToString()),
LocationName = accountlocation.LocationName == null ? default(string) : accountlocation.LocationName.ToString()
};

} //end implicit operator net.autotask.webservices.AccountLocation(AccountLocation accountlocation)
Expand Down
126 changes: 106 additions & 20 deletions AutotaskNET/Entities/BillingItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,49 @@ public class BillingItem : Entity
public BillingItem() : base() { } //end BillingItem()
public BillingItem(net.autotask.webservices.BillingItem entity) : base(entity)
{
this.AccountID = entity.AccountID == null ? default(int?) : int.Parse(entity.AccountID.ToString());
this.AccountManagerWhenApprovedID = entity.AccountManagerWhenApprovedID == null ? default(int?) : int.Parse(entity.AccountManagerWhenApprovedID.ToString());
this.AllocationCodeID = entity.AllocationCodeID == null ? default(int?) : int.Parse(entity.AllocationCodeID.ToString());
this.ApprovedTime = entity.ApprovedTime == null ? default(DateTime?) : DateTime.Parse(entity.ApprovedTime.ToString());
this.BusinessDivisionSubdivisionID = entity.BusinessDivisionSubdivisionID == null ? default(int?) : int.Parse(entity.BusinessDivisionSubdivisionID.ToString());
this.ContractCostID = entity.ContractCostID == null ? default(long?) : long.Parse(entity.ContractCostID.ToString());
this.ContractID = entity.ContractID == null ? default(int?) : int.Parse(entity.ContractID.ToString());
this.Description = entity.Description == null ? default(string) : entity.Description.ToString();
this.ExpenseItemID = entity.ExpenseItemID == null ? default(int?) : int.Parse(entity.ExpenseItemID.ToString());
this.ExtendedPrice = entity.ExtendedPrice == null ? default(double?) : double.Parse(entity.ExtendedPrice.ToString());
this.InstalledProductID = entity.InstalledProductID == null ? default(long?) : long.Parse(entity.InstalledProductID.ToString());
this.InternalCurrencyExtendedPrice = entity.InternalCurrencyExtendedPrice == null ? default(double?) : double.Parse(entity.InternalCurrencyExtendedPrice.ToString());
this.InternalCurrencyRate = entity.InternalCurrencyRate == null ? default(double?) : double.Parse(entity.InternalCurrencyRate.ToString());
this.InternalCurrencyTaxDollars = entity.InternalCurrencyTaxDollars == null ? default(double?) : double.Parse(entity.InternalCurrencyTaxDollars.ToString());
this.InternalCurrencyTotalAmount = entity.InternalCurrencyTotalAmount == null ? default(double?) : double.Parse(entity.InternalCurrencyTotalAmount.ToString());
this.InvoiceID = entity.InvoiceID == null ? default(int?) : int.Parse(entity.InvoiceID.ToString());
this.ItemApproverID = entity.ItemApproverID == null ? default(int?) : int.Parse(entity.ItemApproverID.ToString());
this.ItemDate = entity.ItemDate == null ? default(DateTime?) : DateTime.Parse(entity.ItemDate.ToString());
this.ItemName = entity.ItemName == null ? default(string) : entity.ItemName.ToString();
this.LineItemFullDescription = entity.LineItemFullDescription == null ? default(string) : entity.LineItemFullDescription.ToString();
this.LineItemGroupDescription = entity.LineItemGroupDescription == null ? default(string) : entity.LineItemGroupDescription.ToString();
this.LineItemID = entity.LineItemID == null ? default(long?) : long.Parse(entity.LineItemID.ToString());
this.MilestoneID = entity.MilestoneID == null ? default(long?) : long.Parse(entity.MilestoneID.ToString());
this.NonBillable = int.Parse(entity.NonBillable.ToString());
this.OurCost = entity.OurCost == null ? default(double?) : double.Parse(entity.OurCost.ToString());
this.ProjectCostID = entity.ProjectCostID == null ? default(long?) : long.Parse(entity.ProjectCostID.ToString());
this.ProjectID = entity.ProjectID == null ? default(int?) : int.Parse(entity.ProjectID.ToString());
this.PurchaseOrderNumber = entity.PurchaseOrderNumber == null ? default(string) : entity.PurchaseOrderNumber.ToString();
this.Quantity = entity.Quantity == null ? default(double?) : double.Parse(entity.Quantity.ToString());
this.Rate = entity.Rate == null ? default(double?) : double.Parse(entity.Rate.ToString());
this.RoleID = entity.RoleID == null ? default(int?) : int.Parse(entity.RoleID.ToString());
this.ServiceBundleID = entity.ServiceBundleID == null ? default(long?) : long.Parse(entity.ServiceBundleID.ToString());
this.ServiceID = entity.ServiceID == null ? default(long?) : long.Parse(entity.ServiceID.ToString());
this.SubType = int.Parse(entity.SubType.ToString());
this.TaskID = entity.TaskID == null ? default(int?) : int.Parse(entity.TaskID.ToString());
this.TaxDollars = entity.TaxDollars == null ? default(double?) : double.Parse(entity.TaxDollars.ToString());
this.TicketCostID = entity.TicketCostID == null ? default(long?) : long.Parse(entity.TicketCostID.ToString());
this.TicketID = entity.TicketID == null ? default(int?) : int.Parse(entity.TicketID.ToString());
this.TimeEntryID = entity.TimeEntryID == null ? default(int?) : int.Parse(entity.TimeEntryID.ToString());
this.TotalAmount = entity.TotalAmount == null ? default(double?) : double.Parse(entity.TotalAmount.ToString());
this.Type = int.Parse(entity.Type.ToString());
this.VendorID = entity.VendorID == null ? default(long?) : long.Parse(entity.VendorID.ToString());
this.WebServiceDate = entity.WebServiceDate == null ? default(DateTime?) : DateTime.Parse(entity.WebServiceDate.ToString());

} //end BillingItem(net.autotask.webservices.BillingItem entity)

Expand All @@ -33,7 +76,50 @@ public static implicit operator net.autotask.webservices.BillingItem(BillingItem
return new net.autotask.webservices.BillingItem()
{
id = billingitem.id,

AccountID = billingitem.AccountID == null ? default(int?) : int.Parse(billingitem.AccountID.ToString()),
AccountManagerWhenApprovedID = billingitem.AccountManagerWhenApprovedID == null ? default(int?) : int.Parse(billingitem.AccountManagerWhenApprovedID.ToString()),
AllocationCodeID = billingitem.AllocationCodeID == null ? default(int?) : int.Parse(billingitem.AllocationCodeID.ToString()),
ApprovedTime = billingitem.ApprovedTime == null ? default(DateTime?) : DateTime.Parse(billingitem.ApprovedTime.ToString()),
BusinessDivisionSubdivisionID = billingitem.BusinessDivisionSubdivisionID == null ? default(int?) : int.Parse(billingitem.BusinessDivisionSubdivisionID.ToString()),
ContractCostID = billingitem.ContractCostID == null ? default(long?) : long.Parse(billingitem.ContractCostID.ToString()),
ContractID = billingitem.ContractID == null ? default(int?) : int.Parse(billingitem.ContractID.ToString()),
Description = billingitem.Description == null ? default(string) : billingitem.Description.ToString(),
ExpenseItemID = billingitem.ExpenseItemID == null ? default(int?) : int.Parse(billingitem.ExpenseItemID.ToString()),
ExtendedPrice = billingitem.ExtendedPrice == null ? default(double?) : double.Parse(billingitem.ExtendedPrice.ToString()),
InstalledProductID = billingitem.InstalledProductID == null ? default(long?) : long.Parse(billingitem.InstalledProductID.ToString()),
InternalCurrencyExtendedPrice = billingitem.InternalCurrencyExtendedPrice == null ? default(double?) : double.Parse(billingitem.InternalCurrencyExtendedPrice.ToString()),
InternalCurrencyRate = billingitem.InternalCurrencyRate == null ? default(double?) : double.Parse(billingitem.InternalCurrencyRate.ToString()),
InternalCurrencyTaxDollars = billingitem.InternalCurrencyTaxDollars == null ? default(double?) : double.Parse(billingitem.InternalCurrencyTaxDollars.ToString()),
InternalCurrencyTotalAmount = billingitem.InternalCurrencyTotalAmount == null ? default(double?) : double.Parse(billingitem.InternalCurrencyTotalAmount.ToString()),
InvoiceID = billingitem.InvoiceID == null ? default(int?) : int.Parse(billingitem.InvoiceID.ToString()),
ItemApproverID = billingitem.ItemApproverID == null ? default(int?) : int.Parse(billingitem.ItemApproverID.ToString()),
ItemDate = billingitem.ItemDate == null ? default(DateTime?) : DateTime.Parse(billingitem.ItemDate.ToString()),
ItemName = billingitem.ItemName == null ? default(string) : billingitem.ItemName.ToString(),
LineItemFullDescription = billingitem.LineItemFullDescription == null ? default(string) : billingitem.LineItemFullDescription.ToString(),
LineItemGroupDescription = billingitem.LineItemGroupDescription == null ? default(string) : billingitem.LineItemGroupDescription.ToString(),
LineItemID = billingitem.LineItemID == null ? default(long?) : long.Parse(billingitem.LineItemID.ToString()),
MilestoneID = billingitem.MilestoneID == null ? default(long?) : long.Parse(billingitem.MilestoneID.ToString()),
NonBillable = int.Parse(billingitem.NonBillable.ToString()),
OurCost = billingitem.OurCost == null ? default(double?) : double.Parse(billingitem.OurCost.ToString()),
ProjectCostID = billingitem.ProjectCostID == null ? default(long?) : long.Parse(billingitem.ProjectCostID.ToString()),
ProjectID = billingitem.ProjectID == null ? default(int?) : int.Parse(billingitem.ProjectID.ToString()),
PurchaseOrderNumber = billingitem.PurchaseOrderNumber == null ? default(string) : billingitem.PurchaseOrderNumber.ToString(),
Quantity = billingitem.Quantity == null ? default(double?) : double.Parse(billingitem.Quantity.ToString()),
Rate = billingitem.Rate == null ? default(double?) : double.Parse(billingitem.Rate.ToString()),
RoleID = billingitem.RoleID == null ? default(int?) : int.Parse(billingitem.RoleID.ToString()),
ServiceBundleID = billingitem.ServiceBundleID == null ? default(long?) : long.Parse(billingitem.ServiceBundleID.ToString()),
ServiceID = billingitem.ServiceID == null ? default(long?) : long.Parse(billingitem.ServiceID.ToString()),
SubType = int.Parse(billingitem.SubType.ToString()),
TaskID = billingitem.TaskID == null ? default(int?) : int.Parse(billingitem.TaskID.ToString()),
TaxDollars = billingitem.TaxDollars == null ? default(double?) : double.Parse(billingitem.TaxDollars.ToString()),
TicketCostID = billingitem.TicketCostID == null ? default(long?) : long.Parse(billingitem.TicketCostID.ToString()),
TicketID = billingitem.TicketID == null ? default(int?) : int.Parse(billingitem.TicketID.ToString()),
TimeEntryID = billingitem.TimeEntryID == null ? default(int?) : int.Parse(billingitem.TimeEntryID.ToString()),
TotalAmount = billingitem.TotalAmount == null ? default(double?) : double.Parse(billingitem.TotalAmount.ToString()),
Type = int.Parse(billingitem.Type.ToString()),
VendorID = billingitem.VendorID == null ? default(long?) : long.Parse(billingitem.VendorID.ToString()),
WebServiceDate = billingitem.WebServiceDate == null ? default(DateTime?) : DateTime.Parse(billingitem.WebServiceDate.ToString())

};

} //end implicit operator net.autotask.webservices.BillingItem(BillingItem billingitem)
Expand All @@ -46,10 +132,10 @@ public static implicit operator net.autotask.webservices.BillingItem(BillingItem

public string ItemName; //ReadOnly Length:255
public string Description; //ReadOnly Length:2000
public double Quantity; //ReadOnly
public double Rate; //ReadOnly
public double TotalAmount; //ReadOnly
public double OurCost; //ReadOnly
public double? Quantity; //ReadOnly
public double? Rate; //ReadOnly
public double? TotalAmount; //ReadOnly
public double? OurCost; //ReadOnly
public DateTime? ItemDate; //ReadOnly
public DateTime? ApprovedTime; //ReadOnly
public int? InvoiceID; //ReadOnly [Invoice]
Expand All @@ -62,25 +148,25 @@ public static implicit operator net.autotask.webservices.BillingItem(BillingItem
public int? RoleID; //ReadOnly [Role]
public int? TimeEntryID; //ReadOnly [TimeEntry]
public int? ContractID; //ReadOnly [Contract]
public double TaxDollars; //ReadOnly
public double? TaxDollars; //ReadOnly
public string PurchaseOrderNumber; //ReadOnly Length:50
public double ExtendedPrice; //ReadOnly
public double? ExtendedPrice; //ReadOnly
public int? ExpenseItemID; //ReadOnly [ExpenseItem]
public long ContractCostID; //ReadOnly [ContractCost]
public long ProjectCostID; //ReadOnly [ProjectCost]
public long TicketCostID; //ReadOnly [TicketCost]
public long LineItemID; //ReadOnly
public long MilestoneID; //ReadOnly [ContractMilestone]
public long ServiceID; //ReadOnly [Service]
public long ServiceBundleID; //ReadOnly [ServiceBundle]
public long VendorID; //ReadOnly [Account]
public long? ContractCostID; //ReadOnly [ContractCost]
public long? ProjectCostID; //ReadOnly [ProjectCost]
public long? TicketCostID; //ReadOnly [TicketCost]
public long? LineItemID; //ReadOnly
public long? MilestoneID; //ReadOnly [ContractMilestone]
public long? ServiceID; //ReadOnly [Service]
public long? ServiceBundleID; //ReadOnly [ServiceBundle]
public long? VendorID; //ReadOnly [Account]
public string LineItemFullDescription; //ReadOnly Length:8000
public string LineItemGroupDescription; //ReadOnly Length:8000
public long InstalledProductID; //ReadOnly [InstalledProduct]
public double InternalCurrencyExtendedPrice; //ReadOnly
public double InternalCurrencyRate; //ReadOnly
public double InternalCurrencyTaxDollars; //ReadOnly
public double InternalCurrencyTotalAmount; //ReadOnly
public long? InstalledProductID; //ReadOnly [InstalledProduct]
public double? InternalCurrencyExtendedPrice; //ReadOnly
public double? InternalCurrencyRate; //ReadOnly
public double? InternalCurrencyTaxDollars; //ReadOnly
public double? InternalCurrencyTotalAmount; //ReadOnly
public int? AccountManagerWhenApprovedID; //ReadOnly [Resource]
public int? BusinessDivisionSubdivisionID; //ReadOnly [BusinessDivisionSubdivision]

Expand Down
10 changes: 8 additions & 2 deletions AutotaskNET/Entities/BillingItemApprovalLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,21 @@ public class BillingItemApprovalLevel : Entity
public BillingItemApprovalLevel() : base() { } //end BillingItemApprovalLevel()
public BillingItemApprovalLevel(net.autotask.webservices.BillingItemApprovalLevel entity) : base(entity)
{

this.ApprovalDateTime = DateTime.Parse(entity.ApprovalDateTime.ToString());
this.ApprovalLevel = int.Parse(entity.ApprovalLevel.ToString());
this.ApprovalResourceID = int.Parse(entity.ApprovalResourceID.ToString());
this.TimeEntryID = int.Parse(entity.TimeEntryID.ToString());
} //end BillingItemApprovalLevel(net.autotask.webservices.BillingItemApprovalLevel entity)

public static implicit operator net.autotask.webservices.BillingItemApprovalLevel(BillingItemApprovalLevel billingitemapprovallevel)
{
return new net.autotask.webservices.BillingItemApprovalLevel()
{
id = billingitemapprovallevel.id,

ApprovalDateTime = billingitemapprovallevel.ApprovalDateTime,
ApprovalLevel = billingitemapprovallevel.ApprovalLevel,
ApprovalResourceID = billingitemapprovallevel.ApprovalResourceID,
TimeEntryID = billingitemapprovallevel.TimeEntryID
};

} //end ToATWS()
Expand Down
23 changes: 22 additions & 1 deletion AutotaskNET/Entities/InternalLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ public class InternalLocation : Entity
public InternalLocation() : base() { } //end InternalLocation()
public InternalLocation(net.autotask.webservices.InternalLocation entity) : base(entity)
{
this.Name = entity.Name == null ? default(string) : entity.Name.ToString();
this.AdditionalAddressInfo = entity.AdditionalAddressInfo == null ? default(string) : entity.AdditionalAddressInfo.ToString();
this.Address1 = entity.Address1 == null ? default(string) : entity.Address1.ToString();
this.Address2 = entity.Address2 == null ? default(string) : entity.Address2.ToString();
this.City = entity.City == null ? default(string) : entity.City.ToString();
this.Country = entity.Country == null ? default(string) : entity.Country.ToString();
this.HolidaySetId = long.Parse(entity.HolidaySetId.ToString());
this.IsDefault = entity.IsDefault == null ? default(bool?) : bool.Parse(entity.IsDefault.ToString());
this.PostalCode = entity.PostalCode == null ? default(string) : entity.PostalCode.ToString();
this.State = entity.State == null ? default(string) : entity.State.ToString();
this.TimeZone = entity.TimeZone == null ? default(string) : entity.TimeZone.ToString();

} //end InternalLocation(net.autotask.webservices.InternalLocation entity)

Expand All @@ -34,7 +45,17 @@ public static implicit operator net.autotask.webservices.InternalLocation(Intern
return new net.autotask.webservices.InternalLocation()
{
id = internallocation.id,

Name = internallocation.Name == null ? default(string) : internallocation.Name.ToString(),
AdditionalAddressInfo = internallocation.AdditionalAddressInfo == null ? default(string) : internallocation.AdditionalAddressInfo.ToString(),
Address1 = internallocation.Address1 == null ? default(string) : internallocation.Address1.ToString(),
Address2 = internallocation.Address2 == null ? default(string) : internallocation.Address2.ToString(),
City = internallocation.City == null ? default(string) : internallocation.City.ToString(),
Country = internallocation.Country == null ? default(string) : internallocation.Country.ToString(),
HolidaySetId = long.Parse(internallocation.HolidaySetId.ToString()),
IsDefault = internallocation.IsDefault == null ? default(bool?) : bool.Parse(internallocation.IsDefault.ToString()),
PostalCode = internallocation.PostalCode == null ? default(string) : internallocation.PostalCode.ToString(),
State = internallocation.State == null ? default(string) : internallocation.State.ToString(),
TimeZone = internallocation.TimeZone == null ? default(string) : internallocation.TimeZone.ToString()
};

} //end implicit operator net.autotask.webservices.InternalLocation(InternalLocation internallocation)
Expand Down
Loading

0 comments on commit 651bedc

Please sign in to comment.