From e6ca7a484d9cc213fb00c34ebf7cb55ace892c04 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 31 Mar 2021 18:00:22 +0200 Subject: Initial commit --- .../Models/Api/VippsAuthorizationTokenResponse.cs | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/IOL.VippsEcommerce/Models/Api/VippsAuthorizationTokenResponse.cs (limited to 'src/IOL.VippsEcommerce/Models/Api/VippsAuthorizationTokenResponse.cs') diff --git a/src/IOL.VippsEcommerce/Models/Api/VippsAuthorizationTokenResponse.cs b/src/IOL.VippsEcommerce/Models/Api/VippsAuthorizationTokenResponse.cs new file mode 100644 index 0000000..b870ddb --- /dev/null +++ b/src/IOL.VippsEcommerce/Models/Api/VippsAuthorizationTokenResponse.cs @@ -0,0 +1,58 @@ +using System.Text.Json.Serialization; + +namespace IOL.VippsEcommerce.Models.Api +{ + /// + /// AuthorizationTokenResponse + /// + public class VippsAuthorizationTokenResponse + { + /// + /// String containing the type for the Access Token. + /// + /// String containing the type for the Access Token. + [JsonPropertyName("token_type")] + public string TokenType { get; set; } + + /// + /// Token expiry time in seconds. + /// + /// Token expiry time in seconds. + [JsonPropertyName("expires_in")] + public string ExpiresIn { get; set; } + + /// + /// Extra time added to expiry time. Currently disabled. + /// + /// Extra time added to expiry time. Currently disabled. + [JsonPropertyName("ext_expires_in")] + public string ExtExpiresIn { get; set; } + + /// + /// Token expiry time in epoch time format. + /// + /// Token expiry time in epoch time format. + [JsonPropertyName("expires_on")] + public string ExpiresOn { get; set; } + + /// + /// Token creation time in epoch time format. + /// + /// Token creation time in epoch time format. + [JsonPropertyName("not_before")] + public string NotBefore { get; set; } + + /// + /// A common resource object. Not used in token validation + /// + /// A common resource object. Not used in token validation + [JsonPropertyName("resource")] + public string Resource { get; set; } + + /// + /// Gets or Sets AccessToken + /// + [JsonPropertyName("access_token")] + public string AccessToken { get; set; } + } +} \ No newline at end of file -- cgit v1.3