From 219c4683ee0ccabf127874b103f817905eb95ba8 Mon Sep 17 00:00:00 2001 From: mkesmetzis Date: Fri, 24 Apr 2020 11:23:29 +0100 Subject: [PATCH 1/7] adding more pay and bill entities --- .../data/api/mock/MockDataLoader.groovy | 3 + .../paybill/BillableChargeAssociations.java | 61 ++ .../contractmanagement/earncode/EarnCode.java | 257 ++++++ .../core/paybill/charge/BillableCharge.java | 446 ++++++++++ .../core/paybill/charge/PayableCharge.java | 325 ++++++++ .../chartofaccounts/GeneralLedgerSegment.java | 126 +++ .../GeneralLedgerSegment1.java | 20 + .../GeneralLedgerSegment2.java | 20 + .../GeneralLedgerSegment3.java | 21 + .../GeneralLedgerSegment4.java | 20 + .../GeneralLedgerSegment5.java | 20 + .../GeneralLedgerSegmentType.java | 76 ++ .../GeneralLedgerServiceCode.java | 115 +++ .../core/paybill/discount/Discount.java | 112 +++ .../core/paybill/discount/DiscountType.java | 51 ++ .../paybill/invoice/InvoiceStatement.java | 596 ++++++++++++++ .../invoice/InvoiceStatementBatch.java | 107 +++ .../invoice/InvoiceStatementDiscount.java | 70 ++ .../invoice/InvoiceStatementLineItem.java | 214 +++++ .../InvoiceStatementLineItemGroupBy.java | 95 +++ .../core/paybill/invoice/InvoiceTerm.java | 1 + .../master/AbstractMasterTransaction.java | 204 +++++ .../core/paybill/master/BatchGroup.java | 56 ++ .../core/paybill/master/BillMaster.java | 160 ++++ .../paybill/master/BillMasterTransaction.java | 103 +++ .../paybill/master/BillableTransaction.java | 155 ++++ .../core/paybill/master/BillingSyncBatch.java | 175 ++++ .../entity/core/paybill/master/PayMaster.java | 122 +++ .../SimplifiedOptionsLookup.java | 66 ++ .../SpecializedOptionsLookup.java | 100 +++ .../optionslookup/WorkflowOptionsLookup.java | 57 ++ .../transaction/TransactionOrigin.java | 53 ++ .../transaction/TransactionStatus.java | 82 ++ .../paybill/transaction/TransactionType.java | 56 ++ .../core/paybill/unit/UnitOfMeasure.java | 45 ++ .../file/BillableChargeFileAttachment.java | 69 ++ .../data/model/enums/BullhornEntityInfo.java | 101 +-- ...llableChargeFileAttachmentListWrapper.java | 15 + .../BillableChargeFileAttachmentWrapper.java | 10 + .../billablechargefileattachment-data.txt | 765 ++++++++++++++++++ 40 files changed, 5065 insertions(+), 85 deletions(-) create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/association/paybill/BillableChargeAssociations.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/contractmanagement/earncode/EarnCode.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementBatch.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementDiscount.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItem.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItemGroupBy.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/AbstractMasterTransaction.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BatchGroup.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMasterTransaction.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillingSyncBatch.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SimplifiedOptionsLookup.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SpecializedOptionsLookup.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/WorkflowOptionsLookup.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionOrigin.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionStatus.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionType.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/unit/UnitOfMeasure.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/file/BillableChargeFileAttachment.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/BillableChargeFileAttachmentListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/BillableChargeFileAttachmentWrapper.java create mode 100644 src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt diff --git a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy index df61d3f6..71917e35 100644 --- a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy +++ b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy @@ -91,6 +91,7 @@ import com.bullhornsdk.data.model.entity.core.standard.* import com.bullhornsdk.data.model.entity.core.type.BullhornEntity import com.bullhornsdk.data.model.entity.core.type.SearchEntity import com.bullhornsdk.data.model.entity.embedded.UserType +import com.bullhornsdk.data.model.entity.file.BillableChargeFileAttachment import com.bullhornsdk.data.model.entity.file.CandidateFileAttachment import com.bullhornsdk.data.model.entity.file.CertificationFileAttachment import com.bullhornsdk.data.model.entity.file.ClientContactFileAttachment @@ -587,6 +588,8 @@ public class MockDataLoader { entityFiles.put(JobOrderFileAttachment.class, "file/joborderfileattachment-data.txt"); entityFiles.put(OpportunityFileAttachment.class, "file/opportunityfileattachment-data.txt"); entityFiles.put(PlacementFileAttachment.class, "file/placementfileattachment-data.txt"); + entityFiles.put(BillableChargeFileAttachment.class, "file/billablechargefileattachment-data.txt"); + entityFiles.put(ClientCorporationCustomObject.class, "customobject/clientcorporationcustomobject-data.txt"); entityFiles.put(JobOrderCustomObject.class, "customobject/jobordercustomobject-data.txt"); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/association/paybill/BillableChargeAssociations.java b/src/main/java/com/bullhornsdk/data/model/entity/association/paybill/BillableChargeAssociations.java new file mode 100644 index 00000000..0f8d17fa --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/association/paybill/BillableChargeAssociations.java @@ -0,0 +1,61 @@ +package com.bullhornsdk.data.model.entity.association.paybill; + +import com.bullhornsdk.data.model.entity.association.AssociationField; +import com.bullhornsdk.data.model.entity.association.EntityAssociations; +import com.bullhornsdk.data.model.entity.association.standard.StandardAssociationField; +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.type.BullhornEntity; +import com.bullhornsdk.data.model.entity.file.BillableChargeFileAttachment; + +import java.util.ArrayList; +import java.util.List; + +/** + * Created by fayranne.lipton 4/10/2020 + */ +public class BillableChargeAssociations implements EntityAssociations { + + private List> allAssociations; + private final AssociationField fileAttachments = instantiateAssociationField("fileAttachments", BillableChargeFileAttachment.class); + + private static final BillableChargeAssociations INSTANCE = new BillableChargeAssociations(); + + private BillableChargeAssociations() { + super(); + } + + public static BillableChargeAssociations getInstance() { + return INSTANCE; + } + + public AssociationField fileAttachments() { + return fileAttachments; + } + + private AssociationField instantiateAssociationField(String associationName, Class associationType) { + return new StandardAssociationField(associationName, associationType); + } + + @Override + public List> allAssociations() { + if (allAssociations == null) { + allAssociations = new ArrayList>(); + allAssociations.add(fileAttachments()); + + } + return allAssociations; + } + + @Override + public AssociationField getAssociation(String associationName) { + for (AssociationField associationField : allAssociations()) { + if (associationName.equalsIgnoreCase(associationField.getAssociationFieldName())) { + return associationField; + } + } + + throw new IllegalArgumentException("There is no association on entity BillableCharge called: " + associationName); + } +} + + diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/contractmanagement/earncode/EarnCode.java b/src/main/java/com/bullhornsdk/data/model/entity/core/contractmanagement/earncode/EarnCode.java new file mode 100644 index 00000000..8d6c89ad --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/contractmanagement/earncode/EarnCode.java @@ -0,0 +1,257 @@ +package com.bullhornsdk.data.model.entity.core.contractmanagement.earncode; + +import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsA; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.*; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "code", "customDate1", "customDate2", "customDate3", "customFloat1", "customFloat2", "customFloat3", + "customInt1", "customInt2", "customInt3", "customText1", "customText10", "customText11", "customText12", "customText13", + "customText14", "customText15", "customText16", "customText17", "customText18", "customText19", "customText2", + "customText20", "customText3", "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", + "dateAdded", "dateLastModified", "description", "earnCodeGroup", "earnCodeTypeLookup", "externalID", "isDeleted", + "owner", "status", "title", "generalLedgerServiceCode", "generalLedgerBillAccount", "generalLedgerPayAccount", + "generalLedgerSegment1", "generalLedgerSegment2", "generalLedgerSegment3", "generalLedgerSegment4", "generalLedgerSegment5"}) +public class EarnCode extends CustomFieldsA implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, EditHistoryEntity { + + private Integer id; + private DateTime dateAdded; + private DateTime dateLastModified; + @JsonIgnore + private String description; + private SimplifiedOptionsLookup earnCodeGroup; + private SimplifiedOptionsLookup earnCodeTypeLookup; + @Size(max = 100) + private String code; + private String externalID; + private Boolean isDeleted; + private CorporateUser owner; + @Size(max = 100) + private String status; + private String title; + private GeneralLedgerServiceCode generalLedgerServiceCode; + private GeneralLedgerAccount generalLedgerBillAccount; + private GeneralLedgerAccount generalLedgerPayAccount; + private GeneralLedgerSegment1 generalLedgerSegment1; + private GeneralLedgerSegment2 generalLedgerSegment2; + private GeneralLedgerSegment3 generalLedgerSegment3; + private GeneralLedgerSegment4 generalLedgerSegment4; + private GeneralLedgerSegment5 generalLedgerSegment5; + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @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("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("generalLedgerSegment1") + public GeneralLedgerSegment1 getGeneralLedgerSegment1() { + return generalLedgerSegment1; + } + + @JsonProperty("generalLedgerSegment1") + public void setGeneralLedgerSegment1(GeneralLedgerSegment1 generalLedgerSegment1) { + this.generalLedgerSegment1 = generalLedgerSegment1; + } + + @JsonProperty("earnCodeGroup") + public SimplifiedOptionsLookup getEarnCodeGroup() { + return earnCodeGroup; + } + + @JsonProperty("earnCodeGroup") + public void setEarnCodeGroup(SimplifiedOptionsLookup earnCodeGroup) { + this.earnCodeGroup = earnCodeGroup; + } + + @JsonProperty("earnCodeTypeLookup") + public SimplifiedOptionsLookup getEarnCodeTypeLookup() { + return earnCodeTypeLookup; + } + + @JsonProperty("earnCodeTypeLookup") + public void setEarnCodeTypeLookup(SimplifiedOptionsLookup earnCodeTypeLookup) { + this.earnCodeTypeLookup = earnCodeTypeLookup; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonProperty("externalID") + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("status") + public String getStatus() { + return status; + } + + @JsonProperty("status") + public void setStatus(String status) { + this.status = status; + } + + @JsonProperty("generalLedgerSegment2") + public GeneralLedgerSegment2 getGeneralLedgerSegment2() { + return generalLedgerSegment2; + } + + @JsonProperty("generalLedgerSegment2") + public void setGeneralLedgerSegment2(GeneralLedgerSegment2 generalLedgerSegment2) { + this.generalLedgerSegment2 = generalLedgerSegment2; + } + + @JsonProperty("generalLedgerSegment3") + public GeneralLedgerSegment3 getGeneralLedgerSegment3() { + return generalLedgerSegment3; + } + + @JsonProperty("generalLedgerSegment3") + public void setGeneralLedgerSegment3(GeneralLedgerSegment3 generalLedgerSegment3) { + this.generalLedgerSegment3 = generalLedgerSegment3; + } + + @JsonProperty("generalLedgerSegment4") + public GeneralLedgerSegment4 getGeneralLedgerSegment4() { + return generalLedgerSegment4; + } + + @JsonProperty("generalLedgerSegment4") + public void setGeneralLedgerSegment4(GeneralLedgerSegment4 generalLedgerSegment4) { + this.generalLedgerSegment4 = generalLedgerSegment4; + } + + @JsonProperty("generalLedgerSegment5") + public GeneralLedgerSegment5 getGeneralLedgerSegment5() { + return generalLedgerSegment5; + } + + @JsonProperty("generalLedgerSegment5") + public void setGeneralLedgerSegment5(GeneralLedgerSegment5 generalLedgerSegment5) { + this.generalLedgerSegment5 = generalLedgerSegment5; + } + + @JsonProperty("generalLedgerServiceCode") + public GeneralLedgerServiceCode getGeneralLedgerServiceCode() { + return generalLedgerServiceCode; + } + + @JsonProperty("generalLedgerServiceCode") + public void setGeneralLedgerServiceCode(GeneralLedgerServiceCode generalLedgerServiceCode) { + this.generalLedgerServiceCode = generalLedgerServiceCode; + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + + @JsonProperty("code") + public String getCode() { + return code; + } + + @JsonProperty("code") + public void setCode(String code) { + this.code = code; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("title") + public String getTitle() { + return title; + } + + @JsonProperty("title") + public void setTitle(String title) { + this.title = title; + } + + @JsonProperty("generalLedgerBillAccount") + public GeneralLedgerAccount getGeneralLedgerBillAccount() { + return generalLedgerBillAccount; + } + + @JsonProperty("generalLedgerBillAccount") + public void setGeneralLedgerBillAccount(GeneralLedgerAccount generalLedgerBillAccount) { + this.generalLedgerBillAccount = generalLedgerBillAccount; + } + + @JsonProperty("generalLedgerPayAccount") + public GeneralLedgerAccount getGeneralLedgerPayAccount() { + return generalLedgerPayAccount; + } + + @JsonProperty("generalLedgerPayAccount") + public void setGeneralLedgerPayAccount(GeneralLedgerAccount generalLedgerPayAccount) { + this.generalLedgerPayAccount = generalLedgerPayAccount; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java new file mode 100644 index 00000000..1d4f7325 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java @@ -0,0 +1,446 @@ +package com.bullhornsdk.data.model.entity.core.paybill.charge; + +import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile; +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceTerm; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionStatus; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionType; +import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; +import com.bullhornsdk.data.model.entity.core.standard.*; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.entity.file.BillableChargeFileAttachment; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.*; +import org.joda.time.DateTime; + +import java.math.BigDecimal; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "addedByUser", "billMasters", "billableTransactions", "billingClientContact", "billingClientCorporation", + "billingCorporateUser", "billingFrequency", "billingProfile", "billingSchedule", "candidate", "clientCorporation", + "currencyUnit", "dateAdded", "dateLastModified", "description", "fileAttachments", "generalLedgerSegment1", + "generalLedgerSegment2", "generalLedgerSegment3", "generalLedgerSegment4", "generalLedgerSegment5", + "generalLedgerServiceCode", "invoiceTerm", "isInvoiced", "jobOrder", "periodEndDate", "placement", + "readyToBillOverride", "status", "subTotal", "transactionStatus", "transactionType"}) +public class BillableCharge implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, AssociationEntity { + + private Integer id; + + private CorporateUser addedByUser; + + private OneToMany billMasters; + + private OneToMany billableTransactions; + + private ClientContact billingClientContact; + + private ClientCorporation billingClientCorporation; + + private CorporateUser billingCorporateUser; + + private String billingFrequency; + + private BillingProfile billingProfile; + + private Integer billingSchedule; + + private Candidate candidate; + + private ClientCorporation clientCorporation; + + private CurrencyUnit currencyUnit; + + private DateTime dateAdded; + + private DateTime dateLastModified; + + @JsonIgnore + private String description; + + private OneToMany fileAttachments; + + private GeneralLedgerSegment1 generalLedgerSegment1; + + private GeneralLedgerSegment2 generalLedgerSegment2; + + private GeneralLedgerSegment3 generalLedgerSegment3; + + private GeneralLedgerSegment4 generalLedgerSegment4; + + private GeneralLedgerSegment5 generalLedgerSegment5; + + private GeneralLedgerServiceCode generalLedgerServiceCode; + + private InvoiceTerm invoiceTerm; + + private Boolean isInvoiced; //TODO nullable = false, insertable = false, updatable = false + + private JobOrder jobOrder; + + private DateTime periodEndDate; + + private Placement placement; + + private Boolean readyToBillOverride; + + private SpecializedOptionsLookup status; // BillableChargeStatusLookup + + private BigDecimal subTotal; + + private TransactionStatus transactionStatus; //TODO + + private TransactionType transactionType; //TODO + + + public BillableCharge() { + } + + public BillableCharge(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("addedByUser") + public CorporateUser getAddedByUser() { + return addedByUser; + } + + @JsonProperty("addedByUser") + public void setAddedByUser(CorporateUser addedByUser) { + this.addedByUser = addedByUser; + } + + @JsonProperty("billMasters") + public OneToMany getBillMasters() { + return billMasters; + } + + @JsonProperty("billMasters") + public void setBillMasters(OneToMany billMasters) { + this.billMasters = billMasters; + } + + + @JsonProperty("billableTransactions") + public OneToMany getBillableTransactions() { + return billableTransactions; + } + + public void setBillableTransactions(OneToMany billableTransactions) { + this.billableTransactions = billableTransactions; + } + + @JsonProperty("billingClientContact") + public ClientContact getBillingClientContact() { + return billingClientContact; + } + + @JsonProperty("billingClientContact") + public void setBillingClientContact(ClientContact billingClientContact) { + this.billingClientContact = billingClientContact; + } + + @JsonProperty("billingClientCorporation") + public ClientCorporation getBillingClientCorporation() { + return billingClientCorporation; + } + + @JsonProperty("billingClientCorporation") + public void setBillingClientCorporation(ClientCorporation billingClientCorporation) { + this.billingClientCorporation = billingClientCorporation; + } + + @JsonProperty("billingCorporateUser") + public CorporateUser getBillingCorporateUser() { + return billingCorporateUser; + } + + @JsonProperty("billingCorporateUser") + public void setBillingCorporateUser(CorporateUser billingCorporateUser) { + this.billingCorporateUser = billingCorporateUser; + } + + @JsonProperty("billingFrequency") + public String getBillingFrequency() { + return billingFrequency; + } + + @JsonProperty("billingFrequency") + public void setBillingFrequency(String billingFrequency) { + this.billingFrequency = billingFrequency; + } + + @JsonProperty("billingProfile") + public BillingProfile getBillingProfile() { + return billingProfile; + } + + @JsonProperty("billingProfile") + public void setBillingProfile(BillingProfile billingProfile) { + this.billingProfile = billingProfile; + } + + @JsonProperty("billingSchedule") + public Integer getBillingSchedule() { + return billingSchedule; + } + + @JsonProperty("billingSchedule") + public void setBillingSchedule(Integer billingSchedule) { + this.billingSchedule = billingSchedule; + } + + @JsonProperty("candidate") + public Candidate getCandidate() { + return candidate; + } + + @JsonProperty("candidate") + public void setCandidate(Candidate candidate) { + this.candidate = candidate; + } + + @JsonProperty("clientCorporation") + public ClientCorporation getClientCorporation() { + return clientCorporation; + } + + @JsonProperty("clientCorporation") + public void setClientCorporation(ClientCorporation clientCorporation) { + this.clientCorporation = clientCorporation; + } + + @JsonProperty("currencyUnit") + public CurrencyUnit getCurrencyUnit() { + return currencyUnit; + } + + @JsonProperty("currencyUnit") + public void setCurrencyUnit(CurrencyUnit currencyUnit) { + this.currencyUnit = currencyUnit; + } + + @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("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("fileAttachments") + public OneToMany getFileAttachments() { + return fileAttachments; + } + + @JsonProperty("fileAttachments") + public void setFileAttachments(OneToMany fileAttachments) { + this.fileAttachments = fileAttachments; + } + + @JsonProperty("generalLedgerSegment1") + public GeneralLedgerSegment1 getGeneralLedgerSegment1() { + return generalLedgerSegment1; + } + + @JsonProperty("generalLedgerSegment1") + public void setGeneralLedgerSegment1(GeneralLedgerSegment1 generalLedgerSegment1) { + this.generalLedgerSegment1 = generalLedgerSegment1; + } + + @JsonProperty("generalLedgerSegment2") + public GeneralLedgerSegment2 getGeneralLedgerSegment2() { + return generalLedgerSegment2; + } + + @JsonProperty("generalLedgerSegment2") + public void setGeneralLedgerSegment2(GeneralLedgerSegment2 generalLedgerSegment2) { + this.generalLedgerSegment2 = generalLedgerSegment2; + } + + @JsonProperty("generalLedgerSegment3") + public GeneralLedgerSegment3 getGeneralLedgerSegment3() { + return generalLedgerSegment3; + } + + @JsonProperty("generalLedgerSegment3") + public void setGeneralLedgerSegment3(GeneralLedgerSegment3 generalLedgerSegment3) { + this.generalLedgerSegment3 = generalLedgerSegment3; + } + + @JsonProperty("generalLedgerSegment4") + public GeneralLedgerSegment4 getGeneralLedgerSegment4() { + return generalLedgerSegment4; + } + + @JsonProperty("generalLedgerSegment4") + public void setGeneralLedgerSegment4(GeneralLedgerSegment4 generalLedgerSegment4) { + this.generalLedgerSegment4 = generalLedgerSegment4; + } + + @JsonProperty("generalLedgerSegment5") + public GeneralLedgerSegment5 getGeneralLedgerSegment5() { + return generalLedgerSegment5; + } + + @JsonProperty("generalLedgerSegment5") + public void setGeneralLedgerSegment5(GeneralLedgerSegment5 generalLedgerSegment5) { + this.generalLedgerSegment5 = generalLedgerSegment5; + } + + @JsonProperty("generalLedgerServiceCode") + public GeneralLedgerServiceCode getGeneralLedgerServiceCode() { + return generalLedgerServiceCode; + } + + @JsonProperty("generalLedgerServiceCode") + public void setGeneralLedgerServiceCode(GeneralLedgerServiceCode generalLedgerServiceCode) { + this.generalLedgerServiceCode = generalLedgerServiceCode; + } + + @JsonProperty("invoiceTerm") + public InvoiceTerm getInvoiceTerm() { + return invoiceTerm; + } + + @JsonProperty("invoiceTerm") + public void setInvoiceTerm(InvoiceTerm invoiceTerm) { + this.invoiceTerm = invoiceTerm; + } + + @JsonProperty("isInvoiced") + public Boolean getInvoiced() { + return isInvoiced; + } + + @JsonProperty("isInvoiced") + public void setInvoiced(Boolean invoiced) { + isInvoiced = invoiced; + } + + @JsonProperty("jobOrder") + public JobOrder getJobOrder() { + return jobOrder; + } + + @JsonProperty("jobOrder") + public void setJobOrder(JobOrder jobOrder) { + this.jobOrder = jobOrder; + } + + @JsonProperty("periodEndDate") + public DateTime getPeriodEndDate() { + return periodEndDate; + } + + @JsonProperty("periodEndDate") + public void setPeriodEndDate(DateTime periodEndDate) { + this.periodEndDate = periodEndDate; + } + + @JsonProperty("placement") + public Placement getPlacement() { + return placement; + } + + @JsonProperty("placement") + public void setPlacement(Placement placement) { + this.placement = placement; + } + + @JsonProperty("readyToBillOverride") + public Boolean getReadyToBillOverride() { + return readyToBillOverride; + } + + @JsonProperty("readyToBillOverride") + public void setReadyToBillOverride(Boolean readyToBillOverride) { + this.readyToBillOverride = readyToBillOverride; + } + + @JsonProperty("status") + public SpecializedOptionsLookup getStatus() { + return status; + } + + @JsonProperty("status") + public void setStatus(SpecializedOptionsLookup status) { + this.status = status; + } + + @JsonProperty("subTotal") + public BigDecimal getSubTotal() { + return subTotal; + } + + @JsonProperty("subTotal") + public void setSubTotal(BigDecimal subTotal) { + this.subTotal = subTotal; + } + + @JsonProperty("transactionStatus") + public TransactionStatus getTransactionStatus() { + return transactionStatus; + } + + @JsonProperty("transactionStatus") + public void setTransactionStatus(TransactionStatus transactionStatus) { + this.transactionStatus = transactionStatus; + } + + @JsonProperty("transactionType") + public TransactionType getTransactionType() { + return transactionType; + } + + @JsonProperty("transactionType") + public void setTransactionType(TransactionType transactionType) { + this.transactionType = transactionType; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java new file mode 100644 index 00000000..4b8ba59d --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java @@ -0,0 +1,325 @@ +package com.bullhornsdk.data.model.entity.core.paybill.charge; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionStatus; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionType; +import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; +import com.bullhornsdk.data.model.entity.core.standard.*; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.*; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; +import java.math.BigDecimal; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "addedByUser", "canExport", "candidate", "clientCorporation", + "currencyUnit", "dateAdded", "dateLastModified", "description", "employeeType", "generalLedgerSegment1", + "generalLedgerSegment2", "generalLedgerSegment3", "generalLedgerSegment4", "generalLedgerSegment5", + "generalLedgerServiceCode", "jobOrder", "payMasters", "periodEndDate", "placement", + "readyToBillOverride", "status", "subTotal", "transactionStatus", "transactionType" +}) +public class PayableCharge implements QueryEntity, UpdateEntity, DateLastModifiedEntity, AssociationEntity, CreateEntity { + + private Integer id; + private CorporateUser addedByUser; + private Boolean canExport; + private Candidate candidate; + private ClientCorporation clientCorporation; + + private CurrencyUnit currencyUnit; + + private DateTime dateAdded; + + private DateTime dateLastModified; + + @JsonIgnore + private String description; + + @Size(max = 30) + private String employeeType; + + private GeneralLedgerSegment1 generalLedgerSegment1; + + private GeneralLedgerSegment2 generalLedgerSegment2; + + private GeneralLedgerSegment3 generalLedgerSegment3; + + private GeneralLedgerSegment4 generalLedgerSegment4; + + private GeneralLedgerSegment5 generalLedgerSegment5; + + private GeneralLedgerServiceCode generalLedgerServiceCode; //TODO + + private JobOrder jobOrder; + + private OneToMany payMasters; // TODO OneToMany + + private DateTime periodEndDate; + + private Placement placement; + + private Boolean readyToBillOverride; //TODO + + private SpecializedOptionsLookup status; //TODO //nullable = false, insertable = false, updatable = false + + private BigDecimal subTotal; + + private TransactionStatus transactionStatus; //TODO + + private TransactionType transactionType; //TODO + + + public PayableCharge() { + } + + public PayableCharge(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("addedByUser") + public CorporateUser getAddedByUser() { + return addedByUser; + } + + @JsonProperty("addedByUser") + public void setAddedByUser(CorporateUser addedByUser) { + this.addedByUser = addedByUser; + } + + + @JsonProperty("candidate") + public Candidate getCandidate() { + return candidate; + } + + @JsonProperty("candidate") + public void setCandidate(Candidate candidate) { + this.candidate = candidate; + } + + @JsonProperty("clientCorporation") + public ClientCorporation getClientCorporation() { + return clientCorporation; + } + + @JsonProperty("clientCorporation") + public void setClientCorporation(ClientCorporation clientCorporation) { + this.clientCorporation = clientCorporation; + } + + @JsonProperty("currencyUnit") + public CurrencyUnit getCurrencyUnit() { + return currencyUnit; + } + + @JsonProperty("currencyUnit") + public void setCurrencyUnit(CurrencyUnit currencyUnit) { + this.currencyUnit = currencyUnit; + } + + @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("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("generalLedgerSegment1") + public GeneralLedgerSegment1 getGeneralLedgerSegment1() { + return generalLedgerSegment1; + } + + @JsonProperty("generalLedgerSegment1") + public void setGeneralLedgerSegment1(GeneralLedgerSegment1 generalLedgerSegment1) { + this.generalLedgerSegment1 = generalLedgerSegment1; + } + + @JsonProperty("generalLedgerSegment2") + public GeneralLedgerSegment2 getGeneralLedgerSegment2() { + return generalLedgerSegment2; + } + + @JsonProperty("generalLedgerSegment2") + public void setGeneralLedgerSegment2(GeneralLedgerSegment2 generalLedgerSegment2) { + this.generalLedgerSegment2 = generalLedgerSegment2; + } + + @JsonProperty("generalLedgerSegment3") + public GeneralLedgerSegment3 getGeneralLedgerSegment3() { + return generalLedgerSegment3; + } + + @JsonProperty("generalLedgerSegment3") + public void setGeneralLedgerSegment3(GeneralLedgerSegment3 generalLedgerSegment3) { + this.generalLedgerSegment3 = generalLedgerSegment3; + } + + @JsonProperty("generalLedgerSegment4") + public GeneralLedgerSegment4 getGeneralLedgerSegment4() { + return generalLedgerSegment4; + } + + @JsonProperty("generalLedgerSegment4") + public void setGeneralLedgerSegment4(GeneralLedgerSegment4 generalLedgerSegment4) { + this.generalLedgerSegment4 = generalLedgerSegment4; + } + + @JsonProperty("generalLedgerSegment5") + public GeneralLedgerSegment5 getGeneralLedgerSegment5() { + return generalLedgerSegment5; + } + + @JsonProperty("generalLedgerSegment5") + public void setGeneralLedgerSegment5(GeneralLedgerSegment5 generalLedgerSegment5) { + this.generalLedgerSegment5 = generalLedgerSegment5; + } + + @JsonProperty("generalLedgerServiceCode") + public GeneralLedgerServiceCode getGeneralLedgerServiceCode() { + return generalLedgerServiceCode; + } + + @JsonProperty("generalLedgerServiceCode") + public void setGeneralLedgerServiceCode(GeneralLedgerServiceCode generalLedgerServiceCode) { + this.generalLedgerServiceCode = generalLedgerServiceCode; + } + + @JsonProperty("jobOrder") + public JobOrder getJobOrder() { + return jobOrder; + } + + @JsonProperty("jobOrder") + public void setJobOrder(JobOrder jobOrder) { + this.jobOrder = jobOrder; + } + + @JsonProperty("payMasters") + public PayMaster getPayMasters() { + return payMasters; + } + + @JsonProperty("payMasters") + public void setBillMasters(PayMaster payMasters) { + this.payMasters = payMasters; + } + + @JsonProperty("periodEndDate") + public DateTime getPeriodEndDate() { + return periodEndDate; + } + + @JsonProperty("periodEndDate") + public void setPeriodEndDate(DateTime periodEndDate) { + this.periodEndDate = periodEndDate; + } + + @JsonProperty("placement") + public Placement getPlacement() { + return placement; + } + + @JsonProperty("placement") + public void setPlacement(Placement placement) { + this.placement = placement; + } + + @JsonProperty("readyToBillOverride") + public Boolean getReadyToBillOverride() { + return readyToBillOverride; + } + + @JsonProperty("readyToBillOverride") + public void setReadyToBillOverride(Boolean readyToBillOverride) { + this.readyToBillOverride = readyToBillOverride; + } + + @JsonProperty("status") + public PayableChargeStatusLookup getStatus() { + return status; + } + + @JsonProperty("status") + public void setStatus(PayableChargeStatusLookup status) { + this.status = status; + } + + @JsonProperty("subTotal") + public BigDecimal getSubTotal() { + return subTotal; + } + + @JsonProperty("subTotal") + public void setSubTotal(BigDecimal subTotal) { + this.subTotal = subTotal; + } + + @JsonProperty("transactionStatus") + public TransactionStatus getTransactionStatus() { + return transactionStatus; + } + + @JsonProperty("transactionStatus") + public void setTransactionStatus(TransactionStatus transactionStatus) { + this.transactionStatus = transactionStatus; + } + + @JsonProperty("transactionType") + public TransactionType getTransactionType() { + return transactionType; + } + + @JsonProperty("transactionType") + public void setTransactionType(TransactionType transactionType) { + this.transactionType = transactionType; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java new file mode 100644 index 00000000..b63018a0 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java @@ -0,0 +1,126 @@ +package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; + +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +public class GeneralLedgerSegment implements QueryEntity, UpdateEntity, SoftDeleteEntity, CreateEntity, EditHistoryEntity, DateLastModifiedEntity { + + private Integer id; + + @Size(max = 100) + private String externalSegmentName; + + @Size(max = 100) + private String externalSegmentNumber; + + private GeneralLedgerSegmentType generalLedgerSegmentType; //TODO + + private Boolean isActive; + + private Boolean isDeleted; + + private DateTime dateAdded; + + private DateTime dateLastModified; + + public GeneralLedgerSegment() { + } + + public GeneralLedgerSegment(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("externalSegmentName") + public String getExternalSegmentName() { + return externalSegmentName; + } + + @JsonProperty("externalSegmentName") + public void setExternalSegmentName(String externalSegmentName) { + this.externalSegmentName = externalSegmentName; + } + + @JsonProperty("externalSegmentNumber") + public String getExternalSegmentNumber() { + return externalSegmentNumber; + } + + @JsonProperty("externalSegmentNumber") + public void setExternalSegmentNumber(String externalSegmentNumber) { + this.externalSegmentNumber = externalSegmentNumber; + } + + @JsonProperty("generalLedgerSegmentType") + public GeneralLedgerSegmentType getGeneralLedgerSegmentType() { + return generalLedgerSegmentType; + } + + @JsonIgnore + public void setGeneralLedgerSegmentType(GeneralLedgerSegmentType generalLedgerSegmentType) { + this.generalLedgerSegmentType = generalLedgerSegmentType; + } + + @JsonProperty("isActive") + public Boolean getActive() { + return isActive; + } + + @JsonProperty("isActive") + public void setActive(Boolean active) { + isActive = active; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @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; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java new file mode 100644 index 00000000..90a00ebe --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java @@ -0,0 +1,20 @@ +package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +public class GeneralLedgerSegment1 extends GeneralLedgerSegment { + + public GeneralLedgerSegment1() { + super(); + this.setGeneralLedgerSegmentType(new GeneralLedgerSegmentType(1)); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java new file mode 100644 index 00000000..7d5ea35b --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java @@ -0,0 +1,20 @@ +package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +public class GeneralLedgerSegment2 extends GeneralLedgerSegment { + + public GeneralLedgerSegment2() { + super(); + this.setGeneralLedgerSegmentType(new GeneralLedgerSegmentType(2)); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java new file mode 100644 index 00000000..66415d74 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java @@ -0,0 +1,21 @@ +package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +public class GeneralLedgerSegment3 extends GeneralLedgerSegment { + + public GeneralLedgerSegment3() { + super(); + this.setGeneralLedgerSegmentType(new GeneralLedgerSegmentType(3)); + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java new file mode 100644 index 00000000..c2a15eec --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java @@ -0,0 +1,20 @@ +package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +public class GeneralLedgerSegment4 extends GeneralLedgerSegment { + public GeneralLedgerSegment4() { + super(); + this.setGeneralLedgerSegmentType(new GeneralLedgerSegmentType(4)); + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java new file mode 100644 index 00000000..c4f3da65 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java @@ -0,0 +1,20 @@ +package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +public class GeneralLedgerSegment5 extends GeneralLedgerSegment { + public GeneralLedgerSegment5() { + super(); + this.setGeneralLedgerSegmentType(new GeneralLedgerSegmentType(5)); + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java new file mode 100644 index 00000000..0c18a3e3 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java @@ -0,0 +1,76 @@ +package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; + +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.*; + +import javax.validation.constraints.Size; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "description", "isEnabled", "segmentType"}) +public class GeneralLedgerSegmentType implements QueryEntity, UpdateEntity { + + private Integer id; + + @JsonIgnore + @Size(max = 100) + private String description; + + private Boolean isEnabled; + + @Size(max = 100) + private String segmentType; + + public GeneralLedgerSegmentType(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("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("isEnabled") + public Boolean getEnabled() { + return isEnabled; + } + + @JsonProperty("isEnabled") + public void setEnabled(Boolean enabled) { + isEnabled = enabled; + } + + @JsonProperty("segmentType") + public String getSegmentType() { + return segmentType; + } + + @JsonProperty("segmentType") + public void setSegmentType(String segmentType) { + this.segmentType = segmentType; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java new file mode 100644 index 00000000..81cced62 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java @@ -0,0 +1,115 @@ +package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; + +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "externalServiceCodeNumber", "externalServiceCodeName", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +public class GeneralLedgerServiceCode implements QueryEntity, UpdateEntity, SoftDeleteEntity, CreateEntity, EditHistoryEntity, DateLastModifiedEntity { + + private Integer id; + + private Integer externalServiceCodeNumber; + + @Size(max = 100) + private String externalServiceCodeName; + + private Boolean isActive; + + private Boolean isDeleted; + + private DateTime dateAdded; + + private DateTime dateLastModified; + + + public GeneralLedgerServiceCode() { + } + + public GeneralLedgerServiceCode(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("externalServiceCodeNumber") + public Integer getExternalServiceCodeNumber() { + return externalServiceCodeNumber; + } + + @JsonProperty("externalServiceCodeNumber") + public void setExternalServiceCodeNumber(Integer externalServiceCodeNumber) { + this.externalServiceCodeNumber = externalServiceCodeNumber; + } + + @JsonProperty("externalServiceCodeName") + public String getExternalServiceCodeName() { + return externalServiceCodeName; + } + + @JsonProperty("externalServiceCodeName") + public void setExternalServiceCodeName(String externalServiceCodeName) { + this.externalServiceCodeName = externalServiceCodeName; + } + + @JsonProperty("isActive") + public Boolean getActive() { + return isActive; + } + + @JsonProperty("isActive") + public void setActive(Boolean active) { + isActive = active; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @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; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java new file mode 100644 index 00000000..9e7cb3c6 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java @@ -0,0 +1,112 @@ +package com.bullhornsdk.data.model.entity.core.paybill.discount; + +import com.bullhornsdk.data.model.entity.core.contractmanagement.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; +import java.math.BigDecimal; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "discountType", "earnCode", "label", "value", "dateAdded", "addedByUser"}) +public class Discount implements QueryEntity { + + private Integer id; + private DiscountType discountType; + private EarnCode earnCode; + @Size(max = 100) + private String label; + private BigDecimal value; + private DateTime dateAdded; + private CorporateUser addedByUser; + + public Discount() { + } + + public Discount(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("discountType") + public DiscountType getDiscountType() { + return discountType; + } + + @JsonProperty("discountType") + public void setDiscountType(DiscountType discountType) { + this.discountType = discountType; + } + + @JsonProperty("earnCode") + public EarnCode getEarnCode() { + return earnCode; + } + + @JsonProperty("earnCode") + public void setEarnCode(EarnCode earnCode) { + this.earnCode = earnCode; + } + + @JsonProperty("label") + public String getLabel() { + return label; + } + + @JsonProperty("label") + public void setLabel(String label) { + this.label = label; + } + + @JsonProperty("value") + public BigDecimal getValue() { + return value; + } + + @JsonProperty("value") + public void setValue(BigDecimal value) { + this.value = value; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("addedByUser") + public CorporateUser getAddedByUser() { + return addedByUser; + } + + @JsonProperty("addedByUser") + public void setAddedByUser(CorporateUser addedByUser) { + this.addedByUser = addedByUser; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java new file mode 100644 index 00000000..149c0b57 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java @@ -0,0 +1,51 @@ +package com.bullhornsdk.data.model.entity.core.paybill.discount; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "label"}) +public class DiscountType extends AbstractEntity implements QueryEntity { + + private Integer id; + private String label; + + public DiscountType() { + } + + public DiscountType(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("label") + public String getLabel() { + return label; + } + + @JsonProperty("label") + public void setLabel(String label) { + this.label = label; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java new file mode 100644 index 00000000..8ebfbf04 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java @@ -0,0 +1,596 @@ +package com.bullhornsdk.data.model.entity.core.paybill.invoice; + +import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; +import com.bullhornsdk.data.model.entity.core.standard.ClientContact; +import com.bullhornsdk.data.model.entity.core.standard.ClientCorporation; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +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.util.ReadOnly; +import com.fasterxml.jackson.annotation.*; +import org.joda.time.DateTime; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "billingAddress", "billingAttention", "billingClientContact", "billingCorporateUser", + "billingPeriodEndDate", "billingProfile", "billingScheduleID", "clientCorporation", "creditedByInvoiceStatement", + "creditOfInvoiceStatement", "currencyUnit", "dateAdded", "dateLastModified", "deliveryMethod", "deliveryStatus", + "discounts", "discountTotal", "dueDate", "effectiveDate", "emailErrorReason", "finalizedSubtotal", "finalizedTotal", + "generalLedgerExportStatusLookup", "invoiceStatementDate", "invoiceStatementExports", "invoiceStatementExportsBatches", + "invoiceStatementNumber", "invoiceStatementOrigin", "invoiceStatementTemplate", "invoiceStatementType", "invoiceTerm", + "isDeleted", "isCredited", "isFinalized", "isReinstated", "lineItems", "lineItemTotal", "owner", + "previousBalance", "purchaseOrderNumber", "rawInvoiceStatementNumber", "remitInstructions", "splitBys", + "status", "subtotal", "surcharges", "surchargeTotal", + "taxes", "taxTotal", "total" +}) +public class InvoiceStatement extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, EditHistoryEntity, DateLastModifiedEntity, SoftDeleteEntity { + + private Integer id; + private Address billingAddress; + @JsonIgnore + private String billingAttention; + private ClientContact billingClientContact; + private CorporateUser billingCorporateUser; + private Date billingPeriodEndDate; + private BillingProfile billingProfile; + private Integer billingScheduleID; + private ClientCorporation clientCorporation; + private InvoiceStatement creditedByInvoiceStatement; + private InvoiceStatement creditOfInvoiceStatement; + private CurrencyUnit currencyUnit; + private DateTime dateAdded; + private DateTime dateLastModified; + @JsonIgnore + private String deliveryMethod; + private SpecializedOptionsLookup deliveryStatus; + private OneToMany discounts; + private BigDecimal discountTotal; + private String effectiveDate; + private Date dueDate; + @JsonIgnore + private String emailErrorReason; + private BigDecimal finalizedSubtotal; + private BigDecimal finalizedTotal; + private SpecializedOptionsLookup generalLedgerExportStatusLookup; + private Date invoiceStatementDate; + private OneToMany invoiceStatementExports; + private OneToMany invoiceStatementExportsBatches; + @JsonIgnore + private String invoiceStatementNumber; + @JsonIgnore + private String invoiceStatementOrigin; + private InvoiceStatementTemplate invoiceStatementTemplate; + private InvoiceStatementTypeLookup invoiceStatementType; + private InvoiceTerm invoiceTerm; + private Boolean isDeleted; + private Boolean isCredited; + private Boolean isFinalized; + private Boolean isReinstated; + private OneToMany lineItems; + private BigDecimal lineItemTotal; + private CorporateUser owner; + private BigDecimal previousBalance; + @JsonIgnore + private String purchaseOrderNumber; + private Long rawInvoiceStatementNumber; + private String remitInstructions; + private OneToMany splitBys; + private InvoiceStatementStatusLookup status; + private BigDecimal subtotal; + private OneToMany surcharges; + private BigDecimal surchargeTotal; + private OneToMany taxes; + private BigDecimal taxTotal; + private BigDecimal total; + + public InvoiceStatement() { + } + + public InvoiceStatement(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("billingAddress") + public BillingAddress getBillingAddress() { + return billingAddress; + } + + @JsonProperty("billingAddress") + public void setBillingAddress(BillingAddress billingAddress) { + this.billingAddress = billingAddress; + } + + @JsonProperty("billingAttention") + public String getBillingAttention() { + return billingAttention; + } + + @JsonProperty("billingAttention") + public void setBillingAttention(String billingAttention) { + this.billingAttention = billingAttention; + } + + @JsonProperty("billingClientContact") + public ClientContact getBillingClientContact() { + return billingClientContact; + } + + @JsonProperty("billingClientContact") + public void setBillingClientContact(ClientContact billingClientContact) { + this.billingClientContact = billingClientContact; + } + + @JsonProperty("billingCorporateUser") + public CorporateUser getBillingCorporateUser() { + return billingCorporateUser; + } + + @JsonProperty("billingCorporateUser") + public void setBillingCorporateUser(CorporateUser billingCorporateUser) { + this.billingCorporateUser = billingCorporateUser; + } + + @JsonProperty("billingPeriodEndDate") + public Date getBillingPeriodEndDate() { + return billingPeriodEndDate; + } + + @JsonProperty("billingPeriodEndDate") + public void setBillingPeriodEndDate(Date billingPeriodEndDate) { + this.billingPeriodEndDate = billingPeriodEndDate; + } + + @JsonProperty("billingProfile") + public BillingProfile getBillingProfile() { + return billingProfile; + } + + @JsonProperty("billingProfile") + public void setBillingProfile(BillingProfile billingProfile) { + this.billingProfile = billingProfile; + } + + @JsonProperty("billingScheduleID") + public Integer getBillingScheduleID() { + return billingScheduleID; + } + + @JsonProperty("billingScheduleID") + public void setBillingScheduleID(Integer billingScheduleID) { + this.billingScheduleID = billingScheduleID; + } + + @JsonProperty("clientCorporation") + public ClientCorporation getClientCorporation() { + return clientCorporation; + } + + @JsonProperty("clientCorporation") + public void setClientCorporation(ClientCorporation clientCorporation) { + this.clientCorporation = clientCorporation; + } + + @JsonProperty("creditedByInvoiceStatement") + public InvoiceStatement getCreditedByInvoiceStatement() { + return creditedByInvoiceStatement; + } + + @JsonProperty("creditedByInvoiceStatement") + public void setCreditedByInvoiceStatement(InvoiceStatement creditedByInvoiceStatement) { + this.creditedByInvoiceStatement = creditedByInvoiceStatement; + } + + @JsonProperty("creditOfInvoiceStatement") + public InvoiceStatement getCreditOfInvoiceStatement() { + return creditOfInvoiceStatement; + } + + @JsonProperty("creditOfInvoiceStatement") + public void setCreditOfInvoiceStatement(InvoiceStatement creditOfInvoiceStatement) { + this.creditOfInvoiceStatement = creditOfInvoiceStatement; + } + + @JsonProperty("currencyUnit") + public CurrencyUnit getCurrencyUnit() { + return currencyUnit; + } + + @JsonProperty("currencyUnit") + public void setCurrencyUnit(CurrencyUnit currencyUnit) { + this.currencyUnit = currencyUnit; + } + + @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("deliveryMethod") + public String getDeliveryMethod() { + return deliveryMethod; + } + + @JsonProperty("deliveryMethod") + public void setDeliveryMethod(String deliveryMethod) { + this.deliveryMethod = deliveryMethod; + } + + @JsonProperty("deliveryStatus") + public SpecializedOptionsLookup getDeliveryStatus() { + return deliveryStatus; + } + + @JsonProperty("deliveryStatus") + public void setDeliveryStatus(SpecializedOptionsLookup deliveryStatus) { + this.deliveryStatus = deliveryStatus; + } + + @JsonProperty("discounts") + public OneToMany getDiscounts() { + return discounts; + } + + @JsonProperty("discounts") + public void setDiscounts(OneToMany discounts) { + this.discounts = discounts; + } + + @JsonProperty("discountTotal") + public BigDecimal getDiscountTotal() { + return discountTotal; + } + + @JsonProperty("discountTotal") + public void setDiscountTotal(BigDecimal discountTotal) { + this.discountTotal = discountTotal; + } + + @JsonProperty("dueDate") + public Date getDueDate() { + return dueDate; + } + + @JsonProperty("dueDate") + public void setDueDate(Date dueDate) { + this.dueDate = dueDate; + } + + @JsonProperty("emailErrorReason") + public String getEmailErrorReason() { + return emailErrorReason; + } + + @JsonProperty("emailErrorReason") + public void setEmailErrorReason(String emailErrorReason) { + this.emailErrorReason = emailErrorReason; + } + + @JsonProperty("finalizedSubtotal") + public BigDecimal getFinalizedSubtotal() { + return finalizedSubtotal; + } + + @JsonProperty("finalizedSubtotal") + public void setFinalizedSubtotal(BigDecimal finalizedSubtotal) { + this.finalizedSubtotal = finalizedSubtotal; + } + + @JsonProperty("finalizedTotal") + public BigDecimal getFinalizedTotal() { + return finalizedTotal; + } + + @JsonProperty("finalizedTotal") + public void setFinalizedTotal(BigDecimal finalizedTotal) { + this.finalizedTotal = finalizedTotal; + } + + @JsonProperty("generalLedgerExportStatusLookup") + public SpecializedOptionsLookup getGeneralLedgerExportStatusLookup() { + return generalLedgerExportStatusLookup; + } + + @JsonProperty("generalLedgerExportStatusLookup") + public void setGeneralLedgerExportStatusLookup(SpecializedOptionsLookup generalLedgerExportStatusLookup) { + this.generalLedgerExportStatusLookup = generalLedgerExportStatusLookup; + } + + @JsonProperty("invoiceStatementDate") + public Date getInvoiceStatementDate() { + return invoiceStatementDate; + } + + @JsonProperty("invoiceStatementDate") + public void setInvoiceStatementDate(Date invoiceStatementDate) { + this.invoiceStatementDate = invoiceStatementDate; + } + + @JsonProperty("invoiceStatementExports") + public OneToMany getInvoiceStatementExports() { + return invoiceStatementExports; + } + + @JsonProperty("invoiceStatementExports") + public void setInvoiceStatementExports(OneToMany invoiceStatementExports) { + this.invoiceStatementExports = invoiceStatementExports; + } + + @JsonProperty("invoiceStatementNumber") + public String getInvoiceStatementNumber() { + return invoiceStatementNumber; + } + + @JsonProperty("invoiceStatementNumber") + public void setInvoiceStatementNumber(String invoiceStatementNumber) { + this.invoiceStatementNumber = invoiceStatementNumber; + } + + @JsonProperty("invoiceStatementOrigin") + public String getInvoiceStatementOrigin() { + return invoiceStatementOrigin; + } + + @JsonProperty("invoiceStatementOrigin") + public void setInvoiceStatementOrigin(String invoiceStatementOrigin) { + this.invoiceStatementOrigin = invoiceStatementOrigin; + } + + @JsonProperty("invoiceStatementTemplate") + public InvoiceStatementTemplate getInvoiceStatementTemplate() { + return invoiceStatementTemplate; + } + + @JsonProperty("invoiceStatementTemplate") + public void setInvoiceStatementTemplate(InvoiceStatementTemplate invoiceStatementTemplate) { + this.invoiceStatementTemplate = invoiceStatementTemplate; + } + + @JsonProperty("invoiceStatementType") + public InvoiceStatementTypeLookup getInvoiceStatementType() { + return invoiceStatementType; + } + + @JsonProperty("invoiceStatementType") + public void setInvoiceStatementType(InvoiceStatementTypeLookup invoiceStatementType) { + this.invoiceStatementType = invoiceStatementType; + } + + @JsonProperty("invoiceTerm") + public InvoiceTerm getInvoiceTerm() { + return invoiceTerm; + } + + @JsonProperty("invoiceTerm") + public void setInvoiceTerm(InvoiceTerm invoiceTerm) { + this.invoiceTerm = invoiceTerm; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("isCredited") + public Boolean getIsCredited() { + return isCredited; + } + + @JsonProperty("isCredited") + public void setIsCredited(Boolean credited) { + isCredited = credited; + } + + @JsonProperty("isFinalized") + public Boolean getIsFinalized() { + return isFinalized; + } + + @JsonProperty("isFinalized") + public void setIsFinalized(Boolean finalized) { + isFinalized = finalized; + } + + @JsonProperty("isReinstated") + public Boolean getIsReinstated() { + return isReinstated; + } + + @JsonProperty("isReinstated") + public void setIsReinstated(Boolean reinstated) { + isReinstated = reinstated; + } + + @JsonProperty("lineItems") + public OneToMany getLineItems() { + return lineItems; + } + + @JsonProperty("lineItems") + public void setLineItems(OneToMany lineItems) { + this.lineItems = lineItems; + } + + @JsonProperty("lineItemTotal") + public BigDecimal getLineItemTotal() { + return lineItemTotal; + } + + @JsonProperty("lineItemTotal") + public void setLineItemTotal(BigDecimal lineItemTotal) { + this.lineItemTotal = lineItemTotal; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("previousBalance") + public BigDecimal getPreviousBalance() { + return previousBalance; + } + + @JsonProperty("previousBalance") + public void setPreviousBalance(BigDecimal previousBalance) { + this.previousBalance = previousBalance; + } + + @JsonProperty("purchaseOrderNumber") + public String getPurchaseOrderNumber() { + return purchaseOrderNumber; + } + + @JsonProperty("purchaseOrderNumber") + public void setPurchaseOrderNumber(String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; + } + + @JsonProperty("rawInvoiceStatementNumber") + public Long getRawInvoiceStatementNumber() { + return rawInvoiceStatementNumber; + } + + @JsonProperty("rawInvoiceStatementNumber") + public void setRawInvoiceStatementNumber(Long rawInvoiceStatementNumber) { + this.rawInvoiceStatementNumber = rawInvoiceStatementNumber; + } + + @JsonProperty("remitInstructions") + public String getRemitInstructions() { + return remitInstructions; + } + + @JsonProperty("remitInstructions") + public void setRemitInstructions(String remitInstructions) { + this.remitInstructions = remitInstructions; + } + + @JsonProperty("splitBys") + public OneToMany getSplitBys() { + return splitBys; + } + + @JsonProperty("splitBys") + public void setSplitBys(OneToMany splitBys) { + this.splitBys = splitBys; + } + + @JsonProperty("status") + public InvoiceStatementStatusLookup getStatus() { + return status; + } + + @JsonProperty("status") + public void setStatus(InvoiceStatementStatusLookup status) { + this.status = status; + } + + @JsonProperty("subtotal") + public BigDecimal getSubtotal() { + return subtotal; + } + + @JsonProperty("subtotal") + public void setSubtotal(BigDecimal subtotal) { + this.subtotal = subtotal; + } + + @JsonProperty("surcharges") + public OneToMany getSurcharges() { + return surcharges; + } + + @JsonProperty("surcharges") + public void setSurcharges(OneToMany surcharges) { + this.surcharges = surcharges; + } + + @JsonProperty("surchargeTotal") + public BigDecimal getSurchargeTotal() { + return surchargeTotal; + } + + @JsonProperty("surchargeTotal") + public void setSurchargeTotal(BigDecimal surchargeTotal) { + this.surchargeTotal = surchargeTotal; + } + + @JsonProperty("taxes") + public OneToMany getTaxes() { + return taxes; + } + + @JsonProperty("taxes") + public void setTaxes(OneToMany taxes) { + this.taxes = taxes; + } + + @JsonProperty("taxTotal") + public BigDecimal getTaxTotal() { + return taxTotal; + } + + @JsonProperty("taxTotal") + public void setTaxTotal(BigDecimal taxTotal) { + this.taxTotal = taxTotal; + } + + @JsonProperty("total") + public BigDecimal getTotal() { + return total; + } + + @JsonProperty("total") + public void setTotal(BigDecimal total) { + this.total = total; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementBatch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementBatch.java new file mode 100644 index 00000000..08a20d28 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementBatch.java @@ -0,0 +1,107 @@ +package com.bullhornsdk.data.model.entity.core.paybill.invoice; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "batchStatus", "billMasterTransactions", "billableCharges", "dateAdded", + "dateLastModified", "owner"}) +public class InvoiceStatementBatch extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity { + + private Integer id; + private SimplifiedOptionsLookup batchStatus; + private OneToMany billMasterTransactions; + private OneToMany billableCharges; + private DateTime dateAdded; + private DateTime dateLastModified; + private CorporateUser owner; + + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("billMasterTransactions") + public OneToMany getBillMasterTransactions() { + return billMasterTransactions; + } + + @JsonProperty("billMasterTransactions") + public void setBillMasterTransactions(OneToMany billMasterTransactions) { + this.billMasterTransactions = billMasterTransactions; + } + + @JsonProperty("batchStatus") + public SimplifiedOptionsLookup getBatchStatus() { + return batchStatus; + } + + @JsonProperty("batchStatus") + public void setBatchStatus(SimplifiedOptionsLookup batchStatus) { + this.batchStatus = batchStatus; + } + + @JsonProperty("billableCharges") + public OneToMany getBillableCharges() { + return billableCharges; + } + + @JsonProperty("billableCharges") + public void setBillableCharges(OneToMany billableCharges) { + this.billableCharges = billableCharges; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementDiscount.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementDiscount.java new file mode 100644 index 00000000..dbc159c2 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementDiscount.java @@ -0,0 +1,70 @@ +package com.bullhornsdk.data.model.entity.core.paybill.invoice; + +import com.bullhornsdk.data.model.entity.core.paybill.discount.Discount; +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.math.BigDecimal; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "discount", "invoiceStatement", "finalizedValue"}) +public class InvoiceStatementDiscount extends AbstractEntity implements QueryEntity { + + private Integer id; + private Discount discount; + private InvoiceStatement invoiceStatement; + private BigDecimal finalizedValue; + + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("discount") + public Discount getDiscount() { + return discount; + } + + @JsonProperty("discount") + public void setDiscount(Discount discount) { + this.discount = discount; + } + + @JsonProperty("invoiceStatement") + public InvoiceStatement getInvoiceStatement() { + return invoiceStatement; + } + + @JsonProperty("invoiceStatement") + public void setInvoiceStatement(InvoiceStatement invoiceStatement) { + this.invoiceStatement = invoiceStatement; + } + + @JsonProperty("finalizedValue") + public BigDecimal getFinalizedValue() { + return finalizedValue; + } + + @JsonProperty("finalizedValue") + public void setFinalizedValue(BigDecimal finalizedValue) { + this.finalizedValue = finalizedValue; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItem.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItem.java new file mode 100644 index 00000000..9a69f903 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItem.java @@ -0,0 +1,214 @@ +package com.bullhornsdk.data.model.entity.core.paybill.invoice; + +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; +import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.*; +import org.joda.time.DateTime; + +import java.math.BigDecimal; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "billMasterTransactions", "comment", "currencyUnit", "dateAdded", "dateLastModified", + "description", "groupByDisplay", "groupBys", "invoiceStatement", "quantity", "rate", "subtotal", "summarizeBys", + "taxAmount", "total" +}) +public class InvoiceStatementLineItem extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity { + + private Integer id; + private OneToMany billMasterTransactions; + @JsonIgnore + private String comment; + private CurrencyUnit currencyUnit; + private DateTime dateAdded; + private DateTime dateLastModified; + @JsonIgnore + private String description; + @JsonIgnore + private String groupByDisplay; + private OneToMany groupBys; + private InvoiceStatement invoiceStatement; + private BigDecimal quantity; + private BigDecimal rate; + private BigDecimal subtotal; + private OneToMany summarizeBys; + private BigDecimal taxAmount; + private BigDecimal total; + + public InvoiceStatementLineItem() { + } + + public InvoiceStatementLineItem(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("billMasterTransactions") + public OneToMany getBillMasterTransactions() { + return billMasterTransactions; + } + + @JsonProperty("billMasterTransactions") + public void setBillMasterTransactions(OneToMany billMasterTransactions) { + this.billMasterTransactions = billMasterTransactions; + } + + @JsonProperty("comment") + public String getComment() { + return comment; + } + + @JsonProperty("comment") + public void setComment(String comment) { + this.comment = comment; + } + + @JsonProperty("currencyUnit") + public CurrencyUnit getCurrencyUnit() { + return currencyUnit; + } + + @JsonProperty("currencyUnit") + public void setCurrencyUnit(CurrencyUnit currencyUnit) { + this.currencyUnit = currencyUnit; + } + + @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("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("groupByDisplay") + public String getGroupByDisplay() { + return groupByDisplay; + } + + @JsonProperty("groupByDisplay") + public void setGroupByDisplay(String groupByDisplay) { + this.groupByDisplay = groupByDisplay; + } + + @JsonProperty("groupBys") + public OneToMany getGroupBys() { + return groupBys; + } + + @JsonProperty("groupBys") + public void setGroupBys(OneToMany groupBys) { + this.groupBys = groupBys; + } + + @JsonProperty("invoiceStatement") + public InvoiceStatement getInvoiceStatement() { + return invoiceStatement; + } + + @JsonProperty("invoiceStatement") + public void setInvoiceStatement(InvoiceStatement invoiceStatement) { + this.invoiceStatement = invoiceStatement; + } + + @JsonProperty("quantity") + public BigDecimal getQuantity() { + return quantity; + } + + @JsonProperty("quantity") + public void setQuantity(BigDecimal quantity) { + this.quantity = quantity; + } + + @JsonProperty("rate") + public BigDecimal getRate() { + return rate; + } + + @JsonProperty("rate") + public void setRate(BigDecimal rate) { + this.rate = rate; + } + + @JsonProperty("subtotal") + public BigDecimal getSubtotal() { + return subtotal; + } + + @JsonProperty("subtotal") + public void setSubtotal(BigDecimal subtotal) { + this.subtotal = subtotal; + } + + @JsonProperty("summarizeBys") + public OneToMany getSummarizeBys() { + return summarizeBys; + } + + @JsonProperty("summarizeBys") + public void setSummarizeBys(OneToMany summarizeBys) { + this.summarizeBys = summarizeBys; + } + + @JsonProperty("taxAmount") + public BigDecimal getTaxAmount() { + return taxAmount; + } + + @JsonProperty("taxAmount") + public void setTaxAmount(BigDecimal taxAmount) { + this.taxAmount = taxAmount; + } + + @JsonProperty("total") + public BigDecimal getTotal() { + return total; + } + + @JsonProperty("total") + public void setTotal(BigDecimal total) { + this.total = total; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItemGroupBy.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItemGroupBy.java new file mode 100644 index 00000000..63c0fd63 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItemGroupBy.java @@ -0,0 +1,95 @@ +package com.bullhornsdk.data.model.entity.core.paybill.invoice; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "invoiceStatementLineItem", "field", "value", "displayValue", "sortOrder"}) +public class InvoiceStatementLineItemGroupBy extends AbstractEntity implements QueryEntity { + + private Integer id; + private InvoiceStatementLineItem invoiceStatementLineItem; + private String field; + private String value; + private String displayValue; + private Integer sortOrder; + + public InvoiceStatementLineItemGroupBy() { + } + + public InvoiceStatementLineItemGroupBy(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("invoiceStatementLineItem") + public InvoiceStatementLineItem getInvoiceStatementLineItem() { + return invoiceStatementLineItem; + } + + @JsonProperty("invoiceStatementLineItem") + public void setInvoiceStatementLineItem(InvoiceStatementLineItem invoiceStatementLineItem) { + this.invoiceStatementLineItem = invoiceStatementLineItem; + } + + @JsonProperty("field") + public String getField() { + return field; + } + + @JsonProperty("field") + public void setField(String field) { + this.field = field; + } + + @JsonProperty("value") + public String getValue() { + return value; + } + + @JsonProperty("value") + public void setValue(String value) { + this.value = value; + } + + @JsonProperty("displayValue") + public String getDisplayValue() { + return displayValue; + } + + @JsonProperty("displayValue") + public void setDisplayValue(String displayValue) { + this.displayValue = displayValue; + } + + @JsonProperty("sortOrder") + public Integer getSortOrder() { + return sortOrder; + } + + @JsonProperty("sortOrder") + public void setSortOrder(Integer sortOrder) { + this.sortOrder = sortOrder; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTerm.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTerm.java index 415ed0cf..354cbd53 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTerm.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTerm.java @@ -130,6 +130,7 @@ public InvoiceTerm instantiateForInsert() { return entity; } + @Override @JsonProperty("id") public Integer getId() { diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/AbstractMasterTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/AbstractMasterTransaction.java new file mode 100644 index 00000000..d315f559 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/AbstractMasterTransaction.java @@ -0,0 +1,204 @@ +package com.bullhornsdk.data.model.entity.core.paybill.master; + +import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionOrigin; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionStatus; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionType; +import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; +import com.bullhornsdk.data.model.entity.core.paybill.unit.UnitOfMeasure; +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonProperty; +import org.joda.time.DateTime; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +public class AbstractMasterTransaction extends AbstractEntity implements DateLastModifiedEntity { + + private Integer id; + + private Integer adjustmentSequenceNumber; + + private BigDecimal amount; + + private String comment; + + private CurrencyUnit currencyUnit; + + private DateTime dateAdded; + + private DateTime dateLastModified; + + private BigDecimal quantity; + + private BigDecimal rate; + + private Date recordingDate; + + private TransactionOrigin transactionOrigin; + + private TransactionStatus transactionStatus; + + private TransactionType transactionType; + + private UnitOfMeasure unitOfMeasure; + + + public AbstractMasterTransaction() { + + } + + public AbstractMasterTransaction(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("adjustmentSequenceNumber") + public Integer getAdjustmentSequenceNumbe4() { + return adjustmentSequenceNumber; + } + + @JsonProperty("adjustmentSequenceNumber") + public void setAdjustmentSequenceNumber(Integer adjustmentSequenceNumber) { + this.adjustmentSequenceNumber = adjustmentSequenceNumber; + } + + @JsonProperty("amount") + public BigDecimal getAmount() { + return amount; + } + + @JsonProperty("amount") + public void setAmount(BigDecimal amount) { + this.amount = amount; + } + + @JsonProperty("comment") + public String getComment() { + return comment; + } + + @JsonProperty("comment") + public void setComment(String comment) { + this.comment = comment; + } + + @JsonProperty("currencyUnit") + public CurrencyUnit getCurrencyUnit() { + return currencyUnit; + } + + @JsonProperty("currencyUnit") + public void setCurrencyUnit(CurrencyUnit currencyUnit) { + this.currencyUnit = currencyUnit; + } + + @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("quantity") + public BigDecimal getQuantity() { + return quantity; + } + + @JsonProperty("quantity") + public void setQuantity(BigDecimal quantity) { + this.quantity = quantity; + } + + @JsonProperty("rate") + public BigDecimal getRate() { + return rate; + } + + @JsonProperty("rate") + public void setRate(BigDecimal rate) { + this.rate = rate; + } + + @JsonProperty("recordingDate") + public Date getRecordingDate() { + return recordingDate; + } + + @JsonProperty("recordingDate") + public void setRecordingDate(Date recordingDate) { + this.recordingDate = recordingDate; + } + + @JsonProperty("transactionOrigin") + public TransactionOrigin getTransactionOrigin() { + return transactionOrigin; + } + + @JsonProperty("transactionOrigin") + public void setTransactionOrigin(TransactionOrigin transactionOrigin) { + this.transactionOrigin = transactionOrigin; + } + + @JsonProperty("transactionStatus") + public TransactionStatus getTransactionStatus() { + return transactionStatus; + } + + @JsonProperty("transactionStatus") + public void setTransactionStatus(TransactionStatus transactionStatus) { + this.transactionStatus = transactionStatus; + } + + @JsonProperty("transactionType") + public TransactionType getTransactionType() { + return transactionType; + } + + @JsonProperty("transactionType") + public void setTransactionType(TransactionType transactionType) { + this.transactionType = transactionType; + } + + @JsonProperty("unitOfMeasure") + public UnitOfMeasure getUnitOfMeasure() { + return unitOfMeasure; + } + + @JsonProperty("unitOfMeasure") + public void setUnitOfMeasure(UnitOfMeasure unitOfMeasure) { + this.unitOfMeasure = unitOfMeasure; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BatchGroup.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BatchGroup.java new file mode 100644 index 00000000..63b34be4 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BatchGroup.java @@ -0,0 +1,56 @@ +package com.bullhornsdk.data.model.entity.core.paybill.master; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +/** + * Created by mkesmetzis 22-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "dateAdded"}) +public class BatchGroup extends AbstractEntity implements QueryEntity { + + private Integer id; + + private DateTime dateAdded; + + + public BatchGroup() { + } + + public BatchGroup(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("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java new file mode 100644 index 00000000..10f761b3 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java @@ -0,0 +1,160 @@ +package com.bullhornsdk.data.model.entity.core.paybill.master; + +import com.bullhornsdk.data.model.entity.core.contractmanagement.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.Location; +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +/** + * Created by mkesmetzis 21-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "billMasterTransactions", "billableCharge", "billingSyncBatch", "canInvoice", + "dateAdded", "dateLastModified", "earnCode", "location", "owner", "transactionDate"}) +public class BillMaster implements QueryEntity, DateLastModifiedEntity, AssociationEntity { + + private Integer id; + private OneToMany billMasterTransactions; + private BillableCharge billableCharge; + private BillingSyncBatch billingSyncBatch; + private Boolean canInvoice; + private DateTime dateAdded; + private DateTime dateLastModified; + private EarnCode earnCode; + private Location location; + private CorporateUser owner; + private DateTime transactionDate; + + public BillMaster() { + } + + public BillMaster(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("billMasterTransactions") + public OneToMany getBillMasterTransactions() { + return billMasterTransactions; + } + + @JsonProperty("billMasterTransactions") + public void setBillMasterTransactions(OneToMany billMasterTransactions) { + this.billMasterTransactions = billMasterTransactions; + } + + @JsonProperty("billableCharge") + public BillableCharge getBillableCharge() { + return billableCharge; + } + + @JsonProperty("billableCharge") + public void setBillableCharge(BillableCharge billableCharge) { + this.billableCharge = billableCharge; + } + + @JsonProperty("billingSyncBatch") + public BillingSyncBatch getBillingSyncBatch() { + return billingSyncBatch; + } + + @JsonProperty("billingSyncBatch") + public void setBillingSyncBatch(BillingSyncBatch billingSyncBatch) { + this.billingSyncBatch = billingSyncBatch; + } + + @JsonProperty("canInvoice") + public Boolean getCanInvoice() { + return canInvoice; + } + + @JsonProperty("canInvoice") + public void setCanInvoice(Boolean canInvoice) { + this.canInvoice = canInvoice; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("earnCode") + public EarnCode getEarnCode() { + return earnCode; + } + + @JsonProperty("earnCode") + public void setEarnCode(EarnCode earnCode) { + this.earnCode = earnCode; + } + + @JsonProperty("location") + public Location getLocation() { + return location; + } + + @JsonProperty("location") + public void setLocation(Location location) { + this.location = location; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("transactionDate") + public DateTime getTransactionDate() { + return transactionDate; + } + + @JsonProperty("transactionDate") + public void setTransactionDate(DateTime transactionDate) { + this.transactionDate = transactionDate; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMasterTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMasterTransaction.java new file mode 100644 index 00000000..c4895038 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMasterTransaction.java @@ -0,0 +1,103 @@ +package com.bullhornsdk.data.model.entity.core.paybill.master; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatement; +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementBatch; +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementLineItem; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 22-Apr-20 //TODO check if needed + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "adjustmentSequenceNumber", "amount", "billMaster", "comment", + "currencyUnit", "dateAdded", "dateLastModified", "invoiceStatement", "invoiceStatementBatch", + "invoiceStatementLineItem", "needsReview", "quantity", "rate", "recordingDate", "reversalOfTransaction", + "transactionOrigin", "transactionStatus", "transactionType", "unitOfMeasure" +}) +public class BillMasterTransaction extends AbstractMasterTransaction implements QueryEntity { + + private BillMaster billMasters; + + private InvoiceStatement invoiceStatement; + + private InvoiceStatementBatch invoiceStatementBatch; + + private InvoiceStatementLineItem invoiceStatementLineItem; + + private Boolean needsReview; + + private BillMasterTransaction reversalOfTransaction; + + public BillMasterTransaction() { + super(); + } + + public BillMasterTransaction(Integer id) { + super(id); + } + + @JsonProperty("billMasters") + public BillMaster getBillMasters() { + return billMasters; + } + + @JsonProperty("billMasters") + public void setBillMasters(BillMaster billMasters) { + this.billMasters = billMasters; + } + + @JsonProperty("invoiceStatement") + public InvoiceStatement getInvoiceStatement() { + return invoiceStatement; + } + + @JsonProperty("invoiceStatement") + public void setInvoiceStatement(InvoiceStatement invoiceStatement) { + this.invoiceStatement = invoiceStatement; + } + + @JsonProperty("invoiceStatementBatch") + public InvoiceStatementBatch getInvoiceStatementBatch() { + return invoiceStatementBatch; + } + + @JsonProperty("invoiceStatementBatch") + public void setInvoiceStatementBatch(InvoiceStatementBatch invoiceStatementBatch) { + this.invoiceStatementBatch = invoiceStatementBatch; + } + + @JsonProperty("invoiceStatementLineItem") + public InvoiceStatementLineItem getInvoiceStatementLineItem() { + return invoiceStatementLineItem; + } + + @JsonProperty("invoiceStatementLineItem") + public void setInvoiceStatementLineItem(InvoiceStatementLineItem invoiceStatementLineItem) { + this.invoiceStatementLineItem = invoiceStatementLineItem; + } + + @JsonProperty("needsReview") + public Boolean getNeedsReview() { + return needsReview; + } + + @JsonProperty("needsReview") + public void setNeedsReview(Boolean needsReview) { + this.needsReview = needsReview; + } + + @JsonProperty("reversalOfTransaction") + public BillMasterTransaction getReversalOfTransaction() { + return reversalOfTransaction; + } + + @JsonProperty("reversalOfTransaction") + public void setReversalOfTransaction(BillMasterTransaction reversalOfTransaction) { + this.reversalOfTransaction = reversalOfTransaction; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java new file mode 100644 index 00000000..85b6aec5 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java @@ -0,0 +1,155 @@ +package com.bullhornsdk.data.model.entity.core.paybill.master; + +import com.bullhornsdk.data.model.entity.core.contractmanagement.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; +import com.bullhornsdk.data.model.entity.core.paybill.unit.UnitOfMeasure; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "amount", "billMaster", "billableCharge", "billingSyncBatch", + "currencyUnit", "earnCode", "quantity", "rate", "transactionDate", "unitOfMeasure"}) +public class BillableTransaction implements QueryEntity { + + private Integer id; + + private BillMaster billMasters; + + private BillableCharge billableCharge; + + private BillingSyncBatch billingSyncBatch; + + private CurrencyUnit currencyUnit; + + private EarnCode earnCode; + + private BigDecimal quantity; + + private BigDecimal rate; + + private Date transactionDate; + + private UnitOfMeasure unitOfMeasure; + + public BillableTransaction() { + } + + public BillableTransaction(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("billMasters") + public BillMaster getBillMasters() { + return billMasters; + } + + @JsonProperty("billMasters") + public void setBillMasters(BillMaster billMasters) { + this.billMasters = billMasters; + } + + @JsonProperty("currencyUnit") + public CurrencyUnit getCurrencyUnit() { + return currencyUnit; + } + + @JsonProperty("currencyUnit") + public void setCurrencyUnit(CurrencyUnit currencyUnit) { + this.currencyUnit = currencyUnit; + } + + @JsonProperty("quantity") + public BigDecimal getQuantity() { + return quantity; + } + + @JsonProperty("quantity") + public void setQuantity(BigDecimal quantity) { + this.quantity = quantity; + } + + @JsonProperty("rate") + public BigDecimal getRate() { + return rate; + } + + @JsonProperty("rate") + public void setRate(BigDecimal rate) { + this.rate = rate; + } + + @JsonProperty("transactionDate") + public Date getTransactionDate() { + return transactionDate; + } + + @JsonProperty("recordingDate") + public void setTransactionDate(Date transactionDate) { + this.transactionDate = transactionDate; + } + + @JsonProperty("billableCharge") + public BillableCharge getBillableCharge() { + return billableCharge; + } + + @JsonProperty("billableCharge") + public void setBillableCharge(BillableCharge billableCharge) { + this.billableCharge = billableCharge; + } + + @JsonProperty("billingSyncBatch") + public BillingSyncBatch getBillingSyncBatch() { + return billingSyncBatch; + } + + @JsonProperty("billingSyncBatch") + public void setBillingSyncBatch(BillingSyncBatch billingSyncBatch) { + this.billingSyncBatch = billingSyncBatch; + } + + @JsonProperty("earnCode") + public EarnCode getEarnCode() { + return earnCode; + } + + @JsonProperty("earnCode") + public void setEarnCode(EarnCode earnCode) { + this.earnCode = earnCode; + } + + @JsonProperty("unitOfMeasure") + public UnitOfMeasure getUnitOfMeasure() { + return unitOfMeasure; + } + + @JsonProperty("unitOfMeasure") + public void setUnitOfMeasure(UnitOfMeasure unitOfMeasure) { + this.unitOfMeasure = unitOfMeasure; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillingSyncBatch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillingSyncBatch.java new file mode 100644 index 00000000..7392151a --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillingSyncBatch.java @@ -0,0 +1,175 @@ +package com.bullhornsdk.data.model.entity.core.paybill.master; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionOrigin; +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; + +/** + * Created by mkesmetzis 21-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "batchGroup", "billMasters", "dateAdded", "dateLastModified", "defaultBillableCharge", + "defaultPayableCharge", "externalID", "payMasters", "periodEndDate", "timeOfExternalEvent", "transactionOrigin" +}) +public class BillingSyncBatch extends AbstractEntity implements QueryEntity, DateLastModifiedEntity, AssociationEntity { + + private Integer id; + private BatchGroup batchGroup; + private OneToMany billMasters; + private DateTime dateAdded; + private DateTime dateLastModified; + private BillableCharge defaultBillableCharge; + private PayableCharge defaultPayableCharge; + @Size(max = 50) + private String externalID; + private OneToMany payMasters; //TODO @OneToMany + private String periodEndDate; + private DateTime timeOfExternalEvent; + private TransactionOrigin transactionOrigin; + + + public BillingSyncBatch() { + } + + public BillingSyncBatch(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("batchGroup") + public BatchGroup getBatchGroup() { + return batchGroup; + } + + @JsonProperty("batchGroup") + public void setBatchGroup(BatchGroup batchGroup) { + this.batchGroup = batchGroup; + } + + @JsonProperty("billMasters") + public OneToMany getBillMasters() { + return billMasters; + } + + @JsonProperty("billMasters") + public void setBillMasters(OneToMany billMasters) { + this.billMasters = billMasters; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("defaultBillableCharge") + public BillableCharge getDefaultBillableCharge() { + return defaultBillableCharge; + } + + @JsonProperty("defaultBillableCharge") + public void setDefaultBillableCharge(BillableCharge defaultBillableCharge) { + this.defaultBillableCharge = defaultBillableCharge; + } + + @JsonProperty("defaultPayableCharge") + public PayableCharge getDefaultPayableCharge() { + return defaultPayableCharge; + } + + @JsonProperty("defaultPayableCharge") + public void setDefaultPayableCharge(PayableCharge defaultPayableCharge) { + this.defaultPayableCharge = defaultPayableCharge; + } + + @JsonProperty("externalID") + public String getExternalID() { + return externalID; + } + + @JsonProperty("externalID") + public void setExternalID(String externalID) { + this.externalID = externalID; + } + + @JsonProperty("payMasters") + public OneToMany getPayMasters() { + return payMasters; + } + + @JsonProperty("payMasters") + public void setPayMasters(OneToMany payMasters) { + this.payMasters = payMasters; + } + + @JsonProperty("periodEndDate") + public String getPeriodEndDate() { + return periodEndDate; + } + + @JsonProperty("periodEndDate") + public void setPeriodEndDate(String periodEndDate) { + this.periodEndDate = periodEndDate; + } + + @JsonProperty("timeOfExternalEvent") + public DateTime getTimeOfExternalEvent() { + return timeOfExternalEvent; + } + + @JsonProperty("timeOfExternalEvent") + public void setTimeOfExternalEvent(DateTime timeOfExternalEvent) { + this.timeOfExternalEvent = timeOfExternalEvent; + } + + @JsonProperty("transactionOrigin") + public TransactionOrigin getTransactionOrigin() { + return transactionOrigin; + } + + @JsonProperty("transactionOrigin") + public void setTransactionOrigin(TransactionOrigin transactionOrigin) { + this.transactionOrigin = transactionOrigin; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java new file mode 100644 index 00000000..25995fb4 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java @@ -0,0 +1,122 @@ +package com.bullhornsdk.data.model.entity.core.paybill.master; + +import com.bullhornsdk.data.model.entity.core.contractmanagement.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "payableCharge", "billingSyncBatch", "canExport", + "dateAdded", "dateLastModified", "earnCode", "transactionDate"}) +public class PayMaster implements QueryEntity, DateLastModifiedEntity { + + private Integer id; + private PayableCharge payableCharge; + private BillingSyncBatch billingSyncBatch; + private Boolean canExport; + private DateTime dateAdded; + private DateTime dateLastModified; + private EarnCode earnCode; + private DateTime transactionDate; + + public PayMaster() { + } + + public PayMaster(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("payableCharge") + public PayableCharge getPayableCharge() { + return payableCharge; + } + + @JsonProperty("billableCharge") + public void setPayableCharge(PayableCharge payableCharge) { + this.payableCharge = payableCharge; + } + + @JsonProperty("billingSyncBatch") + public BillingSyncBatch getBillingSyncBatch() { + return billingSyncBatch; + } + + @JsonProperty("billingSyncBatch") + public void setBillingSyncBatch(BillingSyncBatch billingSyncBatch) { + this.billingSyncBatch = billingSyncBatch; + } + + @JsonProperty("canExport") + public Boolean getCanExport() { + return canExport; + } + + @JsonProperty("canInvoice") + public void setCanExport(Boolean canExport) { + this.canExport = canExport; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("earnCode") + public EarnCode getEarnCode() { + return earnCode; + } + + @JsonProperty("earnCode") + public void setEarnCode(EarnCode earnCode) { + this.earnCode = earnCode; + } + + @JsonProperty("transactionDate") + public DateTime getTransactionDate() { + return transactionDate; + } + + @JsonProperty("transactionDate") + public void setTransactionDate(DateTime transactionDate) { + this.transactionDate = transactionDate; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SimplifiedOptionsLookup.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SimplifiedOptionsLookup.java new file mode 100644 index 00000000..ebee5f72 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SimplifiedOptionsLookup.java @@ -0,0 +1,66 @@ +package com.bullhornsdk.data.model.entity.core.paybill.optionslookup; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "label", "isDeleted"}) +public class SimplifiedOptionsLookup extends AbstractEntity implements SoftDeleteEntity, EditHistoryEntity { + + private Integer id; + + private String label; + + private Boolean isDeleted; + + public SimplifiedOptionsLookup() { + } + + public SimplifiedOptionsLookup(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("label") + public String getLabel() { + return label; + } + + @JsonProperty("label") + public void setLabel(String label) { + this.label = label; + } + + @JsonProperty("isDeleted") + public Boolean getIsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setIsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SpecializedOptionsLookup.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SpecializedOptionsLookup.java new file mode 100644 index 00000000..d12126ad --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SpecializedOptionsLookup.java @@ -0,0 +1,100 @@ +package com.bullhornsdk.data.model.entity.core.paybill.optionslookup; + +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "label", "isDeleted", "description", "isSystem", "isHidden", "shouldShowInPicker", + "dateAdded", "dateLastModified", "modifiedByUser"}) +public class SpecializedOptionsLookup extends SimplifiedOptionsLookup { + + private String description; + private Boolean isSystem; + private Boolean isHidden; + private Boolean shouldShowInPicker; + private DateTime dateAdded; + private DateTime dateLastModified; + private CorporateUser modifiedByUser; + + public SpecializedOptionsLookup() { + super(); + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("isSystem") + public Boolean getSystem() { + return isSystem; + } + + @JsonProperty("isSystem") + public void setSystem(Boolean system) { + isSystem = system; + } + + @JsonProperty("isHidden") + public Boolean getHidden() { + return isHidden; + } + + @JsonProperty("isHidden") + public void setHidden(Boolean hidden) { + isHidden = hidden; + } + + @JsonProperty("shouldShowInPicker") + public Boolean getShouldShowInPicker() { + return shouldShowInPicker; + } + + @JsonProperty("shouldShowInPicker") + public void setShouldShowInPicker(Boolean shouldShowInPicker) { + this.shouldShowInPicker = shouldShowInPicker; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @JsonProperty("modifiedByUser") + public CorporateUser getModifiedByUser() { + return modifiedByUser; + } + + @JsonProperty("modifiedByUser") + public void setModifiedByUser(CorporateUser modifiedByUser) { + this.modifiedByUser = modifiedByUser; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/WorkflowOptionsLookup.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/WorkflowOptionsLookup.java new file mode 100644 index 00000000..1ca274ff --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/WorkflowOptionsLookup.java @@ -0,0 +1,57 @@ +package com.bullhornsdk.data.model.entity.core.paybill.optionslookup; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "label", "isDeleted", "description", "isSystem", "isHidden", "shouldShowInPicker", "isSystem", + "dateAdded", "dateLastModified", "modifiedByUser", "workflowOrder", "isDownstreamOnly", "canBypass"}) +public class WorkflowOptionsLookup extends SpecializedOptionsLookup { + + private Integer workflowOrder; + private Boolean isDownstreamOnly; + private Boolean canBypass; + + public WorkflowOptionsLookup() { + super(); + this.canBypass = Boolean.TRUE; + this.isDownstreamOnly = Boolean.FALSE; + this.workflowOrder = 0; + } + + @JsonProperty("workflowOrder") + public Integer getWorkflowOrder() { + return workflowOrder; + } + + @JsonProperty("workflowOrder") + public void setWorkflowOrder(Integer workflowOrder) { + this.workflowOrder = workflowOrder; + } + + @JsonProperty("isDownstreamOnly") + public Boolean getDownstreamOnly() { + return isDownstreamOnly; + } + + @JsonProperty("isDownstreamOnly") + public void setDownstreamOnly(Boolean downstreamOnly) { + isDownstreamOnly = downstreamOnly; + } + + @JsonProperty("canBypass") + public Boolean getCanBypass() { + return canBypass; + } + + @JsonProperty("canBypass") + public void setCanBypass(Boolean canBypass) { + this.canBypass = canBypass; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionOrigin.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionOrigin.java new file mode 100644 index 00000000..b7382cd2 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionOrigin.java @@ -0,0 +1,53 @@ +package com.bullhornsdk.data.model.entity.core.paybill.transaction; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 21-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "name"}) +public class TransactionOrigin extends AbstractEntity implements QueryEntity { + + private Integer id; + private String name; + + public TransactionOrigin() { + } + + public TransactionOrigin(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("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionStatus.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionStatus.java new file mode 100644 index 00000000..67dc87e4 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionStatus.java @@ -0,0 +1,82 @@ +package com.bullhornsdk.data.model.entity.core.paybill.transaction; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 21-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "name"}) +public class TransactionStatus extends AbstractEntity implements QueryEntity { + + private Integer id; + private String name; + + + public TransactionStatus(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("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + +// enum KnownIds { +// Pending(1), +// Submitted(2), +// PaymentApproved(3, "Payment Approved"), +// Approved(4); +// +// private TransactionStatus entity; +// +// KnownIds(int id) { +// this(id, null); +// } +// +// KnownIds(int id, String name) { +// if (name == null) { +// name = this.name(); +// } +// this.entity = new TransactionStatus(); +// this.entity.setId(id); +// this.entity.setName(name); +// } +// +// public int getId() { +// return getEntity().getId(); +// } +// +// public TransactionStatus getEntity() { +// return entity; +// } +// } + + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionType.java new file mode 100644 index 00000000..46ce17ec --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionType.java @@ -0,0 +1,56 @@ +package com.bullhornsdk.data.model.entity.core.paybill.transaction; + +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 21-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "name"}) +public class TransactionType implements QueryEntity { + + private Integer id; + private String name; + + public TransactionType() { + } + + public TransactionType(Integer id) { + this.id = id; + } + + public TransactionType(Integer id, String name) { + this.id = id; + this.name = name; + } + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/unit/UnitOfMeasure.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/unit/UnitOfMeasure.java new file mode 100644 index 00000000..27b6c1a3 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/unit/UnitOfMeasure.java @@ -0,0 +1,45 @@ +package com.bullhornsdk.data.model.entity.core.paybill.unit; + +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 22-Apr-20 + */ + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "label", "dateAdded", "dateLastModified", "description", "isDeleted", "isSystem", + "isHidden", "shouldShowInPicker", "modifiedByUser"}) +public class UnitOfMeasure extends SpecializedOptionsLookup implements QueryEntity { + + private Integer id; + + public UnitOfMeasure() { + super(); + } + + public UnitOfMeasure(Integer id) { + super(); + this.id = id; + } + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @ReadOnly + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/file/BillableChargeFileAttachment.java b/src/main/java/com/bullhornsdk/data/model/entity/file/BillableChargeFileAttachment.java new file mode 100644 index 00000000..33c9407f --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/file/BillableChargeFileAttachment.java @@ -0,0 +1,69 @@ +package com.bullhornsdk.data.model.entity.file; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.util.Objects; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ + "id", + "billableCharge", + "contentSubType", + "contentType", + "dateAdded", + "departmentsSharedWith", + "description", + "directory", + "distribution", + "externalID", + "fileExtension", + "fileOwner", + "fileSize", + "fileType", + "isCopied", + "isDeleted", + "isEncrypted", + "isExternal", + "isOpen", + "isPrivate", + "isSendOut", + "name", + "type", + "usersSharedWith" +}) +public class BillableChargeFileAttachment extends EntityFileAttachment { + + private BillableCharge billableCharge; + + @JsonProperty("billableCharge") + public BillableCharge getBillableCharge() { + return billableCharge; + } + + @JsonProperty("billableCharge") + public void setBillableCharge(BillableCharge billableCharge) { + this.billableCharge = billableCharge; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + BillableChargeFileAttachment that = (BillableChargeFileAttachment) o; + return Objects.equals(billableCharge, that.billableCharge); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), billableCharge); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java index 777cf545..8feeba3e 100644 --- a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java +++ b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java @@ -1,90 +1,15 @@ package com.bullhornsdk.data.model.enums; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - import com.bullhornsdk.data.model.entity.core.customobject.ClientCorporationCustomObject; import com.bullhornsdk.data.model.entity.core.customobject.JobOrderCustomObject; import com.bullhornsdk.data.model.entity.core.customobject.PlacementCustomObject; import com.bullhornsdk.data.model.entity.core.customobject.UserCustomObject; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance11; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance12; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance13; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance14; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance15; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance16; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance17; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance18; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance19; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance20; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance21; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance22; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance23; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance24; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance25; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance26; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance27; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance28; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance29; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance30; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance31; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance32; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance33; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance34; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance35; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance1; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance10; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance2; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance3; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance4; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance5; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance6; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance7; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance8; -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance9; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.*; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.*; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.*; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.*; +import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.*; import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile; import com.bullhornsdk.data.model.entity.core.paybill.Location; import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceTerm; @@ -105,6 +30,11 @@ import com.bullhornsdk.data.model.response.single.customobject.UserCustomObjectWrapper; import com.bullhornsdk.data.model.response.single.customobjectinstances.*; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + /** * Enum that contains the following information about the RestEntities: *

@@ -145,15 +75,15 @@ public enum BullhornEntityInfo { CLIENT_CONTACT("ClientContact", ClientContact.class, ClientContactWrapper.class, ClientContactListWrapper.class, "UserEditHistory", "UserEditHistoryFieldChange"), CLIENT_CONTACT1("ClientContact1", ClientContact1.class, ClientContact1Wrapper.class, ClientContact1ListWrapper.class, "UserEditHistory", - "UserEditHistoryFieldChange"), + "UserEditHistoryFieldChange"), CLIENT_CONTACT2("ClientContact2", ClientContact2.class, ClientContact2Wrapper.class, ClientContact2ListWrapper.class, "UserEditHistory", - "UserEditHistoryFieldChange"), + "UserEditHistoryFieldChange"), CLIENT_CONTACT3("ClientContact3", ClientContact3.class, ClientContact3Wrapper.class, ClientContact3ListWrapper.class, "UserEditHistory", - "UserEditHistoryFieldChange"), + "UserEditHistoryFieldChange"), CLIENT_CONTACT4("ClientContact4", ClientContact4.class, ClientContact4Wrapper.class, ClientContact4ListWrapper.class, "UserEditHistory", - "UserEditHistoryFieldChange"), + "UserEditHistoryFieldChange"), CLIENT_CONTACT5("ClientContact5", ClientContact5.class, ClientContact5Wrapper.class, ClientContact5ListWrapper.class, "UserEditHistory", - "UserEditHistoryFieldChange"), + "UserEditHistoryFieldChange"), CLIENT_CORPORATION("ClientCorporation", ClientCorporation.class, ClientCorporationWrapper.class, ClientCorporationListWrapper.class, "ClientCorporationEditHistory", "ClientCorporationEditHistoryFieldChange"), CLIENT_CORPORATION1("ClientCorporation1", ClientCorporation1.class, ClientCorporation1Wrapper.class, @@ -305,6 +235,7 @@ public enum BullhornEntityInfo { JOB_ORDER_FILE_ATTACHMENT("JobOrderFileAttachment", JobOrderFileAttachment.class, JobOrderFileAttachmentWrapper.class, JobOrderFileAttachmentListWrapper.class, null, null), OPPORTUNITY_FILE_ATTACHMENT("OpportunityFileAttachment", OpportunityFileAttachment.class, OpportunityFileAttachmentWrapper.class, OpportunityFileAttachmentListWrapper.class, null, null), PLACEMENT_FILE_ATTACHMENT("PlacementFileAttachment", PlacementFileAttachment.class, PlacementFileAttachmentWrapper.class, PlacementFileAttachmentListWrapper.class, null, null), + BILLABLE_CHARGE_FILE_ATTACHMENT("BillableChargeFileAttachment", BillableChargeFileAttachment.class, BillableChargeFileAttachmentWrapper.class, BillableChargeFileAttachmentListWrapper.class, null, null), CLIENT_CORPORATION_CUSTOM_OBJECT("ClientCorporationCustomObject", ClientCorporationCustomObject.class, ClientCorporationCustomObjectWrapper.class, ClientCorporationCustomObjectListWrapper.class, null, null), JOB_ORDER_CUSTOM_OBJECT("JobOrderCustomObject", JobOrderCustomObject.class, JobOrderCustomObjectWrapper.class, JobOrderCustomObjectListWrapper.class, null, null), diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/BillableChargeFileAttachmentListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/BillableChargeFileAttachmentListWrapper.java new file mode 100644 index 00000000..1f03ded5 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/BillableChargeFileAttachmentListWrapper.java @@ -0,0 +1,15 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.file.BillableChargeFileAttachment; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +/** + * Created by mkesmetzis 01-Apr-20 + */ + + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class BillableChargeFileAttachmentListWrapper extends StandardListWrapper { +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/BillableChargeFileAttachmentWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/BillableChargeFileAttachmentWrapper.java new file mode 100644 index 00000000..a59b0b07 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/BillableChargeFileAttachmentWrapper.java @@ -0,0 +1,10 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.file.BillableChargeFileAttachment; + +/** + * Created by mkesmetzis 01-Apr-20 + */ + +public class BillableChargeFileAttachmentWrapper extends StandardWrapper { +} diff --git a/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt b/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt new file mode 100644 index 00000000..4a7583ba --- /dev/null +++ b/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt @@ -0,0 +1,765 @@ +{ + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 2, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 3, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 4, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 5, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 6, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 7, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 8, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 9, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 10, + "billableCharge": { + "id": 1966 + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 11, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 12, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 13, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 14, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 15, + "billableCharge": { + "id": 1966" + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 16, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 17, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 18, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 19, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + }, + { + "id": 20, + "billableCharge": { + "id": 1966 + }, + "contentSubType": "plain", + "contentType": "text", + "dateAdded": 1516798433010, + "departmentsSharedWith": { + "total": 0, + "data": [] + }, + "description": null, + "directory": "16863/2018.01/", + "distribution": "internal", + "externalID": "portfolio", + "fileExtension": ".txt", + "fileOwner": { + "id": 1909, + "firstName": "Tim", + "lastName": "Kennedy" + }, + "fileSize": 12, + "fileType": "SAMPLE ", + "isCopied": false, + "isDeleted": false, + "isExternal": false, + "isOpen": true, + "isPrivate": false, + "isSendOut": false, + "name": "TextCV2.txt", + "type": null, + "usersSharedWith": { + "total": 0, + "data": [] + }, + "uuid": "D1347896-D29E-4C12-A499-8453779299AD" + } + ] +} From 0dd1e6198fa33251b4691e3998f6f6152faec5c9 Mon Sep 17 00:00:00 2001 From: mkesmetzis Date: Fri, 24 Apr 2020 15:09:29 +0100 Subject: [PATCH 2/7] more work on new entities --- .../core/paybill/charge/PayableCharge.java | 65 +++++-- .../core/paybill/discount/Discount.java | 2 +- .../earncode/EarnCode.java | 2 +- .../paybill/invoice/InvoiceStatement.java | 105 +++++++++-- .../invoice/InvoiceStatementExportBatch.java | 100 +++++++++++ .../invoice/InvoiceStatementSplitBy.java | 95 ++++++++++ .../invoice/InvoiceStatementSurcharge.java | 78 ++++++++ .../paybill/invoice/InvoiceStatementTax.java | 83 +++++++++ .../core/paybill/master/BillMaster.java | 2 +- .../paybill/master/BillableTransaction.java | 14 +- .../entity/core/paybill/master/PayMaster.java | 2 +- .../paybill/master/PayableTransaction.java | 167 ++++++++++++++++++ .../core/paybill/surcharge/Surcharge.java | 109 ++++++++++++ .../core/paybill/surcharge/SurchargeType.java | 51 ++++++ .../model/entity/core/paybill/tax/Tax.java | 133 ++++++++++++++ .../entity/core/paybill/tax/TaxType.java | 51 ++++++ .../file/BillableChargeFileAttachment.java | 17 +- .../entity/file/InvoiceStatementExport.java | 86 +++++++++ .../data/model/enums/BullhornEntityInfo.java | 43 ++++- .../response/list/BatchGroupListWrapper.java | 11 ++ .../response/list/BillMasterListWrapper.java | 11 ++ .../BillMasterTransactionListWrapper.java | 11 ++ .../list/BillableChargeListWrapper.java | 11 ++ .../list/BillingSyncBatchListWrapper.java | 11 ++ .../response/list/DiscountListWrapper.java | 11 ++ .../list/DiscountTypeListWrapper.java | 11 ++ .../response/list/EarnCodeListWrapper.java | 11 ++ .../GeneralLedgerSegment1ListWrapper.java | 11 ++ .../GeneralLedgerSegment2ListWrapper.java | 11 ++ .../GeneralLedgerSegment3ListWrapper.java | 11 ++ .../GeneralLedgerSegment4ListWrapper.java | 11 ++ .../GeneralLedgerSegment5ListWrapper.java | 11 ++ .../list/GeneralLedgerSegmentListWrapper.java | 11 ++ .../GeneralLedgerSegmentTypeListWrapper.java | 11 ++ .../GeneralLedgerServiceCodeListWrapper.java | 11 ++ .../InvoiceStatementBatchListWrapper.java | 11 ++ .../InvoiceStatementDiscountListWrapper.java | 11 ++ ...nvoiceStatementExportBatchListWrapper.java | 11 ++ .../InvoiceStatementLineItemListWrapper.java | 11 ++ .../list/InvoiceStatementListWrapper.java | 11 ++ .../InvoiceStatementSurchargeListWrapper.java | 11 ++ .../list/InvoiceStatementTaxListWrapper.java | 11 ++ .../response/list/PayMasterListWrapper.java | 11 ++ .../list/PayableChargeListWrapper.java | 11 ++ .../response/list/SurchargeListWrapper.java | 11 ++ .../model/response/list/TaxListWrapper.java | 11 ++ .../response/single/BatchGroupWrapper.java | 7 + .../single/BillMasterTransactionWrapper.java | 7 + .../response/single/BillMasterWrapper.java | 7 + .../single/BillableChargeWrapper.java | 7 + .../single/BillingSyncBatchWrapper.java | 7 + .../response/single/DiscountTypeWrapper.java | 7 + .../response/single/DiscountWrapper.java | 7 + .../response/single/EarnCodeWrapper.java | 7 + .../single/GeneralLedgerSegment1Wrapper.java | 7 + .../single/GeneralLedgerSegment2Wrapper.java | 7 + .../single/GeneralLedgerSegment3Wrapper.java | 7 + .../single/GeneralLedgerSegment4Wrapper.java | 7 + .../single/GeneralLedgerSegment5Wrapper.java | 7 + .../GeneralLedgerSegmentTypeWrapper.java | 7 + .../single/GeneralLedgerSegmentWrapper.java | 7 + .../GeneralLedgerServiceCodeWrapper.java | 7 + .../single/InvoiceStatementBatchWrapper.java | 7 + .../InvoiceStatementDiscountWrapper.java | 7 + .../InvoiceStatementExportBatchWrapper.java | 7 + .../InvoiceStatementLineItemWrapper.java | 7 + .../InvoiceStatementSurchargeWrapper.java | 7 + .../single/InvoiceStatementTaxWrapper.java | 7 + .../single/InvoiceStatementWrapper.java | 7 + .../response/single/PayMasterWrapper.java | 7 + .../response/single/PayableChargeWrapper.java | 7 + .../response/single/SurchargeWrapper.java | 7 + .../model/response/single/TaxWrapper.java | 7 + .../rest/paybill/billableCharge-data.txt | 78 ++++++++ 74 files changed, 1724 insertions(+), 45 deletions(-) rename src/main/java/com/bullhornsdk/data/model/entity/core/{contractmanagement => paybill}/earncode/EarnCode.java (99%) create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementExportBatch.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSplitBy.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSurcharge.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementTax.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayableTransaction.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/file/InvoiceStatementExport.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/BatchGroupListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/BillMasterListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/BillMasterTransactionListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/BillableChargeListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/BillingSyncBatchListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/DiscountListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/DiscountTypeListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/EarnCodeListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment1ListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment2ListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment3ListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment4ListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment5ListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentTypeListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerServiceCodeListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementBatchListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementDiscountListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementExportBatchListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementLineItemListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementSurchargeListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementTaxListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/PayMasterListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/PayableChargeListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/SurchargeListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/TaxListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/BatchGroupWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/BillMasterTransactionWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/BillMasterWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/BillableChargeWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/BillingSyncBatchWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/DiscountTypeWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/DiscountWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/EarnCodeWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment1Wrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment2Wrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment3Wrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment4Wrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment5Wrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentTypeWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerServiceCodeWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementBatchWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementDiscountWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementExportBatchWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementLineItemWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementSurchargeWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementTaxWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/PayMasterWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/PayableChargeWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/SurchargeWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/TaxWrapper.java create mode 100644 src/test/resources/testdata/rest/paybill/billableCharge-data.txt diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java index 4b8ba59d..01fb3fed 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java @@ -1,6 +1,8 @@ package com.bullhornsdk.data.model.entity.core.paybill.charge; import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; +import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; +import com.bullhornsdk.data.model.entity.core.paybill.master.PayableTransaction; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionStatus; import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionType; @@ -24,7 +26,7 @@ @JsonPropertyOrder({"id", "addedByUser", "canExport", "candidate", "clientCorporation", "currencyUnit", "dateAdded", "dateLastModified", "description", "employeeType", "generalLedgerSegment1", "generalLedgerSegment2", "generalLedgerSegment3", "generalLedgerSegment4", "generalLedgerSegment5", - "generalLedgerServiceCode", "jobOrder", "payMasters", "periodEndDate", "placement", + "generalLedgerServiceCode", "jobOrder", "payMasters", "payableTransactions", "periodEndDate", "placement", "readyToBillOverride", "status", "subTotal", "transactionStatus", "transactionType" }) public class PayableCharge implements QueryEntity, UpdateEntity, DateLastModifiedEntity, AssociationEntity, CreateEntity { @@ -34,11 +36,8 @@ public class PayableCharge implements QueryEntity, UpdateEntity, DateLastModifie private Boolean canExport; private Candidate candidate; private ClientCorporation clientCorporation; - private CurrencyUnit currencyUnit; - private DateTime dateAdded; - private DateTime dateLastModified; @JsonIgnore @@ -57,25 +56,27 @@ public class PayableCharge implements QueryEntity, UpdateEntity, DateLastModifie private GeneralLedgerSegment5 generalLedgerSegment5; - private GeneralLedgerServiceCode generalLedgerServiceCode; //TODO + private GeneralLedgerServiceCode generalLedgerServiceCode; private JobOrder jobOrder; - private OneToMany payMasters; // TODO OneToMany + private OneToMany payMasters; + + private OneToMany payableTransactions; - private DateTime periodEndDate; + private String periodEndDate; private Placement placement; - private Boolean readyToBillOverride; //TODO + private Boolean readyToBillOverride; - private SpecializedOptionsLookup status; //TODO //nullable = false, insertable = false, updatable = false + private SpecializedOptionsLookup status; private BigDecimal subTotal; - private TransactionStatus transactionStatus; //TODO + private TransactionStatus transactionStatus; - private TransactionType transactionType; //TODO + private TransactionType transactionType; public PayableCharge() { @@ -141,6 +142,36 @@ public void setCurrencyUnit(CurrencyUnit currencyUnit) { this.currencyUnit = currencyUnit; } + @JsonProperty("canExport") + public Boolean getCanExport() { + return canExport; + } + + @JsonProperty("canExport") + public void setCanExport(Boolean canExport) { + this.canExport = canExport; + } + + @JsonProperty("employeeType") + public String getEmployeeType() { + return employeeType; + } + + @JsonProperty("employeeType") + public void setEmployeeType(String employeeType) { + this.employeeType = employeeType; + } + + @JsonProperty("payableTransactions") + public OneToMany getPayableTransactions() { + return payableTransactions; + } + + @JsonProperty("payableTransactions") + public void setPayableTransactions(OneToMany payableTransactions) { + this.payableTransactions = payableTransactions; + } + @JsonProperty("dateAdded") public DateTime getDateAdded() { return dateAdded; @@ -243,22 +274,22 @@ public void setJobOrder(JobOrder jobOrder) { } @JsonProperty("payMasters") - public PayMaster getPayMasters() { + public OneToMany getPayMasters() { return payMasters; } @JsonProperty("payMasters") - public void setBillMasters(PayMaster payMasters) { + public void setPayMasters(OneToMany payMasters) { this.payMasters = payMasters; } @JsonProperty("periodEndDate") - public DateTime getPeriodEndDate() { + public String getPeriodEndDate() { return periodEndDate; } @JsonProperty("periodEndDate") - public void setPeriodEndDate(DateTime periodEndDate) { + public void setPeriodEndDate(String periodEndDate) { this.periodEndDate = periodEndDate; } @@ -283,12 +314,12 @@ public void setReadyToBillOverride(Boolean readyToBillOverride) { } @JsonProperty("status") - public PayableChargeStatusLookup getStatus() { + public SpecializedOptionsLookup getStatus() { return status; } @JsonProperty("status") - public void setStatus(PayableChargeStatusLookup status) { + public void setStatus(SpecializedOptionsLookup status) { this.status = status; } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java index 9e7cb3c6..75109955 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.discount; -import com.bullhornsdk.data.model.entity.core.contractmanagement.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; import com.bullhornsdk.data.model.entity.core.type.QueryEntity; import com.bullhornsdk.data.util.ReadOnly; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/contractmanagement/earncode/EarnCode.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java similarity index 99% rename from src/main/java/com/bullhornsdk/data/model/entity/core/contractmanagement/earncode/EarnCode.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java index 8d6c89ad..4b0274ab 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/contractmanagement/earncode/EarnCode.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.contractmanagement.earncode; +package com.bullhornsdk.data.model.entity.core.paybill.earncode; import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java index 8ebfbf04..8b349e44 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java @@ -2,6 +2,7 @@ import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.WorkflowOptionsLookup; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; import com.bullhornsdk.data.model.entity.core.standard.ClientContact; import com.bullhornsdk.data.model.entity.core.standard.ClientCorporation; @@ -9,6 +10,7 @@ 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.file.InvoiceStatementExport; import com.bullhornsdk.data.util.ReadOnly; import com.fasterxml.jackson.annotation.*; import org.joda.time.DateTime; @@ -24,13 +26,12 @@ @JsonPropertyOrder({"id", "billingAddress", "billingAttention", "billingClientContact", "billingCorporateUser", "billingPeriodEndDate", "billingProfile", "billingScheduleID", "clientCorporation", "creditedByInvoiceStatement", "creditOfInvoiceStatement", "currencyUnit", "dateAdded", "dateLastModified", "deliveryMethod", "deliveryStatus", - "discounts", "discountTotal", "dueDate", "effectiveDate", "emailErrorReason", "finalizedSubtotal", "finalizedTotal", + "discounts", "discountTotal", "discountAmount", "dueDate", "effectiveDate", "emailErrorReason", "finalizedSubtotal", "finalizedTotal", "generalLedgerExportStatusLookup", "invoiceStatementDate", "invoiceStatementExports", "invoiceStatementExportsBatches", - "invoiceStatementNumber", "invoiceStatementOrigin", "invoiceStatementTemplate", "invoiceStatementType", "invoiceTerm", - "isDeleted", "isCredited", "isFinalized", "isReinstated", "lineItems", "lineItemTotal", "owner", + "invoiceStatementNumber", "invoiceStatementFinalizedDate", "invoiceStatementOrigin", "invoiceStatementTemplate", "invoiceStatementType", "invoiceTerm", + "isDeleted", "isCredited", "isFinalized", "isReinstated", "lineItems", "lineItemTotal", "owner", "paymentTerms", "previousBalance", "purchaseOrderNumber", "rawInvoiceStatementNumber", "remitInstructions", "splitBys", - "status", "subtotal", "surcharges", "surchargeTotal", - "taxes", "taxTotal", "total" + "status", "subtotal", "surcharges", "surchargeTotal", "taxAmount", "taxes", "taxTotal", "total" }) public class InvoiceStatement extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, EditHistoryEntity, DateLastModifiedEntity, SoftDeleteEntity { @@ -40,7 +41,7 @@ public class InvoiceStatement extends AbstractEntity implements QueryEntity, Upd private String billingAttention; private ClientContact billingClientContact; private CorporateUser billingCorporateUser; - private Date billingPeriodEndDate; + private String billingPeriodEndDate; private BillingProfile billingProfile; private Integer billingScheduleID; private ClientCorporation clientCorporation; @@ -54,6 +55,7 @@ public class InvoiceStatement extends AbstractEntity implements QueryEntity, Upd private SpecializedOptionsLookup deliveryStatus; private OneToMany discounts; private BigDecimal discountTotal; + private BigDecimal discountAmount; private String effectiveDate; private Date dueDate; @JsonIgnore @@ -63,13 +65,14 @@ public class InvoiceStatement extends AbstractEntity implements QueryEntity, Upd private SpecializedOptionsLookup generalLedgerExportStatusLookup; private Date invoiceStatementDate; private OneToMany invoiceStatementExports; - private OneToMany invoiceStatementExportsBatches; + private OneToMany invoiceStatementExportsBatches; @JsonIgnore private String invoiceStatementNumber; + private Date invoiceStatementFinalizedDate; @JsonIgnore private String invoiceStatementOrigin; private InvoiceStatementTemplate invoiceStatementTemplate; - private InvoiceStatementTypeLookup invoiceStatementType; + private SpecializedOptionsLookup invoiceStatementType; private InvoiceTerm invoiceTerm; private Boolean isDeleted; private Boolean isCredited; @@ -78,18 +81,21 @@ public class InvoiceStatement extends AbstractEntity implements QueryEntity, Upd private OneToMany lineItems; private BigDecimal lineItemTotal; private CorporateUser owner; + @JsonIgnore + private String paymentTerms; private BigDecimal previousBalance; @JsonIgnore private String purchaseOrderNumber; private Long rawInvoiceStatementNumber; private String remitInstructions; private OneToMany splitBys; - private InvoiceStatementStatusLookup status; + private WorkflowOptionsLookup status; private BigDecimal subtotal; - private OneToMany surcharges; private BigDecimal surchargeTotal; - private OneToMany taxes; + private OneToMany surcharges; + private BigDecimal taxAmount; private BigDecimal taxTotal; + private OneToMany taxes; private BigDecimal total; public InvoiceStatement() { @@ -114,12 +120,12 @@ public void setId(Integer id) { @JsonProperty("billingAddress") - public BillingAddress getBillingAddress() { + public Address getBillingAddress() { return billingAddress; } @JsonProperty("billingAddress") - public void setBillingAddress(BillingAddress billingAddress) { + public void setBillingAddress(Address billingAddress) { this.billingAddress = billingAddress; } @@ -154,12 +160,12 @@ public void setBillingCorporateUser(CorporateUser billingCorporateUser) { } @JsonProperty("billingPeriodEndDate") - public Date getBillingPeriodEndDate() { + public String getBillingPeriodEndDate() { return billingPeriodEndDate; } @JsonProperty("billingPeriodEndDate") - public void setBillingPeriodEndDate(Date billingPeriodEndDate) { + public void setBillingPeriodEndDate(String billingPeriodEndDate) { this.billingPeriodEndDate = billingPeriodEndDate; } @@ -385,12 +391,12 @@ public void setInvoiceStatementTemplate(InvoiceStatementTemplate invoiceStatemen } @JsonProperty("invoiceStatementType") - public InvoiceStatementTypeLookup getInvoiceStatementType() { + public SpecializedOptionsLookup getInvoiceStatementType() { return invoiceStatementType; } @JsonProperty("invoiceStatementType") - public void setInvoiceStatementType(InvoiceStatementTypeLookup invoiceStatementType) { + public void setInvoiceStatementType(SpecializedOptionsLookup invoiceStatementType) { this.invoiceStatementType = invoiceStatementType; } @@ -525,12 +531,12 @@ public void setSplitBys(OneToMany splitBys) { } @JsonProperty("status") - public InvoiceStatementStatusLookup getStatus() { + public WorkflowOptionsLookup getStatus() { return status; } @JsonProperty("status") - public void setStatus(InvoiceStatementStatusLookup status) { + public void setStatus(WorkflowOptionsLookup status) { this.status = status; } @@ -593,4 +599,65 @@ public BigDecimal getTotal() { public void setTotal(BigDecimal total) { this.total = total; } + + + @JsonProperty("discountAmount") + public BigDecimal getDiscountAmount() { + return discountAmount; + } + + @JsonProperty("discountAmount") + public void setDiscountAmount(BigDecimal discountAmount) { + this.discountAmount = discountAmount; + } + + @JsonProperty("effectiveDate") + public String getEffectiveDate() { + return effectiveDate; + } + + @JsonProperty("effectiveDate") + public void setEffectiveDate(String effectiveDate) { + this.effectiveDate = effectiveDate; + } + + @JsonProperty("invoiceStatementExportsBatches") + public OneToMany getInvoiceStatementExportsBatches() { + return invoiceStatementExportsBatches; + } + + @JsonProperty("invoiceStatementExportsBatches") + public void setInvoiceStatementExportsBatches(OneToMany invoiceStatementExportsBatches) { + this.invoiceStatementExportsBatches = invoiceStatementExportsBatches; + } + + @JsonProperty("invoiceStatementFinalizedDate") + public Date getInvoiceStatementFinalizedDate() { + return invoiceStatementFinalizedDate; + } + + @JsonProperty("invoiceStatementFinalizedDate") + public void setInvoiceStatementFinalizedDate(Date invoiceStatementFinalizedDate) { + this.invoiceStatementFinalizedDate = invoiceStatementFinalizedDate; + } + + @JsonProperty("paymentTerms") + public String getPaymentTerms() { + return paymentTerms; + } + + @JsonProperty("paymentTerms") + public void setPaymentTerms(String paymentTerms) { + this.paymentTerms = paymentTerms; + } + + @JsonProperty("taxAmount") + public BigDecimal getTaxAmount() { + return taxAmount; + } + + @JsonProperty("taxAmount") + public void setTaxAmount(BigDecimal taxAmount) { + this.taxAmount = taxAmount; + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementExportBatch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementExportBatch.java new file mode 100644 index 00000000..8c40e77e --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementExportBatch.java @@ -0,0 +1,100 @@ +package com.bullhornsdk.data.model.entity.core.paybill.invoice; + +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "batchStatus", "invoiceStatement", "dateAdded", "dateLastModified", "owner"}) +public class InvoiceStatementExportBatch extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity { + + private Integer id; + private SimplifiedOptionsLookup batchStatus; + private OneToMany invoiceStatement; + private DateTime dateAdded; + private DateTime dateLastModified; + private CorporateUser owner; + + public InvoiceStatementExportBatch() { + } + + public InvoiceStatementExportBatch(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("batchStatus") + public SimplifiedOptionsLookup getBatchStatus() { + return batchStatus; + } + + @JsonProperty("batchStatus") + public void setBatchStatus(SimplifiedOptionsLookup batchStatus) { + this.batchStatus = batchStatus; + } + + @JsonProperty("invoiceStatement") + public OneToMany getInvoiceStatement() { + return invoiceStatement; + } + + @JsonProperty("invoiceStatement") + public void setInvoiceStatements(OneToMany invoiceStatement) { + this.invoiceStatement = invoiceStatement; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSplitBy.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSplitBy.java new file mode 100644 index 00000000..03a056c3 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSplitBy.java @@ -0,0 +1,95 @@ +package com.bullhornsdk.data.model.entity.core.paybill.invoice; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "invoiceStatement", "field", "value", "displayValue", "sortOrder"}) +public class InvoiceStatementSplitBy extends AbstractEntity implements QueryEntity { + + private Integer id; + private InvoiceStatement invoiceStatement; + private String field; + private String value; + private String displayValue; + private Integer sortOrder; + + public InvoiceStatementSplitBy() { + } + + public InvoiceStatementSplitBy(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("invoiceStatement") + public InvoiceStatement getInvoiceStatementLineItem() { + return invoiceStatement; + } + + @JsonProperty("invoiceStatement") + public void invoiceStatement(InvoiceStatement invoiceStatement) { + this.invoiceStatement = invoiceStatement; + } + + @JsonProperty("field") + public String getField() { + return field; + } + + @JsonProperty("field") + public void setField(String field) { + this.field = field; + } + + @JsonProperty("value") + public String getValue() { + return value; + } + + @JsonProperty("value") + public void setValue(String value) { + this.value = value; + } + + @JsonProperty("displayValue") + public String getDisplayValue() { + return displayValue; + } + + @JsonProperty("displayValue") + public void setDisplayValue(String displayValue) { + this.displayValue = displayValue; + } + + @JsonProperty("sortOrder") + public Integer getSortOrder() { + return sortOrder; + } + + @JsonProperty("sortOrder") + public void setSortOrder(Integer sortOrder) { + this.sortOrder = sortOrder; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSurcharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSurcharge.java new file mode 100644 index 00000000..f4358ee2 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSurcharge.java @@ -0,0 +1,78 @@ +package com.bullhornsdk.data.model.entity.core.paybill.invoice; + +import com.bullhornsdk.data.model.entity.core.paybill.surcharge.Surcharge; +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.math.BigDecimal; + +/** + * Created by mkesmetzis 24-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "finalizedValue", "invoiceStatement", "surcharge"}) +public class InvoiceStatementSurcharge extends AbstractEntity implements QueryEntity { + + private Integer id; + private BigDecimal finalizedValue; + private InvoiceStatement invoiceStatement; + private Surcharge surcharge; + + public InvoiceStatementSurcharge() { + } + + public InvoiceStatementSurcharge(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("finalizedValue") + public BigDecimal getFinalizedValue() { + return finalizedValue; + } + + @JsonProperty("finalizedValue") + public void setFinalizedValue(BigDecimal finalizedValue) { + this.finalizedValue = finalizedValue; + } + + @JsonProperty("invoiceStatement") + public InvoiceStatement getInvoiceStatement() { + return invoiceStatement; + } + + @JsonProperty("invoiceStatement") + public void setInvoiceStatement(InvoiceStatement invoiceStatement) { + this.invoiceStatement = invoiceStatement; + } + + @JsonProperty("surcharge") + public Surcharge getSurcharge() { + return surcharge; + } + + @JsonProperty("surcharge") + public void setSurcharge(Surcharge surcharge) { + this.surcharge = surcharge; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementTax.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementTax.java new file mode 100644 index 00000000..49e34b25 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementTax.java @@ -0,0 +1,83 @@ +package com.bullhornsdk.data.model.entity.core.paybill.invoice; + +import com.bullhornsdk.data.model.entity.core.paybill.tax.Tax; +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.SoftDeleteEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.math.BigDecimal; + +/** + * Created by mkesmetzis 24-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "finalizedValue", "invoiceStatement", "isDeleted", "tax"}) +public class InvoiceStatementTax extends AbstractEntity implements QueryEntity, SoftDeleteEntity { + + private Integer id; + private BigDecimal finalizedValue; + private InvoiceStatement invoiceStatement; + private Tax tax; + + public InvoiceStatementTax() { + } + + public InvoiceStatementTax(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("finalizedValue") + public BigDecimal getFinalizedValue() { + return finalizedValue; + } + + @JsonProperty("finalizedValue") + public void setFinalizedValue(BigDecimal finalizedValue) { + this.finalizedValue = finalizedValue; + } + + @JsonProperty("invoiceStatement") + public InvoiceStatement getInvoiceStatement() { + return invoiceStatement; + } + + @JsonProperty("invoiceStatement") + public void setInvoiceStatement(InvoiceStatement invoiceStatement) { + this.invoiceStatement = invoiceStatement; + } + + @Override + public Boolean getIsDeleted() { + return null; + } + + @JsonProperty("tax") + public Tax getTax() { + return tax; + } + + @JsonProperty("tax") + public void setTax(Tax tax) { + this.tax = tax; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java index 10f761b3..a5f43d3b 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.master; -import com.bullhornsdk.data.model.entity.core.contractmanagement.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.paybill.Location; import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java index 85b6aec5..89379102 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.master; -import com.bullhornsdk.data.model.entity.core.contractmanagement.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; import com.bullhornsdk.data.model.entity.core.paybill.unit.UnitOfMeasure; @@ -25,6 +25,8 @@ public class BillableTransaction implements QueryEntity { private Integer id; + private BigDecimal amount; + private BillMaster billMasters; private BillableCharge billableCharge; @@ -63,6 +65,16 @@ public void setId(Integer id) { this.id = id; } + @JsonProperty("amount") + public BigDecimal getAmount() { + return amount; + } + + @JsonProperty("amount") + public void setAmount(BigDecimal amount) { + this.amount = amount; + } + @JsonProperty("billMasters") public BillMaster getBillMasters() { return billMasters; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java index 25995fb4..5ba45279 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.master; -import com.bullhornsdk.data.model.entity.core.contractmanagement.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; import com.bullhornsdk.data.model.entity.core.type.QueryEntity; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayableTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayableTransaction.java new file mode 100644 index 00000000..607c5ada --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayableTransaction.java @@ -0,0 +1,167 @@ +package com.bullhornsdk.data.model.entity.core.paybill.master; + +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; +import com.bullhornsdk.data.model.entity.core.paybill.unit.UnitOfMeasure; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "amount", "billingSyncBatch", "currencyUnit", "earnCode", "payMaster", "payableCharge", + "quantity", "rate", "transactionDate", "unitOfMeasure"}) +public class PayableTransaction implements QueryEntity { + + private Integer id; + + private BigDecimal amount; + + private BillingSyncBatch billingSyncBatch; + + private CurrencyUnit currencyUnit; + + private EarnCode earnCode; + + private PayMaster payMaster; + + private PayableCharge payableCharge; + + private BigDecimal quantity; + + private BigDecimal rate; + + private Date transactionDate; + + private UnitOfMeasure unitOfMeasure; + + public PayableTransaction() { + } + + public PayableTransaction(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("amount") + public BigDecimal getAmount() { + return amount; + } + + @JsonProperty("amount") + public void setAmount(BigDecimal amount) { + this.amount = amount; + } + + @JsonProperty("currencyUnit") + public CurrencyUnit getCurrencyUnit() { + return currencyUnit; + } + + @JsonProperty("currencyUnit") + public void setCurrencyUnit(CurrencyUnit currencyUnit) { + this.currencyUnit = currencyUnit; + } + + @JsonProperty("quantity") + public BigDecimal getQuantity() { + return quantity; + } + + @JsonProperty("quantity") + public void setQuantity(BigDecimal quantity) { + this.quantity = quantity; + } + + @JsonProperty("rate") + public BigDecimal getRate() { + return rate; + } + + @JsonProperty("rate") + public void setRate(BigDecimal rate) { + this.rate = rate; + } + + @JsonProperty("transactionDate") + public Date getTransactionDate() { + return transactionDate; + } + + @JsonProperty("recordingDate") + public void setTransactionDate(Date transactionDate) { + this.transactionDate = transactionDate; + } + + @JsonProperty("billingSyncBatch") + public BillingSyncBatch getBillingSyncBatch() { + return billingSyncBatch; + } + + @JsonProperty("billingSyncBatch") + public void setBillingSyncBatch(BillingSyncBatch billingSyncBatch) { + this.billingSyncBatch = billingSyncBatch; + } + + @JsonProperty("earnCode") + public EarnCode getEarnCode() { + return earnCode; + } + + @JsonProperty("earnCode") + public void setEarnCode(EarnCode earnCode) { + this.earnCode = earnCode; + } + + @JsonProperty("payMaster") + public PayMaster getPayMaster() { + return payMaster; + } + + @JsonProperty("payMaster") + public void setPayMaster(PayMaster payMaster) { + this.payMaster = payMaster; + } + + @JsonProperty("payableCharge") + public PayableCharge getPayableCharge() { + return payableCharge; + } + + @JsonProperty("payableCharge") + public void setPayableCharge(PayableCharge payableCharge) { + this.payableCharge = payableCharge; + } + + @JsonProperty("unitOfMeasure") + public UnitOfMeasure getUnitOfMeasure() { + return unitOfMeasure; + } + + @JsonProperty("unitOfMeasure") + public void setUnitOfMeasure(UnitOfMeasure unitOfMeasure) { + this.unitOfMeasure = unitOfMeasure; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java new file mode 100644 index 00000000..89f76471 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java @@ -0,0 +1,109 @@ +package com.bullhornsdk.data.model.entity.core.paybill.surcharge; + +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.*; +import org.joda.time.DateTime; + +import java.math.BigDecimal; + +/** + * Created by mkesmetzis 24-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "addedByUser", "dateAdded", "earnCode", "label", "surchargeType", "value"}) +public class Surcharge extends AbstractEntity implements QueryEntity { + + private Integer id; + private CorporateUser addedByUser; + private DateTime dateAdded; + private EarnCode earnCode; + @JsonIgnore + private String label; + private SurchargeType surchargeType; + private BigDecimal value; + + public Surcharge() { + } + + public Surcharge(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("addedByUser") + public CorporateUser getAddedByUser() { + return addedByUser; + } + + @JsonProperty("addedByUser") + public void setAddedByUser(CorporateUser addedByUser) { + this.addedByUser = addedByUser; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("earnCode") + public EarnCode getEarnCode() { + return earnCode; + } + + @JsonProperty("earnCode") + public void setEarnCode(EarnCode earnCode) { + this.earnCode = earnCode; + } + + @JsonProperty("label") + public String getLabel() { + return label; + } + + @JsonProperty("label") + public void setLabel(String label) { + this.label = label; + } + + @JsonProperty("surchargeType") + public SurchargeType getSurchargeType() { + return surchargeType; + } + + @JsonProperty("surchargeType") + public void setSurchargeType(SurchargeType surchargeType) { + this.surchargeType = surchargeType; + } + + @JsonProperty("value") + public BigDecimal getValue() { + return value; + } + + @JsonProperty("value") + public void setValue(BigDecimal value) { + this.value = value; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java new file mode 100644 index 00000000..5597c062 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java @@ -0,0 +1,51 @@ +package com.bullhornsdk.data.model.entity.core.paybill.surcharge; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "label"}) +public class SurchargeType extends AbstractEntity implements QueryEntity { + + private Integer id; + private String label; + + public SurchargeType() { + } + + public SurchargeType(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("label") + public String getLabel() { + return label; + } + + @JsonProperty("label") + public void setLabel(String label) { + this.label = label; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java new file mode 100644 index 00000000..e0cb4cd4 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java @@ -0,0 +1,133 @@ +package com.bullhornsdk.data.model.entity.core.paybill.tax; + +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.*; +import org.joda.time.DateTime; + +import java.math.BigDecimal; + +/** + * Created by mkesmetzis 24-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "addedByUser", "dateAdded", "earnCode", "jurisdictionName", "jurisdictionType", "label", "taxType", "value"}) +public class Tax extends AbstractEntity implements QueryEntity { + + private Integer id; + private CorporateUser addedByUser; + private DateTime dateAdded; + private EarnCode earnCode; + @JsonIgnore + private String label; + @JsonIgnore + private String jurisdictionName; + private SimplifiedOptionsLookup jurisdictionType; + private TaxType taxType; + private BigDecimal value; + + public Tax() { + } + + public Tax(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("addedByUser") + public CorporateUser getAddedByUser() { + return addedByUser; + } + + @JsonProperty("addedByUser") + public void setAddedByUser(CorporateUser addedByUser) { + this.addedByUser = addedByUser; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("earnCode") + public EarnCode getEarnCode() { + return earnCode; + } + + @JsonProperty("earnCode") + public void setEarnCode(EarnCode earnCode) { + this.earnCode = earnCode; + } + + @JsonProperty("label") + public String getLabel() { + return label; + } + + @JsonProperty("label") + public void setLabel(String label) { + this.label = label; + } + + @JsonProperty("jurisdictionName") + public String getJurisdictionName() { + return jurisdictionName; + } + + @JsonProperty("jurisdictionName") + public void setJurisdictionName(String jurisdictionName) { + this.jurisdictionName = jurisdictionName; + } + + @JsonProperty("jurisdictionType") + public SimplifiedOptionsLookup getJurisdictionType() { + return jurisdictionType; + } + + @JsonProperty("jurisdictionType") + public void setJurisdictionType(SimplifiedOptionsLookup jurisdictionType) { + this.jurisdictionType = jurisdictionType; + } + + @JsonProperty("taxType") + public TaxType getTaxType() { + return taxType; + } + + @JsonProperty("taxType") + public void setTaxType(TaxType taxType) { + this.taxType = taxType; + } + + @JsonProperty("value") + public BigDecimal getValue() { + return value; + } + + @JsonProperty("value") + public void setValue(BigDecimal value) { + this.value = value; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java new file mode 100644 index 00000000..075a4429 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java @@ -0,0 +1,51 @@ +package com.bullhornsdk.data.model.entity.core.paybill.tax; + +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "label"}) +public class TaxType extends AbstractEntity implements QueryEntity { + + private Integer id; + private String label; + + public TaxType() { + } + + public TaxType(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("label") + public String getLabel() { + return label; + } + + @JsonProperty("label") + public void setLabel(String label) { + this.label = label; + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/file/BillableChargeFileAttachment.java b/src/main/java/com/bullhornsdk/data/model/entity/file/BillableChargeFileAttachment.java index 33c9407f..c3b0ad1b 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/file/BillableChargeFileAttachment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/file/BillableChargeFileAttachment.java @@ -1,10 +1,13 @@ package com.bullhornsdk.data.model.entity.file; import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.util.ReadOnly; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; import java.util.Objects; @@ -39,9 +42,10 @@ "type", "usersSharedWith" }) -public class BillableChargeFileAttachment extends EntityFileAttachment { +public class BillableChargeFileAttachment extends EntityFileAttachment implements DateLastModifiedEntity { private BillableCharge billableCharge; + private DateTime dateLastModified; @JsonProperty("billableCharge") public BillableCharge getBillableCharge() { @@ -53,6 +57,17 @@ public void setBillableCharge(BillableCharge billableCharge) { this.billableCharge = billableCharge; } + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + @Override public boolean equals(Object o) { if (this == o) return true; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/file/InvoiceStatementExport.java b/src/main/java/com/bullhornsdk/data/model/entity/file/InvoiceStatementExport.java new file mode 100644 index 00000000..44dfba4e --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/file/InvoiceStatementExport.java @@ -0,0 +1,86 @@ +package com.bullhornsdk.data.model.entity.file; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatement; +import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +import java.util.Objects; + +/** + * Created by mkesmetzis 24-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({ + "id", + "invoiceStatement", + "contentSubType", + "contentType", + "dateAdded", + "departmentsSharedWith", + "description", + "directory", + "distribution", + "externalID", + "fileExtension", + "fileOwner", + "fileSize", + "fileType", + "isCopied", + "isDeleted", + "isEncrypted", + "isExternal", + "isOpen", + "isPrivate", + "isSendOut", + "name", + "type", + "usersSharedWith" +}) +public class InvoiceStatementExport extends EntityFileAttachment implements DateLastModifiedEntity { + + private InvoiceStatement invoiceStatement; + private DateTime dateLastModified; + + @JsonProperty("invoiceStatement") + public InvoiceStatement getInvoiceStatement() { + return invoiceStatement; + } + + @JsonProperty("invoiceStatement") + public void setInvoiceStatement(InvoiceStatement invoiceStatement) { + this.invoiceStatement = invoiceStatement; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + InvoiceStatementExport that = (InvoiceStatementExport) o; + return invoiceStatement.equals(that.invoiceStatement) && + dateLastModified.equals(that.dateLastModified); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), invoiceStatement, dateLastModified); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java index 1e6bea27..5d2b2a2e 100644 --- a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java +++ b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java @@ -13,9 +13,16 @@ import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile; import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; import com.bullhornsdk.data.model.entity.core.paybill.Location; -import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementMessageTemplate; -import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementTemplate; -import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceTerm; +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; +import com.bullhornsdk.data.model.entity.core.paybill.discount.Discount; +import com.bullhornsdk.data.model.entity.core.paybill.discount.DiscountType; +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.invoice.*; +import com.bullhornsdk.data.model.entity.core.paybill.master.*; +import com.bullhornsdk.data.model.entity.core.paybill.surcharge.Surcharge; +import com.bullhornsdk.data.model.entity.core.paybill.tax.Tax; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; import com.bullhornsdk.data.model.entity.core.standard.*; import com.bullhornsdk.data.model.entity.core.type.BullhornEntity; @@ -160,6 +167,36 @@ public enum BullhornEntityInfo { CURRENCY_UNIT("CurrencyUnit", CurrencyUnit.class, CurrencyUnityWrapper.class, CurrencyUnitListWrapper.class, null, null), INVOICE_TERM("InvoiceTerm", InvoiceTerm.class, InvoiceTermWrapper.class, InvoiceTermListWrapper.class, null, null), + // PayBill Entities v2 + BILLABLE_CHARGE("BillableCharge", BillableCharge.class, BillableChargeWrapper.class, BillableChargeListWrapper.class, null, null), + PAYABLE_CHARGE("PayableCharge", PayableCharge.class, PayableChargeWrapper.class, PayableChargeListWrapper.class, null, null), + GENERAL_LEDGER_SEGMENT("GeneralLedgerSegment", GeneralLedgerSegment.class, GeneralLedgerSegmentWrapper.class, GeneralLedgerSegmentListWrapper.class, null, null), + GENERAL_LEDGER_SEGMENT_1("GeneralLedgerSegment1", GeneralLedgerSegment1.class, GeneralLedgerSegment1Wrapper.class, GeneralLedgerSegment1ListWrapper.class, null, null), + GENERAL_LEDGER_SEGMENT_2("GeneralLedgerSegment2", GeneralLedgerSegment2.class, GeneralLedgerSegment2Wrapper.class, GeneralLedgerSegment2ListWrapper.class, null, null), + GENERAL_LEDGER_SEGMENT_3("GeneralLedgerSegment3", GeneralLedgerSegment3.class, GeneralLedgerSegment3Wrapper.class, GeneralLedgerSegment3ListWrapper.class, null, null), + GENERAL_LEDGER_SEGMENT_4("GeneralLedgerSegment4", GeneralLedgerSegment4.class, GeneralLedgerSegment4Wrapper.class, GeneralLedgerSegment4ListWrapper.class, null, null), + GENERAL_LEDGER_SEGMENT_5("GeneralLedgerSegment5", GeneralLedgerSegment5.class, GeneralLedgerSegment5Wrapper.class, GeneralLedgerSegment5ListWrapper.class, null, null), + GENERAL_LEDGER_SEGMENT_TYPE("GeneralLedgerSegmentType", GeneralLedgerSegmentType.class, GeneralLedgerSegmentTypeWrapper.class, GeneralLedgerSegmentTypeListWrapper.class, null, null), + GENERAL_LEDGER_SERVICE_CODE("GeneralLedgerServiceCode", GeneralLedgerServiceCode.class, GeneralLedgerServiceCodeWrapper.class, GeneralLedgerServiceCodeListWrapper.class, null, null), + DISCOUNT("Discount", Discount.class, DiscountWrapper.class, DiscountListWrapper.class, null, null), + DISCOUNT_TYPE("DiscountType", DiscountType.class, DiscountTypeWrapper.class, DiscountTypeListWrapper.class, null, null), + EARN_CODE("EarnCode", EarnCode.class, EarnCodeWrapper.class, EarnCodeListWrapper.class, null, null), + INVOICE_STATEMENT("InvoiceStatement", InvoiceStatement.class, InvoiceStatementWrapper.class, InvoiceStatementListWrapper.class, null, null), + INVOICE_STATEMENT_BATCH("InvoiceStatementBatch", InvoiceStatementBatch.class, InvoiceStatementBatchWrapper.class, InvoiceStatementBatchListWrapper.class, null, null), + INVOICE_STATEMENT_DISCOUNT("InvoiceStatementDiscount", InvoiceStatementDiscount.class, InvoiceStatementDiscountWrapper.class, InvoiceStatementDiscountListWrapper.class, null, null), + INVOICE_STATEMENT_EXPORT_BATCH("InvoiceStatementExportBatch", InvoiceStatementExportBatch.class, InvoiceStatementExportBatchWrapper.class, InvoiceStatementExportBatchListWrapper.class, null, null), + INVOICE_STATEMENT_LINE_ITEM("InvoiceStatementLineItem", InvoiceStatementLineItem.class, InvoiceStatementLineItemWrapper.class, InvoiceStatementLineItemListWrapper.class, null, null), + INVOICE_STATEMENT_SURCHARGE("InvoiceStatementSurcharge", InvoiceStatementSurcharge.class, InvoiceStatementSurchargeWrapper.class, InvoiceStatementSurchargeListWrapper.class, null, null), + INVOICE_STATEMENT_TAX("InvoiceStatementTax", InvoiceStatementTax.class, InvoiceStatementTaxWrapper.class, InvoiceStatementTaxListWrapper.class, null, null), + BATCH_GROUP("BatchGroup", BatchGroup.class, BatchGroupWrapper.class, BatchGroupListWrapper.class, null, null), + BILLING_SYNC_BATCH("BillingSyncBatch", BillingSyncBatch.class, BillingSyncBatchWrapper.class, BillingSyncBatchListWrapper.class, null, null), + BILL_MASTER("BillMaster", BillMaster.class, BillMasterWrapper.class, BillMasterListWrapper.class, null, null), + BILL_MASTER_TRANSACTION("BillMasterTransaction", BillMasterTransaction.class, BillMasterTransactionWrapper.class, BillMasterTransactionListWrapper.class, null, null), + PAY_MASTER("PayMaster", PayMaster.class, PayMasterWrapper.class, PayMasterListWrapper.class, null, null), + SURCHARGE("Surcharge", Surcharge.class, SurchargeWrapper.class, SurchargeListWrapper.class, null, null), + TAX("Tax", Tax.class, TaxWrapper.class, TaxListWrapper.class, null, null), + + // Custom Objects CLIENT_CORPORATION_CUSTOM_OBJECT("ClientCorporationCustomObject", ClientCorporationCustomObject.class, ClientCorporationCustomObjectWrapper.class, ClientCorporationCustomObjectListWrapper.class, null, null), JOB_ORDER_CUSTOM_OBJECT("JobOrderCustomObject", JobOrderCustomObject.class, JobOrderCustomObjectWrapper.class, JobOrderCustomObjectListWrapper.class, null, null), diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/BatchGroupListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/BatchGroupListWrapper.java new file mode 100644 index 00000000..f39e5151 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/BatchGroupListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.master.BatchGroup; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class BatchGroupListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterListWrapper.java new file mode 100644 index 00000000..68d64f74 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class BillMasterListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterTransactionListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterTransactionListWrapper.java new file mode 100644 index 00000000..cf1eef0f --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterTransactionListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class BillMasterTransactionListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/BillableChargeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/BillableChargeListWrapper.java new file mode 100644 index 00000000..5cbb1918 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/BillableChargeListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class BillableChargeListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/BillingSyncBatchListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/BillingSyncBatchListWrapper.java new file mode 100644 index 00000000..13ba2552 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/BillingSyncBatchListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.master.BillingSyncBatch; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class BillingSyncBatchListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/DiscountListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/DiscountListWrapper.java new file mode 100644 index 00000000..8c94189f --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/DiscountListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.discount.Discount; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class DiscountListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/DiscountTypeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/DiscountTypeListWrapper.java new file mode 100644 index 00000000..c7b52a71 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/DiscountTypeListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.discount.DiscountType; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class DiscountTypeListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/EarnCodeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/EarnCodeListWrapper.java new file mode 100644 index 00000000..25764cd6 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/EarnCodeListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class EarnCodeListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment1ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment1ListWrapper.java new file mode 100644 index 00000000..85a5ab19 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment1ListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment1; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class GeneralLedgerSegment1ListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment2ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment2ListWrapper.java new file mode 100644 index 00000000..ac2fb6c3 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment2ListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment2; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class GeneralLedgerSegment2ListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment3ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment3ListWrapper.java new file mode 100644 index 00000000..3daea37d --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment3ListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment3; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class GeneralLedgerSegment3ListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment4ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment4ListWrapper.java new file mode 100644 index 00000000..4fdd7fea --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment4ListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment4; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class GeneralLedgerSegment4ListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment5ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment5ListWrapper.java new file mode 100644 index 00000000..6c8089c6 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment5ListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment5; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class GeneralLedgerSegment5ListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentListWrapper.java new file mode 100644 index 00000000..44f32fd8 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class GeneralLedgerSegmentListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentTypeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentTypeListWrapper.java new file mode 100644 index 00000000..72dc1b87 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentTypeListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegmentType; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class GeneralLedgerSegmentTypeListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerServiceCodeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerServiceCodeListWrapper.java new file mode 100644 index 00000000..e377013b --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerServiceCodeListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerServiceCode; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class GeneralLedgerServiceCodeListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementBatchListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementBatchListWrapper.java new file mode 100644 index 00000000..4ac05838 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementBatchListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementBatch; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class InvoiceStatementBatchListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementDiscountListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementDiscountListWrapper.java new file mode 100644 index 00000000..7dc455b4 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementDiscountListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementDiscount; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class InvoiceStatementDiscountListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementExportBatchListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementExportBatchListWrapper.java new file mode 100644 index 00000000..55cb705f --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementExportBatchListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementExportBatch; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class InvoiceStatementExportBatchListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementLineItemListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementLineItemListWrapper.java new file mode 100644 index 00000000..13287ca0 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementLineItemListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementLineItem; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class InvoiceStatementLineItemListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementListWrapper.java new file mode 100644 index 00000000..4761bc0e --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatement; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class InvoiceStatementListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementSurchargeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementSurchargeListWrapper.java new file mode 100644 index 00000000..38e32e4e --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementSurchargeListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementSurcharge; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class InvoiceStatementSurchargeListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementTaxListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementTaxListWrapper.java new file mode 100644 index 00000000..3a0a0689 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementTaxListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementTax; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class InvoiceStatementTaxListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/PayMasterListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/PayMasterListWrapper.java new file mode 100644 index 00000000..7d6599ae --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/PayMasterListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class PayMasterListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/PayableChargeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/PayableChargeListWrapper.java new file mode 100644 index 00000000..18ba6022 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/PayableChargeListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class PayableChargeListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/SurchargeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/SurchargeListWrapper.java new file mode 100644 index 00000000..08d2c314 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/SurchargeListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.surcharge.Surcharge; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class SurchargeListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/TaxListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/TaxListWrapper.java new file mode 100644 index 00000000..0c132dab --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/TaxListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.tax.Tax; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class TaxListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/BatchGroupWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/BatchGroupWrapper.java new file mode 100644 index 00000000..48b6c19b --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/BatchGroupWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.master.BatchGroup; + +public class BatchGroupWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterTransactionWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterTransactionWrapper.java new file mode 100644 index 00000000..17ea5ed4 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterTransactionWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; + +public class BillMasterTransactionWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterWrapper.java new file mode 100644 index 00000000..76cecef3 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; + +public class BillMasterWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/BillableChargeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/BillableChargeWrapper.java new file mode 100644 index 00000000..b9344cb4 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/BillableChargeWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; + +public class BillableChargeWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/BillingSyncBatchWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/BillingSyncBatchWrapper.java new file mode 100644 index 00000000..d9da0b5c --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/BillingSyncBatchWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.master.BillingSyncBatch; + +public class BillingSyncBatchWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/DiscountTypeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/DiscountTypeWrapper.java new file mode 100644 index 00000000..761f7810 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/DiscountTypeWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.discount.DiscountType; + +public class DiscountTypeWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/DiscountWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/DiscountWrapper.java new file mode 100644 index 00000000..868dea66 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/DiscountWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.discount.Discount; + +public class DiscountWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/EarnCodeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/EarnCodeWrapper.java new file mode 100644 index 00000000..f633f8fc --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/EarnCodeWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; + +public class EarnCodeWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment1Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment1Wrapper.java new file mode 100644 index 00000000..6ef65987 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment1Wrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment1; + +public class GeneralLedgerSegment1Wrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment2Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment2Wrapper.java new file mode 100644 index 00000000..e3908555 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment2Wrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment2; + +public class GeneralLedgerSegment2Wrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment3Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment3Wrapper.java new file mode 100644 index 00000000..1f4da407 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment3Wrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment3; + +public class GeneralLedgerSegment3Wrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment4Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment4Wrapper.java new file mode 100644 index 00000000..8dc559c9 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment4Wrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment4; + +public class GeneralLedgerSegment4Wrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment5Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment5Wrapper.java new file mode 100644 index 00000000..3579171c --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment5Wrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment5; + +public class GeneralLedgerSegment5Wrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentTypeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentTypeWrapper.java new file mode 100644 index 00000000..7e157585 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentTypeWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegmentType; + +public class GeneralLedgerSegmentTypeWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentWrapper.java new file mode 100644 index 00000000..bf47ece5 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment; + +public class GeneralLedgerSegmentWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerServiceCodeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerServiceCodeWrapper.java new file mode 100644 index 00000000..f73bf529 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerServiceCodeWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerServiceCode; + +public class GeneralLedgerServiceCodeWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementBatchWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementBatchWrapper.java new file mode 100644 index 00000000..c4d1ebc9 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementBatchWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementBatch; + +public class InvoiceStatementBatchWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementDiscountWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementDiscountWrapper.java new file mode 100644 index 00000000..e6e17d5d --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementDiscountWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementDiscount; + +public class InvoiceStatementDiscountWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementExportBatchWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementExportBatchWrapper.java new file mode 100644 index 00000000..ef9156cc --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementExportBatchWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementExportBatch; + +public class InvoiceStatementExportBatchWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementLineItemWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementLineItemWrapper.java new file mode 100644 index 00000000..4b471568 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementLineItemWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementLineItem; + +public class InvoiceStatementLineItemWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementSurchargeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementSurchargeWrapper.java new file mode 100644 index 00000000..68e345ea --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementSurchargeWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementSurcharge; + +public class InvoiceStatementSurchargeWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementTaxWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementTaxWrapper.java new file mode 100644 index 00000000..43cf3b0e --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementTaxWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementTax; + +public class InvoiceStatementTaxWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementWrapper.java new file mode 100644 index 00000000..f9289946 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatement; + +public class InvoiceStatementWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/PayMasterWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/PayMasterWrapper.java new file mode 100644 index 00000000..81b2f134 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/PayMasterWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; + +public class PayMasterWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/PayableChargeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/PayableChargeWrapper.java new file mode 100644 index 00000000..9ab92cd8 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/PayableChargeWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; + +public class PayableChargeWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/SurchargeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/SurchargeWrapper.java new file mode 100644 index 00000000..e7319695 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/SurchargeWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.surcharge.Surcharge; + +public class SurchargeWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/TaxWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/TaxWrapper.java new file mode 100644 index 00000000..bc414803 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/TaxWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.tax.Tax; + +public class TaxWrapper extends StandardWrapper { + +} diff --git a/src/test/resources/testdata/rest/paybill/billableCharge-data.txt b/src/test/resources/testdata/rest/paybill/billableCharge-data.txt new file mode 100644 index 00000000..9eb21b1d --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/billableCharge-data.txt @@ -0,0 +1,78 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 2, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + } + ] +} From 0e97daed3684e4ee0933ac816d8ac96d4d78c6f7 Mon Sep 17 00:00:00 2001 From: mkesmetzis Date: Sun, 26 Apr 2020 20:12:29 +0100 Subject: [PATCH 3/7] more entities --- .../data/api/mock/MockDataLoader.groovy | 169 ++- .../paybill/BillableChargeAssociations.java | 61 - .../entity/core/paybill/CanvasReport.java | 214 +++ .../core/paybill/charge/BillableCharge.java | 148 +- .../core/paybill/charge/PayExportBatch.java | 177 +++ .../core/paybill/charge/PayableCharge.java | 73 +- .../chartofaccounts/GeneralLedgerSegment.java | 42 +- .../GeneralLedgerSegment1.java | 3 +- .../GeneralLedgerSegment2.java | 2 +- .../GeneralLedgerSegment3.java | 2 +- .../GeneralLedgerSegment4.java | 2 +- .../GeneralLedgerSegment5.java | 2 +- .../GeneralLedgerSegmentType.java | 30 + .../GeneralLedgerServiceCode.java | 33 + .../core/paybill/discount/Discount.java | 33 + .../core/paybill/discount/DiscountType.java | 25 + .../core/paybill/earncode/EarnCode.java | 60 + .../paybill/invoice/InvoiceStatement.java | 130 ++ .../invoice/InvoiceStatementBatch.java | 36 +- .../invoice/InvoiceStatementDiscount.java | 28 + .../invoice/InvoiceStatementExportBatch.java | 32 + .../invoice/InvoiceStatementLineItem.java | 53 +- .../InvoiceStatementLineItemGroupBy.java | 32 + .../invoice/InvoiceStatementSplitBy.java | 32 + .../invoice/InvoiceStatementSurcharge.java | 26 + .../paybill/invoice/InvoiceStatementTax.java | 27 + .../core/paybill/master/BatchGroup.java | 23 + .../core/paybill/master/BillMaster.java | 42 + .../core/paybill/master/BillingSyncBatch.java | 45 +- .../entity/core/paybill/master/PayMaster.java | 61 +- .../SimplifiedOptionsLookup.java | 26 + .../SpecializedOptionsLookup.java | 35 + .../optionslookup/WorkflowOptionsLookup.java | 27 + .../core/paybill/surcharge/Surcharge.java | 33 + .../core/paybill/surcharge/SurchargeType.java | 24 + .../model/entity/core/paybill/tax/Tax.java | 37 + .../entity/core/paybill/tax/TaxType.java | 24 + .../AbstractMasterTransaction.java | 51 +- .../AbstractTransaction.java} | 83 +- .../BillMasterTransaction.java | 36 +- .../BillableChargeInvoicedTransaction.java | 104 ++ .../BillableChargeSummaryTransaction.java | 92 ++ .../BillableChargeUnbillableTransaction.java | 76 + .../transaction/PayMasterTransaction.java | 94 ++ .../PayableChargeExportedTransaction.java | 107 ++ .../PayableTransaction.java | 52 +- .../transaction/TransactionOrigin.java | 23 + .../transaction/TransactionStatus.java | 26 + .../paybill/transaction/TransactionType.java | 23 + .../core/paybill/unit/UnitOfMeasure.java | 23 + .../data/model/enums/BullhornEntityInfo.java | 6 +- .../BillMasterTransactionListWrapper.java | 2 +- .../list/CanvasReportListWrapper.java | 11 + .../InvoiceStatementExportListWrapper.java | 11 + .../single/BillMasterTransactionWrapper.java | 2 +- .../response/single/CanvasReportWrapper.java | 7 + .../single/InvoiceStatementExportWrapper.java | 10 + .../billablechargefileattachment-data.txt | 1125 +++++--------- .../rest/file/invoicestatementexport-data.txt | 481 ++++++ .../meta/paybill/batchgroup-meta-data.txt | 43 + .../meta/paybill/billablecharge-meta-data.txt | 1118 ++++++++++++++ .../paybill/billingsyncbatch-meta-data.txt | 195 +++ .../meta/paybill/billmaster-meta-data.txt | 1099 ++++++++++++++ .../billmastertransaction-meta-data.txt | 393 +++++ .../meta/paybill/canvasreport-meta-data.txt | 192 +++ .../rest/meta/paybill/discount-meta-data.txt | 912 ++++++++++++ .../rest/meta/paybill/earncode-meta-data.txt | 793 ++++++++++ .../generalledgersegment-meta-data.txt | 95 ++ .../generalledgersegment1-meta-data.txt | 85 ++ .../generalledgersegment2-meta-data.txt | 85 ++ .../generalledgersegment3-meta-data.txt | 85 ++ .../generalledgersegment4-meta-data.txt | 85 ++ .../generalledgersegment5-meta-data.txt | 85 ++ .../generalledgersegmenttype-meta-data.txt | 39 + .../generalledgerservicecode-meta-data.txt | 73 + .../paybill/invoicestatement-meta-data.txt | 1313 +++++++++++++++++ .../invoicestatementbatch-meta-data.txt | 136 ++ .../invoicestatementdiscount-meta-data.txt | 65 + .../invoicestatementexportbatch-meta-data.txt | 114 ++ .../invoicestatementlineitem-meta-data.txt | 224 +++ .../invoicestatementsurcharge-meta-data.txt | 65 + .../paybill/invoicestatementtax-meta-data.txt | 73 + .../meta/paybill/payablecharge-meta-data.txt | 747 ++++++++++ .../rest/meta/paybill/paymaster-meta-data.txt | 898 +++++++++++ .../rest/meta/paybill/surcharge-meta-data.txt | 912 ++++++++++++ .../rest/meta/paybill/tax-meta-data.txt | 985 +++++++++++++ .../testdata/rest/paybill/batchgroup-data.txt | 30 + ...harge-data.txt => billablecharge-data.txt} | 0 .../rest/paybill/billingsyncbatch-data.txt | 87 ++ .../testdata/rest/paybill/billmaster-data.txt | 87 ++ .../paybill/billmastertransaction-data.txt | 52 + .../rest/paybill/canvasreport-data.txt | 465 ++++++ .../testdata/rest/paybill/discount-data.txt | 79 + .../testdata/rest/paybill/earncode-data.txt | 180 +++ .../paybill/generalledgersegment-data.txt | 226 +++ .../paybill/generalledgersegment1-data.txt | 226 +++ .../paybill/generalledgersegment2-data.txt | 226 +++ .../paybill/generalledgersegment3-data.txt | 226 +++ .../paybill/generalledgersegment4-data.txt | 226 +++ .../paybill/generalledgersegment5-data.txt | 226 +++ .../paybill/generalledgersegmenttype-data.txt | 36 + .../paybill/generalledgerservicecode-data.txt | 15 + .../rest/paybill/invoicestatement-data.txt | 278 ++++ .../paybill/invoicestatementbatch-data.txt | 27 + .../paybill/invoicestatementdiscount-data.txt | 16 + .../invoicestatementexportbatch-data.txt | 22 + .../paybill/invoicestatementlineitem-data.txt | 93 ++ .../invoicestatementsurcharge-data.txt | 16 + .../rest/paybill/invoicestatementtax-data.txt | 17 + .../rest/paybill/payablecharge-data.txt | 73 + .../testdata/rest/paybill/paymaster-data.txt | 79 + .../testdata/rest/paybill/surcharge-data.txt | 79 + .../testdata/rest/paybill/tax-data.txt | 84 ++ 113 files changed, 17388 insertions(+), 986 deletions(-) delete mode 100644 src/main/java/com/bullhornsdk/data/model/entity/association/paybill/BillableChargeAssociations.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/CanvasReport.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayExportBatch.java rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{master => transaction}/AbstractMasterTransaction.java (68%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{master/BillableTransaction.java => transaction/AbstractTransaction.java} (59%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{master => transaction}/BillMasterTransaction.java (68%) create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeInvoicedTransaction.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeSummaryTransaction.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeUnbillableTransaction.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayMasterTransaction.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayableChargeExportedTransaction.java rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{master => transaction}/PayableTransaction.java (66%) create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/CanvasReportListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementExportListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/CanvasReportWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementExportWrapper.java create mode 100644 src/test/resources/testdata/rest/file/invoicestatementexport-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/batchgroup-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/billablecharge-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/billingsyncbatch-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/billmaster-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/billmastertransaction-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/canvasreport-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/discount-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/earncode-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/generalledgersegment-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/generalledgersegment1-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/generalledgersegment2-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/generalledgersegment3-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/generalledgersegment4-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/generalledgersegment5-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/generalledgersegmenttype-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/generalledgerservicecode-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/invoicestatement-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/invoicestatementbatch-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/invoicestatementdiscount-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/invoicestatementexportbatch-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/invoicestatementlineitem-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/invoicestatementsurcharge-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/invoicestatementtax-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/payablecharge-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/paymaster-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/surcharge-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/paybill/tax-meta-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/batchgroup-data.txt rename src/test/resources/testdata/rest/paybill/{billableCharge-data.txt => billablecharge-data.txt} (100%) create mode 100644 src/test/resources/testdata/rest/paybill/billingsyncbatch-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/billmaster-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/billmastertransaction-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/canvasreport-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/discount-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/earncode-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/generalledgersegment-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/generalledgersegment1-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/generalledgersegment2-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/generalledgersegment3-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/generalledgersegment4-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/generalledgersegment5-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/generalledgersegmenttype-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/generalledgerservicecode-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/invoicestatement-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/invoicestatementbatch-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/invoicestatementdiscount-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/invoicestatementexportbatch-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/invoicestatementlineitem-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/invoicestatementsurcharge-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/invoicestatementtax-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/payablecharge-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/paymaster-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/surcharge-data.txt create mode 100644 src/test/resources/testdata/rest/paybill/tax-data.txt diff --git a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy index e376d9b7..961e0151 100644 --- a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy +++ b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy @@ -7,102 +7,36 @@ import com.bullhornsdk.data.model.entity.core.customobject.ClientCorporationCust import com.bullhornsdk.data.model.entity.core.customobject.JobOrderCustomObject import com.bullhornsdk.data.model.entity.core.customobject.PlacementCustomObject import com.bullhornsdk.data.model.entity.core.customobject.UserCustomObject -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance1 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance10 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance11 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance12 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance13 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance14 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance15 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance16 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance17 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance18 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance19 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance2 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance20 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance21 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance22 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance23 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance24 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance25 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance26 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance27 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance28 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance29 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance3 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance30 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance31 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance32 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance33 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance34 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance35 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance4 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance5 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance6 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance7 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance8 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance9 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance1 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance10 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance2 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance3 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance4 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance5 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance6 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance7 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance8 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.JobOrderCustomObjectInstance9 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance1 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance10 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance2 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance3 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance4 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance5 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance6 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance7 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance8 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.OpportunityCustomObjectInstance9 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance1 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance10 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance2 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance3 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance4 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance5 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance6 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance7 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance8 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.PersonCustomObjectInstance9 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance1 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance10 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance2 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance3 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance4 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance5 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance6 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance7 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance8 -import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.PlacementCustomObjectInstance9 +import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.* +import com.bullhornsdk.data.model.entity.core.customobjectinstances.joborder.* +import com.bullhornsdk.data.model.entity.core.customobjectinstances.opportunity.* +import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.* +import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.* import com.bullhornsdk.data.model.entity.core.edithistory.EditHistory import com.bullhornsdk.data.model.entity.core.edithistory.FieldChange import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile +import com.bullhornsdk.data.model.entity.core.paybill.CanvasReport import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount import com.bullhornsdk.data.model.entity.core.paybill.Location -import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementMessageTemplate -import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementTemplate -import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceTerm +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge +import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge +import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.* +import com.bullhornsdk.data.model.entity.core.paybill.discount.Discount +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode +import com.bullhornsdk.data.model.entity.core.paybill.invoice.* +import com.bullhornsdk.data.model.entity.core.paybill.master.BatchGroup +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster +import com.bullhornsdk.data.model.entity.core.paybill.master.BillingSyncBatch +import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster +import com.bullhornsdk.data.model.entity.core.paybill.surcharge.Surcharge +import com.bullhornsdk.data.model.entity.core.paybill.tax.Tax +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.standard.* import com.bullhornsdk.data.model.entity.core.type.BullhornEntity import com.bullhornsdk.data.model.entity.core.type.SearchEntity import com.bullhornsdk.data.model.entity.embedded.UserType -import com.bullhornsdk.data.model.entity.file.BillableChargeFileAttachment -import com.bullhornsdk.data.model.entity.file.CandidateFileAttachment -import com.bullhornsdk.data.model.entity.file.CertificationFileAttachment -import com.bullhornsdk.data.model.entity.file.ClientContactFileAttachment -import com.bullhornsdk.data.model.entity.file.ClientCorporationFileAttachment -import com.bullhornsdk.data.model.entity.file.JobOrderFileAttachment -import com.bullhornsdk.data.model.entity.file.OpportunityFileAttachment -import com.bullhornsdk.data.model.entity.file.PlacementFileAttachment +import com.bullhornsdk.data.model.entity.file.* import com.bullhornsdk.data.model.entity.meta.MetaData import com.bullhornsdk.data.model.entity.meta.StandardMetaData import com.bullhornsdk.data.model.enums.BullhornEntityInfo @@ -513,6 +447,36 @@ public class MockDataLoader { entityFiles.put(InvoiceStatementMessageTemplate.class, "paybill/invoiceStatementMessageTemplate-data.txt"); entityFiles.put(CurrencyUnit.class, "paybill/currencyUnit-data.txt"); + // TODO add v2 of PAY and Bill Entities data + entityFiles.put(BillableCharge.class, "paybill/billablecharge-data.txt"); + // entityFiles.put(PayableCharge.class, "paybill/payablecharge-data.txt"); + entityFiles.put(GeneralLedgerSegment.class, "paybill/generalledgersegment-data.txt"); + entityFiles.put(GeneralLedgerSegment1.class, "paybill/generalledgersegment1-data.txt"); + entityFiles.put(GeneralLedgerSegment2.class, "paybill/generalledgersegment2-data.txt"); + entityFiles.put(GeneralLedgerSegment3.class, "paybill/generalledgersegment3-data.txt"); + entityFiles.put(GeneralLedgerSegment4.class, "paybill/generalledgersegment4-data.txt"); + entityFiles.put(GeneralLedgerSegment5.class, "paybill/generalledgersegment5-data.txt"); + entityFiles.put(GeneralLedgerSegmentType.class, "paybill/generalledgersegmenttype-data.txt"); + entityFiles.put(GeneralLedgerServiceCode.class, "paybill/generalledgerservicecode-data.txt"); + entityFiles.put(Discount.class, "paybill/discount-data.txt"); + entityFiles.put(EarnCode.class, "paybill/earncode-data.txt"); + entityFiles.put(InvoiceStatement.class, "paybill/invoicestatement-data.txt"); + entityFiles.put(InvoiceStatementBatch.class, "paybill/invoicestatementbatch-data.txt"); + entityFiles.put(InvoiceStatementDiscount.class, "paybill/invoicestatementdiscount-data.txt"); + entityFiles.put(InvoiceStatementExportBatch.class, "paybill/invoicestatementexportbatch-data.txt"); + entityFiles.put(InvoiceStatementLineItem.class, "paybill/invoicestatementlineitem-data.txt"); + entityFiles.put(InvoiceStatementSurcharge.class, "paybill/invoicestatementsurcharge-data.txt"); + entityFiles.put(InvoiceStatementTax.class, "paybill/invoicestatementtax-data.txt"); + entityFiles.put(BatchGroup.class, "paybill/batchgroup-data.txt"); + entityFiles.put(BillingSyncBatch.class, "paybill/billingsyncbatch-data.txt"); + entityFiles.put(BillMaster.class, "paybill/billmaster-data.txt"); + entityFiles.put(BillMasterTransaction.class, "paybill/billmastertransaction-data.txt"); + entityFiles.put(PayMaster.class, "paybill/paymaster-data.txt"); + entityFiles.put(Surcharge.class, "paybill/surcharge-data.txt"); + entityFiles.put(Tax.class, "paybill/tax-data.txt"); + entityFiles.put(CanvasReport.class, "paybill/canvasreport-data.txt"); + + entityFiles.put(JobOrderCustomObjectInstance1.class, "customobjectinstances/jobordercustomobjectinstance1-data.txt"); entityFiles.put(JobOrderCustomObjectInstance2.class, "customobjectinstances/jobordercustomobjectinstance2-data.txt"); entityFiles.put(JobOrderCustomObjectInstance3.class, "customobjectinstances/jobordercustomobjectinstance3-data.txt"); @@ -597,6 +561,7 @@ public class MockDataLoader { entityFiles.put(OpportunityFileAttachment.class, "file/opportunityfileattachment-data.txt"); entityFiles.put(PlacementFileAttachment.class, "file/placementfileattachment-data.txt"); entityFiles.put(BillableChargeFileAttachment.class, "file/billablechargefileattachment-data.txt"); + entityFiles.put(InvoiceStatementExport.class, "file/invoicestatementexport-data.txt"); entityFiles.put(ClientCorporationCustomObject.class, "customobject/clientcorporationcustomobject-data.txt"); @@ -664,6 +629,38 @@ public class MockDataLoader { entityMetaFiles.put(Location.class, "meta/paybill/location-meta-data.txt"); entityMetaFiles.put(InvoiceTerm.class, "meta/paybill/invoiceterm-meta-data.txt"); + + // TODO v2 meta entities + entityMetaFiles.put(BillableCharge.class, "meta/paybill/billablecharge-meta-data.txt"); + entityMetaFiles.put(PayableCharge.class, "meta/paybill/payablecharge-meta-data.txt"); + entityMetaFiles.put(GeneralLedgerSegment.class, "meta/paybill/generalledgersegment-meta-data.txt"); + entityMetaFiles.put(GeneralLedgerSegment1.class, "meta/paybill/generalledgersegment1-meta-data.txt"); + entityMetaFiles.put(GeneralLedgerSegment2.class, "meta/paybill/generalledgersegment2-meta-data.txt"); + entityMetaFiles.put(GeneralLedgerSegment3.class, "meta/paybill/generalledgersegment3-meta-data.txt"); + entityMetaFiles.put(GeneralLedgerSegment4.class, "meta/paybill/generalledgersegment4-meta-data.txt"); + entityMetaFiles.put(GeneralLedgerSegment5.class, "meta/paybill/generalledgersegment5-meta-data.txt"); + entityMetaFiles.put(GeneralLedgerSegmentType.class, "meta/paybill/generalledgersegmenttype-meta-data.txt"); + entityMetaFiles.put(GeneralLedgerServiceCode.class, "meta/paybill/generalledgerservicecode-meta-data.txt"); + entityMetaFiles.put(Discount.class, "meta/paybill/discount-meta-data.txt"); + entityMetaFiles.put(EarnCode.class, "meta/paybill/earncode-meta-data.txt"); + entityMetaFiles.put(InvoiceStatement.class, "meta/paybill/invoicestatement-meta-data.txt"); + entityMetaFiles.put(InvoiceStatementBatch.class, "meta/paybill/invoicestatementbatch-meta-data.txt"); + entityMetaFiles.put(InvoiceStatementDiscount.class, "meta/paybill/invoicestatementdiscount-meta-data.txt"); + entityMetaFiles.put(InvoiceStatementExportBatch.class, "meta/paybill/invoicestatementexportbatch-meta-data.txt"); + entityMetaFiles.put(InvoiceStatementLineItem.class, "meta/paybill/invoicestatementlineitem-meta-data.txt"); + entityMetaFiles.put(InvoiceStatementSurcharge.class, "meta/paybill/invoicestatementsurcharge-meta-data.txt"); + entityMetaFiles.put(InvoiceStatementTax.class, "meta/paybill/invoicestatementtax-meta-data.txt"); + entityMetaFiles.put(BatchGroup.class, "meta/paybill/batchgroup-meta-data.txt"); + entityMetaFiles.put(BillingSyncBatch.class, "meta/paybill/billingsyncbatch-meta-data.txt"); + entityMetaFiles.put(BillMaster.class, "meta/paybill/billmaster-meta-data.txt"); + entityMetaFiles.put(BillMasterTransaction.class, "meta/paybill/billmastertransaction-meta-data.txt"); + entityMetaFiles.put(PayMaster.class, "meta/paybill/paymaster-meta-data.txt"); + entityMetaFiles.put(Surcharge.class, "meta/paybill/surcharge-meta-data.txt"); + entityMetaFiles.put(Tax.class, "meta/paybill/tax-meta-data.txt"); + entityMetaFiles.put(CanvasReport.class, "meta/paybill/canvasreport-meta-data.txt"); + + + entityMetaFiles.put(JobOrderCustomObjectInstance1.class, "meta/customobjectinstances/jobordercustomobjectinstance1-meta-data.txt"); entityMetaFiles.put(JobOrderCustomObjectInstance2.class, "meta/customobjectinstances/jobordercustomobjectinstance2-meta-data.txt"); entityMetaFiles.put(JobOrderCustomObjectInstance3.class, "meta/customobjectinstances/jobordercustomobjectinstance3-meta-data.txt"); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/association/paybill/BillableChargeAssociations.java b/src/main/java/com/bullhornsdk/data/model/entity/association/paybill/BillableChargeAssociations.java deleted file mode 100644 index 0f8d17fa..00000000 --- a/src/main/java/com/bullhornsdk/data/model/entity/association/paybill/BillableChargeAssociations.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.bullhornsdk.data.model.entity.association.paybill; - -import com.bullhornsdk.data.model.entity.association.AssociationField; -import com.bullhornsdk.data.model.entity.association.EntityAssociations; -import com.bullhornsdk.data.model.entity.association.standard.StandardAssociationField; -import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; -import com.bullhornsdk.data.model.entity.core.type.BullhornEntity; -import com.bullhornsdk.data.model.entity.file.BillableChargeFileAttachment; - -import java.util.ArrayList; -import java.util.List; - -/** - * Created by fayranne.lipton 4/10/2020 - */ -public class BillableChargeAssociations implements EntityAssociations { - - private List> allAssociations; - private final AssociationField fileAttachments = instantiateAssociationField("fileAttachments", BillableChargeFileAttachment.class); - - private static final BillableChargeAssociations INSTANCE = new BillableChargeAssociations(); - - private BillableChargeAssociations() { - super(); - } - - public static BillableChargeAssociations getInstance() { - return INSTANCE; - } - - public AssociationField fileAttachments() { - return fileAttachments; - } - - private AssociationField instantiateAssociationField(String associationName, Class associationType) { - return new StandardAssociationField(associationName, associationType); - } - - @Override - public List> allAssociations() { - if (allAssociations == null) { - allAssociations = new ArrayList>(); - allAssociations.add(fileAttachments()); - - } - return allAssociations; - } - - @Override - public AssociationField getAssociation(String associationName) { - for (AssociationField associationField : allAssociations()) { - if (associationName.equalsIgnoreCase(associationField.getAssociationFieldName())) { - return associationField; - } - } - - throw new IllegalArgumentException("There is no association on entity BillableCharge called: " + associationName); - } -} - - diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/CanvasReport.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/CanvasReport.java new file mode 100644 index 00000000..28d459ee --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/CanvasReport.java @@ -0,0 +1,214 @@ +package com.bullhornsdk.data.model.entity.core.paybill; + +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.standard.CorporationDepartment; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; +import java.util.Objects; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "dateAdded", "dateLastModified", "dateLastRun", "departments", "description", "isDeleted", + "name", "owner", "path", "users", "visibility"}) +public class CanvasReport extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity { + + private Integer id; + private DateTime dateAdded; + private DateTime dateLastModified; + private DateTime dateLastRun; + private CorporationDepartment departments; + @Size(max = 1000) + private String description; + private Boolean isDeleted; + @Size(max = 255) + private String name; + private CorporateUser owner; + private String path; + private OneToMany users; + @Size(max = 100) + private String visibility; + + public CanvasReport() { + } + + public CanvasReport(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("dateLastRun") + public DateTime getDateLastRun() { + return dateLastRun; + } + + @JsonProperty("dateLastRun") + public void setDateLastRun(DateTime dateLastRun) { + this.dateLastRun = dateLastRun; + } + + @JsonProperty("departments") + public CorporationDepartment getDepartments() { + return departments; + } + + @JsonProperty("departments") + public void setDepartments(CorporationDepartment departments) { + this.departments = departments; + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("path") + public String getPath() { + return path; + } + + @JsonProperty("path") + public void setPath(String path) { + this.path = path; + } + + @JsonProperty("users") + public OneToMany getUsers() { + return users; + } + + @JsonProperty("users") + public void setUsers(OneToMany users) { + this.users = users; + } + + @JsonProperty("visibility") + public String getVisibility() { + return visibility; + } + + @JsonProperty("visibility") + public void setVisibility(String visibility) { + this.visibility = visibility; + } + + @JsonProperty("isDeleted") + public Boolean getΙsDeleted() { + return isDeleted; + } + + @JsonProperty("isDeleted") + public void setΙsDeleted(Boolean isDeleted) { + this.isDeleted = isDeleted; + } + + @JsonProperty("dateLastModified") + public DateTime getDateLastModified() { + return dateLastModified; + } + + @ReadOnly + @JsonProperty("dateLastModified") + public void setDateLastModified(DateTime dateLastModified) { + this.dateLastModified = dateLastModified; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @Override + public String toString() { + return "CanvasReport{" + + "id=" + id + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", dateLastRun=" + dateLastRun + + ", departments=" + departments + + ", description='" + description + '\'' + + ", isDeleted=" + isDeleted + + ", name='" + name + '\'' + + ", owner=" + owner + + ", path='" + path + '\'' + + ", users=" + users + + ", visibility='" + visibility + '\'' + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CanvasReport that = (CanvasReport) o; + return Objects.equals(id, that.id) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(dateLastRun, that.dateLastRun) && + Objects.equals(departments, that.departments) && + Objects.equals(description, that.description) && + Objects.equals(isDeleted, that.isDeleted) && + Objects.equals(name, that.name) && + Objects.equals(owner, that.owner) && + Objects.equals(path, that.path) && + Objects.equals(users, that.users) && + Objects.equals(visibility, that.visibility); + } + + @Override + public int hashCode() { + return Objects.hash(id, dateAdded, dateLastModified, dateLastRun, departments, description, isDeleted, name, owner, path, users, visibility); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java index 1d4f7325..4d145e14 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java @@ -4,10 +4,8 @@ import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceTerm; import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; -import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; -import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionStatus; -import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionType; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.*; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; import com.bullhornsdk.data.model.entity.core.standard.*; import com.bullhornsdk.data.model.entity.core.type.*; @@ -18,20 +16,20 @@ import org.joda.time.DateTime; import java.math.BigDecimal; +import java.util.Objects; /** * Created by mkesmetzis 21-Apr-20 */ - @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") @JsonPropertyOrder({"id", "addedByUser", "billMasters", "billableTransactions", "billingClientContact", "billingClientCorporation", "billingCorporateUser", "billingFrequency", "billingProfile", "billingSchedule", "candidate", "clientCorporation", "currencyUnit", "dateAdded", "dateLastModified", "description", "fileAttachments", "generalLedgerSegment1", "generalLedgerSegment2", "generalLedgerSegment3", "generalLedgerSegment4", "generalLedgerSegment5", - "generalLedgerServiceCode", "invoiceTerm", "isInvoiced", "jobOrder", "periodEndDate", "placement", - "readyToBillOverride", "status", "subTotal", "transactionStatus", "transactionType"}) -public class BillableCharge implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, AssociationEntity { + "generalLedgerServiceCode", "invoiceTerm", "isInvoiced", "invoicedTransactions", "jobOrder", "periodEndDate", "placement", + "readyToBillOverride", "status", "subtotal", "summaryTransactions", "transactionStatus", "transactionType", "unbillableTransactions"}) +public class BillableCharge implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, AssociationEntity { private Integer id; @@ -82,7 +80,9 @@ public class BillableCharge implements QueryEntity, UpdateEntity, CreateEntity, private InvoiceTerm invoiceTerm; - private Boolean isInvoiced; //TODO nullable = false, insertable = false, updatable = false + private Boolean isInvoiced; + + private BillableChargeInvoicedTransaction invoicedTransactions; private JobOrder jobOrder; @@ -94,12 +94,16 @@ public class BillableCharge implements QueryEntity, UpdateEntity, CreateEntity, private SpecializedOptionsLookup status; // BillableChargeStatusLookup + @JsonIgnore private BigDecimal subTotal; - private TransactionStatus transactionStatus; //TODO + private BillableChargeSummaryTransaction summaryTransactions; + + private TransactionStatus transactionStatus; - private TransactionType transactionType; //TODO + private TransactionType transactionType; + private BillableChargeUnbillableTransaction unbillableTransactions; public BillableCharge() { } @@ -363,6 +367,16 @@ public void setInvoiced(Boolean invoiced) { isInvoiced = invoiced; } + @JsonProperty("invoicedTransactions") + public BillableChargeInvoicedTransaction getInvoicedTransactions() { + return invoicedTransactions; + } + + @JsonProperty("invoicedTransactions") + public void setInvoicedTransactions(BillableChargeInvoicedTransaction invoicedTransactions) { + this.invoicedTransactions = invoicedTransactions; + } + @JsonProperty("jobOrder") public JobOrder getJobOrder() { return jobOrder; @@ -413,16 +427,26 @@ public void setStatus(SpecializedOptionsLookup status) { this.status = status; } - @JsonProperty("subTotal") + @JsonProperty("subtotal") public BigDecimal getSubTotal() { return subTotal; } - @JsonProperty("subTotal") + @JsonProperty("subtotal") public void setSubTotal(BigDecimal subTotal) { this.subTotal = subTotal; } + @JsonProperty("summaryTransactions") + public BillableChargeSummaryTransaction getSummaryTransactions() { + return summaryTransactions; + } + + @JsonProperty("summaryTransactions") + public void setSummaryTransactions(BillableChargeSummaryTransaction summaryTransactions) { + this.summaryTransactions = summaryTransactions; + } + @JsonProperty("transactionStatus") public TransactionStatus getTransactionStatus() { return transactionStatus; @@ -443,4 +467,104 @@ public void setTransactionType(TransactionType transactionType) { this.transactionType = transactionType; } + @JsonProperty("unbillableTransactions") + public BillableChargeUnbillableTransaction getUnbillableTransactions() { + return unbillableTransactions; + } + + @JsonProperty("unbillableTransactions") + public void setUnbillableTransactions(BillableChargeUnbillableTransaction unbillableTransactions) { + this.unbillableTransactions = unbillableTransactions; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + BillableCharge that = (BillableCharge) o; + return Objects.equals(id, that.id) && + Objects.equals(addedByUser, that.addedByUser) && + Objects.equals(billMasters, that.billMasters) && + Objects.equals(billableTransactions, that.billableTransactions) && + Objects.equals(billingClientContact, that.billingClientContact) && + Objects.equals(billingClientCorporation, that.billingClientCorporation) && + Objects.equals(billingCorporateUser, that.billingCorporateUser) && + Objects.equals(billingFrequency, that.billingFrequency) && + Objects.equals(billingProfile, that.billingProfile) && + Objects.equals(billingSchedule, that.billingSchedule) && + Objects.equals(candidate, that.candidate) && + Objects.equals(clientCorporation, that.clientCorporation) && + Objects.equals(currencyUnit, that.currencyUnit) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(description, that.description) && + Objects.equals(fileAttachments, that.fileAttachments) && + Objects.equals(generalLedgerSegment1, that.generalLedgerSegment1) && + Objects.equals(generalLedgerSegment2, that.generalLedgerSegment2) && + Objects.equals(generalLedgerSegment3, that.generalLedgerSegment3) && + Objects.equals(generalLedgerSegment4, that.generalLedgerSegment4) && + Objects.equals(generalLedgerSegment5, that.generalLedgerSegment5) && + Objects.equals(generalLedgerServiceCode, that.generalLedgerServiceCode) && + Objects.equals(invoiceTerm, that.invoiceTerm) && + Objects.equals(isInvoiced, that.isInvoiced) && + Objects.equals(invoicedTransactions, that.invoicedTransactions) && + Objects.equals(jobOrder, that.jobOrder) && + Objects.equals(periodEndDate, that.periodEndDate) && + Objects.equals(placement, that.placement) && + Objects.equals(readyToBillOverride, that.readyToBillOverride) && + Objects.equals(status, that.status) && + Objects.equals(subTotal, that.subTotal) && + Objects.equals(summaryTransactions, that.summaryTransactions) && + Objects.equals(transactionStatus, that.transactionStatus) && + Objects.equals(transactionType, that.transactionType) && + Objects.equals(unbillableTransactions, that.unbillableTransactions); + } + + @Override + public int hashCode() { + return Objects.hash(id, addedByUser, billMasters, billableTransactions, billingClientContact, billingClientCorporation, billingCorporateUser, billingFrequency, billingProfile, billingSchedule, candidate, clientCorporation, currencyUnit, dateAdded, dateLastModified, description, fileAttachments, generalLedgerSegment1, generalLedgerSegment2, generalLedgerSegment3, generalLedgerSegment4, generalLedgerSegment5, generalLedgerServiceCode, invoiceTerm, isInvoiced, invoicedTransactions, jobOrder, periodEndDate, placement, readyToBillOverride, status, subTotal, summaryTransactions, transactionStatus, transactionType, unbillableTransactions); + } + + @Override + public String toString() { + return "BillableCharge{" + + "id=" + id + + ", addedByUser=" + addedByUser + + ", billMasters=" + billMasters + + ", billableTransactions=" + billableTransactions + + ", billingClientContact=" + billingClientContact + + ", billingClientCorporation=" + billingClientCorporation + + ", billingCorporateUser=" + billingCorporateUser + + ", billingFrequency='" + billingFrequency + '\'' + + ", billingProfile=" + billingProfile + + ", billingSchedule=" + billingSchedule + + ", candidate=" + candidate + + ", clientCorporation=" + clientCorporation + + ", currencyUnit=" + currencyUnit + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", description='" + description + '\'' + + ", fileAttachments=" + fileAttachments + + ", generalLedgerSegment1=" + generalLedgerSegment1 + + ", generalLedgerSegment2=" + generalLedgerSegment2 + + ", generalLedgerSegment3=" + generalLedgerSegment3 + + ", generalLedgerSegment4=" + generalLedgerSegment4 + + ", generalLedgerSegment5=" + generalLedgerSegment5 + + ", generalLedgerServiceCode=" + generalLedgerServiceCode + + ", invoiceTerm=" + invoiceTerm + + ", isInvoiced=" + isInvoiced + + ", invoicedTransactions=" + invoicedTransactions + + ", jobOrder=" + jobOrder + + ", periodEndDate=" + periodEndDate + + ", placement=" + placement + + ", readyToBillOverride=" + readyToBillOverride + + ", status=" + status + + ", subTotal=" + subTotal + + ", summaryTransactions=" + summaryTransactions + + ", transactionStatus=" + transactionStatus + + ", transactionType=" + transactionType + + ", unbillableTransactions=" + unbillableTransactions + + '}'; + } + } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayExportBatch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayExportBatch.java new file mode 100644 index 00000000..fa2799e9 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayExportBatch.java @@ -0,0 +1,177 @@ +package com.bullhornsdk.data.model.entity.core.paybill.charge; + +import com.bullhornsdk.data.model.entity.core.paybill.CanvasReport; +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.PayMasterTransaction; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; +import com.bullhornsdk.data.model.entity.core.type.CreateEntity; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.util.ReadOnly; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; +import org.joda.time.DateTime; + +import java.util.Objects; + +/** + * Created by mkesmetzis 23-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "batchStatusLookup", "canvasReport", "dateAdded", "payExportTypeLookup", "payMasterTransactions", + "payableCharges", "payrollExportTargetLookup", "user"}) +public class PayExportBatch extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity { + + private Integer id; + private SimplifiedOptionsLookup batchStatusLookup; + private OneToMany canvasReport; + private DateTime dateAdded; + private SimplifiedOptionsLookup payExportTypeLookup; + private PayMasterTransaction payMasterTransactions; + private PayableCharge payableCharges; + private SimplifiedOptionsLookup payrollExportTargetLookup; + private CorporateUser user; + + public PayExportBatch() { + } + + public PayExportBatch(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("batchStatusLookup") + public SimplifiedOptionsLookup getBatchStatusLookup() { + return batchStatusLookup; + } + + @JsonProperty("batchStatusLookup") + public void setBatchStatusLookup(SimplifiedOptionsLookup batchStatusLookup) { + this.batchStatusLookup = batchStatusLookup; + } + + @JsonProperty("canvasReport") + public OneToMany getCanvasReport() { + return canvasReport; + } + + @JsonProperty("canvasReport") + public void setCanvasReport(OneToMany canvasReport) { + this.canvasReport = canvasReport; + } + + @JsonProperty("payExportTypeLookup") + public SimplifiedOptionsLookup getPayExportTypeLookup() { + return payExportTypeLookup; + } + + @JsonProperty("payExportTypeLookup") + public void setPayExportTypeLookup(SimplifiedOptionsLookup payExportTypeLookup) { + this.payExportTypeLookup = payExportTypeLookup; + } + + @JsonProperty("payMasterTransactions") + public PayMasterTransaction getPayMasterTransactions() { + return payMasterTransactions; + } + + @JsonProperty("payMasterTransactions") + public void setPayMasterTransactions(PayMasterTransaction payMasterTransactions) { + this.payMasterTransactions = payMasterTransactions; + } + + @JsonProperty("payableCharges") + public PayableCharge getPayableCharges() { + return payableCharges; + } + + @JsonProperty("payableCharges") + public void setPayableCharges(PayableCharge payableCharges) { + this.payableCharges = payableCharges; + } + + @JsonProperty("payrollExportTargetLookup") + public SimplifiedOptionsLookup getPayrollExportTargetLookup() { + return payrollExportTargetLookup; + } + + @JsonProperty("payrollExportTargetLookup") + public void setPayrollExportTargetLookup(SimplifiedOptionsLookup payrollExportTargetLookup) { + this.payrollExportTargetLookup = payrollExportTargetLookup; + } + + @JsonProperty("user") + public CorporateUser getUser() { + return user; + } + + @Override + public String toString() { + return "PayExportBatch{" + + "id=" + id + + ", batchStatusLookup=" + batchStatusLookup + + ", canvasReport=" + canvasReport + + ", dateAdded=" + dateAdded + + ", payExportTypeLookup=" + payExportTypeLookup + + ", payMasterTransactions=" + payMasterTransactions + + ", payableCharges=" + payableCharges + + ", payrollExportTargetLookup=" + payrollExportTargetLookup + + ", user=" + user + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + PayExportBatch that = (PayExportBatch) o; + return Objects.equals(id, that.id) && + Objects.equals(batchStatusLookup, that.batchStatusLookup) && + Objects.equals(canvasReport, that.canvasReport) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(payExportTypeLookup, that.payExportTypeLookup) && + Objects.equals(payMasterTransactions, that.payMasterTransactions) && + Objects.equals(payableCharges, that.payableCharges) && + Objects.equals(payrollExportTargetLookup, that.payrollExportTargetLookup) && + Objects.equals(user, that.user); + } + + @Override + public int hashCode() { + return Objects.hash(id, batchStatusLookup, canvasReport, dateAdded, payExportTypeLookup, payMasterTransactions, payableCharges, payrollExportTargetLookup, user); + } + + @JsonProperty("user") + public void setUser(CorporateUser user) { + this.user = user; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java index 01fb3fed..eb7fd72d 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java @@ -2,7 +2,7 @@ import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; -import com.bullhornsdk.data.model.entity.core.paybill.master.PayableTransaction; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.PayableTransaction; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionStatus; import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionType; @@ -16,6 +16,7 @@ import javax.validation.constraints.Size; import java.math.BigDecimal; +import java.util.Objects; /** * Created by mkesmetzis 21-Apr-20 @@ -353,4 +354,74 @@ public void setTransactionType(TransactionType transactionType) { this.transactionType = transactionType; } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + PayableCharge that = (PayableCharge) o; + return Objects.equals(id, that.id) && + Objects.equals(addedByUser, that.addedByUser) && + Objects.equals(canExport, that.canExport) && + Objects.equals(candidate, that.candidate) && + Objects.equals(clientCorporation, that.clientCorporation) && + Objects.equals(currencyUnit, that.currencyUnit) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(description, that.description) && + Objects.equals(employeeType, that.employeeType) && + Objects.equals(generalLedgerSegment1, that.generalLedgerSegment1) && + Objects.equals(generalLedgerSegment2, that.generalLedgerSegment2) && + Objects.equals(generalLedgerSegment3, that.generalLedgerSegment3) && + Objects.equals(generalLedgerSegment4, that.generalLedgerSegment4) && + Objects.equals(generalLedgerSegment5, that.generalLedgerSegment5) && + Objects.equals(generalLedgerServiceCode, that.generalLedgerServiceCode) && + Objects.equals(jobOrder, that.jobOrder) && + Objects.equals(payMasters, that.payMasters) && + Objects.equals(payableTransactions, that.payableTransactions) && + Objects.equals(periodEndDate, that.periodEndDate) && + Objects.equals(placement, that.placement) && + Objects.equals(readyToBillOverride, that.readyToBillOverride) && + Objects.equals(status, that.status) && + Objects.equals(subTotal, that.subTotal) && + Objects.equals(transactionStatus, that.transactionStatus) && + Objects.equals(transactionType, that.transactionType); + } + + @Override + public int hashCode() { + return Objects.hash(id, addedByUser, canExport, candidate, clientCorporation, currencyUnit, dateAdded, dateLastModified, description, employeeType, generalLedgerSegment1, generalLedgerSegment2, generalLedgerSegment3, generalLedgerSegment4, generalLedgerSegment5, generalLedgerServiceCode, jobOrder, payMasters, payableTransactions, periodEndDate, placement, readyToBillOverride, status, subTotal, transactionStatus, transactionType); + } + + @Override + public String toString() { + return "PayableCharge{" + + "id=" + id + + ", addedByUser=" + addedByUser + + ", canExport=" + canExport + + ", candidate=" + candidate + + ", clientCorporation=" + clientCorporation + + ", currencyUnit=" + currencyUnit + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", description='" + description + '\'' + + ", employeeType='" + employeeType + '\'' + + ", generalLedgerSegment1=" + generalLedgerSegment1 + + ", generalLedgerSegment2=" + generalLedgerSegment2 + + ", generalLedgerSegment3=" + generalLedgerSegment3 + + ", generalLedgerSegment4=" + generalLedgerSegment4 + + ", generalLedgerSegment5=" + generalLedgerSegment5 + + ", generalLedgerServiceCode=" + generalLedgerServiceCode + + ", jobOrder=" + jobOrder + + ", payMasters=" + payMasters + + ", payableTransactions=" + payableTransactions + + ", periodEndDate='" + periodEndDate + '\'' + + ", placement=" + placement + + ", readyToBillOverride=" + readyToBillOverride + + ", status=" + status + + ", subTotal=" + subTotal + + ", transactionStatus=" + transactionStatus + + ", transactionType=" + transactionType + + '}'; + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java index b63018a0..5cc41c28 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java @@ -2,16 +2,19 @@ import com.bullhornsdk.data.model.entity.core.type.*; import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.*; import org.joda.time.DateTime; import javax.validation.constraints.Size; +import java.util.Objects; /** * Created by mkesmetzis 21-Apr-20 */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "dateAdded", "dateLastModified", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted"}) public class GeneralLedgerSegment implements QueryEntity, UpdateEntity, SoftDeleteEntity, CreateEntity, EditHistoryEntity, DateLastModifiedEntity { private Integer id; @@ -22,7 +25,7 @@ public class GeneralLedgerSegment implements QueryEntity, UpdateEntity, SoftDele @Size(max = 100) private String externalSegmentNumber; - private GeneralLedgerSegmentType generalLedgerSegmentType; //TODO + private GeneralLedgerSegmentType generalLedgerSegmentType; private Boolean isActive; @@ -123,4 +126,37 @@ public void setDateLastModified(DateTime dateLastModified) { this.dateLastModified = dateLastModified; } + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GeneralLedgerSegment that = (GeneralLedgerSegment) o; + return Objects.equals(id, that.id) && + Objects.equals(externalSegmentName, that.externalSegmentName) && + Objects.equals(externalSegmentNumber, that.externalSegmentNumber) && + Objects.equals(generalLedgerSegmentType, that.generalLedgerSegmentType) && + Objects.equals(isActive, that.isActive) && + Objects.equals(isDeleted, that.isDeleted) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified); + } + + @Override + public int hashCode() { + return Objects.hash(id, externalSegmentName, externalSegmentNumber, generalLedgerSegmentType, isActive, isDeleted, dateAdded, dateLastModified); + } + + @Override + public String toString() { + return "GeneralLedgerSegment{" + + "id=" + id + + ", externalSegmentName='" + externalSegmentName + '\'' + + ", externalSegmentNumber='" + externalSegmentNumber + '\'' + + ", generalLedgerSegmentType=" + generalLedgerSegmentType + + ", isActive=" + isActive + + ", isDeleted=" + isDeleted + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + '}'; + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java index 90a00ebe..95d21631 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java @@ -10,11 +10,12 @@ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") -@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +@JsonPropertyOrder({"id", "dateAdded", "dateLastModified", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted"}) public class GeneralLedgerSegment1 extends GeneralLedgerSegment { public GeneralLedgerSegment1() { super(); this.setGeneralLedgerSegmentType(new GeneralLedgerSegmentType(1)); } + } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java index 7d5ea35b..543f0b05 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java @@ -10,7 +10,7 @@ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") -@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +@JsonPropertyOrder({"id", "dateAdded", "dateLastModified", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted"}) public class GeneralLedgerSegment2 extends GeneralLedgerSegment { public GeneralLedgerSegment2() { diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java index 66415d74..a4630865 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java @@ -10,7 +10,7 @@ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") -@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +@JsonPropertyOrder({"id", "dateAdded", "dateLastModified", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted"}) public class GeneralLedgerSegment3 extends GeneralLedgerSegment { public GeneralLedgerSegment3() { diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java index c2a15eec..05db2a4c 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java @@ -10,7 +10,7 @@ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") -@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +@JsonPropertyOrder({"id", "dateAdded", "dateLastModified", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted"}) public class GeneralLedgerSegment4 extends GeneralLedgerSegment { public GeneralLedgerSegment4() { super(); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java index c4f3da65..b22d82b5 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java @@ -10,7 +10,7 @@ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") -@JsonPropertyOrder({"id", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted", "dateAdded", "dateLastModified"}) +@JsonPropertyOrder({"id", "dateAdded", "dateLastModified", "externalSegmentName", "externalSegmentNumber", "generalLedgerSegmentType", "isActive", "isDeleted"}) public class GeneralLedgerSegment5 extends GeneralLedgerSegment { public GeneralLedgerSegment5() { super(); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java index 0c18a3e3..79854594 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java @@ -6,6 +6,7 @@ import com.fasterxml.jackson.annotation.*; import javax.validation.constraints.Size; +import java.util.Objects; /** * Created by mkesmetzis 21-Apr-20 @@ -31,6 +32,9 @@ public GeneralLedgerSegmentType(Integer id) { this.id = id; } + public GeneralLedgerSegmentType() { + } + @Override @JsonProperty("id") public Integer getId() { @@ -73,4 +77,30 @@ public String getSegmentType() { public void setSegmentType(String segmentType) { this.segmentType = segmentType; } + + @Override + public String toString() { + return "GeneralLedgerSegmentType{" + + "id=" + id + + ", description='" + description + '\'' + + ", isEnabled=" + isEnabled + + ", segmentType='" + segmentType + '\'' + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GeneralLedgerSegmentType that = (GeneralLedgerSegmentType) o; + return Objects.equals(id, that.id) && + Objects.equals(description, that.description) && + Objects.equals(isEnabled, that.isEnabled) && + Objects.equals(segmentType, that.segmentType); + } + + @Override + public int hashCode() { + return Objects.hash(id, description, isEnabled, segmentType); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java index 81cced62..e69ce6e8 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java @@ -8,6 +8,7 @@ import org.joda.time.DateTime; import javax.validation.constraints.Size; +import java.util.Objects; /** * Created by mkesmetzis 22-Apr-20 @@ -112,4 +113,36 @@ public DateTime getDateLastModified() { public void setDateLastModified(DateTime dateLastModified) { this.dateLastModified = dateLastModified; } + + @Override + public String toString() { + return "GeneralLedgerServiceCode{" + + "id=" + id + + ", externalServiceCodeNumber=" + externalServiceCodeNumber + + ", externalServiceCodeName='" + externalServiceCodeName + '\'' + + ", isActive=" + isActive + + ", isDeleted=" + isDeleted + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + GeneralLedgerServiceCode that = (GeneralLedgerServiceCode) o; + return Objects.equals(id, that.id) && + Objects.equals(externalServiceCodeNumber, that.externalServiceCodeNumber) && + Objects.equals(externalServiceCodeName, that.externalServiceCodeName) && + Objects.equals(isActive, that.isActive) && + Objects.equals(isDeleted, that.isDeleted) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified); + } + + @Override + public int hashCode() { + return Objects.hash(id, externalServiceCodeNumber, externalServiceCodeName, isActive, isDeleted, dateAdded, dateLastModified); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java index 75109955..e8e89105 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java @@ -12,6 +12,7 @@ import javax.validation.constraints.Size; import java.math.BigDecimal; +import java.util.Objects; /** * Created by mkesmetzis 23-Apr-20 @@ -109,4 +110,36 @@ public CorporateUser getAddedByUser() { public void setAddedByUser(CorporateUser addedByUser) { this.addedByUser = addedByUser; } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Discount discount = (Discount) o; + return Objects.equals(id, discount.id) && + Objects.equals(discountType, discount.discountType) && + Objects.equals(earnCode, discount.earnCode) && + Objects.equals(label, discount.label) && + Objects.equals(value, discount.value) && + Objects.equals(dateAdded, discount.dateAdded) && + Objects.equals(addedByUser, discount.addedByUser); + } + + @Override + public int hashCode() { + return Objects.hash(id, discountType, earnCode, label, value, dateAdded, addedByUser); + } + + @Override + public String toString() { + return "Discount{" + + "id=" + id + + ", discountType=" + discountType + + ", earnCode=" + earnCode + + ", label='" + label + '\'' + + ", value=" + value + + ", dateAdded=" + dateAdded + + ", addedByUser=" + addedByUser + + '}'; + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java index 149c0b57..23067759 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java @@ -8,6 +8,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 23-Apr-20 */ @@ -48,4 +50,27 @@ public String getLabel() { public void setLabel(String label) { this.label = label; } + + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + DiscountType that = (DiscountType) o; + return Objects.equals(id, that.id) && + Objects.equals(label, that.label); + } + + @Override + public int hashCode() { + return Objects.hash(id, label); + } + + @Override + public String toString() { + return "DiscountType{" + + "id=" + id + + ", label='" + label + '\'' + + '}'; + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java index 4b0274ab..6e03c1a3 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java @@ -11,6 +11,7 @@ import org.joda.time.DateTime; import javax.validation.constraints.Size; +import java.util.Objects; /** * Created by mkesmetzis 23-Apr-20 @@ -254,4 +255,63 @@ public GeneralLedgerAccount getGeneralLedgerPayAccount() { public void setGeneralLedgerPayAccount(GeneralLedgerAccount generalLedgerPayAccount) { this.generalLedgerPayAccount = generalLedgerPayAccount; } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + EarnCode earnCode = (EarnCode) o; + return Objects.equals(id, earnCode.id) && + Objects.equals(dateAdded, earnCode.dateAdded) && + Objects.equals(dateLastModified, earnCode.dateLastModified) && + Objects.equals(description, earnCode.description) && + Objects.equals(earnCodeGroup, earnCode.earnCodeGroup) && + Objects.equals(earnCodeTypeLookup, earnCode.earnCodeTypeLookup) && + Objects.equals(code, earnCode.code) && + Objects.equals(externalID, earnCode.externalID) && + Objects.equals(isDeleted, earnCode.isDeleted) && + Objects.equals(owner, earnCode.owner) && + Objects.equals(status, earnCode.status) && + Objects.equals(title, earnCode.title) && + Objects.equals(generalLedgerServiceCode, earnCode.generalLedgerServiceCode) && + Objects.equals(generalLedgerBillAccount, earnCode.generalLedgerBillAccount) && + Objects.equals(generalLedgerPayAccount, earnCode.generalLedgerPayAccount) && + Objects.equals(generalLedgerSegment1, earnCode.generalLedgerSegment1) && + Objects.equals(generalLedgerSegment2, earnCode.generalLedgerSegment2) && + Objects.equals(generalLedgerSegment3, earnCode.generalLedgerSegment3) && + Objects.equals(generalLedgerSegment4, earnCode.generalLedgerSegment4) && + Objects.equals(generalLedgerSegment5, earnCode.generalLedgerSegment5); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), id, dateAdded, dateLastModified, description, earnCodeGroup, earnCodeTypeLookup, code, externalID, isDeleted, owner, status, title, generalLedgerServiceCode, generalLedgerBillAccount, generalLedgerPayAccount, generalLedgerSegment1, generalLedgerSegment2, generalLedgerSegment3, generalLedgerSegment4, generalLedgerSegment5); + } + + @Override + public String toString() { + return "EarnCode{" + + "id=" + id + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", description='" + description + '\'' + + ", earnCodeGroup=" + earnCodeGroup + + ", earnCodeTypeLookup=" + earnCodeTypeLookup + + ", code='" + code + '\'' + + ", externalID='" + externalID + '\'' + + ", isDeleted=" + isDeleted + + ", owner=" + owner + + ", status='" + status + '\'' + + ", title='" + title + '\'' + + ", generalLedgerServiceCode=" + generalLedgerServiceCode + + ", generalLedgerBillAccount=" + generalLedgerBillAccount + + ", generalLedgerPayAccount=" + generalLedgerPayAccount + + ", generalLedgerSegment1=" + generalLedgerSegment1 + + ", generalLedgerSegment2=" + generalLedgerSegment2 + + ", generalLedgerSegment3=" + generalLedgerSegment3 + + ", generalLedgerSegment4=" + generalLedgerSegment4 + + ", generalLedgerSegment5=" + generalLedgerSegment5 + + '}'; + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java index 8b349e44..c19f95b6 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatement.java @@ -17,6 +17,7 @@ import java.math.BigDecimal; import java.util.Date; +import java.util.Objects; /** * Created by mkesmetzis 23-Apr-20 @@ -660,4 +661,133 @@ public BigDecimal getTaxAmount() { public void setTaxAmount(BigDecimal taxAmount) { this.taxAmount = taxAmount; } + + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InvoiceStatement that = (InvoiceStatement) o; + return Objects.equals(id, that.id) && + Objects.equals(billingAddress, that.billingAddress) && + Objects.equals(billingAttention, that.billingAttention) && + Objects.equals(billingClientContact, that.billingClientContact) && + Objects.equals(billingCorporateUser, that.billingCorporateUser) && + Objects.equals(billingPeriodEndDate, that.billingPeriodEndDate) && + Objects.equals(billingProfile, that.billingProfile) && + Objects.equals(billingScheduleID, that.billingScheduleID) && + Objects.equals(clientCorporation, that.clientCorporation) && + Objects.equals(creditedByInvoiceStatement, that.creditedByInvoiceStatement) && + Objects.equals(creditOfInvoiceStatement, that.creditOfInvoiceStatement) && + Objects.equals(currencyUnit, that.currencyUnit) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(deliveryMethod, that.deliveryMethod) && + Objects.equals(deliveryStatus, that.deliveryStatus) && + Objects.equals(discounts, that.discounts) && + Objects.equals(discountTotal, that.discountTotal) && + Objects.equals(discountAmount, that.discountAmount) && + Objects.equals(effectiveDate, that.effectiveDate) && + Objects.equals(dueDate, that.dueDate) && + Objects.equals(emailErrorReason, that.emailErrorReason) && + Objects.equals(finalizedSubtotal, that.finalizedSubtotal) && + Objects.equals(finalizedTotal, that.finalizedTotal) && + Objects.equals(generalLedgerExportStatusLookup, that.generalLedgerExportStatusLookup) && + Objects.equals(invoiceStatementDate, that.invoiceStatementDate) && + Objects.equals(invoiceStatementExports, that.invoiceStatementExports) && + Objects.equals(invoiceStatementExportsBatches, that.invoiceStatementExportsBatches) && + Objects.equals(invoiceStatementNumber, that.invoiceStatementNumber) && + Objects.equals(invoiceStatementFinalizedDate, that.invoiceStatementFinalizedDate) && + Objects.equals(invoiceStatementOrigin, that.invoiceStatementOrigin) && + Objects.equals(invoiceStatementTemplate, that.invoiceStatementTemplate) && + Objects.equals(invoiceStatementType, that.invoiceStatementType) && + Objects.equals(invoiceTerm, that.invoiceTerm) && + Objects.equals(isDeleted, that.isDeleted) && + Objects.equals(isCredited, that.isCredited) && + Objects.equals(isFinalized, that.isFinalized) && + Objects.equals(isReinstated, that.isReinstated) && + Objects.equals(lineItems, that.lineItems) && + Objects.equals(lineItemTotal, that.lineItemTotal) && + Objects.equals(owner, that.owner) && + Objects.equals(paymentTerms, that.paymentTerms) && + Objects.equals(previousBalance, that.previousBalance) && + Objects.equals(purchaseOrderNumber, that.purchaseOrderNumber) && + Objects.equals(rawInvoiceStatementNumber, that.rawInvoiceStatementNumber) && + Objects.equals(remitInstructions, that.remitInstructions) && + Objects.equals(splitBys, that.splitBys) && + Objects.equals(status, that.status) && + Objects.equals(subtotal, that.subtotal) && + Objects.equals(surchargeTotal, that.surchargeTotal) && + Objects.equals(surcharges, that.surcharges) && + Objects.equals(taxAmount, that.taxAmount) && + Objects.equals(taxTotal, that.taxTotal) && + Objects.equals(taxes, that.taxes) && + Objects.equals(total, that.total); + } + + @Override + public int hashCode() { + return Objects.hash(id, billingAddress, billingAttention, billingClientContact, billingCorporateUser, billingPeriodEndDate, billingProfile, billingScheduleID, clientCorporation, creditedByInvoiceStatement, creditOfInvoiceStatement, currencyUnit, dateAdded, dateLastModified, deliveryMethod, deliveryStatus, discounts, discountTotal, discountAmount, effectiveDate, dueDate, emailErrorReason, finalizedSubtotal, finalizedTotal, generalLedgerExportStatusLookup, invoiceStatementDate, invoiceStatementExports, invoiceStatementExportsBatches, invoiceStatementNumber, invoiceStatementFinalizedDate, invoiceStatementOrigin, invoiceStatementTemplate, invoiceStatementType, invoiceTerm, isDeleted, isCredited, isFinalized, isReinstated, lineItems, lineItemTotal, owner, paymentTerms, previousBalance, purchaseOrderNumber, rawInvoiceStatementNumber, remitInstructions, splitBys, status, subtotal, surchargeTotal, surcharges, taxAmount, taxTotal, taxes, total); + } + + @Override + public String toString() { + return "InvoiceStatement{" + + "id=" + id + + ", billingAddress=" + billingAddress + + ", billingAttention='" + billingAttention + '\'' + + ", billingClientContact=" + billingClientContact + + ", billingCorporateUser=" + billingCorporateUser + + ", billingPeriodEndDate='" + billingPeriodEndDate + '\'' + + ", billingProfile=" + billingProfile + + ", billingScheduleID=" + billingScheduleID + + ", clientCorporation=" + clientCorporation + + ", creditedByInvoiceStatement=" + creditedByInvoiceStatement + + ", creditOfInvoiceStatement=" + creditOfInvoiceStatement + + ", currencyUnit=" + currencyUnit + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", deliveryMethod='" + deliveryMethod + '\'' + + ", deliveryStatus=" + deliveryStatus + + ", discounts=" + discounts + + ", discountTotal=" + discountTotal + + ", discountAmount=" + discountAmount + + ", effectiveDate='" + effectiveDate + '\'' + + ", dueDate=" + dueDate + + ", emailErrorReason='" + emailErrorReason + '\'' + + ", finalizedSubtotal=" + finalizedSubtotal + + ", finalizedTotal=" + finalizedTotal + + ", generalLedgerExportStatusLookup=" + generalLedgerExportStatusLookup + + ", invoiceStatementDate=" + invoiceStatementDate + + ", invoiceStatementExports=" + invoiceStatementExports + + ", invoiceStatementExportsBatches=" + invoiceStatementExportsBatches + + ", invoiceStatementNumber='" + invoiceStatementNumber + '\'' + + ", invoiceStatementFinalizedDate=" + invoiceStatementFinalizedDate + + ", invoiceStatementOrigin='" + invoiceStatementOrigin + '\'' + + ", invoiceStatementTemplate=" + invoiceStatementTemplate + + ", invoiceStatementType=" + invoiceStatementType + + ", invoiceTerm=" + invoiceTerm + + ", isDeleted=" + isDeleted + + ", isCredited=" + isCredited + + ", isFinalized=" + isFinalized + + ", isReinstated=" + isReinstated + + ", lineItems=" + lineItems + + ", lineItemTotal=" + lineItemTotal + + ", owner=" + owner + + ", paymentTerms='" + paymentTerms + '\'' + + ", previousBalance=" + previousBalance + + ", purchaseOrderNumber='" + purchaseOrderNumber + '\'' + + ", rawInvoiceStatementNumber=" + rawInvoiceStatementNumber + + ", remitInstructions='" + remitInstructions + '\'' + + ", splitBys=" + splitBys + + ", status=" + status + + ", subtotal=" + subtotal + + ", surchargeTotal=" + surchargeTotal + + ", surcharges=" + surcharges + + ", taxAmount=" + taxAmount + + ", taxTotal=" + taxTotal + + ", taxes=" + taxes + + ", total=" + total + + '}'; + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementBatch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementBatch.java index 08a20d28..df32bdd0 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementBatch.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementBatch.java @@ -1,7 +1,7 @@ package com.bullhornsdk.data.model.entity.core.paybill.invoice; import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; -import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.BillMasterTransaction; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; import com.bullhornsdk.data.model.entity.core.type.*; @@ -13,6 +13,8 @@ import com.fasterxml.jackson.annotation.JsonRootName; import org.joda.time.DateTime; +import java.util.Objects; + /** * Created by mkesmetzis 23-Apr-20 */ @@ -104,4 +106,36 @@ public DateTime getDateLastModified() { public void setDateLastModified(DateTime dateLastModified) { this.dateLastModified = dateLastModified; } + + @Override + public String toString() { + return "InvoiceStatementBatch{" + + "id=" + id + + ", 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; + InvoiceStatementBatch that = (InvoiceStatementBatch) o; + return Objects.equals(id, that.id) && + 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, batchStatus, billMasterTransactions, billableCharges, dateAdded, dateLastModified, owner); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementDiscount.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementDiscount.java index dbc159c2..fb36a49c 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementDiscount.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementDiscount.java @@ -10,6 +10,7 @@ import com.fasterxml.jackson.annotation.JsonRootName; import java.math.BigDecimal; +import java.util.Objects; /** * Created by mkesmetzis 23-Apr-20 @@ -67,4 +68,31 @@ public BigDecimal getFinalizedValue() { public void setFinalizedValue(BigDecimal finalizedValue) { this.finalizedValue = finalizedValue; } + + @Override + public String toString() { + return "InvoiceStatementDiscount{" + + "id=" + id + + ", discount=" + discount + + ", invoiceStatement=" + invoiceStatement + + ", finalizedValue=" + finalizedValue + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InvoiceStatementDiscount that = (InvoiceStatementDiscount) o; + return Objects.equals(id, that.id) && + Objects.equals(discount, that.discount) && + Objects.equals(invoiceStatement, that.invoiceStatement) && + Objects.equals(finalizedValue, that.finalizedValue); + } + + @Override + public int hashCode() { + return Objects.hash(id, discount, invoiceStatement, finalizedValue); + } } + diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementExportBatch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementExportBatch.java index 8c40e77e..f2275dfa 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementExportBatch.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementExportBatch.java @@ -11,6 +11,8 @@ import com.fasterxml.jackson.annotation.JsonRootName; import org.joda.time.DateTime; +import java.util.Objects; + /** * Created by mkesmetzis 23-Apr-20 */ @@ -97,4 +99,34 @@ public DateTime getDateLastModified() { public void setDateLastModified(DateTime dateLastModified) { this.dateLastModified = dateLastModified; } + + @Override + public String toString() { + return "InvoiceStatementExportBatch{" + + "id=" + id + + ", batchStatus=" + batchStatus + + ", invoiceStatement=" + invoiceStatement + + ", 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; + InvoiceStatementExportBatch that = (InvoiceStatementExportBatch) o; + return Objects.equals(id, that.id) && + Objects.equals(batchStatus, that.batchStatus) && + Objects.equals(invoiceStatement, that.invoiceStatement) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(owner, that.owner); + } + + @Override + public int hashCode() { + return Objects.hash(id, batchStatus, invoiceStatement, dateAdded, dateLastModified, owner); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItem.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItem.java index 9a69f903..3f93e5cb 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItem.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItem.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.invoice; -import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; +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.type.*; import com.bullhornsdk.data.model.entity.embedded.OneToMany; @@ -9,6 +9,7 @@ import org.joda.time.DateTime; import java.math.BigDecimal; +import java.util.Objects; /** * Created by mkesmetzis 23-Apr-20 @@ -211,4 +212,54 @@ public BigDecimal getTotal() { public void setTotal(BigDecimal total) { this.total = total; } + + @Override + public String toString() { + return "InvoiceStatementLineItem{" + + "id=" + id + + ", billMasterTransactions=" + billMasterTransactions + + ", comment='" + comment + '\'' + + ", currencyUnit=" + currencyUnit + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", description='" + description + '\'' + + ", groupByDisplay='" + groupByDisplay + '\'' + + ", groupBys=" + groupBys + + ", invoiceStatement=" + invoiceStatement + + ", quantity=" + quantity + + ", rate=" + rate + + ", subtotal=" + subtotal + + ", summarizeBys=" + summarizeBys + + ", taxAmount=" + taxAmount + + ", total=" + total + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InvoiceStatementLineItem that = (InvoiceStatementLineItem) o; + return Objects.equals(id, that.id) && + Objects.equals(billMasterTransactions, that.billMasterTransactions) && + Objects.equals(comment, that.comment) && + Objects.equals(currencyUnit, that.currencyUnit) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(description, that.description) && + Objects.equals(groupByDisplay, that.groupByDisplay) && + Objects.equals(groupBys, that.groupBys) && + Objects.equals(invoiceStatement, that.invoiceStatement) && + Objects.equals(quantity, that.quantity) && + Objects.equals(rate, that.rate) && + Objects.equals(subtotal, that.subtotal) && + Objects.equals(summarizeBys, that.summarizeBys) && + Objects.equals(taxAmount, that.taxAmount) && + Objects.equals(total, that.total); + } + + @Override + public int hashCode() { + return Objects.hash(id, billMasterTransactions, comment, currencyUnit, dateAdded, dateLastModified, description, groupByDisplay, groupBys, invoiceStatement, quantity, rate, subtotal, summarizeBys, taxAmount, total); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItemGroupBy.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItemGroupBy.java index 63c0fd63..a4b05563 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItemGroupBy.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementLineItemGroupBy.java @@ -8,6 +8,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 23-Apr-20 */ @@ -92,4 +94,34 @@ public Integer getSortOrder() { public void setSortOrder(Integer sortOrder) { this.sortOrder = sortOrder; } + + @Override + public String toString() { + return "InvoiceStatementLineItemGroupBy{" + + "id=" + id + + ", invoiceStatementLineItem=" + invoiceStatementLineItem + + ", field='" + field + '\'' + + ", value='" + value + '\'' + + ", displayValue='" + displayValue + '\'' + + ", sortOrder=" + sortOrder + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InvoiceStatementLineItemGroupBy that = (InvoiceStatementLineItemGroupBy) o; + return Objects.equals(id, that.id) && + Objects.equals(invoiceStatementLineItem, that.invoiceStatementLineItem) && + Objects.equals(field, that.field) && + Objects.equals(value, that.value) && + Objects.equals(displayValue, that.displayValue) && + Objects.equals(sortOrder, that.sortOrder); + } + + @Override + public int hashCode() { + return Objects.hash(id, invoiceStatementLineItem, field, value, displayValue, sortOrder); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSplitBy.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSplitBy.java index 03a056c3..d4c412b1 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSplitBy.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSplitBy.java @@ -8,6 +8,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 23-Apr-20 */ @@ -92,4 +94,34 @@ public Integer getSortOrder() { public void setSortOrder(Integer sortOrder) { this.sortOrder = sortOrder; } + + @Override + public String toString() { + return "InvoiceStatementSplitBy{" + + "id=" + id + + ", invoiceStatement=" + invoiceStatement + + ", field='" + field + '\'' + + ", value='" + value + '\'' + + ", displayValue='" + displayValue + '\'' + + ", sortOrder=" + sortOrder + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InvoiceStatementSplitBy that = (InvoiceStatementSplitBy) o; + return Objects.equals(id, that.id) && + Objects.equals(invoiceStatement, that.invoiceStatement) && + Objects.equals(field, that.field) && + Objects.equals(value, that.value) && + Objects.equals(displayValue, that.displayValue) && + Objects.equals(sortOrder, that.sortOrder); + } + + @Override + public int hashCode() { + return Objects.hash(id, invoiceStatement, field, value, displayValue, sortOrder); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSurcharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSurcharge.java index f4358ee2..3b21e442 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSurcharge.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementSurcharge.java @@ -10,6 +10,7 @@ import com.fasterxml.jackson.annotation.JsonRootName; import java.math.BigDecimal; +import java.util.Objects; /** * Created by mkesmetzis 24-Apr-20 @@ -75,4 +76,29 @@ public void setSurcharge(Surcharge surcharge) { this.surcharge = surcharge; } + @Override + public String toString() { + return "InvoiceStatementSurcharge{" + + "id=" + id + + ", finalizedValue=" + finalizedValue + + ", invoiceStatement=" + invoiceStatement + + ", surcharge=" + surcharge + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InvoiceStatementSurcharge that = (InvoiceStatementSurcharge) o; + return Objects.equals(id, that.id) && + Objects.equals(finalizedValue, that.finalizedValue) && + Objects.equals(invoiceStatement, that.invoiceStatement) && + Objects.equals(surcharge, that.surcharge); + } + + @Override + public int hashCode() { + return Objects.hash(id, finalizedValue, invoiceStatement, surcharge); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementTax.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementTax.java index 49e34b25..8b912e6f 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementTax.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceStatementTax.java @@ -11,6 +11,7 @@ import com.fasterxml.jackson.annotation.JsonRootName; import java.math.BigDecimal; +import java.util.Objects; /** * Created by mkesmetzis 24-Apr-20 @@ -80,4 +81,30 @@ public Tax getTax() { public void setTax(Tax tax) { this.tax = tax; } + + @Override + public String toString() { + return "InvoiceStatementTax{" + + "id=" + id + + ", finalizedValue=" + finalizedValue + + ", invoiceStatement=" + invoiceStatement + + ", tax=" + tax + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InvoiceStatementTax that = (InvoiceStatementTax) o; + return Objects.equals(id, that.id) && + Objects.equals(finalizedValue, that.finalizedValue) && + Objects.equals(invoiceStatement, that.invoiceStatement) && + Objects.equals(tax, that.tax); + } + + @Override + public int hashCode() { + return Objects.hash(id, finalizedValue, invoiceStatement, tax); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BatchGroup.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BatchGroup.java index 63b34be4..7a26878e 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BatchGroup.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BatchGroup.java @@ -9,6 +9,8 @@ import com.fasterxml.jackson.annotation.JsonRootName; import org.joda.time.DateTime; +import java.util.Objects; + /** * Created by mkesmetzis 22-Apr-20 */ @@ -53,4 +55,25 @@ public void setDateAdded(DateTime dateAdded) { this.dateAdded = dateAdded; } + @Override + public String toString() { + return "BatchGroup{" + + "id=" + id + + ", dateAdded=" + dateAdded + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + BatchGroup that = (BatchGroup) o; + return Objects.equals(id, that.id) && + Objects.equals(dateAdded, that.dateAdded); + } + + @Override + public int hashCode() { + return Objects.hash(id, dateAdded); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java index a5f43d3b..786efaab 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMaster.java @@ -3,6 +3,7 @@ import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.paybill.Location; import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.BillMasterTransaction; import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; import com.bullhornsdk.data.model.entity.core.type.AssociationEntity; import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; @@ -15,6 +16,8 @@ import com.fasterxml.jackson.annotation.JsonRootName; import org.joda.time.DateTime; +import java.util.Objects; + /** * Created by mkesmetzis 21-Apr-20 */ @@ -157,4 +160,43 @@ public void setDateLastModified(DateTime dateLastModified) { this.dateLastModified = dateLastModified; } + @Override + public String toString() { + return "BillMaster{" + + "id=" + id + + ", billMasterTransactions=" + billMasterTransactions + + ", billableCharge=" + billableCharge + + ", billingSyncBatch=" + billingSyncBatch + + ", canInvoice=" + canInvoice + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", earnCode=" + earnCode + + ", location=" + location + + ", owner=" + owner + + ", transactionDate=" + transactionDate + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + BillMaster that = (BillMaster) o; + return Objects.equals(id, that.id) && + Objects.equals(billMasterTransactions, that.billMasterTransactions) && + Objects.equals(billableCharge, that.billableCharge) && + Objects.equals(billingSyncBatch, that.billingSyncBatch) && + Objects.equals(canInvoice, that.canInvoice) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(earnCode, that.earnCode) && + Objects.equals(location, that.location) && + Objects.equals(owner, that.owner) && + Objects.equals(transactionDate, that.transactionDate); + } + + @Override + public int hashCode() { + return Objects.hash(id, billMasterTransactions, billableCharge, billingSyncBatch, canInvoice, dateAdded, dateLastModified, earnCode, location, owner, transactionDate); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillingSyncBatch.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillingSyncBatch.java index 7392151a..fb62f4f9 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillingSyncBatch.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillingSyncBatch.java @@ -16,6 +16,7 @@ import org.joda.time.DateTime; import javax.validation.constraints.Size; +import java.util.Objects; /** * Created by mkesmetzis 21-Apr-20 @@ -36,7 +37,7 @@ public class BillingSyncBatch extends AbstractEntity implements QueryEntity, Dat private PayableCharge defaultPayableCharge; @Size(max = 50) private String externalID; - private OneToMany payMasters; //TODO @OneToMany + private OneToMany payMasters; private String periodEndDate; private DateTime timeOfExternalEvent; private TransactionOrigin transactionOrigin; @@ -172,4 +173,46 @@ public DateTime getDateLastModified() { public void setDateLastModified(DateTime dateLastModified) { this.dateLastModified = dateLastModified; } + + @Override + public String toString() { + return "BillingSyncBatch{" + + "id=" + id + + ", batchGroup=" + batchGroup + + ", billMasters=" + billMasters + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", defaultBillableCharge=" + defaultBillableCharge + + ", defaultPayableCharge=" + defaultPayableCharge + + ", externalID='" + externalID + '\'' + + ", payMasters=" + payMasters + + ", periodEndDate='" + periodEndDate + '\'' + + ", timeOfExternalEvent=" + timeOfExternalEvent + + ", transactionOrigin=" + transactionOrigin + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + BillingSyncBatch that = (BillingSyncBatch) o; + return Objects.equals(id, that.id) && + Objects.equals(batchGroup, that.batchGroup) && + Objects.equals(billMasters, that.billMasters) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(defaultBillableCharge, that.defaultBillableCharge) && + Objects.equals(defaultPayableCharge, that.defaultPayableCharge) && + Objects.equals(externalID, that.externalID) && + Objects.equals(payMasters, that.payMasters) && + Objects.equals(periodEndDate, that.periodEndDate) && + Objects.equals(timeOfExternalEvent, that.timeOfExternalEvent) && + Objects.equals(transactionOrigin, that.transactionOrigin); + } + + @Override + public int hashCode() { + return Objects.hash(id, batchGroup, billMasters, dateAdded, dateLastModified, defaultBillableCharge, defaultPayableCharge, externalID, payMasters, periodEndDate, timeOfExternalEvent, transactionOrigin); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java index 5ba45279..5060f4f4 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayMaster.java @@ -1,7 +1,8 @@ package com.bullhornsdk.data.model.entity.core.paybill.master; -import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.PayMasterTransaction; import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity; import com.bullhornsdk.data.model.entity.core.type.QueryEntity; import com.bullhornsdk.data.util.ReadOnly; @@ -11,17 +12,20 @@ import com.fasterxml.jackson.annotation.JsonRootName; import org.joda.time.DateTime; +import java.util.Objects; + /** * Created by mkesmetzis 23-Apr-20 */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") -@JsonPropertyOrder({"id", "payableCharge", "billingSyncBatch", "canExport", - "dateAdded", "dateLastModified", "earnCode", "transactionDate"}) +@JsonPropertyOrder({"id", "billingSyncBatch", "canExport", + "dateAdded", "dateLastModified", "earnCode", "payableCharge", "payMasterTransactions", "transactionDate"}) public class PayMaster implements QueryEntity, DateLastModifiedEntity { private Integer id; private PayableCharge payableCharge; + private PayMasterTransaction payMasterTransactions; private BillingSyncBatch billingSyncBatch; private Boolean canExport; private DateTime dateAdded; @@ -54,7 +58,7 @@ public PayableCharge getPayableCharge() { return payableCharge; } - @JsonProperty("billableCharge") + @JsonProperty("payableCharge") public void setPayableCharge(PayableCharge payableCharge) { this.payableCharge = payableCharge; } @@ -74,7 +78,7 @@ public Boolean getCanExport() { return canExport; } - @JsonProperty("canInvoice") + @JsonProperty("canExport") public void setCanExport(Boolean canExport) { this.canExport = canExport; } @@ -119,4 +123,51 @@ public DateTime getDateLastModified() { public void setDateLastModified(DateTime dateLastModified) { this.dateLastModified = dateLastModified; } + + @JsonProperty("payMasterTransactions") + public PayMasterTransaction getPayMasterTransactions() { + return payMasterTransactions; + } + + @Override + public String toString() { + return "PayMaster{" + + "id=" + id + + ", payableCharge=" + payableCharge + + ", payMasterTransactions=" + payMasterTransactions + + ", billingSyncBatch=" + billingSyncBatch + + ", canExport=" + canExport + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", earnCode=" + earnCode + + ", transactionDate=" + transactionDate + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + PayMaster payMaster = (PayMaster) o; + return Objects.equals(id, payMaster.id) && + Objects.equals(payableCharge, payMaster.payableCharge) && + Objects.equals(payMasterTransactions, payMaster.payMasterTransactions) && + Objects.equals(billingSyncBatch, payMaster.billingSyncBatch) && + Objects.equals(canExport, payMaster.canExport) && + Objects.equals(dateAdded, payMaster.dateAdded) && + Objects.equals(dateLastModified, payMaster.dateLastModified) && + Objects.equals(earnCode, payMaster.earnCode) && + Objects.equals(transactionDate, payMaster.transactionDate); + } + + @Override + public int hashCode() { + return Objects.hash(id, payableCharge, payMasterTransactions, billingSyncBatch, canExport, dateAdded, dateLastModified, earnCode, transactionDate); + } + + @JsonProperty("payMasterTransactions") + public void setPayMasterTransactions(PayMasterTransaction payMasterTransactions) { + this.payMasterTransactions = payMasterTransactions; + } + } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SimplifiedOptionsLookup.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SimplifiedOptionsLookup.java index ebee5f72..e2342e94 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SimplifiedOptionsLookup.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SimplifiedOptionsLookup.java @@ -9,6 +9,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 22-Apr-20 */ @@ -63,4 +65,28 @@ public Boolean getIsDeleted() { public void setIsDeleted(Boolean isDeleted) { this.isDeleted = isDeleted; } + + @Override + public String toString() { + return "SimplifiedOptionsLookup{" + + "id=" + id + + ", label='" + label + '\'' + + ", isDeleted=" + isDeleted + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SimplifiedOptionsLookup that = (SimplifiedOptionsLookup) o; + return Objects.equals(id, that.id) && + Objects.equals(label, that.label) && + Objects.equals(isDeleted, that.isDeleted); + } + + @Override + public int hashCode() { + return Objects.hash(id, label, isDeleted); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SpecializedOptionsLookup.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SpecializedOptionsLookup.java index d12126ad..c43dc012 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SpecializedOptionsLookup.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/SpecializedOptionsLookup.java @@ -7,6 +7,8 @@ import com.fasterxml.jackson.annotation.JsonRootName; import org.joda.time.DateTime; +import java.util.Objects; + /** * Created by mkesmetzis 22-Apr-20 */ @@ -97,4 +99,37 @@ public CorporateUser getModifiedByUser() { public void setModifiedByUser(CorporateUser modifiedByUser) { this.modifiedByUser = modifiedByUser; } + + @Override + public String toString() { + return "SpecializedOptionsLookup{" + + "description='" + description + '\'' + + ", isSystem=" + isSystem + + ", isHidden=" + isHidden + + ", shouldShowInPicker=" + shouldShowInPicker + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", modifiedByUser=" + modifiedByUser + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + SpecializedOptionsLookup that = (SpecializedOptionsLookup) o; + return Objects.equals(description, that.description) && + Objects.equals(isSystem, that.isSystem) && + Objects.equals(isHidden, that.isHidden) && + Objects.equals(shouldShowInPicker, that.shouldShowInPicker) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(modifiedByUser, that.modifiedByUser); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), description, isSystem, isHidden, shouldShowInPicker, dateAdded, dateLastModified, modifiedByUser); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/WorkflowOptionsLookup.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/WorkflowOptionsLookup.java index 1ca274ff..e44b27ff 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/WorkflowOptionsLookup.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/optionslookup/WorkflowOptionsLookup.java @@ -5,6 +5,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 22-Apr-20 */ @@ -54,4 +56,29 @@ public Boolean getCanBypass() { public void setCanBypass(Boolean canBypass) { this.canBypass = canBypass; } + + @Override + public String toString() { + return "WorkflowOptionsLookup{" + + "workflowOrder=" + workflowOrder + + ", isDownstreamOnly=" + isDownstreamOnly + + ", canBypass=" + canBypass + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + WorkflowOptionsLookup that = (WorkflowOptionsLookup) o; + return Objects.equals(workflowOrder, that.workflowOrder) && + Objects.equals(isDownstreamOnly, that.isDownstreamOnly) && + Objects.equals(canBypass, that.canBypass); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), workflowOrder, isDownstreamOnly, canBypass); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java index 89f76471..3d46f892 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java @@ -9,6 +9,7 @@ import org.joda.time.DateTime; import java.math.BigDecimal; +import java.util.Objects; /** * Created by mkesmetzis 24-Apr-20 @@ -106,4 +107,36 @@ public BigDecimal getValue() { public void setValue(BigDecimal value) { this.value = value; } + + @Override + public String toString() { + return "Surcharge{" + + "id=" + id + + ", addedByUser=" + addedByUser + + ", dateAdded=" + dateAdded + + ", earnCode=" + earnCode + + ", label='" + label + '\'' + + ", surchargeType=" + surchargeType + + ", value=" + value + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Surcharge surcharge = (Surcharge) o; + return Objects.equals(id, surcharge.id) && + Objects.equals(addedByUser, surcharge.addedByUser) && + Objects.equals(dateAdded, surcharge.dateAdded) && + Objects.equals(earnCode, surcharge.earnCode) && + Objects.equals(label, surcharge.label) && + Objects.equals(surchargeType, surcharge.surchargeType) && + Objects.equals(value, surcharge.value); + } + + @Override + public int hashCode() { + return Objects.hash(id, addedByUser, dateAdded, earnCode, label, surchargeType, value); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java index 5597c062..a8234598 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java @@ -8,6 +8,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 23-Apr-20 */ @@ -48,4 +50,26 @@ public String getLabel() { public void setLabel(String label) { this.label = label; } + + @Override + public String toString() { + return "SurchargeType{" + + "id=" + id + + ", label='" + label + '\'' + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SurchargeType that = (SurchargeType) o; + return Objects.equals(id, that.id) && + Objects.equals(label, that.label); + } + + @Override + public int hashCode() { + return Objects.hash(id, label); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java index e0cb4cd4..5895f883 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java @@ -10,6 +10,7 @@ import org.joda.time.DateTime; import java.math.BigDecimal; +import java.util.Objects; /** * Created by mkesmetzis 24-Apr-20 @@ -130,4 +131,40 @@ public BigDecimal getValue() { public void setValue(BigDecimal value) { this.value = value; } + + @Override + public String toString() { + return "Tax{" + + "id=" + id + + ", addedByUser=" + addedByUser + + ", dateAdded=" + dateAdded + + ", earnCode=" + earnCode + + ", label='" + label + '\'' + + ", jurisdictionName='" + jurisdictionName + '\'' + + ", jurisdictionType=" + jurisdictionType + + ", taxType=" + taxType + + ", value=" + value + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Tax tax = (Tax) o; + return Objects.equals(id, tax.id) && + Objects.equals(addedByUser, tax.addedByUser) && + Objects.equals(dateAdded, tax.dateAdded) && + Objects.equals(earnCode, tax.earnCode) && + Objects.equals(label, tax.label) && + Objects.equals(jurisdictionName, tax.jurisdictionName) && + Objects.equals(jurisdictionType, tax.jurisdictionType) && + Objects.equals(taxType, tax.taxType) && + Objects.equals(value, tax.value); + } + + @Override + public int hashCode() { + return Objects.hash(id, addedByUser, dateAdded, earnCode, label, jurisdictionName, jurisdictionType, taxType, value); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java index 075a4429..a22425de 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java @@ -8,6 +8,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 23-Apr-20 */ @@ -48,4 +50,26 @@ public String getLabel() { public void setLabel(String label) { this.label = label; } + + @Override + public String toString() { + return "TaxType{" + + "id=" + id + + ", label='" + label + '\'' + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + TaxType taxType = (TaxType) o; + return Objects.equals(id, taxType.id) && + Objects.equals(label, taxType.label); + } + + @Override + public int hashCode() { + return Objects.hash(id, label); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/AbstractMasterTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/AbstractMasterTransaction.java similarity index 68% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/AbstractMasterTransaction.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/AbstractMasterTransaction.java index d315f559..0091dd25 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/AbstractMasterTransaction.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/AbstractMasterTransaction.java @@ -1,8 +1,5 @@ -package com.bullhornsdk.data.model.entity.core.paybill.master; +package com.bullhornsdk.data.model.entity.core.paybill.transaction; -import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionOrigin; -import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionStatus; -import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionType; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; import com.bullhornsdk.data.model.entity.core.paybill.unit.UnitOfMeasure; import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; @@ -13,6 +10,7 @@ import java.math.BigDecimal; import java.util.Date; +import java.util.Objects; /** * Created by mkesmetzis 22-Apr-20 @@ -201,4 +199,49 @@ public void setUnitOfMeasure(UnitOfMeasure unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; } + @Override + public String toString() { + return "AbstractMasterTransaction{" + + "id=" + id + + ", adjustmentSequenceNumber=" + adjustmentSequenceNumber + + ", amount=" + amount + + ", comment='" + comment + '\'' + + ", currencyUnit=" + currencyUnit + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", quantity=" + quantity + + ", rate=" + rate + + ", recordingDate=" + recordingDate + + ", transactionOrigin=" + transactionOrigin + + ", transactionStatus=" + transactionStatus + + ", transactionType=" + transactionType + + ", unitOfMeasure=" + unitOfMeasure + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AbstractMasterTransaction that = (AbstractMasterTransaction) o; + return Objects.equals(id, that.id) && + Objects.equals(adjustmentSequenceNumber, that.adjustmentSequenceNumber) && + Objects.equals(amount, that.amount) && + Objects.equals(comment, that.comment) && + Objects.equals(currencyUnit, that.currencyUnit) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateLastModified, that.dateLastModified) && + Objects.equals(quantity, that.quantity) && + Objects.equals(rate, that.rate) && + Objects.equals(recordingDate, that.recordingDate) && + Objects.equals(transactionOrigin, that.transactionOrigin) && + Objects.equals(transactionStatus, that.transactionStatus) && + Objects.equals(transactionType, that.transactionType) && + Objects.equals(unitOfMeasure, that.unitOfMeasure); + } + + @Override + public int hashCode() { + return Objects.hash(id, adjustmentSequenceNumber, amount, comment, currencyUnit, dateAdded, dateLastModified, quantity, rate, recordingDate, transactionOrigin, transactionStatus, transactionType, unitOfMeasure); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/AbstractTransaction.java similarity index 59% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/AbstractTransaction.java index 89379102..d7d92f64 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillableTransaction.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/AbstractTransaction.java @@ -1,9 +1,10 @@ -package com.bullhornsdk.data.model.entity.core.paybill.master; +package com.bullhornsdk.data.model.entity.core.paybill.transaction; import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; -import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillingSyncBatch; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; import com.bullhornsdk.data.model.entity.core.paybill.unit.UnitOfMeasure; +import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; import com.bullhornsdk.data.model.entity.core.type.QueryEntity; import com.bullhornsdk.data.util.ReadOnly; import com.fasterxml.jackson.annotation.JsonInclude; @@ -12,25 +13,21 @@ import com.fasterxml.jackson.annotation.JsonRootName; import java.math.BigDecimal; -import java.util.Date; +import java.util.Objects; /** * Created by mkesmetzis 22-Apr-20 */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") -@JsonPropertyOrder({"id", "amount", "billMaster", "billableCharge", "billingSyncBatch", - "currencyUnit", "earnCode", "quantity", "rate", "transactionDate", "unitOfMeasure"}) -public class BillableTransaction implements QueryEntity { +@JsonPropertyOrder({"id", "amount", "billingSyncBatch", "currencyUnit", "earnCode", "quantity", + "rate", "transactionDate", "unitOfMeasure"}) +public class AbstractTransaction extends AbstractEntity implements QueryEntity { private Integer id; private BigDecimal amount; - private BillMaster billMasters; - - private BillableCharge billableCharge; - private BillingSyncBatch billingSyncBatch; private CurrencyUnit currencyUnit; @@ -41,14 +38,14 @@ public class BillableTransaction implements QueryEntity { private BigDecimal rate; - private Date transactionDate; + private String transactionDate; private UnitOfMeasure unitOfMeasure; - public BillableTransaction() { + public AbstractTransaction() { } - public BillableTransaction(Integer id) { + public AbstractTransaction(Integer id) { this.id = id; } @@ -75,15 +72,6 @@ public void setAmount(BigDecimal amount) { this.amount = amount; } - @JsonProperty("billMasters") - public BillMaster getBillMasters() { - return billMasters; - } - - @JsonProperty("billMasters") - public void setBillMasters(BillMaster billMasters) { - this.billMasters = billMasters; - } @JsonProperty("currencyUnit") public CurrencyUnit getCurrencyUnit() { @@ -116,25 +104,15 @@ public void setRate(BigDecimal rate) { } @JsonProperty("transactionDate") - public Date getTransactionDate() { + public String getTransactionDate() { return transactionDate; } @JsonProperty("recordingDate") - public void setTransactionDate(Date transactionDate) { + public void setTransactionDate(String transactionDate) { this.transactionDate = transactionDate; } - @JsonProperty("billableCharge") - public BillableCharge getBillableCharge() { - return billableCharge; - } - - @JsonProperty("billableCharge") - public void setBillableCharge(BillableCharge billableCharge) { - this.billableCharge = billableCharge; - } - @JsonProperty("billingSyncBatch") public BillingSyncBatch getBillingSyncBatch() { return billingSyncBatch; @@ -164,4 +142,41 @@ public UnitOfMeasure getUnitOfMeasure() { public void setUnitOfMeasure(UnitOfMeasure unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; } + + @Override + public String toString() { + return "AbstractTransaction{" + + "id=" + id + + ", amount=" + amount + + ", billingSyncBatch=" + billingSyncBatch + + ", currencyUnit=" + currencyUnit + + ", earnCode=" + earnCode + + ", quantity=" + quantity + + ", rate=" + rate + + ", transactionDate='" + transactionDate + '\'' + + ", unitOfMeasure=" + unitOfMeasure + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + AbstractTransaction that = (AbstractTransaction) o; + return Objects.equals(id, that.id) && + Objects.equals(amount, that.amount) && + Objects.equals(billingSyncBatch, that.billingSyncBatch) && + Objects.equals(currencyUnit, that.currencyUnit) && + Objects.equals(earnCode, that.earnCode) && + Objects.equals(quantity, that.quantity) && + Objects.equals(rate, that.rate) && + Objects.equals(transactionDate, that.transactionDate) && + Objects.equals(unitOfMeasure, that.unitOfMeasure); + } + + @Override + public int hashCode() { + return Objects.hash(id, amount, billingSyncBatch, currencyUnit, earnCode, quantity, rate, transactionDate, unitOfMeasure); + } + } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMasterTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillMasterTransaction.java similarity index 68% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMasterTransaction.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillMasterTransaction.java index c4895038..42789c50 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/BillMasterTransaction.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillMasterTransaction.java @@ -1,14 +1,17 @@ -package com.bullhornsdk.data.model.entity.core.paybill.master; +package com.bullhornsdk.data.model.entity.core.paybill.transaction; import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatement; import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementBatch; import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementLineItem; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; import com.bullhornsdk.data.model.entity.core.type.QueryEntity; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 22-Apr-20 //TODO check if needed */ @@ -100,4 +103,35 @@ public BillMasterTransaction getReversalOfTransaction() { public void setReversalOfTransaction(BillMasterTransaction reversalOfTransaction) { this.reversalOfTransaction = reversalOfTransaction; } + + @Override + public String toString() { + return "BillMasterTransaction{" + + "billMasters=" + billMasters + + ", invoiceStatement=" + invoiceStatement + + ", invoiceStatementBatch=" + invoiceStatementBatch + + ", invoiceStatementLineItem=" + invoiceStatementLineItem + + ", needsReview=" + needsReview + + ", reversalOfTransaction=" + reversalOfTransaction + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + BillMasterTransaction that = (BillMasterTransaction) o; + return Objects.equals(billMasters, that.billMasters) && + Objects.equals(invoiceStatement, that.invoiceStatement) && + Objects.equals(invoiceStatementBatch, that.invoiceStatementBatch) && + Objects.equals(invoiceStatementLineItem, that.invoiceStatementLineItem) && + Objects.equals(needsReview, that.needsReview) && + Objects.equals(reversalOfTransaction, that.reversalOfTransaction); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), billMasters, invoiceStatement, invoiceStatementBatch, invoiceStatementLineItem, needsReview, reversalOfTransaction); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeInvoicedTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeInvoicedTransaction.java new file mode 100644 index 00000000..4bf929b3 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeInvoicedTransaction.java @@ -0,0 +1,104 @@ +package com.bullhornsdk.data.model.entity.core.paybill.transaction; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatement; +import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementBatch; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.util.Objects; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "amount", "billMaster", "billableCharge", "billingSyncBatch", + "currencyUnit", "earnCode", "invoiceStatement", "invoiceStatementBatch", "quantity", "rate", "transactionDate", "unitOfMeasure"}) +public class BillableChargeInvoicedTransaction extends AbstractTransaction implements QueryEntity { + + private BillMaster billMasters; + private BillableCharge billableCharge; + private InvoiceStatement invoiceStatement; + private InvoiceStatementBatch invoiceStatementBatch; + + public BillableChargeInvoicedTransaction() { + + } + + public BillableChargeInvoicedTransaction(Integer id) { + super(id); + } + + @JsonProperty("billMasters") + public BillMaster getBillMasters() { + return billMasters; + } + + @Override + public String toString() { + return "BillableChargeInvoicedTransaction{" + + "billMasters=" + billMasters + + ", billableCharge=" + billableCharge + + ", invoiceStatement=" + invoiceStatement + + ", invoiceStatementBatch=" + invoiceStatementBatch + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + BillableChargeInvoicedTransaction that = (BillableChargeInvoicedTransaction) o; + return Objects.equals(billMasters, that.billMasters) && + Objects.equals(billableCharge, that.billableCharge) && + Objects.equals(invoiceStatement, that.invoiceStatement) && + Objects.equals(invoiceStatementBatch, that.invoiceStatementBatch); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), billMasters, billableCharge, invoiceStatement, invoiceStatementBatch); + } + + @JsonProperty("billMasters") + public void setBillMasters(BillMaster billMasters) { + this.billMasters = billMasters; + } + + @JsonProperty("billableCharge") + public BillableCharge getBillableCharge() { + return billableCharge; + } + + @JsonProperty("billableCharge") + public void setBillableCharge(BillableCharge billableCharge) { + this.billableCharge = billableCharge; + } + + @JsonProperty("invoiceStatement") + public InvoiceStatement getInvoiceStatement() { + return invoiceStatement; + } + + @JsonProperty("invoiceStatement") + public void setInvoiceStatement(InvoiceStatement invoiceStatement) { + this.invoiceStatement = invoiceStatement; + } + + @JsonProperty("invoiceStatementBatch") + public InvoiceStatementBatch getInvoiceStatementBatch() { + return invoiceStatementBatch; + } + + @JsonProperty("invoiceStatementBatch") + public void setInvoiceStatementBatch(InvoiceStatementBatch invoiceStatementBatch) { + this.invoiceStatementBatch = invoiceStatementBatch; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeSummaryTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeSummaryTransaction.java new file mode 100644 index 00000000..fcc792cd --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeSummaryTransaction.java @@ -0,0 +1,92 @@ +package com.bullhornsdk.data.model.entity.core.paybill.transaction; + +import com.bullhornsdk.data.model.entity.core.paybill.Location; +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.util.Objects; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "amount", "billMaster", "billableCharge", "billingSyncBatch", + "currencyUnit", "earnCode", "location", "quantity", "rate", "transactionDate", "unitOfMeasure"}) +public class BillableChargeSummaryTransaction extends AbstractTransaction implements QueryEntity { + + private BillMaster billMasters; + private BillableCharge billableCharge; + private Location location; + + public BillableChargeSummaryTransaction() { + + } + + public BillableChargeSummaryTransaction(Integer id) { + super(id); + } + + + @JsonProperty("location") + public Location getLocation() { + return location; + } + + @JsonProperty("location") + public void setLocation(Location location) { + this.location = location; + } + + @JsonProperty("billMasters") + public BillMaster getBillMasters() { + return billMasters; + } + + @JsonProperty("billMasters") + public void setBillMasters(BillMaster billMasters) { + this.billMasters = billMasters; + } + + @JsonProperty("billableCharge") + public BillableCharge getBillableCharge() { + return billableCharge; + } + + @JsonProperty("billableCharge") + public void setBillableCharge(BillableCharge billableCharge) { + this.billableCharge = billableCharge; + } + + @Override + public String toString() { + return "BillableChargeSummaryTransaction{" + + "billMasters=" + billMasters + + ", billableCharge=" + billableCharge + + ", location=" + location + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + BillableChargeSummaryTransaction that = (BillableChargeSummaryTransaction) o; + return Objects.equals(billMasters, that.billMasters) && + Objects.equals(billableCharge, that.billableCharge) && + Objects.equals(location, that.location); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), billMasters, billableCharge, location); + } + + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeUnbillableTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeUnbillableTransaction.java new file mode 100644 index 00000000..d808ab44 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/BillableChargeUnbillableTransaction.java @@ -0,0 +1,76 @@ +package com.bullhornsdk.data.model.entity.core.paybill.transaction; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.util.Objects; + +/** + * Created by mkesmetzis 22-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "amount", "billMaster", "billableCharge", "billingSyncBatch", + "currencyUnit", "earnCode", "quantity", "rate", "transactionDate", "unitOfMeasure"}) +public class BillableChargeUnbillableTransaction extends AbstractTransaction implements QueryEntity { + + private BillMaster billMasters; + private BillableCharge billableCharge; + + public BillableChargeUnbillableTransaction() { + + } + + public BillableChargeUnbillableTransaction(Integer id) { + super(id); + } + + @JsonProperty("billMasters") + public BillMaster getBillMasters() { + return billMasters; + } + + @Override + public String toString() { + return "BillableChargeInvoicedTransaction{" + + "billMasters=" + billMasters + + ", billableCharge=" + billableCharge + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + BillableChargeUnbillableTransaction that = (BillableChargeUnbillableTransaction) o; + return Objects.equals(billMasters, that.billMasters) && + Objects.equals(billableCharge, that.billableCharge); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), billMasters, billableCharge); + } + + @JsonProperty("billMasters") + public void setBillMasters(BillMaster billMasters) { + this.billMasters = billMasters; + } + + @JsonProperty("billableCharge") + public BillableCharge getBillableCharge() { + return billableCharge; + } + + @JsonProperty("billableCharge") + public void setBillableCharge(BillableCharge billableCharge) { + this.billableCharge = billableCharge; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayMasterTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayMasterTransaction.java new file mode 100644 index 00000000..974471d2 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayMasterTransaction.java @@ -0,0 +1,94 @@ +package com.bullhornsdk.data.model.entity.core.paybill.transaction; + +import com.bullhornsdk.data.model.entity.core.paybill.charge.PayExportBatch; +import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; +import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.util.Objects; + +/** + * Created by mkesmetzis 22-Apr-20 //TODO check if needed + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "adjustmentSequenceNumber", "amount", "comment", "currencyUnit", "dateAdded", + "dateLastModified", "payExportBatch", "payMaster", "quantity", "rate", "recordingDate", "reversalOfTransaction", + "transactionOrigin", "transactionStatus", "transactionType", "unitOfMeasure" +}) +public class PayMasterTransaction extends AbstractMasterTransaction implements QueryEntity { + + private PayMaster payMaster; + + private PayExportBatch payExportBatch; + + private PayMasterTransaction reversalOfTransaction; + + public PayMasterTransaction() { + super(); + } + + public PayMasterTransaction(Integer id) { + super(id); + } + + + @JsonProperty("payExportBatch") + public PayExportBatch getPayExportBatch() { + return payExportBatch; + } + + @Override + public String toString() { + return "PayMasterTransaction{" + + "payMaster=" + payMaster + + ", payExportBatch=" + payExportBatch + + ", reversalOfTransaction=" + reversalOfTransaction + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + PayMasterTransaction that = (PayMasterTransaction) o; + return Objects.equals(payMaster, that.payMaster) && + Objects.equals(payExportBatch, that.payExportBatch) && + Objects.equals(reversalOfTransaction, that.reversalOfTransaction); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), payMaster, payExportBatch, reversalOfTransaction); + } + + @JsonProperty("payExportBatch") + public void setPayExportBatch(PayExportBatch payExportBatch) { + this.payExportBatch = payExportBatch; + } + + @JsonProperty("payMaster") + public PayMaster getPayMaster() { + return payMaster; + } + + @JsonProperty("payMaster") + public void setPayMaster(PayMaster payMaster) { + this.payMaster = payMaster; + } + + @JsonProperty("reversalOfTransaction") + public PayMasterTransaction getReversalOfTransaction() { + return reversalOfTransaction; + } + + @JsonProperty("reversalOfTransaction") + public void setReversalOfTransaction(PayMasterTransaction reversalOfTransaction) { + this.reversalOfTransaction = reversalOfTransaction; + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayableChargeExportedTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayableChargeExportedTransaction.java new file mode 100644 index 00000000..e43ee8e9 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayableChargeExportedTransaction.java @@ -0,0 +1,107 @@ +//package com.bullhornsdk.data.model.entity.core.paybill.transaction; +// +//import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; +//import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatement; +//import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceStatementBatch; +//import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; +//import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; +//import com.bullhornsdk.data.model.entity.core.type.QueryEntity; +//import com.fasterxml.jackson.annotation.JsonInclude; +//import com.fasterxml.jackson.annotation.JsonProperty; +//import com.fasterxml.jackson.annotation.JsonPropertyOrder; +//import com.fasterxml.jackson.annotation.JsonRootName; +//import org.joda.time.DateTime; +// +//import java.util.Objects; +// +///** +// * Created by mkesmetzis 22-Apr-20 +// */ +//@JsonInclude(JsonInclude.Include.NON_NULL) +//@JsonRootName(value = "data") +//@JsonPropertyOrder({"id", "amount", "billingSyncBatch", "canvasReportID", "currencyUnit", "dateAdded", "earnCode", +// "payExportBatchID", "payMaster", "payableCharge", "quantity", "rate", "transactionDate", "unitOfMeasure"}) +//public class PayableChargeExportedTransaction extends AbstractTransaction implements QueryEntity { +// +// private CanvasReport canvasReportID; +// private DateTime dateTime; +// private PayExportBatch payExportBatchID; +// private PayMaster payMaster; +// +// +// public PayableChargeExportedTransaction() { +// +// } +// +// public PayableChargeExportedTransaction(Integer id) { +// super(id); +// } +// +// @JsonProperty("billMasters") +// public BillMaster getBillMasters() { +// return billMasters; +// } +// +// @Override +// public String toString() { +// return "BillableChargeInvoicedTransaction{" + +// "billMasters=" + billMasters + +// ", billableCharge=" + billableCharge + +// ", invoiceStatement=" + invoiceStatement + +// ", invoiceStatementBatch=" + invoiceStatementBatch + +// '}'; +// } +// +// @Override +// public boolean equals(Object o) { +// if (this == o) return true; +// if (o == null || getClass() != o.getClass()) return false; +// if (!super.equals(o)) return false; +// PayableChargeExportedTransaction that = (PayableChargeExportedTransaction) o; +// return Objects.equals(billMasters, that.billMasters) && +// Objects.equals(billableCharge, that.billableCharge) && +// Objects.equals(invoiceStatement, that.invoiceStatement) && +// Objects.equals(invoiceStatementBatch, that.invoiceStatementBatch); +// } +// +// @Override +// public int hashCode() { +// return Objects.hash(super.hashCode(), billMasters, billableCharge, invoiceStatement, invoiceStatementBatch); +// } +// +// @JsonProperty("billMasters") +// public void setBillMasters(BillMaster billMasters) { +// this.billMasters = billMasters; +// } +// +// @JsonProperty("billableCharge") +// public BillableCharge getBillableCharge() { +// return billableCharge; +// } +// +// @JsonProperty("billableCharge") +// public void setBillableCharge(BillableCharge billableCharge) { +// this.billableCharge = billableCharge; +// } +// +// @JsonProperty("invoiceStatement") +// public InvoiceStatement getInvoiceStatement() { +// return invoiceStatement; +// } +// +// @JsonProperty("invoiceStatement") +// public void setInvoiceStatement(InvoiceStatement invoiceStatement) { +// this.invoiceStatement = invoiceStatement; +// } +// +// @JsonProperty("invoiceStatementBatch") +// public InvoiceStatementBatch getInvoiceStatementBatch() { +// return invoiceStatementBatch; +// } +// +// @JsonProperty("invoiceStatementBatch") +// public void setInvoiceStatementBatch(InvoiceStatementBatch invoiceStatementBatch) { +// this.invoiceStatementBatch = invoiceStatementBatch; +// } +// +//} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayableTransaction.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayableTransaction.java similarity index 66% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayableTransaction.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayableTransaction.java index 607c5ada..1a03ae37 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/master/PayableTransaction.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/PayableTransaction.java @@ -1,7 +1,9 @@ -package com.bullhornsdk.data.model.entity.core.paybill.master; +package com.bullhornsdk.data.model.entity.core.paybill.transaction; import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillingSyncBatch; +import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; import com.bullhornsdk.data.model.entity.core.paybill.unit.UnitOfMeasure; import com.bullhornsdk.data.model.entity.core.type.QueryEntity; @@ -12,7 +14,7 @@ import com.fasterxml.jackson.annotation.JsonRootName; import java.math.BigDecimal; -import java.util.Date; +import java.util.Objects; /** * Created by mkesmetzis 22-Apr-20 @@ -41,7 +43,7 @@ public class PayableTransaction implements QueryEntity { private BigDecimal rate; - private Date transactionDate; + private String transactionDate; private UnitOfMeasure unitOfMeasure; @@ -106,12 +108,12 @@ public void setRate(BigDecimal rate) { } @JsonProperty("transactionDate") - public Date getTransactionDate() { + public String getTransactionDate() { return transactionDate; } @JsonProperty("recordingDate") - public void setTransactionDate(Date transactionDate) { + public void setTransactionDate(String transactionDate) { this.transactionDate = transactionDate; } @@ -164,4 +166,44 @@ public UnitOfMeasure getUnitOfMeasure() { public void setUnitOfMeasure(UnitOfMeasure unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; } + + @Override + public String toString() { + return "PayableTransaction{" + + "id=" + id + + ", amount=" + amount + + ", billingSyncBatch=" + billingSyncBatch + + ", currencyUnit=" + currencyUnit + + ", earnCode=" + earnCode + + ", payMaster=" + payMaster + + ", payableCharge=" + payableCharge + + ", quantity=" + quantity + + ", rate=" + rate + + ", transactionDate=" + transactionDate + + ", unitOfMeasure=" + unitOfMeasure + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + PayableTransaction that = (PayableTransaction) o; + return Objects.equals(id, that.id) && + Objects.equals(amount, that.amount) && + Objects.equals(billingSyncBatch, that.billingSyncBatch) && + Objects.equals(currencyUnit, that.currencyUnit) && + Objects.equals(earnCode, that.earnCode) && + Objects.equals(payMaster, that.payMaster) && + Objects.equals(payableCharge, that.payableCharge) && + Objects.equals(quantity, that.quantity) && + Objects.equals(rate, that.rate) && + Objects.equals(transactionDate, that.transactionDate) && + Objects.equals(unitOfMeasure, that.unitOfMeasure); + } + + @Override + public int hashCode() { + return Objects.hash(id, amount, billingSyncBatch, currencyUnit, earnCode, payMaster, payableCharge, quantity, rate, transactionDate, unitOfMeasure); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionOrigin.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionOrigin.java index b7382cd2..03ed73c0 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionOrigin.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionOrigin.java @@ -8,6 +8,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 21-Apr-20 */ @@ -50,4 +52,25 @@ public void setName(String name) { this.name = name; } + @Override + public String toString() { + return "TransactionOrigin{" + + "id=" + id + + ", name='" + name + '\'' + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + TransactionOrigin that = (TransactionOrigin) o; + return Objects.equals(id, that.id) && + Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionStatus.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionStatus.java index 67dc87e4..562aef32 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionStatus.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionStatus.java @@ -8,6 +8,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 21-Apr-20 */ @@ -19,6 +21,8 @@ public class TransactionStatus extends AbstractEntity implements QueryEntity { private Integer id; private String name; + public TransactionStatus() { + } public TransactionStatus(Integer id) { this.id = id; @@ -47,6 +51,28 @@ public void setName(String name) { this.name = name; } + @Override + public String toString() { + return "TransactionStatus{" + + "id=" + id + + ", name='" + name + '\'' + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + TransactionStatus that = (TransactionStatus) o; + return Objects.equals(id, that.id) && + Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + // enum KnownIds { // Pending(1), diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionType.java index 46ce17ec..e2328a25 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionType.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/transaction/TransactionType.java @@ -7,6 +7,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 21-Apr-20 */ @@ -53,4 +55,25 @@ public void setName(String name) { this.name = name; } + @Override + public String toString() { + return "TransactionType{" + + "id=" + id + + ", name='" + name + '\'' + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + TransactionType that = (TransactionType) o; + return Objects.equals(id, that.id) && + Objects.equals(name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/unit/UnitOfMeasure.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/unit/UnitOfMeasure.java index 27b6c1a3..a1921809 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/unit/UnitOfMeasure.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/unit/UnitOfMeasure.java @@ -8,6 +8,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; +import java.util.Objects; + /** * Created by mkesmetzis 22-Apr-20 */ @@ -35,6 +37,27 @@ public Integer getId() { return id; } + @Override + public String toString() { + return "UnitOfMeasure{" + + "id=" + id + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + UnitOfMeasure that = (UnitOfMeasure) o; + return Objects.equals(id, that.id); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), id); + } + @ReadOnly @Override @JsonProperty("id") diff --git a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java index 5d2b2a2e..295b7306 100644 --- a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java +++ b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java @@ -11,6 +11,7 @@ import com.bullhornsdk.data.model.entity.core.customobjectinstances.person.*; import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.*; import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile; +import com.bullhornsdk.data.model.entity.core.paybill.CanvasReport; import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; import com.bullhornsdk.data.model.entity.core.paybill.Location; import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; @@ -23,6 +24,7 @@ import com.bullhornsdk.data.model.entity.core.paybill.master.*; import com.bullhornsdk.data.model.entity.core.paybill.surcharge.Surcharge; import com.bullhornsdk.data.model.entity.core.paybill.tax.Tax; +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.standard.*; import com.bullhornsdk.data.model.entity.core.type.BullhornEntity; @@ -195,6 +197,7 @@ public enum BullhornEntityInfo { PAY_MASTER("PayMaster", PayMaster.class, PayMasterWrapper.class, PayMasterListWrapper.class, null, null), SURCHARGE("Surcharge", Surcharge.class, SurchargeWrapper.class, SurchargeListWrapper.class, null, null), TAX("Tax", Tax.class, TaxWrapper.class, TaxListWrapper.class, null, null), + CANVAS_REPORT("CanvasReport", CanvasReport.class, CanvasReportWrapper.class, CanvasReportListWrapper.class, null, null), // Custom Objects @@ -286,7 +289,8 @@ public enum BullhornEntityInfo { JOB_ORDER_FILE_ATTACHMENT("JobOrderFileAttachment", JobOrderFileAttachment.class, JobOrderFileAttachmentWrapper.class, JobOrderFileAttachmentListWrapper.class, null, null), OPPORTUNITY_FILE_ATTACHMENT("OpportunityFileAttachment", OpportunityFileAttachment.class, OpportunityFileAttachmentWrapper.class, OpportunityFileAttachmentListWrapper.class, null, null), PLACEMENT_FILE_ATTACHMENT("PlacementFileAttachment", PlacementFileAttachment.class, PlacementFileAttachmentWrapper.class, PlacementFileAttachmentListWrapper.class, null, null), - BILLABLE_CHARGE_FILE_ATTACHMENT("BillableChargeFileAttachment", BillableChargeFileAttachment.class, BillableChargeFileAttachmentWrapper.class, BillableChargeFileAttachmentListWrapper.class, null, null); + BILLABLE_CHARGE_FILE_ATTACHMENT("BillableChargeFileAttachment", BillableChargeFileAttachment.class, BillableChargeFileAttachmentWrapper.class, BillableChargeFileAttachmentListWrapper.class, null, null), + INVOICE_STATEMENT_EXPORT("InvoiceStatementExport", InvoiceStatementExport.class, InvoiceStatementExportWrapper.class, InvoiceStatementExportListWrapper.class, null, null); private final String name; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterTransactionListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterTransactionListWrapper.java index cf1eef0f..44d66592 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterTransactionListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/BillMasterTransactionListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.BillMasterTransaction; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/CanvasReportListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/CanvasReportListWrapper.java new file mode 100644 index 00000000..2281e387 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/CanvasReportListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.paybill.CanvasReport; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class CanvasReportListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementExportListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementExportListWrapper.java new file mode 100644 index 00000000..154317cd --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/InvoiceStatementExportListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.file.InvoiceStatementExport; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class InvoiceStatementExportListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterTransactionWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterTransactionWrapper.java index 17ea5ed4..03f411ef 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterTransactionWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/BillMasterTransactionWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.master.BillMasterTransaction; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.BillMasterTransaction; public class BillMasterTransactionWrapper extends StandardWrapper { diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/CanvasReportWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/CanvasReportWrapper.java new file mode 100644 index 00000000..14406d8b --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/CanvasReportWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.paybill.CanvasReport; + +public class CanvasReportWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementExportWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementExportWrapper.java new file mode 100644 index 00000000..9c2c2b0f --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/InvoiceStatementExportWrapper.java @@ -0,0 +1,10 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.file.InvoiceStatementExport; + +/** + * Created by mkesmetzis 01-Apr-20 + */ + +public class InvoiceStatementExportWrapper extends StandardWrapper { +} diff --git a/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt b/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt index 4a7583ba..7f148d93 100644 --- a/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt +++ b/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt @@ -1,765 +1,364 @@ { - "start": 0, - "count": 20, - "data": [ - { - "id": 1, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 2, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 3, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 4, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 5, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 6, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 7, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 8, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 9, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 10, - "billableCharge": { - "id": 1966 - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 11, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 12, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 13, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 14, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 15, - "billableCharge": { - "id": 1966" - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 16, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 17, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 18, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 19, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - }, - { - "id": 20, - "billableCharge": { - "id": 1966 - }, - "contentSubType": "plain", - "contentType": "text", - "dateAdded": 1516798433010, - "departmentsSharedWith": { - "total": 0, - "data": [] - }, - "description": null, - "directory": "16863/2018.01/", - "distribution": "internal", - "externalID": "portfolio", - "fileExtension": ".txt", - "fileOwner": { - "id": 1909, - "firstName": "Tim", - "lastName": "Kennedy" - }, - "fileSize": 12, - "fileType": "SAMPLE ", - "isCopied": false, - "isDeleted": false, - "isExternal": false, - "isOpen": true, - "isPrivate": false, - "isSendOut": false, - "name": "TextCV2.txt", - "type": null, - "usersSharedWith": { - "total": 0, - "data": [] - }, - "uuid": "D1347896-D29E-4C12-A499-8453779299AD" - } - ] + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + }, { + "id": 1, + "billableCharge": { + "id": 3 + }, + "contentSubType": "jpg", + "contentType": "image", + "dateAdded": 1587666456597, + "directory": "31625/2020.04/", + "fileExtension": ".jpg", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 27, + "name": "Receipt2.jpg" + } + ] } diff --git a/src/test/resources/testdata/rest/file/invoicestatementexport-data.txt b/src/test/resources/testdata/rest/file/invoicestatementexport-data.txt new file mode 100644 index 00000000..d9e3c0ca --- /dev/null +++ b/src/test/resources/testdata/rest/file/invoicestatementexport-data.txt @@ -0,0 +1,481 @@ +{ + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 1, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/batchgroup-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/batchgroup-meta-data.txt new file mode 100644 index 00000000..72a26e5d --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/batchgroup-meta-data.txt @@ -0,0 +1,43 @@ +{ + "entity": "BatchGroup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BatchGroup?fields=*", + "label": "Batch Group", + "dateLastModified": "1587913246402", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "billingSyncBatches", + "type": "TO_MANY", + "confidential": false, + "label": "Billing Sync Batches", + "optionsType": "BillingSyncBatch", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillingSyncBatch", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillingSyncBatch", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillingSyncBatch?fields=*", + "label": "Billing Sync Batch", + "dateLastModified": "1587723580204", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/billablecharge-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/billablecharge-meta-data.txt new file mode 100644 index 00000000..1a800beb --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/billablecharge-meta-data.txt @@ -0,0 +1,1118 @@ +{ + "entity": "BillableCharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableCharge?fields=*", + "label": "Billing Charge", + "dateLastModified": "1587691101685", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "addedByUser", + "type": "TO_ONE", + "confidential": false, + "label": "Created by", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "billMasters", + "type": "TO_MANY", + "confidential": false, + "label": "Bill Masters", + "optionsType": "BillMaster", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillMaster", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillMaster", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillMaster?fields=*", + "label": "Bill Transaction", + "dateLastModified": "1587691101829", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "billableTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Billable Transactions", + "optionsType": "BillableChargeBillableTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillableChargeBillableTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillableChargeBillableTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableChargeBillableTransaction?fields=*", + "label": "Billable Charge Billable Transaction", + "dateLastModified": "1587691102015", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "billingClientContact", + "type": "TO_ONE", + "confidential": false, + "label": "Billing Contact", + "optionsType": "ClientContact", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientContact", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientContact", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientContact?fields=*", + "label": "Contact", + "dateLastModified": "1587752500417", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "billingClientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Billing Client Corporation", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "billingCorporateUser", + "type": "TO_ONE", + "confidential": false, + "label": "Billing Specialist", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "billingFrequency", + "type": "SCALAR", + "dataType": "String", + "maxLength": 20, + "confidential": false, + "label": "Billing Frequency", + "hideFromSearch": false + }, + { + "name": "billingProfile", + "type": "TO_ONE", + "confidential": false, + "label": "Billing Profile", + "optionsType": "BillingProfile", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillingProfile", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillingProfile", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillingProfile?fields=*", + "label": "Billing Profile", + "dateLastModified": "1587691075608", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Client Corporation", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Effective Date", + "hideFromSearch": false + }, + { + "name": "effectiveEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "effectiveEndDate", + "hideFromSearch": false + }, + { + "name": "versionID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "billingProfileVersionID", + "hideFromSearch": false + }, + { + "name": "billingClientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Bill-to Client", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + } + ] + } + }, + { + "name": "billingSchedule", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "Billing Schedule", + "hideFromSearch": false + }, + { + "name": "candidate", + "type": "TO_ONE", + "confidential": false, + "label": "Candidate", + "optionsType": "Candidate", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Candidate", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Candidate", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Candidate?fields=*", + "label": "Candidate", + "dateLastModified": "1587752500417", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Client Corporation", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "currencyUnit", + "type": "TO_ONE", + "confidential": false, + "label": "Currency", + "optionsType": "CurrencyUnit", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CurrencyUnit", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CurrencyUnit", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CurrencyUnit?fields=*", + "label": "Currency Unit", + "dateLastModified": "1587691101823", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "alphabeticCode", + "type": "SCALAR", + "dataType": "String", + "maxLength": 3, + "confidential": false, + "label": "Alphabetic Code", + "hideFromSearch": false + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "fileAttachments", + "type": "TO_MANY", + "confidential": false, + "label": "File Attachments", + "optionsType": "BillableChargeFileAttachment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillableChargeFileAttachment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillableChargeFileAttachment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableChargeFileAttachment?fields=*", + "label": "Billable Charge File Attachment", + "dateLastModified": "1587691102366", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "generalLedgerSegment1", + "type": "TO_ONE", + "confidential": false, + "label": "Class", + "optionsType": "GeneralLedgerSegment1", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment1", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment1", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment1?fields=*", + "label": "General Ledger Segment1", + "dateLastModified": "1587691088906", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment2", + "type": "TO_ONE", + "confidential": false, + "label": "Division", + "optionsType": "GeneralLedgerSegment2", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment2", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment2", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment2?fields=*", + "label": "General Ledger Segment2", + "dateLastModified": "1587691088945", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment3", + "type": "TO_ONE", + "confidential": false, + "label": "Department", + "optionsType": "GeneralLedgerSegment3", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment3", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment3", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment3?fields=*", + "label": "General Ledger Segment3", + "dateLastModified": "1587691088981", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment4", + "type": "TO_ONE", + "confidential": false, + "label": "Country", + "optionsType": "GeneralLedgerSegment4", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment4", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment4", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment4?fields=*", + "label": "General Ledger Segment4", + "dateLastModified": "1587691089009", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment5", + "type": "TO_ONE", + "confidential": false, + "label": "Location", + "optionsType": "GeneralLedgerSegment5", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment5", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment5", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment5?fields=*", + "label": "General Ledger Segment5", + "dateLastModified": "1587691089045", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerServiceCode", + "type": "TO_ONE", + "confidential": false, + "label": "Product/Service Code", + "optionsType": "GeneralLedgerServiceCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerServiceCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerServiceCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerServiceCode?fields=*", + "label": "General Ledger Service Code", + "dateLastModified": "1587691089077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalServiceCodeNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Number", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "invoiceTerm", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Terms", + "optionsType": "InvoiceTerm", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceTerm", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceTerm", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceTerm?fields=*", + "label": "Invoice Terms", + "dateLastModified": "1587691101711", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Client Corporation", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Effective Date", + "hideFromSearch": false + }, + { + "name": "effectiveEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "effectiveEndDate", + "hideFromSearch": false + }, + { + "name": "versionID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "invoiceTermVersionID", + "hideFromSearch": false + } + ] + } + }, + { + "name": "invoicedTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Invoiced Transactions", + "optionsType": "BillableChargeInvoicedTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillableChargeInvoicedTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillableChargeInvoicedTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableChargeInvoicedTransaction?fields=*", + "label": "Billable Charge Invoiced Transaction", + "dateLastModified": "1587691102587", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "isInvoiced", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Invoiced?", + "options": [ + { + "value": "1", + "label": "Yes" + }, + { + "value": "0", + "label": "No" + } + ], + "hideFromSearch": false + }, + { + "name": "jobOrder", + "type": "TO_ONE", + "confidential": false, + "label": "Job Posting", + "optionsType": "JobOrder", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/JobOrder", + "hideFromSearch": false, + "associatedEntity": { + "entity": "JobOrder", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/JobOrder?fields=*", + "label": "Job", + "dateLastModified": "1587691073308", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Job Title", + "hideFromSearch": false + } + ] + } + }, + { + "name": "periodEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Period End Date", + "hideFromSearch": false + }, + { + "name": "placement", + "type": "TO_ONE", + "confidential": false, + "label": "Placement", + "optionsType": "Placement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Placement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Placement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Placement?fields=*", + "label": "Placement", + "dateLastModified": "1587748817322", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "readyToBillOverride", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Ready To Bill Override", + "hideFromSearch": false + }, + { + "name": "status", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "Status", + "optionsType": "BillableChargeStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillableChargeStatusLookup", + "options": [ + { + "value": 1, + "label": "Not Ready to Bill", + "readOnly": false + }, + { + "value": 2, + "label": "Ready to Bill", + "readOnly": false + }, + { + "value": 3, + "label": "Processing", + "readOnly": false + }, + { + "value": 4, + "label": "Needs Review", + "readOnly": false + }, + { + "value": 5, + "label": "Invoicing", + "readOnly": false + }, + { + "value": 6, + "label": "Invoiced", + "readOnly": false + }, + { + "value": 7, + "label": "Unbillable", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillableChargeStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableChargeStatusLookup?fields=*", + "label": "Billable Charge Status", + "dateLastModified": "1587691102640", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "subtotal", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Pre-tax Amount", + "hideFromSearch": false + }, + { + "name": "summaryTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Summary Transactions", + "optionsType": "BillableChargeSummaryTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillableChargeSummaryTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillableChargeSummaryTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableChargeSummaryTransaction?fields=*", + "label": "Billable Charge Summary Transaction", + "dateLastModified": "1587691102841", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "transactionStatus", + "type": "TO_ONE", + "confidential": false, + "label": "Transaction Status", + "optionsType": "TransactionStatus", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TransactionStatus", + "hideFromSearch": false, + "associatedEntity": { + "entity": "TransactionStatus", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TransactionStatus?fields=*", + "label": "Transaction Status", + "dateLastModified": "1587691102017", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "transactionType", + "type": "TO_ONE", + "confidential": false, + "label": "Transaction Type", + "optionsType": "TransactionType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TransactionType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "TransactionType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TransactionType?fields=*", + "label": "Transaction Type", + "dateLastModified": "1587691102988", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "unbillableTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Unbillable Transactions", + "optionsType": "BillableChargeUnbillableTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillableChargeUnbillableTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillableChargeUnbillableTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableChargeUnbillableTransaction?fields=*", + "label": "Billable Charge Unbillable Transaction", + "dateLastModified": "1587691103031", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/billingsyncbatch-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/billingsyncbatch-meta-data.txt new file mode 100644 index 00000000..ebed190a --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/billingsyncbatch-meta-data.txt @@ -0,0 +1,195 @@ +{ + "entity": "BillingSyncBatch", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillingSyncBatch?fields=*", + "label": "Billing Sync Batch", + "dateLastModified": "1587723580204", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "batchGroup", + "type": "TO_ONE", + "confidential": false, + "label": "Batch Group", + "optionsType": "BatchGroup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BatchGroup", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BatchGroup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BatchGroup?fields=*", + "label": "Batch Group", + "dateLastModified": "1587913246402", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "billMasters", + "type": "TO_MANY", + "confidential": false, + "label": "Bill Masters", + "optionsType": "BillMaster", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillMaster", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillMaster", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillMaster?fields=*", + "label": "Bill Transaction", + "dateLastModified": "1587691101829", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "defaultBillableCharge", + "type": "TO_ONE", + "confidential": false, + "label": "Default Billable Charge", + "optionsType": "BillableCharge", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillableCharge", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillableCharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableCharge?fields=*", + "label": "Billing Charge", + "dateLastModified": "1587691101685", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "defaultPayableCharge", + "type": "TO_ONE", + "confidential": false, + "label": "Default Payable Charge", + "optionsType": "PayableCharge", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/PayableCharge", + "hideFromSearch": false, + "associatedEntity": { + "entity": "PayableCharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayableCharge?fields=*", + "label": "Payable Charge", + "dateLastModified": "1587749770991", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "externalID", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "External ID", + "hideFromSearch": false + }, + { + "name": "payMasters", + "type": "TO_MANY", + "confidential": false, + "label": "Pay Masters", + "optionsType": "PayMaster", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/PayMaster", + "hideFromSearch": false, + "associatedEntity": { + "entity": "PayMaster", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayMaster?fields=*", + "label": "Pay Transaction", + "dateLastModified": "1587691104444", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "periodEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Period End Date", + "hideFromSearch": false + }, + { + "name": "timeOfExternalEvent", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Time Of External Event", + "hideFromSearch": false + }, + { + "name": "transactionOrigin", + "type": "TO_ONE", + "confidential": false, + "label": "Transaction Origin", + "optionsType": "TransactionOrigin", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TransactionOrigin", + "hideFromSearch": false, + "associatedEntity": { + "entity": "TransactionOrigin", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TransactionOrigin?fields=*", + "label": "Transaction Origin", + "dateLastModified": "1587913286222", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/billmaster-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/billmaster-meta-data.txt new file mode 100644 index 00000000..0d657f10 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/billmaster-meta-data.txt @@ -0,0 +1,1099 @@ +{ + "entity": "BillMaster", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillMaster?fields=*", + "label": "Bill Transaction", + "dateLastModified": "1587691101829", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "billMasterTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Bill Master Transactions", + "optionsType": "BillMasterTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillMasterTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillMasterTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillMasterTransaction?fields=*", + "label": "Bill Transaction Entry", + "dateLastModified": "1587723579988", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "billableCharge", + "type": "TO_ONE", + "confidential": false, + "label": "Billable Charge", + "optionsType": "BillableCharge", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillableCharge", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillableCharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableCharge?fields=*", + "label": "Billing Charge", + "dateLastModified": "1587691101685", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "billingSyncBatch", + "type": "TO_ONE", + "confidential": false, + "label": "Billing Sync Batch", + "optionsType": "BillingSyncBatch", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillingSyncBatch", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillingSyncBatch", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillingSyncBatch?fields=*", + "label": "Billing Sync Batch", + "dateLastModified": "1587723580204", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "canInvoice", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Can Invoice", + "options": [ + { + "value": "1", + "label": "Yes" + }, + { + "value": "0", + "label": "No" + } + ], + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "earnCode", + "type": "TO_ONE", + "dataType": "AbstractEmbeddedEntity", + "confidential": false, + "label": "Earn Code", + "optionsType": "EarnCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCode?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096687", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Code", + "hideFromSearch": false + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText10", + "hideFromSearch": false + }, + { + "name": "customText11", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText11", + "hideFromSearch": false + }, + { + "name": "customText12", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText12", + "hideFromSearch": false + }, + { + "name": "customText13", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText13", + "hideFromSearch": false + }, + { + "name": "customText14", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText14", + "hideFromSearch": false + }, + { + "name": "customText15", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText15", + "hideFromSearch": false + }, + { + "name": "customText16", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText16", + "hideFromSearch": false + }, + { + "name": "customText17", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText17", + "hideFromSearch": false + }, + { + "name": "customText18", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText18", + "hideFromSearch": false + }, + { + "name": "customText19", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText19", + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText2", + "hideFromSearch": false + }, + { + "name": "customText20", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText20", + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText8", + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateAdded", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateLastModified", + "hideFromSearch": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "earnCodeGroup", + "type": "TO_ONE", + "confidential": false, + "label": "Earn Code Group", + "optionsType": "EarnCodeGroup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeGroup", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeGroup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeGroup?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096698", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "earnCodeTypeLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "label": "Type", + "optionsType": "EarnCodeTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeTypeLookup", + "options": [ + { + "value": 1, + "label": "Reg", + "readOnly": false + }, + { + "value": 2, + "label": "OT", + "readOnly": false + }, + { + "value": 3, + "label": "DT", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeTypeLookup?fields=*", + "label": "Earn Code Type Lookup", + "dateLastModified": "1587691096799", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "externalID", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Earn Code", + "hideFromSearch": false + }, + { + "name": "generalLedgerBillAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Bill Account", + "optionsType": "GeneralLedgerBillAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerBillAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerPayAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Pay Account", + "optionsType": "GeneralLedgerPayAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerPayAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment1", + "type": "TO_ONE", + "confidential": false, + "label": "Class", + "optionsType": "GeneralLedgerSegment1", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment1", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment1", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment1?fields=*", + "label": "General Ledger Segment1", + "dateLastModified": "1587691088906", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment2", + "type": "TO_ONE", + "confidential": false, + "label": "Division", + "optionsType": "GeneralLedgerSegment2", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment2", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment2", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment2?fields=*", + "label": "General Ledger Segment2", + "dateLastModified": "1587691088945", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment3", + "type": "TO_ONE", + "confidential": false, + "label": "Department", + "optionsType": "GeneralLedgerSegment3", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment3", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment3", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment3?fields=*", + "label": "General Ledger Segment3", + "dateLastModified": "1587691088981", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment4", + "type": "TO_ONE", + "confidential": false, + "label": "Country", + "optionsType": "GeneralLedgerSegment4", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment4", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment4", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment4?fields=*", + "label": "General Ledger Segment4", + "dateLastModified": "1587691089009", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment5", + "type": "TO_ONE", + "confidential": false, + "label": "Location", + "optionsType": "GeneralLedgerSegment5", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment5", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment5", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment5?fields=*", + "label": "General Ledger Segment5", + "dateLastModified": "1587691089045", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerServiceCode", + "type": "TO_ONE", + "confidential": false, + "label": "Product/Service Code", + "optionsType": "GeneralLedgerServiceCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerServiceCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerServiceCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerServiceCode?fields=*", + "label": "General Ledger Service Code", + "dateLastModified": "1587691089077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalServiceCodeNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Number", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "isDeleted", + "hideFromSearch": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "userID", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "status", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Status", + "options": [ + { + "value": "Active", + "label": "Active" + }, + { + "value": "Inactive", + "label": "Inactive" + } + ], + "hideFromSearch": false + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + } + ] + } + }, + { + "name": "location", + "type": "TO_ONE", + "confidential": false, + "label": "Location", + "optionsType": "Location", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Location", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Location", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Location?fields=*", + "label": "Location", + "dateLastModified": "1587691077835", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "clientCorporationID", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "candidate", + "type": "TO_ONE", + "confidential": false, + "label": "candidateUserID", + "optionsType": "Candidate", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Candidate", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Candidate", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Candidate?fields=*", + "label": "Candidate", + "dateLastModified": "1587752500417", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Effective Date", + "hideFromSearch": false + }, + { + "name": "effectiveEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "effectiveEndDate", + "hideFromSearch": false + }, + { + "name": "versionID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "LocationVersionID", + "hideFromSearch": false + }, + { + "name": "externalID", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Location Code", + "hideFromSearch": false + } + ] + } + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "Owner", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "transactionDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Date", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/billmastertransaction-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/billmastertransaction-meta-data.txt new file mode 100644 index 00000000..8f9a07b8 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/billmastertransaction-meta-data.txt @@ -0,0 +1,393 @@ +{ + "entity": "BillMasterTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillMasterTransaction?fields=*", + "label": "Bill Transaction Entry", + "dateLastModified": "1587723579988", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "adjustmentSequenceNumber", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "Adjustment Sequence Number", + "hideFromSearch": false + }, + { + "name": "amount", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Amount", + "hideFromSearch": false + }, + { + "name": "billMaster", + "type": "TO_ONE", + "confidential": false, + "label": "Bill Master ID", + "optionsType": "BillMaster", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillMaster", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillMaster", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillMaster?fields=*", + "label": "Bill Transaction", + "dateLastModified": "1587691101829", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "comment", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Comment", + "hideFromSearch": false + }, + { + "name": "currencyUnit", + "type": "TO_ONE", + "confidential": false, + "label": "Currency", + "optionsType": "CurrencyUnit", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CurrencyUnit", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CurrencyUnit", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CurrencyUnit?fields=*", + "label": "Currency Unit", + "dateLastModified": "1587691101823", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "alphabeticCode", + "type": "SCALAR", + "dataType": "String", + "maxLength": 3, + "confidential": false, + "label": "Alphabetic Code", + "hideFromSearch": false + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "invoiceStatement", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice", + "optionsType": "InvoiceStatement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatement?fields=*", + "label": "Invoice", + "dateLastModified": "1587691104113", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "invoiceStatementBatch", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Statement Batch", + "optionsType": "InvoiceStatementBatch", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementBatch", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementBatch", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementBatch?fields=*", + "label": "Invoice Statement Batch", + "dateLastModified": "1587831815821", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "invoiceStatementLineItem", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Line Item", + "optionsType": "InvoiceStatementLineItem", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementLineItem", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementLineItem", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementLineItem?fields=*", + "label": "Line Item", + "dateLastModified": "1587691105710", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "needsReview", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Needs Review", + "hideFromSearch": false + }, + { + "name": "quantity", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Qty", + "hideFromSearch": false + }, + { + "name": "rate", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Billing Rate", + "hideFromSearch": false + }, + { + "name": "recordingDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Recording Date", + "hideFromSearch": false + }, + { + "name": "reversalOfTransaction", + "type": "TO_ONE", + "confidential": false, + "label": "Reversal Of Transaction ID", + "optionsType": "BillMasterTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillMasterTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillMasterTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillMasterTransaction?fields=*", + "label": "Bill Transaction Entry", + "dateLastModified": "1587723579988", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "transactionOrigin", + "type": "TO_ONE", + "confidential": false, + "label": "Transaction Origin", + "optionsType": "TransactionOrigin", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TransactionOrigin", + "hideFromSearch": false, + "associatedEntity": { + "entity": "TransactionOrigin", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TransactionOrigin?fields=*", + "label": "Transaction Origin", + "dateLastModified": "1587913286222", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "transactionStatus", + "type": "TO_ONE", + "confidential": false, + "label": "Transaction Status", + "optionsType": "TransactionStatus", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TransactionStatus", + "hideFromSearch": false, + "associatedEntity": { + "entity": "TransactionStatus", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TransactionStatus?fields=*", + "label": "Transaction Status", + "dateLastModified": "1587691102017", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "transactionType", + "type": "TO_ONE", + "confidential": false, + "label": "Transaction Type", + "optionsType": "TransactionType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TransactionType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "TransactionType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TransactionType?fields=*", + "label": "Transaction Type", + "dateLastModified": "1587691102988", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "unitOfMeasure", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "Unit", + "optionsType": "UnitOfMeasure", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/UnitOfMeasure", + "options": [ + { + "value": 1, + "label": "Hours", + "readOnly": false + }, + { + "value": 2, + "label": "Days", + "readOnly": false + }, + { + "value": 3, + "label": "Weeks", + "readOnly": false + }, + { + "value": 4, + "label": "Months", + "readOnly": false + }, + { + "value": 5, + "label": "Units", + "readOnly": false + }, + { + "value": 6, + "label": "Amount", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "UnitOfMeasure", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/UnitOfMeasure?fields=*", + "label": "Unit Of Measure", + "dateLastModified": "1587691097767", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/canvasreport-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/canvasreport-meta-data.txt new file mode 100644 index 00000000..a1eda3ee --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/canvasreport-meta-data.txt @@ -0,0 +1,192 @@ +{ + "entity": "CanvasReport", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CanvasReport?fields=*", + "label": "Canvas Report", + "dateLastModified": "1587727724127", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "dateLastRun", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Run", + "hideFromSearch": false + }, + { + "name": "departments", + "type": "TO_MANY", + "confidential": false, + "label": "Departments", + "optionsType": "CorporationDepartment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporationDepartment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporationDepartment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporationDepartment?fields=*", + "label": "Corporation Department", + "dateLastModified": "1587691068293", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 1000, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Deleted", + "hideFromSearch": false + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Name", + "hideFromSearch": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "Owner", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "path", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Path", + "hideFromSearch": false + }, + { + "name": "users", + "type": "TO_MANY", + "confidential": false, + "label": "Users", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "visibility", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Visibility", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/discount-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/discount-meta-data.txt new file mode 100644 index 00000000..17f2ea3d --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/discount-meta-data.txt @@ -0,0 +1,912 @@ +{ + "entity": "Discount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Discount?fields=*", + "label": "Discount", + "dateLastModified": "1587912567739", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "addedByUser", + "type": "TO_ONE", + "confidential": false, + "label": "addedByUserID", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "discountType", + "type": "TO_ONE", + "confidential": false, + "label": "Discount Type", + "optionsType": "DiscountType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/DiscountType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "DiscountType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/DiscountType?fields=*", + "label": "Discount Type", + "dateLastModified": "1587912567879", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "earnCode", + "type": "TO_ONE", + "dataType": "AbstractEmbeddedEntity", + "confidential": false, + "label": "Earn Code", + "optionsType": "EarnCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCode?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096687", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Code", + "hideFromSearch": false + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText10", + "hideFromSearch": false + }, + { + "name": "customText11", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText11", + "hideFromSearch": false + }, + { + "name": "customText12", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText12", + "hideFromSearch": false + }, + { + "name": "customText13", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText13", + "hideFromSearch": false + }, + { + "name": "customText14", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText14", + "hideFromSearch": false + }, + { + "name": "customText15", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText15", + "hideFromSearch": false + }, + { + "name": "customText16", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText16", + "hideFromSearch": false + }, + { + "name": "customText17", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText17", + "hideFromSearch": false + }, + { + "name": "customText18", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText18", + "hideFromSearch": false + }, + { + "name": "customText19", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText19", + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText2", + "hideFromSearch": false + }, + { + "name": "customText20", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText20", + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText8", + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateAdded", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateLastModified", + "hideFromSearch": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "earnCodeGroup", + "type": "TO_ONE", + "confidential": false, + "label": "Earn Code Group", + "optionsType": "EarnCodeGroup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeGroup", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeGroup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeGroup?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096698", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "earnCodeTypeLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "label": "Type", + "optionsType": "EarnCodeTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeTypeLookup", + "options": [ + { + "value": 1, + "label": "Reg", + "readOnly": false + }, + { + "value": 2, + "label": "OT", + "readOnly": false + }, + { + "value": 3, + "label": "DT", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeTypeLookup?fields=*", + "label": "Earn Code Type Lookup", + "dateLastModified": "1587691096799", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "externalID", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Earn Code", + "hideFromSearch": false + }, + { + "name": "generalLedgerBillAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Bill Account", + "optionsType": "GeneralLedgerBillAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerBillAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerPayAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Pay Account", + "optionsType": "GeneralLedgerPayAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerPayAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment1", + "type": "TO_ONE", + "confidential": false, + "label": "Class", + "optionsType": "GeneralLedgerSegment1", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment1", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment1", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment1?fields=*", + "label": "General Ledger Segment1", + "dateLastModified": "1587691088906", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment2", + "type": "TO_ONE", + "confidential": false, + "label": "Division", + "optionsType": "GeneralLedgerSegment2", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment2", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment2", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment2?fields=*", + "label": "General Ledger Segment2", + "dateLastModified": "1587691088945", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment3", + "type": "TO_ONE", + "confidential": false, + "label": "Department", + "optionsType": "GeneralLedgerSegment3", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment3", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment3", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment3?fields=*", + "label": "General Ledger Segment3", + "dateLastModified": "1587691088981", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment4", + "type": "TO_ONE", + "confidential": false, + "label": "Country", + "optionsType": "GeneralLedgerSegment4", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment4", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment4", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment4?fields=*", + "label": "General Ledger Segment4", + "dateLastModified": "1587691089009", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment5", + "type": "TO_ONE", + "confidential": false, + "label": "Location", + "optionsType": "GeneralLedgerSegment5", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment5", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment5", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment5?fields=*", + "label": "General Ledger Segment5", + "dateLastModified": "1587691089045", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerServiceCode", + "type": "TO_ONE", + "confidential": false, + "label": "Product/Service Code", + "optionsType": "GeneralLedgerServiceCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerServiceCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerServiceCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerServiceCode?fields=*", + "label": "General Ledger Service Code", + "dateLastModified": "1587691089077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalServiceCodeNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Number", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "isDeleted", + "hideFromSearch": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "userID", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "status", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Status", + "options": [ + { + "value": "Active", + "label": "Active" + }, + { + "value": "Inactive", + "label": "Inactive" + } + ], + "hideFromSearch": false + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + } + ] + } + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + }, + { + "name": "value", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Value", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/earncode-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/earncode-meta-data.txt new file mode 100644 index 00000000..f47c57b9 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/earncode-meta-data.txt @@ -0,0 +1,793 @@ +{ + "entity": "EarnCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCode?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096687", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Code", + "hideFromSearch": false + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText10", + "hideFromSearch": false + }, + { + "name": "customText11", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText11", + "hideFromSearch": false + }, + { + "name": "customText12", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText12", + "hideFromSearch": false + }, + { + "name": "customText13", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText13", + "hideFromSearch": false + }, + { + "name": "customText14", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText14", + "hideFromSearch": false + }, + { + "name": "customText15", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText15", + "hideFromSearch": false + }, + { + "name": "customText16", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText16", + "hideFromSearch": false + }, + { + "name": "customText17", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText17", + "hideFromSearch": false + }, + { + "name": "customText18", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText18", + "hideFromSearch": false + }, + { + "name": "customText19", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText19", + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText2", + "hideFromSearch": false + }, + { + "name": "customText20", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText20", + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText8", + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateAdded", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateLastModified", + "hideFromSearch": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "earnCodeGroup", + "type": "TO_ONE", + "confidential": false, + "label": "Earn Code Group", + "optionsType": "EarnCodeGroup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeGroup", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeGroup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeGroup?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096698", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "earnCodeTypeLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "label": "Type", + "optionsType": "EarnCodeTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeTypeLookup", + "options": [ + { + "value": 1, + "label": "Reg", + "readOnly": false + }, + { + "value": 2, + "label": "OT", + "readOnly": false + }, + { + "value": 3, + "label": "DT", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeTypeLookup?fields=*", + "label": "Earn Code Type Lookup", + "dateLastModified": "1587691096799", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "externalID", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Earn Code", + "hideFromSearch": false + }, + { + "name": "generalLedgerBillAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Bill Account", + "optionsType": "GeneralLedgerBillAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerBillAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerPayAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Pay Account", + "optionsType": "GeneralLedgerPayAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerPayAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment1", + "type": "TO_ONE", + "confidential": false, + "label": "Class", + "optionsType": "GeneralLedgerSegment1", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment1", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment1", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment1?fields=*", + "label": "General Ledger Segment1", + "dateLastModified": "1587691088906", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment2", + "type": "TO_ONE", + "confidential": false, + "label": "Division", + "optionsType": "GeneralLedgerSegment2", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment2", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment2", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment2?fields=*", + "label": "General Ledger Segment2", + "dateLastModified": "1587691088945", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment3", + "type": "TO_ONE", + "confidential": false, + "label": "Department", + "optionsType": "GeneralLedgerSegment3", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment3", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment3", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment3?fields=*", + "label": "General Ledger Segment3", + "dateLastModified": "1587691088981", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment4", + "type": "TO_ONE", + "confidential": false, + "label": "Country", + "optionsType": "GeneralLedgerSegment4", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment4", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment4", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment4?fields=*", + "label": "General Ledger Segment4", + "dateLastModified": "1587691089009", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment5", + "type": "TO_ONE", + "confidential": false, + "label": "Location", + "optionsType": "GeneralLedgerSegment5", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment5", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment5", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment5?fields=*", + "label": "General Ledger Segment5", + "dateLastModified": "1587691089045", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerServiceCode", + "type": "TO_ONE", + "confidential": false, + "label": "Product/Service Code", + "optionsType": "GeneralLedgerServiceCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerServiceCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerServiceCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerServiceCode?fields=*", + "label": "General Ledger Service Code", + "dateLastModified": "1587691089077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalServiceCodeNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Number", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "isDeleted", + "hideFromSearch": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "userID", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "status", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Status", + "options": [ + { + "value": "Active", + "label": "Active" + }, + { + "value": "Inactive", + "label": "Inactive" + } + ], + "hideFromSearch": false + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/generalledgersegment-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment-meta-data.txt new file mode 100644 index 00000000..623b9774 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment-meta-data.txt @@ -0,0 +1,95 @@ +{ + "entity": "GeneralLedgerSegment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment?fields=*", + "label": "General Ledger Segment", + "dateLastModified": "1587912246138", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "generalLedgerSegmentType", + "type": "TO_ONE", + "confidential": false, + "label": "General Ledger Segment Type ID", + "optionsType": "GeneralLedgerSegmentType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegmentType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegmentType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegmentType?fields=*", + "label": "General Ledger Segment Type", + "dateLastModified": "1587912246260", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "isActive", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Active", + "options": [ + { + "value": true, + "label": "Yes" + }, + { + "value": false, + "label": "No" + } + ], + "hideFromSearch": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Deleted", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/generalledgersegment1-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment1-meta-data.txt new file mode 100644 index 00000000..2cff47ed --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment1-meta-data.txt @@ -0,0 +1,85 @@ +{ + "entity": "GeneralLedgerSegment1", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment1?fields=*", + "label": "General Ledger Segment1", + "dateLastModified": "1587691088906", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "generalLedgerSegmentType", + "type": "TO_ONE", + "confidential": false, + "label": "General Ledger Segment Type", + "optionsType": "GeneralLedgerSegmentType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegmentType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegmentType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegmentType?fields=*", + "label": "General Ledger Segment Type", + "dateLastModified": "1587912246260", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "isActive", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Active", + "hideFromSearch": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Deleted", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/generalledgersegment2-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment2-meta-data.txt new file mode 100644 index 00000000..295e2c58 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment2-meta-data.txt @@ -0,0 +1,85 @@ +{ + "entity": "GeneralLedgerSegment2", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment2?fields=*", + "label": "General Ledger Segment2", + "dateLastModified": "1587691088945", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "generalLedgerSegmentType", + "type": "TO_ONE", + "confidential": false, + "label": "General Ledger Segment Type", + "optionsType": "GeneralLedgerSegmentType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegmentType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegmentType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegmentType?fields=*", + "label": "General Ledger Segment Type", + "dateLastModified": "1587912246260", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "isActive", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Active", + "hideFromSearch": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Deleted", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/generalledgersegment3-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment3-meta-data.txt new file mode 100644 index 00000000..169c9e8a --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment3-meta-data.txt @@ -0,0 +1,85 @@ +{ + "entity": "GeneralLedgerSegment3", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment3?fields=*", + "label": "General Ledger Segment3", + "dateLastModified": "1587691088981", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "generalLedgerSegmentType", + "type": "TO_ONE", + "confidential": false, + "label": "General Ledger Segment Type", + "optionsType": "GeneralLedgerSegmentType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegmentType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegmentType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegmentType?fields=*", + "label": "General Ledger Segment Type", + "dateLastModified": "1587912246260", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "isActive", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Active", + "hideFromSearch": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Deleted", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/generalledgersegment4-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment4-meta-data.txt new file mode 100644 index 00000000..0865ae81 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment4-meta-data.txt @@ -0,0 +1,85 @@ +{ + "entity": "GeneralLedgerSegment4", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment4?fields=*", + "label": "General Ledger Segment4", + "dateLastModified": "1587691089009", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "generalLedgerSegmentType", + "type": "TO_ONE", + "confidential": false, + "label": "General Ledger Segment Type", + "optionsType": "GeneralLedgerSegmentType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegmentType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegmentType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegmentType?fields=*", + "label": "General Ledger Segment Type", + "dateLastModified": "1587912246260", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "isActive", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Active", + "hideFromSearch": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Deleted", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/generalledgersegment5-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment5-meta-data.txt new file mode 100644 index 00000000..4ae355da --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/generalledgersegment5-meta-data.txt @@ -0,0 +1,85 @@ +{ + "entity": "GeneralLedgerSegment5", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment5?fields=*", + "label": "General Ledger Segment5", + "dateLastModified": "1587691089045", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "generalLedgerSegmentType", + "type": "TO_ONE", + "confidential": false, + "label": "General Ledger Segment Type", + "optionsType": "GeneralLedgerSegmentType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegmentType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegmentType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegmentType?fields=*", + "label": "General Ledger Segment Type", + "dateLastModified": "1587912246260", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "isActive", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Active", + "hideFromSearch": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Deleted", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/generalledgersegmenttype-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/generalledgersegmenttype-meta-data.txt new file mode 100644 index 00000000..46ad854b --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/generalledgersegmenttype-meta-data.txt @@ -0,0 +1,39 @@ +{ + "entity": "GeneralLedgerSegmentType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegmentType?fields=*", + "label": "General Ledger Segment Type", + "dateLastModified": "1587912246260", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "isEnabled", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Enabled", + "hideFromSearch": false + }, + { + "name": "segmentType", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Segment Type", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/generalledgerservicecode-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/generalledgerservicecode-meta-data.txt new file mode 100644 index 00000000..73451a1b --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/generalledgerservicecode-meta-data.txt @@ -0,0 +1,73 @@ +{ + "entity": "GeneralLedgerServiceCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerServiceCode?fields=*", + "label": "General Ledger Service Code", + "dateLastModified": "1587691089077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Name", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Number", + "hideFromSearch": false + }, + { + "name": "isActive", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Active", + "options": [ + { + "value": true, + "label": "Yes" + }, + { + "value": false, + "label": "No" + } + ], + "hideFromSearch": false + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Deleted", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/invoicestatement-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/invoicestatement-meta-data.txt new file mode 100644 index 00000000..57d3d0f5 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/invoicestatement-meta-data.txt @@ -0,0 +1,1313 @@ +{ + "entity": "InvoiceStatement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatement?fields=*", + "label": "Invoice", + "dateLastModified": "1587691104113", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "billingAddress", + "type": "COMPOSITE", + "dataType": "BillingAddress", + "confidential": false, + "label": "Billing Address", + "hideFromSearch": false, + "fields": [ + { + "name": "address1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Billing Address 1", + "hideFromSearch": false + }, + { + "name": "address2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Billing Address 2", + "hideFromSearch": false + }, + { + "name": "city", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Billing City", + "hideFromSearch": false + }, + { + "name": "state", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Billing State", + "optionsType": "NorthAmericaState", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/NorthAmericaState", + "hideFromSearch": false + }, + { + "name": "zip", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Billing Zip", + "hideFromSearch": false + }, + { + "name": "countryID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "Billing Country", + "optionsType": "Country", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Country", + "hideFromSearch": false + }, + { + "name": "countryCode", + "type": "SCALAR", + "dataType": "String", + "maxLength": 0 + }, + { + "name": "countryName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 0 + } + ] + }, + { + "name": "billingAttention", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Bill-to Attention", + "hideFromSearch": false + }, + { + "name": "billingClientContact", + "type": "TO_ONE", + "confidential": false, + "label": "Billing Contact", + "optionsType": "ClientContact", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientContact", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientContact", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientContact?fields=*", + "label": "Contact", + "dateLastModified": "1587752500417", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "billingCorporateUser", + "type": "TO_ONE", + "confidential": false, + "label": "Billing Specialist", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "billingPeriodEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Billing Period End Date", + "hideFromSearch": false + }, + { + "name": "billingProfile", + "type": "TO_ONE", + "confidential": false, + "label": "Billing Profile", + "optionsType": "BillingProfile", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillingProfile", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillingProfile", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillingProfile?fields=*", + "label": "Billing Profile", + "dateLastModified": "1587691075608", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Client Corporation", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Effective Date", + "hideFromSearch": false + }, + { + "name": "effectiveEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "effectiveEndDate", + "hideFromSearch": false + }, + { + "name": "versionID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "billingProfileVersionID", + "hideFromSearch": false + }, + { + "name": "billingClientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Bill-to Client", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + } + ] + } + }, + { + "name": "billingScheduleID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "Billing Schedule", + "hideFromSearch": false + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Client Corporation", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "creditOfInvoiceStatement", + "type": "TO_ONE", + "confidential": false, + "label": "Credit Of", + "optionsType": "InvoiceStatement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatement?fields=*", + "label": "Invoice", + "dateLastModified": "1587691104113", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "creditedByInvoiceStatement", + "type": "TO_ONE", + "confidential": false, + "label": "Credited By Invoice Statement", + "optionsType": "InvoiceStatement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatement?fields=*", + "label": "Invoice", + "dateLastModified": "1587691104113", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "currencyUnit", + "type": "TO_ONE", + "confidential": false, + "label": "Currency", + "optionsType": "CurrencyUnit", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CurrencyUnit", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CurrencyUnit", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CurrencyUnit?fields=*", + "label": "Currency Unit", + "dateLastModified": "1587691101823", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "alphabeticCode", + "type": "SCALAR", + "dataType": "String", + "maxLength": 3, + "confidential": false, + "label": "Alphabetic Code", + "hideFromSearch": false + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "deliveryMethod", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Delivery Method", + "options": [ + { + "value": "Email", + "label": "Email" + }, + { + "value": "Print", + "label": "Print" + }, + { + "value": "Do not Print", + "label": "Do not Print" + } + ], + "hideFromSearch": false + }, + { + "name": "deliveryStatus", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "Delivery Status", + "optionsType": "InvoiceStatementDeliveryStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementDeliveryStatusLookup", + "options": [ + { + "value": 1, + "label": "N/A", + "readOnly": false + }, + { + "value": 2, + "label": "Email Not Sent", + "readOnly": false + }, + { + "value": 3, + "label": "Email Sent", + "readOnly": false + }, + { + "value": 4, + "label": "Export Generation Failed", + "readOnly": false + }, + { + "value": 5, + "label": "Export Generating", + "readOnly": false + }, + { + "value": 6, + "label": "Email Sending", + "readOnly": false + }, + { + "value": 7, + "label": "Ready to Print", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementDeliveryStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementDeliveryStatusLookup?fields=*", + "label": "Invoice Statement Delivery Status", + "dateLastModified": "1587691104463", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "discountAmount", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Discount Amount", + "hideFromSearch": false + }, + { + "name": "discountTotal", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Discount Total", + "hideFromSearch": false + }, + { + "name": "discounts", + "type": "TO_MANY", + "confidential": false, + "label": "Discounts", + "optionsType": "InvoiceStatementDiscount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementDiscount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementDiscount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementDiscount?fields=*", + "label": "Invoice Statement Discount", + "dateLastModified": "1587691104665", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "dueDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Due Date", + "hideFromSearch": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Effective Date", + "hideFromSearch": false + }, + { + "name": "emailErrorReason", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Email Error Reason", + "hideFromSearch": false + }, + { + "name": "generalLedgerExportStatusLookup", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "General Ledger Export Status", + "optionsType": "GeneralLedgerExportStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerExportStatusLookup", + "options": [ + { + "value": 1, + "label": "Not Ready to Export", + "readOnly": false + }, + { + "value": 2, + "label": "Ready to Export", + "readOnly": false + }, + { + "value": 3, + "label": "Export Queued", + "readOnly": false + }, + { + "value": 4, + "label": "Export Processing", + "readOnly": false + }, + { + "value": 5, + "label": "Export Successful", + "readOnly": false + }, + { + "value": 6, + "label": "Export Failure", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerExportStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerExportStatusLookup?fields=*", + "label": "General Ledger Export Status", + "dateLastModified": "1587691104821", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "invoiceStatementDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Invoice Statement Date", + "hideFromSearch": false + }, + { + "name": "invoiceStatementExportBatches", + "type": "TO_MANY", + "confidential": false, + "label": "Invoice Statement Export Batches", + "optionsType": "InvoiceStatementExportBatch", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementExportBatch", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementExportBatch", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementExportBatch?fields=*", + "label": "Invoice Statement Export Batch", + "dateLastModified": "1587691104859", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "invoiceStatementExports", + "type": "TO_MANY", + "confidential": false, + "label": "Invoice Statement Exports", + "optionsType": "InvoiceStatementExport", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementExport", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementExport", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementExport?fields=*", + "label": "Invoice Statement Export", + "dateLastModified": "1587691105025", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "invoiceStatementFinalizedDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Finalized Date", + "hideFromSearch": false + }, + { + "name": "invoiceStatementNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Invoice Statement Number", + "hideFromSearch": false + }, + { + "name": "invoiceStatementOrigin", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Origin", + "options": [ + { + "value": "System Generated", + "label": "System Generated" + }, + { + "value": "Manual", + "label": "Manual" + } + ], + "hideFromSearch": false + }, + { + "name": "invoiceStatementTemplate", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Statement Template", + "optionsType": "InvoiceStatementTemplate", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementTemplate", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementTemplate", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementTemplate?fields=*", + "label": "Invoice Statement Template", + "dateLastModified": "1587691102010", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "invoiceStatementType", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "Invoice Statement Type", + "optionsType": "InvoiceStatementTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementTypeLookup", + "options": [ + { + "value": 1, + "label": "Original", + "readOnly": false + }, + { + "value": 2, + "label": "Credit - Reinstated", + "readOnly": false + }, + { + "value": 3, + "label": "Credit - Write-Off", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementTypeLookup?fields=*", + "label": "Invoice Statement Type Lookup", + "dateLastModified": "1587691105362", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "invoiceTerm", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Terms", + "optionsType": "InvoiceTerms", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceTerms", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceTerm", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceTerm?fields=*", + "label": "Invoice Terms", + "dateLastModified": "1587691101711", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Client Corporation", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + }, + { + "name": "effectiveDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Effective Date", + "hideFromSearch": false + }, + { + "name": "effectiveEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "effectiveEndDate", + "hideFromSearch": false + }, + { + "name": "versionID", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "invoiceTermVersionID", + "hideFromSearch": false + } + ] + } + }, + { + "name": "isCredited", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Credited", + "options": [ + { + "value": "1", + "label": "Yes" + }, + { + "value": "0", + "label": "No" + } + ], + "hideFromSearch": false + }, + { + "name": "isFinalized", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Finalized?", + "hideFromSearch": false + }, + { + "name": "isReinstated", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Reinstated", + "options": [ + { + "value": "1", + "label": "Yes" + }, + { + "value": "0", + "label": "No" + } + ], + "hideFromSearch": false + }, + { + "name": "lineItemTotal", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Line Item Total", + "hideFromSearch": false + }, + { + "name": "lineItems", + "type": "TO_MANY", + "confidential": false, + "label": "Line Items", + "optionsType": "InvoiceStatementLineItem", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementLineItem", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementLineItem", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementLineItem?fields=*", + "label": "Line Item", + "dateLastModified": "1587691105710", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "Owner", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "paymentTerms", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Payment Terms", + "options": [ + { + "value": "0", + "label": "Due Upon Receipt" + }, + { + "value": "5", + "label": "Net 5" + }, + { + "value": "10", + "label": "Net 10" + }, + { + "value": "15", + "label": "Net 15" + }, + { + "value": "30", + "label": "Net 30" + }, + { + "value": "45", + "label": "Net 45" + }, + { + "value": "60", + "label": "Net 60" + } + ], + "hideFromSearch": false + }, + { + "name": "previousBalance", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Previous Balance", + "hideFromSearch": false + }, + { + "name": "purchaseOrderNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "PO Number", + "hideFromSearch": false + }, + { + "name": "remitInstructions", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Remit Instructions", + "hideFromSearch": false + }, + { + "name": "splitBys", + "type": "TO_MANY", + "confidential": false, + "label": "Split Bys", + "optionsType": "InvoiceStatementSplitBy", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementSplitBy", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementSplitBy", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementSplitBy?fields=*", + "label": "Invoice Statement Split By", + "dateLastModified": "1587691105910", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "status", + "type": "TO_ONE", + "dataType": "WorkflowOptionsLookup", + "confidential": false, + "label": "Status", + "optionsType": "InvoiceStatementStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementStatusLookup", + "options": [ + { + "value": 1, + "label": "New", + "readOnly": false + }, + { + "value": 2, + "label": "Ready", + "readOnly": true + }, + { + "value": 3, + "label": "Hold", + "readOnly": false + }, + { + "value": 4, + "label": "Finalized", + "readOnly": true + }, + { + "value": 5, + "label": "Finalization Error", + "readOnly": true + }, + { + "value": 6, + "label": "Finalization In Progress", + "readOnly": true + } + ], + "hideFromSearch": false, + "workflowOptions": { + "1": [ + { + "value": 3, + "label": "Hold" + } + ], + "2": [ + { + "value": 1, + "label": "New" + }, + { + "value": 3, + "label": "Hold" + } + ], + "3": [ + { + "value": 1, + "label": "New" + } + ], + "4": [], + "5": [ + { + "value": 3, + "label": "Hold" + }, + { + "value": 1, + "label": "New" + } + ], + "initial": [ + { + "value": 1, + "label": "New" + }, + { + "value": 3, + "label": "Hold" + } + ], + "6": [ + { + "value": 3, + "label": "Hold" + }, + { + "value": 1, + "label": "New" + } + ] + }, + "associatedEntity": { + "entity": "InvoiceStatementStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementStatusLookup?fields=*", + "label": "Invoice Statement Status Lookup", + "dateLastModified": "1587691104456", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "subtotal", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Pre-tax Amount", + "hideFromSearch": false + }, + { + "name": "surchargeTotal", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Surcharge Total", + "hideFromSearch": false + }, + { + "name": "surcharges", + "type": "TO_MANY", + "confidential": false, + "label": "Surcharges", + "optionsType": "InvoiceStatementSurcharge", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementSurcharge", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementSurcharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementSurcharge?fields=*", + "label": "Invoice Statement Surcharge", + "dateLastModified": "1587691106123", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "taxAmount", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Tax Amount", + "hideFromSearch": false + }, + { + "name": "taxTotal", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Tax Total", + "hideFromSearch": false + }, + { + "name": "taxes", + "type": "TO_MANY", + "confidential": false, + "label": "Taxes", + "optionsType": "InvoiceStatementTax", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementTax", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementTax", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementTax?fields=*", + "label": "Invoice Statement Tax", + "dateLastModified": "1587691106196", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "total", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Total Amount", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/invoicestatementbatch-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/invoicestatementbatch-meta-data.txt new file mode 100644 index 00000000..a4b51d12 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/invoicestatementbatch-meta-data.txt @@ -0,0 +1,136 @@ +{ + "entity": "InvoiceStatementBatch", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementBatch?fields=*", + "label": "Invoice Statement Batch", + "dateLastModified": "1587831815821", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "batchStatus", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "label": "Batch Status", + "optionsType": "BatchStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BatchStatusLookup", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BatchStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BatchStatusLookup?fields=*", + "label": "Batch Status Lookup", + "dateLastModified": "1587725377914", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "billMasterTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Bill Master Transactions", + "optionsType": "BillMasterTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillMasterTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillMasterTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillMasterTransaction?fields=*", + "label": "Bill Transaction Entry", + "dateLastModified": "1587723579988", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "billableCharges", + "type": "TO_MANY", + "confidential": false, + "label": "Billable Charges", + "optionsType": "BillableCharge", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillableCharge", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillableCharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillableCharge?fields=*", + "label": "Billing Charge", + "dateLastModified": "1587691101685", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "Owner", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/invoicestatementdiscount-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/invoicestatementdiscount-meta-data.txt new file mode 100644 index 00000000..11db2ce9 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/invoicestatementdiscount-meta-data.txt @@ -0,0 +1,65 @@ +{ + "entity": "InvoiceStatementDiscount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementDiscount?fields=*", + "label": "Invoice Statement Discount", + "dateLastModified": "1587691104665", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "discount", + "type": "TO_ONE", + "confidential": false, + "label": "Discount", + "optionsType": "Discount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Discount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Discount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Discount?fields=*", + "label": "Discount", + "dateLastModified": "1587912567739", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "finalizedValue", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Finalized Value", + "hideFromSearch": false + }, + { + "name": "invoiceStatement", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Statement", + "optionsType": "InvoiceStatement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatement?fields=*", + "label": "Invoice", + "dateLastModified": "1587691104113", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/invoicestatementexportbatch-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/invoicestatementexportbatch-meta-data.txt new file mode 100644 index 00000000..0854cc6c --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/invoicestatementexportbatch-meta-data.txt @@ -0,0 +1,114 @@ +{ + "entity": "InvoiceStatementExportBatch", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementExportBatch?fields=*", + "label": "Invoice Statement Export Batch", + "dateLastModified": "1587691104859", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "batchStatus", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "label": "Batch Status", + "optionsType": "BatchStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BatchStatusLookup", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BatchStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BatchStatusLookup?fields=*", + "label": "Batch Status Lookup", + "dateLastModified": "1587725377914", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "invoiceStatement", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Statement", + "optionsType": "InvoiceStatement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatement?fields=*", + "label": "Invoice", + "dateLastModified": "1587691104113", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "Owner", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/invoicestatementlineitem-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/invoicestatementlineitem-meta-data.txt new file mode 100644 index 00000000..ed5d2084 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/invoicestatementlineitem-meta-data.txt @@ -0,0 +1,224 @@ +{ + "entity": "InvoiceStatementLineItem", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementLineItem?fields=*", + "label": "Line Item", + "dateLastModified": "1587691105710", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "billMasterTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Bill Master Transactions", + "optionsType": "BillMasterTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillMasterTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillMasterTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillMasterTransaction?fields=*", + "label": "Bill Transaction Entry", + "dateLastModified": "1587723579988", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "comment", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Comment", + "hideFromSearch": false + }, + { + "name": "currencyUnit", + "type": "TO_ONE", + "confidential": false, + "label": "Currency", + "optionsType": "CurrencyUnit", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CurrencyUnit", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CurrencyUnit", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CurrencyUnit?fields=*", + "label": "Currency Unit", + "dateLastModified": "1587691101823", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "alphabeticCode", + "type": "SCALAR", + "dataType": "String", + "maxLength": 3, + "confidential": false, + "label": "Alphabetic Code", + "hideFromSearch": false + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "groupByDisplay", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Group By Display", + "hideFromSearch": false + }, + { + "name": "groupBys", + "type": "TO_MANY", + "confidential": false, + "label": "Group by", + "optionsType": "InvoiceStatementLineItemGroupBy", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementLineItemGroupBy", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementLineItemGroupBy", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementLineItemGroupBy?fields=*", + "label": "Invoice Statement Line Item Group By", + "dateLastModified": "1587913150202", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "invoiceStatement", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Statement", + "optionsType": "InvoiceStatement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatement?fields=*", + "label": "Invoice", + "dateLastModified": "1587691104113", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "quantity", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Quantity", + "hideFromSearch": false + }, + { + "name": "rate", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Rate", + "hideFromSearch": false + }, + { + "name": "subtotal", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Pre-tax Amount", + "hideFromSearch": false + }, + { + "name": "summarizeBys", + "type": "TO_MANY", + "confidential": false, + "label": "Summarize Bys", + "optionsType": "InvoiceStatementLineItemSummarizeBy", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatementLineItemSummarizeBy", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatementLineItemSummarizeBy", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementLineItemSummarizeBy?fields=*", + "label": "Invoice Statement Line Item Summarize By", + "dateLastModified": "1587913150392", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "taxAmount", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Tax Amount", + "hideFromSearch": false + }, + { + "name": "total", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Total Amount", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/invoicestatementsurcharge-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/invoicestatementsurcharge-meta-data.txt new file mode 100644 index 00000000..77757e4b --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/invoicestatementsurcharge-meta-data.txt @@ -0,0 +1,65 @@ +{ + "entity": "InvoiceStatementSurcharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementSurcharge?fields=*", + "label": "Invoice Statement Surcharge", + "dateLastModified": "1587691106123", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "finalizedValue", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Finalized Value", + "hideFromSearch": false + }, + { + "name": "invoiceStatement", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Statement", + "optionsType": "InvoiceStatement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatement?fields=*", + "label": "Invoice", + "dateLastModified": "1587691104113", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "surcharge", + "type": "TO_ONE", + "confidential": false, + "label": "Surcharge", + "optionsType": "Surcharge", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Surcharge", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Surcharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Surcharge?fields=*", + "label": "Surcharge", + "dateLastModified": "1587726059332", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/invoicestatementtax-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/invoicestatementtax-meta-data.txt new file mode 100644 index 00000000..fafd5052 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/invoicestatementtax-meta-data.txt @@ -0,0 +1,73 @@ +{ + "entity": "InvoiceStatementTax", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatementTax?fields=*", + "label": "Invoice Statement Tax", + "dateLastModified": "1587691106196", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "finalizedValue", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Finalized Value", + "hideFromSearch": false + }, + { + "name": "invoiceStatement", + "type": "TO_ONE", + "confidential": false, + "label": "Invoice Statement", + "optionsType": "InvoiceStatement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/InvoiceStatement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "InvoiceStatement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/InvoiceStatement?fields=*", + "label": "Invoice", + "dateLastModified": "1587691104113", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Is Deleted", + "hideFromSearch": false + }, + { + "name": "tax", + "type": "TO_ONE", + "confidential": false, + "label": "Tax", + "optionsType": "Tax", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Tax", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Tax", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Tax?fields=*", + "label": "Tax", + "dateLastModified": "1587726967568", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/payablecharge-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/payablecharge-meta-data.txt new file mode 100644 index 00000000..a1af3b63 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/payablecharge-meta-data.txt @@ -0,0 +1,747 @@ +{ + "entity": "PayableCharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayableCharge?fields=*", + "label": "Payable Charge", + "dateLastModified": "1587749770991", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "addedByUser", + "type": "TO_ONE", + "confidential": false, + "label": "Created by", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "canExport", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Can Export", + "hideFromSearch": false + }, + { + "name": "candidate", + "type": "TO_ONE", + "confidential": false, + "label": "Candidate", + "optionsType": "Candidate", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Candidate", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Candidate", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Candidate?fields=*", + "label": "Candidate", + "dateLastModified": "1587752500417", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "clientCorporation", + "type": "TO_ONE", + "confidential": false, + "label": "Client Corporation", + "optionsType": "ClientCorporation", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/ClientCorporation", + "hideFromSearch": false, + "associatedEntity": { + "entity": "ClientCorporation", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/ClientCorporation?fields=*", + "label": "Company", + "dateLastModified": "1587691075500", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Company Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "currencyUnit", + "type": "TO_ONE", + "confidential": false, + "label": "Currency", + "optionsType": "CurrencyUnit", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CurrencyUnit", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CurrencyUnit", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CurrencyUnit?fields=*", + "label": "Currency Unit", + "dateLastModified": "1587691101823", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "alphabeticCode", + "type": "SCALAR", + "dataType": "String", + "maxLength": 3, + "confidential": false, + "label": "Alphabetic Code", + "hideFromSearch": false + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "employeeType", + "type": "SCALAR", + "dataType": "String", + "maxLength": 30, + "confidential": false, + "label": "Employee Type", + "options": [ + { + "value": "1099", + "label": "1099" + }, + { + "value": "C2C", + "label": "C2C" + }, + { + "value": "K1", + "label": "K1" + }, + { + "value": "Permanent", + "label": "Permanent" + }, + { + "value": "W2", + "label": "W2" + } + ], + "hideFromSearch": false + }, + { + "name": "exportedTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Exported Transactions", + "optionsType": "PayableChargeExportedTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/PayableChargeExportedTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "PayableChargeExportedTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayableChargeExportedTransaction?fields=*", + "label": "Payable Charge Exported Transaction", + "dateLastModified": "1587749771124", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "generalLedgerSegment1", + "type": "TO_ONE", + "confidential": false, + "label": "Class", + "optionsType": "GeneralLedgerSegment1", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment1", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment1", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment1?fields=*", + "label": "General Ledger Segment1", + "dateLastModified": "1587691088906", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment2", + "type": "TO_ONE", + "confidential": false, + "label": "Division", + "optionsType": "GeneralLedgerSegment2", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment2", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment2", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment2?fields=*", + "label": "General Ledger Segment2", + "dateLastModified": "1587691088945", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment3", + "type": "TO_ONE", + "confidential": false, + "label": "Department", + "optionsType": "GeneralLedgerSegment3", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment3", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment3", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment3?fields=*", + "label": "General Ledger Segment3", + "dateLastModified": "1587691088981", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment4", + "type": "TO_ONE", + "confidential": false, + "label": "Country", + "optionsType": "GeneralLedgerSegment4", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment4", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment4", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment4?fields=*", + "label": "General Ledger Segment4", + "dateLastModified": "1587691089009", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment5", + "type": "TO_ONE", + "confidential": false, + "label": "Location", + "optionsType": "GeneralLedgerSegment5", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment5", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment5", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment5?fields=*", + "label": "General Ledger Segment5", + "dateLastModified": "1587691089045", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerServiceCode", + "type": "TO_ONE", + "confidential": false, + "label": "Product/Service Code", + "optionsType": "GeneralLedgerServiceCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerServiceCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerServiceCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerServiceCode?fields=*", + "label": "General Ledger Service Code", + "dateLastModified": "1587691089077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalServiceCodeNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Number", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "jobOrder", + "type": "TO_ONE", + "confidential": false, + "label": "Job Posting", + "optionsType": "JobOrder", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/JobOrder", + "hideFromSearch": false, + "associatedEntity": { + "entity": "JobOrder", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/JobOrder?fields=*", + "label": "Job", + "dateLastModified": "1587691073308", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Job Title", + "hideFromSearch": false + } + ] + } + }, + { + "name": "payMasters", + "type": "TO_MANY", + "confidential": false, + "label": "Pay Masters", + "optionsType": "PayMaster", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/PayMaster", + "hideFromSearch": false, + "associatedEntity": { + "entity": "PayMaster", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayMaster?fields=*", + "label": "Pay Transaction", + "dateLastModified": "1587691104444", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "payableTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Payable Transactions", + "optionsType": "PayableChargePayableTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/PayableChargePayableTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "PayableChargePayableTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayableChargePayableTransaction?fields=*", + "label": "Payable Charge Payable Transaction", + "dateLastModified": "1587749771266", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "periodEndDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Period End Date", + "hideFromSearch": false + }, + { + "name": "placement", + "type": "TO_ONE", + "confidential": false, + "label": "Placement", + "optionsType": "Placement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Placement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Placement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Placement?fields=*", + "label": "Placement", + "dateLastModified": "1587748817322", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "readyToPayOverride", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Ready to Pay Override", + "options": [ + { + "value": "1", + "label": "Not Ready to Pay" + }, + { + "value": "2", + "label": "Ready to Pay" + } + ], + "hideFromSearch": false + }, + { + "name": "status", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "Status", + "optionsType": "PayableChargeStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/PayableChargeStatusLookup", + "options": [ + { + "value": 1, + "label": "Not Ready to Pay", + "readOnly": false + }, + { + "value": 2, + "label": "Ready to Pay", + "readOnly": false + }, + { + "value": 3, + "label": "Hold", + "readOnly": false + }, + { + "value": 4, + "label": "Exported", + "readOnly": false + }, + { + "value": 5, + "label": "Processing", + "readOnly": false + }, + { + "value": 6, + "label": "Export Error", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "PayableChargeStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayableChargeStatusLookup?fields=*", + "label": "Payable Charge Status", + "dateLastModified": "1587749771161", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "subtotal", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Total", + "hideFromSearch": false + }, + { + "name": "transactionStatus", + "type": "TO_ONE", + "confidential": false, + "label": "Transaction Status", + "optionsType": "TransactionStatus", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TransactionStatus", + "hideFromSearch": false, + "associatedEntity": { + "entity": "TransactionStatus", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TransactionStatus?fields=*", + "label": "Transaction Status", + "dateLastModified": "1587691102017", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "transactionType", + "type": "TO_ONE", + "confidential": false, + "label": "Transaction Type", + "optionsType": "TransactionType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TransactionType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "TransactionType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TransactionType?fields=*", + "label": "Transaction Type", + "dateLastModified": "1587691102988", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/paymaster-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/paymaster-meta-data.txt new file mode 100644 index 00000000..8c611254 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/paymaster-meta-data.txt @@ -0,0 +1,898 @@ +{ + "entity": "PayMaster", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayMaster?fields=*", + "label": "Pay Transaction", + "dateLastModified": "1587691104444", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "billingSyncBatch", + "type": "TO_ONE", + "confidential": false, + "label": "Billing Sync Batch", + "optionsType": "BillingSyncBatch", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/BillingSyncBatch", + "hideFromSearch": false, + "associatedEntity": { + "entity": "BillingSyncBatch", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/BillingSyncBatch?fields=*", + "label": "Billing Sync Batch", + "dateLastModified": "1587723580204", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "canExport", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "Can Export", + "hideFromSearch": false + }, + { + "name": "earnCode", + "type": "TO_ONE", + "dataType": "AbstractEmbeddedEntity", + "confidential": false, + "label": "Earn Code", + "optionsType": "EarnCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCode?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096687", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Code", + "hideFromSearch": false + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText10", + "hideFromSearch": false + }, + { + "name": "customText11", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText11", + "hideFromSearch": false + }, + { + "name": "customText12", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText12", + "hideFromSearch": false + }, + { + "name": "customText13", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText13", + "hideFromSearch": false + }, + { + "name": "customText14", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText14", + "hideFromSearch": false + }, + { + "name": "customText15", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText15", + "hideFromSearch": false + }, + { + "name": "customText16", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText16", + "hideFromSearch": false + }, + { + "name": "customText17", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText17", + "hideFromSearch": false + }, + { + "name": "customText18", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText18", + "hideFromSearch": false + }, + { + "name": "customText19", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText19", + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText2", + "hideFromSearch": false + }, + { + "name": "customText20", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText20", + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText8", + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateAdded", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateLastModified", + "hideFromSearch": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "earnCodeGroup", + "type": "TO_ONE", + "confidential": false, + "label": "Earn Code Group", + "optionsType": "EarnCodeGroup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeGroup", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeGroup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeGroup?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096698", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "earnCodeTypeLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "label": "Type", + "optionsType": "EarnCodeTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeTypeLookup", + "options": [ + { + "value": 1, + "label": "Reg", + "readOnly": false + }, + { + "value": 2, + "label": "OT", + "readOnly": false + }, + { + "value": 3, + "label": "DT", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeTypeLookup?fields=*", + "label": "Earn Code Type Lookup", + "dateLastModified": "1587691096799", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "externalID", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Earn Code", + "hideFromSearch": false + }, + { + "name": "generalLedgerBillAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Bill Account", + "optionsType": "GeneralLedgerBillAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerBillAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerPayAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Pay Account", + "optionsType": "GeneralLedgerPayAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerPayAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment1", + "type": "TO_ONE", + "confidential": false, + "label": "Class", + "optionsType": "GeneralLedgerSegment1", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment1", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment1", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment1?fields=*", + "label": "General Ledger Segment1", + "dateLastModified": "1587691088906", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment2", + "type": "TO_ONE", + "confidential": false, + "label": "Division", + "optionsType": "GeneralLedgerSegment2", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment2", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment2", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment2?fields=*", + "label": "General Ledger Segment2", + "dateLastModified": "1587691088945", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment3", + "type": "TO_ONE", + "confidential": false, + "label": "Department", + "optionsType": "GeneralLedgerSegment3", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment3", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment3", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment3?fields=*", + "label": "General Ledger Segment3", + "dateLastModified": "1587691088981", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment4", + "type": "TO_ONE", + "confidential": false, + "label": "Country", + "optionsType": "GeneralLedgerSegment4", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment4", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment4", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment4?fields=*", + "label": "General Ledger Segment4", + "dateLastModified": "1587691089009", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment5", + "type": "TO_ONE", + "confidential": false, + "label": "Location", + "optionsType": "GeneralLedgerSegment5", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment5", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment5", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment5?fields=*", + "label": "General Ledger Segment5", + "dateLastModified": "1587691089045", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerServiceCode", + "type": "TO_ONE", + "confidential": false, + "label": "Product/Service Code", + "optionsType": "GeneralLedgerServiceCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerServiceCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerServiceCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerServiceCode?fields=*", + "label": "General Ledger Service Code", + "dateLastModified": "1587691089077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalServiceCodeNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Number", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "isDeleted", + "hideFromSearch": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "userID", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "status", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Status", + "options": [ + { + "value": "Active", + "label": "Active" + }, + { + "value": "Inactive", + "label": "Inactive" + } + ], + "hideFromSearch": false + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + } + ] + } + }, + { + "name": "payMasterTransactions", + "type": "TO_MANY", + "confidential": false, + "label": "Pay Master Transactions", + "optionsType": "PayMasterTransaction", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/PayMasterTransaction", + "hideFromSearch": false, + "associatedEntity": { + "entity": "PayMasterTransaction", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayMasterTransaction?fields=*", + "label": "Pay Transaction Entry", + "dateLastModified": "1587727668829", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "payableCharge", + "type": "TO_ONE", + "confidential": false, + "label": "Payable Charge", + "optionsType": "PayableCharge", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/PayableCharge", + "hideFromSearch": false, + "associatedEntity": { + "entity": "PayableCharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PayableCharge?fields=*", + "label": "Payable Charge", + "dateLastModified": "1587749770991", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "transactionDate", + "type": "SCALAR", + "dataType": "Date", + "confidential": false, + "label": "Transaction Date", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/surcharge-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/surcharge-meta-data.txt new file mode 100644 index 00000000..60cf4ec9 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/surcharge-meta-data.txt @@ -0,0 +1,912 @@ +{ + "entity": "Surcharge", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Surcharge?fields=*", + "label": "Surcharge", + "dateLastModified": "1587726059332", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "addedByUser", + "type": "TO_ONE", + "confidential": false, + "label": "addedByUserID", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "earnCode", + "type": "TO_ONE", + "dataType": "AbstractEmbeddedEntity", + "confidential": false, + "label": "Earn Code", + "optionsType": "EarnCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCode?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096687", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Code", + "hideFromSearch": false + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText10", + "hideFromSearch": false + }, + { + "name": "customText11", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText11", + "hideFromSearch": false + }, + { + "name": "customText12", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText12", + "hideFromSearch": false + }, + { + "name": "customText13", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText13", + "hideFromSearch": false + }, + { + "name": "customText14", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText14", + "hideFromSearch": false + }, + { + "name": "customText15", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText15", + "hideFromSearch": false + }, + { + "name": "customText16", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText16", + "hideFromSearch": false + }, + { + "name": "customText17", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText17", + "hideFromSearch": false + }, + { + "name": "customText18", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText18", + "hideFromSearch": false + }, + { + "name": "customText19", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText19", + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText2", + "hideFromSearch": false + }, + { + "name": "customText20", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText20", + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText8", + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateAdded", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateLastModified", + "hideFromSearch": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "earnCodeGroup", + "type": "TO_ONE", + "confidential": false, + "label": "Earn Code Group", + "optionsType": "EarnCodeGroup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeGroup", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeGroup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeGroup?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096698", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "earnCodeTypeLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "label": "Type", + "optionsType": "EarnCodeTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeTypeLookup", + "options": [ + { + "value": 1, + "label": "Reg", + "readOnly": false + }, + { + "value": 2, + "label": "OT", + "readOnly": false + }, + { + "value": 3, + "label": "DT", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeTypeLookup?fields=*", + "label": "Earn Code Type Lookup", + "dateLastModified": "1587691096799", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "externalID", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Earn Code", + "hideFromSearch": false + }, + { + "name": "generalLedgerBillAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Bill Account", + "optionsType": "GeneralLedgerBillAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerBillAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerPayAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Pay Account", + "optionsType": "GeneralLedgerPayAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerPayAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment1", + "type": "TO_ONE", + "confidential": false, + "label": "Class", + "optionsType": "GeneralLedgerSegment1", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment1", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment1", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment1?fields=*", + "label": "General Ledger Segment1", + "dateLastModified": "1587691088906", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment2", + "type": "TO_ONE", + "confidential": false, + "label": "Division", + "optionsType": "GeneralLedgerSegment2", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment2", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment2", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment2?fields=*", + "label": "General Ledger Segment2", + "dateLastModified": "1587691088945", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment3", + "type": "TO_ONE", + "confidential": false, + "label": "Department", + "optionsType": "GeneralLedgerSegment3", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment3", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment3", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment3?fields=*", + "label": "General Ledger Segment3", + "dateLastModified": "1587691088981", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment4", + "type": "TO_ONE", + "confidential": false, + "label": "Country", + "optionsType": "GeneralLedgerSegment4", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment4", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment4", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment4?fields=*", + "label": "General Ledger Segment4", + "dateLastModified": "1587691089009", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment5", + "type": "TO_ONE", + "confidential": false, + "label": "Location", + "optionsType": "GeneralLedgerSegment5", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment5", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment5", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment5?fields=*", + "label": "General Ledger Segment5", + "dateLastModified": "1587691089045", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerServiceCode", + "type": "TO_ONE", + "confidential": false, + "label": "Product/Service Code", + "optionsType": "GeneralLedgerServiceCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerServiceCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerServiceCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerServiceCode?fields=*", + "label": "General Ledger Service Code", + "dateLastModified": "1587691089077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalServiceCodeNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Number", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "isDeleted", + "hideFromSearch": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "userID", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "status", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Status", + "options": [ + { + "value": "Active", + "label": "Active" + }, + { + "value": "Inactive", + "label": "Inactive" + } + ], + "hideFromSearch": false + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + } + ] + } + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + }, + { + "name": "surchargeType", + "type": "TO_ONE", + "confidential": false, + "label": "Surcharge Type", + "optionsType": "SurchargeType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/SurchargeType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "SurchargeType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/SurchargeType?fields=*", + "label": "Surcharge Type", + "dateLastModified": "1587726571722", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "value", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Value", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/paybill/tax-meta-data.txt b/src/test/resources/testdata/rest/meta/paybill/tax-meta-data.txt new file mode 100644 index 00000000..c0415745 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/paybill/tax-meta-data.txt @@ -0,0 +1,985 @@ +{ + "entity": "Tax", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Tax?fields=*", + "label": "Tax", + "dateLastModified": "1587726967568", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "addedByUser", + "type": "TO_ONE", + "confidential": false, + "label": "addedByUserID", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "earnCode", + "type": "TO_ONE", + "dataType": "AbstractEmbeddedEntity", + "confidential": false, + "label": "Earn Code", + "optionsType": "EarnCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCode?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096687", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "code", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Code", + "hideFromSearch": false + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText10", + "hideFromSearch": false + }, + { + "name": "customText11", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText11", + "hideFromSearch": false + }, + { + "name": "customText12", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText12", + "hideFromSearch": false + }, + { + "name": "customText13", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText13", + "hideFromSearch": false + }, + { + "name": "customText14", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText14", + "hideFromSearch": false + }, + { + "name": "customText15", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText15", + "hideFromSearch": false + }, + { + "name": "customText16", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText16", + "hideFromSearch": false + }, + { + "name": "customText17", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText17", + "hideFromSearch": false + }, + { + "name": "customText18", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText18", + "hideFromSearch": false + }, + { + "name": "customText19", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText19", + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText2", + "hideFromSearch": false + }, + { + "name": "customText20", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText20", + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText8", + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateAdded", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "dateLastModified", + "hideFromSearch": false + }, + { + "name": "description", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Description", + "hideFromSearch": false + }, + { + "name": "earnCodeGroup", + "type": "TO_ONE", + "confidential": false, + "label": "Earn Code Group", + "optionsType": "EarnCodeGroup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeGroup", + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeGroup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeGroup?fields=*", + "label": "Earn Code", + "dateLastModified": "1587691096698", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "earnCodeTypeLookup", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "label": "Type", + "optionsType": "EarnCodeTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/EarnCodeTypeLookup", + "options": [ + { + "value": 1, + "label": "Reg", + "readOnly": false + }, + { + "value": 2, + "label": "OT", + "readOnly": false + }, + { + "value": 3, + "label": "DT", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "EarnCodeTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/EarnCodeTypeLookup?fields=*", + "label": "Earn Code Type Lookup", + "dateLastModified": "1587691096799", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "externalID", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Earn Code", + "hideFromSearch": false + }, + { + "name": "generalLedgerBillAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Bill Account", + "optionsType": "GeneralLedgerBillAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerBillAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerPayAccount", + "type": "TO_ONE", + "confidential": false, + "label": "Pay Account", + "optionsType": "GeneralLedgerPayAccount", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerPayAccount", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerAccount", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerAccount?fields=*", + "label": "General Ledger Account", + "dateLastModified": "1587691096852", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalAccountNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Number", + "hideFromSearch": false + }, + { + "name": "externalAccountName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Account Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment1", + "type": "TO_ONE", + "confidential": false, + "label": "Class", + "optionsType": "GeneralLedgerSegment1", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment1", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment1", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment1?fields=*", + "label": "General Ledger Segment1", + "dateLastModified": "1587691088906", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment2", + "type": "TO_ONE", + "confidential": false, + "label": "Division", + "optionsType": "GeneralLedgerSegment2", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment2", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment2", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment2?fields=*", + "label": "General Ledger Segment2", + "dateLastModified": "1587691088945", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment3", + "type": "TO_ONE", + "confidential": false, + "label": "Department", + "optionsType": "GeneralLedgerSegment3", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment3", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment3", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment3?fields=*", + "label": "General Ledger Segment3", + "dateLastModified": "1587691088981", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment4", + "type": "TO_ONE", + "confidential": false, + "label": "Country", + "optionsType": "GeneralLedgerSegment4", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment4", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment4", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment4?fields=*", + "label": "General Ledger Segment4", + "dateLastModified": "1587691089009", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerSegment5", + "type": "TO_ONE", + "confidential": false, + "label": "Location", + "optionsType": "GeneralLedgerSegment5", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerSegment5", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerSegment5", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerSegment5?fields=*", + "label": "General Ledger Segment5", + "dateLastModified": "1587691089045", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalSegmentNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Number", + "hideFromSearch": false + }, + { + "name": "externalSegmentName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Segment Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "generalLedgerServiceCode", + "type": "TO_ONE", + "confidential": false, + "label": "Product/Service Code", + "optionsType": "GeneralLedgerServiceCode", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/GeneralLedgerServiceCode", + "hideFromSearch": false, + "associatedEntity": { + "entity": "GeneralLedgerServiceCode", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/GeneralLedgerServiceCode?fields=*", + "label": "General Ledger Service Code", + "dateLastModified": "1587691089077", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "externalServiceCodeNumber", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Number", + "hideFromSearch": false + }, + { + "name": "externalServiceCodeName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "External Service Code Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "isDeleted", + "type": "SCALAR", + "dataType": "Boolean", + "confidential": false, + "label": "isDeleted", + "hideFromSearch": false + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "userID", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587691068051", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "status", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Status", + "options": [ + { + "value": "Active", + "label": "Active" + }, + { + "value": "Inactive", + "label": "Inactive" + } + ], + "hideFromSearch": false + }, + { + "name": "title", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Title", + "hideFromSearch": false + } + ] + } + }, + { + "name": "jurisdictionName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 200, + "confidential": false, + "label": "Jurisdiction Name", + "hideFromSearch": false + }, + { + "name": "jurisdictionType", + "type": "TO_ONE", + "dataType": "SimplifiedOptionsLookup", + "confidential": false, + "label": "Jurisdiction Type", + "optionsType": "TaxJurisdictionTypeLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TaxJurisdictionTypeLookup", + "options": [ + { + "value": 1, + "label": "City", + "readOnly": false + }, + { + "value": 2, + "label": "County", + "readOnly": false + }, + { + "value": 3, + "label": "District", + "readOnly": false + }, + { + "value": 4, + "label": "State", + "readOnly": false + }, + { + "value": 5, + "label": "Other", + "readOnly": false + }, + { + "value": 6, + "label": "MTA", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "TaxJurisdictionTypeLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TaxJurisdictionTypeLookup?fields=*", + "label": "Tax Jurisdiction Type Lookup", + "dateLastModified": "1587727182134", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + }, + { + "name": "taxType", + "type": "TO_ONE", + "confidential": false, + "label": "Tax Type", + "optionsType": "TaxType", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/TaxType", + "hideFromSearch": false, + "associatedEntity": { + "entity": "TaxType", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/TaxType?fields=*", + "label": "Tax Type", + "dateLastModified": "1587727182204", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "value", + "type": "SCALAR", + "dataType": "BigDecimal", + "confidential": false, + "label": "Value", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/batchgroup-data.txt b/src/test/resources/testdata/rest/paybill/batchgroup-data.txt new file mode 100644 index 00000000..3764bcea --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/batchgroup-data.txt @@ -0,0 +1,30 @@ +{ + "start": 0, + "count": 3, + "data": [ + { + "id": 3, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587727668103 + }, + { + "id": 2, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587666456663 + }, + { + "id": 1, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/billableCharge-data.txt b/src/test/resources/testdata/rest/paybill/billablecharge-data.txt similarity index 100% rename from src/test/resources/testdata/rest/paybill/billableCharge-data.txt rename to src/test/resources/testdata/rest/paybill/billablecharge-data.txt diff --git a/src/test/resources/testdata/rest/paybill/billingsyncbatch-data.txt b/src/test/resources/testdata/rest/paybill/billingsyncbatch-data.txt new file mode 100644 index 00000000..c3fe04f5 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/billingsyncbatch-data.txt @@ -0,0 +1,87 @@ +{ + "start": 0, + "count": 3, + "data": [ + { + "id": 3, + "batchGroup": { + "id": 3 + }, + "billMasters": { + "total": 0, + "data": [] + }, + "dateAdded": 1587727668310, + "dateLastModified": 1587727668310, + "defaultBillableCharge": null, + "defaultPayableCharge": { + "id": 1 + }, + "externalID": null, + "payMasters": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "timeOfExternalEvent": 1587727668110, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 2, + "batchGroup": { + "id": 2 + }, + "billMasters": { + "total": 0, + "data": [] + }, + "dateAdded": 1587666456750, + "dateLastModified": 1587666456750, + "defaultBillableCharge": { + "id": 3 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-04-23", + "timeOfExternalEvent": 1587666456667, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 1, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/billmaster-data.txt b/src/test/resources/testdata/rest/paybill/billmaster-data.txt new file mode 100644 index 00000000..272857e7 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/billmaster-data.txt @@ -0,0 +1,87 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/billmastertransaction-data.txt b/src/test/resources/testdata/rest/paybill/billmastertransaction-data.txt new file mode 100644 index 00000000..89e54fcb --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/billmastertransaction-data.txt @@ -0,0 +1,52 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/canvasreport-data.txt b/src/test/resources/testdata/rest/paybill/canvasreport-data.txt new file mode 100644 index 00000000..09998cca --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/canvasreport-data.txt @@ -0,0 +1,465 @@ +{ + "start": 0, + "count": 20, + "data": [{ + "id": 1, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 2, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 3, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 4, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 5, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 6, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 7, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 8, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 9, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 10, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 11, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 12, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 13, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 14, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 15, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 16, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 17, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 18, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 19, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + }, + { + "id": 20, + "dateAdded": 1587727668043, + "dateLastModified": 1587918814097, + "dateLastRun": 1587918814097, + "departments": { + "total": 0, + "data": [] + }, + "description": null, + "isDeleted": false, + "description": "test", + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "path": null, + "users": { + "total": 2, + "data": [] + } + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/discount-data.txt b/src/test/resources/testdata/rest/paybill/discount-data.txt new file mode 100644 index 00000000..1ae849c2 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/discount-data.txt @@ -0,0 +1,79 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/earncode-data.txt b/src/test/resources/testdata/rest/paybill/earncode-data.txt new file mode 100644 index 00000000..f768031e --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/earncode-data.txt @@ -0,0 +1,180 @@ +{ + "start": 0, + "count": 3, + "data": [ + { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + { + "id": 2, + "code": "OT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246247, + "dateLastModified": 1584066246247, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 2 + }, + "externalID": "OT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Overtime" + }, + { + "id": 1, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/generalledgersegment-data.txt b/src/test/resources/testdata/rest/paybill/generalledgersegment-data.txt new file mode 100644 index 00000000..a31ddc20 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/generalledgersegment-data.txt @@ -0,0 +1,226 @@ +{ + "start": 0, + "count": 20, + "data": [{ + "id": 1, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 2, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 3, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 4, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 5, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 6, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 7, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 8, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 9, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 10, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 11, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 12, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 13, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 14, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 15, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 16, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 17, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 18, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 19, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 20, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/generalledgersegment1-data.txt b/src/test/resources/testdata/rest/paybill/generalledgersegment1-data.txt new file mode 100644 index 00000000..a31ddc20 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/generalledgersegment1-data.txt @@ -0,0 +1,226 @@ +{ + "start": 0, + "count": 20, + "data": [{ + "id": 1, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 2, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 3, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 4, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 5, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 6, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 7, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 8, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 9, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 10, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 11, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 12, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 13, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 14, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 15, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 16, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 17, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 18, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 19, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 20, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/generalledgersegment2-data.txt b/src/test/resources/testdata/rest/paybill/generalledgersegment2-data.txt new file mode 100644 index 00000000..a31ddc20 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/generalledgersegment2-data.txt @@ -0,0 +1,226 @@ +{ + "start": 0, + "count": 20, + "data": [{ + "id": 1, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 2, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 3, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 4, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 5, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 6, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 7, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 8, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 9, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 10, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 11, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 12, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 13, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 14, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 15, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 16, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 17, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 18, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 19, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 20, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/generalledgersegment3-data.txt b/src/test/resources/testdata/rest/paybill/generalledgersegment3-data.txt new file mode 100644 index 00000000..a31ddc20 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/generalledgersegment3-data.txt @@ -0,0 +1,226 @@ +{ + "start": 0, + "count": 20, + "data": [{ + "id": 1, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 2, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 3, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 4, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 5, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 6, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 7, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 8, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 9, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 10, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 11, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 12, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 13, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 14, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 15, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 16, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 17, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 18, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 19, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 20, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/generalledgersegment4-data.txt b/src/test/resources/testdata/rest/paybill/generalledgersegment4-data.txt new file mode 100644 index 00000000..a31ddc20 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/generalledgersegment4-data.txt @@ -0,0 +1,226 @@ +{ + "start": 0, + "count": 20, + "data": [{ + "id": 1, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 2, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 3, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 4, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 5, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 6, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 7, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 8, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 9, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 10, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 11, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 12, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 13, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 14, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 15, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 16, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 17, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 18, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 19, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 20, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/generalledgersegment5-data.txt b/src/test/resources/testdata/rest/paybill/generalledgersegment5-data.txt new file mode 100644 index 00000000..a31ddc20 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/generalledgersegment5-data.txt @@ -0,0 +1,226 @@ +{ + "start": 0, + "count": 20, + "data": [{ + "id": 1, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 2, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 3, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 4, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 5, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 6, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 7, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 8, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 9, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 10, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 11, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 12, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 13, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 14, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 15, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 16, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 17, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 18, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 19, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + }, { + "id": 20, + "dateAdded": 1587564158970, + "dateLastModified": 1587564158970, + "externalSegmentName": "test", + "externalSegmentNumber": "2", + "generalLedgerSegmentType": { + "id": 1 + }, + "isActive": true, + "isDeleted": false + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/generalledgersegmenttype-data.txt b/src/test/resources/testdata/rest/paybill/generalledgersegmenttype-data.txt new file mode 100644 index 00000000..1a516908 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/generalledgersegmenttype-data.txt @@ -0,0 +1,36 @@ +{ + "start": 0, + "count": 5, + "data": [ + { + "id": 5, + "description": "Specific locations of a department", + "isEnabled": true, + "segmentType": "Location" + }, + { + "id": 4, + "description": "Countries of the world", + "isEnabled": true, + "segmentType": "Country" + }, + { + "id": 3, + "description": "Our internal departments", + "isEnabled": true, + "segmentType": "Department" + }, + { + "id": 2, + "description": "Regions of a country", + "isEnabled": true, + "segmentType": "Division" + }, + { + "id": 1, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/generalledgerservicecode-data.txt b/src/test/resources/testdata/rest/paybill/generalledgerservicecode-data.txt new file mode 100644 index 00000000..d00f9fa2 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/generalledgerservicecode-data.txt @@ -0,0 +1,15 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/invoicestatement-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatement-data.txt new file mode 100644 index 00000000..fc8533c5 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/invoicestatement-data.txt @@ -0,0 +1,278 @@ +{ + "start": 0, + "count": 2, + "data": [ + { + "id": 2, + "billingAddress": { + "address1": "", + "address2": "", + "city": "", + "state": "", + "zip": "", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "", + "billingClientContact": { + "id": 2120380, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-05-31", + "billingProfile": { + "id": 1489, + "clientCorporation": { + "id": 11394, + "name": "Wells Fargo" + }, + "title": "", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 16208, + "billingClientCorporation": { + "id": 11394, + "name": "Wells Fargo" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 11394, + "name": "Wells Fargo" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587667482397, + "dateLastModified": 1587727084383, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 6, + "label": "Email Sending" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2019-04-08", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 1, + "data": [] + }, + "invoiceStatementExports": { + "total": 1, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Generated", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1489, + "clientCorporation": { + "id": 11394, + "name": "Wells Fargo" + }, + "title": "Wells Fargo - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 36208 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 15.0000, + "lineItems": { + "total": 1, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 0, + "data": [] + }, + "status": { + "id": 2, + "label": "Ready" + }, + "subtotal": 16.5000000000, + "surchargeTotal": 1.5000000000, + "surcharges": { + "total": 1, + "data": [] + }, + "taxAmount": 0.0000, + "taxTotal": 1.650000, + "taxes": { + "total": 1, + "data": [] + }, + "total": 18.150000 + }, + { + "id": 1, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementbatch-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementbatch-data.txt new file mode 100644 index 00000000..e16356f4 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/invoicestatementbatch-data.txt @@ -0,0 +1,27 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementdiscount-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementdiscount-data.txt new file mode 100644 index 00000000..c0930dbb --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/invoicestatementdiscount-data.txt @@ -0,0 +1,16 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementexportbatch-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementexportbatch-data.txt new file mode 100644 index 00000000..ee970640 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/invoicestatementexportbatch-data.txt @@ -0,0 +1,22 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementlineitem-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementlineitem-data.txt new file mode 100644 index 00000000..80d4dc3f --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/invoicestatementlineitem-data.txt @@ -0,0 +1,93 @@ +{ + "start": 0, + "count": 3, + "data": [ + { + "id": 3, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "comment": null, + "currencyUnit": null, + "dateAdded": 1587667482520, + "dateLastModified": 1587667482520, + "description": "", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 2 + }, + "quantity": 5.000000, + "rate": 3.0000, + "subtotal": 15.0000, + "summarizeBys": { + "total": 1, + "data": [] + }, + "taxAmount": 0.0000, + "total": 15.0000 + }, + { + "id": 2, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666456337, + "dateLastModified": 1587666456337, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, + { + "id": 1, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementsurcharge-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementsurcharge-data.txt new file mode 100644 index 00000000..8426e202 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/invoicestatementsurcharge-data.txt @@ -0,0 +1,16 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementtax-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementtax-data.txt new file mode 100644 index 00000000..40b0cf40 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/invoicestatementtax-data.txt @@ -0,0 +1,17 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/payablecharge-data.txt b/src/test/resources/testdata/rest/paybill/payablecharge-data.txt new file mode 100644 index 00000000..192c1d3c --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/payablecharge-data.txt @@ -0,0 +1,73 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/paymaster-data.txt b/src/test/resources/testdata/rest/paybill/paymaster-data.txt new file mode 100644 index 00000000..57ed1e28 --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/paymaster-data.txt @@ -0,0 +1,79 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/surcharge-data.txt b/src/test/resources/testdata/rest/paybill/surcharge-data.txt new file mode 100644 index 00000000..b312a26a --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/surcharge-data.txt @@ -0,0 +1,79 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/tax-data.txt b/src/test/resources/testdata/rest/paybill/tax-data.txt new file mode 100644 index 00000000..08ffc0cb --- /dev/null +++ b/src/test/resources/testdata/rest/paybill/tax-data.txt @@ -0,0 +1,84 @@ +{ + "start": 0, + "count": 1, + "data": [ + { + "id": 1, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + } + ] +} From 33a5c371c3261318c8791748c6e462a4ae20bd9a Mon Sep 17 00:00:00 2001 From: mkesmetzis Date: Mon, 27 Apr 2020 14:37:50 +0100 Subject: [PATCH 4/7] added more test data - added Certification Requirement entities --- .../data/api/mock/MockDataLoader.groovy | 12 + .../AbstractRequirement.java | 236 ++ .../CandidateCertificationRequirement.java | 68 + .../CertificationRequirement.java | 97 + ...JobSubmissionCertificationRequirement.java | 73 + .../core/paybill/charge/PayableCharge.java | 92 +- .../entity/customfields/CustomFieldsG.java | 220 ++ .../data/model/enums/BullhornEntityInfo.java | 13 +- ...teCertificationRequirementListWrapper.java | 11 + .../CertificationRequirementListWrapper.java | 11 + ...onCertificationRequirementListWrapper.java | 11 + ...didateCertificationRequirementWrapper.java | 7 + .../CertificationRequirementWrapper.java | 7 + ...issionCertificationRequirementWrapper.java | 7 + ...candidatecertificationrequirement-data.txt | 1492 ++++++++++ .../rest/certificationrequirement-data.txt | 1551 +++++++++++ .../billablechargefileattachment-data.txt | 42 +- .../rest/file/invoicestatementexport-data.txt | 61 +- ...ubmissioncertificationrequirement-data.txt | 1446 ++++++++++ ...datecertificationrequirement-meta-data.txt | 696 +++++ .../certificationrequirement-meta-data.txt | 740 +++++ ...sioncertificationrequirement-meta-data.txt | 678 +++++ .../testdata/rest/paybill/batchgroup-data.txt | 138 +- .../rest/paybill/billablecharge-data.txt | 1370 ++++++++- .../rest/paybill/billingsyncbatch-data.txt | 461 +++- .../testdata/rest/paybill/billmaster-data.txt | 1541 ++++++++++- .../paybill/billmastertransaction-data.txt | 876 +++++- .../testdata/rest/paybill/discount-data.txt | 1389 +++++++++- .../testdata/rest/paybill/earncode-data.txt | 988 ++++++- .../paybill/generalledgersegmenttype-data.txt | 92 +- .../paybill/generalledgerservicecode-data.txt | 173 +- .../rest/paybill/invoicestatement-data.txt | 2454 ++++++++++++++++- .../paybill/invoicestatementbatch-data.txt | 401 ++- .../paybill/invoicestatementdiscount-data.txt | 192 +- .../invoicestatementexportbatch-data.txt | 306 +- .../paybill/invoicestatementlineitem-data.txt | 655 ++++- .../invoicestatementsurcharge-data.txt | 192 +- .../rest/paybill/invoicestatementtax-data.txt | 211 +- .../rest/paybill/payablecharge-data.txt | 1275 ++++++++- .../testdata/rest/paybill/paymaster-data.txt | 1389 +++++++++- .../testdata/rest/paybill/surcharge-data.txt | 1389 +++++++++- .../testdata/rest/paybill/tax-data.txt | 1484 +++++++++- 42 files changed, 24341 insertions(+), 206 deletions(-) create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/AbstractRequirement.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/CandidateCertificationRequirement.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/CertificationRequirement.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/JobSubmissionCertificationRequirement.java create mode 100644 src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsG.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/CandidateCertificationRequirementListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/CertificationRequirementListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/JobSubmissionCertificationRequirementListWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/CandidateCertificationRequirementWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/CertificationRequirementWrapper.java create mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/JobSubmissionCertificationRequirementWrapper.java create mode 100644 src/test/resources/testdata/rest/candidatecertificationrequirement-data.txt create mode 100644 src/test/resources/testdata/rest/certificationrequirement-data.txt create mode 100644 src/test/resources/testdata/rest/jobsubmissioncertificationrequirement-data.txt create mode 100644 src/test/resources/testdata/rest/meta/candidatecertificationrequirement-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/certificationrequirement-meta-data.txt create mode 100644 src/test/resources/testdata/rest/meta/jobsubmissioncertificationrequirement-meta-data.txt diff --git a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy index 961e0151..8f519f53 100644 --- a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy +++ b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy @@ -3,6 +3,9 @@ package com.bullhornsdk.data.api.mock import com.bullhornsdk.data.api.helper.RestJsonConverter import com.bullhornsdk.data.api.helper.concurrency.ConcurrencyService import com.bullhornsdk.data.api.helper.concurrency.standard.RestConcurrencyService +import com.bullhornsdk.data.model.entity.core.certificationrequirement.CandidateCertificationRequirement +import com.bullhornsdk.data.model.entity.core.certificationrequirement.CertificationRequirement +import com.bullhornsdk.data.model.entity.core.certificationrequirement.JobSubmissionCertificationRequirement import com.bullhornsdk.data.model.entity.core.customobject.ClientCorporationCustomObject import com.bullhornsdk.data.model.entity.core.customobject.JobOrderCustomObject import com.bullhornsdk.data.model.entity.core.customobject.PlacementCustomObject @@ -476,6 +479,10 @@ public class MockDataLoader { entityFiles.put(Tax.class, "paybill/tax-data.txt"); entityFiles.put(CanvasReport.class, "paybill/canvasreport-data.txt"); + entityFiles.put(CandidateCertificationRequirement.class, "candidatecertificationrequirement-data.txt"); + entityFiles.put(CertificationRequirement.class, "certificationrequirement-data.txt"); + entityFiles.put(JobSubmissionCertificationRequirement.class, "jobsubmissioncertificationrequirement-data.txt"); + entityFiles.put(JobOrderCustomObjectInstance1.class, "customobjectinstances/jobordercustomobjectinstance1-data.txt"); entityFiles.put(JobOrderCustomObjectInstance2.class, "customobjectinstances/jobordercustomobjectinstance2-data.txt"); @@ -660,6 +667,11 @@ public class MockDataLoader { entityMetaFiles.put(CanvasReport.class, "meta/paybill/canvasreport-meta-data.txt"); + // Certification Requirements + entityMetaFiles.put(CandidateCertificationRequirement.class, "meta/candidatecertificationrequirement-meta-data.txt"); + entityMetaFiles.put(CertificationRequirement.class, "meta/certificationrequirement-meta-data.txt"); + entityMetaFiles.put(JobSubmissionCertificationRequirement.class, "meta/jobsubmissioncertificationrequirement-meta-data.txt"); + entityMetaFiles.put(JobOrderCustomObjectInstance1.class, "meta/customobjectinstances/jobordercustomobjectinstance1-meta-data.txt"); entityMetaFiles.put(JobOrderCustomObjectInstance2.class, "meta/customobjectinstances/jobordercustomobjectinstance2-meta-data.txt"); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/AbstractRequirement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/AbstractRequirement.java new file mode 100644 index 00000000..40f1993b --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/AbstractRequirement.java @@ -0,0 +1,236 @@ +package com.bullhornsdk.data.model.entity.core.certificationrequirement; + +import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.standard.CandidateCertification; +import com.bullhornsdk.data.model.entity.core.standard.Certification; +import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.customfields.CustomFieldsG; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; +import com.bullhornsdk.data.model.entity.file.CandidateFileAttachment; +import com.bullhornsdk.data.model.entity.file.CertificationFileAttachment; +import com.fasterxml.jackson.annotation.JsonProperty; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; +import java.util.Objects; + +/** + * Created by mkesmetzis 27-Apr-20 + */ +public class AbstractRequirement extends CustomFieldsG implements UpdateEntity, CreateEntity, QueryEntity, + AssociationEntity, EditHistoryEntity { + + private Integer id; + private CandidateCertification candidateCertification; + private Certification certification; + private OneToMany certificationFileAttachments; + private DateTime dateAdded; + private DateTime dateExpiration; + private DateTime documentDeadline; + private OneToMany fileAttachments; + private Integer matchingCredentialCount; + private CorporateUser modifyingUser; + private CorporateUser owner; + private SpecializedOptionsLookup status; + @Size(max = 100) + private String userCertificationName; + @Size(max = 30) + private String userCertificationStatus; + + public AbstractRequirement() { + } + + public AbstractRequirement(Integer id) { + this.id = id; + } + + @Override + @JsonProperty("id") + public Integer getId() { + return id; + } + + @Override + @JsonProperty("id") + public void setId(Integer id) { + this.id = id; + } + + @JsonProperty("candidateCertification") + public CandidateCertification getCandidateCertification() { + return candidateCertification; + } + + @JsonProperty("candidateCertification") + public void setCandidateCertification(CandidateCertification candidateCertification) { + this.candidateCertification = candidateCertification; + } + + @JsonProperty("certification") + public Certification getCertification() { + return certification; + } + + @JsonProperty("certification") + public void setCertification(Certification certification) { + this.certification = certification; + } + + @JsonProperty("certificationFileAttachments") + public OneToMany getCertificationFileAttachments() { + return certificationFileAttachments; + } + + @JsonProperty("certificationFileAttachments") + public void setCertificationFileAttachments(OneToMany certificationFileAttachments) { + this.certificationFileAttachments = certificationFileAttachments; + } + + @JsonProperty("dateAdded") + public DateTime getDateAdded() { + return dateAdded; + } + + @JsonProperty("dateAdded") + public void setDateAdded(DateTime dateAdded) { + this.dateAdded = dateAdded; + } + + @JsonProperty("dateExpiration") + public DateTime getDateExpiration() { + return dateExpiration; + } + + @JsonProperty("dateExpiration") + public void setDateExpiration(DateTime dateExpiration) { + this.dateExpiration = dateExpiration; + } + + @JsonProperty("documentDeadline") + public DateTime getDocumentDeadline() { + return documentDeadline; + } + + @JsonProperty("documentDeadline") + public void setDocumentDeadline(DateTime documentDeadline) { + this.documentDeadline = documentDeadline; + } + + @JsonProperty("fileAttachments") + public OneToMany getFileAttachments() { + return fileAttachments; + } + + @JsonProperty("fileAttachments") + public void setFileAttachments(OneToMany fileAttachments) { + this.fileAttachments = fileAttachments; + } + + @JsonProperty("matchingCredentialCount") + public Integer getMatchingCredentialCount() { + return matchingCredentialCount; + } + + @JsonProperty("matchingCredentialCount") + public void setMatchingCredentialCount(Integer matchingCredentialCount) { + this.matchingCredentialCount = matchingCredentialCount; + } + + @JsonProperty("modifyingUser") + public CorporateUser getModifyingUser() { + return modifyingUser; + } + + @JsonProperty("modifyingUser") + public void setModifyingUser(CorporateUser modifyingUser) { + this.modifyingUser = modifyingUser; + } + + @JsonProperty("owner") + public CorporateUser getOwner() { + return owner; + } + + @JsonProperty("owner") + public void setOwner(CorporateUser owner) { + this.owner = owner; + } + + @JsonProperty("status") + public SpecializedOptionsLookup getStatus() { + return status; + } + + @JsonProperty("status") + public void setStatus(SpecializedOptionsLookup status) { + this.status = status; + } + + @JsonProperty("userCertificationName") + public String getUserCertificationName() { + return userCertificationName; + } + + @JsonProperty("userCertificationName") + public void setUserCertificationName(String userCertificationName) { + this.userCertificationName = userCertificationName; + } + + @JsonProperty("userCertificationStatus") + public String getUserCertificationStatus() { + return userCertificationStatus; + } + + @JsonProperty("userCertificationStatus") + public void setUserCertificationStatus(String userCertificationStatus) { + this.userCertificationStatus = userCertificationStatus; + } + + @Override + public String toString() { + return "CandidateCertificationRequirement{" + + "id=" + id + + ", candidateCertification=" + candidateCertification + + ", certification=" + certification + + ", certificationFileAttachments=" + certificationFileAttachments + + ", dateAdded=" + dateAdded + + ", dateExpiration=" + dateExpiration + + ", documentDeadline=" + documentDeadline + + ", fileAttachments=" + fileAttachments + + ", matchingCredentialCount=" + matchingCredentialCount + + ", modifyingUser=" + modifyingUser + + ", owner=" + owner + + ", status=" + status + + ", userCertificationName='" + userCertificationName + '\'' + + ", userCertificationStatus='" + userCertificationStatus + '\'' + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + AbstractRequirement that = (AbstractRequirement) o; + return Objects.equals(id, that.id) && + Objects.equals(candidateCertification, that.candidateCertification) && + Objects.equals(certification, that.certification) && + Objects.equals(certificationFileAttachments, that.certificationFileAttachments) && + Objects.equals(dateAdded, that.dateAdded) && + Objects.equals(dateExpiration, that.dateExpiration) && + Objects.equals(documentDeadline, that.documentDeadline) && + Objects.equals(fileAttachments, that.fileAttachments) && + Objects.equals(matchingCredentialCount, that.matchingCredentialCount) && + Objects.equals(modifyingUser, that.modifyingUser) && + Objects.equals(owner, that.owner) && + Objects.equals(status, that.status) && + Objects.equals(userCertificationName, that.userCertificationName) && + Objects.equals(userCertificationStatus, that.userCertificationStatus); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), id, candidateCertification, certification, certificationFileAttachments, dateAdded, dateExpiration, documentDeadline, fileAttachments, matchingCredentialCount, modifyingUser, owner, status, userCertificationName, userCertificationStatus); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/CandidateCertificationRequirement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/CandidateCertificationRequirement.java new file mode 100644 index 00000000..6e9336eb --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/CandidateCertificationRequirement.java @@ -0,0 +1,68 @@ +package com.bullhornsdk.data.model.entity.core.certificationrequirement; + +import com.bullhornsdk.data.model.entity.core.standard.Candidate; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.util.Objects; + +/** + * Created by mkesmetzis 27-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "candidateCertification", "candidate", "certification", "certificationFileAttachments", + "customDate1", "customDate10", "customDate2", "customDate3", "customDate4", "customDate5", "customDate6", + "customDate7", "customDate8", "customDate9", "customFloat1", "customFloat2", "customFloat3", "customInt1", + "customInt2", "customInt3", "customText1", "customText10", "customText2", "customText3", + "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customTextBlock1", + "customTextBlock10", "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "customTextBlock6", + "customTextBlock7", "customTextBlock8", "customTextBlock9", "dateAdded", "dateExpiration", "documentDeadline", + "fileAttachments", "matchingCredentialCount", "modifyingUser", "owner", "status", "userCertificationName", + "userCertificationStatus"}) +public class CandidateCertificationRequirement extends AbstractRequirement implements UpdateEntity, CreateEntity, QueryEntity, + AssociationEntity, EditHistoryEntity { + + private Candidate candidate; + + public CandidateCertificationRequirement() { + } + + public CandidateCertificationRequirement(Integer id) { + super(id); + } + + @JsonProperty("candidate") + public Candidate getCandidate() { + return candidate; + } + + @JsonProperty("candidate") + public void setCandidate(Candidate candidate) { + this.candidate = candidate; + } + + @Override + public String toString() { + return "CandidateCertificationRequirement{" + + "candidate=" + candidate + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + CandidateCertificationRequirement that = (CandidateCertificationRequirement) o; + return Objects.equals(candidate, that.candidate); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), candidate); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/CertificationRequirement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/CertificationRequirement.java new file mode 100644 index 00000000..80d88f6f --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/CertificationRequirement.java @@ -0,0 +1,97 @@ +package com.bullhornsdk.data.model.entity.core.certificationrequirement; + +import com.bullhornsdk.data.model.entity.core.standard.Candidate; +import com.bullhornsdk.data.model.entity.core.standard.JobSubmission; +import com.bullhornsdk.data.model.entity.core.standard.Placement; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.util.Objects; + +/** + * Created by mkesmetzis 27-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "candidateCertification", "candidate", "certification", "certificationFileAttachments", + "customDate1", "customDate10", "customDate2", "customDate3", "customDate4", "customDate5", "customDate6", + "customDate7", "customDate8", "customDate9", "customFloat1", "customFloat2", "customFloat3", "customInt1", + "customInt2", "customInt3", "customText1", "customText10", "customText2", "customText3", + "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customTextBlock1", + "customTextBlock10", "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "customTextBlock6", + "customTextBlock7", "customTextBlock8", "customTextBlock9", "dateAdded", "dateExpiration", "documentDeadline", + "fileAttachments", "jobSubmission", "matchingCredentialCount", "modifyingUser", "owner", "placement", "status", "userCertificationName", + "userCertificationStatus"}) +public class CertificationRequirement extends AbstractRequirement implements UpdateEntity, CreateEntity, QueryEntity, + AssociationEntity, EditHistoryEntity { + + private Candidate candidate; + private JobSubmission jobSubmission; + private Placement placement; + + public CertificationRequirement() { + } + + public CertificationRequirement(Integer id) { + super(id); + } + + @JsonProperty("candidate") + public Candidate getCandidate() { + return candidate; + } + + @JsonProperty("candidate") + public void setCandidate(Candidate candidate) { + this.candidate = candidate; + } + + + @JsonProperty("jobSubmission") + public JobSubmission getJobSubmission() { + return jobSubmission; + } + + @JsonProperty("jobSubmission") + public void setJobSubmission(JobSubmission jobSubmission) { + this.jobSubmission = jobSubmission; + } + + @JsonProperty("placement") + public Placement getPlacement() { + return placement; + } + + @JsonProperty("placement") + public void setPlacement(Placement placement) { + this.placement = placement; + } + + @Override + public String toString() { + return "CertificationRequirement{" + + "candidate=" + candidate + + ", jobSubmission=" + jobSubmission + + ", placement=" + placement + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + CertificationRequirement that = (CertificationRequirement) o; + return Objects.equals(candidate, that.candidate) && + Objects.equals(jobSubmission, that.jobSubmission) && + Objects.equals(placement, that.placement); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), candidate, jobSubmission, placement); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/JobSubmissionCertificationRequirement.java b/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/JobSubmissionCertificationRequirement.java new file mode 100644 index 00000000..55ccbbbc --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/certificationrequirement/JobSubmissionCertificationRequirement.java @@ -0,0 +1,73 @@ +package com.bullhornsdk.data.model.entity.core.certificationrequirement; + +import com.bullhornsdk.data.model.entity.core.standard.Candidate; +import com.bullhornsdk.data.model.entity.core.standard.JobSubmission; +import com.bullhornsdk.data.model.entity.core.standard.Placement; +import com.bullhornsdk.data.model.entity.core.type.*; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; + +import java.util.Objects; + +/** + * Created by mkesmetzis 27-Apr-20 + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonRootName(value = "data") +@JsonPropertyOrder({"id", "candidateCertification", "certification", "certificationFileAttachments", + "customDate1", "customDate10", "customDate2", "customDate3", "customDate4", "customDate5", "customDate6", + "customDate7", "customDate8", "customDate9", "customFloat1", "customFloat2", "customFloat3", "customInt1", + "customInt2", "customInt3", "customText1", "customText10", "customText2", "customText3", + "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customTextBlock1", + "customTextBlock10", "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "customTextBlock6", + "customTextBlock7", "customTextBlock8", "customTextBlock9", "dateAdded", "dateExpiration", "documentDeadline", + "fileAttachments", "jobSubmission", "matchingCredentialCount", "modifyingUser", "owner", "status", "userCertificationName", + "userCertificationStatus"}) +public class JobSubmissionCertificationRequirement extends AbstractRequirement implements UpdateEntity, CreateEntity, QueryEntity, + AssociationEntity, EditHistoryEntity { + + private JobSubmission jobSubmission; + + public JobSubmissionCertificationRequirement() { + } + + public JobSubmissionCertificationRequirement(Integer id) { + super(id); + } + + + + @JsonProperty("jobSubmission") + public JobSubmission getJobSubmission() { + return jobSubmission; + } + + @JsonProperty("jobSubmission") + public void setJobSubmission(JobSubmission jobSubmission) { + this.jobSubmission = jobSubmission; + } + + @Override + public String toString() { + return "JobSubmissionCertificationRequirement{" + + "jobSubmission=" + jobSubmission + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + JobSubmissionCertificationRequirement that = (JobSubmissionCertificationRequirement) o; + return Objects.equals(jobSubmission, that.jobSubmission); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), jobSubmission); + } + +} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java index eb7fd72d..42abeeba 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java @@ -2,8 +2,8 @@ import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; -import com.bullhornsdk.data.model.entity.core.paybill.transaction.PayableTransaction; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; +import com.bullhornsdk.data.model.entity.core.paybill.transaction.PayableTransaction; import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionStatus; import com.bullhornsdk.data.model.entity.core.paybill.transaction.TransactionType; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; @@ -11,7 +11,10 @@ import com.bullhornsdk.data.model.entity.core.type.*; import com.bullhornsdk.data.model.entity.embedded.OneToMany; import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonRootName; import org.joda.time.DateTime; import javax.validation.constraints.Size; @@ -30,7 +33,7 @@ "generalLedgerServiceCode", "jobOrder", "payMasters", "payableTransactions", "periodEndDate", "placement", "readyToBillOverride", "status", "subTotal", "transactionStatus", "transactionType" }) -public class PayableCharge implements QueryEntity, UpdateEntity, DateLastModifiedEntity, AssociationEntity, CreateEntity { +public class PayableCharge extends AbstractEntity implements QueryEntity, UpdateEntity, DateLastModifiedEntity, AssociationEntity, CreateEntity { private Integer id; private CorporateUser addedByUser; @@ -40,46 +43,26 @@ public class PayableCharge implements QueryEntity, UpdateEntity, DateLastModifie private CurrencyUnit currencyUnit; private DateTime dateAdded; private DateTime dateLastModified; - - @JsonIgnore private String description; - @Size(max = 30) private String employeeType; - private GeneralLedgerSegment1 generalLedgerSegment1; - private GeneralLedgerSegment2 generalLedgerSegment2; - private GeneralLedgerSegment3 generalLedgerSegment3; - private GeneralLedgerSegment4 generalLedgerSegment4; - private GeneralLedgerSegment5 generalLedgerSegment5; - private GeneralLedgerServiceCode generalLedgerServiceCode; - private JobOrder jobOrder; - private OneToMany payMasters; - private OneToMany payableTransactions; - private String periodEndDate; - private Placement placement; - private Boolean readyToBillOverride; - private SpecializedOptionsLookup status; - private BigDecimal subTotal; - private TransactionStatus transactionStatus; - private TransactionType transactionType; - public PayableCharge() { } @@ -355,6 +338,38 @@ public void setTransactionType(TransactionType transactionType) { } + @Override + public String toString() { + return "PayableCharge{" + + "id=" + id + + ", addedByUser=" + addedByUser + + ", canExport=" + canExport + + ", candidate=" + candidate + + ", clientCorporation=" + clientCorporation + + ", currencyUnit=" + currencyUnit + + ", dateAdded=" + dateAdded + + ", dateLastModified=" + dateLastModified + + ", description='" + description + '\'' + + ", employeeType='" + employeeType + '\'' + + ", generalLedgerSegment1=" + generalLedgerSegment1 + + ", generalLedgerSegment2=" + generalLedgerSegment2 + + ", generalLedgerSegment3=" + generalLedgerSegment3 + + ", generalLedgerSegment4=" + generalLedgerSegment4 + + ", generalLedgerSegment5=" + generalLedgerSegment5 + + ", generalLedgerServiceCode=" + generalLedgerServiceCode + + ", jobOrder=" + jobOrder + + ", payMasters=" + payMasters + + ", payableTransactions=" + payableTransactions + + ", periodEndDate='" + periodEndDate + '\'' + + ", placement=" + placement + + ", readyToBillOverride=" + readyToBillOverride + + ", status=" + status + + ", subTotal=" + subTotal + + ", transactionStatus=" + transactionStatus + + ", transactionType=" + transactionType + + '}'; + } + @Override public boolean equals(Object o) { if (this == o) return true; @@ -393,35 +408,4 @@ public int hashCode() { return Objects.hash(id, addedByUser, canExport, candidate, clientCorporation, currencyUnit, dateAdded, dateLastModified, description, employeeType, generalLedgerSegment1, generalLedgerSegment2, generalLedgerSegment3, generalLedgerSegment4, generalLedgerSegment5, generalLedgerServiceCode, jobOrder, payMasters, payableTransactions, periodEndDate, placement, readyToBillOverride, status, subTotal, transactionStatus, transactionType); } - @Override - public String toString() { - return "PayableCharge{" + - "id=" + id + - ", addedByUser=" + addedByUser + - ", canExport=" + canExport + - ", candidate=" + candidate + - ", clientCorporation=" + clientCorporation + - ", currencyUnit=" + currencyUnit + - ", dateAdded=" + dateAdded + - ", dateLastModified=" + dateLastModified + - ", description='" + description + '\'' + - ", employeeType='" + employeeType + '\'' + - ", generalLedgerSegment1=" + generalLedgerSegment1 + - ", generalLedgerSegment2=" + generalLedgerSegment2 + - ", generalLedgerSegment3=" + generalLedgerSegment3 + - ", generalLedgerSegment4=" + generalLedgerSegment4 + - ", generalLedgerSegment5=" + generalLedgerSegment5 + - ", generalLedgerServiceCode=" + generalLedgerServiceCode + - ", jobOrder=" + jobOrder + - ", payMasters=" + payMasters + - ", payableTransactions=" + payableTransactions + - ", periodEndDate='" + periodEndDate + '\'' + - ", placement=" + placement + - ", readyToBillOverride=" + readyToBillOverride + - ", status=" + status + - ", subTotal=" + subTotal + - ", transactionStatus=" + transactionStatus + - ", transactionType=" + transactionType + - '}'; - } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsG.java b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsG.java new file mode 100644 index 00000000..e06f0e4d --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/entity/customfields/CustomFieldsG.java @@ -0,0 +1,220 @@ +package com.bullhornsdk.data.model.entity.customfields; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import org.joda.time.DateTime; + +import javax.validation.constraints.Size; +import java.util.Objects; + +/** + * Common custom fields: + * + * customDate 1-10 (extends 1-3) + * + * customFloat 1-3 (extends 1-3) + * + * customInt 1-3 (extends 1-3) + * + * customText 1-20 (extends 1-20) + * + * customTextBlock 1-10 (extends 1-5) + * + * @author mkesmetzis + * + */ +public class CustomFieldsG extends CustomFieldsB { + + private DateTime customDate4; + + private DateTime customDate5; + + private DateTime customDate6; + + private DateTime customDate7; + + private DateTime customDate8; + + private DateTime customDate9; + + private DateTime customDate10; + + @JsonIgnore + private String customTextBlock6; + + @JsonIgnore + private String customTextBlock7; + + @JsonIgnore + private String customTextBlock8; + + @JsonIgnore + private String customTextBlock9; + + @JsonIgnore + private String customTextBlock10; + + @JsonProperty("customDate4") + public DateTime getCustomDate4() { + return customDate4; + } + + @JsonProperty("customDate4") + public void setCustomDate4(DateTime customDate4) { + this.customDate4 = customDate4; + } + + @JsonProperty("customDate5") + public DateTime getCustomDate5() { + return customDate5; + } + + @JsonProperty("customDate5") + public void setCustomDate5(DateTime customDate5) { + this.customDate5 = customDate5; + } + + @JsonProperty("customDate6") + public DateTime getCustomDate6() { + return customDate6; + } + + @JsonProperty("customDate6") + public void setCustomDate6(DateTime customDate6) { + this.customDate6 = customDate6; + } + + @JsonProperty("customDate7") + public DateTime getCustomDate7() { + return customDate7; + } + + @JsonProperty("customDate7") + public void setCustomDate7(DateTime customDate7) { + this.customDate7 = customDate7; + } + + @JsonProperty("customDate8") + public DateTime getCustomDate8() { + return customDate8; + } + + @JsonProperty("customDate8") + public void setCustomDate8(DateTime customDate8) { + this.customDate8 = customDate8; + } + + @JsonProperty("customDate9") + public DateTime getCustomDate9() { + return customDate9; + } + + @JsonProperty("customDate9") + public void setCustomDate9(DateTime customDate9) { + this.customDate9 = customDate9; + } + + @JsonProperty("customDate10") + public DateTime getCustomDate10() { + return customDate10; + } + + @JsonProperty("customDate10") + public void setCustomDate10(DateTime customDate10) { + this.customDate10 = customDate10; + } + + @JsonProperty("customTextBlock6") + public String getCustomTextBlock6() { + return customTextBlock6; + } + + @JsonIgnore + public void setCustomTextBlock6(String customTextBlock6) { + this.customTextBlock6 = customTextBlock6; + } + + @JsonProperty("customTextBlock7") + public String getCustomTextBlock7() { + return customTextBlock7; + } + + @JsonIgnore + public void setCustomTextBlock7(String customTextBlock7) { + this.customTextBlock7 = customTextBlock7; + } + + @JsonProperty("customTextBlock8") + public String getCustomTextBlock8() { + return customTextBlock8; + } + + @JsonIgnore + public void setCustomTextBlock8(String customTextBlock8) { + this.customTextBlock8 = customTextBlock8; + } + + @JsonProperty("customTextBlock9") + public String getCustomTextBlock9() { + return customTextBlock9; + } + + @JsonIgnore + public void setCustomTextBlock9(String customTextBlock9) { + this.customTextBlock9 = customTextBlock9; + } + + @JsonProperty("customTextBlock10") + public String getCustomTextBlock10() { + return customTextBlock10; + } + + @JsonIgnore + public void setCustomTextBlock10(String customTextBlock10) { + this.customTextBlock10 = customTextBlock10; + } + + + @Override + public String toString() { + return "CustomFieldsG{" + + "customDate4=" + customDate4 + + ", customDate5=" + customDate5 + + ", customDate6=" + customDate6 + + ", customDate7=" + customDate7 + + ", customDate8=" + customDate8 + + ", customDate9=" + customDate9 + + ", customDate10=" + customDate10 + + ", customTextBlock6='" + customTextBlock6 + '\'' + + ", customTextBlock7='" + customTextBlock7 + '\'' + + ", customTextBlock8='" + customTextBlock8 + '\'' + + ", customTextBlock9='" + customTextBlock9 + '\'' + + ", customTextBlock10='" + customTextBlock10 + '\'' + + '}'; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + CustomFieldsG that = (CustomFieldsG) o; + return Objects.equals(customDate4, that.customDate4) && + Objects.equals(customDate5, that.customDate5) && + Objects.equals(customDate6, that.customDate6) && + Objects.equals(customDate7, that.customDate7) && + Objects.equals(customDate8, that.customDate8) && + Objects.equals(customDate9, that.customDate9) && + Objects.equals(customDate10, that.customDate10) && + Objects.equals(customTextBlock6, that.customTextBlock6) && + Objects.equals(customTextBlock7, that.customTextBlock7) && + Objects.equals(customTextBlock8, that.customTextBlock8) && + Objects.equals(customTextBlock9, that.customTextBlock9) && + Objects.equals(customTextBlock10, that.customTextBlock10); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), customDate4, customDate5, customDate6, customDate7, customDate8, customDate9, customDate10, customTextBlock6, customTextBlock7, customTextBlock8, customTextBlock9, customTextBlock10); + } +} diff --git a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java index 295b7306..0452db9b 100644 --- a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java +++ b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java @@ -1,6 +1,9 @@ package com.bullhornsdk.data.model.enums; +import com.bullhornsdk.data.model.entity.core.certificationrequirement.CandidateCertificationRequirement; +import com.bullhornsdk.data.model.entity.core.certificationrequirement.CertificationRequirement; +import com.bullhornsdk.data.model.entity.core.certificationrequirement.JobSubmissionCertificationRequirement; import com.bullhornsdk.data.model.entity.core.customobject.ClientCorporationCustomObject; import com.bullhornsdk.data.model.entity.core.customobject.JobOrderCustomObject; import com.bullhornsdk.data.model.entity.core.customobject.PlacementCustomObject; @@ -21,7 +24,10 @@ import com.bullhornsdk.data.model.entity.core.paybill.discount.DiscountType; import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.paybill.invoice.*; -import com.bullhornsdk.data.model.entity.core.paybill.master.*; +import com.bullhornsdk.data.model.entity.core.paybill.master.BatchGroup; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; +import com.bullhornsdk.data.model.entity.core.paybill.master.BillingSyncBatch; +import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; import com.bullhornsdk.data.model.entity.core.paybill.surcharge.Surcharge; import com.bullhornsdk.data.model.entity.core.paybill.tax.Tax; import com.bullhornsdk.data.model.entity.core.paybill.transaction.BillMasterTransaction; @@ -199,6 +205,11 @@ public enum BullhornEntityInfo { TAX("Tax", Tax.class, TaxWrapper.class, TaxListWrapper.class, null, null), CANVAS_REPORT("CanvasReport", CanvasReport.class, CanvasReportWrapper.class, CanvasReportListWrapper.class, null, null), + // Certification Requirements + CANDIDATE_CERTIFICATION_REQUIREMENT("CandidateCertificationRequirement", CandidateCertificationRequirement.class, CandidateCertificationRequirementWrapper.class, CandidateCertificationRequirementListWrapper.class, null, null), + CERTIFICATION_REQUIREMENT("CertificationRequirement", CertificationRequirement.class, CertificationRequirementWrapper.class, CertificationRequirementListWrapper.class, null, null), + JOB_SUBMISSION_CERTIFICATION_REQUIREMENT("JobSubmissionCertificationRequirement", JobSubmissionCertificationRequirement.class, JobSubmissionCertificationRequirementWrapper.class, JobSubmissionCertificationRequirementListWrapper.class, null, null), + // Custom Objects CLIENT_CORPORATION_CUSTOM_OBJECT("ClientCorporationCustomObject", ClientCorporationCustomObject.class, ClientCorporationCustomObjectWrapper.class, ClientCorporationCustomObjectListWrapper.class, null, null), diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/CandidateCertificationRequirementListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/CandidateCertificationRequirementListWrapper.java new file mode 100644 index 00000000..df460b0a --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/CandidateCertificationRequirementListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.certificationrequirement.CandidateCertificationRequirement; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class CandidateCertificationRequirementListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/CertificationRequirementListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/CertificationRequirementListWrapper.java new file mode 100644 index 00000000..b5cba299 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/CertificationRequirementListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.certificationrequirement.CertificationRequirement; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class CertificationRequirementListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/JobSubmissionCertificationRequirementListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/JobSubmissionCertificationRequirementListWrapper.java new file mode 100644 index 00000000..290f4163 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/list/JobSubmissionCertificationRequirementListWrapper.java @@ -0,0 +1,11 @@ +package com.bullhornsdk.data.model.response.list; + +import com.bullhornsdk.data.model.entity.core.certificationrequirement.JobSubmissionCertificationRequirement; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"data", "count", "start"}) +public class JobSubmissionCertificationRequirementListWrapper extends StandardListWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/CandidateCertificationRequirementWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/CandidateCertificationRequirementWrapper.java new file mode 100644 index 00000000..dc720cbf --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/CandidateCertificationRequirementWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.certificationrequirement.CandidateCertificationRequirement; + +public class CandidateCertificationRequirementWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/CertificationRequirementWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/CertificationRequirementWrapper.java new file mode 100644 index 00000000..e45766f6 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/CertificationRequirementWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.certificationrequirement.CertificationRequirement; + +public class CertificationRequirementWrapper extends StandardWrapper { + +} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/JobSubmissionCertificationRequirementWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/JobSubmissionCertificationRequirementWrapper.java new file mode 100644 index 00000000..d2de2644 --- /dev/null +++ b/src/main/java/com/bullhornsdk/data/model/response/single/JobSubmissionCertificationRequirementWrapper.java @@ -0,0 +1,7 @@ +package com.bullhornsdk.data.model.response.single; + +import com.bullhornsdk.data.model.entity.core.certificationrequirement.JobSubmissionCertificationRequirement; + +public class JobSubmissionCertificationRequirementWrapper extends StandardWrapper { + +} diff --git a/src/test/resources/testdata/rest/candidatecertificationrequirement-data.txt b/src/test/resources/testdata/rest/candidatecertificationrequirement-data.txt new file mode 100644 index 00000000..65dec398 --- /dev/null +++ b/src/test/resources/testdata/rest/candidatecertificationrequirement-data.txt @@ -0,0 +1,1492 @@ +{ + "start": 0, + "count": 20, + "data": [ + { + "id": 1, + "candidate": { + "id": 27, + "firstName": "Test My12", + "lastName": "Candidate" + }, + "candidateCertification": null, + "certification": { + "id": 100139, + "name": "ADULT-ABUSE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1587378843450, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 2, + "candidate": { + "id": 21, + "firstName": "Jonah", + "lastName": "Jameson" + }, + "candidateCertification": null, + "certification": { + "id": 100134, + "name": "AAS TBSS" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915258257, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 3, + "candidate": { + "id": 21, + "firstName": "Jonah", + "lastName": "Jameson" + }, + "candidateCertification": { + "id": 3, + "name": "ACLS" + }, + "certification": { + "id": 100496, + "name": "ID-BADGE" + }, + "certificationFileAttachments": { + "total": 1, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": "2", + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": "TBD", + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585825769887, + "dateExpiration": 1585987200000, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": { + "id": 10001, + "label": "OA Invalid" + }, + "userCertificationName": "ACLS", + "userCertificationStatus": "Expired" + }, + { + "id": 4, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 5, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 6, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 7, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 8, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 9, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 10, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 11, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 12, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 13, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 14, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 15, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 16, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 17, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 18, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 19, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 20, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + } + ] +} diff --git a/src/test/resources/testdata/rest/certificationrequirement-data.txt b/src/test/resources/testdata/rest/certificationrequirement-data.txt new file mode 100644 index 00000000..e28791df --- /dev/null +++ b/src/test/resources/testdata/rest/certificationrequirement-data.txt @@ -0,0 +1,1551 @@ +{ + "start": 0, + "count": 9, + "data": [ + { + "id": 9, + "candidate": { + "id": 27, + "firstName": "Test My12", + "lastName": "Candidate" + }, + "candidateCertification": null, + "certification": { + "id": 100139, + "name": "ADULT-ABUSE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1587378843450, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 8, + "candidate": { + "id": 21, + "firstName": "Jonah", + "lastName": "Jameson" + }, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915655053, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 7, + "candidate": { + "id": 21, + "firstName": "Jonah", + "lastName": "Jameson" + }, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 6, + "candidate": { + "id": 21, + "firstName": "Jonah", + "lastName": "Jameson" + }, + "candidateCertification": null, + "certification": { + "id": 100407, + "name": "EAD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915505150, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": { + "id": 4 + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 5, + "candidate": { + "id": 21, + "firstName": "Jonah", + "lastName": "Jameson" + }, + "candidateCertification": null, + "certification": { + "id": 100134, + "name": "AAS TBSS" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915258257, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 4, + "candidate": { + "id": 21, + "firstName": "Jonah", + "lastName": "Jameson" + }, + "candidateCertification": { + "id": 3, + "name": "ACLS" + }, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 1, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": "2", + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": "TBD", + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585826070933, + "dateExpiration": 1585987200000, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": { + "id": 4 + }, + "status": { + "id": 10003, + "label": "CC Invalid" + }, + "userCertificationName": "ACLS", + "userCertificationStatus": "Expired" + }, + { + "id": 3, + "candidate": { + "id": 21, + "firstName": "Jonah", + "lastName": "Jameson" + }, + "candidateCertification": { + "id": 3, + "name": "ACLS" + }, + "certification": { + "id": 100496, + "name": "ID-BADGE" + }, + "certificationFileAttachments": { + "total": 1, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": "2", + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": "TBD", + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585825769887, + "dateExpiration": 1585987200000, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": { + "id": 10001, + "label": "OA Invalid" + }, + "userCertificationName": "ACLS", + "userCertificationStatus": "Expired" + }, + { + "id": 2, + "candidate": { + "id": 3, + "firstName": "test", + "lastName": "test" + }, + "candidateCertification": { + "id": 4, + "name": "AAS TBSS" + }, + "certification": { + "id": 100134, + "name": "AAS TBSS" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585825310540, + "dateExpiration": 1587700800000, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": { + "id": 7 + }, + "status": null, + "userCertificationName": "AAS TBSS", + "userCertificationStatus": "Expired" + }, + { + "id": 1, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 10, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 11, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 12, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 13, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 14, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 15, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 16, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 17, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 18, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 19, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 30, + "candidate": { + "id": 7, + "firstName": "ssn", + "lastName": "test" + }, + "candidateCertification": null, + "certification": { + "id": 100497, + "name": "IDCARD" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585743324180, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": null, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "placement": null, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + } + ] +} diff --git a/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt b/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt index 7f148d93..08b01150 100644 --- a/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt +++ b/src/test/resources/testdata/rest/file/billablechargefileattachment-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 20, + "count": 21, "data": [ { "id": 1, @@ -20,7 +20,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 2, "billableCharge": { "id": 3 }, @@ -37,7 +37,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 3, "billableCharge": { "id": 3 }, @@ -54,7 +54,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 4, "billableCharge": { "id": 3 }, @@ -71,7 +71,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 5, "billableCharge": { "id": 3 }, @@ -88,7 +88,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 6, "billableCharge": { "id": 3 }, @@ -105,7 +105,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 7, "billableCharge": { "id": 3 }, @@ -122,7 +122,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 8, "billableCharge": { "id": 3 }, @@ -139,7 +139,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 9, "billableCharge": { "id": 3 }, @@ -156,7 +156,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 10, "billableCharge": { "id": 3 }, @@ -173,7 +173,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 11, "billableCharge": { "id": 3 }, @@ -190,7 +190,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 12, "billableCharge": { "id": 3 }, @@ -207,7 +207,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 13, "billableCharge": { "id": 3 }, @@ -224,7 +224,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 14, "billableCharge": { "id": 3 }, @@ -241,7 +241,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 15, "billableCharge": { "id": 3 }, @@ -258,7 +258,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 16, "billableCharge": { "id": 3 }, @@ -275,7 +275,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 17, "billableCharge": { "id": 3 }, @@ -292,7 +292,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 18, "billableCharge": { "id": 3 }, @@ -309,7 +309,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 19, "billableCharge": { "id": 3 }, @@ -326,7 +326,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 20, "billableCharge": { "id": 3 }, @@ -343,7 +343,7 @@ "fileSize": 27, "name": "Receipt2.jpg" }, { - "id": 1, + "id": 21, "billableCharge": { "id": 3 }, diff --git a/src/test/resources/testdata/rest/file/invoicestatementexport-data.txt b/src/test/resources/testdata/rest/file/invoicestatementexport-data.txt index d9e3c0ca..af8a0f91 100644 --- a/src/test/resources/testdata/rest/file/invoicestatementexport-data.txt +++ b/src/test/resources/testdata/rest/file/invoicestatementexport-data.txt @@ -28,7 +28,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 2, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -53,7 +53,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 3, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -78,7 +78,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 4, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -103,7 +103,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 5, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -128,7 +128,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 6, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -153,7 +153,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 7, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -178,7 +178,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 8, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -203,7 +203,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 9, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -228,7 +228,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 10, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -253,7 +253,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 11, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -278,7 +278,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 12, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -303,7 +303,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 13, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -328,7 +328,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 14, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -353,7 +353,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 15, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -378,7 +378,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 16, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -403,7 +403,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 17, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -428,7 +428,7 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 18, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, @@ -453,7 +453,32 @@ "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" }, { - "id": 1, + "id": 19, + "contentSubType": "pdf", + "contentType": "application", + "dateAdded": 1587724980667, + "dateLastModified": 1587724980667, + "directory": "31625/2020.04/", + "fileExtension": ".pdf", + "fileOwner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "fileSize": 36669, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementEmailBatches": { + "total": 20, + "data": [] + }, + "isCurrent": false, + "isFinalized": false, + "name": "Vaco NPE - Pro forma Invoice ID 2 - Wells Fargo.pdf" + }, + { + "id": 20, "contentSubType": "pdf", "contentType": "application", "dateAdded": 1587724980667, diff --git a/src/test/resources/testdata/rest/jobsubmissioncertificationrequirement-data.txt b/src/test/resources/testdata/rest/jobsubmissioncertificationrequirement-data.txt new file mode 100644 index 00000000..2d656259 --- /dev/null +++ b/src/test/resources/testdata/rest/jobsubmissioncertificationrequirement-data.txt @@ -0,0 +1,1446 @@ +{ + "start": 0, + "count": 20, + "data": [ + { + "id": 8, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915655053, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 7, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 1, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 2, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 3, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 4, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 5, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 6, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 9, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 10, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 11, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 12, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 13, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 14, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 15, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 16, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 17, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 18, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 19, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + }, + { + "id": 20, + "candidateCertification": null, + "certification": { + "id": 100495, + "name": "IABP CE" + }, + "certificationFileAttachments": { + "total": 0, + "data": [] + }, + "customDate1": null, + "customDate10": null, + "customDate2": null, + "customDate3": null, + "customDate4": null, + "customDate5": null, + "customDate6": null, + "customDate7": null, + "customDate8": null, + "customDate9": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText2": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock10": null, + "customTextBlock2": null, + "customTextBlock3": null, + "customTextBlock4": null, + "customTextBlock5": null, + "customTextBlock6": null, + "customTextBlock7": null, + "customTextBlock8": null, + "customTextBlock9": null, + "dateAdded": 1585915528020, + "dateExpiration": null, + "documentDeadline": null, + "fileAttachments": { + "total": 0, + "data": [] + }, + "jobSubmission": { + "id": 10 + }, + "matchingCredentialCount": 0, + "modifyingUser": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "owner": { + "id": 2, + "firstName": "Bullhorn", + "lastName": "Dev" + }, + "status": null, + "userCertificationName": null, + "userCertificationStatus": "Incomplete" + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/candidatecertificationrequirement-meta-data.txt b/src/test/resources/testdata/rest/meta/candidatecertificationrequirement-meta-data.txt new file mode 100644 index 00000000..869c20aa --- /dev/null +++ b/src/test/resources/testdata/rest/meta/candidatecertificationrequirement-meta-data.txt @@ -0,0 +1,696 @@ +{ + "entity": "CandidateCertificationRequirement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CandidateCertificationRequirement?fields=*", + "label": "Candidate Credential Requirement", + "dateLastModified": "1587980928443", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "candidate", + "type": "TO_ONE", + "confidential": false, + "label": "Candidate", + "optionsType": "Candidate", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/Candidate", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Candidate", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/Candidate?fields=*", + "label": "Professional", + "dateLastModified": "1587686786929", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "candidateCertification", + "type": "TO_ONE", + "confidential": false, + "label": "Candidate Credential", + "optionsType": "CandidateCertification", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CandidateCertification", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CandidateCertification", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CandidateCertification?fields=*", + "label": "Candidate Certification", + "dateLastModified": "1587686788127", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Credential", + "hideFromSearch": false + } + ] + } + }, + { + "name": "certification", + "type": "TO_ONE", + "confidential": false, + "label": "Certification", + "optionsType": "Certification", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/Certification", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Certification", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/Certification?fields=*", + "label": "Credential", + "dateLastModified": "1587686789625", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "certificationFileAttachments", + "type": "TO_MANY", + "confidential": false, + "label": "File Attachments", + "optionsType": "CertificationFileAttachment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CertificationFileAttachment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CertificationFileAttachment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CertificationFileAttachment?fields=*", + "label": "Credential File Attachment", + "dateLastModified": "1587980928742", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate10", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate10", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customDate4", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate4", + "hideFromSearch": false + }, + { + "name": "customDate5", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate5", + "hideFromSearch": false + }, + { + "name": "customDate6", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate6", + "hideFromSearch": false + }, + { + "name": "customDate7", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate7", + "hideFromSearch": false + }, + { + "name": "customDate8", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate8", + "hideFromSearch": false + }, + { + "name": "customDate9", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate9", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Third Party Flag", + "options": [ + { + "value": "1", + "label": "Incomplete" + }, + { + "value": "2", + "label": "Invalid" + }, + { + "value": "3", + "label": "Expired" + } + ], + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Required?", + "options": [ + { + "value": "1", + "label": "Yes" + }, + { + "value": "0", + "label": "No" + } + ], + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Reason Code", + "options": [ + { + "value": "TBD", + "label": "TBD" + } + ], + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock10", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "customTextBlock4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock4", + "hideFromSearch": false + }, + { + "name": "customTextBlock5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock5", + "hideFromSearch": false + }, + { + "name": "customTextBlock6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock6", + "hideFromSearch": false + }, + { + "name": "customTextBlock7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock7", + "hideFromSearch": false + }, + { + "name": "customTextBlock8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock8", + "hideFromSearch": false + }, + { + "name": "customTextBlock9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock9", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateExpiration", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Expiration Date", + "hideFromSearch": false + }, + { + "name": "documentDeadline", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Document Deadline", + "hideFromSearch": false + }, + { + "name": "fileAttachments", + "type": "TO_MANY", + "confidential": false, + "label": "File Attachments", + "optionsType": "CandidateFileAttachment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CandidateFileAttachment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CandidateFileAttachment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CandidateFileAttachment?fields=*", + "label": "File Attachments", + "dateLastModified": "1587686790046", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "matchingCredentialCount", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "Matching Credential Count", + "hideFromSearch": false + }, + { + "name": "modifyingUser", + "type": "TO_ONE", + "confidential": false, + "label": "Modifying User", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587686787118", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "Owner", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587686787118", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "status", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "Status", + "optionsType": "CertificationRequirementStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CertificationRequirementStatusLookup", + "options": [ + { + "value": 1, + "label": "Incomplete", + "readOnly": false + }, + { + "value": 2, + "label": "Completed", + "readOnly": true + }, + { + "value": 10000, + "label": "Pending OA", + "readOnly": false + }, + { + "value": 10001, + "label": "OA Invalid", + "readOnly": false + }, + { + "value": 10002, + "label": "OA Valid", + "readOnly": false + }, + { + "value": 10003, + "label": "CC Invalid", + "readOnly": false + }, + { + "value": 10004, + "label": "CC Valid", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "CertificationRequirementStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CertificationRequirementStatusLookup?fields=*", + "label": "Certification Requirement Status Lookup", + "dateLastModified": "1587698617150", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "userCertificationName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Candidate Credential Name", + "hideFromSearch": false + }, + { + "name": "userCertificationStatus", + "type": "SCALAR", + "dataType": "String", + "maxLength": 30, + "confidential": false, + "label": "Candidate Credential Status", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/certificationrequirement-meta-data.txt b/src/test/resources/testdata/rest/meta/certificationrequirement-meta-data.txt new file mode 100644 index 00000000..d28f9c43 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/certificationrequirement-meta-data.txt @@ -0,0 +1,740 @@ +{ + "entity": "CertificationRequirement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CertificationRequirement?fields=*", + "label": "Credential Requirement", + "dateLastModified": "1587698616276", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "candidate", + "type": "TO_ONE", + "confidential": false, + "label": "Candidate", + "optionsType": "Candidate", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/Candidate", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Candidate", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/Candidate?fields=*", + "label": "Professional", + "dateLastModified": "1587686786929", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "candidateCertification", + "type": "TO_ONE", + "confidential": false, + "label": "Candidate Credential", + "optionsType": "CandidateCertification", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CandidateCertification", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CandidateCertification", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CandidateCertification?fields=*", + "label": "Candidate Certification", + "dateLastModified": "1587686788127", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Credential", + "hideFromSearch": false + } + ] + } + }, + { + "name": "certification", + "type": "TO_ONE", + "confidential": false, + "label": "Certification", + "optionsType": "Certification", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/Certification", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Certification", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/Certification?fields=*", + "label": "Credential", + "dateLastModified": "1587686789625", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "certificationFileAttachments", + "type": "TO_MANY", + "confidential": false, + "label": "File Attachments", + "optionsType": "CertificationFileAttachment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CertificationFileAttachment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CertificationFileAttachment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CertificationFileAttachment?fields=*", + "label": "Credential File Attachment", + "dateLastModified": "1587980928742", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate10", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate10", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customDate4", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate4", + "hideFromSearch": false + }, + { + "name": "customDate5", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate5", + "hideFromSearch": false + }, + { + "name": "customDate6", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate6", + "hideFromSearch": false + }, + { + "name": "customDate7", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate7", + "hideFromSearch": false + }, + { + "name": "customDate8", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate8", + "hideFromSearch": false + }, + { + "name": "customDate9", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate9", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Third Party Flag", + "options": [ + { + "value": "1", + "label": "Incomplete" + }, + { + "value": "2", + "label": "Invalid" + }, + { + "value": "3", + "label": "Expired" + } + ], + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Required?", + "options": [ + { + "value": "1", + "label": "Yes" + }, + { + "value": "0", + "label": "No" + } + ], + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Reason Code", + "options": [ + { + "value": "TBD", + "label": "TBD" + } + ], + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock10", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "customTextBlock4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock4", + "hideFromSearch": false + }, + { + "name": "customTextBlock5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock5", + "hideFromSearch": false + }, + { + "name": "customTextBlock6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock6", + "hideFromSearch": false + }, + { + "name": "customTextBlock7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock7", + "hideFromSearch": false + }, + { + "name": "customTextBlock8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock8", + "hideFromSearch": false + }, + { + "name": "customTextBlock9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock9", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateExpiration", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Expiration Date", + "hideFromSearch": false + }, + { + "name": "documentDeadline", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Document Deadline", + "hideFromSearch": false + }, + { + "name": "fileAttachments", + "type": "TO_MANY", + "confidential": false, + "label": "File Attachments", + "optionsType": "CandidateFileAttachment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CandidateFileAttachment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CandidateFileAttachment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CandidateFileAttachment?fields=*", + "label": "File Attachments", + "dateLastModified": "1587686790046", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "jobSubmission", + "type": "TO_ONE", + "confidential": false, + "label": "Job Submission", + "optionsType": "JobSubmission", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/JobSubmission", + "hideFromSearch": false, + "associatedEntity": { + "entity": "JobSubmission", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/JobSubmission?fields=*", + "label": "Shortlist", + "dateLastModified": "1587686791830", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "matchingCredentialCount", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "Matching Credential Count", + "hideFromSearch": false + }, + { + "name": "modifyingUser", + "type": "TO_ONE", + "confidential": false, + "label": "Modifying User", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587686787118", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "Owner", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587686787118", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "placement", + "type": "TO_ONE", + "confidential": false, + "label": "Placement", + "optionsType": "Placement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/Placement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Placement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/Placement?fields=*", + "label": "Assignment", + "dateLastModified": "1587687082631", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "status", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "Status", + "optionsType": "CertificationRequirementStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CertificationRequirementStatusLookup", + "options": [ + { + "value": 1, + "label": "Incomplete", + "readOnly": false + }, + { + "value": 2, + "label": "Completed", + "readOnly": true + }, + { + "value": 10000, + "label": "Pending OA", + "readOnly": false + }, + { + "value": 10001, + "label": "OA Invalid", + "readOnly": false + }, + { + "value": 10002, + "label": "OA Valid", + "readOnly": false + }, + { + "value": 10003, + "label": "CC Invalid", + "readOnly": false + }, + { + "value": 10004, + "label": "CC Valid", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "CertificationRequirementStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CertificationRequirementStatusLookup?fields=*", + "label": "Certification Requirement Status Lookup", + "dateLastModified": "1587698617150", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "userCertificationName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Candidate Credential Name", + "hideFromSearch": false + }, + { + "name": "userCertificationStatus", + "type": "SCALAR", + "dataType": "String", + "maxLength": 30, + "confidential": false, + "label": "Candidate Credential Status", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/meta/jobsubmissioncertificationrequirement-meta-data.txt b/src/test/resources/testdata/rest/meta/jobsubmissioncertificationrequirement-meta-data.txt new file mode 100644 index 00000000..28566aa6 --- /dev/null +++ b/src/test/resources/testdata/rest/meta/jobsubmissioncertificationrequirement-meta-data.txt @@ -0,0 +1,678 @@ +{ + "entity": "JobSubmissionCertificationRequirement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/JobSubmissionCertificationRequirement?fields=*", + "label": "Job Submission Certification Requirement", + "dateLastModified": "1587686810209", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "candidateCertification", + "type": "TO_ONE", + "confidential": false, + "label": "Candidate Credential", + "optionsType": "CandidateCertification", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CandidateCertification", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CandidateCertification", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CandidateCertification?fields=*", + "label": "Candidate Certification", + "dateLastModified": "1587686788127", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Credential", + "hideFromSearch": false + } + ] + } + }, + { + "name": "certification", + "type": "TO_ONE", + "confidential": false, + "label": "Certification", + "optionsType": "Certification", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/Certification", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Certification", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/Certification?fields=*", + "label": "Credential", + "dateLastModified": "1587686789625", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "certificationFileAttachments", + "type": "TO_MANY", + "confidential": false, + "label": "File Attachments", + "optionsType": "CertificationFileAttachment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CertificationFileAttachment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CertificationFileAttachment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CertificationFileAttachment?fields=*", + "label": "Credential File Attachment", + "dateLastModified": "1587980928742", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate10", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate10", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customDate4", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate4", + "hideFromSearch": false + }, + { + "name": "customDate5", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate5", + "hideFromSearch": false + }, + { + "name": "customDate6", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate6", + "hideFromSearch": false + }, + { + "name": "customDate7", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate7", + "hideFromSearch": false + }, + { + "name": "customDate8", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate8", + "hideFromSearch": false + }, + { + "name": "customDate9", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate9", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Third Party Flag", + "options": [ + { + "value": "1", + "label": "Incomplete" + }, + { + "value": "2", + "label": "Invalid" + }, + { + "value": "3", + "label": "Expired" + } + ], + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Required?", + "options": [ + { + "value": "1", + "label": "Yes" + }, + { + "value": "0", + "label": "No" + } + ], + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Reason Code", + "options": [ + { + "value": "TBD", + "label": "TBD" + } + ], + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock10", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "customTextBlock4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock4", + "hideFromSearch": false + }, + { + "name": "customTextBlock5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock5", + "hideFromSearch": false + }, + { + "name": "customTextBlock6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock6", + "hideFromSearch": false + }, + { + "name": "customTextBlock7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock7", + "hideFromSearch": false + }, + { + "name": "customTextBlock8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock8", + "hideFromSearch": false + }, + { + "name": "customTextBlock9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock9", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateExpiration", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Expiration Date", + "hideFromSearch": false + }, + { + "name": "documentDeadline", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Document Deadline", + "hideFromSearch": false + }, + { + "name": "fileAttachments", + "type": "TO_MANY", + "confidential": false, + "label": "File Attachments", + "optionsType": "CandidateFileAttachment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CandidateFileAttachment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CandidateFileAttachment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CandidateFileAttachment?fields=*", + "label": "File Attachments", + "dateLastModified": "1587686790046", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "jobSubmission", + "type": "TO_ONE", + "confidential": false, + "label": "Job Submission", + "optionsType": "JobSubmission", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/JobSubmission", + "hideFromSearch": false, + "associatedEntity": { + "entity": "JobSubmission", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/JobSubmission?fields=*", + "label": "Shortlist", + "dateLastModified": "1587686791830", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "matchingCredentialCount", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "Matching Credential Count", + "hideFromSearch": false + }, + { + "name": "modifyingUser", + "type": "TO_ONE", + "confidential": false, + "label": "Modifying User", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587686787118", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "Owner", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587686787118", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "status", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "Status", + "optionsType": "CertificationRequirementStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/options/CertificationRequirementStatusLookup", + "options": [ + { + "value": 1, + "label": "Incomplete", + "readOnly": false + }, + { + "value": 2, + "label": "Completed", + "readOnly": true + }, + { + "value": 10000, + "label": "Pending OA", + "readOnly": false + }, + { + "value": 10001, + "label": "OA Invalid", + "readOnly": false + }, + { + "value": 10002, + "label": "OA Valid", + "readOnly": false + }, + { + "value": 10003, + "label": "CC Invalid", + "readOnly": false + }, + { + "value": 10004, + "label": "CC Valid", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "CertificationRequirementStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/5vklop/meta/CertificationRequirementStatusLookup?fields=*", + "label": "Certification Requirement Status Lookup", + "dateLastModified": "1587698617150", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + }, + { + "name": "userCertificationName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Candidate Credential Name", + "hideFromSearch": false + }, + { + "name": "userCertificationStatus", + "type": "SCALAR", + "dataType": "String", + "maxLength": 30, + "confidential": false, + "label": "Candidate Credential Status", + "hideFromSearch": false + } + ] +} diff --git a/src/test/resources/testdata/rest/paybill/batchgroup-data.txt b/src/test/resources/testdata/rest/paybill/batchgroup-data.txt index 3764bcea..e30f4bb3 100644 --- a/src/test/resources/testdata/rest/paybill/batchgroup-data.txt +++ b/src/test/resources/testdata/rest/paybill/batchgroup-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 3, + "count": 20, "data": [ { "id": 3, @@ -25,6 +25,142 @@ "data": [] }, "dateAdded": 1587645173377 + }, + { + "id": 14, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 15, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 16, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 17, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 18, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 19, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 10, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 11, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 21, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 31, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 41, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 51, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 61, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 71, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 81, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 91, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 + }, + { + "id": 20, + "billingSyncBatches": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173377 } ] } diff --git a/src/test/resources/testdata/rest/paybill/billablecharge-data.txt b/src/test/resources/testdata/rest/paybill/billablecharge-data.txt index 9eb21b1d..0cbbb46d 100644 --- a/src/test/resources/testdata/rest/paybill/billablecharge-data.txt +++ b/src/test/resources/testdata/rest/paybill/billablecharge-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 2, @@ -73,6 +73,1374 @@ "total": 0, "data": [] } + }, + { + "id": 1, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 3, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 4, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 5, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 6, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 7, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 8, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 9, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 10, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 11, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 12, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 13, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 14, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 15, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 16, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 17, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 18, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 19, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } + }, + { + "id": 20, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "billMasters": { + "total": 0, + "data": [] + }, + "billableTransactions": { + "total": 0, + "data": [] + }, + "billingClientContact": null, + "billingClientCorporation": null, + "billingCorporateUser": null, + "billingFrequency": "", + "billingProfile": null, + "billingSchedule": null, + "candidate": { + "id": 1372076, + "firstName": "Test", + "lastName": "1" + }, + "clientCorporation": null, + "currencyUnit": null, + "dateAdded": 1587666411913, + "dateLastModified": 1587666411913, + "description": "CreateInvoiceStatementLine", + "fileAttachments": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "invoiceTerm": null, + "invoicedTransactions": { + "total": 0, + "data": [] + }, + "isInvoiced": false, + "jobOrder": { + "id": 97147, + "title": "test" + }, + "periodEndDate": "2020-04-23", + "placement": { + "id": 2336015 + }, + "readyToBillOverride": false, + "status": { + "id": 1, + "label": "Not Ready to Bill" + }, + "subtotal": null, + "summaryTransactions": { + "total": 0, + "data": [] + }, + "transactionStatus": null, + "transactionType": null, + "unbillableTransactions": { + "total": 0, + "data": [] + } } ] } diff --git a/src/test/resources/testdata/rest/paybill/billingsyncbatch-data.txt b/src/test/resources/testdata/rest/paybill/billingsyncbatch-data.txt index c3fe04f5..705c2270 100644 --- a/src/test/resources/testdata/rest/paybill/billingsyncbatch-data.txt +++ b/src/test/resources/testdata/rest/paybill/billingsyncbatch-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 3, + "count": 20, "data": [ { "id": 3, @@ -82,6 +82,465 @@ "id": 1, "name": "Manual Entry" } + }, + { + "id": 4, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 5, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 6, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 7, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 8, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 9, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 10, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 11, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 12, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 13, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 14, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 15, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 16, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 17, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 18, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 19, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } + }, + { + "id": 20, + "batchGroup": { + "id": 1 + }, + "billMasters": { + "total": 1, + "data": [] + }, + "dateAdded": 1587645173633, + "dateLastModified": 1587645173633, + "defaultBillableCharge": { + "id": 1 + }, + "defaultPayableCharge": null, + "externalID": null, + "payMasters": { + "total": 0, + "data": [] + }, + "periodEndDate": "2020-05-31", + "timeOfExternalEvent": 1587645173387, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + } } ] } diff --git a/src/test/resources/testdata/rest/paybill/billmaster-data.txt b/src/test/resources/testdata/rest/paybill/billmaster-data.txt index 272857e7..61800140 100644 --- a/src/test/resources/testdata/rest/paybill/billmaster-data.txt +++ b/src/test/resources/testdata/rest/paybill/billmaster-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -82,6 +82,1545 @@ "lastName": "Support" }, "transactionDate": "2020-04-23" + }, + { + "id": 2, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 3, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 4, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 5, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 6, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 7, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 8, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 9, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 10, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 11, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 12, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 13, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 14, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 15, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 16, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 17, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 18, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 19, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" + }, + { + "id": 20, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharge": { + "id": 1 + }, + "billingSyncBatch": { + "id": 1 + }, + "canInvoice": false, + "dateAdded": 1587645173970, + "dateLastModified": 1587645173970, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "location": null, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "transactionDate": "2020-04-23" } ] } diff --git a/src/test/resources/testdata/rest/paybill/billmastertransaction-data.txt b/src/test/resources/testdata/rest/paybill/billmastertransaction-data.txt index 89e54fcb..eafcce55 100644 --- a/src/test/resources/testdata/rest/paybill/billmastertransaction-data.txt +++ b/src/test/resources/testdata/rest/paybill/billmastertransaction-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -47,6 +47,880 @@ "id": 1, "label": "Hours" } + }, + { + "id": 2, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 3, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 4, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 5, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 6, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 7, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 8, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 9, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 10, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 11, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 12, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 13, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 14, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 15, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 16, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 17, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 18, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 19, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } + }, + { + "id": 20, + "adjustmentSequenceNumber": 0, + "amount": 15.0000, + "billMaster": { + "id": 1 + }, + "comment": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587645174253, + "dateLastModified": 1587645174253, + "invoiceStatement": { + "id": 2 + }, + "invoiceStatementBatch": { + "id": 1 + }, + "invoiceStatementLineItem": { + "id": 3 + }, + "needsReview": false, + "quantity": 5.000000, + "rate": 3.0000, + "recordingDate": "2020-04-23", + "reversalOfTransaction": null, + "transactionOrigin": { + "id": 1, + "name": "Manual Entry" + }, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + }, + "unitOfMeasure": { + "id": 1, + "label": "Hours" + } } ] } diff --git a/src/test/resources/testdata/rest/paybill/discount-data.txt b/src/test/resources/testdata/rest/paybill/discount-data.txt index 1ae849c2..281e7eac 100644 --- a/src/test/resources/testdata/rest/paybill/discount-data.txt +++ b/src/test/resources/testdata/rest/paybill/discount-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -74,6 +74,1393 @@ }, "label": "Percent Test", "value": 0.100000 + }, + { + "id": 2, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 3, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 4, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 5, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 6, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 7, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 8, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 9, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 10, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 11, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 12, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 13, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 14, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 15, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 16, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 17, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 18, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 19, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 + }, + { + "id": 20, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587914502627, + "discountType": { + "id": 2, + "label": "Percent" + }, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "value": 0.100000 } ] } diff --git a/src/test/resources/testdata/rest/paybill/earncode-data.txt b/src/test/resources/testdata/rest/paybill/earncode-data.txt index f768031e..c1b9a259 100644 --- a/src/test/resources/testdata/rest/paybill/earncode-data.txt +++ b/src/test/resources/testdata/rest/paybill/earncode-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 3, + "count": 20, "data": [ { "id": 3, @@ -118,6 +118,180 @@ "status": null, "title": "Overtime" }, + { + "id": 20, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 4, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 5, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, { "id": 1, "code": "REG", @@ -175,6 +349,818 @@ "owner": null, "status": null, "title": "Regular" + }, + { + "id": 6, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 7, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 8, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 9, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 10, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 11, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 12, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 13, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 14, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 15, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 16, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 17, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 18, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" + }, + { + "id": 19, + "code": "REG", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246193, + "dateLastModified": 1584066246193, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 1 + }, + "externalID": "REG", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Regular" } ] } diff --git a/src/test/resources/testdata/rest/paybill/generalledgersegmenttype-data.txt b/src/test/resources/testdata/rest/paybill/generalledgersegmenttype-data.txt index 1a516908..81d065b1 100644 --- a/src/test/resources/testdata/rest/paybill/generalledgersegmenttype-data.txt +++ b/src/test/resources/testdata/rest/paybill/generalledgersegmenttype-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 5, + "count": 20, "data": [ { "id": 5, @@ -31,6 +31,96 @@ "description": "GL class segment", "isEnabled": true, "segmentType": "Class" + }, + { + "id": 6, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 7, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 8, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 9, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 10, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 11, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 12, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 13, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 14, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 15, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 16, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 17, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 18, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 19, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" + }, + { + "id": 20, + "description": "GL class segment", + "isEnabled": true, + "segmentType": "Class" } ] } diff --git a/src/test/resources/testdata/rest/paybill/generalledgerservicecode-data.txt b/src/test/resources/testdata/rest/paybill/generalledgerservicecode-data.txt index d00f9fa2..5b777dcd 100644 --- a/src/test/resources/testdata/rest/paybill/generalledgerservicecode-data.txt +++ b/src/test/resources/testdata/rest/paybill/generalledgerservicecode-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -10,6 +10,177 @@ "externalServiceCodeNumber": "1", "isActive": true, "isDeleted": false + }, + { + "id": 2, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 3, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 4, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 5, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 6, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 7, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 8, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 9, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 10, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 11, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 12, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 13, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 14, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 15, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 16, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 17, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 18, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 19, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false + }, + { + "id": 20, + "dateAdded": 1587914812710, + "dateLastModified": 1587914812710, + "externalServiceCodeName": " Test", + "externalServiceCodeNumber": "1", + "isActive": true, + "isDeleted": false } ] } diff --git a/src/test/resources/testdata/rest/paybill/invoicestatement-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatement-data.txt index fc8533c5..9ce7734a 100644 --- a/src/test/resources/testdata/rest/paybill/invoicestatement-data.txt +++ b/src/test/resources/testdata/rest/paybill/invoicestatement-data.txt @@ -1,9 +1,9 @@ { "start": 0, - "count": 2, + "count": 20, "data": [ { - "id": 2, + "id": 1, "billingAddress": { "address1": "", "address2": "", @@ -139,7 +139,2455 @@ "total": 18.150000 }, { - "id": 1, + "id": 2, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 3, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 4, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 5, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 6, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 7, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 8, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 9, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 10, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 11, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 12, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 13, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 14, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 15, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 16, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 17, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 18, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 19, + "billingAddress": { + "address1": "fake", + "address2": "", + "city": "houston", + "state": "TX", + "zip": "77027", + "countryID": 1, + "countryName": "United States", + "countryCode": "US" + }, + "billingAttention": "fake", + "billingClientContact": { + "id": 2711268, + "firstName": "zz_Billing", + "lastName": "zzProfile" + }, + "billingCorporateUser": null, + "billingPeriodEndDate": "2020-04-23", + "billingProfile": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "fake", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 3930, + "billingClientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + } + }, + "billingScheduleID": null, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "creditOfInvoiceStatement": null, + "creditedByInvoiceStatement": null, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587666376617, + "dateLastModified": 1587666376617, + "deliveryMethod": "Email", + "deliveryStatus": { + "id": 1, + "label": "N/A" + }, + "discountAmount": null, + "discountTotal": 0E-10, + "discounts": { + "total": 0, + "data": [] + }, + "dueDate": null, + "effectiveDate": "2020-04-23", + "emailErrorReason": null, + "generalLedgerExportStatusLookup": { + "id": 1, + "label": "Not Ready to Export" + }, + "invoiceStatementDate": null, + "invoiceStatementExportBatches": { + "total": 0, + "data": [] + }, + "invoiceStatementExports": { + "total": 0, + "data": [] + }, + "invoiceStatementFinalizedDate": null, + "invoiceStatementNumber": null, + "invoiceStatementOrigin": "Manual", + "invoiceStatementTemplate": { + "id": 1 + }, + "invoiceStatementType": { + "id": 1, + "label": "Original" + }, + "invoiceTerm": { + "id": 1, + "clientCorporation": { + "id": 2, + "name": "Orphaned Contacts" + }, + "title": "Orphaned Contacts - Net 30", + "effectiveDate": "2020-01-11", + "effectiveEndDate": "2999-12-31", + "versionID": 34723 + }, + "isCredited": false, + "isFinalized": false, + "isReinstated": false, + "lineItemTotal": 0.0000, + "lineItems": { + "total": 2, + "data": [] + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "paymentTerms": "30", + "previousBalance": 0.0000, + "purchaseOrderNumber": null, + "remitInstructions": null, + "splitBys": { + "total": 2, + "data": [] + }, + "status": { + "id": 1, + "label": "New" + }, + "subtotal": 0E-10, + "surchargeTotal": 0E-10, + "surcharges": { + "total": 0, + "data": [] + }, + "taxAmount": null, + "taxTotal": 0.000000, + "taxes": { + "total": 0, + "data": [] + }, + "total": 0.000000 + }, + { + "id": 20, "billingAddress": { "address1": "fake", "address2": "", diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementbatch-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementbatch-data.txt index e16356f4..fe60232d 100644 --- a/src/test/resources/testdata/rest/paybill/invoicestatementbatch-data.txt +++ b/src/test/resources/testdata/rest/paybill/invoicestatementbatch-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -22,6 +22,405 @@ "firstName": "Bullhorn", "lastName": "Support" } + }, + { + "id": 2, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 3, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 4, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 5, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 6, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 7, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 8, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 9, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 10, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 11, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 12, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 13, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 14, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 15, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 16, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 17, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 18, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 19, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 20, + "batchStatus": { + "id": 3 + }, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "billableCharges": { + "total": 1, + "data": [] + }, + "dateAdded": 1587667457527, + "dateLastModified": 1587667468757, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } } ] } diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementdiscount-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementdiscount-data.txt index c0930dbb..6557f3b2 100644 --- a/src/test/resources/testdata/rest/paybill/invoicestatementdiscount-data.txt +++ b/src/test/resources/testdata/rest/paybill/invoicestatementdiscount-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -11,6 +11,196 @@ "invoiceStatement": { "id": 1 } + }, + { + "id": 12, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 13, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 14, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 15, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 16, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 17, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 18, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 19, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 11, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 21, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 31, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 41, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 51, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 61, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 71, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 81, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 91, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 100, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } + }, + { + "id": 101, + "discount": { + "id": 1 + }, + "finalizedValue": null, + "invoiceStatement": { + "id": 1 + } } ] } diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementexportbatch-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementexportbatch-data.txt index ee970640..cce11a76 100644 --- a/src/test/resources/testdata/rest/paybill/invoicestatementexportbatch-data.txt +++ b/src/test/resources/testdata/rest/paybill/invoicestatementexportbatch-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -17,6 +17,310 @@ "firstName": "Bullhorn", "lastName": "Support" } + }, + { + "id": 2, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 3, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 4, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 5, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 6, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 7, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 8, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 9, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 10, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 11, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 12, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 13, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 14, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 15, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 16, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 17, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 18, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 19, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } + }, + { + "id": 20, + "batchStatus": { + "id": 3 + }, + "dateAdded": 1587724971737, + "dateLastModified": 1587724980697, + "invoiceStatement": { + "id": 2 + }, + "owner": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + } } ] } diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementlineitem-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementlineitem-data.txt index 80d4dc3f..14ca664e 100644 --- a/src/test/resources/testdata/rest/paybill/invoicestatementlineitem-data.txt +++ b/src/test/resources/testdata/rest/paybill/invoicestatementlineitem-data.txt @@ -1,93 +1,566 @@ { - "start": 0, - "count": 3, - "data": [ - { - "id": 3, - "billMasterTransactions": { - "total": 1, - "data": [] - }, - "comment": null, - "currencyUnit": null, - "dateAdded": 1587667482520, - "dateLastModified": 1587667482520, - "description": "", - "groupByDisplay": null, - "groupBys": { - "total": 0, - "data": [] - }, - "invoiceStatement": { - "id": 2 - }, - "quantity": 5.000000, - "rate": 3.0000, - "subtotal": 15.0000, - "summarizeBys": { - "total": 1, - "data": [] - }, - "taxAmount": 0.0000, - "total": 15.0000 - }, - { - "id": 2, - "billMasterTransactions": { - "total": 0, - "data": [] - }, - "comment": "Creating a line item", - "currencyUnit": null, - "dateAdded": 1587666456337, - "dateLastModified": 1587666456337, - "description": "CreateInvoiceStatementLine", - "groupByDisplay": null, - "groupBys": { - "total": 0, - "data": [] - }, - "invoiceStatement": { - "id": 1 - }, - "quantity": null, - "rate": null, - "subtotal": 0.0000, - "summarizeBys": { - "total": 0, - "data": [] - }, - "taxAmount": 0.0000, - "total": 0.0000 - }, - { - "id": 1, - "billMasterTransactions": { - "total": 0, - "data": [] - }, - "comment": "Creating a line item", - "currencyUnit": null, - "dateAdded": 1587666411780, - "dateLastModified": 1587666411780, - "description": "CreateInvoiceStatementLine", - "groupByDisplay": null, - "groupBys": { - "total": 0, - "data": [] - }, - "invoiceStatement": { - "id": 1 - }, - "quantity": null, - "rate": null, - "subtotal": 0.0000, - "summarizeBys": { - "total": 0, - "data": [] - }, - "taxAmount": 0.0000, - "total": 0.0000 - } - ] + "start": 0, + "count": 20, + "data": [{ + "id": 3, + "billMasterTransactions": { + "total": 1, + "data": [] + }, + "comment": null, + "currencyUnit": null, + "dateAdded": 1587667482520, + "dateLastModified": 1587667482520, + "description": "", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 2 + }, + "quantity": 5.000000, + "rate": 3.0000, + "subtotal": 15.0000, + "summarizeBys": { + "total": 1, + "data": [] + }, + "taxAmount": 0.0000, + "total": 15.0000 + }, { + "id": 2, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666456337, + "dateLastModified": 1587666456337, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 1, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 4, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 5, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 6, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 7, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 8, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 9, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 10, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 11, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 12, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 13, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 14, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 15, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 16, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 17, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 18, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 19, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + }, { + "id": 20, + "billMasterTransactions": { + "total": 0, + "data": [] + }, + "comment": "Creating a line item", + "currencyUnit": null, + "dateAdded": 1587666411780, + "dateLastModified": 1587666411780, + "description": "CreateInvoiceStatementLine", + "groupByDisplay": null, + "groupBys": { + "total": 0, + "data": [] + }, + "invoiceStatement": { + "id": 1 + }, + "quantity": null, + "rate": null, + "subtotal": 0.0000, + "summarizeBys": { + "total": 0, + "data": [] + }, + "taxAmount": 0.0000, + "total": 0.0000 + } + ] } diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementsurcharge-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementsurcharge-data.txt index 8426e202..04eb4f9b 100644 --- a/src/test/resources/testdata/rest/paybill/invoicestatementsurcharge-data.txt +++ b/src/test/resources/testdata/rest/paybill/invoicestatementsurcharge-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -11,6 +11,196 @@ "surcharge": { "id": 1 } + }, + { + "id": 2, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 3, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 4, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 5, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 6, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 7, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 8, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 9, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 10, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 11, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 12, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 13, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 14, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 15, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 16, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 17, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 18, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 19, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } + }, + { + "id": 20, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "surcharge": { + "id": 1 + } } ] } diff --git a/src/test/resources/testdata/rest/paybill/invoicestatementtax-data.txt b/src/test/resources/testdata/rest/paybill/invoicestatementtax-data.txt index 40b0cf40..1e8d6c34 100644 --- a/src/test/resources/testdata/rest/paybill/invoicestatementtax-data.txt +++ b/src/test/resources/testdata/rest/paybill/invoicestatementtax-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -12,6 +12,215 @@ "tax": { "id": 1 } + }, + { + "id": 2, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 3, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 4, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 5, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 6, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 7, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 8, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 9, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 10, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 11, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 12, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 13, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 14, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 15, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 16, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 17, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 18, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 19, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } + }, + { + "id": 20, + "finalizedValue": null, + "invoiceStatement": { + "id": 2 + }, + "isDeleted": false, + "tax": { + "id": 1 + } } ] } diff --git a/src/test/resources/testdata/rest/paybill/payablecharge-data.txt b/src/test/resources/testdata/rest/paybill/payablecharge-data.txt index 192c1d3c..81cb1def 100644 --- a/src/test/resources/testdata/rest/paybill/payablecharge-data.txt +++ b/src/test/resources/testdata/rest/paybill/payablecharge-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -68,6 +68,1279 @@ "id": 1, "name": "New" } + }, + { + "id": 2, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 3, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 4, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 5, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 6, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 7, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 8, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 9, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 10, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 11, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 12, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 13, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 14, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 15, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 16, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 17, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 18, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 19, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } + }, + { + "id": 20, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "canExport": true, + "candidate": { + "id": 22408, + "firstName": "Johanna", + "lastName": "Camelo" + }, + "clientCorporation": { + "id": 1176, + "name": "Ensco PLC" + }, + "currencyUnit": { + "id": 166, + "alphabeticCode": "USD", + "name": "US Dollar" + }, + "dateAdded": 1587727668043, + "dateLastModified": 1587727668043, + "description": "TestPayableCharge", + "employeeType": null, + "exportedTransactions": { + "total": 0, + "data": [] + }, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "jobOrder": { + "id": 876, + "title": "Internal Auditor" + }, + "payMasters": { + "total": 1, + "data": [] + }, + "payableTransactions": { + "total": 1, + "data": [] + }, + "periodEndDate": "2019-02-10", + "placement": { + "id": 2 + }, + "readyToPayOverride": false, + "status": { + "id": 2, + "label": "Ready to Pay" + }, + "subtotal": 150.0000, + "transactionStatus": { + "id": 4, + "name": "Approved" + }, + "transactionType": { + "id": 1, + "name": "New" + } } ] } diff --git a/src/test/resources/testdata/rest/paybill/paymaster-data.txt b/src/test/resources/testdata/rest/paybill/paymaster-data.txt index 57ed1e28..f1913ee3 100644 --- a/src/test/resources/testdata/rest/paybill/paymaster-data.txt +++ b/src/test/resources/testdata/rest/paybill/paymaster-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -74,6 +74,1393 @@ "id": 1 }, "transactionDate": "2019-04-15" + }, + { + "id": 2, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 3, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 4, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 5, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 6, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 7, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 8, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 9, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 10, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 11, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 12, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 13, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 14, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 15, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 16, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 17, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 18, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 19, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" + }, + { + "id": 20, + "billingSyncBatch": { + "id": 3 + }, + "canExport": true, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "payMasterTransactions": { + "total": 1, + "data": [] + }, + "payableCharge": { + "id": 1 + }, + "transactionDate": "2019-04-15" } ] } diff --git a/src/test/resources/testdata/rest/paybill/surcharge-data.txt b/src/test/resources/testdata/rest/paybill/surcharge-data.txt index b312a26a..23dc048a 100644 --- a/src/test/resources/testdata/rest/paybill/surcharge-data.txt +++ b/src/test/resources/testdata/rest/paybill/surcharge-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -74,6 +74,1393 @@ "label": "Percent" }, "value": 0.100000 + }, + { + "id": 2, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 3, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 4, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 5, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 6, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 7, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 8, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 9, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 10, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 11, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 12, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 13, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 14, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 15, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 16, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 17, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 18, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 19, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 20, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587726305760, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "label": "Percent Test", + "surchargeType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 } ] } diff --git a/src/test/resources/testdata/rest/paybill/tax-data.txt b/src/test/resources/testdata/rest/paybill/tax-data.txt index 08ffc0cb..bab28712 100644 --- a/src/test/resources/testdata/rest/paybill/tax-data.txt +++ b/src/test/resources/testdata/rest/paybill/tax-data.txt @@ -1,6 +1,6 @@ { "start": 0, - "count": 1, + "count": 20, "data": [ { "id": 1, @@ -79,6 +79,1488 @@ "label": "Percent" }, "value": 0.100000 + }, + { + "id": 2, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 3, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 4, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 5, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 6, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 7, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 8, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 9, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 10, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 11, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 12, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 13, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 14, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 15, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 16, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 17, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 18, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 19, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 + }, + { + "id": 20, + "addedByUser": { + "id": 2034545, + "firstName": "Bullhorn", + "lastName": "Support" + }, + "dateAdded": 1587727082737, + "earnCode": { + "id": 3, + "code": "DT", + "customDate1": null, + "customDate2": null, + "customDate3": null, + "customFloat1": null, + "customFloat2": null, + "customFloat3": null, + "customInt1": null, + "customInt2": null, + "customInt3": null, + "customText1": null, + "customText10": null, + "customText11": null, + "customText12": null, + "customText13": null, + "customText14": null, + "customText15": null, + "customText16": null, + "customText17": null, + "customText18": null, + "customText19": null, + "customText2": null, + "customText20": null, + "customText3": null, + "customText4": null, + "customText5": null, + "customText6": null, + "customText7": null, + "customText8": null, + "customText9": null, + "customTextBlock1": null, + "customTextBlock2": null, + "customTextBlock3": null, + "dateAdded": 1584066246267, + "dateLastModified": 1584066246267, + "description": null, + "earnCodeGroup": { + "id": 1 + }, + "earnCodeTypeLookup": { + "id": 3 + }, + "externalID": "DT", + "generalLedgerBillAccount": null, + "generalLedgerPayAccount": null, + "generalLedgerSegment1": null, + "generalLedgerSegment2": null, + "generalLedgerSegment3": null, + "generalLedgerSegment4": null, + "generalLedgerSegment5": null, + "generalLedgerServiceCode": null, + "isDeleted": false, + "owner": null, + "status": null, + "title": "Double Time" + }, + "jurisdictionName": "St. Louis", + "jurisdictionType": { + "id": 1, + "label": "City" + }, + "label": "Percent Test", + "taxType": { + "id": 2, + "label": "Percent" + }, + "value": 0.100000 } ] } From ad2c296f07bc6a41c078e2f16818a2d20764a452 Mon Sep 17 00:00:00 2001 From: mkesmetzis Date: Mon, 27 Apr 2020 15:02:17 +0100 Subject: [PATCH 5/7] resolving issues --- .../data/api/mock/MockDataHandler.groovy | 1 + .../data/api/mock/MockDataLoader.groovy | 5 +- .../DiscountType.java => AbstractType.java} | 25 +++---- .../core/paybill/charge/BillableCharge.java | 4 +- .../core/paybill/charge/PayableCharge.java | 2 +- .../core/paybill/discount/Discount.java | 7 +- .../core/paybill/earncode/EarnCode.java | 4 +- .../GeneralLedgerAccount.java | 2 +- .../GeneralLedgerSegment.java | 2 +- .../GeneralLedgerSegment1.java | 2 +- .../GeneralLedgerSegment2.java | 2 +- .../GeneralLedgerSegment3.java | 2 +- .../GeneralLedgerSegment4.java | 2 +- .../GeneralLedgerSegment5.java | 2 +- .../GeneralLedgerSegmentType.java | 2 +- .../GeneralLedgerServiceCode.java | 2 +- .../core/paybill/invoice/InvoiceTerm.java | 2 +- .../paybill/invoice/InvoiceTermVersion.java | 2 +- .../core/paybill/surcharge/Surcharge.java | 7 +- .../core/paybill/surcharge/SurchargeType.java | 75 ------------------- .../model/entity/core/paybill/tax/Tax.java | 7 +- .../entity/core/paybill/tax/TaxType.java | 75 ------------------- .../data/model/enums/BullhornEntityInfo.java | 6 +- .../list/DiscountTypeListWrapper.java | 11 --- .../list/GeneralLedgerAccountListWrapper.java | 2 +- .../GeneralLedgerSegment1ListWrapper.java | 2 +- .../GeneralLedgerSegment2ListWrapper.java | 2 +- .../GeneralLedgerSegment3ListWrapper.java | 2 +- .../GeneralLedgerSegment4ListWrapper.java | 2 +- .../GeneralLedgerSegment5ListWrapper.java | 2 +- .../list/GeneralLedgerSegmentListWrapper.java | 2 +- .../GeneralLedgerSegmentTypeListWrapper.java | 2 +- .../GeneralLedgerServiceCodeListWrapper.java | 2 +- .../response/single/DiscountTypeWrapper.java | 7 -- .../single/GeneralLedgerAccountWrapper.java | 2 +- .../single/GeneralLedgerSegment1Wrapper.java | 2 +- .../single/GeneralLedgerSegment2Wrapper.java | 2 +- .../single/GeneralLedgerSegment3Wrapper.java | 2 +- .../single/GeneralLedgerSegment4Wrapper.java | 2 +- .../single/GeneralLedgerSegment5Wrapper.java | 2 +- .../GeneralLedgerSegmentTypeWrapper.java | 2 +- .../single/GeneralLedgerSegmentWrapper.java | 2 +- .../GeneralLedgerServiceCodeWrapper.java | 2 +- 43 files changed, 63 insertions(+), 231 deletions(-) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{discount/DiscountType.java => AbstractType.java} (84%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{ => generalledger}/GeneralLedgerAccount.java (98%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{chartofaccounts => generalledger}/GeneralLedgerSegment.java (98%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{chartofaccounts => generalledger}/GeneralLedgerSegment1.java (90%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{chartofaccounts => generalledger}/GeneralLedgerSegment2.java (90%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{chartofaccounts => generalledger}/GeneralLedgerSegment3.java (90%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{chartofaccounts => generalledger}/GeneralLedgerSegment4.java (90%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{chartofaccounts => generalledger}/GeneralLedgerSegment5.java (90%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{chartofaccounts => generalledger}/GeneralLedgerSegmentType.java (97%) rename src/main/java/com/bullhornsdk/data/model/entity/core/paybill/{chartofaccounts => generalledger}/GeneralLedgerServiceCode.java (98%) delete mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java delete mode 100644 src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java delete mode 100644 src/main/java/com/bullhornsdk/data/model/response/list/DiscountTypeListWrapper.java delete mode 100644 src/main/java/com/bullhornsdk/data/model/response/single/DiscountTypeWrapper.java diff --git a/src/main/java/com/bullhornsdk/data/api/mock/MockDataHandler.groovy b/src/main/java/com/bullhornsdk/data/api/mock/MockDataHandler.groovy index 29e3022d..50373519 100644 --- a/src/main/java/com/bullhornsdk/data/api/mock/MockDataHandler.groovy +++ b/src/main/java/com/bullhornsdk/data/api/mock/MockDataHandler.groovy @@ -158,6 +158,7 @@ public class MockDataHandler { private T getEntityFromMap(Class type, Integer id){ T entity = null; if(id != null){ + System.out.println(type.toString()); entity = (T) restEntityMap.get(type).get(id); } return entity; diff --git a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy index 8f519f53..342ca6f9 100644 --- a/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy +++ b/src/main/java/com/bullhornsdk/data/api/mock/MockDataLoader.groovy @@ -19,11 +19,10 @@ import com.bullhornsdk.data.model.entity.core.edithistory.EditHistory import com.bullhornsdk.data.model.entity.core.edithistory.FieldChange import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile import com.bullhornsdk.data.model.entity.core.paybill.CanvasReport -import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount import com.bullhornsdk.data.model.entity.core.paybill.Location import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.* +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.* import com.bullhornsdk.data.model.entity.core.paybill.discount.Discount import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode import com.bullhornsdk.data.model.entity.core.paybill.invoice.* @@ -452,7 +451,7 @@ public class MockDataLoader { // TODO add v2 of PAY and Bill Entities data entityFiles.put(BillableCharge.class, "paybill/billablecharge-data.txt"); - // entityFiles.put(PayableCharge.class, "paybill/payablecharge-data.txt"); + entityFiles.put(PayableCharge.class, "paybill/payablecharge-data.txt"); entityFiles.put(GeneralLedgerSegment.class, "paybill/generalledgersegment-data.txt"); entityFiles.put(GeneralLedgerSegment1.class, "paybill/generalledgersegment1-data.txt"); entityFiles.put(GeneralLedgerSegment2.class, "paybill/generalledgersegment2-data.txt"); diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/AbstractType.java similarity index 84% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/AbstractType.java index 23067759..ff3889ad 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/DiscountType.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/AbstractType.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill.discount; +package com.bullhornsdk.data.model.entity.core.paybill; import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; import com.bullhornsdk.data.model.entity.core.type.QueryEntity; @@ -16,15 +16,15 @@ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") @JsonPropertyOrder({"id", "label"}) -public class DiscountType extends AbstractEntity implements QueryEntity { +public class AbstractType extends AbstractEntity implements QueryEntity { private Integer id; private String label; - public DiscountType() { + public AbstractType() { } - public DiscountType(Integer id) { + public AbstractType(Integer id) { this.id = id; } @@ -51,12 +51,19 @@ public void setLabel(String label) { this.label = label; } + @Override + public String toString() { + return "AbstractType{" + + "id=" + id + + ", label='" + label + '\'' + + '}'; + } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; - DiscountType that = (DiscountType) o; + AbstractType that = (AbstractType) o; return Objects.equals(id, that.id) && Objects.equals(label, that.label); } @@ -65,12 +72,4 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(id, label); } - - @Override - public String toString() { - return "DiscountType{" + - "id=" + id + - ", label='" + label + '\'' + - '}'; - } } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java index 4d145e14..21dc120c 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/BillableCharge.java @@ -1,7 +1,7 @@ package com.bullhornsdk.data.model.entity.core.paybill.charge; import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.*; import com.bullhornsdk.data.model.entity.core.paybill.invoice.InvoiceTerm; import com.bullhornsdk.data.model.entity.core.paybill.master.BillMaster; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; @@ -29,7 +29,7 @@ "generalLedgerSegment2", "generalLedgerSegment3", "generalLedgerSegment4", "generalLedgerSegment5", "generalLedgerServiceCode", "invoiceTerm", "isInvoiced", "invoicedTransactions", "jobOrder", "periodEndDate", "placement", "readyToBillOverride", "status", "subtotal", "summaryTransactions", "transactionStatus", "transactionType", "unbillableTransactions"}) -public class BillableCharge implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, AssociationEntity { +public class BillableCharge extends AbstractEntity implements QueryEntity, UpdateEntity, CreateEntity, DateLastModifiedEntity, AssociationEntity { private Integer id; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java index 42abeeba..1e4c6ee2 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/charge/PayableCharge.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.charge; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.*; import com.bullhornsdk.data.model.entity.core.paybill.master.PayMaster; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SpecializedOptionsLookup; import com.bullhornsdk.data.model.entity.core.paybill.transaction.PayableTransaction; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java index e8e89105..00d1df09 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/discount/Discount.java @@ -1,5 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.discount; +import com.bullhornsdk.data.model.entity.core.paybill.AbstractType; import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; import com.bullhornsdk.data.model.entity.core.type.QueryEntity; @@ -23,7 +24,7 @@ public class Discount implements QueryEntity { private Integer id; - private DiscountType discountType; + private AbstractType discountType; private EarnCode earnCode; @Size(max = 100) private String label; @@ -52,12 +53,12 @@ public void setId(Integer id) { } @JsonProperty("discountType") - public DiscountType getDiscountType() { + public AbstractType getDiscountType() { return discountType; } @JsonProperty("discountType") - public void setDiscountType(DiscountType discountType) { + public void setDiscountType(AbstractType discountType) { this.discountType = discountType; } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java index 6e03c1a3..6be2c8b1 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/earncode/EarnCode.java @@ -1,7 +1,7 @@ package com.bullhornsdk.data.model.entity.core.paybill.earncode; -import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerAccount; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.*; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; import com.bullhornsdk.data.model.entity.core.type.*; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/GeneralLedgerAccount.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerAccount.java similarity index 98% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/GeneralLedgerAccount.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerAccount.java index 6679f6c2..a35bc1a2 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/GeneralLedgerAccount.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerAccount.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill; +package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.bullhornsdk.data.model.entity.core.type.*; import com.bullhornsdk.data.util.ReadOnly; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment.java similarity index 98% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment.java index 5cc41c28..34ff813f 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; +package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.bullhornsdk.data.model.entity.core.type.*; import com.bullhornsdk.data.util.ReadOnly; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment1.java similarity index 90% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment1.java index 95d21631..027ee497 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment1.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment1.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; +package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment2.java similarity index 90% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment2.java index 543f0b05..981cf8ab 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment2.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment2.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; +package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment3.java similarity index 90% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment3.java index a4630865..3dbcc43f 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment3.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment3.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; +package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment4.java similarity index 90% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment4.java index 05db2a4c..48aa5d06 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment4.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment4.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; +package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment5.java similarity index 90% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment5.java index b22d82b5..f7132361 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegment5.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegment5.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; +package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegmentType.java similarity index 97% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegmentType.java index 79854594..4679cf4a 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerSegmentType.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerSegmentType.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; +package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.bullhornsdk.data.model.entity.core.type.QueryEntity; import com.bullhornsdk.data.model.entity.core.type.UpdateEntity; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerServiceCode.java similarity index 98% rename from src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java rename to src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerServiceCode.java index e69ce6e8..d2dacafe 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/chartofaccounts/GeneralLedgerServiceCode.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/generalledger/GeneralLedgerServiceCode.java @@ -1,4 +1,4 @@ -package com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts; +package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.bullhornsdk.data.model.entity.core.type.*; import com.bullhornsdk.data.util.ReadOnly; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTerm.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTerm.java index 0d262b0a..60337a12 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTerm.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTerm.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.invoice; -import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerAccount; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; import com.bullhornsdk.data.model.entity.core.standard.ClientCorporation; import com.bullhornsdk.data.model.entity.core.type.*; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTermVersion.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTermVersion.java index e924ee0e..29f75515 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTermVersion.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/invoice/InvoiceTermVersion.java @@ -1,7 +1,7 @@ package com.bullhornsdk.data.model.entity.core.paybill.invoice; import com.bullhornsdk.data.model.entity.core.paybill.unit.CurrencyUnit; -import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerAccount; import com.bullhornsdk.data.model.entity.core.type.*; import com.bullhornsdk.data.model.entity.customfields.CustomFieldsB; import com.bullhornsdk.data.util.ReadOnly; diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java index 3d46f892..5f3464d1 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/Surcharge.java @@ -1,5 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.surcharge; +import com.bullhornsdk.data.model.entity.core.paybill.AbstractType; import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; @@ -25,7 +26,7 @@ public class Surcharge extends AbstractEntity implements QueryEntity { private EarnCode earnCode; @JsonIgnore private String label; - private SurchargeType surchargeType; + private AbstractType surchargeType; private BigDecimal value; public Surcharge() { @@ -89,12 +90,12 @@ public void setLabel(String label) { } @JsonProperty("surchargeType") - public SurchargeType getSurchargeType() { + public AbstractType getSurchargeType() { return surchargeType; } @JsonProperty("surchargeType") - public void setSurchargeType(SurchargeType surchargeType) { + public void setSurchargeType(AbstractType surchargeType) { this.surchargeType = surchargeType; } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java deleted file mode 100644 index a8234598..00000000 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/surcharge/SurchargeType.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.bullhornsdk.data.model.entity.core.paybill.surcharge; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; - -import java.util.Objects; - -/** - * Created by mkesmetzis 23-Apr-20 - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({"id", "label"}) -public class SurchargeType extends AbstractEntity implements QueryEntity { - - private Integer id; - private String label; - - public SurchargeType() { - } - - public SurchargeType(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("label") - public String getLabel() { - return label; - } - - @JsonProperty("label") - public void setLabel(String label) { - this.label = label; - } - - @Override - public String toString() { - return "SurchargeType{" + - "id=" + id + - ", label='" + label + '\'' + - '}'; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - SurchargeType that = (SurchargeType) o; - return Objects.equals(id, that.id) && - Objects.equals(label, that.label); - } - - @Override - public int hashCode() { - return Objects.hash(id, label); - } -} diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java index 5895f883..82d0b7c7 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/Tax.java @@ -1,5 +1,6 @@ package com.bullhornsdk.data.model.entity.core.paybill.tax; +import com.bullhornsdk.data.model.entity.core.paybill.AbstractType; import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.paybill.optionslookup.SimplifiedOptionsLookup; import com.bullhornsdk.data.model.entity.core.standard.CorporateUser; @@ -29,7 +30,7 @@ public class Tax extends AbstractEntity implements QueryEntity { @JsonIgnore private String jurisdictionName; private SimplifiedOptionsLookup jurisdictionType; - private TaxType taxType; + private AbstractType taxType; private BigDecimal value; public Tax() { @@ -113,12 +114,12 @@ public void setJurisdictionType(SimplifiedOptionsLookup jurisdictionType) { } @JsonProperty("taxType") - public TaxType getTaxType() { + public AbstractType getTaxType() { return taxType; } @JsonProperty("taxType") - public void setTaxType(TaxType taxType) { + public void setTaxType(AbstractType taxType) { this.taxType = taxType; } diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java b/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java deleted file mode 100644 index a22425de..00000000 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/paybill/tax/TaxType.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.bullhornsdk.data.model.entity.core.paybill.tax; - -import com.bullhornsdk.data.model.entity.core.type.AbstractEntity; -import com.bullhornsdk.data.model.entity.core.type.QueryEntity; -import com.bullhornsdk.data.util.ReadOnly; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonRootName; - -import java.util.Objects; - -/** - * Created by mkesmetzis 23-Apr-20 - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonRootName(value = "data") -@JsonPropertyOrder({"id", "label"}) -public class TaxType extends AbstractEntity implements QueryEntity { - - private Integer id; - private String label; - - public TaxType() { - } - - public TaxType(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("label") - public String getLabel() { - return label; - } - - @JsonProperty("label") - public void setLabel(String label) { - this.label = label; - } - - @Override - public String toString() { - return "TaxType{" + - "id=" + id + - ", label='" + label + '\'' + - '}'; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - TaxType taxType = (TaxType) o; - return Objects.equals(id, taxType.id) && - Objects.equals(label, taxType.label); - } - - @Override - public int hashCode() { - return Objects.hash(id, label); - } -} diff --git a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java index 0452db9b..8b411ccd 100644 --- a/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java +++ b/src/main/java/com/bullhornsdk/data/model/enums/BullhornEntityInfo.java @@ -15,13 +15,12 @@ import com.bullhornsdk.data.model.entity.core.customobjectinstances.placement.*; import com.bullhornsdk.data.model.entity.core.paybill.BillingProfile; import com.bullhornsdk.data.model.entity.core.paybill.CanvasReport; -import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerAccount; import com.bullhornsdk.data.model.entity.core.paybill.Location; import com.bullhornsdk.data.model.entity.core.paybill.charge.BillableCharge; import com.bullhornsdk.data.model.entity.core.paybill.charge.PayableCharge; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.*; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.*; import com.bullhornsdk.data.model.entity.core.paybill.discount.Discount; -import com.bullhornsdk.data.model.entity.core.paybill.discount.DiscountType; import com.bullhornsdk.data.model.entity.core.paybill.earncode.EarnCode; import com.bullhornsdk.data.model.entity.core.paybill.invoice.*; import com.bullhornsdk.data.model.entity.core.paybill.master.BatchGroup; @@ -187,7 +186,6 @@ public enum BullhornEntityInfo { GENERAL_LEDGER_SEGMENT_TYPE("GeneralLedgerSegmentType", GeneralLedgerSegmentType.class, GeneralLedgerSegmentTypeWrapper.class, GeneralLedgerSegmentTypeListWrapper.class, null, null), GENERAL_LEDGER_SERVICE_CODE("GeneralLedgerServiceCode", GeneralLedgerServiceCode.class, GeneralLedgerServiceCodeWrapper.class, GeneralLedgerServiceCodeListWrapper.class, null, null), DISCOUNT("Discount", Discount.class, DiscountWrapper.class, DiscountListWrapper.class, null, null), - DISCOUNT_TYPE("DiscountType", DiscountType.class, DiscountTypeWrapper.class, DiscountTypeListWrapper.class, null, null), EARN_CODE("EarnCode", EarnCode.class, EarnCodeWrapper.class, EarnCodeListWrapper.class, null, null), INVOICE_STATEMENT("InvoiceStatement", InvoiceStatement.class, InvoiceStatementWrapper.class, InvoiceStatementListWrapper.class, null, null), INVOICE_STATEMENT_BATCH("InvoiceStatementBatch", InvoiceStatementBatch.class, InvoiceStatementBatchWrapper.class, InvoiceStatementBatchListWrapper.class, null, null), diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/DiscountTypeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/DiscountTypeListWrapper.java deleted file mode 100644 index c7b52a71..00000000 --- a/src/main/java/com/bullhornsdk/data/model/response/list/DiscountTypeListWrapper.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.bullhornsdk.data.model.response.list; - -import com.bullhornsdk.data.model.entity.core.paybill.discount.DiscountType; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({"data", "count", "start"}) -public class DiscountTypeListWrapper extends StandardListWrapper { - -} diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerAccountListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerAccountListWrapper.java index f3512034..42d13285 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerAccountListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerAccountListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerAccount; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment1ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment1ListWrapper.java index 85a5ab19..4db9dfa6 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment1ListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment1ListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment1; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment1; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment2ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment2ListWrapper.java index ac2fb6c3..21928c3b 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment2ListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment2ListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment2; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment2; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment3ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment3ListWrapper.java index 3daea37d..b91a9a03 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment3ListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment3ListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment3; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment3; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment4ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment4ListWrapper.java index 4fdd7fea..4f3865f4 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment4ListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment4ListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment4; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment4; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment5ListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment5ListWrapper.java index 6c8089c6..319b5bff 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment5ListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegment5ListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment5; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment5; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentListWrapper.java index 44f32fd8..37c8268f 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentTypeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentTypeListWrapper.java index 72dc1b87..bb2ce96a 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentTypeListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerSegmentTypeListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegmentType; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegmentType; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerServiceCodeListWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerServiceCodeListWrapper.java index e377013b..a25819f5 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerServiceCodeListWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/list/GeneralLedgerServiceCodeListWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.list; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerServiceCode; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerServiceCode; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/DiscountTypeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/DiscountTypeWrapper.java deleted file mode 100644 index 761f7810..00000000 --- a/src/main/java/com/bullhornsdk/data/model/response/single/DiscountTypeWrapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.bullhornsdk.data.model.response.single; - -import com.bullhornsdk.data.model.entity.core.paybill.discount.DiscountType; - -public class DiscountTypeWrapper extends StandardWrapper { - -} diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerAccountWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerAccountWrapper.java index 108b2ae9..2fa4db6a 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerAccountWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerAccountWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.GeneralLedgerAccount; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerAccount; public class GeneralLedgerAccountWrapper extends StandardWrapper { diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment1Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment1Wrapper.java index 6ef65987..d4d4b442 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment1Wrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment1Wrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment1; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment1; public class GeneralLedgerSegment1Wrapper extends StandardWrapper { diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment2Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment2Wrapper.java index e3908555..6b9ca45b 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment2Wrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment2Wrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment2; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment2; public class GeneralLedgerSegment2Wrapper extends StandardWrapper { diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment3Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment3Wrapper.java index 1f4da407..97de782c 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment3Wrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment3Wrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment3; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment3; public class GeneralLedgerSegment3Wrapper extends StandardWrapper { diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment4Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment4Wrapper.java index 8dc559c9..333d1a9d 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment4Wrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment4Wrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment4; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment4; public class GeneralLedgerSegment4Wrapper extends StandardWrapper { diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment5Wrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment5Wrapper.java index 3579171c..961cf998 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment5Wrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegment5Wrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment5; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment5; public class GeneralLedgerSegment5Wrapper extends StandardWrapper { diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentTypeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentTypeWrapper.java index 7e157585..8a8cae10 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentTypeWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentTypeWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegmentType; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegmentType; public class GeneralLedgerSegmentTypeWrapper extends StandardWrapper { diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentWrapper.java index bf47ece5..a239cf9b 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerSegmentWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerSegment; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerSegment; public class GeneralLedgerSegmentWrapper extends StandardWrapper { diff --git a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerServiceCodeWrapper.java b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerServiceCodeWrapper.java index f73bf529..7523ce69 100644 --- a/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerServiceCodeWrapper.java +++ b/src/main/java/com/bullhornsdk/data/model/response/single/GeneralLedgerServiceCodeWrapper.java @@ -1,6 +1,6 @@ package com.bullhornsdk.data.model.response.single; -import com.bullhornsdk.data.model.entity.core.paybill.chartofaccounts.GeneralLedgerServiceCode; +import com.bullhornsdk.data.model.entity.core.paybill.generalledger.GeneralLedgerServiceCode; public class GeneralLedgerServiceCodeWrapper extends StandardWrapper { From ce5c92367e8b2d7058b48ac201583bd6d0ed0dbf Mon Sep 17 00:00:00 2001 From: mkesmetzis Date: Mon, 27 Apr 2020 15:44:52 +0100 Subject: [PATCH 6/7] updates Placement Certification entity - updated version --- pom.xml | 2 +- .../core/standard/PlacementCertification.java | 136 +-- .../meta/placementcertification-meta-data.txt | 812 ++++++++++++++---- 3 files changed, 691 insertions(+), 259 deletions(-) diff --git a/pom.xml b/pom.xml index 5efec7ee..e49c7de7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.bullhorn sdk-rest - 1.3.3-SNAPSHOT + 1.3.4-SNAPSHOT jar Bullhorn REST SDK diff --git a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementCertification.java b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementCertification.java index 9e50065a..adc92593 100644 --- a/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementCertification.java +++ b/src/main/java/com/bullhornsdk/data/model/entity/core/standard/PlacementCertification.java @@ -1,42 +1,38 @@ package com.bullhornsdk.data.model.entity.core.standard; +import com.bullhornsdk.data.model.entity.core.certificationrequirement.AbstractRequirement; +import com.bullhornsdk.data.model.entity.core.edithistory.EditHistory; import com.bullhornsdk.data.model.entity.core.type.*; +import com.bullhornsdk.data.model.entity.embedded.OneToMany; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; import org.joda.time.DateTime; +import javax.validation.constraints.Size; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonRootName(value = "data") -@JsonPropertyOrder({"id", "placement", "candidateCertification", "certification", "dateAdded", "modifyingUser", "dateLastModified"}) -public class PlacementCertification extends AbstractEntity implements UpdateEntity, CreateEntity, QueryEntity, DeleteEntity, AssociationEntity, EditHistoryEntity { - - private Integer id; +@JsonPropertyOrder({"id", "candidateCertification", "candidateCertificationName", + "candidateCertificationStatus", "candidate", "certification", "certificationFileAttachments", + "customDate1", "customDate10", "customDate2", "customDate3", "customDate4", "customDate5", "customDate6", + "customDate7", "customDate8", "customDate9", "customFloat1", "customFloat2", "customFloat3", "customInt1", + "customInt2", "customInt3", "customText1", "customText10", "customText2", "customText3", + "customText4", "customText5", "customText6", "customText7", "customText8", "customText9", "customTextBlock1", + "customTextBlock10", "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "customTextBlock6", + "customTextBlock7", "customTextBlock8", "customTextBlock9", "dateAdded", "dateExpiration", "dateLastModified", "documentDeadline", + "editHistories", "fileAttachments", "matchingCredentialCount", "modifyingUser", "owner", "status"}) +public class PlacementCertification extends AbstractRequirement implements UpdateEntity, CreateEntity, QueryEntity, DeleteEntity, AssociationEntity, EditHistoryEntity { private Placement placement; - - private CandidateCertification candidateCertification; - - private Certification certification; - - private DateTime dateAdded; - - private CorporateUser modifyingUser; - + private OneToMany editHistories; private DateTime dateLastModified; + @Size(max = 100) + private String candidateCertificationName; + @Size(max = 30) + private String candidateCertificationStatus; - @Override - @JsonProperty("id") - public Integer getId() { - return id; - } - - @Override - @JsonProperty("id") - public void setId(Integer id) { - this.id = id; - } @JsonProperty("placement") public Placement getPlacement() { @@ -48,33 +44,6 @@ public void setPlacement(Placement placement) { this.placement = placement; } - @JsonProperty("candidateCertification") - public CandidateCertification getCandidateCertification() { - return candidateCertification; - } - - @JsonProperty("candidateCertification") - public void setCandidateCertification(CandidateCertification candidateCertification) { this.candidateCertification = candidateCertification; } - - @JsonProperty("certification") - public Certification getCertification() { - return certification; - } - - @JsonProperty("certification") - public void setCertification(Certification certification) { - this.certification = certification; - } - - @JsonProperty("dateAdded") - public DateTime getDateAdded() { - return dateAdded; - } - - @JsonProperty("dateAdded") - public void setDateAdded(DateTime dateAdded) { - this.dateAdded = dateAdded; - } @JsonProperty("dateLastModified") public DateTime getDateLastModified() { @@ -86,60 +55,33 @@ public void setDateLastModified(DateTime dateLastModified) { this.dateLastModified = dateLastModified; } - @JsonProperty("modifyingUser") - public CorporateUser getModifyingUser() { - return modifyingUser; + @JsonProperty("editHistories") + public OneToMany getEditHistories() { + return editHistories; } - @JsonProperty("modifyingUser") - public void setModifyingUser(CorporateUser modifyingUser) { - this.modifyingUser = modifyingUser; + @JsonProperty("editHistories") + public void setEditHistories(OneToMany editHistories) { + this.editHistories = editHistories; } - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (!(o instanceof PlacementCertification)) return false; - - PlacementCertification that = (PlacementCertification) o; - - if (id != null ? !id.equals(that.id) : that.id != null) return false; - if (placement != null ? !placement.equals(that.placement) : that.placement != null) return false; - if (candidateCertification != null ? !candidateCertification.equals(that.candidateCertification) : that.candidateCertification != null) return false; - if (certification != null ? !certification.equals(that.certification) : that.certification != null) - return false; - if (dateAdded != null ? !dateAdded.equals(that.dateAdded) : that.dateAdded != null) - return false; - if (modifyingUser != null ? !modifyingUser.equals(that.modifyingUser) : that.modifyingUser != null) - return false; - if (dateLastModified != null ? !dateLastModified.equals(that.dateLastModified) : that.dateLastModified != null) - return false; - return true; + @JsonProperty("candidateCertificationName") + public String getCandidateCertificationName() { + return candidateCertificationName; + } + @JsonProperty("candidateCertificationName") + public void setCandidateCertificationName(String candidateCertificationName) { + this.candidateCertificationName = candidateCertificationName; } - @Override - public int hashCode() { - int result = id != null ? id.hashCode() : 0; - result = 31 * result + (placement != null ? placement.hashCode() : 0); - result = 31 * result + (candidateCertification != null ? candidateCertification.hashCode() : 0); - result = 31 * result + (certification != null ? certification.hashCode() : 0); - result = 31 * result + (dateAdded != null ? dateAdded.hashCode() : 0); - result = 31 * result + (modifyingUser != null ? modifyingUser.hashCode() : 0); - result = 31 * result + (dateLastModified != null ? dateLastModified.hashCode() : 0); - return result; + @JsonProperty("candidateCertificationStatus") + public String getCandidateCertificationStatus() { + return candidateCertificationStatus; } - @Override - public String toString() { - return "PlacementCertification{" + - "id=" + id + - ", placement='" + placement + '\'' + - ", candidateCertification=" + candidateCertification + - ", certification=" + certification + - ", dateAdded=" + dateAdded + - ", dateLastModified=" + dateLastModified + - ", modifyingUser=" + modifyingUser + - '}'; + @JsonProperty("candidateCertificationStatus") + public void setCandidateCertificationStatus(String candidateCertificationStatus) { + this.candidateCertificationStatus = candidateCertificationStatus; } } diff --git a/src/test/resources/testdata/rest/meta/placementcertification-meta-data.txt b/src/test/resources/testdata/rest/meta/placementcertification-meta-data.txt index f9e5b396..15457153 100644 --- a/src/test/resources/testdata/rest/meta/placementcertification-meta-data.txt +++ b/src/test/resources/testdata/rest/meta/placementcertification-meta-data.txt @@ -1,163 +1,653 @@ { - "entity" : "PlacementCertification", - "entityMetaUrl" : "http://rest9.bullhornstaffing.com/rest-services/4kxk4/meta/PlacementCertification?fields=*", - "label" : "Requirement", - "dateLastModified" : "1492023353149", - "trackTrigger" : "employmentType", - "tracks" : [ { - "name" : "PlacementCertification", - "values" : [ ] - } ], - "fields" : [ { - "name" : "id", - "type" : "ID", - "dataType" : "Integer", - "optional" : false - }, { - "name" : "dateAdded", - "type" : "SCALAR", - "dataType" : "Timestamp", - "confidential" : false, - "optional" : false, - "label" : "Date Added", - "required" : false, - "readOnly" : false, - "multiValue" : false, - "hideFromSearch" : false - }, { - "name" : "modifyingUser", - "type" : "TO_ONE", - "confidential" : false, - "optional" : false, - "label" : "Modifying User", - "required" : false, - "readOnly" : false, - "multiValue" : false, - "optionsType" : "CorporateUser", - "optionsUrl" : "http://awu-backend.bh-bos2.bullhorn.com:8181/rest-services/1hs/options/CorporateUser", - "hideFromSearch" : false, - "associatedEntity" : { - "entity" : "CorporateUser", - "entityMetaUrl" : "http://awu-backend.bh-bos2.bullhorn.com:8181/rest-services/1hs/meta/CorporateUser?fields=*", - "label" : "Corporate User", - "dateLastModified" : "1492023347859", - "fields" : [ { - "name" : "id", - "type" : "ID", - "dataType" : "Integer", - "optional" : false - }, { - "name" : "firstName", - "type" : "SCALAR", - "dataType" : "String", - "maxLength" : 50, - "confidential" : false, - "optional" : true, - "label" : "First Name", - "required" : false, - "readOnly" : false, - "multiValue" : false, - "hideFromSearch" : false - }, { - "name" : "lastName", - "type" : "SCALAR", - "dataType" : "String", - "maxLength" : 50, - "confidential" : false, - "optional" : true, - "label" : "Last Name", - "required" : false, - "readOnly" : false, - "multiValue" : false, - "hideFromSearch" : false - } ] - } - }, { - "name" : "certification", - "type" : "TO_ONE", - "confidential" : false, - "optional" : false, - "label" : "Certification", - "required" : false, - "readOnly" : false, - "multiValue" : false, - "optionsType" : "Certification", - "optionsUrl" : "http://awu-backend.bh-bos2.bullhorn.com:8181/rest-services/1hs/options/Certification", - "hideFromSearch" : false, - "associatedEntity" : { - "entity" : "Certification", - "entityMetaUrl" : "http://awu-backend.bh-bos2.bullhorn.com:8181/rest-services/1hs/meta/Certification?fields=*", - "label" : "CREDENTIAL", - "dateLastModified" : "1492023613590", - "fields" : [ { - "name" : "id", - "type" : "ID", - "dataType" : "Integer", - "optional" : false - }, { - "name" : "name", - "type" : "SCALAR", - "dataType" : "String", - "maxLength" : 100, - "confidential" : false, - "optional" : false, - "label" : "Credential", - "required" : true, - "readOnly" : false, - "multiValue" : false, - "hideFromSearch" : false, - "sortOrder" : 10, - "hint" : "", - "description" : "" - } ] - } - }, { - "name" : "candidateCertification", - "type" : "TO_ONE", - "confidential" : false, - "optional" : true, - "label" : "Candidate Certification", - "required" : false, - "readOnly" : false, - "multiValue" : false, - "optionsType" : "CandidateCertification", - "optionsUrl" : "http://awu-backend.bh-bos2.bullhorn.com:8181/rest-services/1hs/options/CandidateCertification", - "hideFromSearch" : false, - "associatedEntity" : { - "entity" : "CandidateCertification", - "entityMetaUrl" : "http://awu-backend.bh-bos2.bullhorn.com:8181/rest-services/1hs/meta/CandidateCertification?fields=*", - "label" : "CREDENTIAL", - "dateLastModified" : "1492023613590", - "fields" : [ { - "name" : "id", - "type" : "ID", - "dataType" : "Integer", - "optional" : false - } ] - } - }, { - "name" : "placement", - "type" : "TO_ONE", - "confidential" : false, - "optional" : false, - "label" : "Placement", - "required" : false, - "readOnly" : false, - "multiValue" : false, - "optionsType" : "Placement", - "optionsUrl" : "http://awu-backend.bh-bos2.bullhorn.com:8181/rest-services/1hs/options/Placement", - "hideFromSearch" : false, - "associatedEntity" : { - "entity" : "Placement", - "entityMetaUrl" : "http://awu-backend.bh-bos2.bullhorn.com:8181/rest-services/1hs/meta/Placement?fields=*", - "label" : "Placement", - "dateLastModified" : "1492023347470", - "fields" : [ { - "name" : "id", - "type" : "ID", - "dataType" : "Integer", - "optional" : false - } ] - } - } ] + "entity": "PlacementCertification", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PlacementCertification?fields=*", + "label": "Requirements", + "dateLastModified": "1587996340516", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "candidateCertification", + "type": "TO_ONE", + "confidential": false, + "label": "Candidate Credential", + "optionsType": "CandidateCertification", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CandidateCertification", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CandidateCertification", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CandidateCertification?fields=*", + "label": "Candidate Certification", + "dateLastModified": "1587996328175", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Credential", + "hideFromSearch": false + } + ] + } + }, + { + "name": "candidateCertificationName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Candidate Credential Name", + "hideFromSearch": false + }, + { + "name": "candidateCertificationStatus", + "type": "SCALAR", + "dataType": "String", + "maxLength": 255, + "confidential": false, + "label": "Candidate Credential Status", + "hideFromSearch": false + }, + { + "name": "certification", + "type": "TO_ONE", + "confidential": false, + "label": "Certification", + "optionsType": "Certification", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Certification", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Certification", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Certification?fields=*", + "label": "Certification", + "dateLastModified": "1587996328159", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "name", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "certificationFileAttachments", + "type": "TO_MANY", + "confidential": false, + "label": "File Attachments", + "optionsType": "CertificationFileAttachment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CertificationFileAttachment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CertificationFileAttachment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CertificationFileAttachment?fields=*", + "label": "Certification File Attachment", + "dateLastModified": "1587997033379", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "customDate1", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate1", + "hideFromSearch": false + }, + { + "name": "customDate10", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate10", + "hideFromSearch": false + }, + { + "name": "customDate2", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate2", + "hideFromSearch": false + }, + { + "name": "customDate3", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate3", + "hideFromSearch": false + }, + { + "name": "customDate4", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate4", + "hideFromSearch": false + }, + { + "name": "customDate5", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate5", + "hideFromSearch": false + }, + { + "name": "customDate6", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate6", + "hideFromSearch": false + }, + { + "name": "customDate7", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate7", + "hideFromSearch": false + }, + { + "name": "customDate8", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate8", + "hideFromSearch": false + }, + { + "name": "customDate9", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "customDate9", + "hideFromSearch": false + }, + { + "name": "customFloat1", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat1", + "hideFromSearch": false + }, + { + "name": "customFloat2", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat2", + "hideFromSearch": false + }, + { + "name": "customFloat3", + "type": "SCALAR", + "dataType": "Double", + "confidential": false, + "label": "customFloat3", + "hideFromSearch": false + }, + { + "name": "customInt1", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt1", + "hideFromSearch": false + }, + { + "name": "customInt2", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt2", + "hideFromSearch": false + }, + { + "name": "customInt3", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "customInt3", + "hideFromSearch": false + }, + { + "name": "customText1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText1", + "hideFromSearch": false + }, + { + "name": "customText10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText10", + "hideFromSearch": false + }, + { + "name": "customText2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText2", + "hideFromSearch": false + }, + { + "name": "customText3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText3", + "hideFromSearch": false + }, + { + "name": "customText4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText4", + "hideFromSearch": false + }, + { + "name": "customText5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText5", + "hideFromSearch": false + }, + { + "name": "customText6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText6", + "hideFromSearch": false + }, + { + "name": "customText7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText7", + "hideFromSearch": false + }, + { + "name": "customText8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText8", + "hideFromSearch": false + }, + { + "name": "customText9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "customText9", + "hideFromSearch": false + }, + { + "name": "customTextBlock1", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock1", + "hideFromSearch": false + }, + { + "name": "customTextBlock10", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock10", + "hideFromSearch": false + }, + { + "name": "customTextBlock2", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock2", + "hideFromSearch": false + }, + { + "name": "customTextBlock3", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock3", + "hideFromSearch": false + }, + { + "name": "customTextBlock4", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock4", + "hideFromSearch": false + }, + { + "name": "customTextBlock5", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock5", + "hideFromSearch": false + }, + { + "name": "customTextBlock6", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock6", + "hideFromSearch": false + }, + { + "name": "customTextBlock7", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock7", + "hideFromSearch": false + }, + { + "name": "customTextBlock8", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock8", + "hideFromSearch": false + }, + { + "name": "customTextBlock9", + "type": "SCALAR", + "dataType": "String", + "maxLength": 2147483647, + "confidential": false, + "label": "customTextBlock9", + "hideFromSearch": false + }, + { + "name": "dateAdded", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Added", + "hideFromSearch": false + }, + { + "name": "dateExpiration", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Expiration Date", + "hideFromSearch": false + }, + { + "name": "dateLastModified", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Date Last Modified", + "hideFromSearch": false + }, + { + "name": "documentDeadline", + "type": "SCALAR", + "dataType": "Timestamp", + "confidential": false, + "label": "Document Deadline", + "hideFromSearch": false + }, + { + "name": "editHistories", + "type": "TO_MANY", + "confidential": false, + "label": "Edit Histories", + "optionsType": "PlacementCertificationEditHistory", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/PlacementCertificationEditHistory", + "hideFromSearch": false, + "associatedEntity": { + "entity": "PlacementCertificationEditHistory", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/PlacementCertificationEditHistory?fields=*", + "label": "Placement Certification Edit History", + "dateLastModified": "1587997033459", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "fileAttachments", + "type": "TO_MANY", + "confidential": false, + "label": "File Attachments", + "optionsType": "CandidateFileAttachment", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CandidateFileAttachment", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CandidateFileAttachment", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CandidateFileAttachment?fields=*", + "label": "File Attachments", + "dateLastModified": "1587996268612", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "matchingCredentialCount", + "type": "SCALAR", + "dataType": "Integer", + "confidential": false, + "label": "Matching Credential Count", + "hideFromSearch": false + }, + { + "name": "modifyingUser", + "type": "TO_ONE", + "confidential": false, + "label": "Modifying User", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587996268782", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "owner", + "type": "TO_ONE", + "confidential": false, + "label": "Owner", + "optionsType": "CorporateUser", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CorporateUser", + "hideFromSearch": false, + "associatedEntity": { + "entity": "CorporateUser", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CorporateUser?fields=*", + "label": "Corporate User", + "dateLastModified": "1587996268782", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "firstName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "First Name", + "hideFromSearch": false + }, + { + "name": "lastName", + "type": "SCALAR", + "dataType": "String", + "maxLength": 50, + "confidential": false, + "label": "Last Name", + "hideFromSearch": false + } + ] + } + }, + { + "name": "placement", + "type": "TO_ONE", + "confidential": false, + "label": "Placement", + "optionsType": "Placement", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/Placement", + "hideFromSearch": false, + "associatedEntity": { + "entity": "Placement", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/Placement?fields=*", + "label": "Placement", + "dateLastModified": "1587996328039", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + } + ] + } + }, + { + "name": "status", + "type": "TO_ONE", + "dataType": "SpecializedOptionsLookup", + "confidential": false, + "label": "Status", + "optionsType": "CertificationRequirementStatusLookup", + "optionsUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/options/CertificationRequirementStatusLookup", + "options": [ + { + "value": 1, + "label": "Incomplete", + "readOnly": false + }, + { + "value": 2, + "label": "Completed", + "readOnly": false + } + ], + "hideFromSearch": false, + "associatedEntity": { + "entity": "CertificationRequirementStatusLookup", + "entityMetaUrl": "https://rest99.bullhornstaffing.com/rest-services/ns3r4/meta/CertificationRequirementStatusLookup?fields=*", + "label": "Certification Requirement Status Lookup", + "dateLastModified": "1587996338471", + "fields": [ + { + "name": "id", + "type": "ID", + "dataType": "Integer" + }, + { + "name": "label", + "type": "SCALAR", + "dataType": "String", + "maxLength": 100, + "confidential": false, + "label": "Label", + "hideFromSearch": false + } + ] + } + } + ] } From 5f41c59a20a6cc9c4de593479bd920bccb67a300 Mon Sep 17 00:00:00 2001 From: mkesmetzis Date: Mon, 27 Apr 2020 15:46:49 +0100 Subject: [PATCH 7/7] removed logs --- .../java/com/bullhornsdk/data/api/mock/MockDataHandler.groovy | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/bullhornsdk/data/api/mock/MockDataHandler.groovy b/src/main/java/com/bullhornsdk/data/api/mock/MockDataHandler.groovy index 50373519..29e3022d 100644 --- a/src/main/java/com/bullhornsdk/data/api/mock/MockDataHandler.groovy +++ b/src/main/java/com/bullhornsdk/data/api/mock/MockDataHandler.groovy @@ -158,7 +158,6 @@ public class MockDataHandler { private T getEntityFromMap(Class type, Integer id){ T entity = null; if(id != null){ - System.out.println(type.toString()); entity = (T) restEntityMap.get(type).get(id); } return entity;