GET | /vipps/login/callback |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class ConsumerApi
{
public static class VippsUserInfo
{
public VippsAddress address = null;
public Date birthdate = null;
public String email = null;
public Boolean emailVerified = null;
public String familyName = null;
public String givenName = null;
public String name = null;
public String phoneNumber = null;
public String sessionIdentifier = null;
public String subjectIdentifier = null;
public VippsAddress getAddress() { return address; }
public VippsUserInfo setAddress(VippsAddress value) { this.address = value; return this; }
public Date getBirthdate() { return birthdate; }
public VippsUserInfo setBirthdate(Date value) { this.birthdate = value; return this; }
public String getEmail() { return email; }
public VippsUserInfo setEmail(String value) { this.email = value; return this; }
public Boolean isEmailVerified() { return emailVerified; }
public VippsUserInfo setEmailVerified(Boolean value) { this.emailVerified = value; return this; }
public String getFamilyName() { return familyName; }
public VippsUserInfo setFamilyName(String value) { this.familyName = value; return this; }
public String getGivenName() { return givenName; }
public VippsUserInfo setGivenName(String value) { this.givenName = value; return this; }
public String getName() { return name; }
public VippsUserInfo setName(String value) { this.name = value; return this; }
public String getPhoneNumber() { return phoneNumber; }
public VippsUserInfo setPhoneNumber(String value) { this.phoneNumber = value; return this; }
public String getSessionIdentifier() { return sessionIdentifier; }
public VippsUserInfo setSessionIdentifier(String value) { this.sessionIdentifier = value; return this; }
public String getSubjectIdentifier() { return subjectIdentifier; }
public VippsUserInfo setSubjectIdentifier(String value) { this.subjectIdentifier = value; return this; }
}
public static class VippsAddress
{
public VippsAddressType addressType = null;
public String country = null;
public String formatted = null;
public String postalCode = null;
public String region = null;
public String streetAddress = null;
public VippsAddressType getAddressType() { return addressType; }
public VippsAddress setAddressType(VippsAddressType value) { this.addressType = value; return this; }
public String getCountry() { return country; }
public VippsAddress setCountry(String value) { this.country = value; return this; }
public String getFormatted() { return formatted; }
public VippsAddress setFormatted(String value) { this.formatted = value; return this; }
public String getPostalCode() { return postalCode; }
public VippsAddress setPostalCode(String value) { this.postalCode = value; return this; }
public String getRegion() { return region; }
public VippsAddress setRegion(String value) { this.region = value; return this; }
public String getStreetAddress() { return streetAddress; }
public VippsAddress setStreetAddress(String value) { this.streetAddress = value; return this; }
}
public static enum VippsAddressType
{
Home,
Work,
Other;
}
}
Java VippsLoginCallbackRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /vipps/login/callback HTTP/1.1 Host: unstable-consumer-api.brovs.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"vippsUserInfo":{"address":{"addressType":"Home","country":"String","formatted":"String","postalCode":"String","region":"String","streetAddress":"String"},"birthdate":"0001-01-01T00:00:00.0000000+00:00","email":"String","emailVerified":false,"familyName":"String","givenName":"String","name":"String","phoneNumber":"String","sessionIdentifier":"String","subjectIdentifier":"String"},"nextRelativeUrl":"String"}