| GET | /vipps/login/callback |
|---|
"use strict";
/** @typedef {'Home'|'Work'|'Other'} */
export var VippsAddressType;
(function (VippsAddressType) {
VippsAddressType["Home"] = "Home"
VippsAddressType["Work"] = "Work"
VippsAddressType["Other"] = "Other"
})(VippsAddressType || (VippsAddressType = {}));
export class VippsAddress {
/** @param {{addressType?:VippsAddressType,country?:string,formatted?:string,postalCode?:string,region?:string,streetAddress?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?VippsAddressType} */
addressType;
/** @type {string} */
country;
/** @type {string} */
formatted;
/** @type {string} */
postalCode;
/** @type {string} */
region;
/** @type {string} */
streetAddress;
}
export class VippsUserInfo {
/** @param {{address?:VippsAddress,birthdate?:string,email?:string,emailVerified?:boolean,familyName?:string,givenName?:string,name?:string,phoneNumber?:string,sessionIdentifier?:string,subjectIdentifier?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {VippsAddress} */
address;
/** @type {?string} */
birthdate;
/** @type {?string} */
email;
/** @type {?boolean} */
emailVerified;
/** @type {string} */
familyName;
/** @type {string} */
givenName;
/** @type {string} */
name;
/** @type {string} */
phoneNumber;
/** @type {string} */
sessionIdentifier;
/** @type {string} */
subjectIdentifier;
}
JavaScript VippsLoginCallbackRequest 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.
GET /vipps/login/callback HTTP/1.1 Host: consumer-api.brovs.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<VippsLoginCallbackResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsumerApi.Dto">
<NextRelativeUrl>String</NextRelativeUrl>
<VippsUserInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Entities.Common">
<d2p1:Address>
<d2p1:AddressType>Home</d2p1:AddressType>
<d2p1:Country>String</d2p1:Country>
<d2p1:Formatted>String</d2p1:Formatted>
<d2p1:PostalCode>String</d2p1:PostalCode>
<d2p1:Region>String</d2p1:Region>
<d2p1:StreetAddress>String</d2p1:StreetAddress>
</d2p1:Address>
<d2p1:Birthdate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>0001-01-01T00:00:00Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</d2p1:Birthdate>
<d2p1:Email>String</d2p1:Email>
<d2p1:EmailVerified>false</d2p1:EmailVerified>
<d2p1:FamilyName>String</d2p1:FamilyName>
<d2p1:GivenName>String</d2p1:GivenName>
<d2p1:Name>String</d2p1:Name>
<d2p1:PhoneNumber>String</d2p1:PhoneNumber>
<d2p1:SessionIdentifier>String</d2p1:SessionIdentifier>
<d2p1:SubjectIdentifier>String</d2p1:SubjectIdentifier>
</VippsUserInfo>
</VippsLoginCallbackResponse>