Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

Commit bf56bec

Browse files
authored
Merge pull request #256 from MatthewSteeples/HasAttachments
Add an interface to indicate whether an entity can have attachments
2 parents d035d72 + c95fe81 commit bf56bec

14 files changed

Lines changed: 25 additions & 12 deletions

Xero.Api/Common/IHasAttachment.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace Xero.Api.Common
7+
{
8+
public interface IHasAttachment
9+
{
10+
bool? HasAttachments { get; set; }
11+
}
12+
}

Xero.Api/Core/Model/Account.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Xero.Api.Core.Model
88
{
99
[DataContract(Namespace = "")]
10-
public class Account : CoreData, IHasId
10+
public class Account : CoreData, IHasId, IHasAttachment
1111
{
1212
[DataMember(Name = "AccountID", EmitDefaultValue = false)]
1313
public Guid Id { get; set; }

Xero.Api/Core/Model/BankTransaction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Xero.Api.Core.Model
99
{
1010
[DataContract(Namespace = "")]
11-
public class BankTransaction : HasUpdatedDate, IHasId
11+
public class BankTransaction : HasUpdatedDate, IHasId, IHasAttachment
1212
{
1313
[DataMember(Name = "BankTransactionID", EmitDefaultValue = false)]
1414
public Guid Id { get; set; }

Xero.Api/Core/Model/BankTransfer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Xero.Api.Core.Model
66
{
77
[DataContract(Namespace = "")]
8-
public class BankTransfer : HasUpdatedDate, IHasId
8+
public class BankTransfer : HasUpdatedDate, IHasId, IHasAttachment
99
{
1010
[DataMember(Name = "BankTransferID", EmitDefaultValue = false)]
1111
public Guid Id { get; set; }

Xero.Api/Core/Model/Contact.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Xero.Api.Core.Model
88
{
99
[DataContract(Namespace = "")]
10-
public class Contact : HasUpdatedDate, IHasId
10+
public class Contact : HasUpdatedDate, IHasId, IHasAttachment
1111
{
1212
[DataMember(Name = "ContactID", EmitDefaultValue = false)]
1313
public Guid Id { get; set; }

Xero.Api/Core/Model/CreditNote.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Xero.Api.Core.Model
99
{
1010
[DataContract(Namespace = "")]
11-
public class CreditNote : HasUpdatedDate, IHasId
11+
public class CreditNote : HasUpdatedDate, IHasId, IHasAttachment
1212
{
1313
[DataMember(Name = "CreditNoteID", EmitDefaultValue = false)]
1414
public Guid Id { get; set; }

Xero.Api/Core/Model/Invoice.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Xero.Api.Core.Model
99
{
1010
[DataContract(Namespace = "")]
11-
public class Invoice : HasUpdatedDate, IHasId
11+
public class Invoice : HasUpdatedDate, IHasId, IHasAttachment
1212
{
1313
[DataMember(Name = "InvoiceID", EmitDefaultValue = false)]
1414
public Guid Id { get; set; }

Xero.Api/Core/Model/ManualJournal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Xero.Api.Core.Model
99
{
1010
[DataContract(Namespace = "")]
11-
public class ManualJournal : HasUpdatedDate, IHasId
11+
public class ManualJournal : HasUpdatedDate, IHasId, IHasAttachment
1212
{
1313
[DataMember(Name = "ManualJournalID", EmitDefaultValue = false)]
1414
public Guid Id { get; set; }

Xero.Api/Core/Model/Overpayment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Xero.Api.Core.Model
99
{
1010
[DataContract(Namespace = "")]
11-
public class Overpayment : HasUpdatedDate, IHasId
11+
public class Overpayment : HasUpdatedDate, IHasId, IHasAttachment
1212
{
1313
[DataMember(Name = "OverpaymentID")]
1414
public Guid Id { get; set; }

Xero.Api/Core/Model/Prepayment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Xero.Api.Core.Model
99
{
1010
[DataContract(Namespace = "")]
11-
public class Prepayment : HasUpdatedDate, IHasId
11+
public class Prepayment : HasUpdatedDate, IHasId, IHasAttachment
1212
{
1313
[DataMember(Name = "PrepaymentID")]
1414
public Guid Id { get; set; }

0 commit comments

Comments
 (0)