ConsumerApi

<back to all web services

VippsLoginCallbackRequest

Consumer
The following routes are available for this service:
GET/vipps/login/callback
import Foundation
import ServiceStack

public class VippsUserInfo : Codable
{
    public var address:VippsAddress
    public var birthdate:Date
    public var email:String
    public var emailVerified:Bool?
    public var familyName:String
    public var givenName:String
    public var name:String
    public var phoneNumber:String
    public var sessionIdentifier:String
    public var subjectIdentifier:String

    required public init(){}
}

public class VippsAddress : Codable
{
    public var addressType:VippsAddressType
    public var country:String
    public var formatted:String
    public var postalCode:String
    public var region:String
    public var streetAddress:String

    required public init(){}
}

public enum VippsAddressType : String, Codable
{
    case Home
    case Work
    case Other
}


Swift VippsLoginCallbackRequest DTOs

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

HTTP + JSV

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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}