aboutsummaryrefslogtreecommitdiffstats
path: root/src/IOL.VippsEcommerce/Models/Api/VippsPaymentInitiationCallbackResponse.cs
diff options
context:
space:
mode:
authorivar <i@oiee.no>2024-04-28 22:32:17 +0200
committerivar <i@oiee.no>2024-04-28 22:32:17 +0200
commit2cdb9549dda574fc91f44aecefe6c4620257f050 (patch)
tree47db78563681e51212bdba9e63ba55d2d61d54f4 /src/IOL.VippsEcommerce/Models/Api/VippsPaymentInitiationCallbackResponse.cs
parentd2ce924bb1575a6e56ee14b3b7a8a26006003398 (diff)
downloaddotnet-vipps-ecommerce-2cdb9549dda574fc91f44aecefe6c4620257f050.tar.xz
dotnet-vipps-ecommerce-2cdb9549dda574fc91f44aecefe6c4620257f050.zip
Remove unsupported fields
Diffstat (limited to 'src/IOL.VippsEcommerce/Models/Api/VippsPaymentInitiationCallbackResponse.cs')
-rw-r--r--src/IOL.VippsEcommerce/Models/Api/VippsPaymentInitiationCallbackResponse.cs154
1 files changed, 72 insertions, 82 deletions
diff --git a/src/IOL.VippsEcommerce/Models/Api/VippsPaymentInitiationCallbackResponse.cs b/src/IOL.VippsEcommerce/Models/Api/VippsPaymentInitiationCallbackResponse.cs
index 749dd66..8c612b8 100644
--- a/src/IOL.VippsEcommerce/Models/Api/VippsPaymentInitiationCallbackResponse.cs
+++ b/src/IOL.VippsEcommerce/Models/Api/VippsPaymentInitiationCallbackResponse.cs
@@ -5,114 +5,104 @@ namespace IOL.VippsEcommerce.Models.Api;
public class VippsPaymentInitiationCallbackResponse
{
- [JsonPropertyName("merchantSerialNumber")]
- public string MerchantSerialNumber { get; set; }
+ [JsonPropertyName("merchantSerialNumber")]
+ public string MerchantSerialNumber { get; set; }
- [JsonPropertyName("orderId")]
- public string OrderId { get; set; }
+ [JsonPropertyName("orderId")]
+ public string OrderId { get; set; }
- // [JsonPropertyName("shippingDetails")]
- // public TShippingDetails? ShippingDetails { get; set; }
+ [JsonPropertyName("transactionInfo")]
+ public TTransactionInfo TransactionInfo { get; set; }
- [JsonPropertyName("transactionInfo")]
- public TTransactionInfo TransactionInfo { get; set; }
+ public class TErrorInfo
+ {
+ [JsonPropertyName("errorGroup")]
+ public string ErrorGroup { get; set; }
- // [JsonPropertyName("userDetails")]
- // public UserDetails? UserDetails { get; set; }
- //
- // [JsonPropertyName("errorInfo")]
- // public TErrorInfo? ErrorInfo { get; set; }
+ [JsonPropertyName("errorCode")]
+ public string ErrorCode { get; set; }
+ [JsonPropertyName("errorMessage")]
+ public string ErrorMessage { get; set; }
- public class TErrorInfo
- {
- [JsonPropertyName("errorGroup")]
- public string ErrorGroup { get; set; }
+ [JsonPropertyName("contextId")]
+ public Guid ContextId { get; set; }
+ }
- [JsonPropertyName("errorCode")]
- public string ErrorCode { get; set; }
+ public class TShippingDetails
+ {
+ [JsonPropertyName("address")]
+ public TAddress Address { get; set; }
- [JsonPropertyName("errorMessage")]
- public string ErrorMessage { get; set; }
+ [JsonPropertyName("shippingCost")]
+ public int ShippingCost { get; set; }
- [JsonPropertyName("contextId")]
- public Guid ContextId { get; set; }
- }
+ [JsonPropertyName("shippingMethod")]
+ public string ShippingMethod { get; set; }
- public class TShippingDetails
- {
- [JsonPropertyName("address")]
- public TAddress Address { get; set; }
+ [JsonPropertyName("shippingMethodId")]
+ public string ShippingMethodId { get; set; }
+ }
- [JsonPropertyName("shippingCost")]
- public int ShippingCost { get; set; }
+ public class TAddress
+ {
+ [JsonPropertyName("addressLine1")]
+ public string AddressLine1 { get; set; }
- [JsonPropertyName("shippingMethod")]
- public string ShippingMethod { get; set; }
+ [JsonPropertyName("addressLine2")]
+ public string AddressLine2 { get; set; }
- [JsonPropertyName("shippingMethodId")]
- public string ShippingMethodId { get; set; }
- }
+ [JsonPropertyName("city")]
+ public string City { get; set; }
- public class TAddress
- {
- [JsonPropertyName("addressLine1")]
- public string AddressLine1 { get; set; }
+ [JsonPropertyName("country")]
+ public string Country { get; set; }
- [JsonPropertyName("addressLine2")]
- public string AddressLine2 { get; set; }
+ [JsonPropertyName("zipCode")]
+ public string ZipCode { get; set; }
+ }
- [JsonPropertyName("city")]
- public string City { get; set; }
+ public class TTransactionInfo
+ {
+ [JsonPropertyName("amount")]
+ public int Amount { get; set; }
- [JsonPropertyName("country")]
- public string Country { get; set; }
+ [JsonPropertyName("status")]
+ public string Status { get; set; }
- [JsonPropertyName("zipCode")]
- public string ZipCode { get; set; }
- }
+ public ETransactionStatus StatusEnum() => Enum.Parse<ETransactionStatus>(Status);
- public class TTransactionInfo
- {
- [JsonPropertyName("amount")]
- public int Amount { get; set; }
+ [JsonPropertyName("timeStamp")]
+ public DateTime TimeStamp { get; set; }
- [JsonPropertyName("status")]
- public string Status { get; set; }
+ [JsonPropertyName("transactionId")]
+ public string TransactionId { get; set; }
+ }
- public ETransactionStatus StatusEnum() => Enum.Parse<ETransactionStatus>(Status);
+ public class TUserDetails
+ {
+ [JsonPropertyName("bankIdVerified")]
+ public string BankIdVerified { get; set; }
- [JsonPropertyName("timeStamp")]
- public DateTime TimeStamp { get; set; }
+ [JsonPropertyName("dateOfBirth")]
+ public string DateOfBirth { get; set; }
- [JsonPropertyName("transactionId")]
- public string TransactionId { get; set; }
- }
+ [JsonPropertyName("email")]
+ public string Email { get; set; }
- public class TUserDetails
- {
- [JsonPropertyName("bankIdVerified")]
- public string BankIdVerified { get; set; }
+ [JsonPropertyName("firstName")]
+ public string FirstName { get; set; }
- [JsonPropertyName("dateOfBirth")]
- public string DateOfBirth { get; set; }
+ [JsonPropertyName("lastName")]
+ public string LastName { get; set; }
- [JsonPropertyName("email")]
- public string Email { get; set; }
+ [JsonPropertyName("mobileNumber")]
+ public string MobileNumber { get; set; }
- [JsonPropertyName("firstName")]
- public string FirstName { get; set; }
+ [JsonPropertyName("ssn")]
+ public string Ssn { get; set; }
- [JsonPropertyName("lastName")]
- public string LastName { get; set; }
-
- [JsonPropertyName("mobileNumber")]
- public string MobileNumber { 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