Billiecart API

<back to all web services

SetLeaseDetailsRequest

Requires Authentication
Requires the role:manager
The following routes are available for this service:
PUT/packages/{Id}/lease-details
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SetLeaseDetailsRequest extends PutOperationTenanted<SetLeaseDetailsResponse>
    {
        public String id = null;
        public Integer term = null;
        public Date startDate = null;
        public BigDecimal amountFinanced = null;
        public String financeProvider = null;
        public BigDecimal paymentAmount = null;
        public BigDecimal residualValue = null;
        public Integer yearlyKmsTravelled = null;
        public BigDecimal onRoadCost = null;
        public BigDecimal fringeBenefitTaxValue = null;
        public String fringeBenefitTaxMethod = null;
        public Integer fringeBenefitBusinessUse = null;
        public Date fringeBenefitStartDate = null;
        public BigDecimal preTaxDeduction = null;
        public BigDecimal postTaxDeduction = null;
        public BigDecimal gstOnPostTaxDeduction = null;
        public BigDecimal luxuryVehicleCharge = null;
        public Date registrationDueDate = null;
        public Date insuranceDueDate = null;
        public String leaseProviderBankAccountNumber = null;
        public String leaseProviderBankAccountBsbNumber = null;
        
        public String getId() { return id; }
        public SetLeaseDetailsRequest setId(String value) { this.id = value; return this; }
        public Integer getTerm() { return term; }
        public SetLeaseDetailsRequest setTerm(Integer value) { this.term = value; return this; }
        public Date getStartDate() { return startDate; }
        public SetLeaseDetailsRequest setStartDate(Date value) { this.startDate = value; return this; }
        public BigDecimal getAmountFinanced() { return amountFinanced; }
        public SetLeaseDetailsRequest setAmountFinanced(BigDecimal value) { this.amountFinanced = value; return this; }
        public String getFinanceProvider() { return financeProvider; }
        public SetLeaseDetailsRequest setFinanceProvider(String value) { this.financeProvider = value; return this; }
        public BigDecimal getPaymentAmount() { return paymentAmount; }
        public SetLeaseDetailsRequest setPaymentAmount(BigDecimal value) { this.paymentAmount = value; return this; }
        public BigDecimal getResidualValue() { return residualValue; }
        public SetLeaseDetailsRequest setResidualValue(BigDecimal value) { this.residualValue = value; return this; }
        public Integer getYearlyKmsTravelled() { return yearlyKmsTravelled; }
        public SetLeaseDetailsRequest setYearlyKmsTravelled(Integer value) { this.yearlyKmsTravelled = value; return this; }
        public BigDecimal getOnRoadCost() { return onRoadCost; }
        public SetLeaseDetailsRequest setOnRoadCost(BigDecimal value) { this.onRoadCost = value; return this; }
        public BigDecimal getFringeBenefitTaxValue() { return fringeBenefitTaxValue; }
        public SetLeaseDetailsRequest setFringeBenefitTaxValue(BigDecimal value) { this.fringeBenefitTaxValue = value; return this; }
        public String getFringeBenefitTaxMethod() { return fringeBenefitTaxMethod; }
        public SetLeaseDetailsRequest setFringeBenefitTaxMethod(String value) { this.fringeBenefitTaxMethod = value; return this; }
        public Integer getFringeBenefitBusinessUse() { return fringeBenefitBusinessUse; }
        public SetLeaseDetailsRequest setFringeBenefitBusinessUse(Integer value) { this.fringeBenefitBusinessUse = value; return this; }
        public Date getFringeBenefitStartDate() { return fringeBenefitStartDate; }
        public SetLeaseDetailsRequest setFringeBenefitStartDate(Date value) { this.fringeBenefitStartDate = value; return this; }
        public BigDecimal getPreTaxDeduction() { return preTaxDeduction; }
        public SetLeaseDetailsRequest setPreTaxDeduction(BigDecimal value) { this.preTaxDeduction = value; return this; }
        public BigDecimal getPostTaxDeduction() { return postTaxDeduction; }
        public SetLeaseDetailsRequest setPostTaxDeduction(BigDecimal value) { this.postTaxDeduction = value; return this; }
        public BigDecimal getGstOnPostTaxDeduction() { return gstOnPostTaxDeduction; }
        public SetLeaseDetailsRequest setGstOnPostTaxDeduction(BigDecimal value) { this.gstOnPostTaxDeduction = value; return this; }
        public BigDecimal getLuxuryVehicleCharge() { return luxuryVehicleCharge; }
        public SetLeaseDetailsRequest setLuxuryVehicleCharge(BigDecimal value) { this.luxuryVehicleCharge = value; return this; }
        public Date getRegistrationDueDate() { return registrationDueDate; }
        public SetLeaseDetailsRequest setRegistrationDueDate(Date value) { this.registrationDueDate = value; return this; }
        public Date getInsuranceDueDate() { return insuranceDueDate; }
        public SetLeaseDetailsRequest setInsuranceDueDate(Date value) { this.insuranceDueDate = value; return this; }
        public String getLeaseProviderBankAccountNumber() { return leaseProviderBankAccountNumber; }
        public SetLeaseDetailsRequest setLeaseProviderBankAccountNumber(String value) { this.leaseProviderBankAccountNumber = value; return this; }
        public String getLeaseProviderBankAccountBsbNumber() { return leaseProviderBankAccountBsbNumber; }
        public SetLeaseDetailsRequest setLeaseProviderBankAccountBsbNumber(String value) { this.leaseProviderBankAccountBsbNumber = value; return this; }
    }

    public static class PutOperationTenanted<TResponse> extends PutOperationUnTenanted<TResponse> implements ITenantedRequest
    {
        public String organisationId = null;
        
        public String getOrganisationId() { return organisationId; }
        public PutOperationTenanted<TResponse> setOrganisationId(String value) { this.organisationId = value; return this; }
    }

    public static class PutOperationUnTenanted<TResponse> implements IPut
    {
        
    }

    public static class SetLeaseDetailsResponse
    {
        public ResponseStatus responseStatus = null;
        public SalaryPackage salaryPackage = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public SetLeaseDetailsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public SalaryPackage getSalaryPackage() { return salaryPackage; }
        public SetLeaseDetailsResponse setSalaryPackage(SalaryPackage value) { this.salaryPackage = value; return this; }
    }

    public static class SalaryPackage implements IIdentifiableResource
    {
        public String customerId = null;
        public String customerFirstName = null;
        public String customerLastName = null;
        public String status = null;
        public String notes = null;
        public BudgetBreakdown budgetBreakdown = null;
        public Employment employment = null;
        public Vehicle vehicle = null;
        public LeaseDetails leaseDetails = null;
        public BudgetBalances budgetBalances = null;
        public BigDecimal currentBalance = null;
        public ArrayList<ForecastedSalarySacrifice> forecastedSalarySacrifices = null;
        public ArrayList<ForecastedOutgoingPayment> forecastedOutgoingPayments = null;
        public ArrayList<Adjustment> adjustments = null;
        public ArrayList<Transaction> transactions = null;
        public String id = null;
        
        public String getCustomerId() { return customerId; }
        public SalaryPackage setCustomerId(String value) { this.customerId = value; return this; }
        public String getCustomerFirstName() { return customerFirstName; }
        public SalaryPackage setCustomerFirstName(String value) { this.customerFirstName = value; return this; }
        public String getCustomerLastName() { return customerLastName; }
        public SalaryPackage setCustomerLastName(String value) { this.customerLastName = value; return this; }
        public String getStatus() { return status; }
        public SalaryPackage setStatus(String value) { this.status = value; return this; }
        public String getNotes() { return notes; }
        public SalaryPackage setNotes(String value) { this.notes = value; return this; }
        public BudgetBreakdown getBudgetBreakdown() { return budgetBreakdown; }
        public SalaryPackage setBudgetBreakdown(BudgetBreakdown value) { this.budgetBreakdown = value; return this; }
        public Employment getEmployment() { return employment; }
        public SalaryPackage setEmployment(Employment value) { this.employment = value; return this; }
        public Vehicle getVehicle() { return vehicle; }
        public SalaryPackage setVehicle(Vehicle value) { this.vehicle = value; return this; }
        public LeaseDetails getLeaseDetails() { return leaseDetails; }
        public SalaryPackage setLeaseDetails(LeaseDetails value) { this.leaseDetails = value; return this; }
        public BudgetBalances getBudgetBalances() { return budgetBalances; }
        public SalaryPackage setBudgetBalances(BudgetBalances value) { this.budgetBalances = value; return this; }
        public BigDecimal getCurrentBalance() { return currentBalance; }
        public SalaryPackage setCurrentBalance(BigDecimal value) { this.currentBalance = value; return this; }
        public ArrayList<ForecastedSalarySacrifice> getForecastedSalarySacrifices() { return forecastedSalarySacrifices; }
        public SalaryPackage setForecastedSalarySacrifices(ArrayList<ForecastedSalarySacrifice> value) { this.forecastedSalarySacrifices = value; return this; }
        public ArrayList<ForecastedOutgoingPayment> getForecastedOutgoingPayments() { return forecastedOutgoingPayments; }
        public SalaryPackage setForecastedOutgoingPayments(ArrayList<ForecastedOutgoingPayment> value) { this.forecastedOutgoingPayments = value; return this; }
        public ArrayList<Adjustment> getAdjustments() { return adjustments; }
        public SalaryPackage setAdjustments(ArrayList<Adjustment> value) { this.adjustments = value; return this; }
        public ArrayList<Transaction> getTransactions() { return transactions; }
        public SalaryPackage setTransactions(ArrayList<Transaction> value) { this.transactions = value; return this; }
        public String getId() { return id; }
        public SalaryPackage setId(String value) { this.id = value; return this; }
    }

    public static class BudgetBreakdown
    {
        public BigDecimal leaseAmount = null;
        public BigDecimal administrationFee = null;
        public BigDecimal fuel = null;
        public BigDecimal servicing = null;
        public BigDecimal tyres = null;
        public BigDecimal insurance = null;
        public BigDecimal carWash = null;
        public BigDecimal registration = null;
        public BigDecimal roadSideAssistance = null;
        public BigDecimal anythingExtra = null;
        
        public BigDecimal getLeaseAmount() { return leaseAmount; }
        public BudgetBreakdown setLeaseAmount(BigDecimal value) { this.leaseAmount = value; return this; }
        public BigDecimal getAdministrationFee() { return administrationFee; }
        public BudgetBreakdown setAdministrationFee(BigDecimal value) { this.administrationFee = value; return this; }
        public BigDecimal getFuel() { return fuel; }
        public BudgetBreakdown setFuel(BigDecimal value) { this.fuel = value; return this; }
        public BigDecimal getServicing() { return servicing; }
        public BudgetBreakdown setServicing(BigDecimal value) { this.servicing = value; return this; }
        public BigDecimal getTyres() { return tyres; }
        public BudgetBreakdown setTyres(BigDecimal value) { this.tyres = value; return this; }
        public BigDecimal getInsurance() { return insurance; }
        public BudgetBreakdown setInsurance(BigDecimal value) { this.insurance = value; return this; }
        public BigDecimal getCarWash() { return carWash; }
        public BudgetBreakdown setCarWash(BigDecimal value) { this.carWash = value; return this; }
        public BigDecimal getRegistration() { return registration; }
        public BudgetBreakdown setRegistration(BigDecimal value) { this.registration = value; return this; }
        public BigDecimal getRoadSideAssistance() { return roadSideAssistance; }
        public BudgetBreakdown setRoadSideAssistance(BigDecimal value) { this.roadSideAssistance = value; return this; }
        public BigDecimal getAnythingExtra() { return anythingExtra; }
        public BudgetBreakdown setAnythingExtra(BigDecimal value) { this.anythingExtra = value; return this; }
    }

    public static class Employment
    {
        public String payrollCycle = null;
        public Date firstPayDate = null;
        public String employerId = null;
        public String employerName = null;
        
        public String getPayrollCycle() { return payrollCycle; }
        public Employment setPayrollCycle(String value) { this.payrollCycle = value; return this; }
        public Date getFirstPayDate() { return firstPayDate; }
        public Employment setFirstPayDate(Date value) { this.firstPayDate = value; return this; }
        public String getEmployerId() { return employerId; }
        public Employment setEmployerId(String value) { this.employerId = value; return this; }
        public String getEmployerName() { return employerName; }
        public Employment setEmployerName(String value) { this.employerName = value; return this; }
    }

    public static class Vehicle
    {
        public String make = null;
        public String model = null;
        public String colour = null;
        public String bodyShape = null;
        public String licensePlate = null;
        public String transmission = null;
        public Integer manufactureYear = null;
        
        public String getMake() { return make; }
        public Vehicle setMake(String value) { this.make = value; return this; }
        public String getModel() { return model; }
        public Vehicle setModel(String value) { this.model = value; return this; }
        public String getColour() { return colour; }
        public Vehicle setColour(String value) { this.colour = value; return this; }
        public String getBodyShape() { return bodyShape; }
        public Vehicle setBodyShape(String value) { this.bodyShape = value; return this; }
        public String getLicensePlate() { return licensePlate; }
        public Vehicle setLicensePlate(String value) { this.licensePlate = value; return this; }
        public String getTransmission() { return transmission; }
        public Vehicle setTransmission(String value) { this.transmission = value; return this; }
        public Integer getManufactureYear() { return manufactureYear; }
        public Vehicle setManufactureYear(Integer value) { this.manufactureYear = value; return this; }
    }

    public static class LeaseDetails
    {
        public Integer term = null;
        public Date startDate = null;
        public BigDecimal amountFinanced = null;
        public BigDecimal paymentAmount = null;
        public String financeProvider = null;
        public BigDecimal residualValue = null;
        public Integer yearlyKmsTravelled = null;
        public BigDecimal fringeBenefitTaxValue = null;
        public String fringeBenefitTaxMethod = null;
        public Integer fringeBenefitTaxBusinessUse = null;
        public Date fringeBenefitTaxStartDate = null;
        public BigDecimal preTaxDeduction = null;
        public BigDecimal postTaxDeduction = null;
        public BigDecimal gstOnPostTaxDeduction = null;
        public BigDecimal luxuryVehicleCharge = null;
        public BigDecimal onRoadCost = null;
        public Date registrationDueDate = null;
        public Date insuranceDueDate = null;
        public BankAccount leaseProviderBankAccount = null;
        
        public Integer getTerm() { return term; }
        public LeaseDetails setTerm(Integer value) { this.term = value; return this; }
        public Date getStartDate() { return startDate; }
        public LeaseDetails setStartDate(Date value) { this.startDate = value; return this; }
        public BigDecimal getAmountFinanced() { return amountFinanced; }
        public LeaseDetails setAmountFinanced(BigDecimal value) { this.amountFinanced = value; return this; }
        public BigDecimal getPaymentAmount() { return paymentAmount; }
        public LeaseDetails setPaymentAmount(BigDecimal value) { this.paymentAmount = value; return this; }
        public String getFinanceProvider() { return financeProvider; }
        public LeaseDetails setFinanceProvider(String value) { this.financeProvider = value; return this; }
        public BigDecimal getResidualValue() { return residualValue; }
        public LeaseDetails setResidualValue(BigDecimal value) { this.residualValue = value; return this; }
        public Integer getYearlyKmsTravelled() { return yearlyKmsTravelled; }
        public LeaseDetails setYearlyKmsTravelled(Integer value) { this.yearlyKmsTravelled = value; return this; }
        public BigDecimal getFringeBenefitTaxValue() { return fringeBenefitTaxValue; }
        public LeaseDetails setFringeBenefitTaxValue(BigDecimal value) { this.fringeBenefitTaxValue = value; return this; }
        public String getFringeBenefitTaxMethod() { return fringeBenefitTaxMethod; }
        public LeaseDetails setFringeBenefitTaxMethod(String value) { this.fringeBenefitTaxMethod = value; return this; }
        public Integer getFringeBenefitTaxBusinessUse() { return fringeBenefitTaxBusinessUse; }
        public LeaseDetails setFringeBenefitTaxBusinessUse(Integer value) { this.fringeBenefitTaxBusinessUse = value; return this; }
        public Date getFringeBenefitTaxStartDate() { return fringeBenefitTaxStartDate; }
        public LeaseDetails setFringeBenefitTaxStartDate(Date value) { this.fringeBenefitTaxStartDate = value; return this; }
        public BigDecimal getPreTaxDeduction() { return preTaxDeduction; }
        public LeaseDetails setPreTaxDeduction(BigDecimal value) { this.preTaxDeduction = value; return this; }
        public BigDecimal getPostTaxDeduction() { return postTaxDeduction; }
        public LeaseDetails setPostTaxDeduction(BigDecimal value) { this.postTaxDeduction = value; return this; }
        public BigDecimal getGstOnPostTaxDeduction() { return gstOnPostTaxDeduction; }
        public LeaseDetails setGstOnPostTaxDeduction(BigDecimal value) { this.gstOnPostTaxDeduction = value; return this; }
        public BigDecimal getLuxuryVehicleCharge() { return luxuryVehicleCharge; }
        public LeaseDetails setLuxuryVehicleCharge(BigDecimal value) { this.luxuryVehicleCharge = value; return this; }
        public BigDecimal getOnRoadCost() { return onRoadCost; }
        public LeaseDetails setOnRoadCost(BigDecimal value) { this.onRoadCost = value; return this; }
        public Date getRegistrationDueDate() { return registrationDueDate; }
        public LeaseDetails setRegistrationDueDate(Date value) { this.registrationDueDate = value; return this; }
        public Date getInsuranceDueDate() { return insuranceDueDate; }
        public LeaseDetails setInsuranceDueDate(Date value) { this.insuranceDueDate = value; return this; }
        public BankAccount getLeaseProviderBankAccount() { return leaseProviderBankAccount; }
        public LeaseDetails setLeaseProviderBankAccount(BankAccount value) { this.leaseProviderBankAccount = value; return this; }
    }

    public static class BankAccount
    {
        public String bsbNumber = null;
        public String accountNumber = null;
        
        public String getBsbNumber() { return bsbNumber; }
        public BankAccount setBsbNumber(String value) { this.bsbNumber = value; return this; }
        public String getAccountNumber() { return accountNumber; }
        public BankAccount setAccountNumber(String value) { this.accountNumber = value; return this; }
    }

    public static class BudgetBalances
    {
        public BigDecimal leaseAmount = null;
        public BigDecimal administrationFee = null;
        public BigDecimal fuel = null;
        public BigDecimal servicing = null;
        public BigDecimal tyres = null;
        public BigDecimal insurance = null;
        public BigDecimal carWash = null;
        public BigDecimal registration = null;
        public BigDecimal roadSideAssistance = null;
        public BigDecimal anythingExtra = null;
        
        public BigDecimal getLeaseAmount() { return leaseAmount; }
        public BudgetBalances setLeaseAmount(BigDecimal value) { this.leaseAmount = value; return this; }
        public BigDecimal getAdministrationFee() { return administrationFee; }
        public BudgetBalances setAdministrationFee(BigDecimal value) { this.administrationFee = value; return this; }
        public BigDecimal getFuel() { return fuel; }
        public BudgetBalances setFuel(BigDecimal value) { this.fuel = value; return this; }
        public BigDecimal getServicing() { return servicing; }
        public BudgetBalances setServicing(BigDecimal value) { this.servicing = value; return this; }
        public BigDecimal getTyres() { return tyres; }
        public BudgetBalances setTyres(BigDecimal value) { this.tyres = value; return this; }
        public BigDecimal getInsurance() { return insurance; }
        public BudgetBalances setInsurance(BigDecimal value) { this.insurance = value; return this; }
        public BigDecimal getCarWash() { return carWash; }
        public BudgetBalances setCarWash(BigDecimal value) { this.carWash = value; return this; }
        public BigDecimal getRegistration() { return registration; }
        public BudgetBalances setRegistration(BigDecimal value) { this.registration = value; return this; }
        public BigDecimal getRoadSideAssistance() { return roadSideAssistance; }
        public BudgetBalances setRoadSideAssistance(BigDecimal value) { this.roadSideAssistance = value; return this; }
        public BigDecimal getAnythingExtra() { return anythingExtra; }
        public BudgetBalances setAnythingExtra(BigDecimal value) { this.anythingExtra = value; return this; }
    }

    public static class ForecastedSalarySacrifice
    {
        public Date paymentDate = null;
        public BigDecimal amount = null;
        public SalarySacrifice matched = null;
        
        public Date getPaymentDate() { return paymentDate; }
        public ForecastedSalarySacrifice setPaymentDate(Date value) { this.paymentDate = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public ForecastedSalarySacrifice setAmount(BigDecimal value) { this.amount = value; return this; }
        public SalarySacrifice getMatched() { return matched; }
        public ForecastedSalarySacrifice setMatched(SalarySacrifice value) { this.matched = value; return this; }
    }

    public static class SalarySacrifice
    {
        public Date paymentDate = null;
        public SalarySacrificeBreakdown salarySacrificeBreakdown = null;
        public BigDecimal preTaxDeduction = null;
        public BigDecimal postTaxDeduction = null;
        public String contributionId = null;
        
        public Date getPaymentDate() { return paymentDate; }
        public SalarySacrifice setPaymentDate(Date value) { this.paymentDate = value; return this; }
        public SalarySacrificeBreakdown getSalarySacrificeBreakdown() { return salarySacrificeBreakdown; }
        public SalarySacrifice setSalarySacrificeBreakdown(SalarySacrificeBreakdown value) { this.salarySacrificeBreakdown = value; return this; }
        public BigDecimal getPreTaxDeduction() { return preTaxDeduction; }
        public SalarySacrifice setPreTaxDeduction(BigDecimal value) { this.preTaxDeduction = value; return this; }
        public BigDecimal getPostTaxDeduction() { return postTaxDeduction; }
        public SalarySacrifice setPostTaxDeduction(BigDecimal value) { this.postTaxDeduction = value; return this; }
        public String getContributionId() { return contributionId; }
        public SalarySacrifice setContributionId(String value) { this.contributionId = value; return this; }
    }

    public static class SalarySacrificeBreakdown
    {
        public BigDecimal leaseAmount = null;
        public BigDecimal administrationFee = null;
        public BigDecimal fuel = null;
        public BigDecimal servicing = null;
        public BigDecimal tyres = null;
        public BigDecimal insurance = null;
        public BigDecimal carWash = null;
        public BigDecimal registration = null;
        public BigDecimal roadSideAssistance = null;
        public BigDecimal anythingExtra = null;
        
        public BigDecimal getLeaseAmount() { return leaseAmount; }
        public SalarySacrificeBreakdown setLeaseAmount(BigDecimal value) { this.leaseAmount = value; return this; }
        public BigDecimal getAdministrationFee() { return administrationFee; }
        public SalarySacrificeBreakdown setAdministrationFee(BigDecimal value) { this.administrationFee = value; return this; }
        public BigDecimal getFuel() { return fuel; }
        public SalarySacrificeBreakdown setFuel(BigDecimal value) { this.fuel = value; return this; }
        public BigDecimal getServicing() { return servicing; }
        public SalarySacrificeBreakdown setServicing(BigDecimal value) { this.servicing = value; return this; }
        public BigDecimal getTyres() { return tyres; }
        public SalarySacrificeBreakdown setTyres(BigDecimal value) { this.tyres = value; return this; }
        public BigDecimal getInsurance() { return insurance; }
        public SalarySacrificeBreakdown setInsurance(BigDecimal value) { this.insurance = value; return this; }
        public BigDecimal getCarWash() { return carWash; }
        public SalarySacrificeBreakdown setCarWash(BigDecimal value) { this.carWash = value; return this; }
        public BigDecimal getRegistration() { return registration; }
        public SalarySacrificeBreakdown setRegistration(BigDecimal value) { this.registration = value; return this; }
        public BigDecimal getRoadSideAssistance() { return roadSideAssistance; }
        public SalarySacrificeBreakdown setRoadSideAssistance(BigDecimal value) { this.roadSideAssistance = value; return this; }
        public BigDecimal getAnythingExtra() { return anythingExtra; }
        public SalarySacrificeBreakdown setAnythingExtra(BigDecimal value) { this.anythingExtra = value; return this; }
    }

    public static class ForecastedOutgoingPayment
    {
        public Date scheduled = null;
        public BigDecimal amount = null;
        public String budgetCategory = null;
        public Expense matched = null;
        
        public Date getScheduled() { return scheduled; }
        public ForecastedOutgoingPayment setScheduled(Date value) { this.scheduled = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public ForecastedOutgoingPayment setAmount(BigDecimal value) { this.amount = value; return this; }
        public String getBudgetCategory() { return budgetCategory; }
        public ForecastedOutgoingPayment setBudgetCategory(String value) { this.budgetCategory = value; return this; }
        public Expense getMatched() { return matched; }
        public ForecastedOutgoingPayment setMatched(Expense value) { this.matched = value; return this; }
    }

    public static class Expense
    {
        public String budgetCategory = null;
        public BigDecimal amount = null;
        public BigDecimal gst = null;
        
        public String getBudgetCategory() { return budgetCategory; }
        public Expense setBudgetCategory(String value) { this.budgetCategory = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public Expense setAmount(BigDecimal value) { this.amount = value; return this; }
        public BigDecimal getGst() { return gst; }
        public Expense setGst(BigDecimal value) { this.gst = value; return this; }
    }

    public static class Adjustment implements IIdentifiableResource
    {
        public String budgetCategory = null;
        public BigDecimal amount = null;
        public BigDecimal gst = null;
        public String description = null;
        public Date received = null;
        public String id = null;
        
        public String getBudgetCategory() { return budgetCategory; }
        public Adjustment setBudgetCategory(String value) { this.budgetCategory = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public Adjustment setAmount(BigDecimal value) { this.amount = value; return this; }
        public BigDecimal getGst() { return gst; }
        public Adjustment setGst(BigDecimal value) { this.gst = value; return this; }
        public String getDescription() { return description; }
        public Adjustment setDescription(String value) { this.description = value; return this; }
        public Date getReceived() { return received; }
        public Adjustment setReceived(Date value) { this.received = value; return this; }
        public String getId() { return id; }
        public Adjustment setId(String value) { this.id = value; return this; }
    }

    public static class Transaction
    {
        public Date received = null;
        public String budgetCategory = null;
        public BigDecimal amount = null;
        public BigDecimal gst = null;
        public String description = null;
        public String type = null;
        
        public Date getReceived() { return received; }
        public Transaction setReceived(Date value) { this.received = value; return this; }
        public String getBudgetCategory() { return budgetCategory; }
        public Transaction setBudgetCategory(String value) { this.budgetCategory = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public Transaction setAmount(BigDecimal value) { this.amount = value; return this; }
        public BigDecimal getGst() { return gst; }
        public Transaction setGst(BigDecimal value) { this.gst = value; return this; }
        public String getDescription() { return description; }
        public Transaction setDescription(String value) { this.description = value; return this; }
        public String getType() { return type; }
        public Transaction setType(String value) { this.type = value; return this; }
    }

}

Java SetLeaseDetailsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /packages/{Id}/lease-details HTTP/1.1 
Host: staging-api.billiecart.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SetLeaseDetailsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.Api.Interfaces.ServiceOperations.SalaryPackages">
  <OrganisationId xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.Api.Interfaces.ServiceOperations">String</OrganisationId>
  <AmountFinanced>0</AmountFinanced>
  <FinanceProvider>String</FinanceProvider>
  <FringeBenefitBusinessUse>0</FringeBenefitBusinessUse>
  <FringeBenefitStartDate>0001-01-01T00:00:00</FringeBenefitStartDate>
  <FringeBenefitTaxMethod>String</FringeBenefitTaxMethod>
  <FringeBenefitTaxValue>0</FringeBenefitTaxValue>
  <GstOnPostTaxDeduction>0</GstOnPostTaxDeduction>
  <Id>String</Id>
  <InsuranceDueDate>0001-01-01T00:00:00</InsuranceDueDate>
  <LeaseProviderBankAccountBsbNumber>String</LeaseProviderBankAccountBsbNumber>
  <LeaseProviderBankAccountNumber>String</LeaseProviderBankAccountNumber>
  <LuxuryVehicleCharge>0</LuxuryVehicleCharge>
  <OnRoadCost>0</OnRoadCost>
  <PaymentAmount>0</PaymentAmount>
  <PostTaxDeduction>0</PostTaxDeduction>
  <PreTaxDeduction>0</PreTaxDeduction>
  <RegistrationDueDate>0001-01-01T00:00:00</RegistrationDueDate>
  <ResidualValue>0</ResidualValue>
  <StartDate>0001-01-01T00:00:00</StartDate>
  <Term>0</Term>
  <YearlyKmsTravelled>0</YearlyKmsTravelled>
</SetLeaseDetailsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SetLeaseDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.Api.Interfaces.ServiceOperations.SalaryPackages">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <SalaryPackage xmlns:d2p1="http://schemas.datacontract.org/2004/07/Application.Interfaces.Resources">
    <d2p1:Adjustments>
      <d2p1:Adjustment>
        <d2p1:Amount>0</d2p1:Amount>
        <d2p1:BudgetCategory>String</d2p1:BudgetCategory>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:Gst>0</d2p1:Gst>
        <d2p1:Id>String</d2p1:Id>
        <d2p1:Received>0001-01-01T00:00:00</d2p1:Received>
      </d2p1:Adjustment>
    </d2p1:Adjustments>
    <d2p1:BudgetBalances>
      <d2p1:AdministrationFee>0</d2p1:AdministrationFee>
      <d2p1:AnythingExtra>0</d2p1:AnythingExtra>
      <d2p1:CarWash>0</d2p1:CarWash>
      <d2p1:Fuel>0</d2p1:Fuel>
      <d2p1:Insurance>0</d2p1:Insurance>
      <d2p1:LeaseAmount>0</d2p1:LeaseAmount>
      <d2p1:Registration>0</d2p1:Registration>
      <d2p1:RoadSideAssistance>0</d2p1:RoadSideAssistance>
      <d2p1:Servicing>0</d2p1:Servicing>
      <d2p1:Tyres>0</d2p1:Tyres>
    </d2p1:BudgetBalances>
    <d2p1:BudgetBreakdown>
      <d2p1:AdministrationFee>0</d2p1:AdministrationFee>
      <d2p1:AnythingExtra>0</d2p1:AnythingExtra>
      <d2p1:CarWash>0</d2p1:CarWash>
      <d2p1:Fuel>0</d2p1:Fuel>
      <d2p1:Insurance>0</d2p1:Insurance>
      <d2p1:LeaseAmount>0</d2p1:LeaseAmount>
      <d2p1:Registration>0</d2p1:Registration>
      <d2p1:RoadSideAssistance>0</d2p1:RoadSideAssistance>
      <d2p1:Servicing>0</d2p1:Servicing>
      <d2p1:Tyres>0</d2p1:Tyres>
    </d2p1:BudgetBreakdown>
    <d2p1:CurrentBalance>0</d2p1:CurrentBalance>
    <d2p1:CustomerFirstName>String</d2p1:CustomerFirstName>
    <d2p1:CustomerId>String</d2p1:CustomerId>
    <d2p1:CustomerLastName>String</d2p1:CustomerLastName>
    <d2p1:Employment>
      <d2p1:EmployerId>String</d2p1:EmployerId>
      <d2p1:EmployerName>String</d2p1:EmployerName>
      <d2p1:FirstPayDate>0001-01-01T00:00:00</d2p1:FirstPayDate>
      <d2p1:PayrollCycle>String</d2p1:PayrollCycle>
    </d2p1:Employment>
    <d2p1:ForecastedOutgoingPayments>
      <d2p1:ForecastedOutgoingPayment>
        <d2p1:Amount>0</d2p1:Amount>
        <d2p1:BudgetCategory>String</d2p1:BudgetCategory>
        <d2p1:Matched>
          <d2p1:Amount>0</d2p1:Amount>
          <d2p1:BudgetCategory>String</d2p1:BudgetCategory>
          <d2p1:Gst>0</d2p1:Gst>
        </d2p1:Matched>
        <d2p1:Scheduled>0001-01-01T00:00:00</d2p1:Scheduled>
      </d2p1:ForecastedOutgoingPayment>
    </d2p1:ForecastedOutgoingPayments>
    <d2p1:ForecastedSalarySacrifices>
      <d2p1:ForecastedSalarySacrifice>
        <d2p1:Amount>0</d2p1:Amount>
        <d2p1:Matched>
          <d2p1:ContributionId>String</d2p1:ContributionId>
          <d2p1:PaymentDate>0001-01-01T00:00:00</d2p1:PaymentDate>
          <d2p1:PostTaxDeduction>0</d2p1:PostTaxDeduction>
          <d2p1:PreTaxDeduction>0</d2p1:PreTaxDeduction>
          <d2p1:SalarySacrificeBreakdown>
            <d2p1:AdministrationFee>0</d2p1:AdministrationFee>
            <d2p1:AnythingExtra>0</d2p1:AnythingExtra>
            <d2p1:CarWash>0</d2p1:CarWash>
            <d2p1:Fuel>0</d2p1:Fuel>
            <d2p1:Insurance>0</d2p1:Insurance>
            <d2p1:LeaseAmount>0</d2p1:LeaseAmount>
            <d2p1:Registration>0</d2p1:Registration>
            <d2p1:RoadSideAssistance>0</d2p1:RoadSideAssistance>
            <d2p1:Servicing>0</d2p1:Servicing>
            <d2p1:Tyres>0</d2p1:Tyres>
          </d2p1:SalarySacrificeBreakdown>
        </d2p1:Matched>
        <d2p1:PaymentDate>0001-01-01T00:00:00</d2p1:PaymentDate>
      </d2p1:ForecastedSalarySacrifice>
    </d2p1:ForecastedSalarySacrifices>
    <d2p1:Id>String</d2p1:Id>
    <d2p1:LeaseDetails>
      <d2p1:AmountFinanced>0</d2p1:AmountFinanced>
      <d2p1:FinanceProvider>String</d2p1:FinanceProvider>
      <d2p1:FringeBenefitTaxBusinessUse>0</d2p1:FringeBenefitTaxBusinessUse>
      <d2p1:FringeBenefitTaxMethod>String</d2p1:FringeBenefitTaxMethod>
      <d2p1:FringeBenefitTaxStartDate>0001-01-01T00:00:00</d2p1:FringeBenefitTaxStartDate>
      <d2p1:FringeBenefitTaxValue>0</d2p1:FringeBenefitTaxValue>
      <d2p1:GstOnPostTaxDeduction>0</d2p1:GstOnPostTaxDeduction>
      <d2p1:InsuranceDueDate>0001-01-01T00:00:00</d2p1:InsuranceDueDate>
      <d2p1:LeaseProviderBankAccount>
        <d2p1:AccountNumber>String</d2p1:AccountNumber>
        <d2p1:BsbNumber>String</d2p1:BsbNumber>
      </d2p1:LeaseProviderBankAccount>
      <d2p1:LuxuryVehicleCharge>0</d2p1:LuxuryVehicleCharge>
      <d2p1:OnRoadCost>0</d2p1:OnRoadCost>
      <d2p1:PaymentAmount>0</d2p1:PaymentAmount>
      <d2p1:PostTaxDeduction>0</d2p1:PostTaxDeduction>
      <d2p1:PreTaxDeduction>0</d2p1:PreTaxDeduction>
      <d2p1:RegistrationDueDate>0001-01-01T00:00:00</d2p1:RegistrationDueDate>
      <d2p1:ResidualValue>0</d2p1:ResidualValue>
      <d2p1:StartDate>0001-01-01T00:00:00</d2p1:StartDate>
      <d2p1:Term>0</d2p1:Term>
      <d2p1:YearlyKmsTravelled>0</d2p1:YearlyKmsTravelled>
    </d2p1:LeaseDetails>
    <d2p1:Notes>String</d2p1:Notes>
    <d2p1:Status>String</d2p1:Status>
    <d2p1:Transactions>
      <d2p1:Transaction>
        <d2p1:Amount>0</d2p1:Amount>
        <d2p1:BudgetCategory>String</d2p1:BudgetCategory>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:Gst>0</d2p1:Gst>
        <d2p1:Received>0001-01-01T00:00:00</d2p1:Received>
        <d2p1:Type>String</d2p1:Type>
      </d2p1:Transaction>
    </d2p1:Transactions>
    <d2p1:Vehicle>
      <d2p1:BodyShape>String</d2p1:BodyShape>
      <d2p1:Colour>String</d2p1:Colour>
      <d2p1:LicensePlate>String</d2p1:LicensePlate>
      <d2p1:Make>String</d2p1:Make>
      <d2p1:ManufactureYear>0</d2p1:ManufactureYear>
      <d2p1:Model>String</d2p1:Model>
      <d2p1:Transmission>String</d2p1:Transmission>
    </d2p1:Vehicle>
  </SalaryPackage>
</SetLeaseDetailsResponse>