Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceldeki maddeler geliştirildi #139

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions Iyzipay.Samples/ApiTestSample.cs

This file was deleted.

9 changes: 7 additions & 2 deletions Iyzipay.Samples/IyziLinkSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ public void Should_Create_IyziLink()
request.Price = "1";
request.Currency = Currency.TRY.ToString();
request.AddressIgnorable = false;
request.SoldLimit = 1;
request.InstallmentRequested = false;
request.StockEnabled = true;
request.StockCount = 1;
request.InstallmentRequested = false;
request.SourceType = "API";

ResponseData<IyziLinkSave> response = IyziLink.Create(request, options);
PrintResponse(response);
Expand All @@ -47,7 +50,9 @@ public void Should_Update_IyziLink()
updateRequest.Price = "10";
updateRequest.Currency = Currency.TRY.ToString();
updateRequest.AddressIgnorable = false;
updateRequest.SoldLimit = 1;
updateRequest.StockEnabled = true;
updateRequest.StockCount = 1;
updateRequest.SourceType = "API";
updateRequest.InstallmentRequested = false;

ResponseData<IyziLinkSave> response = IyziLink.Update("token", updateRequest, options);
Expand Down
1,120 changes: 611 additions & 509 deletions Iyzipay.Samples/PaymentSample.cs

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions Iyzipay.Samples/TransactionReportSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,30 @@ public void Should_Retrieve_TransactionReport()
Assert.IsNotNull(transactionReport.SystemTime);
Assert.IsNull(transactionReport.ErrorMessage);
}

[Test]
public void Should_Retrieve_ScrollTransactionReport()
{
RetrieveScrollTransactionReportRequest request = new RetrieveScrollTransactionReportRequest()
{
ConversationId = "123",
TransactionDate = "2018-06-28",
Locale = Locale.TR.ToString(),
DocumentScrollVoSortingOrder ="ASC",
LastId = 1689853839161
};

TransactionReport transactionReport = TransactionReport.Retrieve(request, options);

PrintResponse<TransactionReport>(transactionReport);

Assert.AreEqual(Status.SUCCESS.ToString(), transactionReport.Status);
Assert.AreEqual(200, transactionReport.StatusCode);
Assert.AreEqual("123", transactionReport.ConversationId);
Assert.AreEqual(1, transactionReport.CurrentPage);
Assert.IsNotNull(transactionReport.TotalPageCount);
Assert.IsNotNull(transactionReport.SystemTime);
Assert.IsNull(transactionReport.ErrorMessage);
}
}
}
23 changes: 0 additions & 23 deletions Iyzipay.Tests/Functional/ApiTest.cs

This file was deleted.

14 changes: 8 additions & 6 deletions Iyzipay.Tests/Functional/IyziLinkTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Iyzipay.Tests.Functional
{
public class IyziLinkTest : BaseTest
{

/*[Test]
public void Should_Create_IyziLink()
{
Expand All @@ -22,8 +22,10 @@ public void Should_Create_IyziLink()
request.Price = "1";
request.Currency = Currency.TRY.ToString();
request.AddressIgnorable = false;
request.SoldLimit = 1;
request.StockEnabled = true;
request.StockCount = 1;
request.InstallmentRequested = false;
request.SourceType = "API";

ResponseData<IyziLinkSave> response = IyziLink.Create(request, _options);
PrintResponse(response);
Expand All @@ -36,7 +38,7 @@ public void Should_Create_IyziLink()
Assert.NotNull(response.Data.ImageUrl);
Assert.NotNull(response.Data.Token);
}*/

/*[Test]
public void Should_Update_IyziLink()
{
Expand Down Expand Up @@ -77,7 +79,7 @@ public void Should_Update_IyziLink()
Assert.NotNull(response.Data.ImageUrl);
Assert.NotNull(response.Data.Token);
}*/

/*[Test]
public void Should_Retrieve_IyziLinks_With_Pagination()
{
Expand Down Expand Up @@ -112,7 +114,7 @@ public void Should_Retrieve_IyziLinks_With_Pagination()
Assert.AreEqual(1,response.Data.Items.Count);
Assert.AreEqual(1,response.Data.CurrentPage);
}*/

/*[Test]
public void Should_Retrieve_IyziLink_With_Token()
{
Expand Down Expand Up @@ -149,7 +151,7 @@ public void Should_Retrieve_IyziLink_With_Token()
Assert.AreEqual(false,response.Data.AddressIgnorable);
Assert.NotNull(response.Data.ImageUrl);
}*/

/*[Test]
public void Should_Delete_IyziLink()
{
Expand Down
Loading
Loading