All Verbs | /account/settings | ||
---|---|---|---|
GET POST | /AccountSettings |
export class AccountSettings implements IPost
{
public displayName: string;
public firstName: string;
public lastName: string;
public company: string;
public phoneNumber: string;
public showCard: boolean;
public brand: string;
public last4: string;
public cardNumber: string;
public cvc: string;
public expMonth: number;
public expYear: number;
public constructor(init?: Partial<AccountSettings>) { (Object as any).assign(this, init); }
}
TypeScript AccountSettings DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<AccountSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
<Brand>String</Brand>
<CardNumber>String</CardNumber>
<Company>String</Company>
<Cvc>String</Cvc>
<DisplayName>String</DisplayName>
<ExpMonth>0</ExpMonth>
<ExpYear>0</ExpYear>
<FirstName>String</FirstName>
<Last4>String</Last4>
<LastName>String</LastName>
<PhoneNumber>String</PhoneNumber>
<ShowCard>false</ShowCard>
</AccountSettings>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <AccountSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel"> <Brand>String</Brand> <CardNumber>String</CardNumber> <Company>String</Company> <Cvc>String</Cvc> <DisplayName>String</DisplayName> <ExpMonth>0</ExpMonth> <ExpYear>0</ExpYear> <FirstName>String</FirstName> <Last4>String</Last4> <LastName>String</LastName> <PhoneNumber>String</PhoneNumber> <ShowCard>false</ShowCard> </AccountSettings>