From fd06b2cbf8098d9d2d7b6f79e46e1406598ecac2 Mon Sep 17 00:00:00 2001 From: Randall Keur Date: Mon, 18 Nov 2024 15:06:04 -0500 Subject: [PATCH 1/2] write initial test to dig into issue found --- .idea/.gitignore | 8 +++++++ .idea/modules.xml | 8 +++++++ .idea/shippo-csharp-sdk.iml | 9 ++++++++ .idea/vcs.xml | 6 ++++++ ShippoTests/Integration/TestOrders.cs | 30 +++++++++++++++++++++++++++ 5 files changed, 61 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/modules.xml create mode 100644 .idea/shippo-csharp-sdk.iml create mode 100644 .idea/vcs.xml create mode 100644 ShippoTests/Integration/TestOrders.cs diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..2f5742a --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/shippo-csharp-sdk.iml b/.idea/shippo-csharp-sdk.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/shippo-csharp-sdk.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ShippoTests/Integration/TestOrders.cs b/ShippoTests/Integration/TestOrders.cs new file mode 100644 index 0000000..683bdc0 --- /dev/null +++ b/ShippoTests/Integration/TestOrders.cs @@ -0,0 +1,30 @@ +namespace ShippoTests.Integration; + +using Shippo; +using Shippo.Models.Requests; +using System.Collections.Generic; +using Shippo.Models.Components; + +[Collection("Integration")] +public class Orders +{ + SDKFixture sdkFixture; + + public Orders(SDKFixture sdkFixture) + { + this.sdkFixture = sdkFixture; + } + + [Fact] + public async void TestListOrders() + { + ListOrdersRequest req = new ListOrdersRequest() { + OrderStatus = new List() { + Shippo.Models.Components.OrderStatusEnum.Paid, + }, + ShopApp = Shippo.Models.Components.OrderShopAppEnum.Shippo, + }; + + var orders = await sdkFixture.SDK.Orders.ListAsync(req); + } +} \ No newline at end of file From 56346f3ceae900cfb3580571e9d3185c33d43db0 Mon Sep 17 00:00:00 2001 From: Randall Keur Date: Mon, 18 Nov 2024 15:06:40 -0500 Subject: [PATCH 2/2] remove idea stuff and add to gitignore --- .gitignore | 1 + .idea/.gitignore | 8 -------- .idea/modules.xml | 8 -------- .idea/shippo-csharp-sdk.iml | 9 --------- .idea/vcs.xml | 6 ------ 5 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/modules.xml delete mode 100644 .idea/shippo-csharp-sdk.iml delete mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore index 0c6246a..9be4561 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ bin/ debug/ .speakeasy/temp/ build/ +.idea ShippoTests/TestResults/ diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 2f5742a..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/shippo-csharp-sdk.iml b/.idea/shippo-csharp-sdk.iml deleted file mode 100644 index d6ebd48..0000000 --- a/.idea/shippo-csharp-sdk.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file