From 36afcdf0988e753ae2178fb8220b02f2c4d0b2b2 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 30 Jan 2022 01:41:08 +0100 Subject: refactor: Convert solution for file-scoped namespaces --- .../Models/Api/VippsAuthorizationTokenResponse.cs | 107 ++++++++++----------- 1 file changed, 53 insertions(+), 54 deletions(-) (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 index b870ddb..44ab083 100644 --- a/src/IOL.VippsEcommerce/Models/Api/VippsAuthorizationTokenResponse.cs +++ b/src/IOL.VippsEcommerce/Models/Api/VippsAuthorizationTokenResponse.cs @@ -1,58 +1,57 @@ using System.Text.Json.Serialization; -namespace IOL.VippsEcommerce.Models.Api +namespace IOL.VippsEcommerce.Models.Api; + +/// +/// AuthorizationTokenResponse +/// +public class VippsAuthorizationTokenResponse { - /// - /// 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; } - } + /// + /// 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