| Required role: | super-admin |
| PUT | /provider/{Id} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class UpdateProviderRequest
{
public Integer id = null;
public String name = null;
public String taxCode = null;
public String address = null;
public String email = null;
public String additionalInfo = null;
public Integer providerType = null;
public Integer getId() { return id; }
public UpdateProviderRequest setId(Integer value) { this.id = value; return this; }
public String getName() { return name; }
public UpdateProviderRequest setName(String value) { this.name = value; return this; }
public String getTaxCode() { return taxCode; }
public UpdateProviderRequest setTaxCode(String value) { this.taxCode = value; return this; }
public String getAddress() { return address; }
public UpdateProviderRequest setAddress(String value) { this.address = value; return this; }
public String getEmail() { return email; }
public UpdateProviderRequest setEmail(String value) { this.email = value; return this; }
public String getAdditionalInfo() { return additionalInfo; }
public UpdateProviderRequest setAdditionalInfo(String value) { this.additionalInfo = value; return this; }
public Integer getProviderType() { return providerType; }
public UpdateProviderRequest setProviderType(Integer value) { this.providerType = value; return this; }
}
public static class Provider
{
public Integer id = null;
public String name = null;
public String taxCode = null;
public String address = null;
public String email = null;
public String additionalInfo = null;
public Integer providerType = null;
public Date createdAt = null;
public Integer createdBy = null;
public Integer getId() { return id; }
public Provider setId(Integer value) { this.id = value; return this; }
public String getName() { return name; }
public Provider setName(String value) { this.name = value; return this; }
public String getTaxCode() { return taxCode; }
public Provider setTaxCode(String value) { this.taxCode = value; return this; }
public String getAddress() { return address; }
public Provider setAddress(String value) { this.address = value; return this; }
public String getEmail() { return email; }
public Provider setEmail(String value) { this.email = value; return this; }
public String getAdditionalInfo() { return additionalInfo; }
public Provider setAdditionalInfo(String value) { this.additionalInfo = value; return this; }
public Integer getProviderType() { return providerType; }
public Provider setProviderType(Integer value) { this.providerType = value; return this; }
public Date getCreatedAt() { return createdAt; }
public Provider setCreatedAt(Date value) { this.createdAt = value; return this; }
public Integer getCreatedBy() { return createdBy; }
public Provider setCreatedBy(Integer value) { this.createdBy = value; return this; }
}
}
Java UpdateProviderRequest 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.
PUT /provider/{Id} HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":0,"name":"String","taxCode":"String","address":"String","email":"String","additionalInfo":"String","providerType":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id":0,"name":"String","taxCode":"String","address":"String","email":"String","additionalInfo":"String","providerType":0,"createdAt":"0001-01-01T00:00:00.0000000+07:06","createdBy":0}