Skip to content

Commit

Permalink
Update Payment Response with last properties (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko authored May 30, 2024
1 parent 28d4c89 commit c77f749
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/CheckoutSdk/Payments/PanProcessedType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Runtime.Serialization;

namespace Checkout.Payments
{
public enum PanProcessedType
{
[EnumMember(Value = "fpan")] FPAN,
[EnumMember(Value = "dpan")] DPAN,
}
}
7 changes: 7 additions & 0 deletions src/CheckoutSdk/Payments/PaymentProcessing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ public class PaymentProcessing
public string PartnerSessionId { get; set; }

public string PartnerClientToken { get; set; }

public string PartnerPaymentId { get; set; }

public PanProcessedType? PanTypeProcessed { get; set; }

public string ContinuationPayload { get; set; }

Expand All @@ -40,6 +43,10 @@ public class PaymentProcessing
public string PartnerAuthorizationResponseCode { get; set; }

public long? SurchargeAmount { get; set; }

public bool? CkoNetworkTokenAvailable { get; set; }

public string MerchantCategoryCode { get; set; }

}
}
2 changes: 1 addition & 1 deletion src/CheckoutSdk/Payments/Response/GetPaymentResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class GetPaymentResponse : Resource

public PaymentRetryResponse Retry { get; set; }

public string PanTypeProcessed { get; set; }
public PanProcessedType? PanTypeProcessed { get; set; }

public bool? CkoNetworkTokenAvailable { get; set; }

Expand Down

0 comments on commit c77f749

Please sign in to comment.