All Downloads are FREE. Search and download functionalities are using the official Maven repository.

microsoft.dynamics.crm.entity.Semiannualfiscalcalendar Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package microsoft.dynamics.crm.entity;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.odata.client.ClientException;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.ODataEntityType;
import com.github.davidmoten.odata.client.RequestOptions;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.NavigationProperty;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.RequestHelper;
import com.github.davidmoten.odata.client.internal.UnmappedFields;

import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.Optional;

import microsoft.dynamics.crm.entity.collection.request.AsyncoperationCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.BulkdeletefailureCollectionRequest;
import microsoft.dynamics.crm.entity.request.SystemuserRequest;
import microsoft.dynamics.crm.entity.request.TransactioncurrencyRequest;

@JsonPropertyOrder({
    "@odata.type", 
    "_createdby_value", 
    "exchangerate", 
    "_transactioncurrencyid_value", 
    "utcconversiontimezonecode", 
    "createdon", 
    "modifiedon", 
    "_modifiedonbehalfby_value", 
    "secondhalf", 
    "importsequencenumber", 
    "timezoneruleversionnumber", 
    "_businessunitid_value", 
    "userfiscalcalendarid", 
    "firsthalf_base", 
    "effectiveon", 
    "_modifiedby_value", 
    "_createdonbehalfby_value", 
    "fiscalperiodtype", 
    "_salespersonid_value", 
    "firsthalf", 
    "secondhalf_base"})
@JsonInclude(Include.NON_NULL)
public class Semiannualfiscalcalendar extends Crmbaseentity implements ODataEntityType {

    @Override
    public String odataTypeName() {
        return "Microsoft.Dynamics.CRM.semiannualfiscalcalendar";
    }

    @JsonProperty("_createdby_value")
    protected String _createdby_value;

    @JsonProperty("exchangerate")
    protected BigDecimal exchangerate;

    @JsonProperty("_transactioncurrencyid_value")
    protected String _transactioncurrencyid_value;

    @JsonProperty("utcconversiontimezonecode")
    protected Integer utcconversiontimezonecode;

    @JsonProperty("createdon")
    protected OffsetDateTime createdon;

    @JsonProperty("modifiedon")
    protected OffsetDateTime modifiedon;

    @JsonProperty("_modifiedonbehalfby_value")
    protected String _modifiedonbehalfby_value;

    @JsonProperty("secondhalf")
    protected BigDecimal secondhalf;

    @JsonProperty("importsequencenumber")
    protected Integer importsequencenumber;

    @JsonProperty("timezoneruleversionnumber")
    protected Integer timezoneruleversionnumber;

    @JsonProperty("_businessunitid_value")
    protected String _businessunitid_value;

    @JsonProperty("userfiscalcalendarid")
    protected String userfiscalcalendarid;

    @JsonProperty("firsthalf_base")
    protected BigDecimal firsthalf_base;

    @JsonProperty("effectiveon")
    protected OffsetDateTime effectiveon;

    @JsonProperty("_modifiedby_value")
    protected String _modifiedby_value;

    @JsonProperty("_createdonbehalfby_value")
    protected String _createdonbehalfby_value;

    @JsonProperty("fiscalperiodtype")
    protected Integer fiscalperiodtype;

    @JsonProperty("_salespersonid_value")
    protected String _salespersonid_value;

    @JsonProperty("firsthalf")
    protected BigDecimal firsthalf;

    @JsonProperty("secondhalf_base")
    protected BigDecimal secondhalf_base;

    protected Semiannualfiscalcalendar() {
        super();
    }

    /**
     * Returns a builder which is used to create a new
     * instance of this class (given that this class is immutable).
     *
     * @return a new Builder for this class
     */
    // Suffix used on builder factory method to differentiate the method
    // from static builder methods on superclasses
    public static Builder builderSemiannualfiscalcalendar() {
        return new Builder();
    }

    public static final class Builder {
        private String _createdby_value;
        private BigDecimal exchangerate;
        private String _transactioncurrencyid_value;
        private Integer utcconversiontimezonecode;
        private OffsetDateTime createdon;
        private OffsetDateTime modifiedon;
        private String _modifiedonbehalfby_value;
        private BigDecimal secondhalf;
        private Integer importsequencenumber;
        private Integer timezoneruleversionnumber;
        private String _businessunitid_value;
        private String userfiscalcalendarid;
        private BigDecimal firsthalf_base;
        private OffsetDateTime effectiveon;
        private String _modifiedby_value;
        private String _createdonbehalfby_value;
        private Integer fiscalperiodtype;
        private String _salespersonid_value;
        private BigDecimal firsthalf;
        private BigDecimal secondhalf_base;
        private ChangedFields changedFields = new ChangedFields();

        Builder() {
            // prevent instantiation
        }

        public Builder _createdby_value(String _createdby_value) {
            this._createdby_value = _createdby_value;
            this.changedFields = changedFields.add("_createdby_value");
            return this;
        }

        public Builder exchangerate(BigDecimal exchangerate) {
            this.exchangerate = exchangerate;
            this.changedFields = changedFields.add("exchangerate");
            return this;
        }

        public Builder _transactioncurrencyid_value(String _transactioncurrencyid_value) {
            this._transactioncurrencyid_value = _transactioncurrencyid_value;
            this.changedFields = changedFields.add("_transactioncurrencyid_value");
            return this;
        }

        public Builder utcconversiontimezonecode(Integer utcconversiontimezonecode) {
            this.utcconversiontimezonecode = utcconversiontimezonecode;
            this.changedFields = changedFields.add("utcconversiontimezonecode");
            return this;
        }

        public Builder createdon(OffsetDateTime createdon) {
            this.createdon = createdon;
            this.changedFields = changedFields.add("createdon");
            return this;
        }

        public Builder modifiedon(OffsetDateTime modifiedon) {
            this.modifiedon = modifiedon;
            this.changedFields = changedFields.add("modifiedon");
            return this;
        }

        public Builder _modifiedonbehalfby_value(String _modifiedonbehalfby_value) {
            this._modifiedonbehalfby_value = _modifiedonbehalfby_value;
            this.changedFields = changedFields.add("_modifiedonbehalfby_value");
            return this;
        }

        public Builder secondhalf(BigDecimal secondhalf) {
            this.secondhalf = secondhalf;
            this.changedFields = changedFields.add("secondhalf");
            return this;
        }

        public Builder importsequencenumber(Integer importsequencenumber) {
            this.importsequencenumber = importsequencenumber;
            this.changedFields = changedFields.add("importsequencenumber");
            return this;
        }

        public Builder timezoneruleversionnumber(Integer timezoneruleversionnumber) {
            this.timezoneruleversionnumber = timezoneruleversionnumber;
            this.changedFields = changedFields.add("timezoneruleversionnumber");
            return this;
        }

        public Builder _businessunitid_value(String _businessunitid_value) {
            this._businessunitid_value = _businessunitid_value;
            this.changedFields = changedFields.add("_businessunitid_value");
            return this;
        }

        public Builder userfiscalcalendarid(String userfiscalcalendarid) {
            this.userfiscalcalendarid = userfiscalcalendarid;
            this.changedFields = changedFields.add("userfiscalcalendarid");
            return this;
        }

        public Builder firsthalf_base(BigDecimal firsthalf_base) {
            this.firsthalf_base = firsthalf_base;
            this.changedFields = changedFields.add("firsthalf_base");
            return this;
        }

        public Builder effectiveon(OffsetDateTime effectiveon) {
            this.effectiveon = effectiveon;
            this.changedFields = changedFields.add("effectiveon");
            return this;
        }

        public Builder _modifiedby_value(String _modifiedby_value) {
            this._modifiedby_value = _modifiedby_value;
            this.changedFields = changedFields.add("_modifiedby_value");
            return this;
        }

        public Builder _createdonbehalfby_value(String _createdonbehalfby_value) {
            this._createdonbehalfby_value = _createdonbehalfby_value;
            this.changedFields = changedFields.add("_createdonbehalfby_value");
            return this;
        }

        public Builder fiscalperiodtype(Integer fiscalperiodtype) {
            this.fiscalperiodtype = fiscalperiodtype;
            this.changedFields = changedFields.add("fiscalperiodtype");
            return this;
        }

        public Builder _salespersonid_value(String _salespersonid_value) {
            this._salespersonid_value = _salespersonid_value;
            this.changedFields = changedFields.add("_salespersonid_value");
            return this;
        }

        public Builder firsthalf(BigDecimal firsthalf) {
            this.firsthalf = firsthalf;
            this.changedFields = changedFields.add("firsthalf");
            return this;
        }

        public Builder secondhalf_base(BigDecimal secondhalf_base) {
            this.secondhalf_base = secondhalf_base;
            this.changedFields = changedFields.add("secondhalf_base");
            return this;
        }

        public Semiannualfiscalcalendar build() {
            Semiannualfiscalcalendar _x = new Semiannualfiscalcalendar();
            _x.contextPath = null;
            _x.changedFields = changedFields;
            _x.unmappedFields = new UnmappedFields();
            _x.odataType = "Microsoft.Dynamics.CRM.semiannualfiscalcalendar";
            _x._createdby_value = _createdby_value;
            _x.exchangerate = exchangerate;
            _x._transactioncurrencyid_value = _transactioncurrencyid_value;
            _x.utcconversiontimezonecode = utcconversiontimezonecode;
            _x.createdon = createdon;
            _x.modifiedon = modifiedon;
            _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
            _x.secondhalf = secondhalf;
            _x.importsequencenumber = importsequencenumber;
            _x.timezoneruleversionnumber = timezoneruleversionnumber;
            _x._businessunitid_value = _businessunitid_value;
            _x.userfiscalcalendarid = userfiscalcalendarid;
            _x.firsthalf_base = firsthalf_base;
            _x.effectiveon = effectiveon;
            _x._modifiedby_value = _modifiedby_value;
            _x._createdonbehalfby_value = _createdonbehalfby_value;
            _x.fiscalperiodtype = fiscalperiodtype;
            _x._salespersonid_value = _salespersonid_value;
            _x.firsthalf = firsthalf;
            _x.secondhalf_base = secondhalf_base;
            return _x;
        }
    }

    @Override
    @JsonIgnore
    public ChangedFields getChangedFields() {
        return changedFields;
    }

    @Override
    public void postInject(boolean addKeysToContextPath) {
        if (addKeysToContextPath && userfiscalcalendarid != null) {
            contextPath = contextPath.clearQueries().addKeys(new NameValue(userfiscalcalendarid.toString()));
        }
    }

    @Property(name="_createdby_value")
    @JsonIgnore
    public Optional get_createdby_value() {
        return Optional.ofNullable(_createdby_value);
    }

    public Semiannualfiscalcalendar with_createdby_value(String _createdby_value) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_createdby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x._createdby_value = _createdby_value;
        return _x;
    }

    @Property(name="exchangerate")
    @JsonIgnore
    public Optional getExchangerate() {
        return Optional.ofNullable(exchangerate);
    }

    public Semiannualfiscalcalendar withExchangerate(BigDecimal exchangerate) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("exchangerate");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.exchangerate = exchangerate;
        return _x;
    }

    @Property(name="_transactioncurrencyid_value")
    @JsonIgnore
    public Optional get_transactioncurrencyid_value() {
        return Optional.ofNullable(_transactioncurrencyid_value);
    }

    public Semiannualfiscalcalendar with_transactioncurrencyid_value(String _transactioncurrencyid_value) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_transactioncurrencyid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x._transactioncurrencyid_value = _transactioncurrencyid_value;
        return _x;
    }

    @Property(name="utcconversiontimezonecode")
    @JsonIgnore
    public Optional getUtcconversiontimezonecode() {
        return Optional.ofNullable(utcconversiontimezonecode);
    }

    public Semiannualfiscalcalendar withUtcconversiontimezonecode(Integer utcconversiontimezonecode) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("utcconversiontimezonecode");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.utcconversiontimezonecode = utcconversiontimezonecode;
        return _x;
    }

    @Property(name="createdon")
    @JsonIgnore
    public Optional getCreatedon() {
        return Optional.ofNullable(createdon);
    }

    public Semiannualfiscalcalendar withCreatedon(OffsetDateTime createdon) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("createdon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.createdon = createdon;
        return _x;
    }

    @Property(name="modifiedon")
    @JsonIgnore
    public Optional getModifiedon() {
        return Optional.ofNullable(modifiedon);
    }

    public Semiannualfiscalcalendar withModifiedon(OffsetDateTime modifiedon) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("modifiedon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.modifiedon = modifiedon;
        return _x;
    }

    @Property(name="_modifiedonbehalfby_value")
    @JsonIgnore
    public Optional get_modifiedonbehalfby_value() {
        return Optional.ofNullable(_modifiedonbehalfby_value);
    }

    public Semiannualfiscalcalendar with_modifiedonbehalfby_value(String _modifiedonbehalfby_value) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_modifiedonbehalfby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
        return _x;
    }

    @Property(name="secondhalf")
    @JsonIgnore
    public Optional getSecondhalf() {
        return Optional.ofNullable(secondhalf);
    }

    public Semiannualfiscalcalendar withSecondhalf(BigDecimal secondhalf) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("secondhalf");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.secondhalf = secondhalf;
        return _x;
    }

    @Property(name="importsequencenumber")
    @JsonIgnore
    public Optional getImportsequencenumber() {
        return Optional.ofNullable(importsequencenumber);
    }

    public Semiannualfiscalcalendar withImportsequencenumber(Integer importsequencenumber) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("importsequencenumber");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.importsequencenumber = importsequencenumber;
        return _x;
    }

    @Property(name="timezoneruleversionnumber")
    @JsonIgnore
    public Optional getTimezoneruleversionnumber() {
        return Optional.ofNullable(timezoneruleversionnumber);
    }

    public Semiannualfiscalcalendar withTimezoneruleversionnumber(Integer timezoneruleversionnumber) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("timezoneruleversionnumber");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.timezoneruleversionnumber = timezoneruleversionnumber;
        return _x;
    }

    @Property(name="_businessunitid_value")
    @JsonIgnore
    public Optional get_businessunitid_value() {
        return Optional.ofNullable(_businessunitid_value);
    }

    public Semiannualfiscalcalendar with_businessunitid_value(String _businessunitid_value) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_businessunitid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x._businessunitid_value = _businessunitid_value;
        return _x;
    }

    @Property(name="userfiscalcalendarid")
    @JsonIgnore
    public Optional getUserfiscalcalendarid() {
        return Optional.ofNullable(userfiscalcalendarid);
    }

    public Semiannualfiscalcalendar withUserfiscalcalendarid(String userfiscalcalendarid) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("userfiscalcalendarid");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.userfiscalcalendarid = userfiscalcalendarid;
        return _x;
    }

    @Property(name="firsthalf_base")
    @JsonIgnore
    public Optional getFirsthalf_base() {
        return Optional.ofNullable(firsthalf_base);
    }

    public Semiannualfiscalcalendar withFirsthalf_base(BigDecimal firsthalf_base) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("firsthalf_base");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.firsthalf_base = firsthalf_base;
        return _x;
    }

    @Property(name="effectiveon")
    @JsonIgnore
    public Optional getEffectiveon() {
        return Optional.ofNullable(effectiveon);
    }

    public Semiannualfiscalcalendar withEffectiveon(OffsetDateTime effectiveon) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("effectiveon");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.effectiveon = effectiveon;
        return _x;
    }

    @Property(name="_modifiedby_value")
    @JsonIgnore
    public Optional get_modifiedby_value() {
        return Optional.ofNullable(_modifiedby_value);
    }

    public Semiannualfiscalcalendar with_modifiedby_value(String _modifiedby_value) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_modifiedby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x._modifiedby_value = _modifiedby_value;
        return _x;
    }

    @Property(name="_createdonbehalfby_value")
    @JsonIgnore
    public Optional get_createdonbehalfby_value() {
        return Optional.ofNullable(_createdonbehalfby_value);
    }

    public Semiannualfiscalcalendar with_createdonbehalfby_value(String _createdonbehalfby_value) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_createdonbehalfby_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x._createdonbehalfby_value = _createdonbehalfby_value;
        return _x;
    }

    @Property(name="fiscalperiodtype")
    @JsonIgnore
    public Optional getFiscalperiodtype() {
        return Optional.ofNullable(fiscalperiodtype);
    }

    public Semiannualfiscalcalendar withFiscalperiodtype(Integer fiscalperiodtype) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("fiscalperiodtype");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.fiscalperiodtype = fiscalperiodtype;
        return _x;
    }

    @Property(name="_salespersonid_value")
    @JsonIgnore
    public Optional get_salespersonid_value() {
        return Optional.ofNullable(_salespersonid_value);
    }

    public Semiannualfiscalcalendar with_salespersonid_value(String _salespersonid_value) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("_salespersonid_value");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x._salespersonid_value = _salespersonid_value;
        return _x;
    }

    @Property(name="firsthalf")
    @JsonIgnore
    public Optional getFirsthalf() {
        return Optional.ofNullable(firsthalf);
    }

    public Semiannualfiscalcalendar withFirsthalf(BigDecimal firsthalf) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("firsthalf");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.firsthalf = firsthalf;
        return _x;
    }

    @Property(name="secondhalf_base")
    @JsonIgnore
    public Optional getSecondhalf_base() {
        return Optional.ofNullable(secondhalf_base);
    }

    public Semiannualfiscalcalendar withSecondhalf_base(BigDecimal secondhalf_base) {
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = changedFields.add("secondhalf_base");
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.semiannualfiscalcalendar");
        _x.secondhalf_base = secondhalf_base;
        return _x;
    }

    @NavigationProperty(name="modifiedonbehalfby")
    @JsonIgnore
    public SystemuserRequest getModifiedonbehalfby() {
        return new SystemuserRequest(contextPath.addSegment("modifiedonbehalfby"));
    }

    @NavigationProperty(name="createdonbehalfby")
    @JsonIgnore
    public SystemuserRequest getCreatedonbehalfby() {
        return new SystemuserRequest(contextPath.addSegment("createdonbehalfby"));
    }

    @NavigationProperty(name="createdby")
    @JsonIgnore
    public SystemuserRequest getCreatedby() {
        return new SystemuserRequest(contextPath.addSegment("createdby"));
    }

    @NavigationProperty(name="SemiAnnualFiscalCalendar_BulkDeleteFailures")
    @JsonIgnore
    public BulkdeletefailureCollectionRequest getSemiAnnualFiscalCalendar_BulkDeleteFailures() {
        return new BulkdeletefailureCollectionRequest(
                        contextPath.addSegment("SemiAnnualFiscalCalendar_BulkDeleteFailures"));
    }

    @NavigationProperty(name="salespersonid")
    @JsonIgnore
    public SystemuserRequest getSalespersonid() {
        return new SystemuserRequest(contextPath.addSegment("salespersonid"));
    }

    @NavigationProperty(name="SemiAnnualFiscalCalendar_AsyncOperations")
    @JsonIgnore
    public AsyncoperationCollectionRequest getSemiAnnualFiscalCalendar_AsyncOperations() {
        return new AsyncoperationCollectionRequest(
                        contextPath.addSegment("SemiAnnualFiscalCalendar_AsyncOperations"));
    }

    @NavigationProperty(name="transactioncurrencyid")
    @JsonIgnore
    public TransactioncurrencyRequest getTransactioncurrencyid() {
        return new TransactioncurrencyRequest(contextPath.addSegment("transactioncurrencyid"));
    }

    @NavigationProperty(name="modifiedby")
    @JsonIgnore
    public SystemuserRequest getModifiedby() {
        return new SystemuserRequest(contextPath.addSegment("modifiedby"));
    }

    @JsonAnySetter
    private void setUnmappedField(String name, Object value) {
        if (unmappedFields == null) {
            unmappedFields = new UnmappedFields();
        }
        unmappedFields.put(name, value);
    }

    @Override
    @JsonIgnore
    public UnmappedFields getUnmappedFields() {
        return unmappedFields == null ? new UnmappedFields() : unmappedFields;
    }

    /**
     * Submits only changed fields for update and returns an 
     * immutable copy of {@code this} with changed fields reset.
     *
     * @return a copy of {@code this} with changed fields reset
     * @throws ClientException if HTTP response is not as expected
     */
    public Semiannualfiscalcalendar patch() {
        RequestHelper.patch(this, contextPath, RequestOptions.EMPTY);
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = null;
        return _x;
    }

    /**
     * Submits all fields for update and returns an immutable copy of {@code this}
     * with changed fields reset (they were ignored anyway).
     *
     * @return a copy of {@code this} with changed fields reset
     * @throws ClientException if HTTP response is not as expected
     */
    public Semiannualfiscalcalendar put() {
        RequestHelper.put(this, contextPath, RequestOptions.EMPTY);
        Semiannualfiscalcalendar _x = _copy();
        _x.changedFields = null;
        return _x;
    }

    private Semiannualfiscalcalendar _copy() {
        Semiannualfiscalcalendar _x = new Semiannualfiscalcalendar();
        _x.contextPath = contextPath;
        _x.changedFields = changedFields;
        _x.unmappedFields = unmappedFields;
        _x.odataType = odataType;
        _x._createdby_value = _createdby_value;
        _x.exchangerate = exchangerate;
        _x._transactioncurrencyid_value = _transactioncurrencyid_value;
        _x.utcconversiontimezonecode = utcconversiontimezonecode;
        _x.createdon = createdon;
        _x.modifiedon = modifiedon;
        _x._modifiedonbehalfby_value = _modifiedonbehalfby_value;
        _x.secondhalf = secondhalf;
        _x.importsequencenumber = importsequencenumber;
        _x.timezoneruleversionnumber = timezoneruleversionnumber;
        _x._businessunitid_value = _businessunitid_value;
        _x.userfiscalcalendarid = userfiscalcalendarid;
        _x.firsthalf_base = firsthalf_base;
        _x.effectiveon = effectiveon;
        _x._modifiedby_value = _modifiedby_value;
        _x._createdonbehalfby_value = _createdonbehalfby_value;
        _x.fiscalperiodtype = fiscalperiodtype;
        _x._salespersonid_value = _salespersonid_value;
        _x.firsthalf = firsthalf;
        _x.secondhalf_base = secondhalf_base;
        return _x;
    }

    @Override
    public String toString() {
        StringBuilder b = new StringBuilder();
        b.append("Semiannualfiscalcalendar[");
        b.append("_createdby_value=");
        b.append(this._createdby_value);
        b.append(", ");
        b.append("exchangerate=");
        b.append(this.exchangerate);
        b.append(", ");
        b.append("_transactioncurrencyid_value=");
        b.append(this._transactioncurrencyid_value);
        b.append(", ");
        b.append("utcconversiontimezonecode=");
        b.append(this.utcconversiontimezonecode);
        b.append(", ");
        b.append("createdon=");
        b.append(this.createdon);
        b.append(", ");
        b.append("modifiedon=");
        b.append(this.modifiedon);
        b.append(", ");
        b.append("_modifiedonbehalfby_value=");
        b.append(this._modifiedonbehalfby_value);
        b.append(", ");
        b.append("secondhalf=");
        b.append(this.secondhalf);
        b.append(", ");
        b.append("importsequencenumber=");
        b.append(this.importsequencenumber);
        b.append(", ");
        b.append("timezoneruleversionnumber=");
        b.append(this.timezoneruleversionnumber);
        b.append(", ");
        b.append("_businessunitid_value=");
        b.append(this._businessunitid_value);
        b.append(", ");
        b.append("userfiscalcalendarid=");
        b.append(this.userfiscalcalendarid);
        b.append(", ");
        b.append("firsthalf_base=");
        b.append(this.firsthalf_base);
        b.append(", ");
        b.append("effectiveon=");
        b.append(this.effectiveon);
        b.append(", ");
        b.append("_modifiedby_value=");
        b.append(this._modifiedby_value);
        b.append(", ");
        b.append("_createdonbehalfby_value=");
        b.append(this._createdonbehalfby_value);
        b.append(", ");
        b.append("fiscalperiodtype=");
        b.append(this.fiscalperiodtype);
        b.append(", ");
        b.append("_salespersonid_value=");
        b.append(this._salespersonid_value);
        b.append(", ");
        b.append("firsthalf=");
        b.append(this.firsthalf);
        b.append(", ");
        b.append("secondhalf_base=");
        b.append(this.secondhalf_base);
        b.append("]");
        b.append(",unmappedFields=");
        b.append(unmappedFields);
        b.append(",odataType=");
        b.append(odataType);
        return b.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy