diff --git a/Craftgate/Request/CreatePaymentRequest.cs b/Craftgate/Request/CreatePaymentRequest.cs index 7bd3f1d..7f747d4 100644 --- a/Craftgate/Request/CreatePaymentRequest.cs +++ b/Craftgate/Request/CreatePaymentRequest.cs @@ -21,7 +21,7 @@ public class CreatePaymentRequest public string BankOrderId { get; set; } public string ClientIp { get; set; } public Card Card { get; set; } - public FraudParams FraudParams { get; set; } + public FraudCheckParameters FraudParams { get; set; } public IList Items { get; set; } public Dictionary AdditionalParams { get; set; } public bool Retry { get; set; } = true; diff --git a/Craftgate/Request/Dto/FraudParams.cs b/Craftgate/Request/Dto/FraudCheckParameters.cs similarity index 87% rename from Craftgate/Request/Dto/FraudParams.cs rename to Craftgate/Request/Dto/FraudCheckParameters.cs index 0fcb5ac..111b9f5 100644 --- a/Craftgate/Request/Dto/FraudParams.cs +++ b/Craftgate/Request/Dto/FraudCheckParameters.cs @@ -1,6 +1,6 @@ namespace Craftgate.Request.Dto { - public class FraudParams + public class FraudCheckParameters { public string BuyerExternalId { get; set; } public string BuyerPhoneNumber { get; set; } diff --git a/Craftgate/Request/InitCheckoutPaymentRequest.cs b/Craftgate/Request/InitCheckoutPaymentRequest.cs index 260043b..bced228 100644 --- a/Craftgate/Request/InitCheckoutPaymentRequest.cs +++ b/Craftgate/Request/InitCheckoutPaymentRequest.cs @@ -33,7 +33,7 @@ public class InitCheckoutPaymentRequest public long? Ttl { get; set; } public IList CustomInstallments { get; set; } public IList Items { get; set; } - public FraudParams FraudParams { get; set; } + public FraudCheckParameters FraudParams { get; set; } public Dictionary AdditionalParams { get; set; } } } \ No newline at end of file diff --git a/Craftgate/Request/InitPosApmPaymentRequest.cs b/Craftgate/Request/InitPosApmPaymentRequest.cs index 241de4e..a41181e 100644 --- a/Craftgate/Request/InitPosApmPaymentRequest.cs +++ b/Craftgate/Request/InitPosApmPaymentRequest.cs @@ -23,7 +23,7 @@ public class InitPosApmPaymentRequest public Dictionary AdditionalParams { get; set; } public List Installments { get; set; } public PosApmPaymentProvider? PaymentProvider { get; set; } - public FraudParams FraudParams { get; set; } + public FraudCheckParameters FraudParams { get; set; } public string CheckoutFormToken { get; set; } } } \ No newline at end of file diff --git a/Samples/PaymentSample.cs b/Samples/PaymentSample.cs index 039622f..17b3198 100644 --- a/Samples/PaymentSample.cs +++ b/Samples/PaymentSample.cs @@ -55,7 +55,7 @@ public void Create_Payment() Price = new decimal(20.0) } }, - FraudParams = new FraudParams() + FraudParams = new FraudCheckParameters() { BuyerEmail = "test@test.com", BuyerPhoneNumber = "5555555555",