Package com.xero.models.accounting
Class LinkedTransaction
java.lang.Object
com.xero.models.accounting.LinkedTransaction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe Type of the source tranasction.static enumFilter by the combination of ContactID and Status.static enumThis will always be BILLABLEEXPENSE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValidationErrorsItem(ValidationError validationErrorsItem) Displays array of validation error messages from the APIFilter by the combination of ContactID and Status.booleanFilter by the combination of ContactID and Status.The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9The line item identifier from the source transaction.Filter by the SourceTransactionID.The Type of the source tranasction.Filter by the combination of ContactID and Status.The line item identifier from the target transaction.Filter by the TargetTransactionID.getType()This will always be BILLABLEEXPENSE.The last modified date in UTC formatorg.threeten.bp.OffsetDateTimeThe last modified date in UTC formatDisplays array of validation error messages from the APIinthashCode()linkedTransactionID(UUID linkedTransactionID) The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9voidsetContactID(UUID contactID) Filter by the combination of ContactID and Status.voidsetLinkedTransactionID(UUID linkedTransactionID) The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9voidsetSourceLineItemID(UUID sourceLineItemID) The line item identifier from the source transaction.voidsetSourceTransactionID(UUID sourceTransactionID) Filter by the SourceTransactionID.voidsetSourceTransactionTypeCode(LinkedTransaction.SourceTransactionTypeCodeEnum sourceTransactionTypeCode) The Type of the source tranasction.voidFilter by the combination of ContactID and Status.voidsetTargetLineItemID(UUID targetLineItemID) The line item identifier from the target transaction.voidsetTargetTransactionID(UUID targetTransactionID) Filter by the TargetTransactionID.voidThis will always be BILLABLEEXPENSE.voidsetValidationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the APIsourceLineItemID(UUID sourceLineItemID) The line item identifier from the source transaction.sourceTransactionID(UUID sourceTransactionID) Filter by the SourceTransactionID.sourceTransactionTypeCode(LinkedTransaction.SourceTransactionTypeCodeEnum sourceTransactionTypeCode) The Type of the source tranasction.status(LinkedTransaction.StatusEnum status) Filter by the combination of ContactID and Status.targetLineItemID(UUID targetLineItemID) The line item identifier from the target transaction.targetTransactionID(UUID targetTransactionID) Filter by the TargetTransactionID.toString()This will always be BILLABLEEXPENSE.validationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the API
-
Constructor Details
-
LinkedTransaction
public LinkedTransaction()
-
-
Method Details
-
sourceTransactionID
Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice- Parameters:
sourceTransactionID- UUID- Returns:
- LinkedTransaction
-
getSourceTransactionID
Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice- Returns:
- sourceTransactionID
-
setSourceTransactionID
Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice- Parameters:
sourceTransactionID- UUID
-
sourceLineItemID
The line item identifier from the source transaction.- Parameters:
sourceLineItemID- UUID- Returns:
- LinkedTransaction
-
getSourceLineItemID
The line item identifier from the source transaction.- Returns:
- sourceLineItemID
-
setSourceLineItemID
The line item identifier from the source transaction.- Parameters:
sourceLineItemID- UUID
-
contactID
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.- Parameters:
contactID- UUID- Returns:
- LinkedTransaction
-
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
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.- Parameters:
contactID- UUID
-
targetTransactionID
Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice- Parameters:
targetTransactionID- UUID- Returns:
- LinkedTransaction
-
getTargetTransactionID
Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice- Returns:
- targetTransactionID
-
setTargetTransactionID
Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice- Parameters:
targetTransactionID- UUID
-
targetLineItemID
The line item identifier from the target transaction. It is possible to link multiple billable expenses to the same TargetLineItemID.- Parameters:
targetLineItemID- UUID- Returns:
- LinkedTransaction
-
getTargetLineItemID
The line item identifier from the target transaction. It is possible to link multiple billable expenses to the same TargetLineItemID.- Returns:
- targetLineItemID
-
setTargetLineItemID
The line item identifier from the target transaction. It is possible to link multiple billable expenses to the same TargetLineItemID.- Parameters:
targetLineItemID- UUID
-
linkedTransactionID
The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9- Parameters:
linkedTransactionID- UUID- Returns:
- LinkedTransaction
-
getLinkedTransactionID
The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9- Returns:
- linkedTransactionID
-
setLinkedTransactionID
The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9- Parameters:
linkedTransactionID- UUID
-
status
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.- Parameters:
status- StatusEnum- Returns:
- LinkedTransaction
-
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
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.- Parameters:
status- StatusEnum
-
type
This will always be BILLABLEEXPENSE. More types may be added in future.- Parameters:
type- TypeEnum- Returns:
- LinkedTransaction
-
getType
This will always be BILLABLEEXPENSE. More types may be added in future.- Returns:
- type
-
setType
This will always be BILLABLEEXPENSE. More types may be added in future.- Parameters:
type- TypeEnum
-
getUpdatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()The last modified date in UTC format- Returns:
- OffsetDateTime
-
sourceTransactionTypeCode
public LinkedTransaction sourceTransactionTypeCode(LinkedTransaction.SourceTransactionTypeCodeEnum sourceTransactionTypeCode) 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.- Parameters:
sourceTransactionTypeCode- SourceTransactionTypeCodeEnum- Returns:
- LinkedTransaction
-
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) 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.- Parameters:
sourceTransactionTypeCode- SourceTransactionTypeCodeEnum
-
validationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- LinkedTransaction
-
addValidationErrorsItem
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- LinkedTransaction
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
equals
-
hashCode
-
toString
-