digitaluapi

<back to all web services

DebtsEdit

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
PUT/debts/{Id}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class DebtsEdit
    {
        @DataMember(Order=1)
        @Validate(Validator="NotNull")
        public Long Id = null;

        @DataMember(Order=2)
        @Validate(Validator="NotNull")
        public Integer TenantsId = null;

        @DataMember(Order=3)
        @Validate(Validator="NotNull")
        public Long CustomersId = null;

        @DataMember(Order=4)
        @Validate(Validator="NotNull")
        public String InvoiceNumber = null;

        @DataMember(Order=5)
        @Validate(Validator="NotNull")
        public Date DebtDate = null;

        @DataMember(Order=6)
        @Validate(Validator="NotNull")
        public Integer DebtAge = null;

        @DataMember(Order=7)
        @Validate(Validator="NotNull")
        public Double AmountOutstanding = null;

        @DataMember(Order=8)
        public Double CapitalOutstanding = null;

        @DataMember(Order=9)
        public Double InterestOutstanding = null;

        @DataMember(Order=10)
        public Double FeesOutstanding = null;

        @DataMember(Order=11)
        public Date LastPaidDate = null;

        @DataMember(Order=12)
        public Double LastPaidAmount = null;

        @DataMember(Order=13)
        @Validate(Validator="NotNull")
        public Boolean VulnerabilityFlag = null;

        @DataMember(Order=14)
        @Validate(Validator="NotNull")
        public Integer CurrenciesId = null;

        @DataMember(Order=15)
        @Validate(Validator="NotNull")
        public Long CurrencyRatesId = null;

        @DataMember(Order=16)
        @Validate(Validator="NotNull")
        public Long StatusCodesId = null;
        
        public Long getId() { return Id; }
        public DebtsEdit setId(Long value) { this.Id = value; return this; }
        public Integer getTenantsId() { return TenantsId; }
        public DebtsEdit setTenantsId(Integer value) { this.TenantsId = value; return this; }
        public Long getCustomersId() { return CustomersId; }
        public DebtsEdit setCustomersId(Long value) { this.CustomersId = value; return this; }
        public String getInvoiceNumber() { return InvoiceNumber; }
        public DebtsEdit setInvoiceNumber(String value) { this.InvoiceNumber = value; return this; }
        public Date getDebtDate() { return DebtDate; }
        public DebtsEdit setDebtDate(Date value) { this.DebtDate = value; return this; }
        public Integer getDebtAge() { return DebtAge; }
        public DebtsEdit setDebtAge(Integer value) { this.DebtAge = value; return this; }
        public Double getAmountOutstanding() { return AmountOutstanding; }
        public DebtsEdit setAmountOutstanding(Double value) { this.AmountOutstanding = value; return this; }
        public Double getCapitalOutstanding() { return CapitalOutstanding; }
        public DebtsEdit setCapitalOutstanding(Double value) { this.CapitalOutstanding = value; return this; }
        public Double getInterestOutstanding() { return InterestOutstanding; }
        public DebtsEdit setInterestOutstanding(Double value) { this.InterestOutstanding = value; return this; }
        public Double getFeesOutstanding() { return FeesOutstanding; }
        public DebtsEdit setFeesOutstanding(Double value) { this.FeesOutstanding = value; return this; }
        public Date getLastPaidDate() { return LastPaidDate; }
        public DebtsEdit setLastPaidDate(Date value) { this.LastPaidDate = value; return this; }
        public Double getLastPaidAmount() { return LastPaidAmount; }
        public DebtsEdit setLastPaidAmount(Double value) { this.LastPaidAmount = value; return this; }
        public Boolean isVulnerabilityFlag() { return VulnerabilityFlag; }
        public DebtsEdit setVulnerabilityFlag(Boolean value) { this.VulnerabilityFlag = value; return this; }
        public Integer getCurrenciesId() { return CurrenciesId; }
        public DebtsEdit setCurrenciesId(Integer value) { this.CurrenciesId = value; return this; }
        public Long getCurrencyRatesId() { return CurrencyRatesId; }
        public DebtsEdit setCurrencyRatesId(Long value) { this.CurrencyRatesId = value; return this; }
        public Long getStatusCodesId() { return StatusCodesId; }
        public DebtsEdit setStatusCodesId(Long value) { this.StatusCodesId = value; return this; }
    }

    public static class DebtsEditResponse
    {
        @DataMember(Order=1)
        public Long Id = null;

        @DataMember(Order=2)
        public Integer TenantsId = null;

        @DataMember(Order=3)
        public Long CustomersId = null;

        @DataMember(Order=4)
        public String InvoiceNumber = null;

        @DataMember(Order=5)
        public Date DebtDate = null;

        @DataMember(Order=6)
        public Integer DebtAge = null;

        @DataMember(Order=7)
        public Double AmountOutstanding = null;

        @DataMember(Order=8)
        public Double CapitalOutstanding = null;

        @DataMember(Order=9)
        public Double InterestOutstanding = null;

        @DataMember(Order=10)
        public Double FeesOutstanding = null;

        @DataMember(Order=11)
        public Date LastPaidDate = null;

        @DataMember(Order=12)
        public Double LastPaidAmount = null;

        @DataMember(Order=13)
        public Boolean VulnerabilityFlag = null;

        @DataMember(Order=14)
        public Integer CurrenciesId = null;

        @DataMember(Order=15)
        public Long CurrencyRatesId = null;

        @DataMember(Order=16)
        public Long StatusCodesId = null;

        @DataMember(Order=18)
        public ResponseStatus ResponseStatus = null;
        
        public Long getId() { return Id; }
        public DebtsEditResponse setId(Long value) { this.Id = value; return this; }
        public Integer getTenantsId() { return TenantsId; }
        public DebtsEditResponse setTenantsId(Integer value) { this.TenantsId = value; return this; }
        public Long getCustomersId() { return CustomersId; }
        public DebtsEditResponse setCustomersId(Long value) { this.CustomersId = value; return this; }
        public String getInvoiceNumber() { return InvoiceNumber; }
        public DebtsEditResponse setInvoiceNumber(String value) { this.InvoiceNumber = value; return this; }
        public Date getDebtDate() { return DebtDate; }
        public DebtsEditResponse setDebtDate(Date value) { this.DebtDate = value; return this; }
        public Integer getDebtAge() { return DebtAge; }
        public DebtsEditResponse setDebtAge(Integer value) { this.DebtAge = value; return this; }
        public Double getAmountOutstanding() { return AmountOutstanding; }
        public DebtsEditResponse setAmountOutstanding(Double value) { this.AmountOutstanding = value; return this; }
        public Double getCapitalOutstanding() { return CapitalOutstanding; }
        public DebtsEditResponse setCapitalOutstanding(Double value) { this.CapitalOutstanding = value; return this; }
        public Double getInterestOutstanding() { return InterestOutstanding; }
        public DebtsEditResponse setInterestOutstanding(Double value) { this.InterestOutstanding = value; return this; }
        public Double getFeesOutstanding() { return FeesOutstanding; }
        public DebtsEditResponse setFeesOutstanding(Double value) { this.FeesOutstanding = value; return this; }
        public Date getLastPaidDate() { return LastPaidDate; }
        public DebtsEditResponse setLastPaidDate(Date value) { this.LastPaidDate = value; return this; }
        public Double getLastPaidAmount() { return LastPaidAmount; }
        public DebtsEditResponse setLastPaidAmount(Double value) { this.LastPaidAmount = value; return this; }
        public Boolean isVulnerabilityFlag() { return VulnerabilityFlag; }
        public DebtsEditResponse setVulnerabilityFlag(Boolean value) { this.VulnerabilityFlag = value; return this; }
        public Integer getCurrenciesId() { return CurrenciesId; }
        public DebtsEditResponse setCurrenciesId(Integer value) { this.CurrenciesId = value; return this; }
        public Long getCurrencyRatesId() { return CurrencyRatesId; }
        public DebtsEditResponse setCurrencyRatesId(Long value) { this.CurrencyRatesId = value; return this; }
        public Long getStatusCodesId() { return StatusCodesId; }
        public DebtsEditResponse setStatusCodesId(Long value) { this.StatusCodesId = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DebtsEditResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java DebtsEdit 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 /debts/{Id} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<DebtsEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
  <Id>0</Id>
  <TenantsId>0</TenantsId>
  <CustomersId>0</CustomersId>
  <InvoiceNumber>String</InvoiceNumber>
  <DebtDate>0001-01-01T00:00:00</DebtDate>
  <DebtAge>0</DebtAge>
  <AmountOutstanding>0</AmountOutstanding>
  <CapitalOutstanding>0</CapitalOutstanding>
  <InterestOutstanding>0</InterestOutstanding>
  <FeesOutstanding>0</FeesOutstanding>
  <LastPaidDate>0001-01-01T00:00:00</LastPaidDate>
  <LastPaidAmount>0</LastPaidAmount>
  <VulnerabilityFlag>false</VulnerabilityFlag>
  <CurrenciesId>0</CurrenciesId>
  <CurrencyRatesId>0</CurrencyRatesId>
  <StatusCodesId>0</StatusCodesId>
</DebtsEdit>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DebtsEditResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
  <AmountOutstanding>0</AmountOutstanding>
  <CapitalOutstanding>0</CapitalOutstanding>
  <CurrenciesId>0</CurrenciesId>
  <CurrencyRatesId>0</CurrencyRatesId>
  <CustomersId>0</CustomersId>
  <DebtAge>0</DebtAge>
  <DebtDate>0001-01-01T00:00:00</DebtDate>
  <FeesOutstanding>0</FeesOutstanding>
  <Id>0</Id>
  <InterestOutstanding>0</InterestOutstanding>
  <InvoiceNumber>String</InvoiceNumber>
  <LastPaidAmount>0</LastPaidAmount>
  <LastPaidDate>0001-01-01T00:00:00</LastPaidDate>
  <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>
  <StatusCodesId>0</StatusCodesId>
  <TenantsId>0</TenantsId>
  <VulnerabilityFlag>false</VulnerabilityFlag>
</DebtsEditResponse>