You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Refund amount of the order return.</summary>
2017
+
/// <summary>Sum of all RefundAmounts for Items. This value can be overridden by a user with the OrderAdmin role. To remove the override set the value to null.</summary>
/// <summary>AutoApply eligible promotions. Apply up to 100 eligible promotions to the cart.</summary>
1054
+
/// <summary>Auto-apply promotions to the cart. Apply up to 100 eligible promotions where AutoApply=true.</summary>
1055
1055
/// <param name="accessToken">Optional. Use to provide an existing token instead of authenticating implicitly.</param>
1056
1056
Task<TOrder> ApplyPromotionsAsync<TOrder>(string accessToken = null) where TOrder : Order;
1057
+
/// <summary>Refresh promotions on the cart. Re-calculates promotion discounts, removes promotions that are no longer valid, and adds eligible promotions where AutoApply=true (up to limit of 100)</summary>
1058
+
/// <param name="accessToken">Optional. Use to provide an existing token instead of authenticating implicitly.</param>
/// <summary>Update cart FromUser. Only FirstName, LastName, and Email can be updated. Primarily used to facilitate guest checkout scenarios.</summary>
1058
1061
/// <param name="partialUser">The object that will be partially serialized to JSON and sent in the request body.</param>
1059
1062
/// <param name="accessToken">Optional. Use to provide an existing token instead of authenticating implicitly.</param>
@@ -4505,16 +4508,21 @@ public interface IOrdersResource
4505
4508
/// <param name="promoCode">Promo code of the order.</param>
4506
4509
/// <param name="accessToken">Optional. Use to provide an existing token instead of authenticating implicitly.</param>
/// <summary>Refresh promotions on an order. Re-calculates promotion discounts, removes promotions that are no longer valid, and adds eligible promotions where AutoApply=true (up to limit of 100)</summary>
4522
+
/// <param name="direction">Direction of the order, from the current user's perspective. Possible values: incoming, outgoing, all.</param>
4523
+
/// <param name="orderID">ID of the order.</param>
4524
+
/// <param name="accessToken">Optional. Use to provide an existing token instead of authenticating implicitly.</param>
public Task<Order> ApplyPromotionsAsync(string accessToken = null) => ApplyPromotionsAsync<Order>(accessToken);
7083
7091
public Task<TOrder> ApplyPromotionsAsync<TOrder>(string accessToken = null) where TOrder : Order => Request("v1", "cart", "applypromotions").WithOAuthBearerToken(accessToken).PostAsync(null).ReceiveJson<TOrder>();
7092
+
public Task<RefreshPromosResponse> RefreshPromotionsAsync(string accessToken = null) => Request("v1", "cart", "refreshpromotions").WithOAuthBearerToken(accessToken).PostAsync(null).ReceiveJson<RefreshPromosResponse>();
0 commit comments