ServiceStack Home (Live)

<back to all web services

AccountSettings

Requires Authentication
The following routes are available for this service:
All Verbs/account/settings
GET POST/AccountSettings
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class AccountSettings implements IPost
    {
        public String displayName = null;
        public String firstName = null;
        public String lastName = null;
        public String company = null;
        public String phoneNumber = null;
        public Boolean showCard = null;
        public String brand = null;
        public String last4 = null;
        public String cardNumber = null;
        public String cvc = null;
        public Integer expMonth = null;
        public Integer expYear = null;
        
        public String getDisplayName() { return displayName; }
        public AccountSettings setDisplayName(String value) { this.displayName = value; return this; }
        public String getFirstName() { return firstName; }
        public AccountSettings setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public AccountSettings setLastName(String value) { this.lastName = value; return this; }
        public String getCompany() { return company; }
        public AccountSettings setCompany(String value) { this.company = value; return this; }
        public String getPhoneNumber() { return phoneNumber; }
        public AccountSettings setPhoneNumber(String value) { this.phoneNumber = value; return this; }
        public Boolean isShowCard() { return showCard; }
        public AccountSettings setShowCard(Boolean value) { this.showCard = value; return this; }
        public String getBrand() { return brand; }
        public AccountSettings setBrand(String value) { this.brand = value; return this; }
        public String getLast4() { return last4; }
        public AccountSettings setLast4(String value) { this.last4 = value; return this; }
        public String getCardNumber() { return cardNumber; }
        public AccountSettings setCardNumber(String value) { this.cardNumber = value; return this; }
        public String getCvc() { return cvc; }
        public AccountSettings setCvc(String value) { this.cvc = value; return this; }
        public Integer getExpMonth() { return expMonth; }
        public AccountSettings setExpMonth(Integer value) { this.expMonth = value; return this; }
        public Integer getExpYear() { return expYear; }
        public AccountSettings setExpYear(Integer value) { this.expYear = value; return this; }
    }

}

Java AccountSettings DTOs

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

HTTP + OTHER

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

POST /account/settings HTTP/1.1 
Host: account.servicestack.net 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"displayName":"String","firstName":"String","lastName":"String","company":"String","phoneNumber":"String","showCard":false,"brand":"String","last4":"String","cardNumber":"String","cvc":"String","expMonth":0,"expYear":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"displayName":"String","firstName":"String","lastName":"String","company":"String","phoneNumber":"String","showCard":false,"brand":"String","last4":"String","cardNumber":"String","cvc":"String","expMonth":0,"expYear":0}