diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 514117a5f..72f17f2e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,10 +111,10 @@ jobs: dotnet-version: 7.x.x - name: Install docfx - run: dotnet tool update -g docfx + run: make install-tools - name: Generate docs - run: docfx docs/docfx.json + run: make docs - name: Deploy docs uses: peaceiris/actions-gh-pages@v3 diff --git a/EasyPost.Tests/packages.lock.json b/EasyPost.Tests/packages.lock.json index ce971acf3..b2ab62f3a 100644 --- a/EasyPost.Tests/packages.lock.json +++ b/EasyPost.Tests/packages.lock.json @@ -1283,4 +1283,4 @@ } } } -} \ No newline at end of file +} diff --git a/EasyPost/Services/Beta/ReferralService.cs b/EasyPost/Services/Beta/ReferralService.cs index 62e08ed9d..446900dd8 100644 --- a/EasyPost/Services/Beta/ReferralService.cs +++ b/EasyPost/Services/Beta/ReferralService.cs @@ -1,7 +1,7 @@ -using System; using System.Collections.Generic; using System.Threading.Tasks; using EasyPost._base; +using EasyPost.Exceptions.API; using EasyPost.Models.API; using EasyPost.Models.API.Beta; using RestSharp; @@ -26,7 +26,7 @@ public ReferralService(EasyPostClient client) /// ID of the card or bank account provided by Stripe. /// Which priority to save this payment method as on EasyPost. /// A object. - /// When the request fails. + /// When the request fails. public async Task AddPaymentMethod(string stripeCustomerId, string paymentMethodReference, PaymentMethod.Priority? priority = null) { priority ??= PaymentMethod.Priority.Primary; diff --git a/EasyPost/Services/PartnerService.cs b/EasyPost/Services/PartnerService.cs index ddbb3bc12..db78de512 100644 --- a/EasyPost/Services/PartnerService.cs +++ b/EasyPost/Services/PartnerService.cs @@ -61,7 +61,7 @@ public async Task CreateReferral(Dictionary pa /// CVC of the credit card. /// Priority of the credit card. /// An EasyPost.PaymentMethodObject instance. - /// When the request fails. + /// When the request fails. [CrudOperations.Update] public async Task AddCreditCardToUser(string referralApiKey, string number, int expirationMonth, int expirationYear, string cvc, PaymentMethod.Priority? priority = null) { diff --git a/EasyPost/_base/EasyPostObject.cs b/EasyPost/_base/EasyPostObject.cs index 663fab4df..4c3850fbe 100644 --- a/EasyPost/_base/EasyPostObject.cs +++ b/EasyPost/_base/EasyPostObject.cs @@ -62,7 +62,7 @@ public abstract class EasyPostObject : EphemeralEasyPostObject /// Root element of JSON returned by update call. /// Override the API version used for update call. /// Type of object to update. - /// A representing the asynchronous operation. + /// A task representing the asynchronous operation. protected async Task Update(Method method, string url, Dictionary? parameters = null, string? rootElement = null, ApiVersion? overrideApiVersion = null) where T : class { diff --git a/EasyPost/packages.lock.json b/EasyPost/packages.lock.json index 0e040e47d..55bb2b0cc 100644 --- a/EasyPost/packages.lock.json +++ b/EasyPost/packages.lock.json @@ -238,4 +238,4 @@ } } } -} \ No newline at end of file +} diff --git a/Makefile b/Makefile index a6ec526f1..9aae22932 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,8 @@ coverage-check: ## docs - Generates library documentation docs: - docfx docs/docfx.json - git add docs/* + dotnet tool run docfx docs/docfx.json + git add docs/* || exit 0 ## format - Formats the project format: @@ -43,7 +43,7 @@ install-tools: dotnet new tool-manifest || exit 0 dotnet tool install --local security-scan --version 5.6.3 || exit 0 dotnet tool install --local dotnet-format || exit 0 - dotnet tool install --local docfx || exit 0 + dotnet tool install --local docfx --version 2.60.2 || exit 0 ## install - Install requirements install: | install-tools