Skip to content

Commit

Permalink
Revert marking CheckoutService as obsolete; mark undocumented endpoin…
Browse files Browse the repository at this point in the history
…ts as obsolete
  • Loading branch information
nozzlegear committed Mar 3, 2020
1 parent a4b504e commit edd457a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
19 changes: 0 additions & 19 deletions ShopifySharp/Filters/CheckoutFilter.cs

This file was deleted.

8 changes: 6 additions & 2 deletions ShopifySharp/Services/Checkout/CheckoutService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
namespace ShopifySharp
{
/// <summary>
/// A service for manipulating Shopify checkouts.
/// A service for working with abandoned checkouts.
/// </summary>
[Obsolete("The endpoints and methods on this service no longer appear to be documented by Shopify. It may be removed in a future version of ShopifySharp.")]
public class CheckoutService : ShopifyService
{
/// <param name="myShopifyUrl">The shop's *.myshopify.com URL.</param>
Expand All @@ -19,6 +18,7 @@ public CheckoutService(string myShopifyUrl, string shopAccessToken) : base(mySho
/// <summary>
/// Creates a new Checkout.
/// </summary>
[Obsolete("This endpoint does not appear to be documented by Shopify. It may no longer work, use with caution. This method may be removed in a future version of ShopifySharp.")]
public virtual async Task<Checkout> CreateAsync(Checkout checkout)
{
var req = PrepareRequest("checkout.json");
Expand All @@ -31,6 +31,7 @@ public virtual async Task<Checkout> CreateAsync(Checkout checkout)
/// <summary>
/// Completes a checkout without requiring payment.
/// </summary>
[Obsolete("This endpoint does not appear to be documented by Shopify. It may no longer work, use with caution. This method may be removed in a future version of ShopifySharp.")]
public virtual async Task<Checkout> CompleteAsync(string token)
{
var req = PrepareRequest($"checkouts/{token}/complete.json");
Expand All @@ -42,6 +43,7 @@ public virtual async Task<Checkout> CompleteAsync(string token)
/// <summary>
/// Gets an existing, processing or completed checkout.
/// </summary>
[Obsolete("This endpoint does not appear to be documented by Shopify. It may no longer work, use with caution. This method may be removed in a future version of ShopifySharp.")]
public virtual async Task<Checkout> GetAsync(string token)
{
var req = PrepareRequest($"checkouts/{token}.json");
Expand All @@ -53,6 +55,7 @@ public virtual async Task<Checkout> GetAsync(string token)
/// <summary>
/// Updates an existing checkout based on the token id.
/// </summary>
[Obsolete("This endpoint does not appear to be documented by Shopify. It may no longer work, use with caution. This method may be removed in a future version of ShopifySharp.")]
public virtual async Task<Checkout> UpdateAsync(string token, Checkout updatedCheckout)
{
var req = PrepareRequest($"checkouts/{token}.json");
Expand All @@ -66,6 +69,7 @@ public virtual async Task<Checkout> UpdateAsync(string token, Checkout updatedCh
/// new subtotal price, total tax, and total price in the event that this shipping rate is selected. This can be used to update the UI without performing further API requests. To apply a
/// shipping rate, update the checkout's shipping line with the handle of the selected rate.
/// </summary>
[Obsolete("This endpoint does not appear to be documented by Shopify. It may no longer work, use with caution. This method may be removed in a future version of ShopifySharp.")]
public virtual async Task<IEnumerable<CheckoutShippingRate>> ListShippingRatesAsync(string token)
{
var req = PrepareRequest($"checkouts/{token}/shipping_rates.json");
Expand Down

0 comments on commit edd457a

Please sign in to comment.