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/VippsInitiatePaymentResponse.cs | 31 +++++++++++----------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'src/IOL.VippsEcommerce/Models/Api/VippsInitiatePaymentResponse.cs') diff --git a/src/IOL.VippsEcommerce/Models/Api/VippsInitiatePaymentResponse.cs b/src/IOL.VippsEcommerce/Models/Api/VippsInitiatePaymentResponse.cs index 471133a..93f7f3f 100644 --- a/src/IOL.VippsEcommerce/Models/Api/VippsInitiatePaymentResponse.cs +++ b/src/IOL.VippsEcommerce/Models/Api/VippsInitiatePaymentResponse.cs @@ -1,21 +1,20 @@ using System.Text.Json.Serialization; -namespace IOL.VippsEcommerce.Models.Api +namespace IOL.VippsEcommerce.Models.Api; + +public class VippsInitiatePaymentResponse { - public class VippsInitiatePaymentResponse - { - /// - /// Id which uniquely identifies a payment. Maximum length is 50 alphanumeric characters: a-z, A-Z, 0-9 and '-'. - /// - /// Id which uniquely identifies a payment. Maximum length is 50 alphanumeric characters: a-z, A-Z, 0-9 and '-'. - [JsonPropertyName("orderId")] - public string OrderId { get; set; } + /// + /// Id which uniquely identifies a payment. Maximum length is 50 alphanumeric characters: a-z, A-Z, 0-9 and '-'. + /// + /// Id which uniquely identifies a payment. Maximum length is 50 alphanumeric characters: a-z, A-Z, 0-9 and '-'. + [JsonPropertyName("orderId")] + public string OrderId { get; set; } - /// - /// URL to redirect the user to Vipps landing page or a deeplink URL to open Vipps app, if `isApp` was set as true. The landing page will also redirect a user to the app if the user is using a mobile browser. This link will timeout after 5 minutes. This example is a shortened deeplink URL. The URL received fromn Vipps should not be changed, and the format may change without notice. - /// - /// URL to redirect the user to Vipps landing page or a deeplink URL to open Vipps app, if `isApp` was set as true. The landing page will also redirect a user to the app if the user is using a mobile browser. This link will timeout after 5 minutes. This example is a shortened deeplink URL. The URL received fromn Vipps should not be changed, and the format may change without notice. - [JsonPropertyName("url")] - public string Url { get; set; } - } + /// + /// URL to redirect the user to Vipps landing page or a deeplink URL to open Vipps app, if `isApp` was set as true. The landing page will also redirect a user to the app if the user is using a mobile browser. This link will timeout after 5 minutes. This example is a shortened deeplink URL. The URL received fromn Vipps should not be changed, and the format may change without notice. + /// + /// URL to redirect the user to Vipps landing page or a deeplink URL to open Vipps app, if `isApp` was set as true. The landing page will also redirect a user to the app if the user is using a mobile browser. This link will timeout after 5 minutes. This example is a shortened deeplink URL. The URL received fromn Vipps should not be changed, and the format may change without notice. + [JsonPropertyName("url")] + public string Url { get; set; } } \ No newline at end of file -- cgit v1.3