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/TTransactionInfoInitiate.cs | 103 ++++++++++----------- 1 file changed, 51 insertions(+), 52 deletions(-) (limited to 'src/IOL.VippsEcommerce/Models/Api/TTransactionInfoInitiate.cs') diff --git a/src/IOL.VippsEcommerce/Models/Api/TTransactionInfoInitiate.cs b/src/IOL.VippsEcommerce/Models/Api/TTransactionInfoInitiate.cs index 7ad989b..dc08630 100644 --- a/src/IOL.VippsEcommerce/Models/Api/TTransactionInfoInitiate.cs +++ b/src/IOL.VippsEcommerce/Models/Api/TTransactionInfoInitiate.cs @@ -1,57 +1,56 @@ using System; using System.Text.Json.Serialization; -namespace IOL.VippsEcommerce.Models.Api +namespace IOL.VippsEcommerce.Models.Api; + +public class TTransactionInfoInitiate { - public class TTransactionInfoInitiate - { - /// - /// Amount in øre. 32 bit Integer (2147483647). Must be non-zero. - /// - /// Amount in øre. 32 bit Integer (2147483647). Must be non-zero. - [JsonPropertyName("amount")] - public int? Amount { 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; } - - /// - /// ISO formatted date time string. - /// - /// ISO formatted date time string. - [JsonPropertyName("timeStamp")] - public string TimeStamp { get; set; } - - /// - /// Transaction text to be displayed in Vipps - /// - /// Transaction text to be displayed in Vipps - [JsonPropertyName("transactionText")] - public string TransactionText { get; set; } - - /// - /// Skips the landing page for whitelisted sale units. Requires a valid customerInfo.mobileNumber. - /// - /// Skips the landing page for whitelisted sale units. Requires a valid customerInfo.mobileNumber. - [JsonPropertyName("skipLandingPage")] - public bool? SkipLandingPage { get; set; } - - - /// - /// Gets or Sets AdditionalData - /// - [JsonPropertyName("additionalData")] - public TAdditionalTransactionData AdditionalData { get; set; } - - /// - /// Use the extended UX flow for express checkout which forces users to confirm their address and shipping choices - /// - /// Use the extended UX flow for express checkout which forces users to confirm their address and shipping choices - [JsonPropertyName("useExplicitCheckoutFlow")] - public bool? UseExplicitCheckoutFlow { get; set; } - } + /// + /// Amount in øre. 32 bit Integer (2147483647). Must be non-zero. + /// + /// Amount in øre. 32 bit Integer (2147483647). Must be non-zero. + [JsonPropertyName("amount")] + public int? Amount { 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; } + + /// + /// ISO formatted date time string. + /// + /// ISO formatted date time string. + [JsonPropertyName("timeStamp")] + public string TimeStamp { get; set; } + + /// + /// Transaction text to be displayed in Vipps + /// + /// Transaction text to be displayed in Vipps + [JsonPropertyName("transactionText")] + public string TransactionText { get; set; } + + /// + /// Skips the landing page for whitelisted sale units. Requires a valid customerInfo.mobileNumber. + /// + /// Skips the landing page for whitelisted sale units. Requires a valid customerInfo.mobileNumber. + [JsonPropertyName("skipLandingPage")] + public bool? SkipLandingPage { get; set; } + + + /// + /// Gets or Sets AdditionalData + /// + [JsonPropertyName("additionalData")] + public TAdditionalTransactionData AdditionalData { get; set; } + + /// + /// Use the extended UX flow for express checkout which forces users to confirm their address and shipping choices + /// + /// Use the extended UX flow for express checkout which forces users to confirm their address and shipping choices + [JsonPropertyName("useExplicitCheckoutFlow")] + public bool? UseExplicitCheckoutFlow { get; set; } } \ No newline at end of file -- cgit v1.3