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

Removed deprecated members. #850

Merged
merged 1 commit into from
Mar 1, 2023
Merged
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
2 changes: 1 addition & 1 deletion ShopifySharp.Tests/FulfillmentOrder_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public async Task<Fulfillment> CreateFulfillment(long fulfillmentOrderId, IEnume

fulfillmentShipping.NotifyCustomer = false;
//fulfillment.LocationId = LocationId;
fulfillment = await FulfillmentService.CreateForFulfillmentAsync(fulfillmentShipping);
fulfillment = await FulfillmentService.CreateAsync(fulfillmentShipping);

CreatedFulfillments.Add(fulfillment);

Expand Down
1 change: 0 additions & 1 deletion ShopifySharp.Tests/Multipass_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public class Multipass_Tests_Fixture : IAsyncLifetime
LastName = "Doe",
VerifiedEmail = true,
MultipassIdentifier = Guid.ToString(),
AcceptsMarketing = true,
Addresses = new List<Address>()
{
new Address()
Expand Down
7 changes: 0 additions & 7 deletions ShopifySharp/Entities/Collect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ public class Collect : ShopifyObject
[JsonProperty("product_id")]
public long? ProductId { get; set; }

/// <summary>
/// States whether or not the collect is featured.
/// </summary>
[Obsolete]
[JsonProperty("featured")]
public bool? Featured { get; set; }

/// <summary>
/// The date and time when the collect was created. The API returns this value in ISO 8601 format.
/// </summary>
Expand Down
21 changes: 0 additions & 21 deletions ShopifySharp/Entities/Customer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,6 @@ namespace ShopifySharp
{
public class Customer : ShopifyObject
{
/// <summary>
/// Indicates whether the customer has consented to be sent marketing material via email.
/// </summary>
[JsonProperty("accepts_marketing")]
[Obsolete("As of API version 2022-04, this property is deprecated. Use email_marketing_consent instead.")]
public bool? AcceptsMarketing { get; set; }

/// <summary>
/// The date and time when the customer consented or objected to receiving marketing material by email. Set this value whenever the customer consents or objects to marketing materials.
/// </summary>
[JsonProperty("accepts_marketing_updated_at")]
[Obsolete("As of API version 2022-04, this property is deprecated. Use email_marketing_consent instead.")]
public DateTimeOffset? AcceptsMarketingUpdatedAt { get; set; }

/// <summary>
/// The marketing subscription opt-in level (as described by the M3AAWG best practices guideline) that the customer gave when they consented to receive marketing material by email. If the customer does not accept email marketing, then this property will be set to null. Valid values: single_opt_in, confirmed_opt_in, unknown.
/// </summary>
[JsonProperty("marketing_opt_in_level")]
[Obsolete("As of API version 2022-04, this property is deprecated. Use email_marketing_consent instead.")]
public string MarketingOptInLevel { get; set; }

/// <summary>
/// A list of addresses for the customer.
/// </summary>
Expand Down
7 changes: 0 additions & 7 deletions ShopifySharp/Entities/FulfillmentOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ public class FulfillmentOrder : ShopifyObject
[JsonProperty("assigned_location_id")]
public long? AssignedLocationId { get; set; }

/// <summary>
/// "mars-fulfillment".
/// </summary>
[JsonProperty("fulfillment_service_handle")]
[Obsolete("FulfillmentServiceHandle is deprecated and will be removed in a future release.")]
public string FulfillmentServiceHandle { get; set; }

/// <summary>
/// The status of the fulfillment order.
/// </summary>
Expand Down
7 changes: 0 additions & 7 deletions ShopifySharp/Entities/LineItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,6 @@ public class LineItem : ShopifyObject
[JsonProperty("duties")]
public IEnumerable<LineItemDuty> Duties { get; set; }

/// <summary>
/// The location of the line item's fulfillment origin.
/// </summary>
[JsonProperty("origin_location")]
[Obsolete("This field is deprecated in the API and will be removed in an upcoming release")]
public LineItemOriginLocation OriginLocation { get; set; }

/// <summary>
/// A unique identifier for a quantity of items within a single fulfillment. An order can have multiple fulfillment line items.
/// </summary>
Expand Down
49 changes: 0 additions & 49 deletions ShopifySharp/Entities/LineItemOriginLocation.cs

This file was deleted.

7 changes: 0 additions & 7 deletions ShopifySharp/Entities/SalesChannel/CheckoutSalesChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,6 @@ public class CheckoutSalesChannel
[JsonProperty("reservation_time_left")]
public long ReservationTimeLeft { get; set; }

/// <summary>
/// The reservation time in seconds for the line item products. Default value: null. This property is not writable.
/// </summary>
[JsonProperty("reservation_time")]
[Obsolete]
public long? ReservationTime { get; set; }

[JsonProperty("source_identifier")]
public string SourceIdentifier { get; set; }

Expand Down

This file was deleted.

97 changes: 0 additions & 97 deletions ShopifySharp/Infrastructure/Policies/SmartRetryExecutionPolicy.cs

This file was deleted.

12 changes: 0 additions & 12 deletions ShopifySharp/Services/Fulfillment/FulfillmentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,5 @@ public virtual async Task<Fulfillment> UpdateTrackingAsync(long fulfillmentId, F
var response = await ExecuteRequestAsync<Fulfillment>(req, HttpMethod.Post, cancellationToken, content, "fulfillment");
return response.Result;
}

/// <summary>
/// Creates a fulfillment for one or many fulfillment orders.
/// </summary>
/// <param name="fulfillment">An object containing fulfillment order and tracking data.</param>
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns>The new <see cref="Fulfillment"/>.</returns>
[Obsolete("This method has been renamed to CreateAsync and will be removed in a future release.")]
public virtual async Task<Fulfillment> CreateForFulfillmentAsync(FulfillmentShipping fulfillment, CancellationToken cancellationToken = default)
{
return await CreateAsync(fulfillment, cancellationToken);
}
}
}