| POST | /api/customerMaster/credit | Add new customer master |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
/**
* Customer Master
*/
@Api(Description="Customer Master")
@ApiResponse(Description="Add customer master request received", IsDefaultResponse=true, StatusCode=200)
// @ApiResponse(Description="Customer not found", StatusCode=404)
// @ApiResponse(Description="Customer master request not accepted, Confirm Sender GLN", ResponseType=UnauthorizedAccessException.class, StatusCode=403)
public static class UpdateCustomerCredit
{
public String ownerGln = null;
public String customerGln = null;
public String currency = null;
public BigDecimal creditLimit = null;
public BigDecimal creditBalance = null;
public BigDecimal creditAvailable = null;
public Date dateTime = null;
public String getOwnerGln() { return ownerGln; }
public UpdateCustomerCredit setOwnerGln(String value) { this.ownerGln = value; return this; }
public String getCustomerGln() { return customerGln; }
public UpdateCustomerCredit setCustomerGln(String value) { this.customerGln = value; return this; }
public String getCurrency() { return currency; }
public UpdateCustomerCredit setCurrency(String value) { this.currency = value; return this; }
public BigDecimal getCreditLimit() { return creditLimit; }
public UpdateCustomerCredit setCreditLimit(BigDecimal value) { this.creditLimit = value; return this; }
public BigDecimal getCreditBalance() { return creditBalance; }
public UpdateCustomerCredit setCreditBalance(BigDecimal value) { this.creditBalance = value; return this; }
public BigDecimal getCreditAvailable() { return creditAvailable; }
public UpdateCustomerCredit setCreditAvailable(BigDecimal value) { this.creditAvailable = value; return this; }
public Date getDateTime() { return dateTime; }
public UpdateCustomerCredit setDateTime(Date value) { this.dateTime = value; return this; }
}
}
Java UpdateCustomerCredit DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/customerMaster/credit HTTP/1.1
Host: stf-api-uat.data-xchange.co.za
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"ownerGln":"String","customerGln":"String","currency":"String","creditLimit":0,"creditBalance":0,"creditAvailable":0}