aboutsummaryrefslogtreecommitdiffstats
path: root/src/IOL.VippsEcommerce/Models/Api/VippsGetPaymentDetailsResponse.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-01-30 01:41:08 +0100
committerivarlovlie <git@ivarlovlie.no>2022-01-30 01:41:08 +0100
commit36afcdf0988e753ae2178fb8220b02f2c4d0b2b2 (patch)
treed27cb629cd53eeef6737ddc86915d51a9ac4b9c3 /src/IOL.VippsEcommerce/Models/Api/VippsGetPaymentDetailsResponse.cs
parentbbe0fb036a790b6a23a478d3f047add63b3b07a6 (diff)
downloaddotnet-vipps-ecommerce-36afcdf0988e753ae2178fb8220b02f2c4d0b2b2.tar.xz
dotnet-vipps-ecommerce-36afcdf0988e753ae2178fb8220b02f2c4d0b2b2.zip
refactor: Convert solution for file-scoped namespaces
Diffstat (limited to 'src/IOL.VippsEcommerce/Models/Api/VippsGetPaymentDetailsResponse.cs')
-rw-r--r--src/IOL.VippsEcommerce/Models/Api/VippsGetPaymentDetailsResponse.cs173
1 files changed, 86 insertions, 87 deletions
diff --git a/src/IOL.VippsEcommerce/Models/Api/VippsGetPaymentDetailsResponse.cs b/src/IOL.VippsEcommerce/Models/Api/VippsGetPaymentDetailsResponse.cs
index 844ac88..fe2849c 100644
--- a/src/IOL.VippsEcommerce/Models/Api/VippsGetPaymentDetailsResponse.cs
+++ b/src/IOL.VippsEcommerce/Models/Api/VippsGetPaymentDetailsResponse.cs
@@ -1,125 +1,124 @@
using System;
using System.Text.Json.Serialization;
-namespace IOL.VippsEcommerce.Models.Api
+namespace IOL.VippsEcommerce.Models.Api;
+
+public class VippsGetPaymentDetailsResponse
{
- public class VippsGetPaymentDetailsResponse
- {
- [JsonPropertyName("orderId")]
- public string OrderId { get; set; }
+ [JsonPropertyName("orderId")]
+ public string OrderId { get; set; }
- [JsonPropertyName("shippingDetails")]
- public ShippingDetails ShippingDetails { get; set; }
+ [JsonPropertyName("shippingDetails")]
+ public ShippingDetails ShippingDetails { get; set; }
- [JsonPropertyName("transactionLogHistory")]
- public TransactionLogHistory[] TransactionLogHistory { get; set; }
+ [JsonPropertyName("transactionLogHistory")]
+ public TransactionLogHistory[] TransactionLogHistory { get; set; }
- [JsonPropertyName("transactionSummary")]
- public TransactionSummary TransactionSummary { get; set; }
+ [JsonPropertyName("transactionSummary")]
+ public TransactionSummary TransactionSummary { get; set; }
- [JsonPropertyName("userDetails")]
- public UserDetails UserDetails { get; set; }
- }
+ [JsonPropertyName("userDetails")]
+ public UserDetails UserDetails { get; set; }
+}
- public class ShippingDetails
- {
- [JsonPropertyName("address")]
- public Address Address { get; set; }
+public class ShippingDetails
+{
+ [JsonPropertyName("address")]
+ public Address Address { get; set; }
- [JsonPropertyName("shippingCost")]
- public long ShippingCost { get; set; }
+ [JsonPropertyName("shippingCost")]
+ public long ShippingCost { get; set; }
- [JsonPropertyName("shippingMethod")]
- public string ShippingMethod { get; set; }
+ [JsonPropertyName("shippingMethod")]
+ public string ShippingMethod { get; set; }
- [JsonPropertyName("shippingMethodId")]
- public string ShippingMethodId { get; set; }
- }
+ [JsonPropertyName("shippingMethodId")]
+ public string ShippingMethodId { get; set; }
+}
- public class Address
- {
- [JsonPropertyName("addressLine1")]
- public string AddressLine1 { get; set; }
+public class Address
+{
+ [JsonPropertyName("addressLine1")]
+ public string AddressLine1 { get; set; }
- [JsonPropertyName("addressLine2")]
- public string AddressLine2 { get; set; }
+ [JsonPropertyName("addressLine2")]
+ public string AddressLine2 { get; set; }
- [JsonPropertyName("city")]
- public string City { get; set; }
+ [JsonPropertyName("city")]
+ public string City { get; set; }
- [JsonPropertyName("country")]
- public string Country { get; set; }
+ [JsonPropertyName("country")]
+ public string Country { get; set; }
- [JsonPropertyName("postCode")]
- public string PostCode { get; set; }
- }
+ [JsonPropertyName("postCode")]
+ public string PostCode { get; set; }
+}
- public class TransactionLogHistory
- {
- [JsonPropertyName("amount")]
- public long Amount { get; set; }
+public class TransactionLogHistory
+{
+ [JsonPropertyName("amount")]
+ public long Amount { get; set; }
- [JsonPropertyName("operation")]
- public string Operation { get; set; }
+ [JsonPropertyName("operation")]
+ public string Operation { get; set; }
- [JsonPropertyName("operationSuccess")]
- public bool OperationSuccess { get; set; }
+ [JsonPropertyName("operationSuccess")]
+ public bool OperationSuccess { get; set; }
- [JsonPropertyName("requestId")]
- public string RequestId { get; set; }
+ [JsonPropertyName("requestId")]
+ public string RequestId { get; set; }
- [JsonPropertyName("timeStamp")]
- public DateTime TimeStamp { get; set; }
+ [JsonPropertyName("timeStamp")]
+ public DateTime TimeStamp { get; set; }
- [JsonPropertyName("transactionId")]
- public string TransactionId { get; set; }
+ [JsonPropertyName("transactionId")]
+ public string TransactionId { get; set; }
- [JsonPropertyName("transactionText")]
- public string TransactionText { get; set; }
- }
+ [JsonPropertyName("transactionText")]
+ public string TransactionText { get; set; }
+}
- public class TransactionSummary
- {
- [JsonPropertyName("capturedAmount")]
- public long CapturedAmount { get; set; }
+public class TransactionSummary
+{
+ [JsonPropertyName("capturedAmount")]
+ public long CapturedAmount { get; set; }
- [JsonPropertyName("refundedAmount")]
- public long RefundedAmount { get; set; }
+ [JsonPropertyName("refundedAmount")]
+ public long RefundedAmount { get; set; }
- [JsonPropertyName("remainingAmountToCapture")]
- public long RemainingAmountToCapture { get; set; }
+ [JsonPropertyName("remainingAmountToCapture")]
+ public long RemainingAmountToCapture { get; set; }
- [JsonPropertyName("remainingAmountToRefund")]
- public long RemainingAmountToRefund { get; set; }
+ [JsonPropertyName("remainingAmountToRefund")]
+ public long RemainingAmountToRefund { get; set; }
- [JsonPropertyName("bankIdentificationNumber")]
- public long BankIdentificationNumber { get; set; }
- }
+ [JsonPropertyName("bankIdentificationNumber")]
+ public long BankIdentificationNumber { get; set; }
+}
- public class UserDetails
- {
- [JsonPropertyName("bankIdVerified")]
- public string BankIdVerified { get; set; }
+public class UserDetails
+{
+ [JsonPropertyName("bankIdVerified")]
+ public string BankIdVerified { get; set; }
- [JsonPropertyName("dateOfBirth")]
- public string DateOfBirth { get; set; }
+ [JsonPropertyName("dateOfBirth")]
+ public string DateOfBirth { get; set; }
- [JsonPropertyName("email")]
- public string Email { get; set; }
+ [JsonPropertyName("email")]
+ public string Email { get; set; }
- [JsonPropertyName("firstName")]
- public string FirstName { get; set; }
+ [JsonPropertyName("firstName")]
+ public string FirstName { get; set; }
- [JsonPropertyName("lastName")]
- public string LastName { get; set; }
+ [JsonPropertyName("lastName")]
+ public string LastName { get; set; }
- [JsonPropertyName("mobileNumber")]
- public long MobileNumber { get; set; }
+ [JsonPropertyName("mobileNumber")]
+ public long MobileNumber { get; set; }
- [JsonPropertyName("ssn")]
- public string Ssn { get; set; }
+ [JsonPropertyName("ssn")]
+ public string Ssn { get; set; }
- [JsonPropertyName("userId")]
- public string UserId { get; set; }
- }
+ [JsonPropertyName("userId")]
+ public string UserId { get; set; }
} \ No newline at end of file