public static bool UpdateSellTo( this Connection conn, IClientState state, int basketId, AddressSellToRequest sellToRequest ) { var restRequest = sellToRequest.CreateRestRequestJson( Method.PUT, "/services/v3/baskets/{basketId}/sellto" ) .AddParameter( "basketId", basketId, ParameterType.UrlSegment ); var(_, success) = conn.ExecuteNonQuery <bool>( restRequest, state, Includes.Auth ); return(success); }
public static void UpdateSellTo( this Connection conn, IClientState state, int basketId, AddressSellToRequest sellToRequest ) { var restRequest = sellToRequest.CreateRestRequestJson( Method.PUT, "/services/v3/baskets/{basketId}/sellto" ) .AddParameter( "basketId", basketId, ParameterType.UrlSegment ); conn.ExecuteNonQuery( restRequest, state, true ); }