Package com.xero.models.accounting
Class LinkedTransaction
java.lang.Object
com.xero.models.accounting.LinkedTransaction
public class LinkedTransaction extends Object
LinkedTransaction
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLinkedTransaction.SourceTransactionTypeCodeEnumThe Type of the source tranasction.static classLinkedTransaction.StatusEnumFilter by the combination of ContactID and Status.static classLinkedTransaction.TypeEnumThis will always be BILLABLEEXPENSE. -
Constructor Summary
Constructors Constructor Description LinkedTransaction() -
Method Summary
-
Constructor Details
-
LinkedTransaction
public LinkedTransaction()
-
-
Method Details
-
sourceTransactionID
-
getSourceTransactionID
Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice- Returns:
- sourceTransactionID
-
setSourceTransactionID
-
sourceLineItemID
-
getSourceLineItemID
The line item identifier from the source transaction.- Returns:
- sourceLineItemID
-
setSourceLineItemID
-
contactID
-
getContactID
Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.- Returns:
- contactID
-
setContactID
-
targetTransactionID
-
getTargetTransactionID
Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice- Returns:
- targetTransactionID
-
setTargetTransactionID
-
targetLineItemID
-
getTargetLineItemID
The line item identifier from the target transaction. It is possible to link multiple billable expenses to the same TargetLineItemID.- Returns:
- targetLineItemID
-
setTargetLineItemID
-
linkedTransactionID
-
getLinkedTransactionID
The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9- Returns:
- linkedTransactionID
-
setLinkedTransactionID
-
status
-
getStatus
Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.- Returns:
- status
-
setStatus
-
type
-
getType
This will always be BILLABLEEXPENSE. More types may be added in future.- Returns:
- type
-
setType
-
getUpdatedDateUTC
The last modified date in UTC format- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate() -
sourceTransactionTypeCode
public LinkedTransaction sourceTransactionTypeCode(LinkedTransaction.SourceTransactionTypeCodeEnum sourceTransactionTypeCode) -
getSourceTransactionTypeCode
The Type of the source tranasction. This will be ACCPAY if the linked transaction was created from an invoice and SPEND if it was created from a bank transaction.- Returns:
- sourceTransactionTypeCode
-
setSourceTransactionTypeCode
public void setSourceTransactionTypeCode(LinkedTransaction.SourceTransactionTypeCodeEnum sourceTransactionTypeCode) -
validationErrors
-
addValidationErrorsItem
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
-
equals
-
hashCode
public int hashCode() -
toString
-