forked from bullhorn/sdk-rest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bullhorn#349 from hkkin2/master
* Adding support for BillMasterTransactionDistributionBatch, UnbilledRevenueDistribution, UnbilledRevenueDistributionBatch, UnbilledRevenueGeneralLedgerExportStatusLookup * update sdk version to 1.4.21 * update data file names
- Loading branch information
Showing
26 changed files
with
3,273 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
168 changes: 168 additions & 0 deletions
168
...k/data/model/entity/core/paybill/distribution/BillMasterTransactionDistributionBatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
package com.bullhornsdk.data.model.entity.core.paybill.distribution; | ||
|
||
import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile; | ||
import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; | ||
import com.bullhornsdk.data.model.entity.core.paybill.transaction.BillMasterTransaction; | ||
import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; | ||
import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; | ||
import com.bullhornsdk.data.model.entity.core.type.*; | ||
import com.bullhornsdk.data.model.entity.embedded.Address; | ||
import com.bullhornsdk.data.model.entity.embedded.OneToMany; | ||
import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; | ||
|
||
import com.bullhornsdk.data.util.ReadOnly; | ||
import com.fasterxml.jackson.annotation.*; | ||
import org.joda.time.DateTime; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.Date; | ||
import java.util.Objects; | ||
|
||
/** | ||
* Created by Kin.To 25 Nov 2020 | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonRootName(value = "data") | ||
@JsonPropertyOrder({"id", "accountingDate", "batchStatus", "billMasterTransactions", "billableCharges", | ||
"dateAdded", "dateLastModified", "owner" | ||
}) | ||
public class BillMasterTransactionDistributionBatch extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity { | ||
|
||
private Integer id; | ||
private Date accountingDate; | ||
private SimplifiedOptionsLookup batchStatus; | ||
private OneToMany<BillMasterTransaction> billMasterTransactions; | ||
private OneToMany<BillableCharge> billableCharges; | ||
private DateTime dateAdded; | ||
private DateTime dateLastModified; | ||
private CorporateUser owner; | ||
|
||
|
||
public BillMasterTransactionDistributionBatch() { | ||
} | ||
|
||
public BillMasterTransactionDistributionBatch(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
@Override | ||
@JsonProperty("id") | ||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
@ReadOnly | ||
@Override | ||
@JsonProperty("id") | ||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
@JsonProperty("accountingDate") | ||
public Date getAccountingDate() { | ||
return accountingDate; | ||
} | ||
|
||
@JsonProperty("accountingDate") | ||
public void setAccountingDate(Date accountingDate) { | ||
this.accountingDate = accountingDate; | ||
} | ||
|
||
@JsonProperty("batchStatus") | ||
public SimplifiedOptionsLookup getBatchStatus() { | ||
return batchStatus; | ||
} | ||
|
||
@JsonProperty("batchStatus") | ||
public void setBatchStatus(SimplifiedOptionsLookup batchStatus) { | ||
this.batchStatus = batchStatus; | ||
} | ||
|
||
@JsonProperty("billMasterTransactions") | ||
public OneToMany<BillMasterTransaction> getBillMasterTransactions() { | ||
return billMasterTransactions; | ||
} | ||
|
||
@JsonProperty("billMasterTransactions") | ||
public void setBillMasterTransactions(OneToMany<BillMasterTransaction> billMasterTransactions) { | ||
this.billMasterTransactions = billMasterTransactions; | ||
} | ||
|
||
@JsonProperty("billableCharges") | ||
public OneToMany<BillableCharge> getBillableCharges() { | ||
return billableCharges; | ||
} | ||
|
||
@JsonProperty("billableCharges") | ||
public void setBillableCharges(OneToMany<BillableCharge> billableCharges) { | ||
this.billableCharges = billableCharges; | ||
} | ||
|
||
@JsonProperty("dateAdded") | ||
public DateTime getDateAdded() { | ||
return dateAdded; | ||
} | ||
|
||
@JsonProperty("dateAdded") | ||
public void setDateAdded(DateTime dateAdded) { | ||
this.dateAdded = dateAdded; | ||
} | ||
|
||
@JsonProperty("dateLastModified") | ||
public DateTime getDateLastModified() { | ||
return dateLastModified; | ||
} | ||
|
||
@ReadOnly | ||
@JsonProperty("dateLastModified") | ||
public void setDateLastModified(DateTime dateLastModified) { | ||
this.dateLastModified = dateLastModified; | ||
} | ||
|
||
@JsonProperty("owner") | ||
public CorporateUser getOwner() { | ||
return owner; | ||
} | ||
|
||
@JsonProperty("owner") | ||
public void setOwner(CorporateUser owner) { | ||
this.owner = owner; | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
return "BillMasterTransactionDistributionBatch{" + | ||
"id=" + id + | ||
", accountingDate=" + accountingDate + | ||
", batchStatus=" + batchStatus + | ||
", billMasterTransactions=" + billMasterTransactions + | ||
", billableCharges=" + billableCharges + | ||
", dateAdded=" + dateAdded + | ||
", dateLastModified=" + dateLastModified + | ||
", owner=" + owner + | ||
'}'; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
BillMasterTransactionDistributionBatch that = (BillMasterTransactionDistributionBatch) o; | ||
return Objects.equals(id, that.id) && | ||
Objects.equals(accountingDate, that.accountingDate) && | ||
Objects.equals(batchStatus, that.batchStatus) && | ||
Objects.equals(billMasterTransactions, that.billMasterTransactions) && | ||
Objects.equals(billableCharges, that.billableCharges) && | ||
Objects.equals(dateAdded, that.dateAdded) && | ||
Objects.equals(dateLastModified, that.dateLastModified) && | ||
Objects.equals(owner, that.owner); | ||
|
||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(id, accountingDate, batchStatus, billMasterTransactions, billableCharges, dateAdded, dateLastModified, owner); | ||
} | ||
|
||
} |
Oops, something went wrong.