tvpl.api

<back to all web services

UpdateProviderRequest

Requires Authentication
Required role:super-admin
The following routes are available for this service:
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 .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 /provider/{Id} HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateProviderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
  <AdditionalInfo>String</AdditionalInfo>
  <Address>String</Address>
  <Email>String</Email>
  <Id>0</Id>
  <Name>String</Name>
  <ProviderType>0</ProviderType>
  <TaxCode>String</TaxCode>
</UpdateProviderRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Provider xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.data.Models">
  <AdditionalInfo>String</AdditionalInfo>
  <Address>String</Address>
  <CreatedAt>0001-01-01T00:00:00</CreatedAt>
  <CreatedBy>0</CreatedBy>
  <DeletedAt>0001-01-01T00:00:00</DeletedAt>
  <DeletedBy>0</DeletedBy>
  <Email>String</Email>
  <Id>0</Id>
  <IsDeleted>false</IsDeleted>
  <Name>String</Name>
  <ProviderType>0</ProviderType>
  <TaxCode>String</TaxCode>
</Provider>